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="examples/main.cpp"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CXX_set=${CXX+set}
908 ac_env_CXX_value=$CXX
909 ac_cv_env_CXX_set=${CXX+set}
910 ac_cv_env_CXX_value=$CXX
911 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
912 ac_env_CXXFLAGS_value=$CXXFLAGS
913 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CC_set=${CC+set}
925 ac_cv_env_CC_set=${CC+set}
926 ac_cv_env_CC_value=$CC
927 ac_env_CFLAGS_set=${CFLAGS+set}
928 ac_env_CFLAGS_value=$CFLAGS
929 ac_cv_env_CFLAGS_set=${CFLAGS+set}
930 ac_cv_env_CFLAGS_value=$CFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 if test -n "$ac_init_help"; then
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1041 --with-pic try to use only PIC/non-PIC objects [default=use
1044 include additional configurations [automatic]
1045 --with-libldap=DIR Path to the libldap library /usr/local/lib
1046 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include
1048 Some influential environment variables:
1049 CXX C++ compiler command
1050 CXXFLAGS C++ compiler flags
1051 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1052 nonstandard directory <lib dir>
1053 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1054 headers in a nonstandard directory <include dir>
1055 CC C compiler command
1056 CFLAGS C compiler flags
1058 CXXCPP C++ preprocessor
1059 F77 Fortran 77 compiler command
1060 FFLAGS Fortran 77 compiler flags
1062 Use these variables to override the choices made by `configure' or to help
1063 it to find libraries and programs with nonstandard names/locations.
1068 if test "$ac_init_help" = "recursive"; then
1069 # If there are subdirs, report their specific --help.
1071 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072 test -d $ac_dir || continue
1075 if test "$ac_dir" != .; then
1076 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077 # A "../" for each directory in $ac_dir_suffix.
1078 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 ac_dir_suffix= ac_top_builddir=
1084 .) # No --srcdir option. We are building in place.
1086 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091 [\\/]* | ?:[\\/]* ) # Absolute path.
1092 ac_srcdir=$srcdir$ac_dir_suffix;
1093 ac_top_srcdir=$srcdir ;;
1095 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099 # Do not use `cd foo && pwd` to compute absolute paths, because
1100 # the directories may not exist.
1102 .) ac_abs_builddir="$ac_dir";;
1105 .) ac_abs_builddir=`pwd`;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1107 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110 case $ac_abs_builddir in
1111 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 case ${ac_top_builddir}. in
1114 .) ac_abs_top_builddir=$ac_abs_builddir;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119 case $ac_abs_builddir in
1120 .) ac_abs_srcdir=$ac_srcdir;;
1123 .) ac_abs_srcdir=$ac_abs_builddir;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1125 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 case $ac_top_srcdir in
1132 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139 # Check for guested configure; otherwise get Cygnus style configure.
1140 if test -f $ac_srcdir/configure.gnu; then
1142 $SHELL $ac_srcdir/configure.gnu --help=recursive
1143 elif test -f $ac_srcdir/configure; then
1145 $SHELL $ac_srcdir/configure --help=recursive
1146 elif test -f $ac_srcdir/configure.ac ||
1147 test -f $ac_srcdir/configure.in; then
1149 $ac_configure --help
1151 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157 test -n "$ac_init_help" && exit 0
1158 if $ac_init_version; then
1161 Copyright (C) 2003 Free Software Foundation, Inc.
1162 This configure script is free software; the Free Software Foundation
1163 gives unlimited permission to copy, distribute and modify it.
1169 This file contains any messages produced by compilers while
1170 running configure, to aid debugging if configure makes a mistake.
1172 It was created by $as_me, which was
1173 generated by GNU Autoconf 2.59. Invocation command line was
1184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1191 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1193 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1194 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1196 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1197 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1198 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1199 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207 test -z "$as_dir" && as_dir=.
1208 echo "PATH: $as_dir"
1223 # Keep a trace of the command line.
1224 # Strip out --no-create and --no-recursion so they do not pile up.
1225 # Strip out --silent because we don't want to record it for future runs.
1226 # Also quote any args containing shell meta-characters.
1227 # Make two passes to allow for proper duplicate-argument suppression.
1232 ac_must_keep_next=false
1238 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1242 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1246 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1249 if test $ac_must_keep_next = true; then
1250 ac_must_keep_next=false # Got value, back to normal.
1253 *=* | --config-cache | -C | -disable-* | --disable-* \
1254 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1255 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1256 | -with-* | --with-* | -without-* | --without-* | --x)
1257 case "$ac_configure_args0 " in
1258 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1261 -* ) ac_must_keep_next=true ;;
1264 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1265 # Get rid of the leading space.
1271 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1272 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1274 # When interrupted or exit'd, cleanup temporary files, and complete
1275 # config.log. We remove comments because anyway the quotes in there
1276 # would cause problems or look ugly.
1277 # WARNING: Be sure not to use single quotes in there, as some shells,
1278 # such as our DU 5.0 friend, will then `close' the trap.
1279 trap 'exit_status=$?
1280 # Save into config.log some information that might help in debugging.
1285 ## ---------------- ##
1286 ## Cache variables. ##
1287 ## ---------------- ##
1290 # The following way of writing the cache mishandles newlines in values,
1293 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1296 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308 ## ----------------- ##
1309 ## Output variables. ##
1310 ## ----------------- ##
1313 for ac_var in $ac_subst_vars
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1320 if test -n "$ac_subst_files"; then
1327 for ac_var in $ac_subst_files
1329 eval ac_val=$`echo $ac_var`
1330 echo "$ac_var='"'"'$ac_val'"'"'"
1335 if test -s confdefs.h; then
1342 sed "/^$/d" confdefs.h | sort
1345 test "$ac_signal" != 0 &&
1346 echo "$as_me: caught signal $ac_signal"
1347 echo "$as_me: exit $exit_status"
1349 rm -f core *.core &&
1350 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1353 for ac_signal in 1 2 13 15; do
1354 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1359 rm -rf conftest* confdefs.h
1360 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1363 # Predefined preprocessor variables.
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_NAME "$PACKAGE_NAME"
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_STRING "$PACKAGE_STRING"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390 # Let the site file select an alternate cache file if it wants to.
1391 # Prefer explicitly selected file to automatically selected ones.
1392 if test -z "$CONFIG_SITE"; then
1393 if test "x$prefix" != xNONE; then
1394 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1399 for ac_site_file in $CONFIG_SITE; do
1400 if test -r "$ac_site_file"; then
1401 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1402 echo "$as_me: loading site script $ac_site_file" >&6;}
1403 sed 's/^/| /' "$ac_site_file" >&5
1408 if test -r "$cache_file"; then
1409 # Some versions of bash will fail to source /dev/null (special
1410 # files actually), so we avoid doing that.
1411 if test -f "$cache_file"; then
1412 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1413 echo "$as_me: loading cache $cache_file" >&6;}
1415 [\\/]* | ?:[\\/]* ) . $cache_file;;
1416 *) . ./$cache_file;;
1420 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1421 echo "$as_me: creating cache $cache_file" >&6;}
1425 # Check that the precious variables saved in the cache have kept the same
1427 ac_cache_corrupted=false
1428 for ac_var in `(set) 2>&1 |
1429 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1430 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1431 eval ac_new_set=\$ac_env_${ac_var}_set
1432 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1433 eval ac_new_val="\$ac_env_${ac_var}_value"
1434 case $ac_old_set,$ac_new_set in
1436 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1437 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1438 ac_cache_corrupted=: ;;
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1442 ac_cache_corrupted=: ;;
1445 if test "x$ac_old_val" != "x$ac_new_val"; then
1446 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1447 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1448 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1449 echo "$as_me: former value: $ac_old_val" >&2;}
1450 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1451 echo "$as_me: current value: $ac_new_val" >&2;}
1452 ac_cache_corrupted=:
1455 # Pass precious variables to config.status.
1456 if test "$ac_new_set" = set; then
1458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1459 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1460 *) ac_arg=$ac_var=$ac_new_val ;;
1462 case " $ac_configure_args " in
1463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1464 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468 if $ac_cache_corrupted; then
1469 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1470 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1471 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1472 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1473 { (exit 1); exit 1; }; }
1477 ac_cpp='$CPP $CPPFLAGS'
1478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500 am__api_version="1.9"
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 elif test -f $ac_dir/install.sh; then
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 elif test -f $ac_dir/shtool; then
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526 # Find a good install program. We prefer a C program (faster),
1527 # so one script is as good as another. But avoid the broken or
1528 # incompatible versions:
1529 # SysV /etc/install, /usr/sbin/install
1530 # SunOS /usr/etc/install
1531 # IRIX /sbin/install
1533 # AmigaOS /C/install, which installs bootblocks on floppy discs
1534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1537 # OS/2's system install, which has a completely different semantic
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541 if test -z "$INSTALL"; then
1542 if test "${ac_cv_path_install+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 test -z "$as_dir" && as_dir=.
1550 # Account for people who put trailing slashes in PATH elements.
1552 ./ | .// | /cC/* | \
1553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1557 # OSF1 and SCO ODT 3.0 have their own names for install.
1558 # Don't use installbsd from OSF since it installs stuff as root
1560 for ac_prog in ginstall scoinst install; do
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1563 if test $ac_prog = install &&
1564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565 # AIX install. It has an incompatible calling convention.
1567 elif test $ac_prog = install &&
1568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569 # program-specific install script used by HP pwplus--don't use.
1572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1584 if test "${ac_cv_path_install+set}" = set; then
1585 INSTALL=$ac_cv_path_install
1587 # As a last resort, use the slow shell script. We don't cache a
1588 # path for INSTALL within a source directory, because that will
1589 # break other packages using the cache if that directory is
1590 # removed, or if the path is relative.
1591 INSTALL=$ac_install_sh
1594 echo "$as_me:$LINENO: result: $INSTALL" >&5
1595 echo "${ECHO_T}$INSTALL" >&6
1597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1598 # It thinks the first close brace ends the variable substitution.
1599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1605 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1606 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1609 echo timestamp > conftest.file
1610 # Do `set' in a subshell so we don't clobber the current shell's
1611 # arguments. Must try -L first in case configure is actually a
1612 # symlink; some systems play weird games with the mod time of symlinks
1613 # (eg FreeBSD returns the mod time of the symlink's containing
1616 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1617 if test "$*" = "X"; then
1619 set X `ls -t $srcdir/configure conftest.file`
1622 if test "$*" != "X $srcdir/configure conftest.file" \
1623 && test "$*" != "X conftest.file $srcdir/configure"; then
1625 # If neither matched, then we have a broken ls. This can happen
1626 # if, for instance, CONFIG_SHELL is bash and it inherits a
1627 # broken ls alias from the environment. This has actually
1628 # happened. Such a system could not be considered "sane".
1629 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1630 alias in your environment" >&5
1631 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1632 alias in your environment" >&2;}
1633 { (exit 1); exit 1; }; }
1636 test "$2" = conftest.file
1642 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1643 Check your system clock" >&5
1644 echo "$as_me: error: newly created file is older than distributed files!
1645 Check your system clock" >&2;}
1646 { (exit 1); exit 1; }; }
1648 echo "$as_me:$LINENO: result: yes" >&5
1649 echo "${ECHO_T}yes" >&6
1650 test "$program_prefix" != NONE &&
1651 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1652 # Use a double $ so make ignores it.
1653 test "$program_suffix" != NONE &&
1654 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1655 # Double any \ or $. echo might interpret backslashes.
1656 # By default was `s,x,x', remove it if useless.
1657 cat <<\_ACEOF >conftest.sed
1658 s/[\\$]/&&/g;s/;s,x,x,$//
1660 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1663 # expand $ac_aux_dir to an absolute path
1664 am_aux_dir=`cd $ac_aux_dir && pwd`
1666 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1667 # Use eval to expand $SHELL
1668 if eval "$MISSING --run true"; then
1669 am_missing_run="$MISSING --run "
1672 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1673 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1676 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1677 # We used to keeping the `.' as first argument, in order to
1678 # allow $(mkdir_p) to be used without argument. As in
1679 # $(mkdir_p) $(somedir)
1680 # where $(somedir) is conditionally defined. However this is wrong
1682 # 1. if the package is installed by a user who cannot write `.'
1683 # make install will fail,
1684 # 2. the above comment should most certainly read
1685 # $(mkdir_p) $(DESTDIR)$(somedir)
1686 # so it does not work when $(somedir) is undefined and
1687 # $(DESTDIR) is not.
1688 # To support the latter case, we have to write
1689 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1690 # so the `.' trick is pointless.
1691 mkdir_p='mkdir -p --'
1693 # On NextStep and OpenStep, the `mkdir' command does not
1694 # recognize any option. It will interpret all options as
1695 # directories to create, and then abort because `.' already
1697 for d in ./-p ./--version;
1699 test -d $d && rmdir $d
1701 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1702 if test -f "$ac_aux_dir/mkinstalldirs"; then
1703 mkdir_p='$(mkinstalldirs)'
1705 mkdir_p='$(install_sh) -d'
1709 for ac_prog in gawk mawk nawk awk
1711 # Extract the first word of "$ac_prog", so it can be a program name with args.
1712 set dummy $ac_prog; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_AWK+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 if test -n "$AWK"; then
1719 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_AWK="$ac_prog"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 if test -n "$AWK"; then
1739 echo "$as_me:$LINENO: result: $AWK" >&5
1740 echo "${ECHO_T}$AWK" >&6
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1746 test -n "$AWK" && break
1749 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1750 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1751 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1752 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 cat >conftest.make <<\_ACEOF
1757 @echo 'ac_maketemp="$(MAKE)"'
1759 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1760 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1761 if test -n "$ac_maketemp"; then
1762 eval ac_cv_prog_make_${ac_make}_set=yes
1764 eval ac_cv_prog_make_${ac_make}_set=no
1768 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1769 echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 SET_MAKE="MAKE=${MAKE-make}"
1778 rm -rf .tst 2>/dev/null
1779 mkdir .tst 2>/dev/null
1780 if test -d .tst; then
1785 rmdir .tst 2>/dev/null
1787 # test to see if srcdir already configured
1788 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1789 test -f $srcdir/config.status; then
1790 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1791 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1792 { (exit 1); exit 1; }; }
1795 # test whether we have cygpath
1796 if test -z "$CYGPATH_W"; then
1797 if (cygpath --version) >/dev/null 2>/dev/null; then
1798 CYGPATH_W='cygpath -w'
1805 # Define the identity of the package.
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE "$PACKAGE"
1815 cat >>confdefs.h <<_ACEOF
1816 #define VERSION "$VERSION"
1819 # Some tools Automake needs.
1821 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1824 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1827 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1830 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1833 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1835 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1837 # Installed binaries are usually stripped using `strip' when the user
1838 # run `make install-strip'. However `strip' might not be the right
1839 # tool to use in cross-compilation environments, therefore Automake
1840 # will honor the `STRIP' environment variable to overrule this program.
1841 if test "$cross_compiling" != no; then
1842 if test -n "$ac_tool_prefix"; then
1843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}strip; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_STRIP+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 if test -n "$STRIP"; then
1851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 STRIP=$ac_cv_prog_STRIP
1870 if test -n "$STRIP"; then
1871 echo "$as_me:$LINENO: result: $STRIP" >&5
1872 echo "${ECHO_T}$STRIP" >&6
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1879 if test -z "$ac_cv_prog_STRIP"; then
1881 # Extract the first word of "strip", so it can be a program name with args.
1882 set dummy strip; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$ac_ct_STRIP"; then
1889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_STRIP="strip"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1909 if test -n "$ac_ct_STRIP"; then
1910 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1911 echo "${ECHO_T}$ac_ct_STRIP" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1919 STRIP="$ac_cv_prog_STRIP"
1923 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1925 # We need awk for the "check" target. The system "awk" is bad on
1927 # Always define AMTAR for backward compatibility.
1929 AMTAR=${AMTAR-"${am_missing_run}tar"}
1931 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1937 ac_config_headers="$ac_config_headers src/config.h"
1941 # Find a good install program. We prefer a C program (faster),
1942 # so one script is as good as another. But avoid the broken or
1943 # incompatible versions:
1944 # SysV /etc/install, /usr/sbin/install
1945 # SunOS /usr/etc/install
1946 # IRIX /sbin/install
1948 # AmigaOS /C/install, which installs bootblocks on floppy discs
1949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1952 # OS/2's system install, which has a completely different semantic
1953 # ./install, which can be erroneously created by make from ./install.sh.
1954 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1955 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1956 if test -z "$INSTALL"; then
1957 if test "${ac_cv_path_install+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 test -z "$as_dir" && as_dir=.
1965 # Account for people who put trailing slashes in PATH elements.
1967 ./ | .// | /cC/* | \
1968 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1969 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1972 # OSF1 and SCO ODT 3.0 have their own names for install.
1973 # Don't use installbsd from OSF since it installs stuff as root
1975 for ac_prog in ginstall scoinst install; do
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1978 if test $ac_prog = install &&
1979 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1980 # AIX install. It has an incompatible calling convention.
1982 elif test $ac_prog = install &&
1983 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1984 # program-specific install script used by HP pwplus--don't use.
1987 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1999 if test "${ac_cv_path_install+set}" = set; then
2000 INSTALL=$ac_cv_path_install
2002 # As a last resort, use the slow shell script. We don't cache a
2003 # path for INSTALL within a source directory, because that will
2004 # break other packages using the cache if that directory is
2005 # removed, or if the path is relative.
2006 INSTALL=$ac_install_sh
2009 echo "$as_me:$LINENO: result: $INSTALL" >&5
2010 echo "${ECHO_T}$INSTALL" >&6
2012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2013 # It thinks the first close brace ends the variable substitution.
2014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2021 ac_cpp='$CXXCPP $CPPFLAGS'
2022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2025 if test -n "$ac_tool_prefix"; then
2026 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_CXX+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$CXX"; then
2036 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 if test -n "$CXX"; then
2056 echo "$as_me:$LINENO: result: $CXX" >&5
2057 echo "${ECHO_T}$CXX" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2063 test -n "$CXX" && break
2066 if test -z "$CXX"; then
2068 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2070 # Extract the first word of "$ac_prog", so it can be a program name with args.
2071 set dummy $ac_prog; ac_word=$2
2072 echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 if test -n "$ac_ct_CXX"; then
2078 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
2086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087 ac_cv_prog_ac_ct_CXX="$ac_prog"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2097 if test -n "$ac_ct_CXX"; then
2098 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2099 echo "${ECHO_T}$ac_ct_CXX" >&6
2101 echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6
2105 test -n "$ac_ct_CXX" && break
2107 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2113 # Provide some information about the compiler.
2114 echo "$as_me:$LINENO:" \
2115 "checking for C++ compiler version" >&5
2116 ac_compiler=`set X $ac_compile; echo $2`
2117 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2118 (eval $ac_compiler --version </dev/null >&5) 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2123 (eval $ac_compiler -v </dev/null >&5) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2128 (eval $ac_compiler -V </dev/null >&5) 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2133 cat >conftest.$ac_ext <<_ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2153 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2154 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157 (eval $ac_link_default) 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # Find the output, starting from the most likely. This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2171 test -f "$ac_file" || continue
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2176 # This is the source file.
2179 # We found the default executable, but exeext='' is most
2183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 # FIXME: I believe we export ac_cv_exeext for Libtool,
2185 # but it would be cool to find out if it's true. Does anybody
2186 # maintain Libtool? --akim.
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C++ compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2208 # Check the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2211 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2223 if test "$cross_compiling" = maybe; then
2226 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C++ compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run. If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251 (eval $ac_link) 2>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
2255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.o conftest.obj
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2313 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2321 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2324 See \`config.log' for more details." >&2;}
2325 { (exit 1); exit 1; }; }
2328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2330 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2331 echo "${ECHO_T}$ac_cv_objext" >&6
2332 OBJEXT=$ac_cv_objext
2334 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2335 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2336 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 cat >conftest.$ac_ext <<_ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>conftest.er1
2361 grep -v '^ *+' conftest.er1 >conftest.err
2363 cat conftest.err >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try='test -z "$ac_cxx_werror_flag"
2367 || test ! -s conftest.err'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2390 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2391 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2392 GXX=`test $ac_compiler_gnu = yes && echo yes`
2393 ac_test_CXXFLAGS=${CXXFLAGS+set}
2394 ac_save_CXXFLAGS=$CXXFLAGS
2396 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2397 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2398 if test "${ac_cv_prog_cxx_g+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 cat >conftest.$ac_ext <<_ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2416 rm -f conftest.$ac_objext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>conftest.er1
2420 grep -v '^ *+' conftest.er1 >conftest.err
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -z "$ac_cxx_werror_flag"
2426 || test ! -s conftest.err'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; } &&
2432 { ac_try='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 ac_cv_prog_cxx_g=yes
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2448 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2449 if test "$ac_test_CXXFLAGS" = set; then
2450 CXXFLAGS=$ac_save_CXXFLAGS
2451 elif test $ac_cv_prog_cxx_g = yes; then
2452 if test "$GXX" = yes; then
2458 if test "$GXX" = yes; then
2464 for ac_declaration in \
2466 'extern "C" void std::exit (int) throw (); using std::exit;' \
2467 'extern "C" void std::exit (int); using std::exit;' \
2468 'extern "C" void exit (int) throw ();' \
2469 'extern "C" void exit (int);' \
2472 cat >conftest.$ac_ext <<_ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>conftest.er1
2492 grep -v '^ *+' conftest.er1 >conftest.err
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
2497 { ac_try='test -z "$ac_cxx_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518 cat >conftest.$ac_ext <<_ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>conftest.er1
2537 grep -v '^ *+' conftest.er1 >conftest.err
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -z "$ac_cxx_werror_flag"
2543 || test ! -s conftest.err'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564 if test -n "$ac_declaration"; then
2565 echo '#ifdef __cplusplus' >>confdefs.h
2566 echo $ac_declaration >>confdefs.h
2567 echo '#endif' >>confdefs.h
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575 DEPDIR="${am__leading_dot}deps"
2577 ac_config_commands="$ac_config_commands depfiles"
2580 am_make=${MAKE-make}
2581 cat > confinc << 'END'
2586 # If we don't find an include directive, just comment out the code.
2587 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2588 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2592 # First try GNU make style include.
2593 echo "include confinc" > confmf
2594 # We grep out `Entering directory' and `Leaving directory'
2595 # messages which can occur if `w' ends up in MAKEFLAGS.
2596 # In particular we don't look at `^make:' because GNU make might
2597 # be invoked under some other name (usually "gmake"), in which
2598 # case it prints its new name instead of `make'.
2599 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2604 # Now try BSD make style include.
2605 if test "$am__include" = "#"; then
2606 echo '.include "confinc"' > confmf
2607 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2608 am__include=.include
2615 echo "$as_me:$LINENO: result: $_am_result" >&5
2616 echo "${ECHO_T}$_am_result" >&6
2617 rm -f confinc confmf
2619 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2620 if test "${enable_dependency_tracking+set}" = set; then
2621 enableval="$enable_dependency_tracking"
2624 if test "x$enable_dependency_tracking" != xno; then
2625 am_depcomp="$ac_aux_dir/depcomp"
2630 if test "x$enable_dependency_tracking" != xno; then
2641 depcc="$CXX" am_compiler_list=
2643 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2644 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2645 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2649 # We make a subdir and do the tests there. Otherwise we can end up
2650 # making bogus files that we don't know about and never remove. For
2651 # instance it was reported that on HP-UX the gcc test will end up
2652 # making a dummy file named `D' -- because `-MD' means `put the output
2655 # Copy depcomp to subdir because otherwise we won't find it if we're
2656 # using a relative directory.
2657 cp "$am_depcomp" conftest.dir
2659 # We will build objects and dependencies in a subdirectory because
2660 # it helps to detect inapplicable dependency modes. For instance
2661 # both Tru64's cc and ICC support -MD to output dependencies as a
2662 # side effect of compilation, but ICC will put the dependencies in
2663 # the current directory while Tru64 will put them in the object
2667 am_cv_CXX_dependencies_compiler_type=none
2668 if test "$am_compiler_list" = ""; then
2669 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2671 for depmode in $am_compiler_list; do
2672 # Setup a source with many dependencies, because some compilers
2673 # like to wrap large dependency lists on column 80 (with \), and
2674 # we should not choose a depcomp mode which is confused by this.
2676 # We need to recreate these files for each test, as the compiler may
2677 # overwrite some of them when testing with obscure command lines.
2678 # This happens at least with the AIX C compiler.
2680 for i in 1 2 3 4 5 6; do
2681 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2682 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2683 # Solaris 8's {/usr,}/bin/sh.
2684 touch sub/conftst$i.h
2686 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2690 # after this tag, mechanisms are not by side-effect, so they'll
2691 # only be used when explicitly requested
2692 if test "x$enable_dependency_tracking" = xyes; then
2700 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2701 # mode. It turns out that the SunPro C++ compiler does not properly
2702 # handle `-M -o', and we need to detect this.
2703 if depmode=$depmode \
2704 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2706 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2707 >/dev/null 2>conftest.err &&
2708 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2709 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2710 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2711 # icc doesn't choke on unknown options, it will just issue warnings
2712 # or remarks (even with -Werror). So we grep stderr for any message
2713 # that says an option was ignored or not supported.
2714 # When given -MP, icc 7.0 and 7.1 complain thusly:
2715 # icc: Command line warning: ignoring option '-M'; no argument required
2716 # The diagnosis changed in icc 8.0:
2717 # icc: Command line remark: option '-MP' not supported
2718 if (grep 'ignoring option' conftest.err ||
2719 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2720 am_cv_CXX_dependencies_compiler_type=$depmode
2729 am_cv_CXX_dependencies_compiler_type=none
2733 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2734 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2735 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2740 test "x$enable_dependency_tracking" != xno \
2741 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2742 am__fastdepCXX_TRUE=
2743 am__fastdepCXX_FALSE='#'
2745 am__fastdepCXX_TRUE='#'
2746 am__fastdepCXX_FALSE=
2750 # Check whether --enable-shared or --disable-shared was given.
2751 if test "${enable_shared+set}" = set; then
2752 enableval="$enable_shared"
2753 p=${PACKAGE-default}
2755 yes) enable_shared=yes ;;
2756 no) enable_shared=no ;;
2759 # Look at the argument we got. We use all the common list separators.
2760 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2761 for pkg in $enableval; do
2763 if test "X$pkg" = "X$p"; then
2774 # Check whether --enable-static or --disable-static was given.
2775 if test "${enable_static+set}" = set; then
2776 enableval="$enable_static"
2777 p=${PACKAGE-default}
2779 yes) enable_static=yes ;;
2780 no) enable_static=no ;;
2783 # Look at the argument we got. We use all the common list separators.
2784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2785 for pkg in $enableval; do
2787 if test "X$pkg" = "X$p"; then
2798 # Check whether --enable-fast-install or --disable-fast-install was given.
2799 if test "${enable_fast_install+set}" = set; then
2800 enableval="$enable_fast_install"
2801 p=${PACKAGE-default}
2803 yes) enable_fast_install=yes ;;
2804 no) enable_fast_install=no ;;
2806 enable_fast_install=no
2807 # Look at the argument we got. We use all the common list separators.
2808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2809 for pkg in $enableval; do
2811 if test "X$pkg" = "X$p"; then
2812 enable_fast_install=yes
2819 enable_fast_install=yes
2822 # Make sure we can run config.sub.
2823 $ac_config_sub sun4 >/dev/null 2>&1 ||
2824 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2825 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2826 { (exit 1); exit 1; }; }
2828 echo "$as_me:$LINENO: checking build system type" >&5
2829 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2830 if test "${ac_cv_build+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 ac_cv_build_alias=$build_alias
2834 test -z "$ac_cv_build_alias" &&
2835 ac_cv_build_alias=`$ac_config_guess`
2836 test -z "$ac_cv_build_alias" &&
2837 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2838 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2839 { (exit 1); exit 1; }; }
2840 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2841 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2842 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2843 { (exit 1); exit 1; }; }
2846 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2847 echo "${ECHO_T}$ac_cv_build" >&6
2849 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2850 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2851 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2854 echo "$as_me:$LINENO: checking host system type" >&5
2855 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2856 if test "${ac_cv_host+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 ac_cv_host_alias=$host_alias
2860 test -z "$ac_cv_host_alias" &&
2861 ac_cv_host_alias=$ac_cv_build_alias
2862 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2863 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2864 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2865 { (exit 1); exit 1; }; }
2868 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2869 echo "${ECHO_T}$ac_cv_host" >&6
2871 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2872 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2873 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test -n "$CC"; then
2910 echo "$as_me:$LINENO: result: $CC" >&5
2911 echo "${ECHO_T}$CC" >&6
2913 echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6
2918 if test -z "$ac_cv_prog_CC"; then
2920 # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_CC="gcc"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2949 echo "${ECHO_T}$ac_ct_CC" >&6
2951 echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2966 if test "${ac_cv_prog_CC+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}cc"
2980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 if test -n "$CC"; then
2990 echo "$as_me:$LINENO: result: $CC" >&5
2991 echo "${ECHO_T}$CC" >&6
2993 echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6
2998 if test -z "$ac_cv_prog_CC"; then
3000 # Extract the first word of "cc", so it can be a program name with args.
3001 set dummy cc; ac_word=$2
3002 echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_CC="cc"
3018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027 if test -n "$ac_ct_CC"; then
3028 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3029 echo "${ECHO_T}$ac_ct_CC" >&6
3031 echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6
3041 if test -z "$CC"; then
3042 # Extract the first word of "cc", so it can be a program name with args.
3043 set dummy cc; ac_word=$2
3044 echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_prog_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061 ac_prog_rejected=yes
3065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 if test $ac_prog_rejected = yes; then
3072 # We found a bogon in the path, so make sure we never use it.
3073 set dummy $ac_cv_prog_CC
3075 if test $# != 0; then
3076 # We chose a different compiler from the bogus one.
3077 # However, it has the same basename, so the bogon will be chosen
3078 # first if we set CC to just the basename; use the full file name.
3080 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3086 if test -n "$CC"; then
3087 echo "$as_me:$LINENO: result: $CC" >&5
3088 echo "${ECHO_T}$CC" >&6
3090 echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3095 if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3101 echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3103 if test "${ac_cv_prog_CC+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 if test -n "$CC"; then
3127 echo "$as_me:$LINENO: result: $CC" >&5
3128 echo "${ECHO_T}$CC" >&6
3130 echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6
3134 test -n "$CC" && break
3137 if test -z "$CC"; then
3141 # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 if test -n "$ac_ct_CC"; then
3149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_ac_ct_CC="$ac_prog"
3159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3170 echo "${ECHO_T}$ac_ct_CC" >&6
3172 echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3176 test -n "$ac_ct_CC" && break
3185 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details." >&5
3187 echo "$as_me: error: no acceptable C compiler found in \$PATH
3188 See \`config.log' for more details." >&2;}
3189 { (exit 1); exit 1; }; }
3191 # Provide some information about the compiler.
3192 echo "$as_me:$LINENO:" \
3193 "checking for C compiler version" >&5
3194 ac_compiler=`set X $ac_compile; echo $2`
3195 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3196 (eval $ac_compiler --version </dev/null >&5) 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }
3200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3201 (eval $ac_compiler -v </dev/null >&5) 2>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }
3205 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3206 (eval $ac_compiler -V </dev/null >&5) 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }
3211 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3212 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3213 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_c_werror_flag"
3244 || test ! -s conftest.err'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3267 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3268 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3269 GCC=`test $ac_compiler_gnu = yes && echo yes`
3270 ac_test_CFLAGS=${CFLAGS+set}
3271 ac_save_CFLAGS=$CFLAGS
3273 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3274 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3275 if test "${ac_cv_prog_cc_g+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3293 rm -f conftest.$ac_objext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295 (eval $ac_compile) 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -z "$ac_c_werror_flag"
3303 || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3324 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3325 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3326 if test "$ac_test_CFLAGS" = set; then
3327 CFLAGS=$ac_save_CFLAGS
3328 elif test $ac_cv_prog_cc_g = yes; then
3329 if test "$GCC" = yes; then
3335 if test "$GCC" = yes; then
3341 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3342 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3343 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 ac_cv_prog_cc_stdc=no
3348 cat >conftest.$ac_ext <<_ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3356 #include <sys/types.h>
3357 #include <sys/stat.h>
3358 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3359 struct buf { int x; };
3360 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3361 static char *e (p, i)
3367 static char *f (char * (*g) (char **, int), char **p, ...)
3372 s = g (p, va_arg (v,int));
3377 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3378 function prototypes and stuff, but not '\xHH' hex character constants.
3379 These don't provoke an error unfortunately, instead are silently treated
3380 as 'x'. The following induces an error, until -std1 is added to get
3381 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3382 array size at least. It's necessary to write '\x00'==0 to get something
3383 that's true only with -std1. */
3384 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3386 int test (int i, double x);
3387 struct s1 {int (*f) (int a);};
3388 struct s2 {int (*f) (double a);};
3389 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3395 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3400 # Don't try gcc -ansi; that turns off useful extensions and
3401 # breaks some systems' header files.
3402 # AIX -qlanglvl=ansi
3403 # Ultrix and OSF/1 -std1
3404 # HP-UX 10.20 and later -Ae
3405 # HP-UX older versions -Aa -D_HPUX_SOURCE
3406 # SVR4 -Xc -D__EXTENSIONS__
3407 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3409 CC="$ac_save_CC $ac_arg"
3410 rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag"
3420 || test ! -s conftest.err'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 ac_cv_prog_cc_stdc=$ac_arg
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3439 rm -f conftest.err conftest.$ac_objext
3441 rm -f conftest.$ac_ext conftest.$ac_objext
3446 case "x$ac_cv_prog_cc_stdc" in
3448 echo "$as_me:$LINENO: result: none needed" >&5
3449 echo "${ECHO_T}none needed" >&6 ;;
3451 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3452 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3453 CC="$CC $ac_cv_prog_cc_stdc" ;;
3456 # Some people use a C++ compiler to compile C. Since we use `exit',
3457 # in C++ we need to declare it. In case someone uses the same compiler
3458 # for both compiling C and C++ we need to have the C++ compiler decide
3459 # the declaration of exit, since it's the most demanding environment.
3460 cat >conftest.$ac_ext <<_ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
3474 { ac_try='test -z "$ac_c_werror_flag"
3475 || test ! -s conftest.err'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest.$ac_objext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 for ac_declaration in \
3489 'extern "C" void std::exit (int) throw (); using std::exit;' \
3490 'extern "C" void std::exit (int); using std::exit;' \
3491 'extern "C" void exit (int) throw ();' \
3492 'extern "C" void exit (int);' \
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3556 rm -f conftest.$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 if test -n "$ac_declaration"; then
3588 echo '#ifdef __cplusplus' >>confdefs.h
3589 echo $ac_declaration >>confdefs.h
3590 echo '#endif' >>confdefs.h
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 depcc="$CC" am_compiler_list=
3607 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3608 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3609 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3613 # We make a subdir and do the tests there. Otherwise we can end up
3614 # making bogus files that we don't know about and never remove. For
3615 # instance it was reported that on HP-UX the gcc test will end up
3616 # making a dummy file named `D' -- because `-MD' means `put the output
3619 # Copy depcomp to subdir because otherwise we won't find it if we're
3620 # using a relative directory.
3621 cp "$am_depcomp" conftest.dir
3623 # We will build objects and dependencies in a subdirectory because
3624 # it helps to detect inapplicable dependency modes. For instance
3625 # both Tru64's cc and ICC support -MD to output dependencies as a
3626 # side effect of compilation, but ICC will put the dependencies in
3627 # the current directory while Tru64 will put them in the object
3631 am_cv_CC_dependencies_compiler_type=none
3632 if test "$am_compiler_list" = ""; then
3633 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3635 for depmode in $am_compiler_list; do
3636 # Setup a source with many dependencies, because some compilers
3637 # like to wrap large dependency lists on column 80 (with \), and
3638 # we should not choose a depcomp mode which is confused by this.
3640 # We need to recreate these files for each test, as the compiler may
3641 # overwrite some of them when testing with obscure command lines.
3642 # This happens at least with the AIX C compiler.
3644 for i in 1 2 3 4 5 6; do
3645 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3646 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3647 # Solaris 8's {/usr,}/bin/sh.
3648 touch sub/conftst$i.h
3650 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3654 # after this tag, mechanisms are not by side-effect, so they'll
3655 # only be used when explicitly requested
3656 if test "x$enable_dependency_tracking" = xyes; then
3664 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3665 # mode. It turns out that the SunPro C++ compiler does not properly
3666 # handle `-M -o', and we need to detect this.
3667 if depmode=$depmode \
3668 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3670 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3671 >/dev/null 2>conftest.err &&
3672 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3673 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3674 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3675 # icc doesn't choke on unknown options, it will just issue warnings
3676 # or remarks (even with -Werror). So we grep stderr for any message
3677 # that says an option was ignored or not supported.
3678 # When given -MP, icc 7.0 and 7.1 complain thusly:
3679 # icc: Command line warning: ignoring option '-M'; no argument required
3680 # The diagnosis changed in icc 8.0:
3681 # icc: Command line remark: option '-MP' not supported
3682 if (grep 'ignoring option' conftest.err ||
3683 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3684 am_cv_CC_dependencies_compiler_type=$depmode
3693 am_cv_CC_dependencies_compiler_type=none
3697 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3698 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3699 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3704 test "x$enable_dependency_tracking" != xno \
3705 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3707 am__fastdepCC_FALSE='#'
3709 am__fastdepCC_TRUE='#'
3710 am__fastdepCC_FALSE=
3714 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3715 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3716 if test "${lt_cv_path_SED+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 # Loop through the user's path and test for sed and gsed.
3720 # Then use that list of sed's as ones to test for truncation.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for lt_ac_prog in sed gsed; do
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3729 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3736 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3737 # along with /bin/sed that truncates output.
3738 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3739 test ! -f $lt_ac_sed && continue
3740 cat /dev/null > conftest.in
3742 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3743 # Check for GNU sed and select it if it is found.
3744 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3745 lt_cv_path_SED=$lt_ac_sed
3749 cat conftest.in conftest.in >conftest.tmp
3750 mv conftest.tmp conftest.in
3751 cp conftest.in conftest.nl
3753 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3754 cmp -s conftest.out conftest.nl || break
3755 # 10000 chars as input seems more than enough
3756 test $lt_ac_count -gt 10 && break
3757 lt_ac_count=`expr $lt_ac_count + 1`
3758 if test $lt_ac_count -gt $lt_ac_max; then
3759 lt_ac_max=$lt_ac_count
3760 lt_cv_path_SED=$lt_ac_sed
3768 echo "$as_me:$LINENO: result: $SED" >&5
3769 echo "${ECHO_T}$SED" >&6
3771 echo "$as_me:$LINENO: checking for egrep" >&5
3772 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3773 if test "${ac_cv_prog_egrep+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3777 then ac_cv_prog_egrep='grep -E'
3778 else ac_cv_prog_egrep='egrep'
3781 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3782 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3783 EGREP=$ac_cv_prog_egrep
3787 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3788 if test "${with_gnu_ld+set}" = set; then
3789 withval="$with_gnu_ld"
3790 test "$withval" = no || with_gnu_ld=yes
3795 if test "$GCC" = yes; then
3796 # Check if gcc -print-prog-name=ld gives a path.
3797 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3798 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3801 # gcc leaves a trailing carriage return which upsets mingw
3802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3807 # Accept absolute paths.
3809 re_direlt='/[^/][^/]*/\.\./'
3810 # Canonicalize the pathname of ld
3811 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3813 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3815 test -z "$LD" && LD="$ac_prog"
3818 # If it fails, then pretend we aren't using GCC.
3822 # If it is relative, then search for the first ld in PATH.
3826 elif test "$with_gnu_ld" = yes; then
3827 echo "$as_me:$LINENO: checking for GNU ld" >&5
3828 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3830 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3831 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3833 if test "${lt_cv_path_LD+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 if test -z "$LD"; then
3837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3838 for ac_dir in $PATH; do
3840 test -z "$ac_dir" && ac_dir=.
3841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3842 lt_cv_path_LD="$ac_dir/$ac_prog"
3843 # Check to see if the program is GNU ld. I'd rather use --version,
3844 # but apparently some variants of GNU ld only accept -v.
3845 # Break only if it was the GNU/non-GNU ld that we prefer.
3846 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3847 *GNU* | *'with BFD'*)
3848 test "$with_gnu_ld" != no && break
3851 test "$with_gnu_ld" != yes && break
3858 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3863 if test -n "$LD"; then
3864 echo "$as_me:$LINENO: result: $LD" >&5
3865 echo "${ECHO_T}$LD" >&6
3867 echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3870 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3871 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3872 { (exit 1); exit 1; }; }
3873 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3874 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3875 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3879 case `$LD -v 2>&1 </dev/null` in
3880 *GNU* | *'with BFD'*)
3881 lt_cv_prog_gnu_ld=yes
3884 lt_cv_prog_gnu_ld=no
3888 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3889 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3890 with_gnu_ld=$lt_cv_prog_gnu_ld
3893 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3894 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3895 if test "${lt_cv_ld_reload_flag+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 lt_cv_ld_reload_flag='-r'
3900 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3901 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3902 reload_flag=$lt_cv_ld_reload_flag
3903 case $reload_flag in
3905 *) reload_flag=" $reload_flag" ;;
3907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3910 if test "$GCC" = yes; then
3911 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3918 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3919 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3920 if test "${lt_cv_path_NM+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 if test -n "$NM"; then
3924 # Let the user override the test.
3927 lt_nm_to_check="${ac_tool_prefix}nm"
3928 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3929 lt_nm_to_check="$lt_nm_to_check nm"
3931 for lt_tmp_nm in $lt_nm_to_check; do
3932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3933 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3935 test -z "$ac_dir" && ac_dir=.
3936 tmp_nm="$ac_dir/$lt_tmp_nm"
3937 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3938 # Check to see if the nm accepts a BSD-compat flag.
3939 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3940 # nm: unknown option "B" ignored
3941 # Tru64's nm complains that /dev/null is an invalid object file
3942 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3943 */dev/null* | *'Invalid file or object type'*)
3944 lt_cv_path_NM="$tmp_nm -B"
3948 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3950 lt_cv_path_NM="$tmp_nm -p"
3954 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3955 continue # so that we can try to find one that supports BSD flags
3964 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3967 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3968 echo "${ECHO_T}$lt_cv_path_NM" >&6
3971 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3972 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3974 if test "$LN_S" = "ln -s"; then
3975 echo "$as_me:$LINENO: result: yes" >&5
3976 echo "${ECHO_T}yes" >&6
3978 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3979 echo "${ECHO_T}no, using $LN_S" >&6
3982 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3983 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3984 if test "${lt_cv_deplibs_check_method+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 lt_cv_file_magic_cmd='$MAGIC_CMD'
3988 lt_cv_file_magic_test_file=
3989 lt_cv_deplibs_check_method='unknown'
3990 # Need to set the preceding variable on all platforms that support
3991 # interlibrary dependencies.
3992 # 'none' -- dependencies not supported.
3993 # `unknown' -- same as none, but documents that we really don't know.
3994 # 'pass_all' -- all dependencies passed with no checks.
3995 # 'test_compile' -- check by making test program.
3996 # 'file_magic [[regex]]' -- check by looking for files in library path
3997 # which responds to the $file_magic_cmd with a given extended regex.
3998 # If you have `file' or equivalent on your system and you're not sure
3999 # whether `pass_all' will *always* work, you probably want this one.
4003 lt_cv_deplibs_check_method=pass_all
4007 lt_cv_deplibs_check_method=pass_all
4011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4012 lt_cv_file_magic_cmd='/usr/bin/file -L'
4013 lt_cv_file_magic_test_file=/shlib/libc.so
4017 # func_win32_libid is a shell function defined in ltmain.sh
4018 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4019 lt_cv_file_magic_cmd='func_win32_libid'
4023 # Base MSYS/MinGW do not provide the 'file' command needed by
4024 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4025 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4026 lt_cv_file_magic_cmd='$OBJDUMP -f'
4029 darwin* | rhapsody*)
4030 lt_cv_deplibs_check_method=pass_all
4033 freebsd* | kfreebsd*-gnu | dragonfly*)
4034 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4037 # Not sure whether the presence of OpenBSD here was a mistake.
4038 # Let's accept both of them until this is cleared up.
4039 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4040 lt_cv_file_magic_cmd=/usr/bin/file
4041 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4045 lt_cv_deplibs_check_method=pass_all
4050 lt_cv_deplibs_check_method=pass_all
4053 hpux10.20* | hpux11*)
4054 lt_cv_file_magic_cmd=/usr/bin/file
4057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4058 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4061 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]'
4062 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4065 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4066 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4076 irix5* | irix6* | nonstopux*)
4078 *-32|*"-32 ") libmagic=32-bit;;
4079 *-n32|*"-n32 ") libmagic=N32;;
4080 *-64|*"-64 ") libmagic=64-bit;;
4081 *) libmagic=never-match;;
4083 lt_cv_deplibs_check_method=pass_all
4086 # This must be Linux ELF.
4088 lt_cv_deplibs_check_method=pass_all
4092 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4101 lt_cv_file_magic_cmd=/usr/bin/file
4102 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4106 lt_cv_deplibs_check_method=unknown
4110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4117 osf3* | osf4* | osf5*)
4118 lt_cv_deplibs_check_method=pass_all
4122 lt_cv_deplibs_check_method=pass_all
4126 case $host_vendor in
4128 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]'
4129 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4132 lt_cv_deplibs_check_method=pass_all
4135 lt_cv_file_magic_cmd='/bin/file'
4136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4139 lt_cv_file_magic_cmd='/bin/file'
4140 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4141 lt_cv_file_magic_test_file=/lib/libc.so
4144 lt_cv_deplibs_check_method=pass_all
4147 lt_cv_deplibs_check_method=pass_all
4152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4153 lt_cv_deplibs_check_method=pass_all
4158 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4159 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4160 file_magic_cmd=$lt_cv_file_magic_cmd
4161 deplibs_check_method=$lt_cv_deplibs_check_method
4162 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4167 # If no C compiler was specified, use CC.
4170 # If no C compiler flags were specified, use CFLAGS.
4171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4173 # Allow CC to be a program name with arguments.
4177 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4178 if test "${enable_libtool_lock+set}" = set; then
4179 enableval="$enable_libtool_lock"
4182 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4184 # Some flags need to be propagated to the compiler or linker for good
4188 # Find out which ABI we are using.
4189 echo 'int i;' > conftest.$ac_ext
4190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; then
4195 case `/usr/bin/file conftest.$ac_objext` in
4207 # Find out which ABI we are using.
4208 echo '#line 4208 "configure"' > conftest.$ac_ext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; then
4214 if test "$lt_cv_prog_gnu_ld" = yes; then
4215 case `/usr/bin/file conftest.$ac_objext` in
4217 LD="${LD-ld} -melf32bsmip"
4220 LD="${LD-ld} -melf32bmipn32"
4223 LD="${LD-ld} -melf64bmip"
4227 case `/usr/bin/file conftest.$ac_objext` in
4243 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4244 # Find out which ABI we are using.
4245 echo 'int i;' > conftest.$ac_ext
4246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4247 (eval $ac_compile) 2>&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; then
4251 case `/usr/bin/file conftest.o` in
4255 LD="${LD-ld} -m elf_i386"
4257 ppc64-*linux*|powerpc64-*linux*)
4258 LD="${LD-ld} -m elf32ppclinux"
4261 LD="${LD-ld} -m elf_s390"
4264 LD="${LD-ld} -m elf32_sparc"
4271 LD="${LD-ld} -m elf_x86_64"
4273 ppc*-*linux*|powerpc*-*linux*)
4274 LD="${LD-ld} -m elf64ppc"
4277 LD="${LD-ld} -m elf64_s390"
4280 LD="${LD-ld} -m elf64_sparc"
4290 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4291 SAVE_CFLAGS="$CFLAGS"
4292 CFLAGS="$CFLAGS -belf"
4293 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4294 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4295 if test "${lt_cv_cc_needs_belf+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304 cat >conftest.$ac_ext <<_ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4319 rm -f conftest.$ac_objext conftest$ac_exeext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4321 (eval $ac_link) 2>conftest.er1
4323 grep -v '^ *+' conftest.er1 >conftest.err
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try='test -z "$ac_c_werror_flag"
4329 || test ! -s conftest.err'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try='test -s conftest$ac_exeext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 lt_cv_cc_needs_belf=yes
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 lt_cv_cc_needs_belf=no
4348 rm -f conftest.err conftest.$ac_objext \
4349 conftest$ac_exeext conftest.$ac_ext
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4358 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4359 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4360 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4361 CFLAGS="$SAVE_CFLAGS"
4365 # Find out which ABI we are using.
4366 echo 'int i;' > conftest.$ac_ext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; then
4372 case `/usr/bin/file conftest.o` in
4374 case $lt_cv_prog_gnu_ld in
4375 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4376 *) LD="${LD-ld} -64" ;;
4387 need_locks="$enable_libtool_lock"
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4396 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4397 # On Suns, sometimes $CPP names a directory.
4398 if test -n "$CPP" && test -d "$CPP"; then
4401 if test -z "$CPP"; then
4402 if test "${ac_cv_prog_CPP+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 # Double quotes because CPP needs to be expanded
4406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4409 for ac_c_preproc_warn_flag in '' yes
4411 # Use a header file that comes with gcc, so configuring glibc
4412 # with a fresh cross-compiler works.
4413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4414 # <limits.h> exists even on freestanding compilers.
4415 # On the NeXT, cc -E runs the code through the compiler's parser,
4416 # not just through cpp. "Syntax error" is here to catch this case.
4417 cat >conftest.$ac_ext <<_ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4424 # include <limits.h>
4426 # include <assert.h>
4430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4433 grep -v '^ *+' conftest.er1 >conftest.err
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } >/dev/null; then
4438 if test -s conftest.err; then
4439 ac_cpp_err=$ac_c_preproc_warn_flag
4440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4447 if test -z "$ac_cpp_err"; then
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 # Broken: fails on valid input.
4456 rm -f conftest.err conftest.$ac_ext
4458 # OK, works on sane cases. Now check whether non-existent headers
4459 # can be detected and how.
4460 cat >conftest.$ac_ext <<_ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 #include <ac_nonexistent.h>
4468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4471 grep -v '^ *+' conftest.er1 >conftest.err
4473 cat conftest.err >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } >/dev/null; then
4476 if test -s conftest.err; then
4477 ac_cpp_err=$ac_c_preproc_warn_flag
4478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4485 if test -z "$ac_cpp_err"; then
4486 # Broken: success on invalid input.
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 # Passes both tests.
4496 rm -f conftest.err conftest.$ac_ext
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.$ac_ext
4501 if $ac_preproc_ok; then
4513 echo "$as_me:$LINENO: result: $CPP" >&5
4514 echo "${ECHO_T}$CPP" >&6
4516 for ac_c_preproc_warn_flag in '' yes
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4531 # include <limits.h>
4533 # include <assert.h>
4537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4540 grep -v '^ *+' conftest.er1 >conftest.err
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev/null; then
4545 if test -s conftest.err; then
4546 ac_cpp_err=$ac_c_preproc_warn_flag
4547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4554 if test -z "$ac_cpp_err"; then
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4560 # Broken: fails on valid input.
4563 rm -f conftest.err conftest.$ac_ext
4565 # OK, works on sane cases. Now check whether non-existent headers
4566 # can be detected and how.
4567 cat >conftest.$ac_ext <<_ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 #include <ac_nonexistent.h>
4575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } >/dev/null; then
4583 if test -s conftest.err; then
4584 ac_cpp_err=$ac_c_preproc_warn_flag
4585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4592 if test -z "$ac_cpp_err"; then
4593 # Broken: success on invalid input.
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4599 # Passes both tests.
4603 rm -f conftest.err conftest.$ac_ext
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.err conftest.$ac_ext
4608 if $ac_preproc_ok; then
4611 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4612 See \`config.log' for more details." >&5
4613 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4614 See \`config.log' for more details." >&2;}
4615 { (exit 1); exit 1; }; }
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4625 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4626 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4627 if test "${ac_cv_header_stdc+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4649 rm -f conftest.$ac_objext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651 (eval $ac_compile) 2>conftest.er1
4653 grep -v '^ *+' conftest.er1 >conftest.err
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_c_werror_flag"
4659 || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_cv_header_stdc=yes
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ac_cv_header_stdc=no
4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4680 if test $ac_cv_header_stdc = yes; then
4681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4692 $EGREP "memchr" >/dev/null 2>&1; then
4695 ac_cv_header_stdc=no
4701 if test $ac_cv_header_stdc = yes; then
4702 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4703 cat >conftest.$ac_ext <<_ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713 $EGREP "free" >/dev/null 2>&1; then
4716 ac_cv_header_stdc=no
4722 if test $ac_cv_header_stdc = yes; then
4723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4724 if test "$cross_compiling" = yes; then
4727 cat >conftest.$ac_ext <<_ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4734 #if ((' ' & 0x0FF) == 0x020)
4735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4738 # define ISLOWER(c) \
4739 (('a' <= (c) && (c) <= 'i') \
4740 || ('j' <= (c) && (c) <= 'r') \
4741 || ('s' <= (c) && (c) <= 'z'))
4742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4750 for (i = 0; i < 256; i++)
4751 if (XOR (islower (i), ISLOWER (i))
4752 || toupper (i) != TOUPPER (i))
4757 rm -f conftest$ac_exeext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4759 (eval $ac_link) 2>&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4770 echo "$as_me: program exited with status $ac_status" >&5
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4775 ac_cv_header_stdc=no
4777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4781 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4782 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4783 if test $ac_cv_header_stdc = yes; then
4785 cat >>confdefs.h <<\_ACEOF
4786 #define STDC_HEADERS 1
4791 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4801 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4802 inttypes.h stdint.h unistd.h
4804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4805 echo "$as_me:$LINENO: checking for $ac_header" >&5
4806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 cat >conftest.$ac_ext <<_ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 $ac_includes_default
4818 #include <$ac_header>
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4824 grep -v '^ *+' conftest.er1 >conftest.err
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -z "$ac_c_werror_flag"
4830 || test ! -s conftest.err'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; } &&
4836 { ac_try='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4842 eval "$as_ac_Header=yes"
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4847 eval "$as_ac_Header=no"
4849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4854 cat >>confdefs.h <<_ACEOF
4855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4864 for ac_header in dlfcn.h
4866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4868 echo "$as_me:$LINENO: checking for $ac_header" >&5
4869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4876 # Is the header compilable?
4877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4879 cat >conftest.$ac_ext <<_ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 $ac_includes_default
4886 #include <$ac_header>
4888 rm -f conftest.$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>conftest.er1
4892 grep -v '^ *+' conftest.er1 >conftest.err
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_header_compiler=yes
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4915 ac_header_compiler=no
4917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4919 echo "${ECHO_T}$ac_header_compiler" >&6
4921 # Is the header present?
4922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4924 cat >conftest.$ac_ext <<_ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 #include <$ac_header>
4932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4935 grep -v '^ *+' conftest.er1 >conftest.err
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } >/dev/null; then
4940 if test -s conftest.err; then
4941 ac_cpp_err=$ac_c_preproc_warn_flag
4942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4949 if test -z "$ac_cpp_err"; then
4950 ac_header_preproc=yes
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4955 ac_header_preproc=no
4957 rm -f conftest.err conftest.$ac_ext
4958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4959 echo "${ECHO_T}$ac_header_preproc" >&6
4961 # So? What about this header?
4962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4968 ac_header_preproc=yes
4971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4985 ## ------------------------------------------ ##
4986 ## Report this to the AC_PACKAGE_NAME lists. ##
4987 ## ------------------------------------------ ##
4990 sed "s/^/$as_me: WARNING: /" >&2
4993 echo "$as_me:$LINENO: checking for $ac_header" >&5
4994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 eval "$as_ac_Header=\$ac_header_preproc"
5000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5005 cat >>confdefs.h <<_ACEOF
5006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5015 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5016 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5017 (test "X$CXX" != "Xg++"))) ; then
5019 ac_cpp='$CXXCPP $CPPFLAGS'
5020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5023 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5024 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5025 if test -z "$CXXCPP"; then
5026 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 # Double quotes because CXXCPP needs to be expanded
5030 for CXXCPP in "$CXX -E" "/lib/cpp"
5033 for ac_cxx_preproc_warn_flag in '' yes
5035 # Use a header file that comes with gcc, so configuring glibc
5036 # with a fresh cross-compiler works.
5037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5038 # <limits.h> exists even on freestanding compilers.
5039 # On the NeXT, cc -E runs the code through the compiler's parser,
5040 # not just through cpp. "Syntax error" is here to catch this case.
5041 cat >conftest.$ac_ext <<_ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5048 # include <limits.h>
5050 # include <assert.h>
5054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5057 grep -v '^ *+' conftest.er1 >conftest.err
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } >/dev/null; then
5062 if test -s conftest.err; then
5063 ac_cpp_err=$ac_cxx_preproc_warn_flag
5064 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5071 if test -z "$ac_cpp_err"; then
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 # Broken: fails on valid input.
5080 rm -f conftest.err conftest.$ac_ext
5082 # OK, works on sane cases. Now check whether non-existent headers
5083 # can be detected and how.
5084 cat >conftest.$ac_ext <<_ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 #include <ac_nonexistent.h>
5092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5095 grep -v '^ *+' conftest.er1 >conftest.err
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } >/dev/null; then
5100 if test -s conftest.err; then
5101 ac_cpp_err=$ac_cxx_preproc_warn_flag
5102 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5109 if test -z "$ac_cpp_err"; then
5110 # Broken: success on invalid input.
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 # Passes both tests.
5120 rm -f conftest.err conftest.$ac_ext
5123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124 rm -f conftest.err conftest.$ac_ext
5125 if $ac_preproc_ok; then
5130 ac_cv_prog_CXXCPP=$CXXCPP
5133 CXXCPP=$ac_cv_prog_CXXCPP
5135 ac_cv_prog_CXXCPP=$CXXCPP
5137 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5138 echo "${ECHO_T}$CXXCPP" >&6
5140 for ac_cxx_preproc_warn_flag in '' yes
5142 # Use a header file that comes with gcc, so configuring glibc
5143 # with a fresh cross-compiler works.
5144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5145 # <limits.h> exists even on freestanding compilers.
5146 # On the NeXT, cc -E runs the code through the compiler's parser,
5147 # not just through cpp. "Syntax error" is here to catch this case.
5148 cat >conftest.$ac_ext <<_ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5155 # include <limits.h>
5157 # include <assert.h>
5161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5164 grep -v '^ *+' conftest.er1 >conftest.err
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } >/dev/null; then
5169 if test -s conftest.err; then
5170 ac_cpp_err=$ac_cxx_preproc_warn_flag
5171 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5178 if test -z "$ac_cpp_err"; then
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 # Broken: fails on valid input.
5187 rm -f conftest.err conftest.$ac_ext
5189 # OK, works on sane cases. Now check whether non-existent headers
5190 # can be detected and how.
5191 cat >conftest.$ac_ext <<_ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 #include <ac_nonexistent.h>
5199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } >/dev/null; then
5207 if test -s conftest.err; then
5208 ac_cpp_err=$ac_cxx_preproc_warn_flag
5209 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5216 if test -z "$ac_cpp_err"; then
5217 # Broken: success on invalid input.
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 # Passes both tests.
5227 rm -f conftest.err conftest.$ac_ext
5230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5231 rm -f conftest.err conftest.$ac_ext
5232 if $ac_preproc_ok; then
5235 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5236 See \`config.log' for more details." >&5
5237 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5238 See \`config.log' for more details." >&2;}
5239 { (exit 1); exit 1; }; }
5243 ac_cpp='$CXXCPP $CPPFLAGS'
5244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5252 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5253 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5255 if test -n "$ac_tool_prefix"; then
5256 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_prog_F77+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 if test -n "$F77"; then
5266 ac_cv_prog_F77="$F77" # Let the user override the test.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 if test -n "$F77"; then
5286 echo "$as_me:$LINENO: result: $F77" >&5
5287 echo "${ECHO_T}$F77" >&6
5289 echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6
5293 test -n "$F77" && break
5296 if test -z "$F77"; then
5298 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5300 # Extract the first word of "$ac_prog", so it can be a program name with args.
5301 set dummy $ac_prog; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 if test -n "$ac_ct_F77"; then
5308 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_ac_ct_F77="$ac_prog"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5327 if test -n "$ac_ct_F77"; then
5328 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5329 echo "${ECHO_T}$ac_ct_F77" >&6
5331 echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5335 test -n "$ac_ct_F77" && break
5342 # Provide some information about the compiler.
5343 echo "$as_me:5343:" \
5344 "checking for Fortran 77 compiler version" >&5
5345 ac_compiler=`set X $ac_compile; echo $2`
5346 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5347 (eval $ac_compiler --version </dev/null >&5) 2>&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }
5351 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5352 (eval $ac_compiler -v </dev/null >&5) 2>&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }
5356 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5357 (eval $ac_compiler -V </dev/null >&5) 2>&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }
5363 # If we don't use `.F' as extension, the preprocessor is not run on the
5364 # input file. (Note that this only needs to work for GNU compilers.)
5367 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5368 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5369 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 cat >conftest.$ac_ext <<_ACEOF
5380 rm -f conftest.$ac_objext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5382 (eval $ac_compile) 2>conftest.er1
5384 grep -v '^ *+' conftest.er1 >conftest.err
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } &&
5389 { ac_try='test -z "$ac_f77_werror_flag"
5390 || test ! -s conftest.err'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; } &&
5396 { ac_try='test -s conftest.$ac_objext'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5410 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5413 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5414 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5416 ac_test_FFLAGS=${FFLAGS+set}
5417 ac_save_FFLAGS=$FFLAGS
5419 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5420 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5421 if test "${ac_cv_prog_f77_g+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 cat >conftest.$ac_ext <<_ACEOF
5430 rm -f conftest.$ac_objext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432 (eval $ac_compile) 2>conftest.er1
5434 grep -v '^ *+' conftest.er1 >conftest.err
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -z "$ac_f77_werror_flag"
5440 || test ! -s conftest.err'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; } &&
5446 { ac_try='test -s conftest.$ac_objext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 ac_cv_prog_f77_g=yes
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5463 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5464 if test "$ac_test_FFLAGS" = set; then
5465 FFLAGS=$ac_save_FFLAGS
5466 elif test $ac_cv_prog_f77_g = yes; then
5467 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5473 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5480 G77=`test $ac_compiler_gnu = yes && echo yes`
5482 ac_cpp='$CPP $CPPFLAGS'
5483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5489 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5491 # find the maximum length of command line arguments
5492 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5493 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5494 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 # On DJGPP, this test can blow up pretty badly due to problems in libc
5503 # (any single argument exceeding 2000 bytes causes a buffer overrun
5504 # during glob expansion). Even if it were fixed, the result of this
5505 # check would be larger than it should be.
5506 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5510 # Under GNU Hurd, this test is not required because there is
5511 # no limit to the length of command line arguments.
5512 # Libtool will interpret -1 as no limit whatsoever
5513 lt_cv_sys_max_cmd_len=-1;
5517 # On Win9x/ME, this test blows up -- it succeeds, but takes
5518 # about 5 minutes as the teststring grows exponentially.
5519 # Worse, since 9x/ME are not pre-emptively multitasking,
5520 # you end up with a "frozen" computer, even though with patience
5521 # the test eventually succeeds (with a max line length of 256k).
5522 # Instead, let's just punt: use the minimum linelength reported by
5523 # all of the supported platforms: 8192 (on NT/2K/XP).
5524 lt_cv_sys_max_cmd_len=8192;
5528 # On AmigaOS with pdksh, this test takes hours, literally.
5529 # So we just punt and use a minimum line length of 8192.
5530 lt_cv_sys_max_cmd_len=8192;
5533 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5534 # This has been around since 386BSD, at least. Likely further.
5535 if test -x /sbin/sysctl; then
5536 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5537 elif test -x /usr/sbin/sysctl; then
5538 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5540 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5542 # And add a safety zone
5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5548 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5549 lt_cv_sys_max_cmd_len=196608
5553 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5554 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5555 # nice to cause kernel panics so lets avoid the loop below.
5556 # First set a reasonable default.
5557 lt_cv_sys_max_cmd_len=16384
5559 if test -x /sbin/sysconfig; then
5560 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5561 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5566 lt_cv_sys_max_cmd_len=102400
5568 sysv5* | sco5v6* | sysv4.2uw2*)
5569 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5570 if test -n "$kargmax"; then
5571 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5573 lt_cv_sys_max_cmd_len=32768
5577 # If test is not a shell built-in, we'll probably end up computing a
5578 # maximum length that is only half of the actual maximum length, but
5580 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5581 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5582 = "XX$teststring") >/dev/null 2>&1 &&
5583 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5584 lt_cv_sys_max_cmd_len=$new_result &&
5585 test $i != 17 # 1/2 MB should be enough
5588 teststring=$teststring$teststring
5591 # Add a significant safety factor because C++ compilers can tack on massive
5592 # amounts of additional arguments before passing them to the linker.
5593 # It appears as though 1/2 is a usable value.
5594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5600 if test -n $lt_cv_sys_max_cmd_len ; then
5601 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5602 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5604 echo "$as_me:$LINENO: result: none" >&5
5605 echo "${ECHO_T}none" >&6
5611 # Check for command to grab the raw symbol name followed by C symbol from nm.
5612 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5613 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5614 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 # These are sane defaults that work on at least a few old systems.
5619 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5621 # Character class describing NM global symbol codes.
5622 symcode='[BCDEGRST]'
5624 # Regexp to match symbols that can be accessed directly from C.
5625 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5627 # Transform an extracted symbol line into a proper C declaration
5628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5630 # Transform an extracted symbol line into symbol name and symbol address
5631 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'"
5633 # Define system-specific variables.
5638 cygwin* | mingw* | pw32*)
5639 symcode='[ABCDGISTW]'
5641 hpux*) # Its linker distinguishes data from code symbols
5642 if test "$host_cpu" = ia64; then
5643 symcode='[ABCDEGRST]'
5645 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5646 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'"
5649 if test "$host_cpu" = ia64; then
5650 symcode='[ABCDGIRSTW]'
5651 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5652 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'"
5656 symcode='[BCDEGRST]'
5659 symcode='[BCDEGQRST]'
5670 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5678 # Handle CRLF in mingw tool chain
5682 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5686 # If we're using GNU nm, then use its standard symbol codes.
5687 case `$NM -V 2>&1` in
5688 *GNU* | *'with BFD'*)
5689 symcode='[ABCDGIRSTW]' ;;
5692 # Try without a prefix undercore, then with it.
5693 for ac_symprfx in "" "_"; do
5695 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5696 symxfrm="\\1 $ac_symprfx\\2 \\2"
5698 # Write the raw and C identifiers.
5699 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5701 # Check to see that the pipe works correctly.
5705 cat > conftest.$ac_ext <<EOF
5710 void nm_test_func(){}
5714 int main(){nm_test_var='a';nm_test_func();return(0);}
5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718 (eval $ac_compile) 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; then
5722 # Now try to grab the symbols.
5724 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5725 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && test -s "$nlist"; then
5729 # Try sorting and uniquifying the output.
5730 if sort "$nlist" | uniq > "$nlist"T; then
5731 mv -f "$nlist"T "$nlist"
5736 # Make sure that we snagged all the symbols we need.
5737 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5738 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5739 cat <<EOF > conftest.$ac_ext
5745 # Now generate the symbol file.
5746 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5748 cat <<EOF >> conftest.$ac_ext
5749 #if defined (__STDC__) && __STDC__
5750 # define lt_ptr_t void *
5752 # define lt_ptr_t char *
5756 /* The mapping between symbol names and symbols. */
5761 lt_preloaded_symbols[] =
5764 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5765 cat <<\EOF >> conftest.$ac_ext
5773 # Now try linking the two files.
5774 mv conftest.$ac_objext conftstm.$ac_objext
5775 lt_save_LIBS="$LIBS"
5776 lt_save_CFLAGS="$CFLAGS"
5777 LIBS="conftstm.$ac_objext"
5778 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5780 (eval $ac_link) 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5786 LIBS="$lt_save_LIBS"
5787 CFLAGS="$lt_save_CFLAGS"
5789 echo "cannot find nm_test_func in $nlist" >&5
5792 echo "cannot find nm_test_var in $nlist" >&5
5795 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5798 echo "$progname: failed program was:" >&5
5799 cat conftest.$ac_ext >&5
5801 rm -f conftest* conftst*
5803 # Do not use the global_symbol_pipe unless it works.
5804 if test "$pipe_works" = yes; then
5807 lt_cv_sys_global_symbol_pipe=
5813 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5814 lt_cv_sys_global_symbol_to_cdecl=
5816 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5817 echo "$as_me:$LINENO: result: failed" >&5
5818 echo "${ECHO_T}failed" >&6
5820 echo "$as_me:$LINENO: result: ok" >&5
5821 echo "${ECHO_T}ok" >&6
5824 echo "$as_me:$LINENO: checking for objdir" >&5
5825 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5826 if test "${lt_cv_objdir+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 rm -f .libs 2>/dev/null
5830 mkdir .libs 2>/dev/null
5831 if test -d .libs; then
5834 # MS-DOS does not allow filenames that begin with a dot.
5837 rmdir .libs 2>/dev/null
5839 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5840 echo "${ECHO_T}$lt_cv_objdir" >&6
5841 objdir=$lt_cv_objdir
5849 # AIX sometimes has problems with the GCC collect2 program. For some
5850 # reason, if we set the COLLECT_NAMES environment variable, the problems
5851 # vanish in a puff of smoke.
5852 if test "X${COLLECT_NAMES+set}" != Xset; then
5854 export COLLECT_NAMES
5859 # Sed substitution that helps us do robust quoting. It backslashifies
5860 # metacharacters that are still active within double-quoted strings.
5861 Xsed='sed -e 1s/^X//'
5862 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5864 # Same as above, but do not quote variable references.
5865 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5867 # Sed substitution to delay expansion of an escaped shell variable in a
5868 # double_quote_subst'ed string.
5869 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5871 # Sed substitution to avoid accidental globbing in evaled expressions
5872 no_glob_subst='s/\*/\\\*/g'
5878 default_ofile=libtool
5879 can_build_shared=yes
5881 # All known linkers require a `.a' archive for static linking (except MSVC,
5882 # which needs '.lib').
5884 ltmain="$ac_aux_dir/ltmain.sh"
5885 ofile="$default_ofile"
5886 with_gnu_ld="$lt_cv_prog_gnu_ld"
5888 if test -n "$ac_tool_prefix"; then
5889 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5890 set dummy ${ac_tool_prefix}ar; ac_word=$2
5891 echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5893 if test "${ac_cv_prog_AR+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 if test -n "$AR"; then
5897 ac_cv_prog_AR="$AR" # Let the user override the test.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_AR="${ac_tool_prefix}ar"
5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 if test -n "$AR"; then
5917 echo "$as_me:$LINENO: result: $AR" >&5
5918 echo "${ECHO_T}$AR" >&6
5920 echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6
5925 if test -z "$ac_cv_prog_AR"; then
5927 # Extract the first word of "ar", so it can be a program name with args.
5928 set dummy ar; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 if test -n "$ac_ct_AR"; then
5935 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_ac_ct_AR="ar"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5954 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5955 if test -n "$ac_ct_AR"; then
5956 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5957 echo "${ECHO_T}$ac_ct_AR" >&6
5959 echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5968 if test -n "$ac_tool_prefix"; then
5969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5971 echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973 if test "${ac_cv_prog_RANLIB+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 if test -n "$RANLIB"; then
5977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 RANLIB=$ac_cv_prog_RANLIB
5996 if test -n "$RANLIB"; then
5997 echo "$as_me:$LINENO: result: $RANLIB" >&5
5998 echo "${ECHO_T}$RANLIB" >&6
6000 echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6
6005 if test -z "$ac_cv_prog_RANLIB"; then
6006 ac_ct_RANLIB=$RANLIB
6007 # Extract the first word of "ranlib", so it can be a program name with args.
6008 set dummy ranlib; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 if test -n "$ac_ct_RANLIB"; then
6015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024 ac_cv_prog_ac_ct_RANLIB="ranlib"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6035 if test -n "$ac_ct_RANLIB"; then
6036 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6037 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6039 echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6043 RANLIB=$ac_ct_RANLIB
6045 RANLIB="$ac_cv_prog_RANLIB"
6048 if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}strip; ac_word=$2
6051 echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6053 if test "${ac_cv_prog_STRIP+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 if test -n "$STRIP"; then
6057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 STRIP=$ac_cv_prog_STRIP
6076 if test -n "$STRIP"; then
6077 echo "$as_me:$LINENO: result: $STRIP" >&5
6078 echo "${ECHO_T}$STRIP" >&6
6080 echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6
6085 if test -z "$ac_cv_prog_STRIP"; then
6087 # Extract the first word of "strip", so it can be a program name with args.
6088 set dummy strip; ac_word=$2
6089 echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6091 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 if test -n "$ac_ct_STRIP"; then
6095 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104 ac_cv_prog_ac_ct_STRIP="strip"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6114 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6115 if test -n "$ac_ct_STRIP"; then
6116 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6117 echo "${ECHO_T}$ac_ct_STRIP" >&6
6119 echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6
6125 STRIP="$ac_cv_prog_STRIP"
6130 old_CFLAGS="$CFLAGS"
6132 # Set sane defaults for various variables
6133 test -z "$AR" && AR=ar
6134 test -z "$AR_FLAGS" && AR_FLAGS=cru
6135 test -z "$AS" && AS=as
6136 test -z "$CC" && CC=cc
6137 test -z "$LTCC" && LTCC=$CC
6138 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6139 test -z "$DLLTOOL" && DLLTOOL=dlltool
6140 test -z "$LD" && LD=ld
6141 test -z "$LN_S" && LN_S="ln -s"
6142 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6143 test -z "$NM" && NM=nm
6144 test -z "$SED" && SED=sed
6145 test -z "$OBJDUMP" && OBJDUMP=objdump
6146 test -z "$RANLIB" && RANLIB=:
6147 test -z "$STRIP" && STRIP=:
6148 test -z "$ac_objext" && ac_objext=o
6150 # Determine commands to create old-style static archives.
6151 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6152 old_postinstall_cmds='chmod 644 $oldlib'
6153 old_postuninstall_cmds=
6155 if test -n "$RANLIB"; then
6158 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6161 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6164 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6167 for cc_temp in $compiler""; do
6169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6175 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6178 # Only perform the check for file, if the check method requires it
6179 case $deplibs_check_method in
6181 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6182 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6183 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6184 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6192 lt_save_MAGIC_CMD="$MAGIC_CMD"
6193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6194 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6195 for ac_dir in $ac_dummy; do
6197 test -z "$ac_dir" && ac_dir=.
6198 if test -f $ac_dir/${ac_tool_prefix}file; then
6199 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6200 if test -n "$file_magic_test_file"; then
6201 case $deplibs_check_method in
6203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6206 $EGREP "$file_magic_regex" > /dev/null; then
6211 *** Warning: the command libtool uses to detect shared libraries,
6212 *** $file_magic_cmd, produces output that libtool cannot recognize.
6213 *** The result is that libtool may fail to recognize shared libraries
6214 *** as such. This will affect the creation of libtool libraries that
6215 *** depend on shared libraries, but programs linked with such libtool
6216 *** libraries will work regardless of this problem. Nevertheless, you
6217 *** may want to report the problem to your system manager and/or to
6218 *** bug-libtool@gnu.org
6228 MAGIC_CMD="$lt_save_MAGIC_CMD"
6233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6234 if test -n "$MAGIC_CMD"; then
6235 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6236 echo "${ECHO_T}$MAGIC_CMD" >&6
6238 echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6
6242 if test -z "$lt_cv_path_MAGIC_CMD"; then
6243 if test -n "$ac_tool_prefix"; then
6244 echo "$as_me:$LINENO: checking for file" >&5
6245 echo $ECHO_N "checking for file... $ECHO_C" >&6
6246 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6254 lt_save_MAGIC_CMD="$MAGIC_CMD"
6255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6256 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6257 for ac_dir in $ac_dummy; do
6259 test -z "$ac_dir" && ac_dir=.
6260 if test -f $ac_dir/file; then
6261 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6262 if test -n "$file_magic_test_file"; then
6263 case $deplibs_check_method in
6265 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6267 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6268 $EGREP "$file_magic_regex" > /dev/null; then
6273 *** Warning: the command libtool uses to detect shared libraries,
6274 *** $file_magic_cmd, produces output that libtool cannot recognize.
6275 *** The result is that libtool may fail to recognize shared libraries
6276 *** as such. This will affect the creation of libtool libraries that
6277 *** depend on shared libraries, but programs linked with such libtool
6278 *** libraries will work regardless of this problem. Nevertheless, you
6279 *** may want to report the problem to your system manager and/or to
6280 *** bug-libtool@gnu.org
6290 MAGIC_CMD="$lt_save_MAGIC_CMD"
6295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6296 if test -n "$MAGIC_CMD"; then
6297 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6298 echo "${ECHO_T}$MAGIC_CMD" >&6
6300 echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6
6316 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6317 if test "${enable_libtool_lock+set}" = set; then
6318 enableval="$enable_libtool_lock"
6321 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6324 # Check whether --with-pic or --without-pic was given.
6325 if test "${with_pic+set}" = set; then
6331 test -z "$pic_mode" && pic_mode=default
6333 # Use C for the default configuration in the libtool script
6337 ac_cpp='$CPP $CPPFLAGS'
6338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6343 # Source file extension for C test sources.
6346 # Object file extension for compiled C test sources.
6350 # Code to be used in simple compile tests
6351 lt_simple_compile_test_code="int some_variable = 0;\n"
6353 # Code to be used in simple link tests
6354 lt_simple_link_test_code='int main(){return(0);}\n'
6357 # If no C compiler was specified, use CC.
6360 # If no C compiler flags were specified, use CFLAGS.
6361 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6363 # Allow CC to be a program name with arguments.
6367 # save warnings/boilerplate of simple test code
6368 ac_outfile=conftest.$ac_objext
6369 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6371 _lt_compiler_boilerplate=`cat conftest.err`
6374 ac_outfile=conftest.$ac_objext
6375 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6377 _lt_linker_boilerplate=`cat conftest.err`
6382 lt_prog_compiler_no_builtin_flag=
6384 if test "$GCC" = yes; then
6385 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6388 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6389 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6390 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 lt_cv_prog_compiler_rtti_exceptions=no
6394 ac_outfile=conftest.$ac_objext
6395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6396 lt_compiler_flag="-fno-rtti -fno-exceptions"
6397 # Insert the option either (1) after the last *FLAGS variable, or
6398 # (2) before a word containing "conftest.", or (3) at the end.
6399 # Note that $ac_compile itself does not contain backslashes and begins
6400 # with a dollar sign (not a hyphen), so the echo should work correctly.
6401 # The option is referenced via a variable to avoid confusing sed.
6402 lt_compile=`echo "$ac_compile" | $SED \
6403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6405 -e 's:$: $lt_compiler_flag:'`
6406 (eval echo "\"\$as_me:6406: $lt_compile\"" >&5)
6407 (eval "$lt_compile" 2>conftest.err)
6409 cat conftest.err >&5
6410 echo "$as_me:6410: \$? = $ac_status" >&5
6411 if (exit $ac_status) && test -s "$ac_outfile"; then
6412 # The compiler can only warn and ignore the option if not recognized
6413 # So say no if there are warnings other than the usual output.
6414 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6417 lt_cv_prog_compiler_rtti_exceptions=yes
6423 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6424 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6426 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6427 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6434 lt_prog_compiler_wl=
6435 lt_prog_compiler_pic=
6436 lt_prog_compiler_static=
6438 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6439 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6441 if test "$GCC" = yes; then
6442 lt_prog_compiler_wl='-Wl,'
6443 lt_prog_compiler_static='-static'
6447 # All AIX code is PIC.
6448 if test "$host_cpu" = ia64; then
6449 # AIX 5 now supports IA64 processor
6450 lt_prog_compiler_static='-Bstatic'
6455 # FIXME: we need at least 68020 code to build shared libraries, but
6456 # adding the `-m68020' flag to GCC prevents building anything better,
6458 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6461 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6462 # PIC is the default for these OSes.
6465 mingw* | pw32* | os2*)
6466 # This hack is so that the source file can tell whether it is being
6467 # built for inclusion in a dll (and should export symbols for example).
6468 lt_prog_compiler_pic='-DDLL_EXPORT'
6471 darwin* | rhapsody*)
6472 # PIC is the default on this platform
6473 # Common symbols not allowed in MH_DYLIB files
6474 lt_prog_compiler_pic='-fno-common'
6478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6479 # Instead, we relocate shared libraries at runtime.
6483 # Just because we use GCC doesn't mean we suddenly get shared libraries
6484 # on systems that don't support them.
6485 lt_prog_compiler_can_build_shared=no
6490 if test -d /usr/nec; then
6491 lt_prog_compiler_pic=-Kconform_pic
6496 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6503 lt_prog_compiler_pic='-fPIC'
6509 lt_prog_compiler_pic='-fPIC'
6513 # PORTME Check for flag to pass linker flags through the system compiler.
6516 lt_prog_compiler_wl='-Wl,'
6517 if test "$host_cpu" = ia64; then
6518 # AIX 5 now supports IA64 processor
6519 lt_prog_compiler_static='-Bstatic'
6521 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6525 # PIC is the default on this platform
6526 # Common symbols not allowed in MH_DYLIB files
6527 case $cc_basename in
6529 lt_prog_compiler_pic='-qnocommon'
6530 lt_prog_compiler_wl='-Wl,'
6535 mingw* | pw32* | os2*)
6536 # This hack is so that the source file can tell whether it is being
6537 # built for inclusion in a dll (and should export symbols for example).
6538 lt_prog_compiler_pic='-DDLL_EXPORT'
6541 hpux9* | hpux10* | hpux11*)
6542 lt_prog_compiler_wl='-Wl,'
6543 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6550 lt_prog_compiler_pic='+Z'
6553 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6554 lt_prog_compiler_static='${wl}-a ${wl}archive'
6557 irix5* | irix6* | nonstopux*)
6558 lt_prog_compiler_wl='-Wl,'
6559 # PIC (with -KPIC) is the default.
6560 lt_prog_compiler_static='-non_shared'
6564 lt_prog_compiler_pic='-KPIC'
6565 lt_prog_compiler_static='-Bstatic'
6569 case $cc_basename in
6571 lt_prog_compiler_wl='-Wl,'
6572 lt_prog_compiler_pic='-KPIC'
6573 lt_prog_compiler_static='-static'
6575 pgcc* | pgf77* | pgf90* | pgf95*)
6576 # Portland Group compilers (*not* the Pentium gcc compiler,
6577 # which looks to be a dead project)
6578 lt_prog_compiler_wl='-Wl,'
6579 lt_prog_compiler_pic='-fpic'
6580 lt_prog_compiler_static='-Bstatic'
6583 lt_prog_compiler_wl='-Wl,'
6584 # All Alpha code is PIC.
6585 lt_prog_compiler_static='-non_shared'
6590 osf3* | osf4* | osf5*)
6591 lt_prog_compiler_wl='-Wl,'
6592 # All OSF/1 code is PIC.
6593 lt_prog_compiler_static='-non_shared'
6597 lt_prog_compiler_pic='-KPIC'
6598 lt_prog_compiler_static='-Bstatic'
6599 case $cc_basename in
6601 lt_prog_compiler_wl='-Qoption ld ';;
6603 lt_prog_compiler_wl='-Wl,';;
6608 lt_prog_compiler_wl='-Qoption ld '
6609 lt_prog_compiler_pic='-PIC'
6610 lt_prog_compiler_static='-Bstatic'
6613 sysv4 | sysv4.2uw2* | sysv4.3*)
6614 lt_prog_compiler_wl='-Wl,'
6615 lt_prog_compiler_pic='-KPIC'
6616 lt_prog_compiler_static='-Bstatic'
6620 if test -d /usr/nec ;then
6621 lt_prog_compiler_pic='-Kconform_pic'
6622 lt_prog_compiler_static='-Bstatic'
6626 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6627 lt_prog_compiler_wl='-Wl,'
6628 lt_prog_compiler_pic='-KPIC'
6629 lt_prog_compiler_static='-Bstatic'
6633 lt_prog_compiler_wl='-Wl,'
6634 lt_prog_compiler_can_build_shared=no
6638 lt_prog_compiler_pic='-pic'
6639 lt_prog_compiler_static='-Bstatic'
6643 lt_prog_compiler_can_build_shared=no
6648 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6649 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6652 # Check to make sure the PIC flag actually works.
6654 if test -n "$lt_prog_compiler_pic"; then
6656 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6657 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6658 if test "${lt_prog_compiler_pic_works+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 lt_prog_compiler_pic_works=no
6662 ac_outfile=conftest.$ac_objext
6663 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6664 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6665 # Insert the option either (1) after the last *FLAGS variable, or
6666 # (2) before a word containing "conftest.", or (3) at the end.
6667 # Note that $ac_compile itself does not contain backslashes and begins
6668 # with a dollar sign (not a hyphen), so the echo should work correctly.
6669 # The option is referenced via a variable to avoid confusing sed.
6670 lt_compile=`echo "$ac_compile" | $SED \
6671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6673 -e 's:$: $lt_compiler_flag:'`
6674 (eval echo "\"\$as_me:6674: $lt_compile\"" >&5)
6675 (eval "$lt_compile" 2>conftest.err)
6677 cat conftest.err >&5
6678 echo "$as_me:6678: \$? = $ac_status" >&5
6679 if (exit $ac_status) && test -s "$ac_outfile"; then
6680 # The compiler can only warn and ignore the option if not recognized
6681 # So say no if there are warnings other than the usual output.
6682 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6684 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6685 lt_prog_compiler_pic_works=yes
6691 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6692 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6694 if test x"$lt_prog_compiler_pic_works" = xyes; then
6695 case $lt_prog_compiler_pic in
6697 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6700 lt_prog_compiler_pic=
6701 lt_prog_compiler_can_build_shared=no
6706 # For platforms which do not support PIC, -DPIC is meaningless:
6708 lt_prog_compiler_pic=
6711 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6716 # Check to make sure the static flag actually works.
6718 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6719 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6720 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6721 if test "${lt_prog_compiler_static_works+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 lt_prog_compiler_static_works=no
6725 save_LDFLAGS="$LDFLAGS"
6726 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6727 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6729 # The linker can only warn and ignore the option if not recognized
6730 # So say no if there are warnings
6731 if test -s conftest.err; then
6732 # Append any errors to the config.log.
6733 cat conftest.err 1>&5
6734 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6736 if diff conftest.exp conftest.er2 >/dev/null; then
6737 lt_prog_compiler_static_works=yes
6740 lt_prog_compiler_static_works=yes
6744 LDFLAGS="$save_LDFLAGS"
6747 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6748 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6750 if test x"$lt_prog_compiler_static_works" = xyes; then
6753 lt_prog_compiler_static=
6757 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6758 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6759 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 lt_cv_prog_compiler_c_o=no
6763 $rm -r conftest 2>/dev/null
6767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6769 lt_compiler_flag="-o out/conftest2.$ac_objext"
6770 # Insert the option either (1) after the last *FLAGS variable, or
6771 # (2) before a word containing "conftest.", or (3) at the end.
6772 # Note that $ac_compile itself does not contain backslashes and begins
6773 # with a dollar sign (not a hyphen), so the echo should work correctly.
6774 lt_compile=`echo "$ac_compile" | $SED \
6775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6777 -e 's:$: $lt_compiler_flag:'`
6778 (eval echo "\"\$as_me:6778: $lt_compile\"" >&5)
6779 (eval "$lt_compile" 2>out/conftest.err)
6781 cat out/conftest.err >&5
6782 echo "$as_me:6782: \$? = $ac_status" >&5
6783 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6785 # The compiler can only warn and ignore the option if not recognized
6786 # So say no if there are warnings
6787 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6788 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6789 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6790 lt_cv_prog_compiler_c_o=yes
6795 # SGI C++ compiler will create directory out/ii_files/ for
6796 # template instantiation
6797 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6798 $rm out/* && rmdir out
6804 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6805 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6808 hard_links="nottested"
6809 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6810 # do not overwrite the value of need_locks provided by the user
6811 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6812 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6815 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6817 ln conftest.a conftest.b 2>&5 || hard_links=no
6818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6819 echo "$as_me:$LINENO: result: $hard_links" >&5
6820 echo "${ECHO_T}$hard_links" >&6
6821 if test "$hard_links" = no; then
6822 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6823 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6830 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6831 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6834 allow_undefined_flag=
6835 enable_shared_with_static_runtimes=no
6837 archive_expsym_cmds=
6838 old_archive_From_new_cmds=
6839 old_archive_from_expsyms_cmds=
6840 export_dynamic_flag_spec=
6841 whole_archive_flag_spec=
6842 thread_safe_flag_spec=
6843 hardcode_libdir_flag_spec=
6844 hardcode_libdir_flag_spec_ld=
6845 hardcode_libdir_separator=
6848 hardcode_shlibpath_var=unsupported
6849 link_all_deplibs=unknown
6850 hardcode_automatic=no
6853 always_export_symbols=no
6854 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6855 # include_expsyms should be a list of space-separated symbols to be *always*
6856 # included in the symbol list
6858 # exclude_expsyms can be an extended regexp of symbols to exclude
6859 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6860 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6861 # as well as any symbol that contains `d'.
6862 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6863 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6864 # platforms (ab)use it in PIC code, but their linkers get confused if
6865 # the symbol is explicitly referenced. Since portable code cannot
6866 # rely on this symbol name, it's probably fine to never include it in
6867 # preloaded symbol tables.
6868 extract_expsyms_cmds=
6869 # Just being paranoid about ensuring that cc_basename is set.
6870 for cc_temp in $compiler""; do
6872 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6873 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6878 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6881 cygwin* | mingw* | pw32*)
6882 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6883 # When not using gcc, we currently assume that we are using
6884 # Microsoft Visual C++.
6885 if test "$GCC" != yes; then
6890 # we just hope/assume this is gcc and not c89 (= MSVC++)
6899 if test "$with_gnu_ld" = yes; then
6900 # If archive_cmds runs LD, not CC, wlarc should be empty
6903 # Set some defaults for GNU ld with shared library support. These
6904 # are reset later if shared libraries are not supported. Putting them
6905 # here allows them to be overridden if necessary.
6906 runpath_var=LD_RUN_PATH
6907 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6908 export_dynamic_flag_spec='${wl}--export-dynamic'
6909 # ancient GNU ld didn't support --whole-archive et. al.
6910 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6911 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6913 whole_archive_flag_spec=
6915 supports_anon_versioning=no
6916 case `$LD -v 2>/dev/null` in
6917 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6918 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6919 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6920 *\ 2.11.*) ;; # other 2.11 versions
6921 *) supports_anon_versioning=yes ;;
6924 # See if GNU ld supports shared libraries.
6926 aix3* | aix4* | aix5*)
6927 # On AIX/PPC, the GNU linker is very broken
6928 if test "$host_cpu" != ia64; then
6932 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6933 *** to be unable to reliably create shared libraries on AIX.
6934 *** Therefore, libtool is disabling shared libraries support. If you
6935 *** really care for shared libraries, you may want to modify your PATH
6936 *** so that a non-GNU linker is found, and then restart.
6943 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)'
6944 hardcode_libdir_flag_spec='-L$libdir'
6945 hardcode_minus_L=yes
6947 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6948 # that the semantics of dynamic libraries on AmigaOS, at least up
6949 # to version 4, is to share data among multiple programs linked
6950 # with the same dynamic library. Since this doesn't match the
6951 # behavior of shared libraries on other platforms, we can't use
6957 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6958 allow_undefined_flag=unsupported
6959 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6960 # support --undefined. This deserves some investigation. FIXME
6961 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6967 cygwin* | mingw* | pw32*)
6968 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6969 # as there is no search path for DLLs.
6970 hardcode_libdir_flag_spec='-L$libdir'
6971 allow_undefined_flag=unsupported
6972 always_export_symbols=no
6973 enable_shared_with_static_runtimes=yes
6974 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6976 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6978 # If the export-symbols file already is a .def file (1st line
6979 # is EXPORTS), use it as is; otherwise, prepend...
6980 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6981 cp $export_symbols $output_objdir/$soname.def;
6983 echo EXPORTS > $output_objdir/$soname.def;
6984 cat $export_symbols >> $output_objdir/$soname.def;
6986 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6994 hardcode_shlibpath_var=no
6995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6996 export_dynamic_flag_spec='${wl}-E'
6997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6998 # Instead, shared libraries are loaded at an image base (0x10000000 by
6999 # default) and relocated if they conflict, which is a slow very memory
7000 # consuming and fragmenting process. To avoid this, we pick a random,
7001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7002 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7004 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'
7008 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7010 case $cc_basename,$host_cpu in
7011 pgcc*) # Portland Group C compiler
7012 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'
7013 tmp_addflag=' $pic_flag'
7015 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7016 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'
7017 tmp_addflag=' $pic_flag -Mnomain' ;;
7018 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7019 tmp_addflag=' -i_dynamic' ;;
7020 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7021 tmp_addflag=' -i_dynamic -nofor_main' ;;
7022 ifc* | ifort*) # Intel Fortran compiler
7023 tmp_addflag=' -nofor_main' ;;
7025 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7027 if test $supports_anon_versioning = yes; then
7028 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7029 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7030 $echo "local: *; };" >> $output_objdir/$libname.ver~
7031 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7040 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7049 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7053 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7054 *** create shared libraries on Solaris systems. Therefore, libtool
7055 *** is disabling shared libraries support. We urge you to upgrade GNU
7056 *** binutils to release 2.9.1 or newer. Another option is to modify
7057 *** your PATH or compiler configuration so that the native linker is
7058 *** used, and then restart.
7061 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7070 case `$LD -v 2>&1` in
7071 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7075 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7076 *** reliably create shared libraries on SCO systems. Therefore, libtool
7077 *** is disabling shared libraries support. We urge you to upgrade GNU
7078 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7079 *** your PATH or compiler configuration so that the native linker is
7080 *** used, and then restart.
7085 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7086 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7097 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7100 hardcode_shlibpath_var=no
7104 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7113 if test "$ld_shlibs" = no; then
7115 hardcode_libdir_flag_spec=
7116 export_dynamic_flag_spec=
7117 whole_archive_flag_spec=
7120 # PORTME fill in a description of your system's linker (not GNU ld)
7123 allow_undefined_flag=unsupported
7124 always_export_symbols=yes
7125 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'
7126 # Note: this linker hardcodes the directories in LIBPATH if there
7127 # are no directories specified by -L.
7128 hardcode_minus_L=yes
7129 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7130 # Neither direct hardcoding nor static linking is supported with a
7132 hardcode_direct=unsupported
7137 if test "$host_cpu" = ia64; then
7138 # On IA64, the linker does run time linking by default, so we don't
7139 # have to do anything special.
7140 aix_use_runtimelinking=no
7141 exp_sym_flag='-Bexport'
7144 # If we're using GNU nm, then we don't want the "-C" option.
7145 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7146 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7147 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'
7149 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'
7151 aix_use_runtimelinking=no
7153 # Test if we are trying to use run time linking or normal
7154 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7155 # need to do runtime linking.
7156 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7157 for ld_flag in $LDFLAGS; do
7158 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7159 aix_use_runtimelinking=yes
7166 exp_sym_flag='-bexport'
7167 no_entry_flag='-bnoentry'
7170 # When large executables or shared objects are built, AIX ld can
7171 # have problems creating the table of contents. If linking a library
7172 # or program results in "error TOC overflow" add -mminimal-toc to
7173 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7174 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7178 hardcode_libdir_separator=':'
7179 link_all_deplibs=yes
7181 if test "$GCC" = yes; then
7182 case $host_os in aix4.[012]|aix4.[012].*)
7183 # We only want to do this on AIX 4.2 and lower, the check
7184 # below for broken collect2 doesn't work under 4.3+
7185 collect2name=`${CC} -print-prog-name=collect2`
7186 if test -f "$collect2name" && \
7187 strings "$collect2name" | grep resolve_lib_name >/dev/null
7189 # We have reworked collect2
7192 # We have old collect2
7193 hardcode_direct=unsupported
7194 # It fails to find uninstalled libraries when the uninstalled
7195 # path is not listed in the libpath. Setting hardcode_minus_L
7196 # to unsupported forces relinking
7197 hardcode_minus_L=yes
7198 hardcode_libdir_flag_spec='-L$libdir'
7199 hardcode_libdir_separator=
7203 shared_flag='-shared'
7204 if test "$aix_use_runtimelinking" = yes; then
7205 shared_flag="$shared_flag "'${wl}-G'
7209 if test "$host_cpu" = ia64; then
7210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7211 # chokes on -Wl,-G. The following line is correct:
7214 if test "$aix_use_runtimelinking" = yes; then
7215 shared_flag='${wl}-G'
7217 shared_flag='${wl}-bM:SRE'
7222 # It seems that -bexpall does not export symbols beginning with
7223 # underscore (_), so it is better to generate a list of symbols to export.
7224 always_export_symbols=yes
7225 if test "$aix_use_runtimelinking" = yes; then
7226 # Warning - without using the other runtime loading flags (-brtl),
7227 # -berok will link without error, but may produce a broken library.
7228 allow_undefined_flag='-berok'
7229 # Determine the default libpath from the value encoded in an empty executable.
7230 cat >conftest.$ac_ext <<_ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7245 rm -f conftest.$ac_objext conftest$ac_exeext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7247 (eval $ac_link) 2>conftest.er1
7249 grep -v '^ *+' conftest.er1 >conftest.err
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try='test -z "$ac_c_werror_flag"
7255 || test ! -s conftest.err'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; } &&
7261 { ac_try='test -s conftest$ac_exeext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7270 # Check for a 64-bit object if we didn't find anything.
7271 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; }
7274 echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7278 rm -f conftest.err conftest.$ac_objext \
7279 conftest$ac_exeext conftest.$ac_ext
7280 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7282 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7283 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"
7285 if test "$host_cpu" = ia64; then
7286 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7287 allow_undefined_flag="-z nodefs"
7288 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"
7290 # Determine the default libpath from the value encoded in an empty executable.
7291 cat >conftest.$ac_ext <<_ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7306 rm -f conftest.$ac_objext conftest$ac_exeext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7308 (eval $ac_link) 2>conftest.er1
7310 grep -v '^ *+' conftest.er1 >conftest.err
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } &&
7315 { ac_try='test -z "$ac_c_werror_flag"
7316 || test ! -s conftest.err'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; } &&
7322 { ac_try='test -s conftest$ac_exeext'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7331 # Check for a 64-bit object if we didn't find anything.
7332 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; }
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7339 rm -f conftest.err conftest.$ac_objext \
7340 conftest$ac_exeext conftest.$ac_ext
7341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7343 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7344 # Warning - without using the other run time loading flags,
7345 # -berok will link without error, but may produce a broken library.
7346 no_undefined_flag=' ${wl}-bernotok'
7347 allow_undefined_flag=' ${wl}-berok'
7348 # Exported symbols can be pulled into shared objects from archives
7349 whole_archive_flag_spec='$convenience'
7350 archive_cmds_need_lc=yes
7351 # This is similar to how AIX traditionally builds its shared libraries.
7352 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'
7358 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)'
7359 hardcode_libdir_flag_spec='-L$libdir'
7360 hardcode_minus_L=yes
7361 # see comment about different semantics on the GNU ld section
7366 export_dynamic_flag_spec=-rdynamic
7369 cygwin* | mingw* | pw32*)
7370 # When not using gcc, we currently assume that we are using
7371 # Microsoft Visual C++.
7372 # hardcode_libdir_flag_spec is actually meaningless, as there is
7373 # no search path for DLLs.
7374 hardcode_libdir_flag_spec=' '
7375 allow_undefined_flag=unsupported
7376 # Tell ltmain to make .lib files, not .a files.
7378 # Tell ltmain to make .dll files, not .so files.
7380 # FIXME: Setting linknames here is a bad hack.
7381 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7382 # The linker will automatically build a .lib file if we build a DLL.
7383 old_archive_From_new_cmds='true'
7384 # FIXME: Should let the user specify the lib program.
7385 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7386 fix_srcfile_path='`cygpath -w "$srcfile"`'
7387 enable_shared_with_static_runtimes=yes
7390 darwin* | rhapsody*)
7392 rhapsody* | darwin1.[012])
7393 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7396 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7397 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7399 case ${MACOSX_DEPLOYMENT_TARGET} in
7401 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7404 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7410 archive_cmds_need_lc=no
7412 hardcode_automatic=yes
7413 hardcode_shlibpath_var=unsupported
7414 whole_archive_flag_spec=''
7415 link_all_deplibs=yes
7416 if test "$GCC" = yes ; then
7417 output_verbose_link_cmd='echo'
7418 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7419 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7421 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}'
7422 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}'
7424 case $cc_basename in
7426 output_verbose_link_cmd='echo'
7427 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7428 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7430 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}'
7431 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}'
7441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7442 hardcode_libdir_flag_spec='-L$libdir'
7443 hardcode_shlibpath_var=no
7450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7451 # support. Future versions do this automatically, but an explicit c++rt0.o
7452 # does not break anything, and helps significantly (at the cost of a little
7455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7456 hardcode_libdir_flag_spec='-R$libdir'
7458 hardcode_shlibpath_var=no
7461 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7465 hardcode_minus_L=yes
7466 hardcode_shlibpath_var=no
7469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7470 freebsd* | kfreebsd*-gnu | dragonfly*)
7471 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7472 hardcode_libdir_flag_spec='-R$libdir'
7474 hardcode_shlibpath_var=no
7478 if test "$GCC" = yes; then
7479 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'
7481 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'
7483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7484 hardcode_libdir_separator=:
7487 # hardcode_minus_L: Not really in the search PATH,
7488 # but as the default location of the library.
7489 hardcode_minus_L=yes
7490 export_dynamic_flag_spec='${wl}-E'
7494 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7499 if test "$with_gnu_ld" = no; then
7500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7501 hardcode_libdir_separator=:
7504 export_dynamic_flag_spec='${wl}-E'
7506 # hardcode_minus_L: Not really in the search PATH,
7507 # but as the default location of the library.
7508 hardcode_minus_L=yes
7513 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7516 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7519 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7522 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7528 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7531 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7534 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7538 if test "$with_gnu_ld" = no; then
7539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7540 hardcode_libdir_separator=:
7544 hardcode_libdir_flag_spec_ld='+b $libdir'
7546 hardcode_shlibpath_var=no
7550 export_dynamic_flag_spec='${wl}-E'
7552 # hardcode_minus_L: Not really in the search PATH,
7553 # but as the default location of the library.
7554 hardcode_minus_L=yes
7560 irix5* | irix6* | nonstopux*)
7561 if test "$GCC" = yes; then
7562 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'
7564 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'
7565 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7568 hardcode_libdir_separator=:
7569 link_all_deplibs=yes
7573 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7576 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7578 hardcode_libdir_flag_spec='-R$libdir'
7580 hardcode_shlibpath_var=no
7584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7587 hardcode_libdir_separator=:
7588 hardcode_shlibpath_var=no
7593 hardcode_shlibpath_var=no
7594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7596 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7597 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7598 export_dynamic_flag_spec='${wl}-E'
7601 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7603 hardcode_libdir_flag_spec='-R$libdir'
7606 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7607 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7614 hardcode_libdir_flag_spec='-L$libdir'
7615 hardcode_minus_L=yes
7616 allow_undefined_flag=unsupported
7617 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'
7618 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7622 if test "$GCC" = yes; then
7623 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7624 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'
7626 allow_undefined_flag=' -expect_unresolved \*'
7627 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'
7629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7630 hardcode_libdir_separator=:
7633 osf4* | osf5*) # as osf3* with the addition of -msym flag
7634 if test "$GCC" = yes; then
7635 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7636 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'
7637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7639 allow_undefined_flag=' -expect_unresolved \*'
7640 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'
7641 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7642 $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'
7644 # Both c and cxx compiler support -rpath directly
7645 hardcode_libdir_flag_spec='-rpath $libdir'
7647 hardcode_libdir_separator=:
7651 no_undefined_flag=' -z text'
7652 if test "$GCC" = yes; then
7654 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7655 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7656 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7659 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7661 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7663 hardcode_libdir_flag_spec='-R$libdir'
7664 hardcode_shlibpath_var=no
7666 solaris2.[0-5] | solaris2.[0-5].*) ;;
7668 # The compiler driver will combine linker options so we
7669 # cannot just pass the convience library names through
7670 # without $wl, iff we do not link with $LD.
7671 # Luckily, gcc supports the same syntax we need for Sun Studio.
7672 # Supported since Solaris 2.6 (maybe 2.5.1?)
7675 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7677 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' ;;
7680 link_all_deplibs=yes
7684 if test "x$host_vendor" = xsequent; then
7685 # Use $CC to link under sequent, because it throws in some extra .o
7686 # files that make .init and .fini sections work.
7687 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7689 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7691 hardcode_libdir_flag_spec='-L$libdir'
7693 hardcode_minus_L=yes
7694 hardcode_shlibpath_var=no
7698 case $host_vendor in
7700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7701 hardcode_direct=yes # is this really true???
7704 ## LD is ld it makes a PLAMLIB
7705 ## CC just makes a GrossModule.
7706 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7707 reload_cmds='$CC -r -o $output$reload_objs'
7711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7712 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7715 runpath_var='LD_RUN_PATH'
7716 hardcode_shlibpath_var=no
7720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7721 hardcode_shlibpath_var=no
7722 export_dynamic_flag_spec='-Bexport'
7726 if test -d /usr/nec; then
7727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7728 hardcode_shlibpath_var=no
7729 runpath_var=LD_RUN_PATH
7730 hardcode_runpath_var=yes
7735 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7736 no_undefined_flag='${wl}-z,text'
7737 archive_cmds_need_lc=no
7738 hardcode_shlibpath_var=no
7739 runpath_var='LD_RUN_PATH'
7741 if test "$GCC" = yes; then
7742 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7743 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7745 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7746 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7750 sysv5* | sco3.2v5* | sco5v6*)
7751 # Note: We can NOT use -z defs as we might desire, because we do not
7752 # link with -lc, and that would cause any symbols used from libc to
7753 # always be unresolved, which means just about no library would
7754 # ever link correctly. If we're not using GNU ld we use -z text
7755 # though, which does catch some bad symbols but isn't as heavy-handed
7757 no_undefined_flag='${wl}-z,text'
7758 allow_undefined_flag='${wl}-z,nodefs'
7759 archive_cmds_need_lc=no
7760 hardcode_shlibpath_var=no
7761 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7762 hardcode_libdir_separator=':'
7763 link_all_deplibs=yes
7764 export_dynamic_flag_spec='${wl}-Bexport'
7765 runpath_var='LD_RUN_PATH'
7767 if test "$GCC" = yes; then
7768 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7769 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7771 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7772 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7778 hardcode_libdir_flag_spec='-L$libdir'
7779 hardcode_shlibpath_var=no
7788 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7789 echo "${ECHO_T}$ld_shlibs" >&6
7790 test "$ld_shlibs" = no && can_build_shared=no
7793 # Do we need to explicitly link libc?
7795 case "x$archive_cmds_need_lc" in
7797 # Assume -lc should be added
7798 archive_cmds_need_lc=yes
7800 if test "$enable_shared" = yes && test "$GCC" = yes; then
7801 case $archive_cmds in
7803 # FIXME: we may have to deal with multi-command sequences.
7806 # Test whether the compiler implicitly links with -lc since on some
7807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7808 # to ld, don't add -lc before -lgcc.
7809 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7810 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7815 (eval $ac_compile) 2>&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } 2>conftest.err; then
7821 libobjs=conftest.$ac_objext
7823 wl=$lt_prog_compiler_wl
7824 pic_flag=$lt_prog_compiler_pic
7830 lt_save_allow_undefined_flag=$allow_undefined_flag
7831 allow_undefined_flag=
7832 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7833 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }
7838 archive_cmds_need_lc=no
7840 archive_cmds_need_lc=yes
7842 allow_undefined_flag=$lt_save_allow_undefined_flag
7844 cat conftest.err 1>&5
7847 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7848 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7855 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7856 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7858 libname_spec='lib$name'
7866 shlibpath_overrides_runpath=unknown
7868 dynamic_linker="$host_os ld.so"
7869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7870 if test "$GCC" = yes; then
7871 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7872 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7873 # if the path contains ";" then we assume it to be the separator
7874 # otherwise default to the standard path separator (i.e. ":") - it is
7875 # assumed that no part of a normal pathname contains ";" but that should
7876 # okay in the real world where ";" in dirpaths is itself problematic.
7877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7884 need_lib_prefix=unknown
7885 hardcode_into_libs=no
7887 # when you set need_version to no, make sure it does not cause -set_version
7888 # flags to be left without arguments
7889 need_version=unknown
7894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7895 shlibpath_var=LIBPATH
7897 # AIX 3 has no versioning support, so we append a major version to the name.
7898 soname_spec='${libname}${release}${shared_ext}$major'
7905 hardcode_into_libs=yes
7906 if test "$host_cpu" = ia64; then
7907 # AIX 5 supports IA64
7908 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7909 shlibpath_var=LD_LIBRARY_PATH
7911 # With GCC up to 2.95.x, collect2 would create an import file
7912 # for dependence libraries. The import file would start with
7913 # the line `#! .'. This would cause the generated library to
7914 # depend on `.', always an invalid library. This was fixed in
7915 # development snapshots of GCC prior to 3.0.
7917 aix4 | aix4.[01] | aix4.[01].*)
7918 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7920 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7927 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7928 # soname into executable. Probably we can add versioning support to
7929 # collect2, so additional links can be useful in future.
7930 if test "$aix_use_runtimelinking" = yes; then
7931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7932 # instead of lib<name>.a to let people know that these are not
7933 # typical AIX shared libraries.
7934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7936 # We preserve .a as extension for shared libraries through AIX4.2
7937 # and later when we are not doing run time linking.
7938 library_names_spec='${libname}${release}.a $libname.a'
7939 soname_spec='${libname}${release}${shared_ext}$major'
7941 shlibpath_var=LIBPATH
7946 library_names_spec='$libname.ixlibrary $libname.a'
7947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7948 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'
7952 library_names_spec='${libname}${shared_ext}'
7953 dynamic_linker="$host_os ld.so"
7954 shlibpath_var=LIBRARY_PATH
7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961 soname_spec='${libname}${release}${shared_ext}$major'
7962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7963 shlibpath_var=LD_LIBRARY_PATH
7964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7966 # the default ld.so.conf also contains /usr/contrib/lib and
7967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7968 # libtool to hard-code these into programs
7971 cygwin* | mingw* | pw32*)
7972 version_type=windows
7977 case $GCC,$host_os in
7978 yes,cygwin* | yes,mingw* | yes,pw32*)
7979 library_names_spec='$libname.dll.a'
7980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7981 postinstall_cmds='base_file=`basename \${file}`~
7982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7983 dldir=$destdir/`dirname \$dlpath`~
7984 test -d \$dldir || mkdir -p \$dldir~
7985 $install_prog $dir/$dlname \$dldir/$dlname~
7986 chmod a+x \$dldir/$dlname'
7987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7988 dlpath=$dir/\$dldll~
7990 shlibpath_overrides_runpath=yes
7994 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7995 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7996 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7999 # MinGW DLLs use traditional 'lib' prefix
8000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8002 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8003 # It is most probably a Windows format PATH printed by
8004 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8005 # path with ; separators, and with drive letters. We can handle the
8006 # drive letters (cygwin fileutils understands them), so leave them,
8007 # especially as we might pass files found there to a mingw objdump,
8008 # which wouldn't understand a cygwinified path. Ahh.
8009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8015 # pw32 DLLs use 'pw' prefix rather than 'lib'
8016 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8022 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8025 dynamic_linker='Win32 ld.exe'
8026 # FIXME: first we should search . and the directory the executable is in
8030 darwin* | rhapsody*)
8031 dynamic_linker="$host_os dyld"
8035 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8036 soname_spec='${libname}${release}${major}$shared_ext'
8037 shlibpath_overrides_runpath=yes
8038 shlibpath_var=DYLD_LIBRARY_PATH
8039 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8040 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8041 if test "$GCC" = yes; then
8042 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"`
8044 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8054 soname_spec='${libname}${release}${shared_ext}$major'
8055 shlibpath_var=LD_LIBRARY_PATH
8066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8067 soname_spec='${libname}${release}${shared_ext}$major'
8068 shlibpath_var=LD_LIBRARY_PATH
8069 shlibpath_overrides_runpath=no
8070 hardcode_into_libs=yes
8071 dynamic_linker='GNU ld.so'
8074 freebsd* | dragonfly*)
8075 # DragonFly does not have aout. When/if they implement a new
8076 # versioning mechanism, adjust this.
8077 if test -x /usr/bin/objformat; then
8078 objformat=`/usr/bin/objformat`
8081 freebsd[123]*) objformat=aout ;;
8085 version_type=freebsd-$objformat
8086 case $version_type in
8088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8093 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8097 shlibpath_var=LD_LIBRARY_PATH
8100 shlibpath_overrides_runpath=yes
8102 freebsd3.[01]* | freebsdelf3.[01]*)
8103 shlibpath_overrides_runpath=yes
8104 hardcode_into_libs=yes
8106 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8107 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8108 shlibpath_overrides_runpath=no
8109 hardcode_into_libs=yes
8111 freebsd*) # from 4.6 on
8112 shlibpath_overrides_runpath=yes
8113 hardcode_into_libs=yes
8122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8123 soname_spec='${libname}${release}${shared_ext}$major'
8124 shlibpath_var=LD_LIBRARY_PATH
8125 hardcode_into_libs=yes
8128 hpux9* | hpux10* | hpux11*)
8129 # Give a soname corresponding to the major version so that dld.sl refuses to
8130 # link against other versions.
8137 hardcode_into_libs=yes
8138 dynamic_linker="$host_os dld.so"
8139 shlibpath_var=LD_LIBRARY_PATH
8140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8142 soname_spec='${libname}${release}${shared_ext}$major'
8143 if test "X$HPUX_IA64_MODE" = X32; then
8144 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8146 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8152 hardcode_into_libs=yes
8153 dynamic_linker="$host_os dld.sl"
8154 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8157 soname_spec='${libname}${release}${shared_ext}$major'
8158 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8163 dynamic_linker="$host_os dld.sl"
8164 shlibpath_var=SHLIB_PATH
8165 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8167 soname_spec='${libname}${release}${shared_ext}$major'
8170 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8171 postinstall_cmds='chmod 555 $lib'
8178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8179 soname_spec='${libname}${release}${shared_ext}$major'
8180 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8181 shlibpath_var=LD_LIBRARY_PATH
8182 shlibpath_overrides_runpath=no
8183 hardcode_into_libs=yes
8186 irix5* | irix6* | nonstopux*)
8188 nonstopux*) version_type=nonstopux ;;
8190 if test "$lt_cv_prog_gnu_ld" = yes; then
8198 soname_spec='${libname}${release}${shared_ext}$major'
8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8201 irix5* | nonstopux*)
8205 case $LD in # libtool.m4 will add one of these switches to LD
8206 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8207 libsuff= shlibsuff= libmagic=32-bit;;
8208 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8209 libsuff=32 shlibsuff=N32 libmagic=N32;;
8210 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8211 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8212 *) libsuff= shlibsuff= libmagic=never-match;;
8216 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8217 shlibpath_overrides_runpath=no
8218 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8219 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8220 hardcode_into_libs=yes
8223 # No shared lib support for Linux oldld, aout, or coff.
8224 linux*oldld* | linux*aout* | linux*coff*)
8228 # This must be Linux ELF.
8233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234 soname_spec='${libname}${release}${shared_ext}$major'
8235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8236 shlibpath_var=LD_LIBRARY_PATH
8237 shlibpath_overrides_runpath=no
8238 # This implies no fast_install, which is unacceptable.
8239 # Some rework will be needed to allow for fast_install
8240 # before this can be enabled.
8241 hardcode_into_libs=yes
8243 # Append ld.so.conf contents to the search path
8244 if test -f /etc/ld.so.conf; then
8245 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' ' '`
8246 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8249 # We used to test for /lib/ld.so.1 and disable shared libraries on
8250 # powerpc, because MkLinux only supported shared libraries with the
8251 # GNU dynamic linker. Since this was broken with cross compilers,
8252 # most powerpc-linux boxes support dynamic linking these days and
8253 # people can always --disable-shared, the test was removed, and we
8254 # assume the GNU/Linux dynamic linker is in use.
8255 dynamic_linker='GNU/Linux ld.so'
8262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8263 soname_spec='${libname}${release}${shared_ext}$major'
8264 shlibpath_var=LD_LIBRARY_PATH
8265 shlibpath_overrides_runpath=no
8266 hardcode_into_libs=yes
8267 dynamic_linker='GNU ld.so'
8274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8277 dynamic_linker='NetBSD (a.out) ld.so'
8279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8280 soname_spec='${libname}${release}${shared_ext}$major'
8281 dynamic_linker='NetBSD ld.elf_so'
8283 shlibpath_var=LD_LIBRARY_PATH
8284 shlibpath_overrides_runpath=yes
8285 hardcode_into_libs=yes
8290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8291 shlibpath_var=LD_LIBRARY_PATH
8292 shlibpath_overrides_runpath=yes
8299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8300 soname_spec='${libname}${release}${shared_ext}$major'
8301 shlibpath_var=LD_LIBRARY_PATH
8302 shlibpath_overrides_runpath=yes
8307 sys_lib_dlsearch_path_spec="/usr/lib"
8309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8312 *) need_version=no ;;
8314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8316 shlibpath_var=LD_LIBRARY_PATH
8317 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8319 openbsd2.[89] | openbsd2.[89].*)
8320 shlibpath_overrides_runpath=no
8323 shlibpath_overrides_runpath=yes
8327 shlibpath_overrides_runpath=yes
8332 libname_spec='$name'
8335 library_names_spec='$libname${shared_ext} $libname.a'
8336 dynamic_linker='OS/2 ld.exe'
8337 shlibpath_var=LIBPATH
8340 osf3* | osf4* | osf5*)
8344 soname_spec='${libname}${release}${shared_ext}$major'
8345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8346 shlibpath_var=LD_LIBRARY_PATH
8347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8356 soname_spec='${libname}${release}${shared_ext}$major'
8357 shlibpath_var=LD_LIBRARY_PATH
8358 shlibpath_overrides_runpath=yes
8359 hardcode_into_libs=yes
8360 # ldd complains unless libraries are executable
8361 postinstall_cmds='chmod +x $lib'
8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8367 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8368 shlibpath_var=LD_LIBRARY_PATH
8369 shlibpath_overrides_runpath=yes
8370 if test "$with_gnu_ld" = yes; then
8378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8379 soname_spec='${libname}${release}${shared_ext}$major'
8380 shlibpath_var=LD_LIBRARY_PATH
8381 case $host_vendor in
8383 shlibpath_overrides_runpath=no
8385 export_dynamic_flag_spec='${wl}-Blargedynsym'
8386 runpath_var=LD_RUN_PATH
8394 shlibpath_overrides_runpath=no
8395 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8401 if test -d /usr/nec ;then
8403 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8404 soname_spec='$libname${shared_ext}.$major'
8405 shlibpath_var=LD_LIBRARY_PATH
8409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8410 version_type=freebsd-elf
8413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8414 soname_spec='${libname}${release}${shared_ext}$major'
8415 shlibpath_var=LD_LIBRARY_PATH
8416 hardcode_into_libs=yes
8417 if test "$with_gnu_ld" = yes; then
8418 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8419 shlibpath_overrides_runpath=no
8421 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8422 shlibpath_overrides_runpath=yes
8425 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8429 sys_lib_dlsearch_path_spec='/usr/lib'
8434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8435 soname_spec='${libname}${release}${shared_ext}$major'
8436 shlibpath_var=LD_LIBRARY_PATH
8443 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8444 echo "${ECHO_T}$dynamic_linker" >&6
8445 test "$dynamic_linker" = no && can_build_shared=no
8447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8448 if test "$GCC" = yes; then
8449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8452 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8453 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8455 if test -n "$hardcode_libdir_flag_spec" || \
8456 test -n "$runpath_var" || \
8457 test "X$hardcode_automatic" = "Xyes" ; then
8459 # We can hardcode non-existant directories.
8460 if test "$hardcode_direct" != no &&
8461 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8462 # have to relink, otherwise we might link with an installed library
8463 # when we should be linking with a yet-to-be-installed one
8464 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8465 test "$hardcode_minus_L" != no; then
8466 # Linking always hardcodes the temporary library directory.
8467 hardcode_action=relink
8469 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8470 hardcode_action=immediate
8473 # We cannot hardcode anything, or else we can only hardcode existing
8475 hardcode_action=unsupported
8477 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8478 echo "${ECHO_T}$hardcode_action" >&6
8480 if test "$hardcode_action" = relink; then
8481 # Fast installation is not supported
8482 enable_fast_install=no
8483 elif test "$shlibpath_overrides_runpath" = yes ||
8484 test "$enable_shared" = no; then
8485 # Fast installation is not necessary
8486 enable_fast_install=needless
8491 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8492 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8493 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8494 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8495 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8496 echo "$as_me:$LINENO: result: yes" >&5
8497 echo "${ECHO_T}yes" >&6
8499 # FIXME - insert some real tests, host_os isn't really good enough
8502 if test -n "$STRIP" ; then
8503 striplib="$STRIP -x"
8504 echo "$as_me:$LINENO: result: yes" >&5
8505 echo "${ECHO_T}yes" >&6
8507 echo "$as_me:$LINENO: result: no" >&5
8508 echo "${ECHO_T}no" >&6
8512 echo "$as_me:$LINENO: result: no" >&5
8513 echo "${ECHO_T}no" >&6
8518 if test "x$enable_dlopen" != xyes; then
8519 enable_dlopen=unknown
8520 enable_dlopen_self=unknown
8521 enable_dlopen_self_static=unknown
8528 lt_cv_dlopen="load_add_on"
8530 lt_cv_dlopen_self=yes
8534 lt_cv_dlopen="LoadLibrary"
8539 lt_cv_dlopen="dlopen"
8544 # if libdl is installed we need to link against it
8545 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8546 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8547 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 ac_check_lib_save_LIBS=$LIBS
8552 cat >conftest.$ac_ext <<_ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8559 /* Override any gcc2 internal prototype to avoid an error. */
8563 /* We use char because int might match the return type of a gcc2
8564 builtin and then its argument prototype would still apply. */
8574 rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8576 (eval $ac_link) 2>conftest.er1
8578 grep -v '^ *+' conftest.er1 >conftest.err
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } &&
8583 { ac_try='test -z "$ac_c_werror_flag"
8584 || test ! -s conftest.err'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; } &&
8590 { ac_try='test -s conftest$ac_exeext'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 ac_cv_lib_dl_dlopen=yes
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8601 ac_cv_lib_dl_dlopen=no
8603 rm -f conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8605 LIBS=$ac_check_lib_save_LIBS
8607 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8608 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8609 if test $ac_cv_lib_dl_dlopen = yes; then
8610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8615 lt_cv_dlopen_self=yes
8622 echo "$as_me:$LINENO: checking for shl_load" >&5
8623 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8624 if test "${ac_cv_func_shl_load+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 cat >conftest.$ac_ext <<_ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8635 #define shl_load innocuous_shl_load
8637 /* System header to define __stub macros and hopefully few prototypes,
8638 which can conflict with char shl_load (); below.
8639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8640 <limits.h> exists even on freestanding compilers. */
8643 # include <limits.h>
8645 # include <assert.h>
8650 /* Override any gcc2 internal prototype to avoid an error. */
8655 /* We use char because int might match the return type of a gcc2
8656 builtin and then its argument prototype would still apply. */
8658 /* The GNU C library defines this for functions which it implements
8659 to always fail with ENOSYS. Some functions are actually named
8660 something starting with __ and the normal name is an alias. */
8661 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8664 char (*f) () = shl_load;
8673 return f != shl_load;
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>conftest.er1
8682 grep -v '^ *+' conftest.er1 >conftest.err
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest$ac_exeext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_func_shl_load=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_cv_func_shl_load=no
8707 rm -f conftest.err conftest.$ac_objext \
8708 conftest$ac_exeext conftest.$ac_ext
8710 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8711 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8712 if test $ac_cv_func_shl_load = yes; then
8713 lt_cv_dlopen="shl_load"
8715 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8716 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8717 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 ac_check_lib_save_LIBS=$LIBS
8722 cat >conftest.$ac_ext <<_ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8729 /* Override any gcc2 internal prototype to avoid an error. */
8733 /* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746 (eval $ac_link) 2>conftest.er1
8748 grep -v '^ *+' conftest.er1 >conftest.err
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag"
8754 || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_lib_dld_shl_load=yes
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8771 ac_cv_lib_dld_shl_load=no
8773 rm -f conftest.err conftest.$ac_objext \
8774 conftest$ac_exeext conftest.$ac_ext
8775 LIBS=$ac_check_lib_save_LIBS
8777 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8778 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8779 if test $ac_cv_lib_dld_shl_load = yes; then
8780 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8782 echo "$as_me:$LINENO: checking for dlopen" >&5
8783 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8784 if test "${ac_cv_func_dlopen+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 cat >conftest.$ac_ext <<_ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8793 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8795 #define dlopen innocuous_dlopen
8797 /* System header to define __stub macros and hopefully few prototypes,
8798 which can conflict with char dlopen (); below.
8799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8800 <limits.h> exists even on freestanding compilers. */
8803 # include <limits.h>
8805 # include <assert.h>
8810 /* Override any gcc2 internal prototype to avoid an error. */
8815 /* We use char because int might match the return type of a gcc2
8816 builtin and then its argument prototype would still apply. */
8818 /* The GNU C library defines this for functions which it implements
8819 to always fail with ENOSYS. Some functions are actually named
8820 something starting with __ and the normal name is an alias. */
8821 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8824 char (*f) () = dlopen;
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>conftest.er1
8842 grep -v '^ *+' conftest.er1 >conftest.err
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -z "$ac_c_werror_flag"
8848 || test ! -s conftest.err'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; } &&
8854 { ac_try='test -s conftest$ac_exeext'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 ac_cv_func_dlopen=yes
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 ac_cv_func_dlopen=no
8867 rm -f conftest.err conftest.$ac_objext \
8868 conftest$ac_exeext conftest.$ac_ext
8870 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8871 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8872 if test $ac_cv_func_dlopen = yes; then
8873 lt_cv_dlopen="dlopen"
8875 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8876 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8877 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 ac_check_lib_save_LIBS=$LIBS
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8889 /* Override any gcc2 internal prototype to avoid an error. */
8893 /* We use char because int might match the return type of a gcc2
8894 builtin and then its argument prototype would still apply. */
8904 rm -f conftest.$ac_objext conftest$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906 (eval $ac_link) 2>conftest.er1
8908 grep -v '^ *+' conftest.er1 >conftest.err
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } &&
8913 { ac_try='test -z "$ac_c_werror_flag"
8914 || test ! -s conftest.err'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; } &&
8920 { ac_try='test -s conftest$ac_exeext'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; }; then
8926 ac_cv_lib_dl_dlopen=yes
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 ac_cv_lib_dl_dlopen=no
8933 rm -f conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
8935 LIBS=$ac_check_lib_save_LIBS
8937 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8938 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8939 if test $ac_cv_lib_dl_dlopen = yes; then
8940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8942 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8943 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8944 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 ac_check_lib_save_LIBS=$LIBS
8949 cat >conftest.$ac_ext <<_ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8956 /* Override any gcc2 internal prototype to avoid an error. */
8960 /* We use char because int might match the return type of a gcc2
8961 builtin and then its argument prototype would still apply. */
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973 (eval $ac_link) 2>conftest.er1
8975 grep -v '^ *+' conftest.er1 >conftest.err
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 { ac_try='test -z "$ac_c_werror_flag"
8981 || test ! -s conftest.err'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; } &&
8987 { ac_try='test -s conftest$ac_exeext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 ac_cv_lib_svld_dlopen=yes
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_cv_lib_svld_dlopen=no
9000 rm -f conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 LIBS=$ac_check_lib_save_LIBS
9004 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9005 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9006 if test $ac_cv_lib_svld_dlopen = yes; then
9007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9009 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9010 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9011 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 ac_check_lib_save_LIBS=$LIBS
9016 cat >conftest.$ac_ext <<_ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9023 /* Override any gcc2 internal prototype to avoid an error. */
9027 /* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040 (eval $ac_link) 2>conftest.er1
9042 grep -v '^ *+' conftest.er1 >conftest.err
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
9047 { ac_try='test -z "$ac_c_werror_flag"
9048 || test ! -s conftest.err'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; } &&
9054 { ac_try='test -s conftest$ac_exeext'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9060 ac_cv_lib_dld_dld_link=yes
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 ac_cv_lib_dld_dld_link=no
9067 rm -f conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
9069 LIBS=$ac_check_lib_save_LIBS
9071 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9072 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9073 if test $ac_cv_lib_dld_dld_link = yes; then
9074 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9095 if test "x$lt_cv_dlopen" != xno; then
9101 case $lt_cv_dlopen in
9103 save_CPPFLAGS="$CPPFLAGS"
9104 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9106 save_LDFLAGS="$LDFLAGS"
9107 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9110 LIBS="$lt_cv_dlopen_libs $LIBS"
9112 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9113 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9114 if test "${lt_cv_dlopen_self+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 if test "$cross_compiling" = yes; then :
9118 lt_cv_dlopen_self=cross
9120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9121 lt_status=$lt_dlunknown
9122 cat > conftest.$ac_ext <<EOF
9123 #line 9123 "configure"
9124 #include "confdefs.h"
9133 # define LT_DLGLOBAL RTLD_GLOBAL
9136 # define LT_DLGLOBAL DL_GLOBAL
9138 # define LT_DLGLOBAL 0
9142 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9143 find out it does not work in some platform. */
9144 #ifndef LT_DLLAZY_OR_NOW
9146 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9149 # define LT_DLLAZY_OR_NOW DL_LAZY
9152 # define LT_DLLAZY_OR_NOW RTLD_NOW
9155 # define LT_DLLAZY_OR_NOW DL_NOW
9157 # define LT_DLLAZY_OR_NOW 0
9165 extern "C" void exit (int);
9168 void fnord() { int i=42;}
9171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9172 int status = $lt_dlunknown;
9176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9177 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9178 /* dlclose (self); */
9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187 (eval $ac_link) 2>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9191 (./conftest; exit; ) >&5 2>/dev/null
9194 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9195 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9196 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9199 # compilation failed
9200 lt_cv_dlopen_self=no
9207 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9208 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9210 if test "x$lt_cv_dlopen_self" = xyes; then
9211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9212 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9213 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9214 if test "${lt_cv_dlopen_self_static+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 if test "$cross_compiling" = yes; then :
9218 lt_cv_dlopen_self_static=cross
9220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9221 lt_status=$lt_dlunknown
9222 cat > conftest.$ac_ext <<EOF
9223 #line 9223 "configure"
9224 #include "confdefs.h"
9233 # define LT_DLGLOBAL RTLD_GLOBAL
9236 # define LT_DLGLOBAL DL_GLOBAL
9238 # define LT_DLGLOBAL 0
9242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9243 find out it does not work in some platform. */
9244 #ifndef LT_DLLAZY_OR_NOW
9246 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9249 # define LT_DLLAZY_OR_NOW DL_LAZY
9252 # define LT_DLLAZY_OR_NOW RTLD_NOW
9255 # define LT_DLLAZY_OR_NOW DL_NOW
9257 # define LT_DLLAZY_OR_NOW 0
9265 extern "C" void exit (int);
9268 void fnord() { int i=42;}
9271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9272 int status = $lt_dlunknown;
9276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9278 /* dlclose (self); */
9286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287 (eval $ac_link) 2>&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9291 (./conftest; exit; ) >&5 2>/dev/null
9294 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9295 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9296 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9299 # compilation failed
9300 lt_cv_dlopen_self_static=no
9307 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9308 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9311 CPPFLAGS="$save_CPPFLAGS"
9312 LDFLAGS="$save_LDFLAGS"
9317 case $lt_cv_dlopen_self in
9318 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9319 *) enable_dlopen_self=unknown ;;
9322 case $lt_cv_dlopen_self_static in
9323 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9324 *) enable_dlopen_self_static=unknown ;;
9329 # Report which library types will actually be built
9330 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9331 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9332 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9333 echo "${ECHO_T}$can_build_shared" >&6
9335 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9336 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9337 test "$can_build_shared" = "no" && enable_shared=no
9339 # On AIX, shared libraries and static libraries use the same namespace, and
9340 # are all built from PIC.
9343 test "$enable_shared" = yes && enable_static=no
9344 if test -n "$RANLIB"; then
9345 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9346 postinstall_cmds='$RANLIB $lib'
9351 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9352 test "$enable_shared" = yes && enable_static=no
9356 echo "$as_me:$LINENO: result: $enable_shared" >&5
9357 echo "${ECHO_T}$enable_shared" >&6
9359 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9360 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9361 # Make sure either enable_shared or enable_static is yes.
9362 test "$enable_shared" = yes || enable_static=yes
9363 echo "$as_me:$LINENO: result: $enable_static" >&5
9364 echo "${ECHO_T}$enable_static" >&6
9366 # The else clause should only fire when bootstrapping the
9367 # libtool distribution, otherwise you forgot to ship ltmain.sh
9368 # with your package, and you will get complaints that there are
9369 # no rules to generate ltmain.sh.
9370 if test -f "$ltmain"; then
9371 # See if we are running on zsh, and set the options which allow our commands through
9372 # without removal of \ escapes.
9373 if test -n "${ZSH_VERSION+set}" ; then
9374 setopt NO_GLOB_SUBST
9376 # Now quote all the things that may contain metacharacters while being
9377 # careful not to overquote the AC_SUBSTed values. We take copies of the
9378 # variables and quote the copies for generation of the libtool script.
9379 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9381 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9382 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9383 deplibs_check_method reload_flag reload_cmds need_locks \
9384 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9385 lt_cv_sys_global_symbol_to_c_name_address \
9386 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9387 old_postinstall_cmds old_postuninstall_cmds \
9391 lt_prog_compiler_wl \
9392 lt_prog_compiler_pic \
9393 lt_prog_compiler_static \
9394 lt_prog_compiler_no_builtin_flag \
9395 export_dynamic_flag_spec \
9396 thread_safe_flag_spec \
9397 whole_archive_flag_spec \
9398 enable_shared_with_static_runtimes \
9400 old_archive_from_new_cmds \
9405 compiler_lib_search_path \
9407 archive_expsym_cmds \
9409 postuninstall_cmds \
9410 old_archive_from_expsyms_cmds \
9411 allow_undefined_flag \
9413 export_symbols_cmds \
9414 hardcode_libdir_flag_spec \
9415 hardcode_libdir_flag_spec_ld \
9416 hardcode_libdir_separator \
9417 hardcode_automatic \
9419 module_expsym_cmds \
9420 lt_cv_prog_compiler_c_o \
9425 old_archive_cmds | \
9426 old_archive_from_new_cmds | \
9428 archive_expsym_cmds | \
9430 module_expsym_cmds | \
9431 old_archive_from_expsyms_cmds | \
9432 export_symbols_cmds | \
9433 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9434 postinstall_cmds | postuninstall_cmds | \
9435 old_postinstall_cmds | old_postuninstall_cmds | \
9436 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9437 # Double-quote double-evaled strings.
9438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9441 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9447 *'\$0 --fallback-echo"')
9448 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9453 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9455 { echo "$as_me:$LINENO: creating $ofile" >&5
9456 echo "$as_me: creating $ofile" >&6;}
9458 cat <<__EOF__ >> "$cfgfile"
9461 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9462 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9463 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9465 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9466 # Free Software Foundation, Inc.
9468 # This file is part of GNU Libtool:
9469 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9471 # This program is free software; you can redistribute it and/or modify
9472 # it under the terms of the GNU General Public License as published by
9473 # the Free Software Foundation; either version 2 of the License, or
9474 # (at your option) any later version.
9476 # This program is distributed in the hope that it will be useful, but
9477 # WITHOUT ANY WARRANTY; without even the implied warranty of
9478 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9479 # General Public License for more details.
9481 # You should have received a copy of the GNU General Public License
9482 # along with this program; if not, write to the Free Software
9483 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9485 # As a special exception to the GNU General Public License, if you
9486 # distribute this file as part of a program that contains a
9487 # configuration script generated by Autoconf, you may include it under
9488 # the same distribution terms that you use for the rest of that program.
9490 # A sed program that does not truncate output.
9493 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9494 Xsed="$SED -e 1s/^X//"
9496 # The HP-UX ksh and POSIX shell print the target directory to stdout
9498 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9500 # The names of the tagged configurations supported by this script.
9503 # ### BEGIN LIBTOOL CONFIG
9505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9507 # Shell to use when invoking shell scripts.
9510 # Whether or not to build shared libraries.
9511 build_libtool_libs=$enable_shared
9513 # Whether or not to build static libraries.
9514 build_old_libs=$enable_static
9516 # Whether or not to add -lc for building shared libraries.
9517 build_libtool_need_lc=$archive_cmds_need_lc
9519 # Whether or not to disallow shared libs when runtime libs are static
9520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9522 # Whether or not to optimize for fast installation.
9523 fast_install=$enable_fast_install
9526 host_alias=$host_alias
9531 build_alias=$build_alias
9535 # An echo program that does not interpret backslashes.
9540 AR_FLAGS=$lt_AR_FLAGS
9545 # LTCC compiler flags.
9546 LTCFLAGS=$lt_LTCFLAGS
9548 # A language-specific compiler.
9551 # Is the compiler the GNU C compiler?
9557 # The linker used to build libraries.
9560 # Whether we need hard or soft links.
9563 # A BSD-compatible nm program.
9566 # A symbol stripping program
9569 # Used to examine libraries when file_magic_cmd begins "file"
9570 MAGIC_CMD=$MAGIC_CMD
9572 # Used on cygwin: DLL creation program.
9575 # Used on cygwin: object dumper.
9578 # Used on cygwin: assembler.
9581 # The name of the directory that contains temporary libtool files.
9584 # How to create reloadable object files.
9585 reload_flag=$lt_reload_flag
9586 reload_cmds=$lt_reload_cmds
9588 # How to pass a linker flag through the compiler.
9589 wl=$lt_lt_prog_compiler_wl
9591 # Object file suffix (normally "o").
9594 # Old archive suffix (normally "a").
9597 # Shared library suffix (normally ".so").
9598 shrext_cmds='$shrext_cmds'
9600 # Executable file suffix (normally "").
9603 # Additional compiler flags for building library objects.
9604 pic_flag=$lt_lt_prog_compiler_pic
9607 # What is the maximum length of a command?
9608 max_cmd_len=$lt_cv_sys_max_cmd_len
9610 # Does compiler simultaneously support -c and -o options?
9611 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9613 # Must we lock files when doing compilation?
9614 need_locks=$lt_need_locks
9616 # Do we need the lib prefix for modules?
9617 need_lib_prefix=$need_lib_prefix
9619 # Do we need a version for libraries?
9620 need_version=$need_version
9622 # Whether dlopen is supported.
9623 dlopen_support=$enable_dlopen
9625 # Whether dlopen of programs is supported.
9626 dlopen_self=$enable_dlopen_self
9628 # Whether dlopen of statically linked programs is supported.
9629 dlopen_self_static=$enable_dlopen_self_static
9631 # Compiler flag to prevent dynamic linking.
9632 link_static_flag=$lt_lt_prog_compiler_static
9634 # Compiler flag to turn off builtin functions.
9635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9637 # Compiler flag to allow reflexive dlopens.
9638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9640 # Compiler flag to generate shared objects directly from archives.
9641 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9643 # Compiler flag to generate thread-safe objects.
9644 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9646 # Library versioning type.
9647 version_type=$version_type
9649 # Format of library name prefix.
9650 libname_spec=$lt_libname_spec
9652 # List of archive names. First name is the real one, the rest are links.
9653 # The last name is the one that the linker finds with -lNAME.
9654 library_names_spec=$lt_library_names_spec
9656 # The coded name of the library, if different from the real name.
9657 soname_spec=$lt_soname_spec
9659 # Commands used to build and install an old-style archive.
9661 old_archive_cmds=$lt_old_archive_cmds
9662 old_postinstall_cmds=$lt_old_postinstall_cmds
9663 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9665 # Create an old-style archive from a shared archive.
9666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9668 # Create a temporary old-style archive to link instead of a shared archive.
9669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9671 # Commands used to build and install a shared archive.
9672 archive_cmds=$lt_archive_cmds
9673 archive_expsym_cmds=$lt_archive_expsym_cmds
9674 postinstall_cmds=$lt_postinstall_cmds
9675 postuninstall_cmds=$lt_postuninstall_cmds
9677 # Commands used to build a loadable module (assumed same as above if empty)
9678 module_cmds=$lt_module_cmds
9679 module_expsym_cmds=$lt_module_expsym_cmds
9681 # Commands to strip libraries.
9682 old_striplib=$lt_old_striplib
9683 striplib=$lt_striplib
9685 # Dependencies to place before the objects being linked to create a
9687 predep_objects=$lt_predep_objects
9689 # Dependencies to place after the objects being linked to create a
9691 postdep_objects=$lt_postdep_objects
9693 # Dependencies to place before the objects being linked to create a
9697 # Dependencies to place after the objects being linked to create a
9699 postdeps=$lt_postdeps
9701 # The library search path used internally by the compiler when linking
9703 compiler_lib_search_path=$lt_compiler_lib_search_path
9705 # Method to check whether dependent libraries are shared objects.
9706 deplibs_check_method=$lt_deplibs_check_method
9708 # Command to use when deplibs_check_method == file_magic.
9709 file_magic_cmd=$lt_file_magic_cmd
9711 # Flag that allows shared libraries with undefined symbols to be built.
9712 allow_undefined_flag=$lt_allow_undefined_flag
9714 # Flag that forces no undefined symbols.
9715 no_undefined_flag=$lt_no_undefined_flag
9717 # Commands used to finish a libtool library installation in a directory.
9718 finish_cmds=$lt_finish_cmds
9720 # Same as above, but a single script fragment to be evaled but not shown.
9721 finish_eval=$lt_finish_eval
9723 # Take the output of nm and produce a listing of raw symbols and C names.
9724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9726 # Transform the output of nm in a proper C declaration
9727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9729 # Transform the output of nm in a C name address pair
9730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9732 # This is the shared library runtime path variable.
9733 runpath_var=$runpath_var
9735 # This is the shared library path variable.
9736 shlibpath_var=$shlibpath_var
9738 # Is shlibpath searched before the hard-coded library search path?
9739 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9741 # How to hardcode a shared library path into an executable.
9742 hardcode_action=$hardcode_action
9744 # Whether we should hardcode library paths into libraries.
9745 hardcode_into_libs=$hardcode_into_libs
9747 # Flag to hardcode \$libdir into a binary during linking.
9748 # This must work even if \$libdir does not exist.
9749 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9751 # If ld is used when linking, flag to hardcode \$libdir into
9752 # a binary during linking. This must work even if \$libdir does
9754 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9756 # Whether we need a single -rpath flag with a separated argument.
9757 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9759 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9761 hardcode_direct=$hardcode_direct
9763 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9765 hardcode_minus_L=$hardcode_minus_L
9767 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9768 # the resulting binary.
9769 hardcode_shlibpath_var=$hardcode_shlibpath_var
9771 # Set to yes if building a shared library automatically hardcodes DIR into the library
9772 # and all subsequent libraries and executables linked against it.
9773 hardcode_automatic=$hardcode_automatic
9775 # Variables whose values should be saved in libtool wrapper scripts and
9776 # restored at relink time.
9777 variables_saved_for_relink="$variables_saved_for_relink"
9779 # Whether libtool must link a program against all its dependency libraries.
9780 link_all_deplibs=$link_all_deplibs
9782 # Compile-time system search path for libraries
9783 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9785 # Run-time system search path for libraries
9786 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9788 # Fix the shell variable \$srcfile for the compiler.
9789 fix_srcfile_path="$fix_srcfile_path"
9791 # Set to yes if exported symbols are required.
9792 always_export_symbols=$always_export_symbols
9794 # The commands to list exported symbols.
9795 export_symbols_cmds=$lt_export_symbols_cmds
9797 # The commands to extract the exported symbol list from a shared archive.
9798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9800 # Symbols that should not be listed in the preloaded symbols.
9801 exclude_expsyms=$lt_exclude_expsyms
9803 # Symbols that must always be exported.
9804 include_expsyms=$lt_include_expsyms
9806 # ### END LIBTOOL CONFIG
9813 cat <<\EOF >> "$cfgfile"
9815 # AIX sometimes has problems with the GCC collect2 program. For some
9816 # reason, if we set the COLLECT_NAMES environment variable, the problems
9817 # vanish in a puff of smoke.
9818 if test "X${COLLECT_NAMES+set}" != Xset; then
9820 export COLLECT_NAMES
9826 # We use sed instead of cat because bash on DJGPP gets confused if
9827 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9828 # text mode, it properly converts lines to CR/LF. This bash problem
9829 # is reportedly fixed, but why not run on old versions too?
9830 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9832 mv -f "$cfgfile" "$ofile" || \
9833 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9837 # If there is no Makefile yet, we rely on a make rule to execute
9838 # `config.status --recheck' to rerun these tests and create the
9839 # libtool script then.
9840 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9841 if test -f "$ltmain_in"; then
9842 test -f Makefile && make "$ltmain"
9848 ac_cpp='$CPP $CPPFLAGS'
9849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9856 # Check whether --with-tags or --without-tags was given.
9857 if test "${with_tags+set}" = set; then
9858 withval="$with_tags"
9862 if test -f "$ltmain" && test -n "$tagnames"; then
9863 if test ! -f "${ofile}"; then
9864 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9865 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9868 if test -z "$LTCC"; then
9869 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9870 if test -z "$LTCC"; then
9871 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9872 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9875 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9878 if test -z "$LTCFLAGS"; then
9879 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9882 # Extract list of available tagged configurations in $ofile.
9883 # Note that this assumes the entire list is on one line.
9884 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9886 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9887 for tagname in $tagnames; do
9889 # Check whether tagname contains only valid characters
9890 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9892 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9893 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9894 { (exit 1); exit 1; }; }
9898 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9900 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9901 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9902 { (exit 1); exit 1; }; }
9905 # Update the list of available tags.
9906 if test -n "$tagname"; then
9907 echo appending configuration tag \"$tagname\" to $ofile
9911 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9912 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9913 (test "X$CXX" != "Xg++"))) ; then
9915 ac_cpp='$CXXCPP $CPPFLAGS'
9916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9923 archive_cmds_need_lc_CXX=no
9924 allow_undefined_flag_CXX=
9925 always_export_symbols_CXX=no
9926 archive_expsym_cmds_CXX=
9927 export_dynamic_flag_spec_CXX=
9928 hardcode_direct_CXX=no
9929 hardcode_libdir_flag_spec_CXX=
9930 hardcode_libdir_flag_spec_ld_CXX=
9931 hardcode_libdir_separator_CXX=
9932 hardcode_minus_L_CXX=no
9933 hardcode_shlibpath_var_CXX=unsupported
9934 hardcode_automatic_CXX=no
9936 module_expsym_cmds_CXX=
9937 link_all_deplibs_CXX=unknown
9938 old_archive_cmds_CXX=$old_archive_cmds
9939 no_undefined_flag_CXX=
9940 whole_archive_flag_spec_CXX=
9941 enable_shared_with_static_runtimes_CXX=no
9943 # Dependencies to place before and after the object being linked:
9945 postdep_objects_CXX=
9948 compiler_lib_search_path_CXX=
9950 # Source file extension for C++ test sources.
9953 # Object file extension for compiled C++ test sources.
9957 # Code to be used in simple compile tests
9958 lt_simple_compile_test_code="int some_variable = 0;\n"
9960 # Code to be used in simple link tests
9961 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9965 # If no C compiler was specified, use CC.
9968 # If no C compiler flags were specified, use CFLAGS.
9969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9971 # Allow CC to be a program name with arguments.
9975 # save warnings/boilerplate of simple test code
9976 ac_outfile=conftest.$ac_objext
9977 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9979 _lt_compiler_boilerplate=`cat conftest.err`
9982 ac_outfile=conftest.$ac_objext
9983 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9985 _lt_linker_boilerplate=`cat conftest.err`
9989 # Allow CC to be a program name with arguments.
9994 lt_save_with_gnu_ld=$with_gnu_ld
9995 lt_save_path_LD=$lt_cv_path_LD
9996 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9997 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9999 $as_unset lt_cv_prog_gnu_ld
10001 if test -n "${lt_cv_path_LDCXX+set}"; then
10002 lt_cv_path_LD=$lt_cv_path_LDCXX
10004 $as_unset lt_cv_path_LD
10006 test -z "${LDCXX+set}" || LD=$LDCXX
10010 for cc_temp in $compiler""; do
10012 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10013 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10021 # We don't want -fno-exception wen compiling C++ code, so set the
10022 # no_builtin_flag separately
10023 if test "$GXX" = yes; then
10024 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10026 lt_prog_compiler_no_builtin_flag_CXX=
10029 if test "$GXX" = yes; then
10030 # Set up default GNU C++ configuration
10033 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10034 if test "${with_gnu_ld+set}" = set; then
10035 withval="$with_gnu_ld"
10036 test "$withval" = no || with_gnu_ld=yes
10041 if test "$GCC" = yes; then
10042 # Check if gcc -print-prog-name=ld gives a path.
10043 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10044 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10047 # gcc leaves a trailing carriage return which upsets mingw
10048 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10050 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10053 # Accept absolute paths.
10055 re_direlt='/[^/][^/]*/\.\./'
10056 # Canonicalize the pathname of ld
10057 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10058 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10059 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10061 test -z "$LD" && LD="$ac_prog"
10064 # If it fails, then pretend we aren't using GCC.
10068 # If it is relative, then search for the first ld in PATH.
10069 with_gnu_ld=unknown
10072 elif test "$with_gnu_ld" = yes; then
10073 echo "$as_me:$LINENO: checking for GNU ld" >&5
10074 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10076 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10077 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10079 if test "${lt_cv_path_LD+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 if test -z "$LD"; then
10083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10084 for ac_dir in $PATH; do
10086 test -z "$ac_dir" && ac_dir=.
10087 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10088 lt_cv_path_LD="$ac_dir/$ac_prog"
10089 # Check to see if the program is GNU ld. I'd rather use --version,
10090 # but apparently some variants of GNU ld only accept -v.
10091 # Break only if it was the GNU/non-GNU ld that we prefer.
10092 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10093 *GNU* | *'with BFD'*)
10094 test "$with_gnu_ld" != no && break
10097 test "$with_gnu_ld" != yes && break
10104 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10108 LD="$lt_cv_path_LD"
10109 if test -n "$LD"; then
10110 echo "$as_me:$LINENO: result: $LD" >&5
10111 echo "${ECHO_T}$LD" >&6
10113 echo "$as_me:$LINENO: result: no" >&5
10114 echo "${ECHO_T}no" >&6
10116 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10117 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10118 { (exit 1); exit 1; }; }
10119 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10120 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10121 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10125 case `$LD -v 2>&1 </dev/null` in
10126 *GNU* | *'with BFD'*)
10127 lt_cv_prog_gnu_ld=yes
10130 lt_cv_prog_gnu_ld=no
10134 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10135 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10136 with_gnu_ld=$lt_cv_prog_gnu_ld
10140 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10141 # archiving commands below assume that GNU ld is being used.
10142 if test "$with_gnu_ld" = yes; then
10143 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10144 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'
10146 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10147 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10149 # If archive_cmds runs LD, not CC, wlarc should be empty
10150 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10151 # investigate it a little bit more. (MM)
10154 # ancient GNU ld didn't support --whole-archive et. al.
10155 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10156 grep 'no-whole-archive' > /dev/null; then
10157 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10159 whole_archive_flag_spec_CXX=
10165 # A generic and very simple default shared library creation
10166 # command for GNU C++ for the case where it uses the native
10167 # linker, instead of GNU ld. If possible, this setting should
10168 # overridden to take advantage of the native linker features on
10169 # the platform it is being used on.
10170 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10173 # Commands to make compiler produce verbose output that lists
10174 # what "hidden" libraries, object files and flags are used when
10175 # linking a shared library.
10176 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10184 # PORTME: fill in a description of your system's C++ link characteristics
10185 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10186 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10190 # FIXME: insert proper C++ library support
10194 if test "$host_cpu" = ia64; then
10195 # On IA64, the linker does run time linking by default, so we don't
10196 # have to do anything special.
10197 aix_use_runtimelinking=no
10198 exp_sym_flag='-Bexport'
10201 aix_use_runtimelinking=no
10203 # Test if we are trying to use run time linking or normal
10204 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10205 # need to do runtime linking.
10206 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10207 for ld_flag in $LDFLAGS; do
10210 aix_use_runtimelinking=yes
10218 exp_sym_flag='-bexport'
10219 no_entry_flag='-bnoentry'
10222 # When large executables or shared objects are built, AIX ld can
10223 # have problems creating the table of contents. If linking a library
10224 # or program results in "error TOC overflow" add -mminimal-toc to
10225 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10226 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10228 archive_cmds_CXX=''
10229 hardcode_direct_CXX=yes
10230 hardcode_libdir_separator_CXX=':'
10231 link_all_deplibs_CXX=yes
10233 if test "$GXX" = yes; then
10234 case $host_os in aix4.[012]|aix4.[012].*)
10235 # We only want to do this on AIX 4.2 and lower, the check
10236 # below for broken collect2 doesn't work under 4.3+
10237 collect2name=`${CC} -print-prog-name=collect2`
10238 if test -f "$collect2name" && \
10239 strings "$collect2name" | grep resolve_lib_name >/dev/null
10241 # We have reworked collect2
10242 hardcode_direct_CXX=yes
10244 # We have old collect2
10245 hardcode_direct_CXX=unsupported
10246 # It fails to find uninstalled libraries when the uninstalled
10247 # path is not listed in the libpath. Setting hardcode_minus_L
10248 # to unsupported forces relinking
10249 hardcode_minus_L_CXX=yes
10250 hardcode_libdir_flag_spec_CXX='-L$libdir'
10251 hardcode_libdir_separator_CXX=
10255 shared_flag='-shared'
10256 if test "$aix_use_runtimelinking" = yes; then
10257 shared_flag="$shared_flag "'${wl}-G'
10261 if test "$host_cpu" = ia64; then
10262 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10263 # chokes on -Wl,-G. The following line is correct:
10266 if test "$aix_use_runtimelinking" = yes; then
10267 shared_flag='${wl}-G'
10269 shared_flag='${wl}-bM:SRE'
10274 # It seems that -bexpall does not export symbols beginning with
10275 # underscore (_), so it is better to generate a list of symbols to export.
10276 always_export_symbols_CXX=yes
10277 if test "$aix_use_runtimelinking" = yes; then
10278 # Warning - without using the other runtime loading flags (-brtl),
10279 # -berok will link without error, but may produce a broken library.
10280 allow_undefined_flag_CXX='-berok'
10281 # Determine the default libpath from the value encoded in an empty executable.
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299 (eval $ac_link) 2>conftest.er1
10301 grep -v '^ *+' conftest.er1 >conftest.err
10303 cat conftest.err >&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -z "$ac_cxx_werror_flag"
10307 || test ! -s conftest.err'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; } &&
10313 { ac_try='test -s conftest$ac_exeext'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10322 # Check for a 64-bit object if we didn't find anything.
10323 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; }
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10330 rm -f conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10334 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10336 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"
10338 if test "$host_cpu" = ia64; then
10339 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10340 allow_undefined_flag_CXX="-z nodefs"
10341 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"
10343 # Determine the default libpath from the value encoded in an empty executable.
10344 cat >conftest.$ac_ext <<_ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h. */
10359 rm -f conftest.$ac_objext conftest$ac_exeext
10360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10361 (eval $ac_link) 2>conftest.er1
10363 grep -v '^ *+' conftest.er1 >conftest.err
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } &&
10368 { ac_try='test -z "$ac_cxx_werror_flag"
10369 || test ! -s conftest.err'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; } &&
10375 { ac_try='test -s conftest$ac_exeext'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; }; then
10382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10384 # Check for a 64-bit object if we didn't find anything.
10385 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; }
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10392 rm -f conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10396 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10397 # Warning - without using the other run time loading flags,
10398 # -berok will link without error, but may produce a broken library.
10399 no_undefined_flag_CXX=' ${wl}-bernotok'
10400 allow_undefined_flag_CXX=' ${wl}-berok'
10401 # Exported symbols can be pulled into shared objects from archives
10402 whole_archive_flag_spec_CXX='$convenience'
10403 archive_cmds_need_lc_CXX=yes
10404 # This is similar to how AIX traditionally builds its shared libraries.
10405 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'
10411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10412 allow_undefined_flag_CXX=unsupported
10413 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10414 # support --undefined. This deserves some investigation. FIXME
10415 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422 case $cc_basename in
10424 # FIXME: insert proper C++ library support
10430 cygwin* | mingw* | pw32*)
10431 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10432 # as there is no search path for DLLs.
10433 hardcode_libdir_flag_spec_CXX='-L$libdir'
10434 allow_undefined_flag_CXX=unsupported
10435 always_export_symbols_CXX=no
10436 enable_shared_with_static_runtimes_CXX=yes
10438 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10439 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'
10440 # If the export-symbols file already is a .def file (1st line
10441 # is EXPORTS), use it as is; otherwise, prepend...
10442 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10443 cp $export_symbols $output_objdir/$soname.def;
10445 echo EXPORTS > $output_objdir/$soname.def;
10446 cat $export_symbols >> $output_objdir/$soname.def;
10448 $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'
10453 darwin* | rhapsody*)
10455 rhapsody* | darwin1.[012])
10456 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10459 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10460 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10462 case ${MACOSX_DEPLOYMENT_TARGET} in
10464 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10467 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10473 archive_cmds_need_lc_CXX=no
10474 hardcode_direct_CXX=no
10475 hardcode_automatic_CXX=yes
10476 hardcode_shlibpath_var_CXX=unsupported
10477 whole_archive_flag_spec_CXX=''
10478 link_all_deplibs_CXX=yes
10480 if test "$GXX" = yes ; then
10481 lt_int_apple_cc_single_mod=no
10482 output_verbose_link_cmd='echo'
10483 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10484 lt_int_apple_cc_single_mod=yes
10486 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10487 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10489 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'
10491 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10492 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10493 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10494 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}'
10496 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}'
10498 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}'
10500 case $cc_basename in
10502 output_verbose_link_cmd='echo'
10503 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'
10504 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10505 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10506 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}'
10507 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}'
10517 case $cc_basename in
10519 # FIXME: insert proper C++ library support
10523 # Green Hills C++ Compiler
10524 # FIXME: insert proper C++ library support
10528 # FIXME: insert proper C++ library support
10534 # C++ shared libraries reported to be fairly broken before switch to ELF
10538 archive_cmds_need_lc_CXX=no
10540 freebsd* | kfreebsd*-gnu | dragonfly*)
10541 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10548 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10549 hardcode_libdir_separator_CXX=:
10550 export_dynamic_flag_spec_CXX='${wl}-E'
10551 hardcode_direct_CXX=yes
10552 hardcode_minus_L_CXX=yes # Not in the search PATH,
10553 # but as the default
10554 # location of the library.
10556 case $cc_basename in
10558 # FIXME: insert proper C++ library support
10562 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'
10563 # Commands to make compiler produce verbose output that lists
10564 # what "hidden" libraries, object files and flags are used when
10565 # linking a shared library.
10567 # There doesn't appear to be a way to prevent this compiler from
10568 # explicitly linking system object files so we need to strip them
10569 # from the output so that they don't get included in the library
10571 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'
10574 if test "$GXX" = yes; then
10575 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'
10577 # FIXME: insert proper C++ library support
10584 if test $with_gnu_ld = no; then
10585 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10586 hardcode_libdir_separator_CXX=:
10590 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10593 export_dynamic_flag_spec_CXX='${wl}-E'
10599 hardcode_direct_CXX=no
10600 hardcode_shlibpath_var_CXX=no
10603 hardcode_direct_CXX=yes
10604 hardcode_minus_L_CXX=yes # Not in the search PATH,
10605 # but as the default
10606 # location of the library.
10610 case $cc_basename in
10612 # FIXME: insert proper C++ library support
10618 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10621 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10624 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10627 # Commands to make compiler produce verbose output that lists
10628 # what "hidden" libraries, object files and flags are used when
10629 # linking a shared library.
10631 # There doesn't appear to be a way to prevent this compiler from
10632 # explicitly linking system object files so we need to strip them
10633 # from the output so that they don't get included in the library
10635 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'
10638 if test "$GXX" = yes; then
10639 if test $with_gnu_ld = no; then
10642 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10645 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10648 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'
10653 # FIXME: insert proper C++ library support
10660 hardcode_direct_CXX=no
10661 hardcode_shlibpath_var_CXX=no
10662 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10663 export_dynamic_flag_spec_CXX='${wl}-E'
10664 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10665 # Instead, shared libraries are loaded at an image base (0x10000000 by
10666 # default) and relocated if they conflict, which is a slow very memory
10667 # consuming and fragmenting process. To avoid this, we pick a random,
10668 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10669 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10670 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'
10671 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'
10674 case $cc_basename in
10677 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'
10679 # Archives containing C++ object files must be created using
10680 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10681 # necessary to make sure instantiated templates are included
10683 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10686 if test "$GXX" = yes; then
10687 if test "$with_gnu_ld" = no; then
10688 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'
10690 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'
10693 link_all_deplibs_CXX=yes
10696 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10697 hardcode_libdir_separator_CXX=:
10700 case $cc_basename in
10702 # Kuck and Associates, Inc. (KAI) C++ Compiler
10704 # KCC will only create a shared library if the output file
10705 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10706 # to its proper name (with version) after linking.
10707 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'
10708 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'
10709 # Commands to make compiler produce verbose output that lists
10710 # what "hidden" libraries, object files and flags are used when
10711 # linking a shared library.
10713 # There doesn't appear to be a way to prevent this compiler from
10714 # explicitly linking system object files so we need to strip them
10715 # from the output so that they don't get included in the library
10717 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'
10719 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10722 # Archives containing C++ object files must be created using
10723 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10724 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10729 # version 8.0 and above of icpc choke on multiply defined symbols
10730 # if we add $predep_objects and $postdep_objects, however 7.1 and
10731 # earlier do not add the objects themselves.
10732 case `$CC -V 2>&1` in
10734 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10735 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'
10737 *) # Version 8.0 or newer
10740 ia64*) tmp_idyn=' -i_dynamic';;
10742 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10743 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'
10746 archive_cmds_need_lc_CXX=no
10747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10748 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10749 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10752 # Portland Group C++ compiler
10753 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10754 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'
10756 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10757 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10758 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'
10762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10763 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'
10765 runpath_var=LD_RUN_PATH
10766 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10767 hardcode_libdir_separator_CXX=:
10769 # Commands to make compiler produce verbose output that lists
10770 # what "hidden" libraries, object files and flags are used when
10771 # linking a shared library.
10773 # There doesn't appear to be a way to prevent this compiler from
10774 # explicitly linking system object files so we need to strip them
10775 # from the output so that they don't get included in the library
10777 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'
10782 # FIXME: insert proper C++ library support
10786 # FIXME: insert proper C++ library support
10790 case $cc_basename in
10792 # FIXME: insert proper C++ library support
10796 # FIXME: insert proper C++ library support
10802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10803 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10805 hardcode_libdir_flag_spec_CXX='-R$libdir'
10806 hardcode_direct_CXX=yes
10807 hardcode_shlibpath_var_CXX=no
10809 # Workaround some broken pre-1.5 toolchains
10810 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10813 # C++ shared libraries are fairly broken
10817 hardcode_direct_CXX=yes
10818 hardcode_shlibpath_var_CXX=no
10819 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10821 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10822 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10823 export_dynamic_flag_spec_CXX='${wl}-E'
10824 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10826 output_verbose_link_cmd='echo'
10829 case $cc_basename in
10831 # Kuck and Associates, Inc. (KAI) C++ Compiler
10833 # KCC will only create a shared library if the output file
10834 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10835 # to its proper name (with version) after linking.
10836 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'
10838 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10839 hardcode_libdir_separator_CXX=:
10841 # Archives containing C++ object files must be created using
10842 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10843 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10847 # Rational C++ 2.4.1
10848 # FIXME: insert proper C++ library support
10852 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10853 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'
10855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10856 hardcode_libdir_separator_CXX=:
10858 # Commands to make compiler produce verbose output that lists
10859 # what "hidden" libraries, object files and flags are used when
10860 # linking a shared library.
10862 # There doesn't appear to be a way to prevent this compiler from
10863 # explicitly linking system object files so we need to strip them
10864 # from the output so that they don't get included in the library
10866 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'
10869 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10870 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10871 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'
10873 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10874 hardcode_libdir_separator_CXX=:
10876 # Commands to make compiler produce verbose output that lists
10877 # what "hidden" libraries, object files and flags are used when
10878 # linking a shared library.
10879 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10882 # FIXME: insert proper C++ library support
10889 case $cc_basename in
10891 # Kuck and Associates, Inc. (KAI) C++ Compiler
10893 # KCC will only create a shared library if the output file
10894 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10895 # to its proper name (with version) after linking.
10896 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'
10898 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10899 hardcode_libdir_separator_CXX=:
10901 # Archives containing C++ object files must be created using
10902 # the KAI C++ compiler.
10903 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10906 # Rational C++ 2.4.1
10907 # FIXME: insert proper C++ library support
10911 allow_undefined_flag_CXX=' -expect_unresolved \*'
10912 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'
10913 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10914 echo "-hidden">> $lib.exp~
10915 $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~
10918 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10919 hardcode_libdir_separator_CXX=:
10921 # Commands to make compiler produce verbose output that lists
10922 # what "hidden" libraries, object files and flags are used when
10923 # linking a shared library.
10925 # There doesn't appear to be a way to prevent this compiler from
10926 # explicitly linking system object files so we need to strip them
10927 # from the output so that they don't get included in the library
10929 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'
10932 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10933 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10934 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'
10936 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10937 hardcode_libdir_separator_CXX=:
10939 # Commands to make compiler produce verbose output that lists
10940 # what "hidden" libraries, object files and flags are used when
10941 # linking a shared library.
10942 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10945 # FIXME: insert proper C++ library support
10952 # FIXME: insert proper C++ library support
10956 case $cc_basename in
10959 # FIXME: insert proper C++ library support
10964 # FIXME: insert proper C++ library support
10968 # FIXME: insert proper C++ library support
10974 case $cc_basename in
10976 # Sun C++ 4.2, 5.x and Centerline C++
10977 archive_cmds_need_lc_CXX=yes
10978 no_undefined_flag_CXX=' -zdefs'
10979 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10980 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10981 $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'
10983 hardcode_libdir_flag_spec_CXX='-R$libdir'
10984 hardcode_shlibpath_var_CXX=no
10986 solaris2.[0-5] | solaris2.[0-5].*) ;;
10988 # The C++ compiler is used as linker so we must use $wl
10989 # flag to pass the commands to the underlying system
10990 # linker. We must also pass each convience library through
10991 # to the system linker between allextract/defaultextract.
10992 # The C++ compiler will combine linker options so we
10993 # cannot just pass the convience library names through
10995 # Supported since Solaris 2.6 (maybe 2.5.1?)
10996 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'
10999 link_all_deplibs_CXX=yes
11001 output_verbose_link_cmd='echo'
11003 # Archives containing C++ object files must be created using
11004 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11005 # necessary to make sure instantiated templates are included
11007 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11010 # Green Hills C++ Compiler
11011 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11013 # The C++ compiler must be used to create the archive.
11014 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11017 # GNU C++ compiler with Solaris linker
11018 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11019 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11020 if $CC --version | grep -v '^2\.7' > /dev/null; then
11021 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11022 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11023 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11025 # Commands to make compiler produce verbose output that lists
11026 # what "hidden" libraries, object files and flags are used when
11027 # linking a shared library.
11028 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11030 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11032 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11033 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11034 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11036 # Commands to make compiler produce verbose output that lists
11037 # what "hidden" libraries, object files and flags are used when
11038 # linking a shared library.
11039 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11042 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11047 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11048 no_undefined_flag_CXX='${wl}-z,text'
11049 archive_cmds_need_lc_CXX=no
11050 hardcode_shlibpath_var_CXX=no
11051 runpath_var='LD_RUN_PATH'
11053 case $cc_basename in
11055 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11056 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11064 sysv5* | sco3.2v5* | sco5v6*)
11065 # Note: We can NOT use -z defs as we might desire, because we do not
11066 # link with -lc, and that would cause any symbols used from libc to
11067 # always be unresolved, which means just about no library would
11068 # ever link correctly. If we're not using GNU ld we use -z text
11069 # though, which does catch some bad symbols but isn't as heavy-handed
11071 # For security reasons, it is highly recommended that you always
11072 # use absolute paths for naming shared libraries, and exclude the
11073 # DT_RUNPATH tag from executables and libraries. But doing so
11074 # requires that you compile everything twice, which is a pain.
11075 # So that behaviour is only enabled if SCOABSPATH is set to a
11076 # non-empty value in the environment. Most likely only useful for
11077 # creating official distributions of packages.
11078 # This is a hack until libtool officially supports absolute path
11079 # names for shared libraries.
11080 no_undefined_flag_CXX='${wl}-z,text'
11081 allow_undefined_flag_CXX='${wl}-z,nodefs'
11082 archive_cmds_need_lc_CXX=no
11083 hardcode_shlibpath_var_CXX=no
11084 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11085 hardcode_libdir_separator_CXX=':'
11086 link_all_deplibs_CXX=yes
11087 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11088 runpath_var='LD_RUN_PATH'
11090 case $cc_basename in
11092 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11093 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11096 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11097 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11102 case $cc_basename in
11104 # NonStop-UX NCC 3.20
11105 # FIXME: insert proper C++ library support
11109 # FIXME: insert proper C++ library support
11115 # FIXME: insert proper C++ library support
11119 # FIXME: insert proper C++ library support
11123 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11124 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11125 test "$ld_shlibs_CXX" = no && can_build_shared=no
11131 cat > conftest.$ac_ext <<EOF
11135 Foo (void) { a = 0; }
11141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142 (eval $ac_compile) 2>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; then
11146 # Parse the compiler output and extract the necessary
11147 # objects, libraries and library flags.
11149 # Sentinel used to keep track of whether or not we are before
11150 # the conftest object file.
11151 pre_test_object_deps_done=no
11153 # The `*' in the case matches for architectures that use `case' in
11154 # $output_verbose_cmd can trigger glob expansion during the loop
11155 # eval without this substitution.
11156 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11158 for p in `eval $output_verbose_link_cmd`; do
11162 # Some compilers place space between "-{L,R}" and the path.
11163 # Remove the space.
11164 if test $p = "-L" \
11165 || test $p = "-R"; then
11172 if test "$pre_test_object_deps_done" = no; then
11175 # Internal compiler library paths should come after those
11176 # provided the user. The postdeps already come after the
11177 # user supplied libs so there is no need to process them.
11178 if test -z "$compiler_lib_search_path_CXX"; then
11179 compiler_lib_search_path_CXX="${prev}${p}"
11181 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11184 # The "-l" case would never come before the object being
11185 # linked, so don't bother handling this case.
11188 if test -z "$postdeps_CXX"; then
11189 postdeps_CXX="${prev}${p}"
11191 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11197 # This assumes that the test object file only shows up
11198 # once in the compiler output.
11199 if test "$p" = "conftest.$objext"; then
11200 pre_test_object_deps_done=yes
11204 if test "$pre_test_object_deps_done" = no; then
11205 if test -z "$predep_objects_CXX"; then
11206 predep_objects_CXX="$p"
11208 predep_objects_CXX="$predep_objects_CXX $p"
11211 if test -z "$postdep_objects_CXX"; then
11212 postdep_objects_CXX="$p"
11214 postdep_objects_CXX="$postdep_objects_CXX $p"
11219 *) ;; # Ignore the rest.
11227 echo "libtool.m4: error: problem compiling CXX test program"
11230 $rm -f confest.$objext
11232 # PORTME: override above test on systems where it is broken
11235 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11236 # hack all around it, let's just trust "g++" to DTRT.
11237 predep_objects_CXX=
11238 postdep_objects_CXX=
11243 case $cc_basename in
11245 # Adding this requires a known-good setup of shared libraries for
11246 # Sun compiler versions before 5.6, else PIC objects from an old
11247 # archive will be linked into the output, leading to subtle bugs.
11248 postdeps_CXX='-lCstd -lCrun'
11255 case " $postdeps_CXX " in
11256 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11259 lt_prog_compiler_wl_CXX=
11260 lt_prog_compiler_pic_CXX=
11261 lt_prog_compiler_static_CXX=
11263 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11264 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11266 # C++ specific cases for pic, static, wl, etc.
11267 if test "$GXX" = yes; then
11268 lt_prog_compiler_wl_CXX='-Wl,'
11269 lt_prog_compiler_static_CXX='-static'
11273 # All AIX code is PIC.
11274 if test "$host_cpu" = ia64; then
11275 # AIX 5 now supports IA64 processor
11276 lt_prog_compiler_static_CXX='-Bstatic'
11280 # FIXME: we need at least 68020 code to build shared libraries, but
11281 # adding the `-m68020' flag to GCC prevents building anything better,
11283 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11285 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11286 # PIC is the default for these OSes.
11288 mingw* | os2* | pw32*)
11289 # This hack is so that the source file can tell whether it is being
11290 # built for inclusion in a dll (and should export symbols for example).
11291 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11293 darwin* | rhapsody*)
11294 # PIC is the default on this platform
11295 # Common symbols not allowed in MH_DYLIB files
11296 lt_prog_compiler_pic_CXX='-fno-common'
11299 # DJGPP does not support shared libraries at all
11300 lt_prog_compiler_pic_CXX=
11303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11304 # Instead, we relocate shared libraries at runtime.
11307 if test -d /usr/nec; then
11308 lt_prog_compiler_pic_CXX=-Kconform_pic
11312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11313 # not for PA HP-UX.
11318 lt_prog_compiler_pic_CXX='-fPIC'
11323 lt_prog_compiler_pic_CXX='-fPIC'
11329 # All AIX code is PIC.
11330 if test "$host_cpu" = ia64; then
11331 # AIX 5 now supports IA64 processor
11332 lt_prog_compiler_static_CXX='-Bstatic'
11334 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11338 case $cc_basename in
11340 # Green Hills C++ Compiler
11341 # _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"
11346 # PIC is the default on this platform
11347 # Common symbols not allowed in MH_DYLIB files
11348 case $cc_basename in
11350 lt_prog_compiler_pic_CXX='-qnocommon'
11351 lt_prog_compiler_wl_CXX='-Wl,'
11356 case $cc_basename in
11358 lt_prog_compiler_pic_CXX='-KPIC'
11361 # Green Hills C++ Compiler
11362 lt_prog_compiler_pic_CXX='-pic'
11368 freebsd* | kfreebsd*-gnu | dragonfly*)
11369 # FreeBSD uses GNU C++
11371 hpux9* | hpux10* | hpux11*)
11372 case $cc_basename in
11374 lt_prog_compiler_wl_CXX='-Wl,'
11375 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11376 if test "$host_cpu" != ia64; then
11377 lt_prog_compiler_pic_CXX='+Z'
11381 lt_prog_compiler_wl_CXX='-Wl,'
11382 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11388 lt_prog_compiler_pic_CXX='+Z'
11397 # This is c89, which is MS Visual C++ (no shared libs)
11398 # Anyone wants to do a port?
11400 irix5* | irix6* | nonstopux*)
11401 case $cc_basename in
11403 lt_prog_compiler_wl_CXX='-Wl,'
11404 lt_prog_compiler_static_CXX='-non_shared'
11405 # CC pic flag -KPIC is the default.
11412 case $cc_basename in
11415 lt_prog_compiler_wl_CXX='--backend -Wl,'
11416 lt_prog_compiler_pic_CXX='-fPIC'
11420 lt_prog_compiler_wl_CXX='-Wl,'
11421 lt_prog_compiler_pic_CXX='-KPIC'
11422 lt_prog_compiler_static_CXX='-static'
11425 # Portland Group C++ compiler.
11426 lt_prog_compiler_wl_CXX='-Wl,'
11427 lt_prog_compiler_pic_CXX='-fpic'
11428 lt_prog_compiler_static_CXX='-Bstatic'
11432 # Make sure the PIC flag is empty. It appears that all Alpha
11433 # Linux and Compaq Tru64 Unix objects are PIC.
11434 lt_prog_compiler_pic_CXX=
11435 lt_prog_compiler_static_CXX='-non_shared'
11446 case $cc_basename in
11448 lt_prog_compiler_pic_CXX='-W c,exportall'
11456 osf3* | osf4* | osf5*)
11457 case $cc_basename in
11459 lt_prog_compiler_wl_CXX='--backend -Wl,'
11462 # Rational C++ 2.4.1
11463 lt_prog_compiler_pic_CXX='-pic'
11466 # Digital/Compaq C++
11467 lt_prog_compiler_wl_CXX='-Wl,'
11468 # Make sure the PIC flag is empty. It appears that all Alpha
11469 # Linux and Compaq Tru64 Unix objects are PIC.
11470 lt_prog_compiler_pic_CXX=
11471 lt_prog_compiler_static_CXX='-non_shared'
11480 case $cc_basename in
11482 # Sun C++ 4.2, 5.x and Centerline C++
11483 lt_prog_compiler_pic_CXX='-KPIC'
11484 lt_prog_compiler_static_CXX='-Bstatic'
11485 lt_prog_compiler_wl_CXX='-Qoption ld '
11488 # Green Hills C++ Compiler
11489 lt_prog_compiler_pic_CXX='-PIC'
11496 case $cc_basename in
11499 lt_prog_compiler_pic_CXX='-pic'
11500 lt_prog_compiler_static_CXX='-Bstatic'
11504 lt_prog_compiler_pic_CXX='-pic'
11511 case $cc_basename in
11513 # NonStop-UX NCC 3.20
11514 lt_prog_compiler_pic_CXX='-KPIC'
11520 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11521 case $cc_basename in
11523 lt_prog_compiler_wl_CXX='-Wl,'
11524 lt_prog_compiler_pic_CXX='-KPIC'
11525 lt_prog_compiler_static_CXX='-Bstatic'
11532 lt_prog_compiler_can_build_shared_CXX=no
11537 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11538 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11541 # Check to make sure the PIC flag actually works.
11543 if test -n "$lt_prog_compiler_pic_CXX"; then
11545 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11546 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11547 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 lt_prog_compiler_pic_works_CXX=no
11551 ac_outfile=conftest.$ac_objext
11552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11553 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11554 # Insert the option either (1) after the last *FLAGS variable, or
11555 # (2) before a word containing "conftest.", or (3) at the end.
11556 # Note that $ac_compile itself does not contain backslashes and begins
11557 # with a dollar sign (not a hyphen), so the echo should work correctly.
11558 # The option is referenced via a variable to avoid confusing sed.
11559 lt_compile=`echo "$ac_compile" | $SED \
11560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11562 -e 's:$: $lt_compiler_flag:'`
11563 (eval echo "\"\$as_me:11563: $lt_compile\"" >&5)
11564 (eval "$lt_compile" 2>conftest.err)
11566 cat conftest.err >&5
11567 echo "$as_me:11567: \$? = $ac_status" >&5
11568 if (exit $ac_status) && test -s "$ac_outfile"; then
11569 # The compiler can only warn and ignore the option if not recognized
11570 # So say no if there are warnings other than the usual output.
11571 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11574 lt_prog_compiler_pic_works_CXX=yes
11580 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11581 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11583 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11584 case $lt_prog_compiler_pic_CXX in
11586 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11589 lt_prog_compiler_pic_CXX=
11590 lt_prog_compiler_can_build_shared_CXX=no
11595 # For platforms which do not support PIC, -DPIC is meaningless:
11597 lt_prog_compiler_pic_CXX=
11600 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11605 # Check to make sure the static flag actually works.
11607 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11608 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11609 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11610 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 lt_prog_compiler_static_works_CXX=no
11614 save_LDFLAGS="$LDFLAGS"
11615 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11616 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11617 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11618 # The linker can only warn and ignore the option if not recognized
11619 # So say no if there are warnings
11620 if test -s conftest.err; then
11621 # Append any errors to the config.log.
11622 cat conftest.err 1>&5
11623 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11625 if diff conftest.exp conftest.er2 >/dev/null; then
11626 lt_prog_compiler_static_works_CXX=yes
11629 lt_prog_compiler_static_works_CXX=yes
11633 LDFLAGS="$save_LDFLAGS"
11636 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11637 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11639 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11642 lt_prog_compiler_static_CXX=
11646 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11647 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11648 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 lt_cv_prog_compiler_c_o_CXX=no
11652 $rm -r conftest 2>/dev/null
11656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11658 lt_compiler_flag="-o out/conftest2.$ac_objext"
11659 # Insert the option either (1) after the last *FLAGS variable, or
11660 # (2) before a word containing "conftest.", or (3) at the end.
11661 # Note that $ac_compile itself does not contain backslashes and begins
11662 # with a dollar sign (not a hyphen), so the echo should work correctly.
11663 lt_compile=`echo "$ac_compile" | $SED \
11664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11666 -e 's:$: $lt_compiler_flag:'`
11667 (eval echo "\"\$as_me:11667: $lt_compile\"" >&5)
11668 (eval "$lt_compile" 2>out/conftest.err)
11670 cat out/conftest.err >&5
11671 echo "$as_me:11671: \$? = $ac_status" >&5
11672 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11674 # The compiler can only warn and ignore the option if not recognized
11675 # So say no if there are warnings
11676 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11677 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11678 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11679 lt_cv_prog_compiler_c_o_CXX=yes
11684 # SGI C++ compiler will create directory out/ii_files/ for
11685 # template instantiation
11686 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11687 $rm out/* && rmdir out
11693 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11694 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11697 hard_links="nottested"
11698 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11699 # do not overwrite the value of need_locks provided by the user
11700 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11701 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11706 ln conftest.a conftest.b 2>&5 || hard_links=no
11707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11708 echo "$as_me:$LINENO: result: $hard_links" >&5
11709 echo "${ECHO_T}$hard_links" >&6
11710 if test "$hard_links" = no; then
11711 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11712 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11719 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11720 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11722 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11725 # If we're using GNU nm, then we don't want the "-C" option.
11726 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11727 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11728 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'
11730 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'
11734 export_symbols_cmds_CXX="$ltdll_cmds"
11737 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'
11740 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11744 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11745 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11746 test "$ld_shlibs_CXX" = no && can_build_shared=no
11749 # Do we need to explicitly link libc?
11751 case "x$archive_cmds_need_lc_CXX" in
11753 # Assume -lc should be added
11754 archive_cmds_need_lc_CXX=yes
11756 if test "$enable_shared" = yes && test "$GCC" = yes; then
11757 case $archive_cmds_CXX in
11759 # FIXME: we may have to deal with multi-command sequences.
11762 # Test whether the compiler implicitly links with -lc since on some
11763 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11764 # to ld, don't add -lc before -lgcc.
11765 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11766 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771 (eval $ac_compile) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } 2>conftest.err; then
11777 libobjs=conftest.$ac_objext
11779 wl=$lt_prog_compiler_wl_CXX
11780 pic_flag=$lt_prog_compiler_pic_CXX
11786 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11787 allow_undefined_flag_CXX=
11788 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11789 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }
11794 archive_cmds_need_lc_CXX=no
11796 archive_cmds_need_lc_CXX=yes
11798 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11800 cat conftest.err 1>&5
11803 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11804 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11811 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11812 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11813 library_names_spec=
11814 libname_spec='lib$name'
11818 postuninstall_cmds=
11822 shlibpath_overrides_runpath=unknown
11824 dynamic_linker="$host_os ld.so"
11825 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11826 if test "$GCC" = yes; then
11827 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11828 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11829 # if the path contains ";" then we assume it to be the separator
11830 # otherwise default to the standard path separator (i.e. ":") - it is
11831 # assumed that no part of a normal pathname contains ";" but that should
11832 # okay in the real world where ";" in dirpaths is itself problematic.
11833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11838 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11840 need_lib_prefix=unknown
11841 hardcode_into_libs=no
11843 # when you set need_version to no, make sure it does not cause -set_version
11844 # flags to be left without arguments
11845 need_version=unknown
11850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11851 shlibpath_var=LIBPATH
11853 # AIX 3 has no versioning support, so we append a major version to the name.
11854 soname_spec='${libname}${release}${shared_ext}$major'
11861 hardcode_into_libs=yes
11862 if test "$host_cpu" = ia64; then
11863 # AIX 5 supports IA64
11864 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11865 shlibpath_var=LD_LIBRARY_PATH
11867 # With GCC up to 2.95.x, collect2 would create an import file
11868 # for dependence libraries. The import file would start with
11869 # the line `#! .'. This would cause the generated library to
11870 # depend on `.', always an invalid library. This was fixed in
11871 # development snapshots of GCC prior to 3.0.
11873 aix4 | aix4.[01] | aix4.[01].*)
11874 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11876 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11879 can_build_shared=no
11883 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11884 # soname into executable. Probably we can add versioning support to
11885 # collect2, so additional links can be useful in future.
11886 if test "$aix_use_runtimelinking" = yes; then
11887 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11888 # instead of lib<name>.a to let people know that these are not
11889 # typical AIX shared libraries.
11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892 # We preserve .a as extension for shared libraries through AIX4.2
11893 # and later when we are not doing run time linking.
11894 library_names_spec='${libname}${release}.a $libname.a'
11895 soname_spec='${libname}${release}${shared_ext}$major'
11897 shlibpath_var=LIBPATH
11902 library_names_spec='$libname.ixlibrary $libname.a'
11903 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11904 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'
11908 library_names_spec='${libname}${shared_ext}'
11909 dynamic_linker="$host_os ld.so"
11910 shlibpath_var=LIBRARY_PATH
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11917 soname_spec='${libname}${release}${shared_ext}$major'
11918 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11919 shlibpath_var=LD_LIBRARY_PATH
11920 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11921 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11922 # the default ld.so.conf also contains /usr/contrib/lib and
11923 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11924 # libtool to hard-code these into programs
11927 cygwin* | mingw* | pw32*)
11928 version_type=windows
11933 case $GCC,$host_os in
11934 yes,cygwin* | yes,mingw* | yes,pw32*)
11935 library_names_spec='$libname.dll.a'
11936 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11937 postinstall_cmds='base_file=`basename \${file}`~
11938 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11939 dldir=$destdir/`dirname \$dlpath`~
11940 test -d \$dldir || mkdir -p \$dldir~
11941 $install_prog $dir/$dlname \$dldir/$dlname~
11942 chmod a+x \$dldir/$dlname'
11943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11944 dlpath=$dir/\$dldll~
11946 shlibpath_overrides_runpath=yes
11950 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11951 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11952 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11955 # MinGW DLLs use traditional 'lib' prefix
11956 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11957 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11958 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11959 # It is most probably a Windows format PATH printed by
11960 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11961 # path with ; separators, and with drive letters. We can handle the
11962 # drive letters (cygwin fileutils understands them), so leave them,
11963 # especially as we might pass files found there to a mingw objdump,
11964 # which wouldn't understand a cygwinified path. Ahh.
11965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11971 # pw32 DLLs use 'pw' prefix rather than 'lib'
11972 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11978 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11981 dynamic_linker='Win32 ld.exe'
11982 # FIXME: first we should search . and the directory the executable is in
11986 darwin* | rhapsody*)
11987 dynamic_linker="$host_os dyld"
11988 version_type=darwin
11991 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11992 soname_spec='${libname}${release}${major}$shared_ext'
11993 shlibpath_overrides_runpath=yes
11994 shlibpath_var=DYLD_LIBRARY_PATH
11995 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11996 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11997 if test "$GCC" = yes; then
11998 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"`
12000 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12002 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12010 soname_spec='${libname}${release}${shared_ext}$major'
12011 shlibpath_var=LD_LIBRARY_PATH
12022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12023 soname_spec='${libname}${release}${shared_ext}$major'
12024 shlibpath_var=LD_LIBRARY_PATH
12025 shlibpath_overrides_runpath=no
12026 hardcode_into_libs=yes
12027 dynamic_linker='GNU ld.so'
12030 freebsd* | dragonfly*)
12031 # DragonFly does not have aout. When/if they implement a new
12032 # versioning mechanism, adjust this.
12033 if test -x /usr/bin/objformat; then
12034 objformat=`/usr/bin/objformat`
12037 freebsd[123]*) objformat=aout ;;
12038 *) objformat=elf ;;
12041 version_type=freebsd-$objformat
12042 case $version_type in
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12053 shlibpath_var=LD_LIBRARY_PATH
12056 shlibpath_overrides_runpath=yes
12058 freebsd3.[01]* | freebsdelf3.[01]*)
12059 shlibpath_overrides_runpath=yes
12060 hardcode_into_libs=yes
12062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12064 shlibpath_overrides_runpath=no
12065 hardcode_into_libs=yes
12067 freebsd*) # from 4.6 on
12068 shlibpath_overrides_runpath=yes
12069 hardcode_into_libs=yes
12078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12079 soname_spec='${libname}${release}${shared_ext}$major'
12080 shlibpath_var=LD_LIBRARY_PATH
12081 hardcode_into_libs=yes
12084 hpux9* | hpux10* | hpux11*)
12085 # Give a soname corresponding to the major version so that dld.sl refuses to
12086 # link against other versions.
12093 hardcode_into_libs=yes
12094 dynamic_linker="$host_os dld.so"
12095 shlibpath_var=LD_LIBRARY_PATH
12096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12098 soname_spec='${libname}${release}${shared_ext}$major'
12099 if test "X$HPUX_IA64_MODE" = X32; then
12100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12108 hardcode_into_libs=yes
12109 dynamic_linker="$host_os dld.sl"
12110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12113 soname_spec='${libname}${release}${shared_ext}$major'
12114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12119 dynamic_linker="$host_os dld.sl"
12120 shlibpath_var=SHLIB_PATH
12121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
12126 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12127 postinstall_cmds='chmod 555 $lib'
12134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12135 soname_spec='${libname}${release}${shared_ext}$major'
12136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12137 shlibpath_var=LD_LIBRARY_PATH
12138 shlibpath_overrides_runpath=no
12139 hardcode_into_libs=yes
12142 irix5* | irix6* | nonstopux*)
12144 nonstopux*) version_type=nonstopux ;;
12146 if test "$lt_cv_prog_gnu_ld" = yes; then
12154 soname_spec='${libname}${release}${shared_ext}$major'
12155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12157 irix5* | nonstopux*)
12158 libsuff= shlibsuff=
12161 case $LD in # libtool.m4 will add one of these switches to LD
12162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12163 libsuff= shlibsuff= libmagic=32-bit;;
12164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12165 libsuff=32 shlibsuff=N32 libmagic=N32;;
12166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12168 *) libsuff= shlibsuff= libmagic=never-match;;
12172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12173 shlibpath_overrides_runpath=no
12174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12176 hardcode_into_libs=yes
12179 # No shared lib support for Linux oldld, aout, or coff.
12180 linux*oldld* | linux*aout* | linux*coff*)
12184 # This must be Linux ELF.
12189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12190 soname_spec='${libname}${release}${shared_ext}$major'
12191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12192 shlibpath_var=LD_LIBRARY_PATH
12193 shlibpath_overrides_runpath=no
12194 # This implies no fast_install, which is unacceptable.
12195 # Some rework will be needed to allow for fast_install
12196 # before this can be enabled.
12197 hardcode_into_libs=yes
12199 # Append ld.so.conf contents to the search path
12200 if test -f /etc/ld.so.conf; then
12201 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' ' '`
12202 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12205 # We used to test for /lib/ld.so.1 and disable shared libraries on
12206 # powerpc, because MkLinux only supported shared libraries with the
12207 # GNU dynamic linker. Since this was broken with cross compilers,
12208 # most powerpc-linux boxes support dynamic linking these days and
12209 # people can always --disable-shared, the test was removed, and we
12210 # assume the GNU/Linux dynamic linker is in use.
12211 dynamic_linker='GNU/Linux ld.so'
12218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12219 soname_spec='${libname}${release}${shared_ext}$major'
12220 shlibpath_var=LD_LIBRARY_PATH
12221 shlibpath_overrides_runpath=no
12222 hardcode_into_libs=yes
12223 dynamic_linker='GNU ld.so'
12230 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12233 dynamic_linker='NetBSD (a.out) ld.so'
12235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12236 soname_spec='${libname}${release}${shared_ext}$major'
12237 dynamic_linker='NetBSD ld.elf_so'
12239 shlibpath_var=LD_LIBRARY_PATH
12240 shlibpath_overrides_runpath=yes
12241 hardcode_into_libs=yes
12246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 shlibpath_overrides_runpath=yes
12255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12256 soname_spec='${libname}${release}${shared_ext}$major'
12257 shlibpath_var=LD_LIBRARY_PATH
12258 shlibpath_overrides_runpath=yes
12263 sys_lib_dlsearch_path_spec="/usr/lib"
12265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12268 *) need_version=no ;;
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12272 shlibpath_var=LD_LIBRARY_PATH
12273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12275 openbsd2.[89] | openbsd2.[89].*)
12276 shlibpath_overrides_runpath=no
12279 shlibpath_overrides_runpath=yes
12283 shlibpath_overrides_runpath=yes
12288 libname_spec='$name'
12291 library_names_spec='$libname${shared_ext} $libname.a'
12292 dynamic_linker='OS/2 ld.exe'
12293 shlibpath_var=LIBPATH
12296 osf3* | osf4* | osf5*)
12300 soname_spec='${libname}${release}${shared_ext}$major'
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302 shlibpath_var=LD_LIBRARY_PATH
12303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12312 soname_spec='${libname}${release}${shared_ext}$major'
12313 shlibpath_var=LD_LIBRARY_PATH
12314 shlibpath_overrides_runpath=yes
12315 hardcode_into_libs=yes
12316 # ldd complains unless libraries are executable
12317 postinstall_cmds='chmod +x $lib'
12322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12324 shlibpath_var=LD_LIBRARY_PATH
12325 shlibpath_overrides_runpath=yes
12326 if test "$with_gnu_ld" = yes; then
12334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12335 soname_spec='${libname}${release}${shared_ext}$major'
12336 shlibpath_var=LD_LIBRARY_PATH
12337 case $host_vendor in
12339 shlibpath_overrides_runpath=no
12341 export_dynamic_flag_spec='${wl}-Blargedynsym'
12342 runpath_var=LD_RUN_PATH
12350 shlibpath_overrides_runpath=no
12351 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12357 if test -d /usr/nec ;then
12359 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12360 soname_spec='$libname${shared_ext}.$major'
12361 shlibpath_var=LD_LIBRARY_PATH
12365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12366 version_type=freebsd-elf
12369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12370 soname_spec='${libname}${release}${shared_ext}$major'
12371 shlibpath_var=LD_LIBRARY_PATH
12372 hardcode_into_libs=yes
12373 if test "$with_gnu_ld" = yes; then
12374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12375 shlibpath_overrides_runpath=no
12377 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12378 shlibpath_overrides_runpath=yes
12381 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12385 sys_lib_dlsearch_path_spec='/usr/lib'
12390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12391 soname_spec='${libname}${release}${shared_ext}$major'
12392 shlibpath_var=LD_LIBRARY_PATH
12399 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12400 echo "${ECHO_T}$dynamic_linker" >&6
12401 test "$dynamic_linker" = no && can_build_shared=no
12403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12404 if test "$GCC" = yes; then
12405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12408 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12410 hardcode_action_CXX=
12411 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12412 test -n "$runpath_var_CXX" || \
12413 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12415 # We can hardcode non-existant directories.
12416 if test "$hardcode_direct_CXX" != no &&
12417 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12418 # have to relink, otherwise we might link with an installed library
12419 # when we should be linking with a yet-to-be-installed one
12420 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12421 test "$hardcode_minus_L_CXX" != no; then
12422 # Linking always hardcodes the temporary library directory.
12423 hardcode_action_CXX=relink
12425 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12426 hardcode_action_CXX=immediate
12429 # We cannot hardcode anything, or else we can only hardcode existing
12431 hardcode_action_CXX=unsupported
12433 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12434 echo "${ECHO_T}$hardcode_action_CXX" >&6
12436 if test "$hardcode_action_CXX" = relink; then
12437 # Fast installation is not supported
12438 enable_fast_install=no
12439 elif test "$shlibpath_overrides_runpath" = yes ||
12440 test "$enable_shared" = no; then
12441 # Fast installation is not necessary
12442 enable_fast_install=needless
12446 # The else clause should only fire when bootstrapping the
12447 # libtool distribution, otherwise you forgot to ship ltmain.sh
12448 # with your package, and you will get complaints that there are
12449 # no rules to generate ltmain.sh.
12450 if test -f "$ltmain"; then
12451 # See if we are running on zsh, and set the options which allow our commands through
12452 # without removal of \ escapes.
12453 if test -n "${ZSH_VERSION+set}" ; then
12454 setopt NO_GLOB_SUBST
12456 # Now quote all the things that may contain metacharacters while being
12457 # careful not to overquote the AC_SUBSTed values. We take copies of the
12458 # variables and quote the copies for generation of the libtool script.
12459 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12461 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12462 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12463 deplibs_check_method reload_flag reload_cmds need_locks \
12464 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12465 lt_cv_sys_global_symbol_to_c_name_address \
12466 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12467 old_postinstall_cmds old_postuninstall_cmds \
12471 lt_prog_compiler_wl_CXX \
12472 lt_prog_compiler_pic_CXX \
12473 lt_prog_compiler_static_CXX \
12474 lt_prog_compiler_no_builtin_flag_CXX \
12475 export_dynamic_flag_spec_CXX \
12476 thread_safe_flag_spec_CXX \
12477 whole_archive_flag_spec_CXX \
12478 enable_shared_with_static_runtimes_CXX \
12479 old_archive_cmds_CXX \
12480 old_archive_from_new_cmds_CXX \
12481 predep_objects_CXX \
12482 postdep_objects_CXX \
12485 compiler_lib_search_path_CXX \
12487 archive_expsym_cmds_CXX \
12488 postinstall_cmds_CXX \
12489 postuninstall_cmds_CXX \
12490 old_archive_from_expsyms_cmds_CXX \
12491 allow_undefined_flag_CXX \
12492 no_undefined_flag_CXX \
12493 export_symbols_cmds_CXX \
12494 hardcode_libdir_flag_spec_CXX \
12495 hardcode_libdir_flag_spec_ld_CXX \
12496 hardcode_libdir_separator_CXX \
12497 hardcode_automatic_CXX \
12499 module_expsym_cmds_CXX \
12500 lt_cv_prog_compiler_c_o_CXX \
12501 exclude_expsyms_CXX \
12502 include_expsyms_CXX; do
12505 old_archive_cmds_CXX | \
12506 old_archive_from_new_cmds_CXX | \
12507 archive_cmds_CXX | \
12508 archive_expsym_cmds_CXX | \
12509 module_cmds_CXX | \
12510 module_expsym_cmds_CXX | \
12511 old_archive_from_expsyms_cmds_CXX | \
12512 export_symbols_cmds_CXX | \
12513 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12514 postinstall_cmds | postuninstall_cmds | \
12515 old_postinstall_cmds | old_postuninstall_cmds | \
12516 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12517 # Double-quote double-evaled strings.
12518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12527 *'\$0 --fallback-echo"')
12528 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12534 cat <<__EOF__ >> "$cfgfile"
12535 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12537 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12539 # Shell to use when invoking shell scripts.
12542 # Whether or not to build shared libraries.
12543 build_libtool_libs=$enable_shared
12545 # Whether or not to build static libraries.
12546 build_old_libs=$enable_static
12548 # Whether or not to add -lc for building shared libraries.
12549 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12551 # Whether or not to disallow shared libs when runtime libs are static
12552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12554 # Whether or not to optimize for fast installation.
12555 fast_install=$enable_fast_install
12558 host_alias=$host_alias
12562 # The build system.
12563 build_alias=$build_alias
12567 # An echo program that does not interpret backslashes.
12572 AR_FLAGS=$lt_AR_FLAGS
12577 # LTCC compiler flags.
12578 LTCFLAGS=$lt_LTCFLAGS
12580 # A language-specific compiler.
12581 CC=$lt_compiler_CXX
12583 # Is the compiler the GNU C compiler?
12589 # The linker used to build libraries.
12592 # Whether we need hard or soft links.
12595 # A BSD-compatible nm program.
12598 # A symbol stripping program
12601 # Used to examine libraries when file_magic_cmd begins "file"
12602 MAGIC_CMD=$MAGIC_CMD
12604 # Used on cygwin: DLL creation program.
12607 # Used on cygwin: object dumper.
12610 # Used on cygwin: assembler.
12613 # The name of the directory that contains temporary libtool files.
12616 # How to create reloadable object files.
12617 reload_flag=$lt_reload_flag
12618 reload_cmds=$lt_reload_cmds
12620 # How to pass a linker flag through the compiler.
12621 wl=$lt_lt_prog_compiler_wl_CXX
12623 # Object file suffix (normally "o").
12624 objext="$ac_objext"
12626 # Old archive suffix (normally "a").
12629 # Shared library suffix (normally ".so").
12630 shrext_cmds='$shrext_cmds'
12632 # Executable file suffix (normally "").
12635 # Additional compiler flags for building library objects.
12636 pic_flag=$lt_lt_prog_compiler_pic_CXX
12639 # What is the maximum length of a command?
12640 max_cmd_len=$lt_cv_sys_max_cmd_len
12642 # Does compiler simultaneously support -c and -o options?
12643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12645 # Must we lock files when doing compilation?
12646 need_locks=$lt_need_locks
12648 # Do we need the lib prefix for modules?
12649 need_lib_prefix=$need_lib_prefix
12651 # Do we need a version for libraries?
12652 need_version=$need_version
12654 # Whether dlopen is supported.
12655 dlopen_support=$enable_dlopen
12657 # Whether dlopen of programs is supported.
12658 dlopen_self=$enable_dlopen_self
12660 # Whether dlopen of statically linked programs is supported.
12661 dlopen_self_static=$enable_dlopen_self_static
12663 # Compiler flag to prevent dynamic linking.
12664 link_static_flag=$lt_lt_prog_compiler_static_CXX
12666 # Compiler flag to turn off builtin functions.
12667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12669 # Compiler flag to allow reflexive dlopens.
12670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12672 # Compiler flag to generate shared objects directly from archives.
12673 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12675 # Compiler flag to generate thread-safe objects.
12676 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12678 # Library versioning type.
12679 version_type=$version_type
12681 # Format of library name prefix.
12682 libname_spec=$lt_libname_spec
12684 # List of archive names. First name is the real one, the rest are links.
12685 # The last name is the one that the linker finds with -lNAME.
12686 library_names_spec=$lt_library_names_spec
12688 # The coded name of the library, if different from the real name.
12689 soname_spec=$lt_soname_spec
12691 # Commands used to build and install an old-style archive.
12693 old_archive_cmds=$lt_old_archive_cmds_CXX
12694 old_postinstall_cmds=$lt_old_postinstall_cmds
12695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12697 # Create an old-style archive from a shared archive.
12698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12700 # Create a temporary old-style archive to link instead of a shared archive.
12701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12703 # Commands used to build and install a shared archive.
12704 archive_cmds=$lt_archive_cmds_CXX
12705 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12706 postinstall_cmds=$lt_postinstall_cmds
12707 postuninstall_cmds=$lt_postuninstall_cmds
12709 # Commands used to build a loadable module (assumed same as above if empty)
12710 module_cmds=$lt_module_cmds_CXX
12711 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12713 # Commands to strip libraries.
12714 old_striplib=$lt_old_striplib
12715 striplib=$lt_striplib
12717 # Dependencies to place before the objects being linked to create a
12719 predep_objects=$lt_predep_objects_CXX
12721 # Dependencies to place after the objects being linked to create a
12723 postdep_objects=$lt_postdep_objects_CXX
12725 # Dependencies to place before the objects being linked to create a
12727 predeps=$lt_predeps_CXX
12729 # Dependencies to place after the objects being linked to create a
12731 postdeps=$lt_postdeps_CXX
12733 # The library search path used internally by the compiler when linking
12734 # a shared library.
12735 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12737 # Method to check whether dependent libraries are shared objects.
12738 deplibs_check_method=$lt_deplibs_check_method
12740 # Command to use when deplibs_check_method == file_magic.
12741 file_magic_cmd=$lt_file_magic_cmd
12743 # Flag that allows shared libraries with undefined symbols to be built.
12744 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12746 # Flag that forces no undefined symbols.
12747 no_undefined_flag=$lt_no_undefined_flag_CXX
12749 # Commands used to finish a libtool library installation in a directory.
12750 finish_cmds=$lt_finish_cmds
12752 # Same as above, but a single script fragment to be evaled but not shown.
12753 finish_eval=$lt_finish_eval
12755 # Take the output of nm and produce a listing of raw symbols and C names.
12756 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12758 # Transform the output of nm in a proper C declaration
12759 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12761 # Transform the output of nm in a C name address pair
12762 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12764 # This is the shared library runtime path variable.
12765 runpath_var=$runpath_var
12767 # This is the shared library path variable.
12768 shlibpath_var=$shlibpath_var
12770 # Is shlibpath searched before the hard-coded library search path?
12771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12773 # How to hardcode a shared library path into an executable.
12774 hardcode_action=$hardcode_action_CXX
12776 # Whether we should hardcode library paths into libraries.
12777 hardcode_into_libs=$hardcode_into_libs
12779 # Flag to hardcode \$libdir into a binary during linking.
12780 # This must work even if \$libdir does not exist.
12781 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12783 # If ld is used when linking, flag to hardcode \$libdir into
12784 # a binary during linking. This must work even if \$libdir does
12786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12788 # Whether we need a single -rpath flag with a separated argument.
12789 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12791 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12792 # resulting binary.
12793 hardcode_direct=$hardcode_direct_CXX
12795 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12796 # resulting binary.
12797 hardcode_minus_L=$hardcode_minus_L_CXX
12799 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12800 # the resulting binary.
12801 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12803 # Set to yes if building a shared library automatically hardcodes DIR into the library
12804 # and all subsequent libraries and executables linked against it.
12805 hardcode_automatic=$hardcode_automatic_CXX
12807 # Variables whose values should be saved in libtool wrapper scripts and
12808 # restored at relink time.
12809 variables_saved_for_relink="$variables_saved_for_relink"
12811 # Whether libtool must link a program against all its dependency libraries.
12812 link_all_deplibs=$link_all_deplibs_CXX
12814 # Compile-time system search path for libraries
12815 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12817 # Run-time system search path for libraries
12818 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12820 # Fix the shell variable \$srcfile for the compiler.
12821 fix_srcfile_path="$fix_srcfile_path_CXX"
12823 # Set to yes if exported symbols are required.
12824 always_export_symbols=$always_export_symbols_CXX
12826 # The commands to list exported symbols.
12827 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12829 # The commands to extract the exported symbol list from a shared archive.
12830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12832 # Symbols that should not be listed in the preloaded symbols.
12833 exclude_expsyms=$lt_exclude_expsyms_CXX
12835 # Symbols that must always be exported.
12836 include_expsyms=$lt_include_expsyms_CXX
12838 # ### END LIBTOOL TAG CONFIG: $tagname
12844 # If there is no Makefile yet, we rely on a make rule to execute
12845 # `config.status --recheck' to rerun these tests and create the
12846 # libtool script then.
12847 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12848 if test -f "$ltmain_in"; then
12849 test -f Makefile && make "$ltmain"
12855 ac_cpp='$CPP $CPPFLAGS'
12856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12864 with_gnu_ldcxx=$with_gnu_ld
12865 with_gnu_ld=$lt_save_with_gnu_ld
12866 lt_cv_path_LDCXX=$lt_cv_path_LD
12867 lt_cv_path_LD=$lt_save_path_LD
12868 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12869 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12877 if test -n "$F77" && test "X$F77" != "Xno"; then
12880 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12881 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12882 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12885 archive_cmds_need_lc_F77=no
12886 allow_undefined_flag_F77=
12887 always_export_symbols_F77=no
12888 archive_expsym_cmds_F77=
12889 export_dynamic_flag_spec_F77=
12890 hardcode_direct_F77=no
12891 hardcode_libdir_flag_spec_F77=
12892 hardcode_libdir_flag_spec_ld_F77=
12893 hardcode_libdir_separator_F77=
12894 hardcode_minus_L_F77=no
12895 hardcode_automatic_F77=no
12897 module_expsym_cmds_F77=
12898 link_all_deplibs_F77=unknown
12899 old_archive_cmds_F77=$old_archive_cmds
12900 no_undefined_flag_F77=
12901 whole_archive_flag_spec_F77=
12902 enable_shared_with_static_runtimes_F77=no
12904 # Source file extension for f77 test sources.
12907 # Object file extension for compiled f77 test sources.
12911 # Code to be used in simple compile tests
12912 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12914 # Code to be used in simple link tests
12915 lt_simple_link_test_code=" program t\n end\n"
12917 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12919 # If no C compiler was specified, use CC.
12922 # If no C compiler flags were specified, use CFLAGS.
12923 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12925 # Allow CC to be a program name with arguments.
12929 # save warnings/boilerplate of simple test code
12930 ac_outfile=conftest.$ac_objext
12931 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12932 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12933 _lt_compiler_boilerplate=`cat conftest.err`
12936 ac_outfile=conftest.$ac_objext
12937 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12938 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12939 _lt_linker_boilerplate=`cat conftest.err`
12943 # Allow CC to be a program name with arguments.
12948 for cc_temp in $compiler""; do
12950 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12951 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12956 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12959 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12960 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12961 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12962 echo "${ECHO_T}$can_build_shared" >&6
12964 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12965 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12966 test "$can_build_shared" = "no" && enable_shared=no
12968 # On AIX, shared libraries and static libraries use the same namespace, and
12969 # are all built from PIC.
12972 test "$enable_shared" = yes && enable_static=no
12973 if test -n "$RANLIB"; then
12974 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12975 postinstall_cmds='$RANLIB $lib'
12979 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12980 test "$enable_shared" = yes && enable_static=no
12984 echo "$as_me:$LINENO: result: $enable_shared" >&5
12985 echo "${ECHO_T}$enable_shared" >&6
12987 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12988 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12989 # Make sure either enable_shared or enable_static is yes.
12990 test "$enable_shared" = yes || enable_static=yes
12991 echo "$as_me:$LINENO: result: $enable_static" >&5
12992 echo "${ECHO_T}$enable_static" >&6
12997 lt_prog_compiler_wl_F77=
12998 lt_prog_compiler_pic_F77=
12999 lt_prog_compiler_static_F77=
13001 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13002 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13004 if test "$GCC" = yes; then
13005 lt_prog_compiler_wl_F77='-Wl,'
13006 lt_prog_compiler_static_F77='-static'
13010 # All AIX code is PIC.
13011 if test "$host_cpu" = ia64; then
13012 # AIX 5 now supports IA64 processor
13013 lt_prog_compiler_static_F77='-Bstatic'
13018 # FIXME: we need at least 68020 code to build shared libraries, but
13019 # adding the `-m68020' flag to GCC prevents building anything better,
13021 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13024 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13025 # PIC is the default for these OSes.
13028 mingw* | pw32* | os2*)
13029 # This hack is so that the source file can tell whether it is being
13030 # built for inclusion in a dll (and should export symbols for example).
13031 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13034 darwin* | rhapsody*)
13035 # PIC is the default on this platform
13036 # Common symbols not allowed in MH_DYLIB files
13037 lt_prog_compiler_pic_F77='-fno-common'
13041 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13042 # Instead, we relocate shared libraries at runtime.
13046 # Just because we use GCC doesn't mean we suddenly get shared libraries
13047 # on systems that don't support them.
13048 lt_prog_compiler_can_build_shared_F77=no
13053 if test -d /usr/nec; then
13054 lt_prog_compiler_pic_F77=-Kconform_pic
13059 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13060 # not for PA HP-UX.
13066 lt_prog_compiler_pic_F77='-fPIC'
13072 lt_prog_compiler_pic_F77='-fPIC'
13076 # PORTME Check for flag to pass linker flags through the system compiler.
13079 lt_prog_compiler_wl_F77='-Wl,'
13080 if test "$host_cpu" = ia64; then
13081 # AIX 5 now supports IA64 processor
13082 lt_prog_compiler_static_F77='-Bstatic'
13084 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13088 # PIC is the default on this platform
13089 # Common symbols not allowed in MH_DYLIB files
13090 case $cc_basename in
13092 lt_prog_compiler_pic_F77='-qnocommon'
13093 lt_prog_compiler_wl_F77='-Wl,'
13098 mingw* | pw32* | os2*)
13099 # This hack is so that the source file can tell whether it is being
13100 # built for inclusion in a dll (and should export symbols for example).
13101 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13104 hpux9* | hpux10* | hpux11*)
13105 lt_prog_compiler_wl_F77='-Wl,'
13106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13107 # not for PA HP-UX.
13113 lt_prog_compiler_pic_F77='+Z'
13116 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13117 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13120 irix5* | irix6* | nonstopux*)
13121 lt_prog_compiler_wl_F77='-Wl,'
13122 # PIC (with -KPIC) is the default.
13123 lt_prog_compiler_static_F77='-non_shared'
13127 lt_prog_compiler_pic_F77='-KPIC'
13128 lt_prog_compiler_static_F77='-Bstatic'
13132 case $cc_basename in
13134 lt_prog_compiler_wl_F77='-Wl,'
13135 lt_prog_compiler_pic_F77='-KPIC'
13136 lt_prog_compiler_static_F77='-static'
13138 pgcc* | pgf77* | pgf90* | pgf95*)
13139 # Portland Group compilers (*not* the Pentium gcc compiler,
13140 # which looks to be a dead project)
13141 lt_prog_compiler_wl_F77='-Wl,'
13142 lt_prog_compiler_pic_F77='-fpic'
13143 lt_prog_compiler_static_F77='-Bstatic'
13146 lt_prog_compiler_wl_F77='-Wl,'
13147 # All Alpha code is PIC.
13148 lt_prog_compiler_static_F77='-non_shared'
13153 osf3* | osf4* | osf5*)
13154 lt_prog_compiler_wl_F77='-Wl,'
13155 # All OSF/1 code is PIC.
13156 lt_prog_compiler_static_F77='-non_shared'
13160 lt_prog_compiler_pic_F77='-KPIC'
13161 lt_prog_compiler_static_F77='-Bstatic'
13162 case $cc_basename in
13163 f77* | f90* | f95*)
13164 lt_prog_compiler_wl_F77='-Qoption ld ';;
13166 lt_prog_compiler_wl_F77='-Wl,';;
13171 lt_prog_compiler_wl_F77='-Qoption ld '
13172 lt_prog_compiler_pic_F77='-PIC'
13173 lt_prog_compiler_static_F77='-Bstatic'
13176 sysv4 | sysv4.2uw2* | sysv4.3*)
13177 lt_prog_compiler_wl_F77='-Wl,'
13178 lt_prog_compiler_pic_F77='-KPIC'
13179 lt_prog_compiler_static_F77='-Bstatic'
13183 if test -d /usr/nec ;then
13184 lt_prog_compiler_pic_F77='-Kconform_pic'
13185 lt_prog_compiler_static_F77='-Bstatic'
13189 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13190 lt_prog_compiler_wl_F77='-Wl,'
13191 lt_prog_compiler_pic_F77='-KPIC'
13192 lt_prog_compiler_static_F77='-Bstatic'
13196 lt_prog_compiler_wl_F77='-Wl,'
13197 lt_prog_compiler_can_build_shared_F77=no
13201 lt_prog_compiler_pic_F77='-pic'
13202 lt_prog_compiler_static_F77='-Bstatic'
13206 lt_prog_compiler_can_build_shared_F77=no
13211 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13212 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13215 # Check to make sure the PIC flag actually works.
13217 if test -n "$lt_prog_compiler_pic_F77"; then
13219 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13220 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13221 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13224 lt_prog_compiler_pic_works_F77=no
13225 ac_outfile=conftest.$ac_objext
13226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13227 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13228 # Insert the option either (1) after the last *FLAGS variable, or
13229 # (2) before a word containing "conftest.", or (3) at the end.
13230 # Note that $ac_compile itself does not contain backslashes and begins
13231 # with a dollar sign (not a hyphen), so the echo should work correctly.
13232 # The option is referenced via a variable to avoid confusing sed.
13233 lt_compile=`echo "$ac_compile" | $SED \
13234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13236 -e 's:$: $lt_compiler_flag:'`
13237 (eval echo "\"\$as_me:13237: $lt_compile\"" >&5)
13238 (eval "$lt_compile" 2>conftest.err)
13240 cat conftest.err >&5
13241 echo "$as_me:13241: \$? = $ac_status" >&5
13242 if (exit $ac_status) && test -s "$ac_outfile"; then
13243 # The compiler can only warn and ignore the option if not recognized
13244 # So say no if there are warnings other than the usual output.
13245 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13247 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13248 lt_prog_compiler_pic_works_F77=yes
13254 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13255 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13257 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13258 case $lt_prog_compiler_pic_F77 in
13260 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13263 lt_prog_compiler_pic_F77=
13264 lt_prog_compiler_can_build_shared_F77=no
13269 # For platforms which do not support PIC, -DPIC is meaningless:
13271 lt_prog_compiler_pic_F77=
13274 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13279 # Check to make sure the static flag actually works.
13281 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13282 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13283 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13284 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 lt_prog_compiler_static_works_F77=no
13288 save_LDFLAGS="$LDFLAGS"
13289 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13290 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13292 # The linker can only warn and ignore the option if not recognized
13293 # So say no if there are warnings
13294 if test -s conftest.err; then
13295 # Append any errors to the config.log.
13296 cat conftest.err 1>&5
13297 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13299 if diff conftest.exp conftest.er2 >/dev/null; then
13300 lt_prog_compiler_static_works_F77=yes
13303 lt_prog_compiler_static_works_F77=yes
13307 LDFLAGS="$save_LDFLAGS"
13310 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13311 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13313 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13316 lt_prog_compiler_static_F77=
13320 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13321 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13322 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 lt_cv_prog_compiler_c_o_F77=no
13326 $rm -r conftest 2>/dev/null
13330 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13332 lt_compiler_flag="-o out/conftest2.$ac_objext"
13333 # Insert the option either (1) after the last *FLAGS variable, or
13334 # (2) before a word containing "conftest.", or (3) at the end.
13335 # Note that $ac_compile itself does not contain backslashes and begins
13336 # with a dollar sign (not a hyphen), so the echo should work correctly.
13337 lt_compile=`echo "$ac_compile" | $SED \
13338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13340 -e 's:$: $lt_compiler_flag:'`
13341 (eval echo "\"\$as_me:13341: $lt_compile\"" >&5)
13342 (eval "$lt_compile" 2>out/conftest.err)
13344 cat out/conftest.err >&5
13345 echo "$as_me:13345: \$? = $ac_status" >&5
13346 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13348 # The compiler can only warn and ignore the option if not recognized
13349 # So say no if there are warnings
13350 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13351 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13352 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13353 lt_cv_prog_compiler_c_o_F77=yes
13358 # SGI C++ compiler will create directory out/ii_files/ for
13359 # template instantiation
13360 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13361 $rm out/* && rmdir out
13367 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13368 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13371 hard_links="nottested"
13372 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13373 # do not overwrite the value of need_locks provided by the user
13374 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13375 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13380 ln conftest.a conftest.b 2>&5 || hard_links=no
13381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13382 echo "$as_me:$LINENO: result: $hard_links" >&5
13383 echo "${ECHO_T}$hard_links" >&6
13384 if test "$hard_links" = no; then
13385 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13386 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13393 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13394 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13397 allow_undefined_flag_F77=
13398 enable_shared_with_static_runtimes_F77=no
13400 archive_expsym_cmds_F77=
13401 old_archive_From_new_cmds_F77=
13402 old_archive_from_expsyms_cmds_F77=
13403 export_dynamic_flag_spec_F77=
13404 whole_archive_flag_spec_F77=
13405 thread_safe_flag_spec_F77=
13406 hardcode_libdir_flag_spec_F77=
13407 hardcode_libdir_flag_spec_ld_F77=
13408 hardcode_libdir_separator_F77=
13409 hardcode_direct_F77=no
13410 hardcode_minus_L_F77=no
13411 hardcode_shlibpath_var_F77=unsupported
13412 link_all_deplibs_F77=unknown
13413 hardcode_automatic_F77=no
13415 module_expsym_cmds_F77=
13416 always_export_symbols_F77=no
13417 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13418 # include_expsyms should be a list of space-separated symbols to be *always*
13419 # included in the symbol list
13420 include_expsyms_F77=
13421 # exclude_expsyms can be an extended regexp of symbols to exclude
13422 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13423 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13424 # as well as any symbol that contains `d'.
13425 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13426 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13427 # platforms (ab)use it in PIC code, but their linkers get confused if
13428 # the symbol is explicitly referenced. Since portable code cannot
13429 # rely on this symbol name, it's probably fine to never include it in
13430 # preloaded symbol tables.
13431 extract_expsyms_cmds=
13432 # Just being paranoid about ensuring that cc_basename is set.
13433 for cc_temp in $compiler""; do
13435 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13436 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13441 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13444 cygwin* | mingw* | pw32*)
13445 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13446 # When not using gcc, we currently assume that we are using
13447 # Microsoft Visual C++.
13448 if test "$GCC" != yes; then
13453 # we just hope/assume this is gcc and not c89 (= MSVC++)
13462 if test "$with_gnu_ld" = yes; then
13463 # If archive_cmds runs LD, not CC, wlarc should be empty
13466 # Set some defaults for GNU ld with shared library support. These
13467 # are reset later if shared libraries are not supported. Putting them
13468 # here allows them to be overridden if necessary.
13469 runpath_var=LD_RUN_PATH
13470 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13471 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13472 # ancient GNU ld didn't support --whole-archive et. al.
13473 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13474 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13476 whole_archive_flag_spec_F77=
13478 supports_anon_versioning=no
13479 case `$LD -v 2>/dev/null` in
13480 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13481 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13482 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13483 *\ 2.11.*) ;; # other 2.11 versions
13484 *) supports_anon_versioning=yes ;;
13487 # See if GNU ld supports shared libraries.
13489 aix3* | aix4* | aix5*)
13490 # On AIX/PPC, the GNU linker is very broken
13491 if test "$host_cpu" != ia64; then
13495 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13496 *** to be unable to reliably create shared libraries on AIX.
13497 *** Therefore, libtool is disabling shared libraries support. If you
13498 *** really care for shared libraries, you may want to modify your PATH
13499 *** so that a non-GNU linker is found, and then restart.
13506 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)'
13507 hardcode_libdir_flag_spec_F77='-L$libdir'
13508 hardcode_minus_L_F77=yes
13510 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13511 # that the semantics of dynamic libraries on AmigaOS, at least up
13512 # to version 4, is to share data among multiple programs linked
13513 # with the same dynamic library. Since this doesn't match the
13514 # behavior of shared libraries on other platforms, we can't use
13520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13521 allow_undefined_flag_F77=unsupported
13522 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13523 # support --undefined. This deserves some investigation. FIXME
13524 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13530 cygwin* | mingw* | pw32*)
13531 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13532 # as there is no search path for DLLs.
13533 hardcode_libdir_flag_spec_F77='-L$libdir'
13534 allow_undefined_flag_F77=unsupported
13535 always_export_symbols_F77=no
13536 enable_shared_with_static_runtimes_F77=yes
13537 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13539 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13540 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13541 # If the export-symbols file already is a .def file (1st line
13542 # is EXPORTS), use it as is; otherwise, prepend...
13543 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13544 cp $export_symbols $output_objdir/$soname.def;
13546 echo EXPORTS > $output_objdir/$soname.def;
13547 cat $export_symbols >> $output_objdir/$soname.def;
13549 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13556 hardcode_direct_F77=no
13557 hardcode_shlibpath_var_F77=no
13558 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13559 export_dynamic_flag_spec_F77='${wl}-E'
13560 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13561 # Instead, shared libraries are loaded at an image base (0x10000000 by
13562 # default) and relocated if they conflict, which is a slow very memory
13563 # consuming and fragmenting process. To avoid this, we pick a random,
13564 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13565 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13566 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'
13567 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'
13571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13573 case $cc_basename,$host_cpu in
13574 pgcc*) # Portland Group C compiler
13575 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'
13576 tmp_addflag=' $pic_flag'
13578 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13579 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'
13580 tmp_addflag=' $pic_flag -Mnomain' ;;
13581 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13582 tmp_addflag=' -i_dynamic' ;;
13583 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13584 tmp_addflag=' -i_dynamic -nofor_main' ;;
13585 ifc* | ifort*) # Intel Fortran compiler
13586 tmp_addflag=' -nofor_main' ;;
13588 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13590 if test $supports_anon_versioning = yes; then
13591 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13592 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13593 $echo "local: *; };" >> $output_objdir/$libname.ver~
13594 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13602 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13603 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13606 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13607 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13612 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13616 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13617 *** create shared libraries on Solaris systems. Therefore, libtool
13618 *** is disabling shared libraries support. We urge you to upgrade GNU
13619 *** binutils to release 2.9.1 or newer. Another option is to modify
13620 *** your PATH or compiler configuration so that the native linker is
13621 *** used, and then restart.
13624 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13625 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13626 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13633 case `$LD -v 2>&1` in
13634 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13638 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13639 *** reliably create shared libraries on SCO systems. Therefore, libtool
13640 *** is disabling shared libraries support. We urge you to upgrade GNU
13641 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13642 *** your PATH or compiler configuration so that the native linker is
13643 *** used, and then restart.
13648 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13649 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13650 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13651 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13660 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13662 hardcode_direct_F77=yes
13663 hardcode_shlibpath_var_F77=no
13667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13668 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13669 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13676 if test "$ld_shlibs_F77" = no; then
13678 hardcode_libdir_flag_spec_F77=
13679 export_dynamic_flag_spec_F77=
13680 whole_archive_flag_spec_F77=
13683 # PORTME fill in a description of your system's linker (not GNU ld)
13686 allow_undefined_flag_F77=unsupported
13687 always_export_symbols_F77=yes
13688 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'
13689 # Note: this linker hardcodes the directories in LIBPATH if there
13690 # are no directories specified by -L.
13691 hardcode_minus_L_F77=yes
13692 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13693 # Neither direct hardcoding nor static linking is supported with a
13695 hardcode_direct_F77=unsupported
13700 if test "$host_cpu" = ia64; then
13701 # On IA64, the linker does run time linking by default, so we don't
13702 # have to do anything special.
13703 aix_use_runtimelinking=no
13704 exp_sym_flag='-Bexport'
13707 # If we're using GNU nm, then we don't want the "-C" option.
13708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13709 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13710 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'
13712 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'
13714 aix_use_runtimelinking=no
13716 # Test if we are trying to use run time linking or normal
13717 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13718 # need to do runtime linking.
13719 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13720 for ld_flag in $LDFLAGS; do
13721 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13722 aix_use_runtimelinking=yes
13729 exp_sym_flag='-bexport'
13730 no_entry_flag='-bnoentry'
13733 # When large executables or shared objects are built, AIX ld can
13734 # have problems creating the table of contents. If linking a library
13735 # or program results in "error TOC overflow" add -mminimal-toc to
13736 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13737 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13739 archive_cmds_F77=''
13740 hardcode_direct_F77=yes
13741 hardcode_libdir_separator_F77=':'
13742 link_all_deplibs_F77=yes
13744 if test "$GCC" = yes; then
13745 case $host_os in aix4.[012]|aix4.[012].*)
13746 # We only want to do this on AIX 4.2 and lower, the check
13747 # below for broken collect2 doesn't work under 4.3+
13748 collect2name=`${CC} -print-prog-name=collect2`
13749 if test -f "$collect2name" && \
13750 strings "$collect2name" | grep resolve_lib_name >/dev/null
13752 # We have reworked collect2
13753 hardcode_direct_F77=yes
13755 # We have old collect2
13756 hardcode_direct_F77=unsupported
13757 # It fails to find uninstalled libraries when the uninstalled
13758 # path is not listed in the libpath. Setting hardcode_minus_L
13759 # to unsupported forces relinking
13760 hardcode_minus_L_F77=yes
13761 hardcode_libdir_flag_spec_F77='-L$libdir'
13762 hardcode_libdir_separator_F77=
13766 shared_flag='-shared'
13767 if test "$aix_use_runtimelinking" = yes; then
13768 shared_flag="$shared_flag "'${wl}-G'
13772 if test "$host_cpu" = ia64; then
13773 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13774 # chokes on -Wl,-G. The following line is correct:
13777 if test "$aix_use_runtimelinking" = yes; then
13778 shared_flag='${wl}-G'
13780 shared_flag='${wl}-bM:SRE'
13785 # It seems that -bexpall does not export symbols beginning with
13786 # underscore (_), so it is better to generate a list of symbols to export.
13787 always_export_symbols_F77=yes
13788 if test "$aix_use_runtimelinking" = yes; then
13789 # Warning - without using the other runtime loading flags (-brtl),
13790 # -berok will link without error, but may produce a broken library.
13791 allow_undefined_flag_F77='-berok'
13792 # Determine the default libpath from the value encoded in an empty executable.
13793 cat >conftest.$ac_ext <<_ACEOF
13798 rm -f conftest.$ac_objext conftest$ac_exeext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800 (eval $ac_link) 2>conftest.er1
13802 grep -v '^ *+' conftest.er1 >conftest.err
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -z "$ac_f77_werror_flag"
13808 || test ! -s conftest.err'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest$ac_exeext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13823 # Check for a 64-bit object if we didn't find anything.
13824 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; }
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13831 rm -f conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
13833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13835 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13836 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"
13838 if test "$host_cpu" = ia64; then
13839 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13840 allow_undefined_flag_F77="-z nodefs"
13841 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"
13843 # Determine the default libpath from the value encoded in an empty executable.
13844 cat >conftest.$ac_ext <<_ACEOF
13849 rm -f conftest.$ac_objext conftest$ac_exeext
13850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13851 (eval $ac_link) 2>conftest.er1
13853 grep -v '^ *+' conftest.er1 >conftest.err
13855 cat conftest.err >&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } &&
13858 { ac_try='test -z "$ac_f77_werror_flag"
13859 || test ! -s conftest.err'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest$ac_exeext'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
13872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13874 # Check for a 64-bit object if we didn't find anything.
13875 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; }
13878 echo "$as_me: failed program was:" >&5
13879 sed 's/^/| /' conftest.$ac_ext >&5
13882 rm -f conftest.err conftest.$ac_objext \
13883 conftest$ac_exeext conftest.$ac_ext
13884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13886 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13887 # Warning - without using the other run time loading flags,
13888 # -berok will link without error, but may produce a broken library.
13889 no_undefined_flag_F77=' ${wl}-bernotok'
13890 allow_undefined_flag_F77=' ${wl}-berok'
13891 # Exported symbols can be pulled into shared objects from archives
13892 whole_archive_flag_spec_F77='$convenience'
13893 archive_cmds_need_lc_F77=yes
13894 # This is similar to how AIX traditionally builds its shared libraries.
13895 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'
13901 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)'
13902 hardcode_libdir_flag_spec_F77='-L$libdir'
13903 hardcode_minus_L_F77=yes
13904 # see comment about different semantics on the GNU ld section
13909 export_dynamic_flag_spec_F77=-rdynamic
13912 cygwin* | mingw* | pw32*)
13913 # When not using gcc, we currently assume that we are using
13914 # Microsoft Visual C++.
13915 # hardcode_libdir_flag_spec is actually meaningless, as there is
13916 # no search path for DLLs.
13917 hardcode_libdir_flag_spec_F77=' '
13918 allow_undefined_flag_F77=unsupported
13919 # Tell ltmain to make .lib files, not .a files.
13921 # Tell ltmain to make .dll files, not .so files.
13923 # FIXME: Setting linknames here is a bad hack.
13924 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13925 # The linker will automatically build a .lib file if we build a DLL.
13926 old_archive_From_new_cmds_F77='true'
13927 # FIXME: Should let the user specify the lib program.
13928 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13929 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13930 enable_shared_with_static_runtimes_F77=yes
13933 darwin* | rhapsody*)
13935 rhapsody* | darwin1.[012])
13936 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13939 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13940 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13942 case ${MACOSX_DEPLOYMENT_TARGET} in
13944 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13947 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13953 archive_cmds_need_lc_F77=no
13954 hardcode_direct_F77=no
13955 hardcode_automatic_F77=yes
13956 hardcode_shlibpath_var_F77=unsupported
13957 whole_archive_flag_spec_F77=''
13958 link_all_deplibs_F77=yes
13959 if test "$GCC" = yes ; then
13960 output_verbose_link_cmd='echo'
13961 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13962 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13963 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13964 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}'
13965 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}'
13967 case $cc_basename in
13969 output_verbose_link_cmd='echo'
13970 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13971 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13972 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13973 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}'
13974 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}'
13984 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13985 hardcode_libdir_flag_spec_F77='-L$libdir'
13986 hardcode_shlibpath_var_F77=no
13993 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13994 # support. Future versions do this automatically, but an explicit c++rt0.o
13995 # does not break anything, and helps significantly (at the cost of a little
13998 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13999 hardcode_libdir_flag_spec_F77='-R$libdir'
14000 hardcode_direct_F77=yes
14001 hardcode_shlibpath_var_F77=no
14004 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14006 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14007 hardcode_direct_F77=yes
14008 hardcode_minus_L_F77=yes
14009 hardcode_shlibpath_var_F77=no
14012 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14013 freebsd* | kfreebsd*-gnu | dragonfly*)
14014 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14015 hardcode_libdir_flag_spec_F77='-R$libdir'
14016 hardcode_direct_F77=yes
14017 hardcode_shlibpath_var_F77=no
14021 if test "$GCC" = yes; then
14022 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'
14024 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'
14026 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14027 hardcode_libdir_separator_F77=:
14028 hardcode_direct_F77=yes
14030 # hardcode_minus_L: Not really in the search PATH,
14031 # but as the default location of the library.
14032 hardcode_minus_L_F77=yes
14033 export_dynamic_flag_spec_F77='${wl}-E'
14037 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14038 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14040 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14042 if test "$with_gnu_ld" = no; then
14043 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14044 hardcode_libdir_separator_F77=:
14046 hardcode_direct_F77=yes
14047 export_dynamic_flag_spec_F77='${wl}-E'
14049 # hardcode_minus_L: Not really in the search PATH,
14050 # but as the default location of the library.
14051 hardcode_minus_L_F77=yes
14056 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14059 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14065 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='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14074 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14077 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14081 if test "$with_gnu_ld" = no; then
14082 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14083 hardcode_libdir_separator_F77=:
14087 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14088 hardcode_direct_F77=no
14089 hardcode_shlibpath_var_F77=no
14092 hardcode_direct_F77=yes
14093 export_dynamic_flag_spec_F77='${wl}-E'
14095 # hardcode_minus_L: Not really in the search PATH,
14096 # but as the default location of the library.
14097 hardcode_minus_L_F77=yes
14103 irix5* | irix6* | nonstopux*)
14104 if test "$GCC" = yes; then
14105 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'
14107 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'
14108 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14110 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14111 hardcode_libdir_separator_F77=:
14112 link_all_deplibs_F77=yes
14116 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14117 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14119 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14121 hardcode_libdir_flag_spec_F77='-R$libdir'
14122 hardcode_direct_F77=yes
14123 hardcode_shlibpath_var_F77=no
14127 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14128 hardcode_direct_F77=yes
14129 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14130 hardcode_libdir_separator_F77=:
14131 hardcode_shlibpath_var_F77=no
14135 hardcode_direct_F77=yes
14136 hardcode_shlibpath_var_F77=no
14137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14138 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14139 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14140 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14141 export_dynamic_flag_spec_F77='${wl}-E'
14144 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14145 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14146 hardcode_libdir_flag_spec_F77='-R$libdir'
14149 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14150 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14157 hardcode_libdir_flag_spec_F77='-L$libdir'
14158 hardcode_minus_L_F77=yes
14159 allow_undefined_flag_F77=unsupported
14160 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'
14161 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14165 if test "$GCC" = yes; then
14166 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14167 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'
14169 allow_undefined_flag_F77=' -expect_unresolved \*'
14170 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'
14172 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14173 hardcode_libdir_separator_F77=:
14176 osf4* | osf5*) # as osf3* with the addition of -msym flag
14177 if test "$GCC" = yes; then
14178 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14179 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'
14180 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14182 allow_undefined_flag_F77=' -expect_unresolved \*'
14183 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'
14184 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~
14185 $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'
14187 # Both c and cxx compiler support -rpath directly
14188 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14190 hardcode_libdir_separator_F77=:
14194 no_undefined_flag_F77=' -z text'
14195 if test "$GCC" = yes; then
14197 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14198 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14199 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14202 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14203 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14204 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14206 hardcode_libdir_flag_spec_F77='-R$libdir'
14207 hardcode_shlibpath_var_F77=no
14209 solaris2.[0-5] | solaris2.[0-5].*) ;;
14211 # The compiler driver will combine linker options so we
14212 # cannot just pass the convience library names through
14213 # without $wl, iff we do not link with $LD.
14214 # Luckily, gcc supports the same syntax we need for Sun Studio.
14215 # Supported since Solaris 2.6 (maybe 2.5.1?)
14218 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14220 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' ;;
14223 link_all_deplibs_F77=yes
14227 if test "x$host_vendor" = xsequent; then
14228 # Use $CC to link under sequent, because it throws in some extra .o
14229 # files that make .init and .fini sections work.
14230 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14232 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14234 hardcode_libdir_flag_spec_F77='-L$libdir'
14235 hardcode_direct_F77=yes
14236 hardcode_minus_L_F77=yes
14237 hardcode_shlibpath_var_F77=no
14241 case $host_vendor in
14243 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14244 hardcode_direct_F77=yes # is this really true???
14247 ## LD is ld it makes a PLAMLIB
14248 ## CC just makes a GrossModule.
14249 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14250 reload_cmds_F77='$CC -r -o $output$reload_objs'
14251 hardcode_direct_F77=no
14254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14255 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14258 runpath_var='LD_RUN_PATH'
14259 hardcode_shlibpath_var_F77=no
14263 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14264 hardcode_shlibpath_var_F77=no
14265 export_dynamic_flag_spec_F77='-Bexport'
14269 if test -d /usr/nec; then
14270 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14271 hardcode_shlibpath_var_F77=no
14272 runpath_var=LD_RUN_PATH
14273 hardcode_runpath_var=yes
14278 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14279 no_undefined_flag_F77='${wl}-z,text'
14280 archive_cmds_need_lc_F77=no
14281 hardcode_shlibpath_var_F77=no
14282 runpath_var='LD_RUN_PATH'
14284 if test "$GCC" = yes; then
14285 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14286 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14288 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14289 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14293 sysv5* | sco3.2v5* | sco5v6*)
14294 # Note: We can NOT use -z defs as we might desire, because we do not
14295 # link with -lc, and that would cause any symbols used from libc to
14296 # always be unresolved, which means just about no library would
14297 # ever link correctly. If we're not using GNU ld we use -z text
14298 # though, which does catch some bad symbols but isn't as heavy-handed
14300 no_undefined_flag_F77='${wl}-z,text'
14301 allow_undefined_flag_F77='${wl}-z,nodefs'
14302 archive_cmds_need_lc_F77=no
14303 hardcode_shlibpath_var_F77=no
14304 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14305 hardcode_libdir_separator_F77=':'
14306 link_all_deplibs_F77=yes
14307 export_dynamic_flag_spec_F77='${wl}-Bexport'
14308 runpath_var='LD_RUN_PATH'
14310 if test "$GCC" = yes; then
14311 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14312 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14314 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14315 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14320 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14321 hardcode_libdir_flag_spec_F77='-L$libdir'
14322 hardcode_shlibpath_var_F77=no
14331 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14332 echo "${ECHO_T}$ld_shlibs_F77" >&6
14333 test "$ld_shlibs_F77" = no && can_build_shared=no
14336 # Do we need to explicitly link libc?
14338 case "x$archive_cmds_need_lc_F77" in
14340 # Assume -lc should be added
14341 archive_cmds_need_lc_F77=yes
14343 if test "$enable_shared" = yes && test "$GCC" = yes; then
14344 case $archive_cmds_F77 in
14346 # FIXME: we may have to deal with multi-command sequences.
14349 # Test whether the compiler implicitly links with -lc since on some
14350 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14351 # to ld, don't add -lc before -lgcc.
14352 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14353 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358 (eval $ac_compile) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } 2>conftest.err; then
14364 libobjs=conftest.$ac_objext
14366 wl=$lt_prog_compiler_wl_F77
14367 pic_flag=$lt_prog_compiler_pic_F77
14373 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14374 allow_undefined_flag_F77=
14375 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14376 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }
14381 archive_cmds_need_lc_F77=no
14383 archive_cmds_need_lc_F77=yes
14385 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14387 cat conftest.err 1>&5
14390 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14391 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14398 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14399 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14400 library_names_spec=
14401 libname_spec='lib$name'
14405 postuninstall_cmds=
14409 shlibpath_overrides_runpath=unknown
14411 dynamic_linker="$host_os ld.so"
14412 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14413 if test "$GCC" = yes; then
14414 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14415 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14416 # if the path contains ";" then we assume it to be the separator
14417 # otherwise default to the standard path separator (i.e. ":") - it is
14418 # assumed that no part of a normal pathname contains ";" but that should
14419 # okay in the real world where ";" in dirpaths is itself problematic.
14420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14425 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14427 need_lib_prefix=unknown
14428 hardcode_into_libs=no
14430 # when you set need_version to no, make sure it does not cause -set_version
14431 # flags to be left without arguments
14432 need_version=unknown
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14438 shlibpath_var=LIBPATH
14440 # AIX 3 has no versioning support, so we append a major version to the name.
14441 soname_spec='${libname}${release}${shared_ext}$major'
14448 hardcode_into_libs=yes
14449 if test "$host_cpu" = ia64; then
14450 # AIX 5 supports IA64
14451 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14452 shlibpath_var=LD_LIBRARY_PATH
14454 # With GCC up to 2.95.x, collect2 would create an import file
14455 # for dependence libraries. The import file would start with
14456 # the line `#! .'. This would cause the generated library to
14457 # depend on `.', always an invalid library. This was fixed in
14458 # development snapshots of GCC prior to 3.0.
14460 aix4 | aix4.[01] | aix4.[01].*)
14461 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14463 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14466 can_build_shared=no
14470 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14471 # soname into executable. Probably we can add versioning support to
14472 # collect2, so additional links can be useful in future.
14473 if test "$aix_use_runtimelinking" = yes; then
14474 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14475 # instead of lib<name>.a to let people know that these are not
14476 # typical AIX shared libraries.
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14479 # We preserve .a as extension for shared libraries through AIX4.2
14480 # and later when we are not doing run time linking.
14481 library_names_spec='${libname}${release}.a $libname.a'
14482 soname_spec='${libname}${release}${shared_ext}$major'
14484 shlibpath_var=LIBPATH
14489 library_names_spec='$libname.ixlibrary $libname.a'
14490 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14491 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'
14495 library_names_spec='${libname}${shared_ext}'
14496 dynamic_linker="$host_os ld.so"
14497 shlibpath_var=LIBRARY_PATH
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504 soname_spec='${libname}${release}${shared_ext}$major'
14505 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14506 shlibpath_var=LD_LIBRARY_PATH
14507 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14508 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14509 # the default ld.so.conf also contains /usr/contrib/lib and
14510 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14511 # libtool to hard-code these into programs
14514 cygwin* | mingw* | pw32*)
14515 version_type=windows
14520 case $GCC,$host_os in
14521 yes,cygwin* | yes,mingw* | yes,pw32*)
14522 library_names_spec='$libname.dll.a'
14523 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14524 postinstall_cmds='base_file=`basename \${file}`~
14525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14526 dldir=$destdir/`dirname \$dlpath`~
14527 test -d \$dldir || mkdir -p \$dldir~
14528 $install_prog $dir/$dlname \$dldir/$dlname~
14529 chmod a+x \$dldir/$dlname'
14530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14531 dlpath=$dir/\$dldll~
14533 shlibpath_overrides_runpath=yes
14537 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14538 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14539 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14542 # MinGW DLLs use traditional 'lib' prefix
14543 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14544 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14545 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14546 # It is most probably a Windows format PATH printed by
14547 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14548 # path with ; separators, and with drive letters. We can handle the
14549 # drive letters (cygwin fileutils understands them), so leave them,
14550 # especially as we might pass files found there to a mingw objdump,
14551 # which wouldn't understand a cygwinified path. Ahh.
14552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14558 # pw32 DLLs use 'pw' prefix rather than 'lib'
14559 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14565 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14568 dynamic_linker='Win32 ld.exe'
14569 # FIXME: first we should search . and the directory the executable is in
14573 darwin* | rhapsody*)
14574 dynamic_linker="$host_os dyld"
14575 version_type=darwin
14578 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14579 soname_spec='${libname}${release}${major}$shared_ext'
14580 shlibpath_overrides_runpath=yes
14581 shlibpath_var=DYLD_LIBRARY_PATH
14582 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14583 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14584 if test "$GCC" = yes; then
14585 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"`
14587 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14589 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 shlibpath_var=LD_LIBRARY_PATH
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14610 soname_spec='${libname}${release}${shared_ext}$major'
14611 shlibpath_var=LD_LIBRARY_PATH
14612 shlibpath_overrides_runpath=no
14613 hardcode_into_libs=yes
14614 dynamic_linker='GNU ld.so'
14617 freebsd* | dragonfly*)
14618 # DragonFly does not have aout. When/if they implement a new
14619 # versioning mechanism, adjust this.
14620 if test -x /usr/bin/objformat; then
14621 objformat=`/usr/bin/objformat`
14624 freebsd[123]*) objformat=aout ;;
14625 *) objformat=elf ;;
14628 version_type=freebsd-$objformat
14629 case $version_type in
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14640 shlibpath_var=LD_LIBRARY_PATH
14643 shlibpath_overrides_runpath=yes
14645 freebsd3.[01]* | freebsdelf3.[01]*)
14646 shlibpath_overrides_runpath=yes
14647 hardcode_into_libs=yes
14649 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14650 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14651 shlibpath_overrides_runpath=no
14652 hardcode_into_libs=yes
14654 freebsd*) # from 4.6 on
14655 shlibpath_overrides_runpath=yes
14656 hardcode_into_libs=yes
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 hardcode_into_libs=yes
14671 hpux9* | hpux10* | hpux11*)
14672 # Give a soname corresponding to the major version so that dld.sl refuses to
14673 # link against other versions.
14680 hardcode_into_libs=yes
14681 dynamic_linker="$host_os dld.so"
14682 shlibpath_var=LD_LIBRARY_PATH
14683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 if test "X$HPUX_IA64_MODE" = X32; then
14687 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14689 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14695 hardcode_into_libs=yes
14696 dynamic_linker="$host_os dld.sl"
14697 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14706 dynamic_linker="$host_os dld.sl"
14707 shlibpath_var=SHLIB_PATH
14708 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710 soname_spec='${libname}${release}${shared_ext}$major'
14713 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14714 postinstall_cmds='chmod 555 $lib'
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14722 soname_spec='${libname}${release}${shared_ext}$major'
14723 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14724 shlibpath_var=LD_LIBRARY_PATH
14725 shlibpath_overrides_runpath=no
14726 hardcode_into_libs=yes
14729 irix5* | irix6* | nonstopux*)
14731 nonstopux*) version_type=nonstopux ;;
14733 if test "$lt_cv_prog_gnu_ld" = yes; then
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14744 irix5* | nonstopux*)
14745 libsuff= shlibsuff=
14748 case $LD in # libtool.m4 will add one of these switches to LD
14749 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14750 libsuff= shlibsuff= libmagic=32-bit;;
14751 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14752 libsuff=32 shlibsuff=N32 libmagic=N32;;
14753 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14754 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14755 *) libsuff= shlibsuff= libmagic=never-match;;
14759 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14760 shlibpath_overrides_runpath=no
14761 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14762 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14763 hardcode_into_libs=yes
14766 # No shared lib support for Linux oldld, aout, or coff.
14767 linux*oldld* | linux*aout* | linux*coff*)
14771 # This must be Linux ELF.
14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14777 soname_spec='${libname}${release}${shared_ext}$major'
14778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14779 shlibpath_var=LD_LIBRARY_PATH
14780 shlibpath_overrides_runpath=no
14781 # This implies no fast_install, which is unacceptable.
14782 # Some rework will be needed to allow for fast_install
14783 # before this can be enabled.
14784 hardcode_into_libs=yes
14786 # Append ld.so.conf contents to the search path
14787 if test -f /etc/ld.so.conf; then
14788 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' ' '`
14789 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14792 # We used to test for /lib/ld.so.1 and disable shared libraries on
14793 # powerpc, because MkLinux only supported shared libraries with the
14794 # GNU dynamic linker. Since this was broken with cross compilers,
14795 # most powerpc-linux boxes support dynamic linking these days and
14796 # people can always --disable-shared, the test was removed, and we
14797 # assume the GNU/Linux dynamic linker is in use.
14798 dynamic_linker='GNU/Linux ld.so'
14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14806 soname_spec='${libname}${release}${shared_ext}$major'
14807 shlibpath_var=LD_LIBRARY_PATH
14808 shlibpath_overrides_runpath=no
14809 hardcode_into_libs=yes
14810 dynamic_linker='GNU ld.so'
14817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14820 dynamic_linker='NetBSD (a.out) ld.so'
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14823 soname_spec='${libname}${release}${shared_ext}$major'
14824 dynamic_linker='NetBSD ld.elf_so'
14826 shlibpath_var=LD_LIBRARY_PATH
14827 shlibpath_overrides_runpath=yes
14828 hardcode_into_libs=yes
14833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14834 shlibpath_var=LD_LIBRARY_PATH
14835 shlibpath_overrides_runpath=yes
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 shlibpath_overrides_runpath=yes
14850 sys_lib_dlsearch_path_spec="/usr/lib"
14852 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14854 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14855 *) need_version=no ;;
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14862 openbsd2.[89] | openbsd2.[89].*)
14863 shlibpath_overrides_runpath=no
14866 shlibpath_overrides_runpath=yes
14870 shlibpath_overrides_runpath=yes
14875 libname_spec='$name'
14878 library_names_spec='$libname${shared_ext} $libname.a'
14879 dynamic_linker='OS/2 ld.exe'
14880 shlibpath_var=LIBPATH
14883 osf3* | osf4* | osf5*)
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 shlibpath_var=LD_LIBRARY_PATH
14901 shlibpath_overrides_runpath=yes
14902 hardcode_into_libs=yes
14903 # ldd complains unless libraries are executable
14904 postinstall_cmds='chmod +x $lib'
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14910 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14911 shlibpath_var=LD_LIBRARY_PATH
14912 shlibpath_overrides_runpath=yes
14913 if test "$with_gnu_ld" = yes; then
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922 soname_spec='${libname}${release}${shared_ext}$major'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 case $host_vendor in
14926 shlibpath_overrides_runpath=no
14928 export_dynamic_flag_spec='${wl}-Blargedynsym'
14929 runpath_var=LD_RUN_PATH
14937 shlibpath_overrides_runpath=no
14938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14944 if test -d /usr/nec ;then
14946 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14947 soname_spec='$libname${shared_ext}.$major'
14948 shlibpath_var=LD_LIBRARY_PATH
14952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14953 version_type=freebsd-elf
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14957 soname_spec='${libname}${release}${shared_ext}$major'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 hardcode_into_libs=yes
14960 if test "$with_gnu_ld" = yes; then
14961 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14962 shlibpath_overrides_runpath=no
14964 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14965 shlibpath_overrides_runpath=yes
14968 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14972 sys_lib_dlsearch_path_spec='/usr/lib'
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 shlibpath_var=LD_LIBRARY_PATH
14986 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14987 echo "${ECHO_T}$dynamic_linker" >&6
14988 test "$dynamic_linker" = no && can_build_shared=no
14990 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14991 if test "$GCC" = yes; then
14992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14995 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14996 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14997 hardcode_action_F77=
14998 if test -n "$hardcode_libdir_flag_spec_F77" || \
14999 test -n "$runpath_var_F77" || \
15000 test "X$hardcode_automatic_F77" = "Xyes" ; then
15002 # We can hardcode non-existant directories.
15003 if test "$hardcode_direct_F77" != no &&
15004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15005 # have to relink, otherwise we might link with an installed library
15006 # when we should be linking with a yet-to-be-installed one
15007 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15008 test "$hardcode_minus_L_F77" != no; then
15009 # Linking always hardcodes the temporary library directory.
15010 hardcode_action_F77=relink
15012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15013 hardcode_action_F77=immediate
15016 # We cannot hardcode anything, or else we can only hardcode existing
15018 hardcode_action_F77=unsupported
15020 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15021 echo "${ECHO_T}$hardcode_action_F77" >&6
15023 if test "$hardcode_action_F77" = relink; then
15024 # Fast installation is not supported
15025 enable_fast_install=no
15026 elif test "$shlibpath_overrides_runpath" = yes ||
15027 test "$enable_shared" = no; then
15028 # Fast installation is not necessary
15029 enable_fast_install=needless
15033 # The else clause should only fire when bootstrapping the
15034 # libtool distribution, otherwise you forgot to ship ltmain.sh
15035 # with your package, and you will get complaints that there are
15036 # no rules to generate ltmain.sh.
15037 if test -f "$ltmain"; then
15038 # See if we are running on zsh, and set the options which allow our commands through
15039 # without removal of \ escapes.
15040 if test -n "${ZSH_VERSION+set}" ; then
15041 setopt NO_GLOB_SUBST
15043 # Now quote all the things that may contain metacharacters while being
15044 # careful not to overquote the AC_SUBSTed values. We take copies of the
15045 # variables and quote the copies for generation of the libtool script.
15046 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15048 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15049 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15050 deplibs_check_method reload_flag reload_cmds need_locks \
15051 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15052 lt_cv_sys_global_symbol_to_c_name_address \
15053 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15054 old_postinstall_cmds old_postuninstall_cmds \
15058 lt_prog_compiler_wl_F77 \
15059 lt_prog_compiler_pic_F77 \
15060 lt_prog_compiler_static_F77 \
15061 lt_prog_compiler_no_builtin_flag_F77 \
15062 export_dynamic_flag_spec_F77 \
15063 thread_safe_flag_spec_F77 \
15064 whole_archive_flag_spec_F77 \
15065 enable_shared_with_static_runtimes_F77 \
15066 old_archive_cmds_F77 \
15067 old_archive_from_new_cmds_F77 \
15068 predep_objects_F77 \
15069 postdep_objects_F77 \
15072 compiler_lib_search_path_F77 \
15074 archive_expsym_cmds_F77 \
15075 postinstall_cmds_F77 \
15076 postuninstall_cmds_F77 \
15077 old_archive_from_expsyms_cmds_F77 \
15078 allow_undefined_flag_F77 \
15079 no_undefined_flag_F77 \
15080 export_symbols_cmds_F77 \
15081 hardcode_libdir_flag_spec_F77 \
15082 hardcode_libdir_flag_spec_ld_F77 \
15083 hardcode_libdir_separator_F77 \
15084 hardcode_automatic_F77 \
15086 module_expsym_cmds_F77 \
15087 lt_cv_prog_compiler_c_o_F77 \
15088 exclude_expsyms_F77 \
15089 include_expsyms_F77; do
15092 old_archive_cmds_F77 | \
15093 old_archive_from_new_cmds_F77 | \
15094 archive_cmds_F77 | \
15095 archive_expsym_cmds_F77 | \
15096 module_cmds_F77 | \
15097 module_expsym_cmds_F77 | \
15098 old_archive_from_expsyms_cmds_F77 | \
15099 export_symbols_cmds_F77 | \
15100 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15101 postinstall_cmds | postuninstall_cmds | \
15102 old_postinstall_cmds | old_postuninstall_cmds | \
15103 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15104 # Double-quote double-evaled strings.
15105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15114 *'\$0 --fallback-echo"')
15115 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15121 cat <<__EOF__ >> "$cfgfile"
15122 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15124 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15126 # Shell to use when invoking shell scripts.
15129 # Whether or not to build shared libraries.
15130 build_libtool_libs=$enable_shared
15132 # Whether or not to build static libraries.
15133 build_old_libs=$enable_static
15135 # Whether or not to add -lc for building shared libraries.
15136 build_libtool_need_lc=$archive_cmds_need_lc_F77
15138 # Whether or not to disallow shared libs when runtime libs are static
15139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15141 # Whether or not to optimize for fast installation.
15142 fast_install=$enable_fast_install
15145 host_alias=$host_alias
15149 # The build system.
15150 build_alias=$build_alias
15154 # An echo program that does not interpret backslashes.
15159 AR_FLAGS=$lt_AR_FLAGS
15164 # LTCC compiler flags.
15165 LTCFLAGS=$lt_LTCFLAGS
15167 # A language-specific compiler.
15168 CC=$lt_compiler_F77
15170 # Is the compiler the GNU C compiler?
15176 # The linker used to build libraries.
15179 # Whether we need hard or soft links.
15182 # A BSD-compatible nm program.
15185 # A symbol stripping program
15188 # Used to examine libraries when file_magic_cmd begins "file"
15189 MAGIC_CMD=$MAGIC_CMD
15191 # Used on cygwin: DLL creation program.
15194 # Used on cygwin: object dumper.
15197 # Used on cygwin: assembler.
15200 # The name of the directory that contains temporary libtool files.
15203 # How to create reloadable object files.
15204 reload_flag=$lt_reload_flag
15205 reload_cmds=$lt_reload_cmds
15207 # How to pass a linker flag through the compiler.
15208 wl=$lt_lt_prog_compiler_wl_F77
15210 # Object file suffix (normally "o").
15211 objext="$ac_objext"
15213 # Old archive suffix (normally "a").
15216 # Shared library suffix (normally ".so").
15217 shrext_cmds='$shrext_cmds'
15219 # Executable file suffix (normally "").
15222 # Additional compiler flags for building library objects.
15223 pic_flag=$lt_lt_prog_compiler_pic_F77
15226 # What is the maximum length of a command?
15227 max_cmd_len=$lt_cv_sys_max_cmd_len
15229 # Does compiler simultaneously support -c and -o options?
15230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15232 # Must we lock files when doing compilation?
15233 need_locks=$lt_need_locks
15235 # Do we need the lib prefix for modules?
15236 need_lib_prefix=$need_lib_prefix
15238 # Do we need a version for libraries?
15239 need_version=$need_version
15241 # Whether dlopen is supported.
15242 dlopen_support=$enable_dlopen
15244 # Whether dlopen of programs is supported.
15245 dlopen_self=$enable_dlopen_self
15247 # Whether dlopen of statically linked programs is supported.
15248 dlopen_self_static=$enable_dlopen_self_static
15250 # Compiler flag to prevent dynamic linking.
15251 link_static_flag=$lt_lt_prog_compiler_static_F77
15253 # Compiler flag to turn off builtin functions.
15254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15256 # Compiler flag to allow reflexive dlopens.
15257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15259 # Compiler flag to generate shared objects directly from archives.
15260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15262 # Compiler flag to generate thread-safe objects.
15263 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15265 # Library versioning type.
15266 version_type=$version_type
15268 # Format of library name prefix.
15269 libname_spec=$lt_libname_spec
15271 # List of archive names. First name is the real one, the rest are links.
15272 # The last name is the one that the linker finds with -lNAME.
15273 library_names_spec=$lt_library_names_spec
15275 # The coded name of the library, if different from the real name.
15276 soname_spec=$lt_soname_spec
15278 # Commands used to build and install an old-style archive.
15280 old_archive_cmds=$lt_old_archive_cmds_F77
15281 old_postinstall_cmds=$lt_old_postinstall_cmds
15282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15284 # Create an old-style archive from a shared archive.
15285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15287 # Create a temporary old-style archive to link instead of a shared archive.
15288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15290 # Commands used to build and install a shared archive.
15291 archive_cmds=$lt_archive_cmds_F77
15292 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15293 postinstall_cmds=$lt_postinstall_cmds
15294 postuninstall_cmds=$lt_postuninstall_cmds
15296 # Commands used to build a loadable module (assumed same as above if empty)
15297 module_cmds=$lt_module_cmds_F77
15298 module_expsym_cmds=$lt_module_expsym_cmds_F77
15300 # Commands to strip libraries.
15301 old_striplib=$lt_old_striplib
15302 striplib=$lt_striplib
15304 # Dependencies to place before the objects being linked to create a
15306 predep_objects=$lt_predep_objects_F77
15308 # Dependencies to place after the objects being linked to create a
15310 postdep_objects=$lt_postdep_objects_F77
15312 # Dependencies to place before the objects being linked to create a
15314 predeps=$lt_predeps_F77
15316 # Dependencies to place after the objects being linked to create a
15318 postdeps=$lt_postdeps_F77
15320 # The library search path used internally by the compiler when linking
15321 # a shared library.
15322 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15324 # Method to check whether dependent libraries are shared objects.
15325 deplibs_check_method=$lt_deplibs_check_method
15327 # Command to use when deplibs_check_method == file_magic.
15328 file_magic_cmd=$lt_file_magic_cmd
15330 # Flag that allows shared libraries with undefined symbols to be built.
15331 allow_undefined_flag=$lt_allow_undefined_flag_F77
15333 # Flag that forces no undefined symbols.
15334 no_undefined_flag=$lt_no_undefined_flag_F77
15336 # Commands used to finish a libtool library installation in a directory.
15337 finish_cmds=$lt_finish_cmds
15339 # Same as above, but a single script fragment to be evaled but not shown.
15340 finish_eval=$lt_finish_eval
15342 # Take the output of nm and produce a listing of raw symbols and C names.
15343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15345 # Transform the output of nm in a proper C declaration
15346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15348 # Transform the output of nm in a C name address pair
15349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15351 # This is the shared library runtime path variable.
15352 runpath_var=$runpath_var
15354 # This is the shared library path variable.
15355 shlibpath_var=$shlibpath_var
15357 # Is shlibpath searched before the hard-coded library search path?
15358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15360 # How to hardcode a shared library path into an executable.
15361 hardcode_action=$hardcode_action_F77
15363 # Whether we should hardcode library paths into libraries.
15364 hardcode_into_libs=$hardcode_into_libs
15366 # Flag to hardcode \$libdir into a binary during linking.
15367 # This must work even if \$libdir does not exist.
15368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15370 # If ld is used when linking, flag to hardcode \$libdir into
15371 # a binary during linking. This must work even if \$libdir does
15373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15375 # Whether we need a single -rpath flag with a separated argument.
15376 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15379 # resulting binary.
15380 hardcode_direct=$hardcode_direct_F77
15382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15383 # resulting binary.
15384 hardcode_minus_L=$hardcode_minus_L_F77
15386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15387 # the resulting binary.
15388 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15390 # Set to yes if building a shared library automatically hardcodes DIR into the library
15391 # and all subsequent libraries and executables linked against it.
15392 hardcode_automatic=$hardcode_automatic_F77
15394 # Variables whose values should be saved in libtool wrapper scripts and
15395 # restored at relink time.
15396 variables_saved_for_relink="$variables_saved_for_relink"
15398 # Whether libtool must link a program against all its dependency libraries.
15399 link_all_deplibs=$link_all_deplibs_F77
15401 # Compile-time system search path for libraries
15402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15404 # Run-time system search path for libraries
15405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15407 # Fix the shell variable \$srcfile for the compiler.
15408 fix_srcfile_path="$fix_srcfile_path_F77"
15410 # Set to yes if exported symbols are required.
15411 always_export_symbols=$always_export_symbols_F77
15413 # The commands to list exported symbols.
15414 export_symbols_cmds=$lt_export_symbols_cmds_F77
15416 # The commands to extract the exported symbol list from a shared archive.
15417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15419 # Symbols that should not be listed in the preloaded symbols.
15420 exclude_expsyms=$lt_exclude_expsyms_F77
15422 # Symbols that must always be exported.
15423 include_expsyms=$lt_include_expsyms_F77
15425 # ### END LIBTOOL TAG CONFIG: $tagname
15431 # If there is no Makefile yet, we rely on a make rule to execute
15432 # `config.status --recheck' to rerun these tests and create the
15433 # libtool script then.
15434 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15435 if test -f "$ltmain_in"; then
15436 test -f Makefile && make "$ltmain"
15442 ac_cpp='$CPP $CPPFLAGS'
15443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15455 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15459 # Source file extension for Java test sources.
15462 # Object file extension for compiled Java test sources.
15466 # Code to be used in simple compile tests
15467 lt_simple_compile_test_code="class foo {}\n"
15469 # Code to be used in simple link tests
15470 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15472 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15474 # If no C compiler was specified, use CC.
15477 # If no C compiler flags were specified, use CFLAGS.
15478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15480 # Allow CC to be a program name with arguments.
15484 # save warnings/boilerplate of simple test code
15485 ac_outfile=conftest.$ac_objext
15486 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15487 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15488 _lt_compiler_boilerplate=`cat conftest.err`
15491 ac_outfile=conftest.$ac_objext
15492 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15493 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15494 _lt_linker_boilerplate=`cat conftest.err`
15498 # Allow CC to be a program name with arguments.
15503 for cc_temp in $compiler""; do
15505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15511 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15514 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15515 archive_cmds_need_lc_GCJ=no
15517 old_archive_cmds_GCJ=$old_archive_cmds
15520 lt_prog_compiler_no_builtin_flag_GCJ=
15522 if test "$GCC" = yes; then
15523 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15526 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15527 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 lt_cv_prog_compiler_rtti_exceptions=no
15532 ac_outfile=conftest.$ac_objext
15533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15534 lt_compiler_flag="-fno-rtti -fno-exceptions"
15535 # Insert the option either (1) after the last *FLAGS variable, or
15536 # (2) before a word containing "conftest.", or (3) at the end.
15537 # Note that $ac_compile itself does not contain backslashes and begins
15538 # with a dollar sign (not a hyphen), so the echo should work correctly.
15539 # The option is referenced via a variable to avoid confusing sed.
15540 lt_compile=`echo "$ac_compile" | $SED \
15541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15543 -e 's:$: $lt_compiler_flag:'`
15544 (eval echo "\"\$as_me:15544: $lt_compile\"" >&5)
15545 (eval "$lt_compile" 2>conftest.err)
15547 cat conftest.err >&5
15548 echo "$as_me:15548: \$? = $ac_status" >&5
15549 if (exit $ac_status) && test -s "$ac_outfile"; then
15550 # The compiler can only warn and ignore the option if not recognized
15551 # So say no if there are warnings other than the usual output.
15552 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15555 lt_cv_prog_compiler_rtti_exceptions=yes
15561 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15562 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15565 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15572 lt_prog_compiler_wl_GCJ=
15573 lt_prog_compiler_pic_GCJ=
15574 lt_prog_compiler_static_GCJ=
15576 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15577 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15579 if test "$GCC" = yes; then
15580 lt_prog_compiler_wl_GCJ='-Wl,'
15581 lt_prog_compiler_static_GCJ='-static'
15585 # All AIX code is PIC.
15586 if test "$host_cpu" = ia64; then
15587 # AIX 5 now supports IA64 processor
15588 lt_prog_compiler_static_GCJ='-Bstatic'
15593 # FIXME: we need at least 68020 code to build shared libraries, but
15594 # adding the `-m68020' flag to GCC prevents building anything better,
15596 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15599 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15600 # PIC is the default for these OSes.
15603 mingw* | pw32* | os2*)
15604 # This hack is so that the source file can tell whether it is being
15605 # built for inclusion in a dll (and should export symbols for example).
15606 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15609 darwin* | rhapsody*)
15610 # PIC is the default on this platform
15611 # Common symbols not allowed in MH_DYLIB files
15612 lt_prog_compiler_pic_GCJ='-fno-common'
15616 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15617 # Instead, we relocate shared libraries at runtime.
15621 # Just because we use GCC doesn't mean we suddenly get shared libraries
15622 # on systems that don't support them.
15623 lt_prog_compiler_can_build_shared_GCJ=no
15628 if test -d /usr/nec; then
15629 lt_prog_compiler_pic_GCJ=-Kconform_pic
15634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15635 # not for PA HP-UX.
15641 lt_prog_compiler_pic_GCJ='-fPIC'
15647 lt_prog_compiler_pic_GCJ='-fPIC'
15651 # PORTME Check for flag to pass linker flags through the system compiler.
15654 lt_prog_compiler_wl_GCJ='-Wl,'
15655 if test "$host_cpu" = ia64; then
15656 # AIX 5 now supports IA64 processor
15657 lt_prog_compiler_static_GCJ='-Bstatic'
15659 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15663 # PIC is the default on this platform
15664 # Common symbols not allowed in MH_DYLIB files
15665 case $cc_basename in
15667 lt_prog_compiler_pic_GCJ='-qnocommon'
15668 lt_prog_compiler_wl_GCJ='-Wl,'
15673 mingw* | pw32* | os2*)
15674 # This hack is so that the source file can tell whether it is being
15675 # built for inclusion in a dll (and should export symbols for example).
15676 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15679 hpux9* | hpux10* | hpux11*)
15680 lt_prog_compiler_wl_GCJ='-Wl,'
15681 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15682 # not for PA HP-UX.
15688 lt_prog_compiler_pic_GCJ='+Z'
15691 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15692 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15695 irix5* | irix6* | nonstopux*)
15696 lt_prog_compiler_wl_GCJ='-Wl,'
15697 # PIC (with -KPIC) is the default.
15698 lt_prog_compiler_static_GCJ='-non_shared'
15702 lt_prog_compiler_pic_GCJ='-KPIC'
15703 lt_prog_compiler_static_GCJ='-Bstatic'
15707 case $cc_basename in
15709 lt_prog_compiler_wl_GCJ='-Wl,'
15710 lt_prog_compiler_pic_GCJ='-KPIC'
15711 lt_prog_compiler_static_GCJ='-static'
15713 pgcc* | pgf77* | pgf90* | pgf95*)
15714 # Portland Group compilers (*not* the Pentium gcc compiler,
15715 # which looks to be a dead project)
15716 lt_prog_compiler_wl_GCJ='-Wl,'
15717 lt_prog_compiler_pic_GCJ='-fpic'
15718 lt_prog_compiler_static_GCJ='-Bstatic'
15721 lt_prog_compiler_wl_GCJ='-Wl,'
15722 # All Alpha code is PIC.
15723 lt_prog_compiler_static_GCJ='-non_shared'
15728 osf3* | osf4* | osf5*)
15729 lt_prog_compiler_wl_GCJ='-Wl,'
15730 # All OSF/1 code is PIC.
15731 lt_prog_compiler_static_GCJ='-non_shared'
15735 lt_prog_compiler_pic_GCJ='-KPIC'
15736 lt_prog_compiler_static_GCJ='-Bstatic'
15737 case $cc_basename in
15738 f77* | f90* | f95*)
15739 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15741 lt_prog_compiler_wl_GCJ='-Wl,';;
15746 lt_prog_compiler_wl_GCJ='-Qoption ld '
15747 lt_prog_compiler_pic_GCJ='-PIC'
15748 lt_prog_compiler_static_GCJ='-Bstatic'
15751 sysv4 | sysv4.2uw2* | sysv4.3*)
15752 lt_prog_compiler_wl_GCJ='-Wl,'
15753 lt_prog_compiler_pic_GCJ='-KPIC'
15754 lt_prog_compiler_static_GCJ='-Bstatic'
15758 if test -d /usr/nec ;then
15759 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15760 lt_prog_compiler_static_GCJ='-Bstatic'
15764 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15765 lt_prog_compiler_wl_GCJ='-Wl,'
15766 lt_prog_compiler_pic_GCJ='-KPIC'
15767 lt_prog_compiler_static_GCJ='-Bstatic'
15771 lt_prog_compiler_wl_GCJ='-Wl,'
15772 lt_prog_compiler_can_build_shared_GCJ=no
15776 lt_prog_compiler_pic_GCJ='-pic'
15777 lt_prog_compiler_static_GCJ='-Bstatic'
15781 lt_prog_compiler_can_build_shared_GCJ=no
15786 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15787 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15790 # Check to make sure the PIC flag actually works.
15792 if test -n "$lt_prog_compiler_pic_GCJ"; then
15794 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15795 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15796 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15799 lt_prog_compiler_pic_works_GCJ=no
15800 ac_outfile=conftest.$ac_objext
15801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15802 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15803 # Insert the option either (1) after the last *FLAGS variable, or
15804 # (2) before a word containing "conftest.", or (3) at the end.
15805 # Note that $ac_compile itself does not contain backslashes and begins
15806 # with a dollar sign (not a hyphen), so the echo should work correctly.
15807 # The option is referenced via a variable to avoid confusing sed.
15808 lt_compile=`echo "$ac_compile" | $SED \
15809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15811 -e 's:$: $lt_compiler_flag:'`
15812 (eval echo "\"\$as_me:15812: $lt_compile\"" >&5)
15813 (eval "$lt_compile" 2>conftest.err)
15815 cat conftest.err >&5
15816 echo "$as_me:15816: \$? = $ac_status" >&5
15817 if (exit $ac_status) && test -s "$ac_outfile"; then
15818 # The compiler can only warn and ignore the option if not recognized
15819 # So say no if there are warnings other than the usual output.
15820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15823 lt_prog_compiler_pic_works_GCJ=yes
15829 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15830 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15832 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15833 case $lt_prog_compiler_pic_GCJ in
15835 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15838 lt_prog_compiler_pic_GCJ=
15839 lt_prog_compiler_can_build_shared_GCJ=no
15844 # For platforms which do not support PIC, -DPIC is meaningless:
15846 lt_prog_compiler_pic_GCJ=
15849 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15854 # Check to make sure the static flag actually works.
15856 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15857 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15858 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15859 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 lt_prog_compiler_static_works_GCJ=no
15863 save_LDFLAGS="$LDFLAGS"
15864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15865 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15867 # The linker can only warn and ignore the option if not recognized
15868 # So say no if there are warnings
15869 if test -s conftest.err; then
15870 # Append any errors to the config.log.
15871 cat conftest.err 1>&5
15872 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15874 if diff conftest.exp conftest.er2 >/dev/null; then
15875 lt_prog_compiler_static_works_GCJ=yes
15878 lt_prog_compiler_static_works_GCJ=yes
15882 LDFLAGS="$save_LDFLAGS"
15885 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15886 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15888 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15891 lt_prog_compiler_static_GCJ=
15895 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15896 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15897 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15900 lt_cv_prog_compiler_c_o_GCJ=no
15901 $rm -r conftest 2>/dev/null
15905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15907 lt_compiler_flag="-o out/conftest2.$ac_objext"
15908 # Insert the option either (1) after the last *FLAGS variable, or
15909 # (2) before a word containing "conftest.", or (3) at the end.
15910 # Note that $ac_compile itself does not contain backslashes and begins
15911 # with a dollar sign (not a hyphen), so the echo should work correctly.
15912 lt_compile=`echo "$ac_compile" | $SED \
15913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15915 -e 's:$: $lt_compiler_flag:'`
15916 (eval echo "\"\$as_me:15916: $lt_compile\"" >&5)
15917 (eval "$lt_compile" 2>out/conftest.err)
15919 cat out/conftest.err >&5
15920 echo "$as_me:15920: \$? = $ac_status" >&5
15921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15923 # The compiler can only warn and ignore the option if not recognized
15924 # So say no if there are warnings
15925 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15928 lt_cv_prog_compiler_c_o_GCJ=yes
15933 # SGI C++ compiler will create directory out/ii_files/ for
15934 # template instantiation
15935 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15936 $rm out/* && rmdir out
15942 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15943 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15946 hard_links="nottested"
15947 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15948 # do not overwrite the value of need_locks provided by the user
15949 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15950 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15955 ln conftest.a conftest.b 2>&5 || hard_links=no
15956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15957 echo "$as_me:$LINENO: result: $hard_links" >&5
15958 echo "${ECHO_T}$hard_links" >&6
15959 if test "$hard_links" = no; then
15960 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15961 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15968 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15969 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15972 allow_undefined_flag_GCJ=
15973 enable_shared_with_static_runtimes_GCJ=no
15975 archive_expsym_cmds_GCJ=
15976 old_archive_From_new_cmds_GCJ=
15977 old_archive_from_expsyms_cmds_GCJ=
15978 export_dynamic_flag_spec_GCJ=
15979 whole_archive_flag_spec_GCJ=
15980 thread_safe_flag_spec_GCJ=
15981 hardcode_libdir_flag_spec_GCJ=
15982 hardcode_libdir_flag_spec_ld_GCJ=
15983 hardcode_libdir_separator_GCJ=
15984 hardcode_direct_GCJ=no
15985 hardcode_minus_L_GCJ=no
15986 hardcode_shlibpath_var_GCJ=unsupported
15987 link_all_deplibs_GCJ=unknown
15988 hardcode_automatic_GCJ=no
15990 module_expsym_cmds_GCJ=
15991 always_export_symbols_GCJ=no
15992 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15993 # include_expsyms should be a list of space-separated symbols to be *always*
15994 # included in the symbol list
15995 include_expsyms_GCJ=
15996 # exclude_expsyms can be an extended regexp of symbols to exclude
15997 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15998 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15999 # as well as any symbol that contains `d'.
16000 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16001 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16002 # platforms (ab)use it in PIC code, but their linkers get confused if
16003 # the symbol is explicitly referenced. Since portable code cannot
16004 # rely on this symbol name, it's probably fine to never include it in
16005 # preloaded symbol tables.
16006 extract_expsyms_cmds=
16007 # Just being paranoid about ensuring that cc_basename is set.
16008 for cc_temp in $compiler""; do
16010 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16011 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16016 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16019 cygwin* | mingw* | pw32*)
16020 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16021 # When not using gcc, we currently assume that we are using
16022 # Microsoft Visual C++.
16023 if test "$GCC" != yes; then
16028 # we just hope/assume this is gcc and not c89 (= MSVC++)
16037 if test "$with_gnu_ld" = yes; then
16038 # If archive_cmds runs LD, not CC, wlarc should be empty
16041 # Set some defaults for GNU ld with shared library support. These
16042 # are reset later if shared libraries are not supported. Putting them
16043 # here allows them to be overridden if necessary.
16044 runpath_var=LD_RUN_PATH
16045 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16046 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16047 # ancient GNU ld didn't support --whole-archive et. al.
16048 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16049 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16051 whole_archive_flag_spec_GCJ=
16053 supports_anon_versioning=no
16054 case `$LD -v 2>/dev/null` in
16055 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16056 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16057 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16058 *\ 2.11.*) ;; # other 2.11 versions
16059 *) supports_anon_versioning=yes ;;
16062 # See if GNU ld supports shared libraries.
16064 aix3* | aix4* | aix5*)
16065 # On AIX/PPC, the GNU linker is very broken
16066 if test "$host_cpu" != ia64; then
16070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16071 *** to be unable to reliably create shared libraries on AIX.
16072 *** Therefore, libtool is disabling shared libraries support. If you
16073 *** really care for shared libraries, you may want to modify your PATH
16074 *** so that a non-GNU linker is found, and then restart.
16081 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)'
16082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16083 hardcode_minus_L_GCJ=yes
16085 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16086 # that the semantics of dynamic libraries on AmigaOS, at least up
16087 # to version 4, is to share data among multiple programs linked
16088 # with the same dynamic library. Since this doesn't match the
16089 # behavior of shared libraries on other platforms, we can't use
16095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16096 allow_undefined_flag_GCJ=unsupported
16097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16098 # support --undefined. This deserves some investigation. FIXME
16099 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16105 cygwin* | mingw* | pw32*)
16106 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16107 # as there is no search path for DLLs.
16108 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16109 allow_undefined_flag_GCJ=unsupported
16110 always_export_symbols_GCJ=no
16111 enable_shared_with_static_runtimes_GCJ=yes
16112 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16114 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16115 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16116 # If the export-symbols file already is a .def file (1st line
16117 # is EXPORTS), use it as is; otherwise, prepend...
16118 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16119 cp $export_symbols $output_objdir/$soname.def;
16121 echo EXPORTS > $output_objdir/$soname.def;
16122 cat $export_symbols >> $output_objdir/$soname.def;
16124 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16131 hardcode_direct_GCJ=no
16132 hardcode_shlibpath_var_GCJ=no
16133 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16134 export_dynamic_flag_spec_GCJ='${wl}-E'
16135 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16136 # Instead, shared libraries are loaded at an image base (0x10000000 by
16137 # default) and relocated if they conflict, which is a slow very memory
16138 # consuming and fragmenting process. To avoid this, we pick a random,
16139 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16140 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16141 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'
16142 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'
16146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16148 case $cc_basename,$host_cpu in
16149 pgcc*) # Portland Group C compiler
16150 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16151 tmp_addflag=' $pic_flag'
16153 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16154 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'
16155 tmp_addflag=' $pic_flag -Mnomain' ;;
16156 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16157 tmp_addflag=' -i_dynamic' ;;
16158 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16159 tmp_addflag=' -i_dynamic -nofor_main' ;;
16160 ifc* | ifort*) # Intel Fortran compiler
16161 tmp_addflag=' -nofor_main' ;;
16163 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16165 if test $supports_anon_versioning = yes; then
16166 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16168 $echo "local: *; };" >> $output_objdir/$libname.ver~
16169 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16178 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16181 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16182 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16187 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16192 *** create shared libraries on Solaris systems. Therefore, libtool
16193 *** is disabling shared libraries support. We urge you to upgrade GNU
16194 *** binutils to release 2.9.1 or newer. Another option is to modify
16195 *** your PATH or compiler configuration so that the native linker is
16196 *** used, and then restart.
16199 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16200 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16201 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16208 case `$LD -v 2>&1` in
16209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16214 *** reliably create shared libraries on SCO systems. Therefore, libtool
16215 *** is disabling shared libraries support. We urge you to upgrade GNU
16216 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16217 *** your PATH or compiler configuration so that the native linker is
16218 *** used, and then restart.
16223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16224 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16225 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16226 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16235 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_direct_GCJ=yes
16238 hardcode_shlibpath_var_GCJ=no
16242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16243 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16244 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16251 if test "$ld_shlibs_GCJ" = no; then
16253 hardcode_libdir_flag_spec_GCJ=
16254 export_dynamic_flag_spec_GCJ=
16255 whole_archive_flag_spec_GCJ=
16258 # PORTME fill in a description of your system's linker (not GNU ld)
16261 allow_undefined_flag_GCJ=unsupported
16262 always_export_symbols_GCJ=yes
16263 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'
16264 # Note: this linker hardcodes the directories in LIBPATH if there
16265 # are no directories specified by -L.
16266 hardcode_minus_L_GCJ=yes
16267 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16268 # Neither direct hardcoding nor static linking is supported with a
16270 hardcode_direct_GCJ=unsupported
16275 if test "$host_cpu" = ia64; then
16276 # On IA64, the linker does run time linking by default, so we don't
16277 # have to do anything special.
16278 aix_use_runtimelinking=no
16279 exp_sym_flag='-Bexport'
16282 # If we're using GNU nm, then we don't want the "-C" option.
16283 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16284 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16285 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'
16287 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'
16289 aix_use_runtimelinking=no
16291 # Test if we are trying to use run time linking or normal
16292 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16293 # need to do runtime linking.
16294 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16295 for ld_flag in $LDFLAGS; do
16296 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16297 aix_use_runtimelinking=yes
16304 exp_sym_flag='-bexport'
16305 no_entry_flag='-bnoentry'
16308 # When large executables or shared objects are built, AIX ld can
16309 # have problems creating the table of contents. If linking a library
16310 # or program results in "error TOC overflow" add -mminimal-toc to
16311 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16312 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16314 archive_cmds_GCJ=''
16315 hardcode_direct_GCJ=yes
16316 hardcode_libdir_separator_GCJ=':'
16317 link_all_deplibs_GCJ=yes
16319 if test "$GCC" = yes; then
16320 case $host_os in aix4.[012]|aix4.[012].*)
16321 # We only want to do this on AIX 4.2 and lower, the check
16322 # below for broken collect2 doesn't work under 4.3+
16323 collect2name=`${CC} -print-prog-name=collect2`
16324 if test -f "$collect2name" && \
16325 strings "$collect2name" | grep resolve_lib_name >/dev/null
16327 # We have reworked collect2
16328 hardcode_direct_GCJ=yes
16330 # We have old collect2
16331 hardcode_direct_GCJ=unsupported
16332 # It fails to find uninstalled libraries when the uninstalled
16333 # path is not listed in the libpath. Setting hardcode_minus_L
16334 # to unsupported forces relinking
16335 hardcode_minus_L_GCJ=yes
16336 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16337 hardcode_libdir_separator_GCJ=
16341 shared_flag='-shared'
16342 if test "$aix_use_runtimelinking" = yes; then
16343 shared_flag="$shared_flag "'${wl}-G'
16347 if test "$host_cpu" = ia64; then
16348 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16349 # chokes on -Wl,-G. The following line is correct:
16352 if test "$aix_use_runtimelinking" = yes; then
16353 shared_flag='${wl}-G'
16355 shared_flag='${wl}-bM:SRE'
16360 # It seems that -bexpall does not export symbols beginning with
16361 # underscore (_), so it is better to generate a list of symbols to export.
16362 always_export_symbols_GCJ=yes
16363 if test "$aix_use_runtimelinking" = yes; then
16364 # Warning - without using the other runtime loading flags (-brtl),
16365 # -berok will link without error, but may produce a broken library.
16366 allow_undefined_flag_GCJ='-berok'
16367 # Determine the default libpath from the value encoded in an empty executable.
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16383 rm -f conftest.$ac_objext conftest$ac_exeext
16384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16385 (eval $ac_link) 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -z "$ac_c_werror_flag"
16393 || test ! -s conftest.err'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest$ac_exeext'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16408 # Check for a 64-bit object if we didn't find anything.
16409 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; }
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16416 rm -f conftest.err conftest.$ac_objext \
16417 conftest$ac_exeext conftest.$ac_ext
16418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16420 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16421 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"
16423 if test "$host_cpu" = ia64; then
16424 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16425 allow_undefined_flag_GCJ="-z nodefs"
16426 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"
16428 # Determine the default libpath from the value encoded in an empty executable.
16429 cat >conftest.$ac_ext <<_ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16444 rm -f conftest.$ac_objext conftest$ac_exeext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16446 (eval $ac_link) 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag"
16454 || test ! -s conftest.err'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } &&
16460 { ac_try='test -s conftest$ac_exeext'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16469 # Check for a 64-bit object if we didn't find anything.
16470 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; }
16473 echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16477 rm -f conftest.err conftest.$ac_objext \
16478 conftest$ac_exeext conftest.$ac_ext
16479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16481 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16482 # Warning - without using the other run time loading flags,
16483 # -berok will link without error, but may produce a broken library.
16484 no_undefined_flag_GCJ=' ${wl}-bernotok'
16485 allow_undefined_flag_GCJ=' ${wl}-berok'
16486 # Exported symbols can be pulled into shared objects from archives
16487 whole_archive_flag_spec_GCJ='$convenience'
16488 archive_cmds_need_lc_GCJ=yes
16489 # This is similar to how AIX traditionally builds its shared libraries.
16490 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'
16496 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)'
16497 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16498 hardcode_minus_L_GCJ=yes
16499 # see comment about different semantics on the GNU ld section
16504 export_dynamic_flag_spec_GCJ=-rdynamic
16507 cygwin* | mingw* | pw32*)
16508 # When not using gcc, we currently assume that we are using
16509 # Microsoft Visual C++.
16510 # hardcode_libdir_flag_spec is actually meaningless, as there is
16511 # no search path for DLLs.
16512 hardcode_libdir_flag_spec_GCJ=' '
16513 allow_undefined_flag_GCJ=unsupported
16514 # Tell ltmain to make .lib files, not .a files.
16516 # Tell ltmain to make .dll files, not .so files.
16518 # FIXME: Setting linknames here is a bad hack.
16519 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16520 # The linker will automatically build a .lib file if we build a DLL.
16521 old_archive_From_new_cmds_GCJ='true'
16522 # FIXME: Should let the user specify the lib program.
16523 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16524 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16525 enable_shared_with_static_runtimes_GCJ=yes
16528 darwin* | rhapsody*)
16530 rhapsody* | darwin1.[012])
16531 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16534 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16535 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16537 case ${MACOSX_DEPLOYMENT_TARGET} in
16539 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16542 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16548 archive_cmds_need_lc_GCJ=no
16549 hardcode_direct_GCJ=no
16550 hardcode_automatic_GCJ=yes
16551 hardcode_shlibpath_var_GCJ=unsupported
16552 whole_archive_flag_spec_GCJ=''
16553 link_all_deplibs_GCJ=yes
16554 if test "$GCC" = yes ; then
16555 output_verbose_link_cmd='echo'
16556 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16557 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16558 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16559 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}'
16560 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}'
16562 case $cc_basename in
16564 output_verbose_link_cmd='echo'
16565 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16566 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16568 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}'
16569 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}'
16579 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16580 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16581 hardcode_shlibpath_var_GCJ=no
16588 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16589 # support. Future versions do this automatically, but an explicit c++rt0.o
16590 # does not break anything, and helps significantly (at the cost of a little
16593 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16594 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16595 hardcode_direct_GCJ=yes
16596 hardcode_shlibpath_var_GCJ=no
16599 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16601 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16602 hardcode_direct_GCJ=yes
16603 hardcode_minus_L_GCJ=yes
16604 hardcode_shlibpath_var_GCJ=no
16607 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16608 freebsd* | kfreebsd*-gnu | dragonfly*)
16609 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16610 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16611 hardcode_direct_GCJ=yes
16612 hardcode_shlibpath_var_GCJ=no
16616 if test "$GCC" = yes; then
16617 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'
16619 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'
16621 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16622 hardcode_libdir_separator_GCJ=:
16623 hardcode_direct_GCJ=yes
16625 # hardcode_minus_L: Not really in the search PATH,
16626 # but as the default location of the library.
16627 hardcode_minus_L_GCJ=yes
16628 export_dynamic_flag_spec_GCJ='${wl}-E'
16632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16633 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16635 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16637 if test "$with_gnu_ld" = no; then
16638 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16639 hardcode_libdir_separator_GCJ=:
16641 hardcode_direct_GCJ=yes
16642 export_dynamic_flag_spec_GCJ='${wl}-E'
16644 # hardcode_minus_L: Not really in the search PATH,
16645 # but as the default location of the library.
16646 hardcode_minus_L_GCJ=yes
16651 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16654 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16657 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16660 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16666 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16669 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16672 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16676 if test "$with_gnu_ld" = no; then
16677 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16678 hardcode_libdir_separator_GCJ=:
16682 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16683 hardcode_direct_GCJ=no
16684 hardcode_shlibpath_var_GCJ=no
16687 hardcode_direct_GCJ=yes
16688 export_dynamic_flag_spec_GCJ='${wl}-E'
16690 # hardcode_minus_L: Not really in the search PATH,
16691 # but as the default location of the library.
16692 hardcode_minus_L_GCJ=yes
16698 irix5* | irix6* | nonstopux*)
16699 if test "$GCC" = yes; then
16700 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'
16702 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'
16703 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16705 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16706 hardcode_libdir_separator_GCJ=:
16707 link_all_deplibs_GCJ=yes
16711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16712 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16714 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16716 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16717 hardcode_direct_GCJ=yes
16718 hardcode_shlibpath_var_GCJ=no
16722 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16723 hardcode_direct_GCJ=yes
16724 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16725 hardcode_libdir_separator_GCJ=:
16726 hardcode_shlibpath_var_GCJ=no
16730 hardcode_direct_GCJ=yes
16731 hardcode_shlibpath_var_GCJ=no
16732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16733 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16734 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16735 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16736 export_dynamic_flag_spec_GCJ='${wl}-E'
16739 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16740 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16741 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16744 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16745 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16752 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16753 hardcode_minus_L_GCJ=yes
16754 allow_undefined_flag_GCJ=unsupported
16755 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'
16756 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16760 if test "$GCC" = yes; then
16761 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16762 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'
16764 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16765 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'
16767 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16768 hardcode_libdir_separator_GCJ=:
16771 osf4* | osf5*) # as osf3* with the addition of -msym flag
16772 if test "$GCC" = yes; then
16773 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16774 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'
16775 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16777 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16778 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'
16779 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~
16780 $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'
16782 # Both c and cxx compiler support -rpath directly
16783 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16785 hardcode_libdir_separator_GCJ=:
16789 no_undefined_flag_GCJ=' -z text'
16790 if test "$GCC" = yes; then
16792 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16793 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16794 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16797 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16798 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16799 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16801 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16802 hardcode_shlibpath_var_GCJ=no
16804 solaris2.[0-5] | solaris2.[0-5].*) ;;
16806 # The compiler driver will combine linker options so we
16807 # cannot just pass the convience library names through
16808 # without $wl, iff we do not link with $LD.
16809 # Luckily, gcc supports the same syntax we need for Sun Studio.
16810 # Supported since Solaris 2.6 (maybe 2.5.1?)
16813 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16815 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' ;;
16818 link_all_deplibs_GCJ=yes
16822 if test "x$host_vendor" = xsequent; then
16823 # Use $CC to link under sequent, because it throws in some extra .o
16824 # files that make .init and .fini sections work.
16825 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16827 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16829 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16830 hardcode_direct_GCJ=yes
16831 hardcode_minus_L_GCJ=yes
16832 hardcode_shlibpath_var_GCJ=no
16836 case $host_vendor in
16838 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16839 hardcode_direct_GCJ=yes # is this really true???
16842 ## LD is ld it makes a PLAMLIB
16843 ## CC just makes a GrossModule.
16844 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16845 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16846 hardcode_direct_GCJ=no
16849 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16850 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16853 runpath_var='LD_RUN_PATH'
16854 hardcode_shlibpath_var_GCJ=no
16858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16859 hardcode_shlibpath_var_GCJ=no
16860 export_dynamic_flag_spec_GCJ='-Bexport'
16864 if test -d /usr/nec; then
16865 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866 hardcode_shlibpath_var_GCJ=no
16867 runpath_var=LD_RUN_PATH
16868 hardcode_runpath_var=yes
16873 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16874 no_undefined_flag_GCJ='${wl}-z,text'
16875 archive_cmds_need_lc_GCJ=no
16876 hardcode_shlibpath_var_GCJ=no
16877 runpath_var='LD_RUN_PATH'
16879 if test "$GCC" = yes; then
16880 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16881 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16883 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16884 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16888 sysv5* | sco3.2v5* | sco5v6*)
16889 # Note: We can NOT use -z defs as we might desire, because we do not
16890 # link with -lc, and that would cause any symbols used from libc to
16891 # always be unresolved, which means just about no library would
16892 # ever link correctly. If we're not using GNU ld we use -z text
16893 # though, which does catch some bad symbols but isn't as heavy-handed
16895 no_undefined_flag_GCJ='${wl}-z,text'
16896 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16897 archive_cmds_need_lc_GCJ=no
16898 hardcode_shlibpath_var_GCJ=no
16899 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16900 hardcode_libdir_separator_GCJ=':'
16901 link_all_deplibs_GCJ=yes
16902 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16903 runpath_var='LD_RUN_PATH'
16905 if test "$GCC" = yes; then
16906 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16907 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16909 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16910 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16915 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16916 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16917 hardcode_shlibpath_var_GCJ=no
16926 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16927 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16928 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16931 # Do we need to explicitly link libc?
16933 case "x$archive_cmds_need_lc_GCJ" in
16935 # Assume -lc should be added
16936 archive_cmds_need_lc_GCJ=yes
16938 if test "$enable_shared" = yes && test "$GCC" = yes; then
16939 case $archive_cmds_GCJ in
16941 # FIXME: we may have to deal with multi-command sequences.
16944 # Test whether the compiler implicitly links with -lc since on some
16945 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16946 # to ld, don't add -lc before -lgcc.
16947 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16948 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16950 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16953 (eval $ac_compile) 2>&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } 2>conftest.err; then
16959 libobjs=conftest.$ac_objext
16961 wl=$lt_prog_compiler_wl_GCJ
16962 pic_flag=$lt_prog_compiler_pic_GCJ
16968 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16969 allow_undefined_flag_GCJ=
16970 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16971 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }
16976 archive_cmds_need_lc_GCJ=no
16978 archive_cmds_need_lc_GCJ=yes
16980 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16982 cat conftest.err 1>&5
16985 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16986 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16993 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16994 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16995 library_names_spec=
16996 libname_spec='lib$name'
17000 postuninstall_cmds=
17004 shlibpath_overrides_runpath=unknown
17006 dynamic_linker="$host_os ld.so"
17007 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17008 if test "$GCC" = yes; then
17009 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17010 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17011 # if the path contains ";" then we assume it to be the separator
17012 # otherwise default to the standard path separator (i.e. ":") - it is
17013 # assumed that no part of a normal pathname contains ";" but that should
17014 # okay in the real world where ";" in dirpaths is itself problematic.
17015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17020 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17022 need_lib_prefix=unknown
17023 hardcode_into_libs=no
17025 # when you set need_version to no, make sure it does not cause -set_version
17026 # flags to be left without arguments
17027 need_version=unknown
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17033 shlibpath_var=LIBPATH
17035 # AIX 3 has no versioning support, so we append a major version to the name.
17036 soname_spec='${libname}${release}${shared_ext}$major'
17043 hardcode_into_libs=yes
17044 if test "$host_cpu" = ia64; then
17045 # AIX 5 supports IA64
17046 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17047 shlibpath_var=LD_LIBRARY_PATH
17049 # With GCC up to 2.95.x, collect2 would create an import file
17050 # for dependence libraries. The import file would start with
17051 # the line `#! .'. This would cause the generated library to
17052 # depend on `.', always an invalid library. This was fixed in
17053 # development snapshots of GCC prior to 3.0.
17055 aix4 | aix4.[01] | aix4.[01].*)
17056 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17058 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17061 can_build_shared=no
17065 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17066 # soname into executable. Probably we can add versioning support to
17067 # collect2, so additional links can be useful in future.
17068 if test "$aix_use_runtimelinking" = yes; then
17069 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17070 # instead of lib<name>.a to let people know that these are not
17071 # typical AIX shared libraries.
17072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17074 # We preserve .a as extension for shared libraries through AIX4.2
17075 # and later when we are not doing run time linking.
17076 library_names_spec='${libname}${release}.a $libname.a'
17077 soname_spec='${libname}${release}${shared_ext}$major'
17079 shlibpath_var=LIBPATH
17084 library_names_spec='$libname.ixlibrary $libname.a'
17085 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17086 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'
17090 library_names_spec='${libname}${shared_ext}'
17091 dynamic_linker="$host_os ld.so"
17092 shlibpath_var=LIBRARY_PATH
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 soname_spec='${libname}${release}${shared_ext}$major'
17100 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17101 shlibpath_var=LD_LIBRARY_PATH
17102 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17103 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17104 # the default ld.so.conf also contains /usr/contrib/lib and
17105 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17106 # libtool to hard-code these into programs
17109 cygwin* | mingw* | pw32*)
17110 version_type=windows
17115 case $GCC,$host_os in
17116 yes,cygwin* | yes,mingw* | yes,pw32*)
17117 library_names_spec='$libname.dll.a'
17118 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17119 postinstall_cmds='base_file=`basename \${file}`~
17120 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17121 dldir=$destdir/`dirname \$dlpath`~
17122 test -d \$dldir || mkdir -p \$dldir~
17123 $install_prog $dir/$dlname \$dldir/$dlname~
17124 chmod a+x \$dldir/$dlname'
17125 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17126 dlpath=$dir/\$dldll~
17128 shlibpath_overrides_runpath=yes
17132 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17133 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17134 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17137 # MinGW DLLs use traditional 'lib' prefix
17138 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17139 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17140 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17141 # It is most probably a Windows format PATH printed by
17142 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17143 # path with ; separators, and with drive letters. We can handle the
17144 # drive letters (cygwin fileutils understands them), so leave them,
17145 # especially as we might pass files found there to a mingw objdump,
17146 # which wouldn't understand a cygwinified path. Ahh.
17147 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17153 # pw32 DLLs use 'pw' prefix rather than 'lib'
17154 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17160 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17163 dynamic_linker='Win32 ld.exe'
17164 # FIXME: first we should search . and the directory the executable is in
17168 darwin* | rhapsody*)
17169 dynamic_linker="$host_os dyld"
17170 version_type=darwin
17173 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17174 soname_spec='${libname}${release}${major}$shared_ext'
17175 shlibpath_overrides_runpath=yes
17176 shlibpath_var=DYLD_LIBRARY_PATH
17177 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17178 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17179 if test "$GCC" = yes; then
17180 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"`
17182 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17184 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 shlibpath_var=LD_LIBRARY_PATH
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17205 soname_spec='${libname}${release}${shared_ext}$major'
17206 shlibpath_var=LD_LIBRARY_PATH
17207 shlibpath_overrides_runpath=no
17208 hardcode_into_libs=yes
17209 dynamic_linker='GNU ld.so'
17212 freebsd* | dragonfly*)
17213 # DragonFly does not have aout. When/if they implement a new
17214 # versioning mechanism, adjust this.
17215 if test -x /usr/bin/objformat; then
17216 objformat=`/usr/bin/objformat`
17219 freebsd[123]*) objformat=aout ;;
17220 *) objformat=elf ;;
17223 version_type=freebsd-$objformat
17224 case $version_type in
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17235 shlibpath_var=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath=yes
17240 freebsd3.[01]* | freebsdelf3.[01]*)
17241 shlibpath_overrides_runpath=yes
17242 hardcode_into_libs=yes
17244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17246 shlibpath_overrides_runpath=no
17247 hardcode_into_libs=yes
17249 freebsd*) # from 4.6 on
17250 shlibpath_overrides_runpath=yes
17251 hardcode_into_libs=yes
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17261 soname_spec='${libname}${release}${shared_ext}$major'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 hardcode_into_libs=yes
17266 hpux9* | hpux10* | hpux11*)
17267 # Give a soname corresponding to the major version so that dld.sl refuses to
17268 # link against other versions.
17275 hardcode_into_libs=yes
17276 dynamic_linker="$host_os dld.so"
17277 shlibpath_var=LD_LIBRARY_PATH
17278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17280 soname_spec='${libname}${release}${shared_ext}$major'
17281 if test "X$HPUX_IA64_MODE" = X32; then
17282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17290 hardcode_into_libs=yes
17291 dynamic_linker="$host_os dld.sl"
17292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17301 dynamic_linker="$host_os dld.sl"
17302 shlibpath_var=SHLIB_PATH
17303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 soname_spec='${libname}${release}${shared_ext}$major'
17308 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17309 postinstall_cmds='chmod 555 $lib'
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17317 soname_spec='${libname}${release}${shared_ext}$major'
17318 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17319 shlibpath_var=LD_LIBRARY_PATH
17320 shlibpath_overrides_runpath=no
17321 hardcode_into_libs=yes
17324 irix5* | irix6* | nonstopux*)
17326 nonstopux*) version_type=nonstopux ;;
17328 if test "$lt_cv_prog_gnu_ld" = yes; then
17336 soname_spec='${libname}${release}${shared_ext}$major'
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17339 irix5* | nonstopux*)
17340 libsuff= shlibsuff=
17343 case $LD in # libtool.m4 will add one of these switches to LD
17344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17345 libsuff= shlibsuff= libmagic=32-bit;;
17346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17347 libsuff=32 shlibsuff=N32 libmagic=N32;;
17348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17349 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17350 *) libsuff= shlibsuff= libmagic=never-match;;
17354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17355 shlibpath_overrides_runpath=no
17356 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17357 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17358 hardcode_into_libs=yes
17361 # No shared lib support for Linux oldld, aout, or coff.
17362 linux*oldld* | linux*aout* | linux*coff*)
17366 # This must be Linux ELF.
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17374 shlibpath_var=LD_LIBRARY_PATH
17375 shlibpath_overrides_runpath=no
17376 # This implies no fast_install, which is unacceptable.
17377 # Some rework will be needed to allow for fast_install
17378 # before this can be enabled.
17379 hardcode_into_libs=yes
17381 # Append ld.so.conf contents to the search path
17382 if test -f /etc/ld.so.conf; then
17383 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' ' '`
17384 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17387 # We used to test for /lib/ld.so.1 and disable shared libraries on
17388 # powerpc, because MkLinux only supported shared libraries with the
17389 # GNU dynamic linker. Since this was broken with cross compilers,
17390 # most powerpc-linux boxes support dynamic linking these days and
17391 # people can always --disable-shared, the test was removed, and we
17392 # assume the GNU/Linux dynamic linker is in use.
17393 dynamic_linker='GNU/Linux ld.so'
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 shlibpath_var=LD_LIBRARY_PATH
17403 shlibpath_overrides_runpath=no
17404 hardcode_into_libs=yes
17405 dynamic_linker='GNU ld.so'
17412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17415 dynamic_linker='NetBSD (a.out) ld.so'
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 dynamic_linker='NetBSD ld.elf_so'
17421 shlibpath_var=LD_LIBRARY_PATH
17422 shlibpath_overrides_runpath=yes
17423 hardcode_into_libs=yes
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429 shlibpath_var=LD_LIBRARY_PATH
17430 shlibpath_overrides_runpath=yes
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438 soname_spec='${libname}${release}${shared_ext}$major'
17439 shlibpath_var=LD_LIBRARY_PATH
17440 shlibpath_overrides_runpath=yes
17445 sys_lib_dlsearch_path_spec="/usr/lib"
17447 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17449 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17450 *) need_version=no ;;
17452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17454 shlibpath_var=LD_LIBRARY_PATH
17455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17457 openbsd2.[89] | openbsd2.[89].*)
17458 shlibpath_overrides_runpath=no
17461 shlibpath_overrides_runpath=yes
17465 shlibpath_overrides_runpath=yes
17470 libname_spec='$name'
17473 library_names_spec='$libname${shared_ext} $libname.a'
17474 dynamic_linker='OS/2 ld.exe'
17475 shlibpath_var=LIBPATH
17478 osf3* | osf4* | osf5*)
17482 soname_spec='${libname}${release}${shared_ext}$major'
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17486 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=yes
17497 hardcode_into_libs=yes
17498 # ldd complains unless libraries are executable
17499 postinstall_cmds='chmod +x $lib'
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17505 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17506 shlibpath_var=LD_LIBRARY_PATH
17507 shlibpath_overrides_runpath=yes
17508 if test "$with_gnu_ld" = yes; then
17516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517 soname_spec='${libname}${release}${shared_ext}$major'
17518 shlibpath_var=LD_LIBRARY_PATH
17519 case $host_vendor in
17521 shlibpath_overrides_runpath=no
17523 export_dynamic_flag_spec='${wl}-Blargedynsym'
17524 runpath_var=LD_RUN_PATH
17532 shlibpath_overrides_runpath=no
17533 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17539 if test -d /usr/nec ;then
17541 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17542 soname_spec='$libname${shared_ext}.$major'
17543 shlibpath_var=LD_LIBRARY_PATH
17547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17548 version_type=freebsd-elf
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17552 soname_spec='${libname}${release}${shared_ext}$major'
17553 shlibpath_var=LD_LIBRARY_PATH
17554 hardcode_into_libs=yes
17555 if test "$with_gnu_ld" = yes; then
17556 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17557 shlibpath_overrides_runpath=no
17559 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17560 shlibpath_overrides_runpath=yes
17563 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17567 sys_lib_dlsearch_path_spec='/usr/lib'
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573 soname_spec='${libname}${release}${shared_ext}$major'
17574 shlibpath_var=LD_LIBRARY_PATH
17581 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17582 echo "${ECHO_T}$dynamic_linker" >&6
17583 test "$dynamic_linker" = no && can_build_shared=no
17585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17586 if test "$GCC" = yes; then
17587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17590 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17592 hardcode_action_GCJ=
17593 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17594 test -n "$runpath_var_GCJ" || \
17595 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17597 # We can hardcode non-existant directories.
17598 if test "$hardcode_direct_GCJ" != no &&
17599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17600 # have to relink, otherwise we might link with an installed library
17601 # when we should be linking with a yet-to-be-installed one
17602 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17603 test "$hardcode_minus_L_GCJ" != no; then
17604 # Linking always hardcodes the temporary library directory.
17605 hardcode_action_GCJ=relink
17607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17608 hardcode_action_GCJ=immediate
17611 # We cannot hardcode anything, or else we can only hardcode existing
17613 hardcode_action_GCJ=unsupported
17615 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17616 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17618 if test "$hardcode_action_GCJ" = relink; then
17619 # Fast installation is not supported
17620 enable_fast_install=no
17621 elif test "$shlibpath_overrides_runpath" = yes ||
17622 test "$enable_shared" = no; then
17623 # Fast installation is not necessary
17624 enable_fast_install=needless
17628 # The else clause should only fire when bootstrapping the
17629 # libtool distribution, otherwise you forgot to ship ltmain.sh
17630 # with your package, and you will get complaints that there are
17631 # no rules to generate ltmain.sh.
17632 if test -f "$ltmain"; then
17633 # See if we are running on zsh, and set the options which allow our commands through
17634 # without removal of \ escapes.
17635 if test -n "${ZSH_VERSION+set}" ; then
17636 setopt NO_GLOB_SUBST
17638 # Now quote all the things that may contain metacharacters while being
17639 # careful not to overquote the AC_SUBSTed values. We take copies of the
17640 # variables and quote the copies for generation of the libtool script.
17641 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17645 deplibs_check_method reload_flag reload_cmds need_locks \
17646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17647 lt_cv_sys_global_symbol_to_c_name_address \
17648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17649 old_postinstall_cmds old_postuninstall_cmds \
17653 lt_prog_compiler_wl_GCJ \
17654 lt_prog_compiler_pic_GCJ \
17655 lt_prog_compiler_static_GCJ \
17656 lt_prog_compiler_no_builtin_flag_GCJ \
17657 export_dynamic_flag_spec_GCJ \
17658 thread_safe_flag_spec_GCJ \
17659 whole_archive_flag_spec_GCJ \
17660 enable_shared_with_static_runtimes_GCJ \
17661 old_archive_cmds_GCJ \
17662 old_archive_from_new_cmds_GCJ \
17663 predep_objects_GCJ \
17664 postdep_objects_GCJ \
17667 compiler_lib_search_path_GCJ \
17669 archive_expsym_cmds_GCJ \
17670 postinstall_cmds_GCJ \
17671 postuninstall_cmds_GCJ \
17672 old_archive_from_expsyms_cmds_GCJ \
17673 allow_undefined_flag_GCJ \
17674 no_undefined_flag_GCJ \
17675 export_symbols_cmds_GCJ \
17676 hardcode_libdir_flag_spec_GCJ \
17677 hardcode_libdir_flag_spec_ld_GCJ \
17678 hardcode_libdir_separator_GCJ \
17679 hardcode_automatic_GCJ \
17681 module_expsym_cmds_GCJ \
17682 lt_cv_prog_compiler_c_o_GCJ \
17683 exclude_expsyms_GCJ \
17684 include_expsyms_GCJ; do
17687 old_archive_cmds_GCJ | \
17688 old_archive_from_new_cmds_GCJ | \
17689 archive_cmds_GCJ | \
17690 archive_expsym_cmds_GCJ | \
17691 module_cmds_GCJ | \
17692 module_expsym_cmds_GCJ | \
17693 old_archive_from_expsyms_cmds_GCJ | \
17694 export_symbols_cmds_GCJ | \
17695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17696 postinstall_cmds | postuninstall_cmds | \
17697 old_postinstall_cmds | old_postuninstall_cmds | \
17698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17699 # Double-quote double-evaled strings.
17700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17709 *'\$0 --fallback-echo"')
17710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17716 cat <<__EOF__ >> "$cfgfile"
17717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17721 # Shell to use when invoking shell scripts.
17724 # Whether or not to build shared libraries.
17725 build_libtool_libs=$enable_shared
17727 # Whether or not to build static libraries.
17728 build_old_libs=$enable_static
17730 # Whether or not to add -lc for building shared libraries.
17731 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17733 # Whether or not to disallow shared libs when runtime libs are static
17734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17736 # Whether or not to optimize for fast installation.
17737 fast_install=$enable_fast_install
17740 host_alias=$host_alias
17744 # The build system.
17745 build_alias=$build_alias
17749 # An echo program that does not interpret backslashes.
17754 AR_FLAGS=$lt_AR_FLAGS
17759 # LTCC compiler flags.
17760 LTCFLAGS=$lt_LTCFLAGS
17762 # A language-specific compiler.
17763 CC=$lt_compiler_GCJ
17765 # Is the compiler the GNU C compiler?
17771 # The linker used to build libraries.
17774 # Whether we need hard or soft links.
17777 # A BSD-compatible nm program.
17780 # A symbol stripping program
17783 # Used to examine libraries when file_magic_cmd begins "file"
17784 MAGIC_CMD=$MAGIC_CMD
17786 # Used on cygwin: DLL creation program.
17789 # Used on cygwin: object dumper.
17792 # Used on cygwin: assembler.
17795 # The name of the directory that contains temporary libtool files.
17798 # How to create reloadable object files.
17799 reload_flag=$lt_reload_flag
17800 reload_cmds=$lt_reload_cmds
17802 # How to pass a linker flag through the compiler.
17803 wl=$lt_lt_prog_compiler_wl_GCJ
17805 # Object file suffix (normally "o").
17806 objext="$ac_objext"
17808 # Old archive suffix (normally "a").
17811 # Shared library suffix (normally ".so").
17812 shrext_cmds='$shrext_cmds'
17814 # Executable file suffix (normally "").
17817 # Additional compiler flags for building library objects.
17818 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17821 # What is the maximum length of a command?
17822 max_cmd_len=$lt_cv_sys_max_cmd_len
17824 # Does compiler simultaneously support -c and -o options?
17825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17827 # Must we lock files when doing compilation?
17828 need_locks=$lt_need_locks
17830 # Do we need the lib prefix for modules?
17831 need_lib_prefix=$need_lib_prefix
17833 # Do we need a version for libraries?
17834 need_version=$need_version
17836 # Whether dlopen is supported.
17837 dlopen_support=$enable_dlopen
17839 # Whether dlopen of programs is supported.
17840 dlopen_self=$enable_dlopen_self
17842 # Whether dlopen of statically linked programs is supported.
17843 dlopen_self_static=$enable_dlopen_self_static
17845 # Compiler flag to prevent dynamic linking.
17846 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17848 # Compiler flag to turn off builtin functions.
17849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17851 # Compiler flag to allow reflexive dlopens.
17852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17854 # Compiler flag to generate shared objects directly from archives.
17855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17857 # Compiler flag to generate thread-safe objects.
17858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17860 # Library versioning type.
17861 version_type=$version_type
17863 # Format of library name prefix.
17864 libname_spec=$lt_libname_spec
17866 # List of archive names. First name is the real one, the rest are links.
17867 # The last name is the one that the linker finds with -lNAME.
17868 library_names_spec=$lt_library_names_spec
17870 # The coded name of the library, if different from the real name.
17871 soname_spec=$lt_soname_spec
17873 # Commands used to build and install an old-style archive.
17875 old_archive_cmds=$lt_old_archive_cmds_GCJ
17876 old_postinstall_cmds=$lt_old_postinstall_cmds
17877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17879 # Create an old-style archive from a shared archive.
17880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17882 # Create a temporary old-style archive to link instead of a shared archive.
17883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17885 # Commands used to build and install a shared archive.
17886 archive_cmds=$lt_archive_cmds_GCJ
17887 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17888 postinstall_cmds=$lt_postinstall_cmds
17889 postuninstall_cmds=$lt_postuninstall_cmds
17891 # Commands used to build a loadable module (assumed same as above if empty)
17892 module_cmds=$lt_module_cmds_GCJ
17893 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17895 # Commands to strip libraries.
17896 old_striplib=$lt_old_striplib
17897 striplib=$lt_striplib
17899 # Dependencies to place before the objects being linked to create a
17901 predep_objects=$lt_predep_objects_GCJ
17903 # Dependencies to place after the objects being linked to create a
17905 postdep_objects=$lt_postdep_objects_GCJ
17907 # Dependencies to place before the objects being linked to create a
17909 predeps=$lt_predeps_GCJ
17911 # Dependencies to place after the objects being linked to create a
17913 postdeps=$lt_postdeps_GCJ
17915 # The library search path used internally by the compiler when linking
17916 # a shared library.
17917 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17919 # Method to check whether dependent libraries are shared objects.
17920 deplibs_check_method=$lt_deplibs_check_method
17922 # Command to use when deplibs_check_method == file_magic.
17923 file_magic_cmd=$lt_file_magic_cmd
17925 # Flag that allows shared libraries with undefined symbols to be built.
17926 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17928 # Flag that forces no undefined symbols.
17929 no_undefined_flag=$lt_no_undefined_flag_GCJ
17931 # Commands used to finish a libtool library installation in a directory.
17932 finish_cmds=$lt_finish_cmds
17934 # Same as above, but a single script fragment to be evaled but not shown.
17935 finish_eval=$lt_finish_eval
17937 # Take the output of nm and produce a listing of raw symbols and C names.
17938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17940 # Transform the output of nm in a proper C declaration
17941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17943 # Transform the output of nm in a C name address pair
17944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17946 # This is the shared library runtime path variable.
17947 runpath_var=$runpath_var
17949 # This is the shared library path variable.
17950 shlibpath_var=$shlibpath_var
17952 # Is shlibpath searched before the hard-coded library search path?
17953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17955 # How to hardcode a shared library path into an executable.
17956 hardcode_action=$hardcode_action_GCJ
17958 # Whether we should hardcode library paths into libraries.
17959 hardcode_into_libs=$hardcode_into_libs
17961 # Flag to hardcode \$libdir into a binary during linking.
17962 # This must work even if \$libdir does not exist.
17963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17965 # If ld is used when linking, flag to hardcode \$libdir into
17966 # a binary during linking. This must work even if \$libdir does
17968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17970 # Whether we need a single -rpath flag with a separated argument.
17971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17973 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17974 # resulting binary.
17975 hardcode_direct=$hardcode_direct_GCJ
17977 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17978 # resulting binary.
17979 hardcode_minus_L=$hardcode_minus_L_GCJ
17981 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17982 # the resulting binary.
17983 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17985 # Set to yes if building a shared library automatically hardcodes DIR into the library
17986 # and all subsequent libraries and executables linked against it.
17987 hardcode_automatic=$hardcode_automatic_GCJ
17989 # Variables whose values should be saved in libtool wrapper scripts and
17990 # restored at relink time.
17991 variables_saved_for_relink="$variables_saved_for_relink"
17993 # Whether libtool must link a program against all its dependency libraries.
17994 link_all_deplibs=$link_all_deplibs_GCJ
17996 # Compile-time system search path for libraries
17997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17999 # Run-time system search path for libraries
18000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18002 # Fix the shell variable \$srcfile for the compiler.
18003 fix_srcfile_path="$fix_srcfile_path_GCJ"
18005 # Set to yes if exported symbols are required.
18006 always_export_symbols=$always_export_symbols_GCJ
18008 # The commands to list exported symbols.
18009 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18011 # The commands to extract the exported symbol list from a shared archive.
18012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18014 # Symbols that should not be listed in the preloaded symbols.
18015 exclude_expsyms=$lt_exclude_expsyms_GCJ
18017 # Symbols that must always be exported.
18018 include_expsyms=$lt_include_expsyms_GCJ
18020 # ### END LIBTOOL TAG CONFIG: $tagname
18026 # If there is no Makefile yet, we rely on a make rule to execute
18027 # `config.status --recheck' to rerun these tests and create the
18028 # libtool script then.
18029 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18030 if test -f "$ltmain_in"; then
18031 test -f Makefile && make "$ltmain"
18037 ac_cpp='$CPP $CPPFLAGS'
18038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18053 # Source file extension for RC test sources.
18056 # Object file extension for compiled RC test sources.
18060 # Code to be used in simple compile tests
18061 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18063 # Code to be used in simple link tests
18064 lt_simple_link_test_code="$lt_simple_compile_test_code"
18066 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18068 # If no C compiler was specified, use CC.
18071 # If no C compiler flags were specified, use CFLAGS.
18072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18074 # Allow CC to be a program name with arguments.
18078 # save warnings/boilerplate of simple test code
18079 ac_outfile=conftest.$ac_objext
18080 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18081 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18082 _lt_compiler_boilerplate=`cat conftest.err`
18085 ac_outfile=conftest.$ac_objext
18086 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18087 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18088 _lt_linker_boilerplate=`cat conftest.err`
18092 # Allow CC to be a program name with arguments.
18097 for cc_temp in $compiler""; do
18099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18105 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18107 lt_cv_prog_compiler_c_o_RC=yes
18109 # The else clause should only fire when bootstrapping the
18110 # libtool distribution, otherwise you forgot to ship ltmain.sh
18111 # with your package, and you will get complaints that there are
18112 # no rules to generate ltmain.sh.
18113 if test -f "$ltmain"; then
18114 # See if we are running on zsh, and set the options which allow our commands through
18115 # without removal of \ escapes.
18116 if test -n "${ZSH_VERSION+set}" ; then
18117 setopt NO_GLOB_SUBST
18119 # Now quote all the things that may contain metacharacters while being
18120 # careful not to overquote the AC_SUBSTed values. We take copies of the
18121 # variables and quote the copies for generation of the libtool script.
18122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18126 deplibs_check_method reload_flag reload_cmds need_locks \
18127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18128 lt_cv_sys_global_symbol_to_c_name_address \
18129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18130 old_postinstall_cmds old_postuninstall_cmds \
18134 lt_prog_compiler_wl_RC \
18135 lt_prog_compiler_pic_RC \
18136 lt_prog_compiler_static_RC \
18137 lt_prog_compiler_no_builtin_flag_RC \
18138 export_dynamic_flag_spec_RC \
18139 thread_safe_flag_spec_RC \
18140 whole_archive_flag_spec_RC \
18141 enable_shared_with_static_runtimes_RC \
18142 old_archive_cmds_RC \
18143 old_archive_from_new_cmds_RC \
18144 predep_objects_RC \
18145 postdep_objects_RC \
18148 compiler_lib_search_path_RC \
18150 archive_expsym_cmds_RC \
18151 postinstall_cmds_RC \
18152 postuninstall_cmds_RC \
18153 old_archive_from_expsyms_cmds_RC \
18154 allow_undefined_flag_RC \
18155 no_undefined_flag_RC \
18156 export_symbols_cmds_RC \
18157 hardcode_libdir_flag_spec_RC \
18158 hardcode_libdir_flag_spec_ld_RC \
18159 hardcode_libdir_separator_RC \
18160 hardcode_automatic_RC \
18162 module_expsym_cmds_RC \
18163 lt_cv_prog_compiler_c_o_RC \
18164 exclude_expsyms_RC \
18165 include_expsyms_RC; do
18168 old_archive_cmds_RC | \
18169 old_archive_from_new_cmds_RC | \
18170 archive_cmds_RC | \
18171 archive_expsym_cmds_RC | \
18173 module_expsym_cmds_RC | \
18174 old_archive_from_expsyms_cmds_RC | \
18175 export_symbols_cmds_RC | \
18176 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18177 postinstall_cmds | postuninstall_cmds | \
18178 old_postinstall_cmds | old_postuninstall_cmds | \
18179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18180 # Double-quote double-evaled strings.
18181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18190 *'\$0 --fallback-echo"')
18191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18197 cat <<__EOF__ >> "$cfgfile"
18198 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18202 # Shell to use when invoking shell scripts.
18205 # Whether or not to build shared libraries.
18206 build_libtool_libs=$enable_shared
18208 # Whether or not to build static libraries.
18209 build_old_libs=$enable_static
18211 # Whether or not to add -lc for building shared libraries.
18212 build_libtool_need_lc=$archive_cmds_need_lc_RC
18214 # Whether or not to disallow shared libs when runtime libs are static
18215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18217 # Whether or not to optimize for fast installation.
18218 fast_install=$enable_fast_install
18221 host_alias=$host_alias
18225 # The build system.
18226 build_alias=$build_alias
18230 # An echo program that does not interpret backslashes.
18235 AR_FLAGS=$lt_AR_FLAGS
18240 # LTCC compiler flags.
18241 LTCFLAGS=$lt_LTCFLAGS
18243 # A language-specific compiler.
18246 # Is the compiler the GNU C compiler?
18252 # The linker used to build libraries.
18255 # Whether we need hard or soft links.
18258 # A BSD-compatible nm program.
18261 # A symbol stripping program
18264 # Used to examine libraries when file_magic_cmd begins "file"
18265 MAGIC_CMD=$MAGIC_CMD
18267 # Used on cygwin: DLL creation program.
18270 # Used on cygwin: object dumper.
18273 # Used on cygwin: assembler.
18276 # The name of the directory that contains temporary libtool files.
18279 # How to create reloadable object files.
18280 reload_flag=$lt_reload_flag
18281 reload_cmds=$lt_reload_cmds
18283 # How to pass a linker flag through the compiler.
18284 wl=$lt_lt_prog_compiler_wl_RC
18286 # Object file suffix (normally "o").
18287 objext="$ac_objext"
18289 # Old archive suffix (normally "a").
18292 # Shared library suffix (normally ".so").
18293 shrext_cmds='$shrext_cmds'
18295 # Executable file suffix (normally "").
18298 # Additional compiler flags for building library objects.
18299 pic_flag=$lt_lt_prog_compiler_pic_RC
18302 # What is the maximum length of a command?
18303 max_cmd_len=$lt_cv_sys_max_cmd_len
18305 # Does compiler simultaneously support -c and -o options?
18306 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18308 # Must we lock files when doing compilation?
18309 need_locks=$lt_need_locks
18311 # Do we need the lib prefix for modules?
18312 need_lib_prefix=$need_lib_prefix
18314 # Do we need a version for libraries?
18315 need_version=$need_version
18317 # Whether dlopen is supported.
18318 dlopen_support=$enable_dlopen
18320 # Whether dlopen of programs is supported.
18321 dlopen_self=$enable_dlopen_self
18323 # Whether dlopen of statically linked programs is supported.
18324 dlopen_self_static=$enable_dlopen_self_static
18326 # Compiler flag to prevent dynamic linking.
18327 link_static_flag=$lt_lt_prog_compiler_static_RC
18329 # Compiler flag to turn off builtin functions.
18330 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18332 # Compiler flag to allow reflexive dlopens.
18333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18335 # Compiler flag to generate shared objects directly from archives.
18336 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18338 # Compiler flag to generate thread-safe objects.
18339 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18341 # Library versioning type.
18342 version_type=$version_type
18344 # Format of library name prefix.
18345 libname_spec=$lt_libname_spec
18347 # List of archive names. First name is the real one, the rest are links.
18348 # The last name is the one that the linker finds with -lNAME.
18349 library_names_spec=$lt_library_names_spec
18351 # The coded name of the library, if different from the real name.
18352 soname_spec=$lt_soname_spec
18354 # Commands used to build and install an old-style archive.
18356 old_archive_cmds=$lt_old_archive_cmds_RC
18357 old_postinstall_cmds=$lt_old_postinstall_cmds
18358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18360 # Create an old-style archive from a shared archive.
18361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18363 # Create a temporary old-style archive to link instead of a shared archive.
18364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18366 # Commands used to build and install a shared archive.
18367 archive_cmds=$lt_archive_cmds_RC
18368 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18369 postinstall_cmds=$lt_postinstall_cmds
18370 postuninstall_cmds=$lt_postuninstall_cmds
18372 # Commands used to build a loadable module (assumed same as above if empty)
18373 module_cmds=$lt_module_cmds_RC
18374 module_expsym_cmds=$lt_module_expsym_cmds_RC
18376 # Commands to strip libraries.
18377 old_striplib=$lt_old_striplib
18378 striplib=$lt_striplib
18380 # Dependencies to place before the objects being linked to create a
18382 predep_objects=$lt_predep_objects_RC
18384 # Dependencies to place after the objects being linked to create a
18386 postdep_objects=$lt_postdep_objects_RC
18388 # Dependencies to place before the objects being linked to create a
18390 predeps=$lt_predeps_RC
18392 # Dependencies to place after the objects being linked to create a
18394 postdeps=$lt_postdeps_RC
18396 # The library search path used internally by the compiler when linking
18397 # a shared library.
18398 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18400 # Method to check whether dependent libraries are shared objects.
18401 deplibs_check_method=$lt_deplibs_check_method
18403 # Command to use when deplibs_check_method == file_magic.
18404 file_magic_cmd=$lt_file_magic_cmd
18406 # Flag that allows shared libraries with undefined symbols to be built.
18407 allow_undefined_flag=$lt_allow_undefined_flag_RC
18409 # Flag that forces no undefined symbols.
18410 no_undefined_flag=$lt_no_undefined_flag_RC
18412 # Commands used to finish a libtool library installation in a directory.
18413 finish_cmds=$lt_finish_cmds
18415 # Same as above, but a single script fragment to be evaled but not shown.
18416 finish_eval=$lt_finish_eval
18418 # Take the output of nm and produce a listing of raw symbols and C names.
18419 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18421 # Transform the output of nm in a proper C declaration
18422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18424 # Transform the output of nm in a C name address pair
18425 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18427 # This is the shared library runtime path variable.
18428 runpath_var=$runpath_var
18430 # This is the shared library path variable.
18431 shlibpath_var=$shlibpath_var
18433 # Is shlibpath searched before the hard-coded library search path?
18434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18436 # How to hardcode a shared library path into an executable.
18437 hardcode_action=$hardcode_action_RC
18439 # Whether we should hardcode library paths into libraries.
18440 hardcode_into_libs=$hardcode_into_libs
18442 # Flag to hardcode \$libdir into a binary during linking.
18443 # This must work even if \$libdir does not exist.
18444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18446 # If ld is used when linking, flag to hardcode \$libdir into
18447 # a binary during linking. This must work even if \$libdir does
18449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18451 # Whether we need a single -rpath flag with a separated argument.
18452 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18454 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18455 # resulting binary.
18456 hardcode_direct=$hardcode_direct_RC
18458 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18459 # resulting binary.
18460 hardcode_minus_L=$hardcode_minus_L_RC
18462 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18463 # the resulting binary.
18464 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18466 # Set to yes if building a shared library automatically hardcodes DIR into the library
18467 # and all subsequent libraries and executables linked against it.
18468 hardcode_automatic=$hardcode_automatic_RC
18470 # Variables whose values should be saved in libtool wrapper scripts and
18471 # restored at relink time.
18472 variables_saved_for_relink="$variables_saved_for_relink"
18474 # Whether libtool must link a program against all its dependency libraries.
18475 link_all_deplibs=$link_all_deplibs_RC
18477 # Compile-time system search path for libraries
18478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18480 # Run-time system search path for libraries
18481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18483 # Fix the shell variable \$srcfile for the compiler.
18484 fix_srcfile_path="$fix_srcfile_path_RC"
18486 # Set to yes if exported symbols are required.
18487 always_export_symbols=$always_export_symbols_RC
18489 # The commands to list exported symbols.
18490 export_symbols_cmds=$lt_export_symbols_cmds_RC
18492 # The commands to extract the exported symbol list from a shared archive.
18493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18495 # Symbols that should not be listed in the preloaded symbols.
18496 exclude_expsyms=$lt_exclude_expsyms_RC
18498 # Symbols that must always be exported.
18499 include_expsyms=$lt_include_expsyms_RC
18501 # ### END LIBTOOL TAG CONFIG: $tagname
18507 # If there is no Makefile yet, we rely on a make rule to execute
18508 # `config.status --recheck' to rerun these tests and create the
18509 # libtool script then.
18510 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18511 if test -f "$ltmain_in"; then
18512 test -f Makefile && make "$ltmain"
18518 ac_cpp='$CPP $CPPFLAGS'
18519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18528 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18529 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18530 { (exit 1); exit 1; }; }
18534 # Append the new tag name to the list of available tags.
18535 if test -n "$tagname" ; then
18536 available_tags="$available_tags $tagname"
18542 # Now substitute the updated list of available tags.
18543 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18544 mv "${ofile}T" "$ofile"
18548 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18549 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18550 { (exit 1); exit 1; }; }
18556 # This can be used to rebuild libtool when needed
18557 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18559 # Always use our own libtool.
18560 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18562 # Prevent multiple expansion
18583 # Check whether --enable-debug or --disable-debug was given.
18584 if test "${enable_debug+set}" = set; then
18585 enableval="$enable_debug"
18587 CXXFLAGS="-g -O0 -Wall"
18589 cat >>confdefs.h <<\_ACEOF
18602 # Check whether --with-libldap or --without-libldap was given.
18603 if test "${with_libldap+set}" = set; then
18604 withval="$with_libldap"
18606 LIBS="-L$with_libldap $LIBS "
18610 LIBS="-L/usr/local/lib $LIBS "
18616 # Check whether --with-ldap-includes or --without-ldap-includes was given.
18617 if test "${with_ldap_includes+set}" = set; then
18618 withval="$with_ldap_includes"
18620 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
18624 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
18629 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
18630 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
18631 if test "${ac_cv_lib_resolv_main+set}" = set; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 ac_check_lib_save_LIBS=$LIBS
18635 LIBS="-lresolv $LIBS"
18636 cat >conftest.$ac_ext <<_ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18654 (eval $ac_link) 2>conftest.er1
18656 grep -v '^ *+' conftest.er1 >conftest.err
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -z "$ac_c_werror_flag"
18662 || test ! -s conftest.err'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try='test -s conftest$ac_exeext'
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_cv_lib_resolv_main=yes
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18679 ac_cv_lib_resolv_main=no
18681 rm -f conftest.err conftest.$ac_objext \
18682 conftest$ac_exeext conftest.$ac_ext
18683 LIBS=$ac_check_lib_save_LIBS
18685 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
18686 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
18687 if test $ac_cv_lib_resolv_main = yes; then
18688 cat >>confdefs.h <<_ACEOF
18689 #define HAVE_LIBRESOLV 1
18692 LIBS="-lresolv $LIBS"
18696 echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
18697 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6
18698 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
18699 echo $ECHO_N "(cached) $ECHO_C" >&6
18701 ac_check_lib_save_LIBS=$LIBS
18702 LIBS="-llber $LIBS"
18703 cat >conftest.$ac_ext <<_ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18710 /* Override any gcc2 internal prototype to avoid an error. */
18714 /* We use char because int might match the return type of a gcc2
18715 builtin and then its argument prototype would still apply. */
18716 char ber_strdup ();
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18727 (eval $ac_link) 2>conftest.er1
18729 grep -v '^ *+' conftest.er1 >conftest.err
18731 cat conftest.err >&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
18734 { ac_try='test -z "$ac_c_werror_flag"
18735 || test ! -s conftest.err'
18736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; } &&
18741 { ac_try='test -s conftest$ac_exeext'
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; }; then
18747 ac_cv_lib_lber_ber_strdup=yes
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 ac_cv_lib_lber_ber_strdup=no
18754 rm -f conftest.err conftest.$ac_objext \
18755 conftest$ac_exeext conftest.$ac_ext
18756 LIBS=$ac_check_lib_save_LIBS
18758 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
18759 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6
18760 if test $ac_cv_lib_lber_ber_strdup = yes; then
18766 echo " didn't find ber_strdup in liblber !";
18767 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
18768 echo " or try the --with-libldap option.";
18773 echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
18774 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6
18775 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18778 ac_check_lib_save_LIBS=$LIBS
18782 cat >conftest.$ac_ext <<_ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18789 /* Override any gcc2 internal prototype to avoid an error. */
18793 /* We use char because int might match the return type of a gcc2
18794 builtin and then its argument prototype would still apply. */
18795 char ldap_add_ext ();
18804 rm -f conftest.$ac_objext conftest$ac_exeext
18805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18806 (eval $ac_link) 2>conftest.er1
18808 grep -v '^ *+' conftest.er1 >conftest.err
18810 cat conftest.err >&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } &&
18813 { ac_try='test -z "$ac_c_werror_flag"
18814 || test ! -s conftest.err'
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; } &&
18820 { ac_try='test -s conftest$ac_exeext'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18826 ac_cv_lib_ldap_ldap_add_ext=yes
18828 echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18831 ac_cv_lib_ldap_ldap_add_ext=no
18833 rm -f conftest.err conftest.$ac_objext \
18834 conftest$ac_exeext conftest.$ac_ext
18835 LIBS=$ac_check_lib_save_LIBS
18837 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
18838 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6
18839 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
18845 echo " didn't find ldap_add_ext in libldap !";
18846 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
18847 echo " or try the --with-libldap option.";
18852 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18853 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18854 if test "${ac_cv_header_time+set}" = set; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18857 cat >conftest.$ac_ext <<_ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 #include <sys/types.h>
18864 #include <sys/time.h>
18870 if ((struct tm *) 0)
18876 rm -f conftest.$ac_objext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18878 (eval $ac_compile) 2>conftest.er1
18880 grep -v '^ *+' conftest.er1 >conftest.err
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag"
18886 || test ! -s conftest.err'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest.$ac_objext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_header_time=yes
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ac_cv_header_time=no
18905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18907 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18908 echo "${ECHO_T}$ac_cv_header_time" >&6
18909 if test $ac_cv_header_time = yes; then
18911 cat >>confdefs.h <<\_ACEOF
18912 #define TIME_WITH_SYS_TIME 1
18917 if test "${ac_cv_header_ldap_h+set}" = set; then
18918 echo "$as_me:$LINENO: checking for ldap.h" >&5
18919 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
18920 if test "${ac_cv_header_ldap_h+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
18924 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
18926 # Is the header compilable?
18927 echo "$as_me:$LINENO: checking ldap.h usability" >&5
18928 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6
18929 cat >conftest.$ac_ext <<_ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 $ac_includes_default
18938 rm -f conftest.$ac_objext
18939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18940 (eval $ac_compile) 2>conftest.er1
18942 grep -v '^ *+' conftest.er1 >conftest.err
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } &&
18947 { ac_try='test -z "$ac_c_werror_flag"
18948 || test ! -s conftest.err'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest.$ac_objext'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_header_compiler=yes
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 ac_header_compiler=no
18967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18969 echo "${ECHO_T}$ac_header_compiler" >&6
18971 # Is the header present?
18972 echo "$as_me:$LINENO: checking ldap.h presence" >&5
18973 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6
18974 cat >conftest.$ac_ext <<_ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18985 grep -v '^ *+' conftest.er1 >conftest.err
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } >/dev/null; then
18990 if test -s conftest.err; then
18991 ac_cpp_err=$ac_c_preproc_warn_flag
18992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18999 if test -z "$ac_cpp_err"; then
19000 ac_header_preproc=yes
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_header_preproc=no
19007 rm -f conftest.err conftest.$ac_ext
19008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19009 echo "${ECHO_T}$ac_header_preproc" >&6
19011 # So? What about this header?
19012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19014 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
19015 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
19017 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
19018 ac_header_preproc=yes
19021 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
19022 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
19024 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
19026 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
19028 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
19032 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
19035 ## ------------------------------------------ ##
19036 ## Report this to the AC_PACKAGE_NAME lists. ##
19037 ## ------------------------------------------ ##
19040 sed "s/^/$as_me: WARNING: /" >&2
19043 echo "$as_me:$LINENO: checking for ldap.h" >&5
19044 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
19045 if test "${ac_cv_header_ldap_h+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 ac_cv_header_ldap_h=$ac_header_preproc
19050 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
19051 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
19056 cat >conftest.$ac_ext <<_ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19066 $EGREP "ldap_add_ext" >/dev/null 2>&1; then
19072 echo " didn't find ldap_add_ext in ldap.h!";
19073 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
19074 echo " or try --with-ldap-includes option.";
19080 if test "${ac_cv_header_lber_h+set}" = set; then
19081 echo "$as_me:$LINENO: checking for lber.h" >&5
19082 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
19083 if test "${ac_cv_header_lber_h+set}" = set; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19086 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
19087 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
19089 # Is the header compilable?
19090 echo "$as_me:$LINENO: checking lber.h usability" >&5
19091 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6
19092 cat >conftest.$ac_ext <<_ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h. */
19098 $ac_includes_default
19101 rm -f conftest.$ac_objext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19103 (eval $ac_compile) 2>conftest.er1
19105 grep -v '^ *+' conftest.er1 >conftest.err
19107 cat conftest.err >&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
19110 { ac_try='test -z "$ac_c_werror_flag"
19111 || test ! -s conftest.err'
19112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113 (eval $ac_try) 2>&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; } &&
19117 { ac_try='test -s conftest.$ac_objext'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_header_compiler=yes
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19128 ac_header_compiler=no
19130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19132 echo "${ECHO_T}$ac_header_compiler" >&6
19134 # Is the header present?
19135 echo "$as_me:$LINENO: checking lber.h presence" >&5
19136 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6
19137 cat >conftest.$ac_ext <<_ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19148 grep -v '^ *+' conftest.er1 >conftest.err
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } >/dev/null; then
19153 if test -s conftest.err; then
19154 ac_cpp_err=$ac_c_preproc_warn_flag
19155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19162 if test -z "$ac_cpp_err"; then
19163 ac_header_preproc=yes
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19168 ac_header_preproc=no
19170 rm -f conftest.err conftest.$ac_ext
19171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19172 echo "${ECHO_T}$ac_header_preproc" >&6
19174 # So? What about this header?
19175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19177 { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
19178 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19179 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's result" >&5
19180 echo "$as_me: WARNING: lber.h: proceeding with the compiler's result" >&2;}
19181 ac_header_preproc=yes
19184 { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
19185 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
19186 { echo "$as_me:$LINENO: WARNING: lber.h: check for missing prerequisite headers?" >&5
19187 echo "$as_me: WARNING: lber.h: check for missing prerequisite headers?" >&2;}
19188 { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation" >&5
19189 echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;}
19190 { echo "$as_me:$LINENO: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&5
19191 echo "$as_me: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&2;}
19192 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
19193 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
19194 { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take precedence" >&5
19195 echo "$as_me: WARNING: lber.h: in the future, the compiler will take precedence" >&2;}
19198 ## ------------------------------------------ ##
19199 ## Report this to the AC_PACKAGE_NAME lists. ##
19200 ## ------------------------------------------ ##
19203 sed "s/^/$as_me: WARNING: /" >&2
19206 echo "$as_me:$LINENO: checking for lber.h" >&5
19207 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
19208 if test "${ac_cv_header_lber_h+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 ac_cv_header_lber_h=$ac_header_preproc
19213 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
19214 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
19219 cat >conftest.$ac_ext <<_ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19229 $EGREP "ber_strdup" >/dev/null 2>&1; then
19235 echo " didn't find ber_strdup in lber.h!";
19236 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
19237 echo " or try --with-ldap-includes option.";
19246 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
19247 cat >confcache <<\_ACEOF
19248 # This file is a shell script that caches the results of configure
19249 # tests run on this system so they can be shared between configure
19250 # scripts and configure runs, see configure's option --config-cache.
19251 # It is not useful on other systems. If it contains results you don't
19252 # want to keep, you may remove or edit it.
19254 # config.status only pays attention to the cache file if you give it
19255 # the --recheck option to rerun configure.
19257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19259 # following values.
19263 # The following way of writing the cache mishandles newlines in values,
19264 # but we know of no workaround that is simple, portable, and efficient.
19265 # So, don't put newlines in cache variables' values.
19266 # Ultrix sh set writes to stderr and can't be redirected directly,
19267 # and sets the high bit in the cache file unless we assign to the vars.
19270 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19272 # `set' does not quote correctly, so add quotes (double-quote
19273 # substitution turns \\\\ into \\, and sed turns \\ into \).
19276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19279 # `set' quotes correctly as required by POSIX, so do not add quotes.
19281 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19288 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19290 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19292 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19293 if test -w $cache_file; then
19294 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19295 cat confcache >$cache_file
19297 echo "not updating unwritable cache $cache_file"
19302 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19303 # Let make expand exec_prefix.
19304 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19306 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19307 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19308 # trailing colons and then remove the whole line if VPATH becomes empty
19309 # (actually we leave an empty line to preserve line numbers).
19310 if test "x$srcdir" = x.; then
19311 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19312 s/:*\$(srcdir):*/:/;
19313 s/:*\${srcdir}:*/:/;
19315 s/^\([^=]*=[ ]*\):*/\1/;
19321 DEFS=-DHAVE_CONFIG_H
19325 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19326 # 1. Remove the extension, and $U if already installed.
19327 ac_i=`echo "$ac_i" |
19328 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19330 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19331 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19333 LIBOBJS=$ac_libobjs
19335 LTLIBOBJS=$ac_ltlibobjs
19338 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19339 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19340 Usually this means the macro was only invoked conditionally." >&5
19341 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19342 Usually this means the macro was only invoked conditionally." >&2;}
19343 { (exit 1); exit 1; }; }
19345 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19346 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19347 Usually this means the macro was only invoked conditionally." >&5
19348 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19349 Usually this means the macro was only invoked conditionally." >&2;}
19350 { (exit 1); exit 1; }; }
19352 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19353 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19354 Usually this means the macro was only invoked conditionally." >&5
19355 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19356 Usually this means the macro was only invoked conditionally." >&2;}
19357 { (exit 1); exit 1; }; }
19360 : ${CONFIG_STATUS=./config.status}
19361 ac_clean_files_save=$ac_clean_files
19362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19363 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19364 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19365 cat >$CONFIG_STATUS <<_ACEOF
19367 # Generated by $as_me.
19368 # Run this file to recreate the current configuration.
19369 # Compiler output produced by configure, useful for debugging
19370 # configure, is in config.log if it exists.
19373 ac_cs_recheck=false
19375 SHELL=\${CONFIG_SHELL-$SHELL}
19378 cat >>$CONFIG_STATUS <<\_ACEOF
19379 ## --------------------- ##
19380 ## M4sh Initialization. ##
19381 ## --------------------- ##
19383 # Be Bourne compatible
19384 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19387 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19388 # is contrary to our usage. Disable this feature.
19389 alias -g '${1+"$@"}'='"$@"'
19390 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19393 DUALCASE=1; export DUALCASE # for MKS sh
19395 # Support unset when possible.
19396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19403 # Work around bugs in pre-3.0 UWIN ksh.
19404 $as_unset ENV MAIL MAILPATH
19411 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19412 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19413 LC_TELEPHONE LC_TIME
19415 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19416 eval $as_var=C; export $as_var
19422 # Required to use basename.
19423 if expr a : '\(a\)' >/dev/null 2>&1; then
19429 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19430 as_basename=basename
19436 # Name of the executable.
19437 as_me=`$as_basename "$0" ||
19438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19439 X"$0" : 'X\(//\)$' \| \
19440 X"$0" : 'X\(/\)$' \| \
19441 . : '\(.\)' 2>/dev/null ||
19443 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19444 /^X\/\(\/\/\)$/{ s//\1/; q; }
19445 /^X\/\(\/\).*/{ s//\1/; q; }
19449 # PATH needs CR, and LINENO needs CR and PATH.
19450 # Avoid depending upon Character Ranges.
19451 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19452 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19453 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19454 as_cr_digits='0123456789'
19455 as_cr_alnum=$as_cr_Letters$as_cr_digits
19457 # The user is always right.
19458 if test "${PATH_SEPARATOR+set}" != set; then
19459 echo "#! /bin/sh" >conf$$.sh
19460 echo "exit 0" >>conf$$.sh
19462 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19471 as_lineno_1=$LINENO
19472 as_lineno_2=$LINENO
19473 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19474 test "x$as_lineno_1" != "x$as_lineno_2" &&
19475 test "x$as_lineno_3" = "x$as_lineno_2" || {
19476 # Find who we are. Look in the path if we contain no path at all
19479 *[\\/]* ) as_myself=$0 ;;
19480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19481 for as_dir in $PATH
19484 test -z "$as_dir" && as_dir=.
19485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19490 # We did not find ourselves, most probably we were run as `sh COMMAND'
19491 # in which case we are not to be found in the path.
19492 if test "x$as_myself" = x; then
19495 if test ! -f "$as_myself"; then
19496 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19497 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19498 { (exit 1); exit 1; }; }
19500 case $CONFIG_SHELL in
19502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19503 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19506 test -z "$as_dir" && as_dir=.
19507 for as_base in sh bash ksh sh5; do
19510 if ("$as_dir/$as_base" -c '
19511 as_lineno_1=$LINENO
19512 as_lineno_2=$LINENO
19513 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19514 test "x$as_lineno_1" != "x$as_lineno_2" &&
19515 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19516 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19517 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19518 CONFIG_SHELL=$as_dir/$as_base
19519 export CONFIG_SHELL
19520 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19528 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19529 # uniformly replaced by the line number. The first 'sed' inserts a
19530 # line-number line before each line; the second 'sed' does the real
19531 # work. The second script uses 'N' to pair each line-number line
19532 # with the numbered line, and appends trailing '-' during
19533 # substitution so that $LINENO is not a special case at line end.
19534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19535 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19536 sed '=' <$as_myself |
19541 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19544 s,^['$as_cr_digits']*\n,,
19545 ' >$as_me.lineno &&
19546 chmod +x $as_me.lineno ||
19547 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19548 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19549 { (exit 1); exit 1; }; }
19551 # Don't try to exec as it changes $[0], causing all sort of problems
19552 # (the dirname of $[0] is not the place where we might find the
19553 # original and so on. Autoconf is especially sensible to this).
19555 # Exit status is that of the last command.
19560 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19561 *c*,-n*) ECHO_N= ECHO_C='
19563 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19564 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19567 if expr a : '\(a\)' >/dev/null 2>&1; then
19573 rm -f conf$$ conf$$.exe conf$$.file
19575 if ln -s conf$$.file conf$$ 2>/dev/null; then
19576 # We could just check for DJGPP; but this test a) works b) is more generic
19577 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19578 if test -f conf$$.exe; then
19579 # Don't use ln at all; we don't have any links
19584 elif ln conf$$.file conf$$ 2>/dev/null; then
19589 rm -f conf$$ conf$$.exe conf$$.file
19591 if mkdir -p . 2>/dev/null; then
19594 test -d ./-p && rmdir ./-p
19598 as_executable_p="test -f"
19600 # Sed expression to map a string onto a valid CPP name.
19601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19603 # Sed expression to map a string onto a valid variable name.
19604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19608 # We need space, tab and new line, in precisely that order.
19618 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19619 # report actual input values of CONFIG_FILES etc. instead of their
19620 # values after options handling. Logging --version etc. is OK.
19624 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19625 ## Running $as_me. ##
19630 This file was extended by $as_me, which was
19631 generated by GNU Autoconf 2.59. Invocation command line was
19633 CONFIG_FILES = $CONFIG_FILES
19634 CONFIG_HEADERS = $CONFIG_HEADERS
19635 CONFIG_LINKS = $CONFIG_LINKS
19636 CONFIG_COMMANDS = $CONFIG_COMMANDS
19640 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19644 # Files that config.status was made for.
19645 if test -n "$ac_config_files"; then
19646 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19649 if test -n "$ac_config_headers"; then
19650 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19653 if test -n "$ac_config_links"; then
19654 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19657 if test -n "$ac_config_commands"; then
19658 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19661 cat >>$CONFIG_STATUS <<\_ACEOF
19664 \`$as_me' instantiates files from templates according to the
19665 current configuration.
19667 Usage: $0 [OPTIONS] [FILE]...
19669 -h, --help print this help, then exit
19670 -V, --version print version number, then exit
19671 -q, --quiet do not print progress messages
19672 -d, --debug don't remove temporary files
19673 --recheck update $as_me by reconfiguring in the same conditions
19674 --file=FILE[:TEMPLATE]
19675 instantiate the configuration file FILE
19676 --header=FILE[:TEMPLATE]
19677 instantiate the configuration header FILE
19679 Configuration files:
19682 Configuration headers:
19685 Configuration commands:
19688 Report bugs to <bug-autoconf@gnu.org>."
19691 cat >>$CONFIG_STATUS <<_ACEOF
19694 configured by $0, generated by GNU Autoconf 2.59,
19695 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19697 Copyright (C) 2003 Free Software Foundation, Inc.
19698 This config.status script is free software; the Free Software Foundation
19699 gives unlimited permission to copy, distribute and modify it."
19704 cat >>$CONFIG_STATUS <<\_ACEOF
19705 # If no file are specified by the user, then we need to provide default
19706 # value. By we need to know if files were specified by the user.
19712 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19713 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19721 *) # This is not an option, so the user has probably given explicit
19724 ac_need_defaults=false;;
19728 # Handling of the options.
19730 cat >>$CONFIG_STATUS <<\_ACEOF
19731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19733 --version | --vers* | -V )
19734 echo "$ac_cs_version"; exit 0 ;;
19736 # Conflict between --help and --header
19737 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19738 Try \`$0 --help' for more information." >&5
19739 echo "$as_me: error: ambiguous option: $1
19740 Try \`$0 --help' for more information." >&2;}
19741 { (exit 1); exit 1; }; };;
19742 --help | --hel | -h )
19743 echo "$ac_cs_usage"; exit 0 ;;
19744 --debug | --d* | -d )
19746 --file | --fil | --fi | --f )
19748 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19749 ac_need_defaults=false;;
19750 --header | --heade | --head | --hea )
19752 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19753 ac_need_defaults=false;;
19754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19755 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19758 # This is an error.
19759 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19760 Try \`$0 --help' for more information." >&5
19761 echo "$as_me: error: unrecognized option: $1
19762 Try \`$0 --help' for more information." >&2;}
19763 { (exit 1); exit 1; }; } ;;
19765 *) ac_config_targets="$ac_config_targets $1" ;;
19771 ac_configure_extra_args=
19773 if $ac_cs_silent; then
19775 ac_configure_extra_args="$ac_configure_extra_args --silent"
19779 cat >>$CONFIG_STATUS <<_ACEOF
19780 if \$ac_cs_recheck; then
19781 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19782 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19787 cat >>$CONFIG_STATUS <<_ACEOF
19789 # INIT-COMMANDS section.
19792 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19798 cat >>$CONFIG_STATUS <<\_ACEOF
19799 for ac_config_target in $ac_config_targets
19801 case "$ac_config_target" in
19802 # Handling of arguments.
19803 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19804 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19805 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19806 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19807 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19808 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19809 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19810 { (exit 1); exit 1; }; };;
19814 # If the user did not use the arguments to specify the items to instantiate,
19815 # then the envvar interface is used. Set only those that are not.
19816 # We use the long form for the default assignment because of an extremely
19817 # bizarre bug on SunOS 4.1.3.
19818 if $ac_need_defaults; then
19819 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19820 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19821 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19824 # Have a temporary directory for convenience. Make it in the build tree
19825 # simply because there is no reason to put it here, and in addition,
19826 # creating and moving files from /tmp can sometimes cause problems.
19827 # Create a temporary directory, and hook for its removal unless debugging.
19830 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19831 trap '{ (exit 1); exit 1; }' 1 2 13 15
19834 # Create a (secure) tmp directory for tmp files.
19837 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19838 test -n "$tmp" && test -d "$tmp"
19841 tmp=./confstat$$-$RANDOM
19842 (umask 077 && mkdir $tmp)
19845 echo "$me: cannot create a temporary directory in ." >&2
19846 { (exit 1); exit 1; }
19851 cat >>$CONFIG_STATUS <<_ACEOF
19854 # CONFIG_FILES section.
19857 # No need to generate the scripts if there are no CONFIG_FILES.
19858 # This happens for instance when ./config.status config.h
19859 if test -n "\$CONFIG_FILES"; then
19860 # Protect against being on the right side of a sed subst in config.status.
19861 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19862 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19863 s,@SHELL@,$SHELL,;t t
19864 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19865 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19866 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19867 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19868 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19869 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19870 s,@exec_prefix@,$exec_prefix,;t t
19871 s,@prefix@,$prefix,;t t
19872 s,@program_transform_name@,$program_transform_name,;t t
19873 s,@bindir@,$bindir,;t t
19874 s,@sbindir@,$sbindir,;t t
19875 s,@libexecdir@,$libexecdir,;t t
19876 s,@datadir@,$datadir,;t t
19877 s,@sysconfdir@,$sysconfdir,;t t
19878 s,@sharedstatedir@,$sharedstatedir,;t t
19879 s,@localstatedir@,$localstatedir,;t t
19880 s,@libdir@,$libdir,;t t
19881 s,@includedir@,$includedir,;t t
19882 s,@oldincludedir@,$oldincludedir,;t t
19883 s,@infodir@,$infodir,;t t
19884 s,@mandir@,$mandir,;t t
19885 s,@build_alias@,$build_alias,;t t
19886 s,@host_alias@,$host_alias,;t t
19887 s,@target_alias@,$target_alias,;t t
19888 s,@DEFS@,$DEFS,;t t
19889 s,@ECHO_C@,$ECHO_C,;t t
19890 s,@ECHO_N@,$ECHO_N,;t t
19891 s,@ECHO_T@,$ECHO_T,;t t
19892 s,@LIBS@,$LIBS,;t t
19893 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19894 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19895 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19896 s,@CYGPATH_W@,$CYGPATH_W,;t t
19897 s,@PACKAGE@,$PACKAGE,;t t
19898 s,@VERSION@,$VERSION,;t t
19899 s,@ACLOCAL@,$ACLOCAL,;t t
19900 s,@AUTOCONF@,$AUTOCONF,;t t
19901 s,@AUTOMAKE@,$AUTOMAKE,;t t
19902 s,@AUTOHEADER@,$AUTOHEADER,;t t
19903 s,@MAKEINFO@,$MAKEINFO,;t t
19904 s,@install_sh@,$install_sh,;t t
19905 s,@STRIP@,$STRIP,;t t
19906 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19907 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19908 s,@mkdir_p@,$mkdir_p,;t t
19910 s,@SET_MAKE@,$SET_MAKE,;t t
19911 s,@am__leading_dot@,$am__leading_dot,;t t
19912 s,@AMTAR@,$AMTAR,;t t
19913 s,@am__tar@,$am__tar,;t t
19914 s,@am__untar@,$am__untar,;t t
19916 s,@CXXFLAGS@,$CXXFLAGS,;t t
19917 s,@LDFLAGS@,$LDFLAGS,;t t
19918 s,@CPPFLAGS@,$CPPFLAGS,;t t
19919 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19920 s,@EXEEXT@,$EXEEXT,;t t
19921 s,@OBJEXT@,$OBJEXT,;t t
19922 s,@DEPDIR@,$DEPDIR,;t t
19923 s,@am__include@,$am__include,;t t
19924 s,@am__quote@,$am__quote,;t t
19925 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19926 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19927 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19928 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19929 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19930 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19931 s,@build@,$build,;t t
19932 s,@build_cpu@,$build_cpu,;t t
19933 s,@build_vendor@,$build_vendor,;t t
19934 s,@build_os@,$build_os,;t t
19935 s,@host@,$host,;t t
19936 s,@host_cpu@,$host_cpu,;t t
19937 s,@host_vendor@,$host_vendor,;t t
19938 s,@host_os@,$host_os,;t t
19940 s,@CFLAGS@,$CFLAGS,;t t
19941 s,@ac_ct_CC@,$ac_ct_CC,;t t
19942 s,@CCDEPMODE@,$CCDEPMODE,;t t
19943 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19944 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19945 s,@EGREP@,$EGREP,;t t
19946 s,@LN_S@,$LN_S,;t t
19947 s,@ECHO@,$ECHO,;t t
19949 s,@ac_ct_AR@,$ac_ct_AR,;t t
19950 s,@RANLIB@,$RANLIB,;t t
19951 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19953 s,@CXXCPP@,$CXXCPP,;t t
19955 s,@FFLAGS@,$FFLAGS,;t t
19956 s,@ac_ct_F77@,$ac_ct_F77,;t t
19957 s,@LIBTOOL@,$LIBTOOL,;t t
19958 s,@LIBOBJS@,$LIBOBJS,;t t
19959 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19964 cat >>$CONFIG_STATUS <<\_ACEOF
19965 # Split the substitutions into bite-sized pieces for seds with
19966 # small command number limits, like on Digital OSF/1 and HP-UX.
19967 ac_max_sed_lines=48
19968 ac_sed_frag=1 # Number of current file.
19969 ac_beg=1 # First line for current file.
19970 ac_end=$ac_max_sed_lines # Line after last line for current file.
19973 while $ac_more_lines; do
19974 if test $ac_beg -gt 1; then
19975 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19977 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19979 if test ! -s $tmp/subs.frag; then
19980 ac_more_lines=false
19982 # The purpose of the label and of the branching condition is to
19983 # speed up the sed processing (if there are no `@' at all, there
19984 # is no need to browse any of the substitutions).
19985 # These are the two extra sed commands mentioned above.
19987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19988 if test -z "$ac_sed_cmds"; then
19989 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19991 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19993 ac_sed_frag=`expr $ac_sed_frag + 1`
19995 ac_end=`expr $ac_end + $ac_max_sed_lines`
19998 if test -z "$ac_sed_cmds"; then
20001 fi # test -n "$CONFIG_FILES"
20004 cat >>$CONFIG_STATUS <<\_ACEOF
20005 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20008 - | *:- | *:-:* ) # input from stdin
20010 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20011 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20012 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20014 * ) ac_file_in=$ac_file.in ;;
20017 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20018 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20020 X"$ac_file" : 'X\(//\)[^/]' \| \
20021 X"$ac_file" : 'X\(//\)$' \| \
20022 X"$ac_file" : 'X\(/\)' \| \
20023 . : '\(.\)' 2>/dev/null ||
20025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20027 /^X\(\/\/\)$/{ s//\1/; q; }
20028 /^X\(\/\).*/{ s//\1/; q; }
20030 { if $as_mkdir_p; then
20035 while test ! -d "$as_dir"; do
20036 as_dirs="$as_dir $as_dirs"
20037 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20039 X"$as_dir" : 'X\(//\)[^/]' \| \
20040 X"$as_dir" : 'X\(//\)$' \| \
20041 X"$as_dir" : 'X\(/\)' \| \
20042 . : '\(.\)' 2>/dev/null ||
20044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20046 /^X\(\/\/\)$/{ s//\1/; q; }
20047 /^X\(\/\).*/{ s//\1/; q; }
20050 test ! -n "$as_dirs" || mkdir $as_dirs
20051 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20052 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20053 { (exit 1); exit 1; }; }; }
20057 if test "$ac_dir" != .; then
20058 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20059 # A "../" for each directory in $ac_dir_suffix.
20060 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20062 ac_dir_suffix= ac_top_builddir=
20066 .) # No --srcdir option. We are building in place.
20068 if test -z "$ac_top_builddir"; then
20071 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20073 [\\/]* | ?:[\\/]* ) # Absolute path.
20074 ac_srcdir=$srcdir$ac_dir_suffix;
20075 ac_top_srcdir=$srcdir ;;
20076 *) # Relative path.
20077 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20078 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20081 # Do not use `cd foo && pwd` to compute absolute paths, because
20082 # the directories may not exist.
20084 .) ac_abs_builddir="$ac_dir";;
20087 .) ac_abs_builddir=`pwd`;;
20088 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20089 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20092 case $ac_abs_builddir in
20093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20095 case ${ac_top_builddir}. in
20096 .) ac_abs_top_builddir=$ac_abs_builddir;;
20097 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20098 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20101 case $ac_abs_builddir in
20102 .) ac_abs_srcdir=$ac_srcdir;;
20105 .) ac_abs_srcdir=$ac_abs_builddir;;
20106 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20107 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20110 case $ac_abs_builddir in
20111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20113 case $ac_top_srcdir in
20114 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20115 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20116 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20123 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20126 if test x"$ac_file" != x-; then
20127 { echo "$as_me:$LINENO: creating $ac_file" >&5
20128 echo "$as_me: creating $ac_file" >&6;}
20131 # Let's still pretend it is `configure' which instantiates (i.e., don't
20132 # use $as_me), people would be surprised to read:
20133 # /* config.h. Generated by config.status. */
20134 if test x"$ac_file" = x-; then
20137 configure_input="$ac_file. "
20139 configure_input=$configure_input"Generated from `echo $ac_file_in |
20140 sed 's,.*/,,'` by configure."
20142 # First look for the input files in the build tree, otherwise in the
20144 ac_file_inputs=`IFS=:
20145 for f in $ac_file_in; do
20147 -) echo $tmp/stdin ;;
20149 # Absolute (can't be DOS-style, as IFS=:)
20150 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20151 echo "$as_me: error: cannot find input file: $f" >&2;}
20152 { (exit 1); exit 1; }; }
20155 if test -f "$f"; then
20158 elif test -f "$srcdir/$f"; then
20163 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20164 echo "$as_me: error: cannot find input file: $f" >&2;}
20165 { (exit 1); exit 1; }; }
20168 done` || { (exit 1); exit 1; }
20170 cat >>$CONFIG_STATUS <<_ACEOF
20174 cat >>$CONFIG_STATUS <<\_ACEOF
20176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20177 s,@configure_input@,$configure_input,;t t
20178 s,@srcdir@,$ac_srcdir,;t t
20179 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20180 s,@top_srcdir@,$ac_top_srcdir,;t t
20181 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20182 s,@builddir@,$ac_builddir,;t t
20183 s,@abs_builddir@,$ac_abs_builddir,;t t
20184 s,@top_builddir@,$ac_top_builddir,;t t
20185 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20186 s,@INSTALL@,$ac_INSTALL,;t t
20187 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20189 if test x"$ac_file" != x-; then
20190 mv $tmp/out $ac_file
20198 cat >>$CONFIG_STATUS <<\_ACEOF
20201 # CONFIG_HEADER section.
20204 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20205 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20207 # ac_d sets the value in "#define NAME VALUE" lines.
20208 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20209 ac_dB='[ ].*$,\1#\2'
20212 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20213 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20214 ac_uB='$,\1#\2define\3'
20218 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20219 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20221 - | *:- | *:-:* ) # input from stdin
20223 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20225 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20226 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20227 * ) ac_file_in=$ac_file.in ;;
20230 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20231 echo "$as_me: creating $ac_file" >&6;}
20233 # First look for the input files in the build tree, otherwise in the
20235 ac_file_inputs=`IFS=:
20236 for f in $ac_file_in; do
20238 -) echo $tmp/stdin ;;
20240 # Absolute (can't be DOS-style, as IFS=:)
20241 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20242 echo "$as_me: error: cannot find input file: $f" >&2;}
20243 { (exit 1); exit 1; }; }
20244 # Do quote $f, to prevent DOS paths from being IFS'd.
20247 if test -f "$f"; then
20250 elif test -f "$srcdir/$f"; then
20255 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20256 echo "$as_me: error: cannot find input file: $f" >&2;}
20257 { (exit 1); exit 1; }; }
20260 done` || { (exit 1); exit 1; }
20261 # Remove the trailing spaces.
20262 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20266 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20267 # `conftest.undefs', that substitutes the proper values into
20268 # config.h.in to produce config.h. The first handles `#define'
20269 # templates, and the second `#undef' templates.
20270 # And first: Protect against being on the right side of a sed subst in
20271 # config.status. Protect against being in an unquoted here document
20272 # in config.status.
20273 rm -f conftest.defines conftest.undefs
20274 # Using a here document instead of a string reduces the quoting nightmare.
20275 # Putting comments in sed scripts is not portable.
20277 # `end' is used to avoid that the second main sed command (meant for
20278 # 0-ary CPP macros) applies to n-ary macro definitions.
20279 # See the Autoconf documentation for `clear'.
20280 cat >confdef2sed.sed <<\_ACEOF
20285 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20287 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20290 # If some macros were called several times there might be several times
20291 # the same #defines, which is useless. Nevertheless, we may not want to
20292 # sort them, since we want the *last* AC-DEFINE to be honored.
20293 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20294 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20295 rm -f confdef2sed.sed
20297 # This sed command replaces #undef with comments. This is necessary, for
20298 # example, in the case of _POSIX_SOURCE, which is predefined and required
20299 # on some systems where configure will not decide to define it.
20300 cat >>conftest.undefs <<\_ACEOF
20301 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20304 # Break up conftest.defines because some shells have a limit on the size
20305 # of here documents, and old seds have small limits too (100 cmds).
20306 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20307 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20308 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20309 echo ' :' >>$CONFIG_STATUS
20310 rm -f conftest.tail
20311 while grep . conftest.defines >/dev/null
20313 # Write a limited-size here document to $tmp/defines.sed.
20314 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20315 # Speed up: don't consider the non `#define' lines.
20316 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20317 # Work around the forget-to-reset-the-flag bug.
20318 echo 't clr' >>$CONFIG_STATUS
20319 echo ': clr' >>$CONFIG_STATUS
20320 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20322 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20324 mv $tmp/out $tmp/in
20326 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20327 rm -f conftest.defines
20328 mv conftest.tail conftest.defines
20330 rm -f conftest.defines
20331 echo ' fi # grep' >>$CONFIG_STATUS
20332 echo >>$CONFIG_STATUS
20334 # Break up conftest.undefs because some shells have a limit on the size
20335 # of here documents, and old seds have small limits too (100 cmds).
20336 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20337 rm -f conftest.tail
20338 while grep . conftest.undefs >/dev/null
20340 # Write a limited-size here document to $tmp/undefs.sed.
20341 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20342 # Speed up: don't consider the non `#undef'
20343 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20344 # Work around the forget-to-reset-the-flag bug.
20345 echo 't clr' >>$CONFIG_STATUS
20346 echo ': clr' >>$CONFIG_STATUS
20347 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20349 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20351 mv $tmp/out $tmp/in
20353 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20354 rm -f conftest.undefs
20355 mv conftest.tail conftest.undefs
20357 rm -f conftest.undefs
20359 cat >>$CONFIG_STATUS <<\_ACEOF
20360 # Let's still pretend it is `configure' which instantiates (i.e., don't
20361 # use $as_me), people would be surprised to read:
20362 # /* config.h. Generated by config.status. */
20363 if test x"$ac_file" = x-; then
20364 echo "/* Generated by configure. */" >$tmp/config.h
20366 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20368 cat $tmp/in >>$tmp/config.h
20370 if test x"$ac_file" != x-; then
20371 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20372 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20373 echo "$as_me: $ac_file is unchanged" >&6;}
20375 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20377 X"$ac_file" : 'X\(//\)[^/]' \| \
20378 X"$ac_file" : 'X\(//\)$' \| \
20379 X"$ac_file" : 'X\(/\)' \| \
20380 . : '\(.\)' 2>/dev/null ||
20382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20384 /^X\(\/\/\)$/{ s//\1/; q; }
20385 /^X\(\/\).*/{ s//\1/; q; }
20387 { if $as_mkdir_p; then
20392 while test ! -d "$as_dir"; do
20393 as_dirs="$as_dir $as_dirs"
20394 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20396 X"$as_dir" : 'X\(//\)[^/]' \| \
20397 X"$as_dir" : 'X\(//\)$' \| \
20398 X"$as_dir" : 'X\(/\)' \| \
20399 . : '\(.\)' 2>/dev/null ||
20401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20403 /^X\(\/\/\)$/{ s//\1/; q; }
20404 /^X\(\/\).*/{ s//\1/; q; }
20407 test ! -n "$as_dirs" || mkdir $as_dirs
20408 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20409 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20410 { (exit 1); exit 1; }; }; }
20413 mv $tmp/config.h $ac_file
20417 rm -f $tmp/config.h
20419 # Compute $ac_file's index in $config_headers.
20421 for _am_header in $config_headers :; do
20422 case $_am_header in
20423 $ac_file | $ac_file:* )
20426 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20429 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20430 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20431 X$ac_file : 'X\(//\)[^/]' \| \
20432 X$ac_file : 'X\(//\)$' \| \
20433 X$ac_file : 'X\(/\)' \| \
20434 . : '\(.\)' 2>/dev/null ||
20436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20438 /^X\(\/\/\)$/{ s//\1/; q; }
20439 /^X\(\/\).*/{ s//\1/; q; }
20440 s/.*/./; q'`/stamp-h$_am_stamp_count
20443 cat >>$CONFIG_STATUS <<\_ACEOF
20446 # CONFIG_COMMANDS section.
20448 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20449 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20450 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20451 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20452 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20453 X"$ac_dest" : 'X\(//\)[^/]' \| \
20454 X"$ac_dest" : 'X\(//\)$' \| \
20455 X"$ac_dest" : 'X\(/\)' \| \
20456 . : '\(.\)' 2>/dev/null ||
20458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20460 /^X\(\/\/\)$/{ s//\1/; q; }
20461 /^X\(\/\).*/{ s//\1/; q; }
20463 { if $as_mkdir_p; then
20468 while test ! -d "$as_dir"; do
20469 as_dirs="$as_dir $as_dirs"
20470 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20472 X"$as_dir" : 'X\(//\)[^/]' \| \
20473 X"$as_dir" : 'X\(//\)$' \| \
20474 X"$as_dir" : 'X\(/\)' \| \
20475 . : '\(.\)' 2>/dev/null ||
20477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20479 /^X\(\/\/\)$/{ s//\1/; q; }
20480 /^X\(\/\).*/{ s//\1/; q; }
20483 test ! -n "$as_dirs" || mkdir $as_dirs
20484 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20485 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20486 { (exit 1); exit 1; }; }; }
20490 if test "$ac_dir" != .; then
20491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20492 # A "../" for each directory in $ac_dir_suffix.
20493 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20495 ac_dir_suffix= ac_top_builddir=
20499 .) # No --srcdir option. We are building in place.
20501 if test -z "$ac_top_builddir"; then
20504 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20506 [\\/]* | ?:[\\/]* ) # Absolute path.
20507 ac_srcdir=$srcdir$ac_dir_suffix;
20508 ac_top_srcdir=$srcdir ;;
20509 *) # Relative path.
20510 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20511 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20514 # Do not use `cd foo && pwd` to compute absolute paths, because
20515 # the directories may not exist.
20517 .) ac_abs_builddir="$ac_dir";;
20520 .) ac_abs_builddir=`pwd`;;
20521 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20522 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20525 case $ac_abs_builddir in
20526 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20528 case ${ac_top_builddir}. in
20529 .) ac_abs_top_builddir=$ac_abs_builddir;;
20530 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20531 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20534 case $ac_abs_builddir in
20535 .) ac_abs_srcdir=$ac_srcdir;;
20538 .) ac_abs_srcdir=$ac_abs_builddir;;
20539 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20540 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20543 case $ac_abs_builddir in
20544 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20546 case $ac_top_srcdir in
20547 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20548 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20549 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20554 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20555 echo "$as_me: executing $ac_dest commands" >&6;}
20557 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20558 # Strip MF so we end up with the name of the file.
20559 mf=`echo "$mf" | sed -e 's/:.*$//'`
20560 # Check whether this is an Automake generated Makefile or not.
20561 # We used to match only the files named `Makefile.in', but
20562 # some people rename them; so instead we look at the file content.
20563 # Grep'ing the first line is not enough: some people post-process
20564 # each Makefile.in and add a new line on top of each file to say so.
20565 # So let's grep whole file.
20566 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20567 dirpart=`(dirname "$mf") 2>/dev/null ||
20568 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20569 X"$mf" : 'X\(//\)[^/]' \| \
20570 X"$mf" : 'X\(//\)$' \| \
20571 X"$mf" : 'X\(/\)' \| \
20572 . : '\(.\)' 2>/dev/null ||
20574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20576 /^X\(\/\/\)$/{ s//\1/; q; }
20577 /^X\(\/\).*/{ s//\1/; q; }
20582 # Extract the definition of DEPDIR, am__include, and am__quote
20583 # from the Makefile without running `make'.
20584 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20585 test -z "$DEPDIR" && continue
20586 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20587 test -z "am__include" && continue
20588 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20589 # When using ansi2knr, U may be empty or an underscore; expand it
20590 U=`sed -n 's/^U = //p' < "$mf"`
20591 # Find all dependency output files, they are included files with
20592 # $(DEPDIR) in their names. We invoke sed twice because it is the
20593 # simplest approach to changing $(DEPDIR) to its actual value in the
20595 for file in `sed -n "
20596 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20597 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20598 # Make sure the directory exists.
20599 test -f "$dirpart/$file" && continue
20600 fdir=`(dirname "$file") 2>/dev/null ||
20601 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20602 X"$file" : 'X\(//\)[^/]' \| \
20603 X"$file" : 'X\(//\)$' \| \
20604 X"$file" : 'X\(/\)' \| \
20605 . : '\(.\)' 2>/dev/null ||
20607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20609 /^X\(\/\/\)$/{ s//\1/; q; }
20610 /^X\(\/\).*/{ s//\1/; q; }
20612 { if $as_mkdir_p; then
20613 mkdir -p $dirpart/$fdir
20615 as_dir=$dirpart/$fdir
20617 while test ! -d "$as_dir"; do
20618 as_dirs="$as_dir $as_dirs"
20619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20621 X"$as_dir" : 'X\(//\)[^/]' \| \
20622 X"$as_dir" : 'X\(//\)$' \| \
20623 X"$as_dir" : 'X\(/\)' \| \
20624 . : '\(.\)' 2>/dev/null ||
20626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20628 /^X\(\/\/\)$/{ s//\1/; q; }
20629 /^X\(\/\).*/{ s//\1/; q; }
20632 test ! -n "$as_dirs" || mkdir $as_dirs
20633 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20634 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20635 { (exit 1); exit 1; }; }; }
20637 # echo "creating $dirpart/$file"
20638 echo '# dummy' > "$dirpart/$file"
20646 cat >>$CONFIG_STATUS <<\_ACEOF
20648 { (exit 0); exit 0; }
20650 chmod +x $CONFIG_STATUS
20651 ac_clean_files=$ac_clean_files_save
20654 # configure is writing to config.log, and then calls config.status.
20655 # config.status does its own redirection, appending to config.log.
20656 # Unfortunately, on DOS this fails, as config.log is still kept open
20657 # by configure, so config.status won't be able to write to it; its
20658 # output is simply discarded. So we exec the FD to /dev/null,
20659 # effectively closing config.log, so it can be properly (re)opened and
20660 # appended to by config.status. When coming back to configure, we
20661 # need to make the FD available again.
20662 if test "$no_create" != yes; then
20664 ac_config_status_args=
20665 test "$silent" = yes &&
20666 ac_config_status_args="$ac_config_status_args --quiet"
20668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20671 # would make configure fail if this is the last instruction.
20672 $ac_cs_success || { (exit 1); exit 1; }