2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='libltdl'
425 PACKAGE_TARNAME='libltdl'
426 PACKAGE_VERSION='1.2'
427 PACKAGE_STRING='libltdl 1.2'
428 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
430 ac_unique_file="ltdl.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of libltdl 1.2:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing) to the casual installer
1032 --enable-multilib build many library versions (default)
1033 --disable-dependency-tracking speeds up one-time build
1034 --enable-dependency-tracking do not reject slow dependency extractors
1035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-ltdl-install install libltdl
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1051 include additional configurations [automatic]
1053 Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1061 CXX C++ compiler command
1062 CXXFLAGS C++ compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1070 Report bugs to <bug-libtool@gnu.org>.
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 ac_dir_suffix= ac_top_builddir=
1090 .) # No --srcdir option. We are building in place.
1092 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1108 .) ac_abs_builddir="$ac_dir";;
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1155 $ac_configure --help
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1166 libltdl configure 1.2
1167 generated by GNU Autoconf 2.59
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1180 It was created by libltdl $as_me 1.2, which was
1181 generated by GNU Autoconf 2.59. Invocation command line was
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1240 ac_must_keep_next=false
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269 -* ) ac_must_keep_next=true ;;
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log. We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1298 # The following way of writing the cache mishandles newlines in values,
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1321 for ac_var in $ac_subst_vars
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1328 if test -n "$ac_subst_files"; then
1335 for ac_var in $ac_subst_files
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -s confdefs.h; then
1350 sed "/^$/d" confdefs.h | sort
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361 for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 # Predefined preprocessor variables.
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407 for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1416 if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1433 # Check that the precious variables saved in the cache have kept the same
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 # differences in whitespace do not lead to failure.
1455 ac_old_val_w=`echo x $ac_old_val`
1456 ac_new_val_w=`echo x $ac_new_val`
1457 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1458 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1459 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1460 ac_cache_corrupted=:
1462 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1463 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1464 eval $ac_var=\$ac_old_val
1466 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1467 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1468 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1469 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485 if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527 ## GCJ LOCAL: gcc tree uses maintainer mode.
1528 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1529 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1530 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1531 if test "${enable_maintainer_mode+set}" = set; then
1532 enableval="$enable_maintainer_mode"
1533 USE_MAINTAINER_MODE=$enableval
1535 USE_MAINTAINER_MODE=no
1537 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1538 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1541 if test $USE_MAINTAINER_MODE = yes; then
1542 MAINTAINER_MODE_TRUE=
1543 MAINTAINER_MODE_FALSE='#'
1545 MAINTAINER_MODE_TRUE='#'
1546 MAINTAINER_MODE_FALSE=
1549 MAINT=$MAINTAINER_MODE_TRUE
1553 # Default to --enable-multilib
1554 # Check whether --enable-multilib or --disable-multilib was given.
1555 if test "${enable_multilib+set}" = set; then
1556 enableval="$enable_multilib"
1557 case "$enableval" in
1558 yes) multilib=yes ;;
1560 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1561 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1562 { (exit 1); exit 1; }; } ;;
1568 # We may get other options which we leave undocumented:
1569 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1570 # See config-ml.in if you want the gory details.
1572 if test "$srcdir" = "."; then
1573 if test "$with_target_subdir" != "."; then
1574 multi_basedir="$srcdir/$with_multisrctop../../.."
1576 multi_basedir="$srcdir/$with_multisrctop../.."
1579 multi_basedir="$srcdir/../.."
1583 # Even if the default multilib is not a cross compilation,
1584 # it may be that some of the other multilibs are.
1585 if test $cross_compiling = no && test $multilib = yes \
1586 && test "x${with_multisubdir}" != x ; then
1587 cross_compiling=maybe
1590 ac_config_commands="$ac_config_commands default-1"
1593 ## ------------------------------- ##
1594 ## Libltdl specific configuration. ##
1595 ## ------------------------------- ##
1598 for ac_dir in . $srcdir/.; do
1599 if test -f $ac_dir/install-sh; then
1601 ac_install_sh="$ac_aux_dir/install-sh -c"
1603 elif test -f $ac_dir/install.sh; then
1605 ac_install_sh="$ac_aux_dir/install.sh -c"
1607 elif test -f $ac_dir/shtool; then
1609 ac_install_sh="$ac_aux_dir/shtool install -c"
1613 if test -z "$ac_aux_dir"; then
1614 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1615 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1616 { (exit 1); exit 1; }; }
1618 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1619 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1620 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1623 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1624 if test -f ${srcdir}/ltmain.sh; then
1625 # if libltdl is libtoolized, it is assumed to be stand-alone and
1626 # installed unless the command line overrides it (tested above)
1627 enable_ltdl_install=yes
1629 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1630 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1631 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1632 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1633 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1634 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1635 { (exit 1); exit 1; }; }
1640 ## ------------------------ ##
1641 ## Automake Initialisation. ##
1642 ## ------------------------ ##
1643 am__api_version="1.9"
1644 # Find a good install program. We prefer a C program (faster),
1645 # so one script is as good as another. But avoid the broken or
1646 # incompatible versions:
1647 # SysV /etc/install, /usr/sbin/install
1648 # SunOS /usr/etc/install
1649 # IRIX /sbin/install
1651 # AmigaOS /C/install, which installs bootblocks on floppy discs
1652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1655 # OS/2's system install, which has a completely different semantic
1656 # ./install, which can be erroneously created by make from ./install.sh.
1657 # Reject install programs that cannot install multiple files.
1658 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1659 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1660 if test -z "$INSTALL"; then
1661 if test "${ac_cv_path_install+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir=.
1669 # Account for people who put trailing slashes in PATH elements.
1671 ./ | .// | /cC/* | \
1672 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1673 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1676 # OSF1 and SCO ODT 3.0 have their own names for install.
1677 # Don't use installbsd from OSF since it installs stuff as root
1679 for ac_prog in ginstall scoinst install; do
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1682 if test $ac_prog = install &&
1683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1684 # AIX install. It has an incompatible calling convention.
1686 elif test $ac_prog = install &&
1687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688 # program-specific install script used by HP pwplus--don't use.
1691 rm -rf conftest.one conftest.two conftest.dir
1692 echo one > conftest.one
1693 echo two > conftest.two
1695 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1696 test -s conftest.one && test -s conftest.two &&
1697 test -s conftest.dir/conftest.one &&
1698 test -s conftest.dir/conftest.two
1700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1711 rm -rf conftest.one conftest.two conftest.dir
1714 if test "${ac_cv_path_install+set}" = set; then
1715 INSTALL=$ac_cv_path_install
1717 # As a last resort, use the slow shell script. Don't cache a
1718 # value for INSTALL within a source directory, because that will
1719 # break other packages using the cache if that directory is
1720 # removed, or if the value is a relative name.
1721 INSTALL=$ac_install_sh
1724 echo "$as_me:$LINENO: result: $INSTALL" >&5
1725 echo "${ECHO_T}$INSTALL" >&6
1727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1728 # It thinks the first close brace ends the variable substitution.
1729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1735 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1736 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1739 echo timestamp > conftest.file
1740 # Do `set' in a subshell so we don't clobber the current shell's
1741 # arguments. Must try -L first in case configure is actually a
1742 # symlink; some systems play weird games with the mod time of symlinks
1743 # (eg FreeBSD returns the mod time of the symlink's containing
1746 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1747 if test "$*" = "X"; then
1749 set X `ls -t $srcdir/configure conftest.file`
1752 if test "$*" != "X $srcdir/configure conftest.file" \
1753 && test "$*" != "X conftest.file $srcdir/configure"; then
1755 # If neither matched, then we have a broken ls. This can happen
1756 # if, for instance, CONFIG_SHELL is bash and it inherits a
1757 # broken ls alias from the environment. This has actually
1758 # happened. Such a system could not be considered "sane".
1759 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1760 alias in your environment" >&5
1761 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1762 alias in your environment" >&2;}
1763 { (exit 1); exit 1; }; }
1766 test "$2" = conftest.file
1772 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1773 Check your system clock" >&5
1774 echo "$as_me: error: newly created file is older than distributed files!
1775 Check your system clock" >&2;}
1776 { (exit 1); exit 1; }; }
1778 echo "$as_me:$LINENO: result: yes" >&5
1779 echo "${ECHO_T}yes" >&6
1780 test "$program_prefix" != NONE &&
1781 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1782 # Use a double $ so make ignores it.
1783 test "$program_suffix" != NONE &&
1784 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1785 # Double any \ or $. echo might interpret backslashes.
1786 # By default was `s,x,x', remove it if useless.
1787 cat <<\_ACEOF >conftest.sed
1788 s/[\\$]/&&/g;s/;s,x,x,$//
1790 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1793 # expand $ac_aux_dir to an absolute path
1794 am_aux_dir=`cd $ac_aux_dir && pwd`
1796 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1797 # Use eval to expand $SHELL
1798 if eval "$MISSING --run true"; then
1799 am_missing_run="$MISSING --run "
1802 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1803 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1806 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1807 # We used to keeping the `.' as first argument, in order to
1808 # allow $(mkdir_p) to be used without argument. As in
1809 # $(mkdir_p) $(somedir)
1810 # where $(somedir) is conditionally defined. However this is wrong
1812 # 1. if the package is installed by a user who cannot write `.'
1813 # make install will fail,
1814 # 2. the above comment should most certainly read
1815 # $(mkdir_p) $(DESTDIR)$(somedir)
1816 # so it does not work when $(somedir) is undefined and
1817 # $(DESTDIR) is not.
1818 # To support the latter case, we have to write
1819 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1820 # so the `.' trick is pointless.
1821 mkdir_p='mkdir -p --'
1823 # On NextStep and OpenStep, the `mkdir' command does not
1824 # recognize any option. It will interpret all options as
1825 # directories to create, and then abort because `.' already
1827 for d in ./-p ./--version;
1829 test -d $d && rmdir $d
1831 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1832 if test -f "$ac_aux_dir/mkinstalldirs"; then
1833 mkdir_p='$(mkinstalldirs)'
1835 mkdir_p='$(install_sh) -d'
1839 for ac_prog in gawk mawk nawk awk
1841 # Extract the first word of "$ac_prog", so it can be a program name with args.
1842 set dummy $ac_prog; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_AWK+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 if test -n "$AWK"; then
1849 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_AWK="$ac_prog"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 if test -n "$AWK"; then
1869 echo "$as_me:$LINENO: result: $AWK" >&5
1870 echo "${ECHO_T}$AWK" >&6
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1876 test -n "$AWK" && break
1879 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1880 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1881 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1882 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 cat >conftest.make <<\_ACEOF
1887 @echo 'ac_maketemp="$(MAKE)"'
1889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1890 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1891 if test -n "$ac_maketemp"; then
1892 eval ac_cv_prog_make_${ac_make}_set=yes
1894 eval ac_cv_prog_make_${ac_make}_set=no
1898 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1899 echo "$as_me:$LINENO: result: yes" >&5
1900 echo "${ECHO_T}yes" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 SET_MAKE="MAKE=${MAKE-make}"
1908 rm -rf .tst 2>/dev/null
1909 mkdir .tst 2>/dev/null
1910 if test -d .tst; then
1915 rmdir .tst 2>/dev/null
1917 # test to see if srcdir already configured
1918 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1919 test -f $srcdir/config.status; then
1920 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1921 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1922 { (exit 1); exit 1; }; }
1925 # test whether we have cygpath
1926 if test -z "$CYGPATH_W"; then
1927 if (cygpath --version) >/dev/null 2>/dev/null; then
1928 CYGPATH_W='cygpath -w'
1935 # Define the identity of the package.
1940 # Some tools Automake needs.
1942 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1951 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1954 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1956 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1958 # Installed binaries are usually stripped using `strip' when the user
1959 # run `make install-strip'. However `strip' might not be the right
1960 # tool to use in cross-compilation environments, therefore Automake
1961 # will honor the `STRIP' environment variable to overrule this program.
1962 if test "$cross_compiling" != no; then
1963 if test -n "$ac_tool_prefix"; then
1964 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1965 set dummy ${ac_tool_prefix}strip; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_STRIP+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 if test -n "$STRIP"; then
1972 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 STRIP=$ac_cv_prog_STRIP
1991 if test -n "$STRIP"; then
1992 echo "$as_me:$LINENO: result: $STRIP" >&5
1993 echo "${ECHO_T}$STRIP" >&6
1995 echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
2000 if test -z "$ac_cv_prog_STRIP"; then
2002 # Extract the first word of "strip", so it can be a program name with args.
2003 set dummy strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$ac_ct_STRIP"; then
2010 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_ac_ct_STRIP="strip"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2029 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2030 if test -n "$ac_ct_STRIP"; then
2031 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2032 echo "${ECHO_T}$ac_ct_STRIP" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2040 STRIP="$ac_cv_prog_STRIP"
2044 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2046 # We need awk for the "check" target. The system "awk" is bad on
2048 # Always define AMTAR for backward compatibility.
2050 AMTAR=${AMTAR-"${am_missing_run}tar"}
2052 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2058 ac_config_headers="$ac_config_headers config.h:config-h.in"
2062 ## ------------------ ##
2063 ## C compiler checks. ##
2064 ## ------------------ ##
2066 ac_cpp='$CPP $CPPFLAGS'
2067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070 if test -n "$ac_tool_prefix"; then
2071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$CC"; then
2079 ac_cv_prog_CC="$CC" # Let the user override the test.
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 if test -n "$CC"; then
2099 echo "$as_me:$LINENO: result: $CC" >&5
2100 echo "${ECHO_T}$CC" >&6
2102 echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2107 if test -z "$ac_cv_prog_CC"; then
2109 # Extract the first word of "gcc", so it can be a program name with args.
2110 set dummy gcc; ac_word=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test -n "$ac_ct_CC"; then
2117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126 ac_cv_prog_ac_ct_CC="gcc"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136 if test -n "$ac_ct_CC"; then
2137 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138 echo "${ECHO_T}$ac_ct_CC" >&6
2140 echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6
2149 if test -z "$CC"; then
2150 if test -n "$ac_tool_prefix"; then
2151 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2152 set dummy ${ac_tool_prefix}cc; ac_word=$2
2153 echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$CC"; then
2159 ac_cv_prog_CC="$CC" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168 ac_cv_prog_CC="${ac_tool_prefix}cc"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 if test -n "$CC"; then
2179 echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6
2182 echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6
2187 if test -z "$ac_cv_prog_CC"; then
2189 # Extract the first word of "cc", so it can be a program name with args.
2190 set dummy cc; ac_word=$2
2191 echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 if test -n "$ac_ct_CC"; then
2197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206 ac_cv_prog_ac_ct_CC="cc"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2216 if test -n "$ac_ct_CC"; then
2217 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2218 echo "${ECHO_T}$ac_ct_CC" >&6
2220 echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6
2230 if test -z "$CC"; then
2231 # Extract the first word of "cc", so it can be a program name with args.
2232 set dummy cc; ac_word=$2
2233 echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235 if test "${ac_cv_prog_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2250 ac_prog_rejected=yes
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 if test $ac_prog_rejected = yes; then
2261 # We found a bogon in the path, so make sure we never use it.
2262 set dummy $ac_cv_prog_CC
2264 if test $# != 0; then
2265 # We chose a different compiler from the bogus one.
2266 # However, it has the same basename, so the bogon will be chosen
2267 # first if we set CC to just the basename; use the full file name.
2269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2275 if test -n "$CC"; then
2276 echo "$as_me:$LINENO: result: $CC" >&5
2277 echo "${ECHO_T}$CC" >&6
2279 echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6
2284 if test -z "$CC"; then
2285 if test -n "$ac_tool_prefix"; then
2288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2290 echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2292 if test "${ac_cv_prog_CC+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 if test -n "$CC"; then
2296 ac_cv_prog_CC="$CC" # Let the user override the test.
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 if test -n "$CC"; then
2316 echo "$as_me:$LINENO: result: $CC" >&5
2317 echo "${ECHO_T}$CC" >&6
2319 echo "$as_me:$LINENO: result: no" >&5
2320 echo "${ECHO_T}no" >&6
2323 test -n "$CC" && break
2326 if test -z "$CC"; then
2330 # Extract the first word of "$ac_prog", so it can be a program name with args.
2331 set dummy $ac_prog; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347 ac_cv_prog_ac_ct_CC="$ac_prog"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6
2361 echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2365 test -n "$ac_ct_CC" && break
2374 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2375 See \`config.log' for more details." >&5
2376 echo "$as_me: error: no acceptable C compiler found in \$PATH
2377 See \`config.log' for more details." >&2;}
2378 { (exit 1); exit 1; }; }
2380 # Provide some information about the compiler.
2381 echo "$as_me:$LINENO:" \
2382 "checking for C compiler version" >&5
2383 ac_compiler=`set X $ac_compile; echo $2`
2384 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2385 (eval $ac_compiler --version </dev/null >&5) 2>&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }
2389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2390 (eval $ac_compiler -v </dev/null >&5) 2>&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }
2394 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2395 (eval $ac_compiler -V </dev/null >&5) 2>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }
2400 cat >conftest.$ac_ext <<_ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2415 ac_clean_files_save=$ac_clean_files
2416 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2417 # Try to create an executable without -o first, disregard a.out.
2418 # It will help us diagnose broken compilers, and finding out an intuition
2420 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2421 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2422 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2423 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2424 (eval $ac_link_default) 2>&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; then
2428 # Find the output, starting from the most likely. This scheme is
2429 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2432 # Be careful to initialize this variable, since it used to be cached.
2433 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2435 # b.out is created by i960 compilers.
2436 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2438 test -f "$ac_file" || continue
2440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2443 # This is the source file.
2446 # We found the default executable, but exeext='' is most
2450 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2451 # FIXME: I believe we export ac_cv_exeext for Libtool,
2452 # but it would be cool to find out if it's true. Does anybody
2453 # maintain Libtool? --akim.
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2464 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: C compiler cannot create executables
2467 See \`config.log' for more details." >&2;}
2468 { (exit 77); exit 77; }; }
2471 ac_exeext=$ac_cv_exeext
2472 echo "$as_me:$LINENO: result: $ac_file" >&5
2473 echo "${ECHO_T}$ac_file" >&6
2475 # Check the compiler produces executables we can run. If not, either
2476 # the compiler is broken, or we cross compile.
2477 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2478 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2479 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2480 # If not cross compiling, check that we can run a simple program.
2481 if test "$cross_compiling" != yes; then
2482 if { ac_try='./$ac_file'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2490 if test "$cross_compiling" = maybe; then
2493 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2494 If you meant to cross compile, use \`--host'.
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: cannot run C compiled programs.
2497 If you meant to cross compile, use \`--host'.
2498 See \`config.log' for more details." >&2;}
2499 { (exit 1); exit 1; }; }
2503 echo "$as_me:$LINENO: result: yes" >&5
2504 echo "${ECHO_T}yes" >&6
2506 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2507 ac_clean_files=$ac_clean_files_save
2508 # Check the compiler produces executables we can run. If not, either
2509 # the compiler is broken, or we cross compile.
2510 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2511 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2512 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2513 echo "${ECHO_T}$cross_compiling" >&6
2515 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2516 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2518 (eval $ac_link) 2>&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; then
2522 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2523 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2524 # work properly (i.e., refer to `conftest.exe'), while it won't with
2526 for ac_file in conftest.exe conftest conftest.*; do
2527 test -f "$ac_file" || continue
2529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2530 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2537 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2538 See \`config.log' for more details." >&5
2539 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2540 See \`config.log' for more details." >&2;}
2541 { (exit 1); exit 1; }; }
2544 rm -f conftest$ac_cv_exeext
2545 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2546 echo "${ECHO_T}$ac_cv_exeext" >&6
2548 rm -f conftest.$ac_ext
2549 EXEEXT=$ac_cv_exeext
2551 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2552 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2553 if test "${ac_cv_objext+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 cat >conftest.$ac_ext <<_ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2571 rm -f conftest.o conftest.obj
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; then
2577 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2580 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2588 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2589 See \`config.log' for more details." >&5
2590 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2591 See \`config.log' for more details." >&2;}
2592 { (exit 1); exit 1; }; }
2595 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2597 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2598 echo "${ECHO_T}$ac_cv_objext" >&6
2599 OBJEXT=$ac_cv_objext
2601 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2602 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2603 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 cat >conftest.$ac_ext <<_ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>conftest.er1
2628 grep -v '^ *+' conftest.er1 >conftest.err
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -z "$ac_c_werror_flag"
2634 || test ! -s conftest.err'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try='test -s conftest.$ac_objext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2657 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2659 GCC=`test $ac_compiler_gnu = yes && echo yes`
2660 ac_test_CFLAGS=${CFLAGS+set}
2661 ac_save_CFLAGS=$CFLAGS
2663 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2664 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2665 if test "${ac_cv_prog_cc_g+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 cat >conftest.$ac_ext <<_ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2683 rm -f conftest.$ac_objext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685 (eval $ac_compile) 2>conftest.er1
2687 grep -v '^ *+' conftest.er1 >conftest.err
2689 cat conftest.err >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
2692 { ac_try='test -z "$ac_c_werror_flag"
2693 || test ! -s conftest.err'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; } &&
2699 { ac_try='test -s conftest.$ac_objext'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2716 if test "$ac_test_CFLAGS" = set; then
2717 CFLAGS=$ac_save_CFLAGS
2718 elif test $ac_cv_prog_cc_g = yes; then
2719 if test "$GCC" = yes; then
2725 if test "$GCC" = yes; then
2731 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2732 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2733 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 ac_cv_prog_cc_stdc=no
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2746 #include <sys/types.h>
2747 #include <sys/stat.h>
2748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2749 struct buf { int x; };
2750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2751 static char *e (p, i)
2757 static char *f (char * (*g) (char **, int), char **p, ...)
2762 s = g (p, va_arg (v,int));
2767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2768 function prototypes and stuff, but not '\xHH' hex character constants.
2769 These don't provoke an error unfortunately, instead are silently treated
2770 as 'x'. The following induces an error, until -std1 is added to get
2771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2772 array size at least. It's necessary to write '\x00'==0 to get something
2773 that's true only with -std1. */
2774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2776 int test (int i, double x);
2777 struct s1 {int (*f) (int a);};
2778 struct s2 {int (*f) (double a);};
2779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2790 # Don't try gcc -ansi; that turns off useful extensions and
2791 # breaks some systems' header files.
2792 # AIX -qlanglvl=ansi
2793 # Ultrix and OSF/1 -std1
2794 # HP-UX 10.20 and later -Ae
2795 # HP-UX older versions -Aa -D_HPUX_SOURCE
2796 # SVR4 -Xc -D__EXTENSIONS__
2797 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2799 CC="$ac_save_CC $ac_arg"
2800 rm -f conftest.$ac_objext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802 (eval $ac_compile) 2>conftest.er1
2804 grep -v '^ *+' conftest.er1 >conftest.err
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try='test -z "$ac_c_werror_flag"
2810 || test ! -s conftest.err'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; } &&
2816 { ac_try='test -s conftest.$ac_objext'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 ac_cv_prog_cc_stdc=$ac_arg
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2829 rm -f conftest.err conftest.$ac_objext
2831 rm -f conftest.$ac_ext conftest.$ac_objext
2836 case "x$ac_cv_prog_cc_stdc" in
2838 echo "$as_me:$LINENO: result: none needed" >&5
2839 echo "${ECHO_T}none needed" >&6 ;;
2841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2843 CC="$CC $ac_cv_prog_cc_stdc" ;;
2846 # Some people use a C++ compiler to compile C. Since we use `exit',
2847 # in C++ we need to declare it. In case someone uses the same compiler
2848 # for both compiling C and C++ we need to have the C++ compiler decide
2849 # the declaration of exit, since it's the most demanding environment.
2850 cat >conftest.$ac_ext <<_ACEOF
2855 rm -f conftest.$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>conftest.er1
2859 grep -v '^ *+' conftest.er1 >conftest.err
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -z "$ac_c_werror_flag"
2865 || test ! -s conftest.err'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; } &&
2871 { ac_try='test -s conftest.$ac_objext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 for ac_declaration in \
2879 'extern "C" void std::exit (int) throw (); using std::exit;' \
2880 'extern "C" void std::exit (int); using std::exit;' \
2881 'extern "C" void exit (int) throw ();' \
2882 'extern "C" void exit (int);' \
2885 cat >conftest.$ac_ext <<_ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903 (eval $ac_compile) 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try='test -z "$ac_c_werror_flag"
2911 || test ! -s conftest.err'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2946 rm -f conftest.$ac_objext
2947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948 (eval $ac_compile) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } &&
2955 { ac_try='test -z "$ac_c_werror_flag"
2956 || test ! -s conftest.err'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2977 if test -n "$ac_declaration"; then
2978 echo '#ifdef __cplusplus' >>confdefs.h
2979 echo $ac_declaration >>confdefs.h
2980 echo '#endif' >>confdefs.h
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 DEPDIR="${am__leading_dot}deps"
2996 ac_config_commands="$ac_config_commands depfiles"
2999 am_make=${MAKE-make}
3000 cat > confinc << 'END'
3005 # If we don't find an include directive, just comment out the code.
3006 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3007 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3011 # First try GNU make style include.
3012 echo "include confinc" > confmf
3013 # We grep out `Entering directory' and `Leaving directory'
3014 # messages which can occur if `w' ends up in MAKEFLAGS.
3015 # In particular we don't look at `^make:' because GNU make might
3016 # be invoked under some other name (usually "gmake"), in which
3017 # case it prints its new name instead of `make'.
3018 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3023 # Now try BSD make style include.
3024 if test "$am__include" = "#"; then
3025 echo '.include "confinc"' > confmf
3026 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3027 am__include=.include
3034 echo "$as_me:$LINENO: result: $_am_result" >&5
3035 echo "${ECHO_T}$_am_result" >&6
3036 rm -f confinc confmf
3038 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3039 if test "${enable_dependency_tracking+set}" = set; then
3040 enableval="$enable_dependency_tracking"
3043 if test "x$enable_dependency_tracking" != xno; then
3044 am_depcomp="$ac_aux_dir/depcomp"
3049 if test "x$enable_dependency_tracking" != xno; then
3060 depcc="$CC" am_compiler_list=
3062 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3063 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3064 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3068 # We make a subdir and do the tests there. Otherwise we can end up
3069 # making bogus files that we don't know about and never remove. For
3070 # instance it was reported that on HP-UX the gcc test will end up
3071 # making a dummy file named `D' -- because `-MD' means `put the output
3074 # Copy depcomp to subdir because otherwise we won't find it if we're
3075 # using a relative directory.
3076 cp "$am_depcomp" conftest.dir
3078 # We will build objects and dependencies in a subdirectory because
3079 # it helps to detect inapplicable dependency modes. For instance
3080 # both Tru64's cc and ICC support -MD to output dependencies as a
3081 # side effect of compilation, but ICC will put the dependencies in
3082 # the current directory while Tru64 will put them in the object
3086 am_cv_CC_dependencies_compiler_type=none
3087 if test "$am_compiler_list" = ""; then
3088 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3090 for depmode in $am_compiler_list; do
3091 # Setup a source with many dependencies, because some compilers
3092 # like to wrap large dependency lists on column 80 (with \), and
3093 # we should not choose a depcomp mode which is confused by this.
3095 # We need to recreate these files for each test, as the compiler may
3096 # overwrite some of them when testing with obscure command lines.
3097 # This happens at least with the AIX C compiler.
3099 for i in 1 2 3 4 5 6; do
3100 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3101 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3102 # Solaris 8's {/usr,}/bin/sh.
3103 touch sub/conftst$i.h
3105 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3109 # after this tag, mechanisms are not by side-effect, so they'll
3110 # only be used when explicitly requested
3111 if test "x$enable_dependency_tracking" = xyes; then
3119 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3120 # mode. It turns out that the SunPro C++ compiler does not properly
3121 # handle `-M -o', and we need to detect this.
3122 if depmode=$depmode \
3123 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3124 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3125 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3126 >/dev/null 2>conftest.err &&
3127 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3128 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3129 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3130 # icc doesn't choke on unknown options, it will just issue warnings
3131 # or remarks (even with -Werror). So we grep stderr for any message
3132 # that says an option was ignored or not supported.
3133 # When given -MP, icc 7.0 and 7.1 complain thusly:
3134 # icc: Command line warning: ignoring option '-M'; no argument required
3135 # The diagnosis changed in icc 8.0:
3136 # icc: Command line remark: option '-MP' not supported
3137 if (grep 'ignoring option' conftest.err ||
3138 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3139 am_cv_CC_dependencies_compiler_type=$depmode
3148 am_cv_CC_dependencies_compiler_type=none
3152 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3153 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3154 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3159 test "x$enable_dependency_tracking" != xno \
3160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3162 am__fastdepCC_FALSE='#'
3164 am__fastdepCC_TRUE='#'
3165 am__fastdepCC_FALSE=
3170 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3171 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3172 if test "${ac_cv_c_const+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3185 /* FIXME: Include the comments suggested by Paul. */
3187 /* Ultrix mips cc rejects this. */
3188 typedef int charset[2];
3190 /* SunOS 4.1.1 cc rejects this. */
3191 char const *const *ccp;
3193 /* NEC SVR4.0.2 mips cc rejects this. */
3194 struct point {int x, y;};
3195 static struct point const zero = {0,0};
3196 /* AIX XL C 1.02.0.0 rejects this.
3197 It does not let you subtract one const X* pointer from another in
3198 an arm of an if-expression whose if-part is not a constant
3200 const char *g = "string";
3201 ccp = &g + (g ? g-g : 0);
3202 /* HPUX 7.0 cc rejects these. */
3205 ccp = (char const *const *) p;
3206 { /* SCO 3.2v4 cc rejects this. */
3208 char const *s = 0 ? (char *) 0 : (char const *) 0;
3212 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3214 const int *foo = &x[0];
3217 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3218 typedef const int *iptr;
3222 { /* AIX XL C 1.02.0.0 rejects this saying
3223 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3224 struct s { int j; const int *ap[3]; };
3225 struct s *b; b->j = 5;
3227 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3236 rm -f conftest.$ac_objext
3237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238 (eval $ac_compile) 2>conftest.er1
3240 grep -v '^ *+' conftest.er1 >conftest.err
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -z "$ac_c_werror_flag"
3246 || test ! -s conftest.err'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3267 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3268 echo "${ECHO_T}$ac_cv_c_const" >&6
3269 if test $ac_cv_c_const = no; then
3271 cat >>confdefs.h <<\_ACEOF
3277 echo "$as_me:$LINENO: checking for inline" >&5
3278 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3279 if test "${ac_cv_c_inline+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 for ac_kw in inline __inline__ __inline; do
3284 cat >conftest.$ac_ext <<_ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3292 static $ac_kw foo_t static_foo () {return 0; }
3293 $ac_kw foo_t foo () {return 0; }
3297 rm -f conftest.$ac_objext
3298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3299 (eval $ac_compile) 2>conftest.er1
3301 grep -v '^ *+' conftest.er1 >conftest.err
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } &&
3306 { ac_try='test -z "$ac_c_werror_flag"
3307 || test ! -s conftest.err'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; } &&
3313 { ac_try='test -s conftest.$ac_objext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_cv_c_inline=$ac_kw; break
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3329 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3330 echo "${ECHO_T}$ac_cv_c_inline" >&6
3333 case $ac_cv_c_inline in
3336 case $ac_cv_c_inline in
3338 *) ac_val=$ac_cv_c_inline;;
3340 cat >>confdefs.h <<_ACEOF
3342 #define inline $ac_val
3350 ## ----------------------- ##
3351 ## Libtool initialisation. ##
3352 ## ----------------------- ##
3355 # Check whether --enable-shared or --disable-shared was given.
3356 if test "${enable_shared+set}" = set; then
3357 enableval="$enable_shared"
3358 p=${PACKAGE-default}
3360 yes) enable_shared=yes ;;
3361 no) enable_shared=no ;;
3364 # Look at the argument we got. We use all the common list separators.
3365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3366 for pkg in $enableval; do
3368 if test "X$pkg" = "X$p"; then
3379 # Check whether --enable-static or --disable-static was given.
3380 if test "${enable_static+set}" = set; then
3381 enableval="$enable_static"
3382 p=${PACKAGE-default}
3384 yes) enable_static=yes ;;
3385 no) enable_static=no ;;
3388 # Look at the argument we got. We use all the common list separators.
3389 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3390 for pkg in $enableval; do
3392 if test "X$pkg" = "X$p"; then
3403 # Check whether --enable-fast-install or --disable-fast-install was given.
3404 if test "${enable_fast_install+set}" = set; then
3405 enableval="$enable_fast_install"
3406 p=${PACKAGE-default}
3408 yes) enable_fast_install=yes ;;
3409 no) enable_fast_install=no ;;
3411 enable_fast_install=no
3412 # Look at the argument we got. We use all the common list separators.
3413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3414 for pkg in $enableval; do
3416 if test "X$pkg" = "X$p"; then
3417 enable_fast_install=yes
3424 enable_fast_install=yes
3427 # Make sure we can run config.sub.
3428 $ac_config_sub sun4 >/dev/null 2>&1 ||
3429 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3430 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3431 { (exit 1); exit 1; }; }
3433 echo "$as_me:$LINENO: checking build system type" >&5
3434 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3435 if test "${ac_cv_build+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 ac_cv_build_alias=$build_alias
3439 test -z "$ac_cv_build_alias" &&
3440 ac_cv_build_alias=`$ac_config_guess`
3441 test -z "$ac_cv_build_alias" &&
3442 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3444 { (exit 1); exit 1; }; }
3445 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3447 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3448 { (exit 1); exit 1; }; }
3451 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3452 echo "${ECHO_T}$ac_cv_build" >&6
3454 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3455 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3456 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3459 echo "$as_me:$LINENO: checking host system type" >&5
3460 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3461 if test "${ac_cv_host+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 ac_cv_host_alias=$host_alias
3465 test -z "$ac_cv_host_alias" &&
3466 ac_cv_host_alias=$ac_cv_build_alias
3467 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3469 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3470 { (exit 1); exit 1; }; }
3473 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3474 echo "${ECHO_T}$ac_cv_host" >&6
3476 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3477 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3478 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3481 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3482 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3483 if test "${lt_cv_path_SED+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 # Loop through the user's path and test for sed and gsed.
3487 # Then use that list of sed's as ones to test for truncation.
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 test -z "$as_dir" && as_dir=.
3493 for lt_ac_prog in sed gsed; do
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3496 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3503 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3504 # along with /bin/sed that truncates output.
3505 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3506 test ! -f $lt_ac_sed && continue
3507 cat /dev/null > conftest.in
3509 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3510 # Check for GNU sed and select it if it is found.
3511 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3512 lt_cv_path_SED=$lt_ac_sed
3516 cat conftest.in conftest.in >conftest.tmp
3517 mv conftest.tmp conftest.in
3518 cp conftest.in conftest.nl
3520 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3521 cmp -s conftest.out conftest.nl || break
3522 # 10000 chars as input seems more than enough
3523 test $lt_ac_count -gt 10 && break
3524 lt_ac_count=`expr $lt_ac_count + 1`
3525 if test $lt_ac_count -gt $lt_ac_max; then
3526 lt_ac_max=$lt_ac_count
3527 lt_cv_path_SED=$lt_ac_sed
3535 echo "$as_me:$LINENO: result: $SED" >&5
3536 echo "${ECHO_T}$SED" >&6
3538 echo "$as_me:$LINENO: checking for egrep" >&5
3539 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3540 if test "${ac_cv_prog_egrep+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3544 then ac_cv_prog_egrep='grep -E'
3545 else ac_cv_prog_egrep='egrep'
3548 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3549 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3550 EGREP=$ac_cv_prog_egrep
3554 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3555 if test "${with_gnu_ld+set}" = set; then
3556 withval="$with_gnu_ld"
3557 test "$withval" = no || with_gnu_ld=yes
3562 if test "$GCC" = yes; then
3563 # Check if gcc -print-prog-name=ld gives a path.
3564 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3565 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3568 # gcc leaves a trailing carriage return which upsets mingw
3569 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3571 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3574 # Accept absolute paths.
3576 re_direlt='/[^/][^/]*/\.\./'
3577 # Canonicalize the pathname of ld
3578 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3579 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3580 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3582 test -z "$LD" && LD="$ac_prog"
3585 # If it fails, then pretend we aren't using GCC.
3589 # If it is relative, then search for the first ld in PATH.
3593 elif test "$with_gnu_ld" = yes; then
3594 echo "$as_me:$LINENO: checking for GNU ld" >&5
3595 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3597 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3598 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3600 if test "${lt_cv_path_LD+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 if test -z "$LD"; then
3604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3605 for ac_dir in $PATH; do
3607 test -z "$ac_dir" && ac_dir=.
3608 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3609 lt_cv_path_LD="$ac_dir/$ac_prog"
3610 # Check to see if the program is GNU ld. I'd rather use --version,
3611 # but apparently some GNU ld's only accept -v.
3612 # Break only if it was the GNU/non-GNU ld that we prefer.
3613 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3614 *GNU* | *'with BFD'*)
3615 test "$with_gnu_ld" != no && break
3618 test "$with_gnu_ld" != yes && break
3625 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3630 if test -n "$LD"; then
3631 echo "$as_me:$LINENO: result: $LD" >&5
3632 echo "${ECHO_T}$LD" >&6
3634 echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3637 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3638 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3639 { (exit 1); exit 1; }; }
3640 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3641 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3642 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3646 case `$LD -v 2>&1 </dev/null` in
3647 *GNU* | *'with BFD'*)
3648 lt_cv_prog_gnu_ld=yes
3651 lt_cv_prog_gnu_ld=no
3655 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3656 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3657 with_gnu_ld=$lt_cv_prog_gnu_ld
3660 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3661 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3662 if test "${lt_cv_ld_reload_flag+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 lt_cv_ld_reload_flag='-r'
3667 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3668 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3669 reload_flag=$lt_cv_ld_reload_flag
3670 case $reload_flag in
3672 *) reload_flag=" $reload_flag" ;;
3674 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3677 if test "$GCC" = yes; then
3678 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3685 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3686 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3687 if test "${lt_cv_path_NM+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 if test -n "$NM"; then
3691 # Let the user override the test.
3694 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3695 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3697 test -z "$ac_dir" && ac_dir=.
3698 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3699 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3700 # Check to see if the nm accepts a BSD-compat flag.
3701 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3702 # nm: unknown option "B" ignored
3703 # Tru64's nm complains that /dev/null is an invalid object file
3704 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3705 */dev/null* | *'Invalid file or object type'*)
3706 lt_cv_path_NM="$tmp_nm -B"
3710 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3712 lt_cv_path_NM="$tmp_nm -p"
3716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3717 continue # so that we can try to find one that supports BSD flags
3724 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3727 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3728 echo "${ECHO_T}$lt_cv_path_NM" >&6
3731 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3732 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3734 if test "$LN_S" = "ln -s"; then
3735 echo "$as_me:$LINENO: result: yes" >&5
3736 echo "${ECHO_T}yes" >&6
3738 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3739 echo "${ECHO_T}no, using $LN_S" >&6
3742 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3743 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3744 if test "${lt_cv_deplibs_check_method+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 lt_cv_file_magic_cmd='$MAGIC_CMD'
3748 lt_cv_file_magic_test_file=
3749 lt_cv_deplibs_check_method='unknown'
3750 # Need to set the preceding variable on all platforms that support
3751 # interlibrary dependencies.
3752 # 'none' -- dependencies not supported.
3753 # `unknown' -- same as none, but documents that we really don't know.
3754 # 'pass_all' -- all dependencies passed with no checks.
3755 # 'test_compile' -- check by making test program.
3756 # 'file_magic [[regex]]' -- check by looking for files in library path
3757 # which responds to the $file_magic_cmd with a given extended regex.
3758 # If you have `file' or equivalent on your system and you're not sure
3759 # whether `pass_all' will *always* work, you probably want this one.
3763 lt_cv_deplibs_check_method=pass_all
3767 lt_cv_deplibs_check_method=pass_all
3771 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3772 lt_cv_file_magic_cmd='/usr/bin/file -L'
3773 lt_cv_file_magic_test_file=/shlib/libc.so
3777 # func_win32_libid is a shell function defined in ltmain.sh
3778 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3779 lt_cv_file_magic_cmd='func_win32_libid'
3783 # Base MSYS/MinGW do not provide the 'file' command needed by
3784 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3785 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3786 lt_cv_file_magic_cmd='$OBJDUMP -f'
3789 darwin* | rhapsody*)
3790 lt_cv_deplibs_check_method=pass_all
3793 freebsd* | kfreebsd*-gnu | dragonfly*)
3794 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3797 # Not sure whether the presence of OpenBSD here was a mistake.
3798 # Let's accept both of them until this is cleared up.
3799 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3800 lt_cv_file_magic_cmd=/usr/bin/file
3801 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3805 lt_cv_deplibs_check_method=pass_all
3810 lt_cv_deplibs_check_method=pass_all
3813 hpux10.20* | hpux11*)
3814 lt_cv_file_magic_cmd=/usr/bin/file
3817 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3818 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3821 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]'
3822 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3826 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3831 irix5* | irix6* | nonstopux*)
3833 *-32|*"-32 ") libmagic=32-bit;;
3834 *-n32|*"-n32 ") libmagic=N32;;
3835 *-64|*"-64 ") libmagic=64-bit;;
3836 *) libmagic=never-match;;
3838 lt_cv_deplibs_check_method=pass_all
3841 # This must be Linux ELF.
3843 lt_cv_deplibs_check_method=pass_all
3847 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3856 lt_cv_file_magic_cmd=/usr/bin/file
3857 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3861 lt_cv_deplibs_check_method=unknown
3865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3872 osf3* | osf4* | osf5*)
3873 lt_cv_deplibs_check_method=pass_all
3877 lt_cv_deplibs_check_method=pass_all
3881 lt_cv_deplibs_check_method=pass_all
3884 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3885 case $host_vendor in
3887 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]'
3888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3891 lt_cv_deplibs_check_method=pass_all
3894 lt_cv_file_magic_cmd='/bin/file'
3895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3898 lt_cv_file_magic_cmd='/bin/file'
3899 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3900 lt_cv_file_magic_test_file=/lib/libc.so
3903 lt_cv_deplibs_check_method=pass_all
3908 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3909 lt_cv_deplibs_check_method=pass_all
3914 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3915 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3916 file_magic_cmd=$lt_cv_file_magic_cmd
3917 deplibs_check_method=$lt_cv_deplibs_check_method
3918 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3923 # If no C compiler was specified, use CC.
3926 # Allow CC to be a program name with arguments.
3929 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3930 if test "${enable_libtool_lock+set}" = set; then
3931 enableval="$enable_libtool_lock"
3934 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3936 # Some flags need to be propagated to the compiler or linker for good
3940 # Find out which ABI we are using.
3941 echo 'int i;' > conftest.$ac_ext
3942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943 (eval $ac_compile) 2>&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; then
3947 case `/usr/bin/file conftest.$ac_objext` in
3959 # Find out which ABI we are using.
3960 echo '#line 3960 "configure"' > conftest.$ac_ext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962 (eval $ac_compile) 2>&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; then
3966 if test "$lt_cv_prog_gnu_ld" = yes; then
3967 case `/usr/bin/file conftest.$ac_objext` in
3969 LD="${LD-ld} -melf32bsmip"
3972 LD="${LD-ld} -melf32bmipn32"
3975 LD="${LD-ld} -melf64bmip"
3979 case `/usr/bin/file conftest.$ac_objext` in
3995 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3996 # Find out which ABI we are using.
3997 echo 'int i;' > conftest.$ac_ext
3998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3999 (eval $ac_compile) 2>&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; then
4003 case "`/usr/bin/file conftest.o`" in
4007 LD="${LD-ld} -m elf_i386"
4009 ppc64-*linux*|powerpc64-*linux*)
4010 LD="${LD-ld} -m elf32ppclinux"
4013 LD="${LD-ld} -m elf_s390"
4016 LD="${LD-ld} -m elf32_sparc"
4023 LD="${LD-ld} -m elf_x86_64"
4025 ppc*-*linux*|powerpc*-*linux*)
4026 LD="${LD-ld} -m elf64ppc"
4029 LD="${LD-ld} -m elf64_s390"
4032 LD="${LD-ld} -m elf64_sparc"
4042 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4043 SAVE_CFLAGS="$CFLAGS"
4044 CFLAGS="$CFLAGS -belf"
4045 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4046 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4047 if test "${lt_cv_cc_needs_belf+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4071 rm -f conftest.$ac_objext conftest$ac_exeext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4073 (eval $ac_link) 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest$ac_exeext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 lt_cv_cc_needs_belf=yes
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 lt_cv_cc_needs_belf=no
4100 rm -f conftest.err conftest.$ac_objext \
4101 conftest$ac_exeext conftest.$ac_ext
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4110 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4111 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4112 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4113 CFLAGS="$SAVE_CFLAGS"
4116 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4117 if test -n "$ac_tool_prefix"; then
4118 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4119 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4120 echo "$as_me:$LINENO: checking for $ac_word" >&5
4121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 if test -n "$DLLTOOL"; then
4126 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 DLLTOOL=$ac_cv_prog_DLLTOOL
4145 if test -n "$DLLTOOL"; then
4146 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4147 echo "${ECHO_T}$DLLTOOL" >&6
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4154 if test -z "$ac_cv_prog_DLLTOOL"; then
4155 ac_ct_DLLTOOL=$DLLTOOL
4156 # Extract the first word of "dlltool", so it can be a program name with args.
4157 set dummy dlltool; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 if test -n "$ac_ct_DLLTOOL"; then
4164 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4183 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4184 if test -n "$ac_ct_DLLTOOL"; then
4185 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4186 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4188 echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4192 DLLTOOL=$ac_ct_DLLTOOL
4194 DLLTOOL="$ac_cv_prog_DLLTOOL"
4197 if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4199 set dummy ${ac_tool_prefix}as; ac_word=$2
4200 echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202 if test "${ac_cv_prog_AS+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test -n "$AS"; then
4206 ac_cv_prog_AS="$AS" # Let the user override the test.
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_AS="${ac_tool_prefix}as"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 if test -n "$AS"; then
4226 echo "$as_me:$LINENO: result: $AS" >&5
4227 echo "${ECHO_T}$AS" >&6
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4234 if test -z "$ac_cv_prog_AS"; then
4236 # Extract the first word of "as", so it can be a program name with args.
4237 set dummy as; ac_word=$2
4238 echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 if test -n "$ac_ct_AS"; then
4244 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_prog_ac_ct_AS="as"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4263 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4264 if test -n "$ac_ct_AS"; then
4265 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4266 echo "${ECHO_T}$ac_ct_AS" >&6
4268 echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6
4277 if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 if test -n "$OBJDUMP"; then
4286 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 OBJDUMP=$ac_cv_prog_OBJDUMP
4305 if test -n "$OBJDUMP"; then
4306 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4307 echo "${ECHO_T}$OBJDUMP" >&6
4309 echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4314 if test -z "$ac_cv_prog_OBJDUMP"; then
4315 ac_ct_OBJDUMP=$OBJDUMP
4316 # Extract the first word of "objdump", so it can be a program name with args.
4317 set dummy objdump; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 if test -n "$ac_ct_OBJDUMP"; then
4324 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4343 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4344 if test -n "$ac_ct_OBJDUMP"; then
4345 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4346 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4348 echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4352 OBJDUMP=$ac_ct_OBJDUMP
4354 OBJDUMP="$ac_cv_prog_OBJDUMP"
4361 need_locks="$enable_libtool_lock"
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4370 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4371 # On Suns, sometimes $CPP names a directory.
4372 if test -n "$CPP" && test -d "$CPP"; then
4375 if test -z "$CPP"; then
4376 if test "${ac_cv_prog_CPP+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 # Double quotes because CPP needs to be expanded
4380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4383 for ac_c_preproc_warn_flag in '' yes
4385 # Use a header file that comes with gcc, so configuring glibc
4386 # with a fresh cross-compiler works.
4387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4388 # <limits.h> exists even on freestanding compilers.
4389 # On the NeXT, cc -E runs the code through the compiler's parser,
4390 # not just through cpp. "Syntax error" is here to catch this case.
4391 cat >conftest.$ac_ext <<_ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4398 # include <limits.h>
4400 # include <assert.h>
4404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } >/dev/null; then
4412 if test -s conftest.err; then
4413 ac_cpp_err=$ac_c_preproc_warn_flag
4414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4421 if test -z "$ac_cpp_err"; then
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4427 # Broken: fails on valid input.
4430 rm -f conftest.err conftest.$ac_ext
4432 # OK, works on sane cases. Now check whether non-existent headers
4433 # can be detected and how.
4434 cat >conftest.$ac_ext <<_ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 #include <ac_nonexistent.h>
4442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4445 grep -v '^ *+' conftest.er1 >conftest.err
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } >/dev/null; then
4450 if test -s conftest.err; then
4451 ac_cpp_err=$ac_c_preproc_warn_flag
4452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4459 if test -z "$ac_cpp_err"; then
4460 # Broken: success on invalid input.
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 # Passes both tests.
4470 rm -f conftest.err conftest.$ac_ext
4473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4474 rm -f conftest.err conftest.$ac_ext
4475 if $ac_preproc_ok; then
4487 echo "$as_me:$LINENO: result: $CPP" >&5
4488 echo "${ECHO_T}$CPP" >&6
4490 for ac_c_preproc_warn_flag in '' yes
4492 # Use a header file that comes with gcc, so configuring glibc
4493 # with a fresh cross-compiler works.
4494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4495 # <limits.h> exists even on freestanding compilers.
4496 # On the NeXT, cc -E runs the code through the compiler's parser,
4497 # not just through cpp. "Syntax error" is here to catch this case.
4498 cat >conftest.$ac_ext <<_ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4505 # include <limits.h>
4507 # include <assert.h>
4511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4514 grep -v '^ *+' conftest.er1 >conftest.err
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } >/dev/null; then
4519 if test -s conftest.err; then
4520 ac_cpp_err=$ac_c_preproc_warn_flag
4521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4528 if test -z "$ac_cpp_err"; then
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 # Broken: fails on valid input.
4537 rm -f conftest.err conftest.$ac_ext
4539 # OK, works on sane cases. Now check whether non-existent headers
4540 # can be detected and how.
4541 cat >conftest.$ac_ext <<_ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4547 #include <ac_nonexistent.h>
4549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1 >conftest.err
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } >/dev/null; then
4557 if test -s conftest.err; then
4558 ac_cpp_err=$ac_c_preproc_warn_flag
4559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4566 if test -z "$ac_cpp_err"; then
4567 # Broken: success on invalid input.
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4573 # Passes both tests.
4577 rm -f conftest.err conftest.$ac_ext
4580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4581 rm -f conftest.err conftest.$ac_ext
4582 if $ac_preproc_ok; then
4585 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4586 See \`config.log' for more details." >&5
4587 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4588 See \`config.log' for more details." >&2;}
4589 { (exit 1); exit 1; }; }
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4599 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4600 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4601 if test "${ac_cv_header_stdc+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 cat >conftest.$ac_ext <<_ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4623 rm -f conftest.$ac_objext
4624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4625 (eval $ac_compile) 2>conftest.er1
4627 grep -v '^ *+' conftest.er1 >conftest.err
4629 cat conftest.err >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } &&
4632 { ac_try='test -z "$ac_c_werror_flag"
4633 || test ! -s conftest.err'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; } &&
4639 { ac_try='test -s conftest.$ac_objext'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4645 ac_cv_header_stdc=yes
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 ac_cv_header_stdc=no
4652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654 if test $ac_cv_header_stdc = yes; then
4655 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4656 cat >conftest.$ac_ext <<_ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "memchr" >/dev/null 2>&1; then
4669 ac_cv_header_stdc=no
4675 if test $ac_cv_header_stdc = yes; then
4676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4677 cat >conftest.$ac_ext <<_ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 $EGREP "free" >/dev/null 2>&1; then
4690 ac_cv_header_stdc=no
4696 if test $ac_cv_header_stdc = yes; then
4697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4698 if test "$cross_compiling" = yes; then
4701 cat >conftest.$ac_ext <<_ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4708 #if ((' ' & 0x0FF) == 0x020)
4709 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4710 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4712 # define ISLOWER(c) \
4713 (('a' <= (c) && (c) <= 'i') \
4714 || ('j' <= (c) && (c) <= 'r') \
4715 || ('s' <= (c) && (c) <= 'z'))
4716 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4719 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4724 for (i = 0; i < 256; i++)
4725 if (XOR (islower (i), ISLOWER (i))
4726 || toupper (i) != TOUPPER (i))
4731 rm -f conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733 (eval $ac_link) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4744 echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4749 ac_cv_header_stdc=no
4751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4755 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4756 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4757 if test $ac_cv_header_stdc = yes; then
4759 cat >>confdefs.h <<\_ACEOF
4760 #define STDC_HEADERS 1
4765 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4775 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4776 inttypes.h stdint.h unistd.h
4778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_header" >&5
4780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 cat >conftest.$ac_ext <<_ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 $ac_includes_default
4792 #include <$ac_header>
4794 rm -f conftest.$ac_objext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>conftest.er1
4798 grep -v '^ *+' conftest.er1 >conftest.err
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -z "$ac_c_werror_flag"
4804 || test ! -s conftest.err'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; } &&
4810 { ac_try='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 eval "$as_ac_Header=yes"
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 eval "$as_ac_Header=no"
4823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4828 cat >>confdefs.h <<_ACEOF
4829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4838 for ac_header in dlfcn.h
4840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4842 echo "$as_me:$LINENO: checking for $ac_header" >&5
4843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4850 # Is the header compilable?
4851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 $ac_includes_default
4860 #include <$ac_header>
4862 rm -f conftest.$ac_objext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4864 (eval $ac_compile) 2>conftest.er1
4866 grep -v '^ *+' conftest.er1 >conftest.err
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } &&
4871 { ac_try='test -z "$ac_c_werror_flag"
4872 || test ! -s conftest.err'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; } &&
4878 { ac_try='test -s conftest.$ac_objext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 ac_header_compiler=yes
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 ac_header_compiler=no
4891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4893 echo "${ECHO_T}$ac_header_compiler" >&6
4895 # Is the header present?
4896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 #include <$ac_header>
4906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } >/dev/null; then
4914 if test -s conftest.err; then
4915 ac_cpp_err=$ac_c_preproc_warn_flag
4916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4923 if test -z "$ac_cpp_err"; then
4924 ac_header_preproc=yes
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 ac_header_preproc=no
4931 rm -f conftest.err conftest.$ac_ext
4932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4933 echo "${ECHO_T}$ac_header_preproc" >&6
4935 # So? What about this header?
4936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4942 ac_header_preproc=yes
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4959 ## ---------------------------------- ##
4960 ## Report this to bug-libtool@gnu.org ##
4961 ## ---------------------------------- ##
4964 sed "s/^/$as_me: WARNING: /" >&2
4967 echo "$as_me:$LINENO: checking for $ac_header" >&5
4968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 eval "$as_ac_Header=\$ac_header_preproc"
4974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4979 cat >>confdefs.h <<_ACEOF
4980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4988 ac_cpp='$CXXCPP $CPPFLAGS'
4989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4992 if test -n "$ac_tool_prefix"; then
4993 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4997 echo "$as_me:$LINENO: checking for $ac_word" >&5
4998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4999 if test "${ac_cv_prog_CXX+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 if test -n "$CXX"; then
5003 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 if test -n "$CXX"; then
5023 echo "$as_me:$LINENO: result: $CXX" >&5
5024 echo "${ECHO_T}$CXX" >&6
5026 echo "$as_me:$LINENO: result: no" >&5
5027 echo "${ECHO_T}no" >&6
5030 test -n "$CXX" && break
5033 if test -z "$CXX"; then
5035 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5037 # Extract the first word of "$ac_prog", so it can be a program name with args.
5038 set dummy $ac_prog; ac_word=$2
5039 echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 if test -n "$ac_ct_CXX"; then
5045 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_ac_ct_CXX="$ac_prog"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5064 if test -n "$ac_ct_CXX"; then
5065 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5066 echo "${ECHO_T}$ac_ct_CXX" >&6
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5072 test -n "$ac_ct_CXX" && break
5074 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5080 # Provide some information about the compiler.
5081 echo "$as_me:$LINENO:" \
5082 "checking for C++ compiler version" >&5
5083 ac_compiler=`set X $ac_compile; echo $2`
5084 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5085 (eval $ac_compiler --version </dev/null >&5) 2>&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }
5089 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5090 (eval $ac_compiler -v </dev/null >&5) 2>&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }
5094 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5095 (eval $ac_compiler -V </dev/null >&5) 2>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }
5100 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5101 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5102 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 cat >conftest.$ac_ext <<_ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5123 rm -f conftest.$ac_objext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125 (eval $ac_compile) 2>conftest.er1
5127 grep -v '^ *+' conftest.er1 >conftest.err
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try='test -z "$ac_cxx_werror_flag"
5133 || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try='test -s conftest.$ac_objext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5153 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5156 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5157 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5158 GXX=`test $ac_compiler_gnu = yes && echo yes`
5159 ac_test_CXXFLAGS=${CXXFLAGS+set}
5160 ac_save_CXXFLAGS=$CXXFLAGS
5162 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5163 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5164 if test "${ac_cv_prog_cxx_g+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 cat >conftest.$ac_ext <<_ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>conftest.er1
5186 grep -v '^ *+' conftest.er1 >conftest.err
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_cxx_werror_flag"
5192 || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_cv_prog_cxx_g=yes
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5214 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5215 if test "$ac_test_CXXFLAGS" = set; then
5216 CXXFLAGS=$ac_save_CXXFLAGS
5217 elif test $ac_cv_prog_cxx_g = yes; then
5218 if test "$GXX" = yes; then
5224 if test "$GXX" = yes; then
5230 for ac_declaration in \
5232 'extern "C" void std::exit (int) throw (); using std::exit;' \
5233 'extern "C" void std::exit (int); using std::exit;' \
5234 'extern "C" void exit (int) throw ();' \
5235 'extern "C" void exit (int);' \
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5254 rm -f conftest.$ac_objext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256 (eval $ac_compile) 2>conftest.er1
5258 grep -v '^ *+' conftest.er1 >conftest.err
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } &&
5263 { ac_try='test -z "$ac_cxx_werror_flag"
5264 || test ! -s conftest.err'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; } &&
5270 { ac_try='test -s conftest.$ac_objext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5284 cat >conftest.$ac_ext <<_ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>conftest.er1
5303 grep -v '^ *+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -z "$ac_cxx_werror_flag"
5309 || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330 if test -n "$ac_declaration"; then
5331 echo '#ifdef __cplusplus' >>confdefs.h
5332 echo $ac_declaration >>confdefs.h
5333 echo '#endif' >>confdefs.h
5337 ac_cpp='$CXXCPP $CPPFLAGS'
5338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5342 depcc="$CXX" am_compiler_list=
5344 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5345 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5346 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5350 # We make a subdir and do the tests there. Otherwise we can end up
5351 # making bogus files that we don't know about and never remove. For
5352 # instance it was reported that on HP-UX the gcc test will end up
5353 # making a dummy file named `D' -- because `-MD' means `put the output
5356 # Copy depcomp to subdir because otherwise we won't find it if we're
5357 # using a relative directory.
5358 cp "$am_depcomp" conftest.dir
5360 # We will build objects and dependencies in a subdirectory because
5361 # it helps to detect inapplicable dependency modes. For instance
5362 # both Tru64's cc and ICC support -MD to output dependencies as a
5363 # side effect of compilation, but ICC will put the dependencies in
5364 # the current directory while Tru64 will put them in the object
5368 am_cv_CXX_dependencies_compiler_type=none
5369 if test "$am_compiler_list" = ""; then
5370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5372 for depmode in $am_compiler_list; do
5373 # Setup a source with many dependencies, because some compilers
5374 # like to wrap large dependency lists on column 80 (with \), and
5375 # we should not choose a depcomp mode which is confused by this.
5377 # We need to recreate these files for each test, as the compiler may
5378 # overwrite some of them when testing with obscure command lines.
5379 # This happens at least with the AIX C compiler.
5381 for i in 1 2 3 4 5 6; do
5382 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5383 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5384 # Solaris 8's {/usr,}/bin/sh.
5385 touch sub/conftst$i.h
5387 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5391 # after this tag, mechanisms are not by side-effect, so they'll
5392 # only be used when explicitly requested
5393 if test "x$enable_dependency_tracking" = xyes; then
5401 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5402 # mode. It turns out that the SunPro C++ compiler does not properly
5403 # handle `-M -o', and we need to detect this.
5404 if depmode=$depmode \
5405 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5406 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5407 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5408 >/dev/null 2>conftest.err &&
5409 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5410 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5411 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5412 # icc doesn't choke on unknown options, it will just issue warnings
5413 # or remarks (even with -Werror). So we grep stderr for any message
5414 # that says an option was ignored or not supported.
5415 # When given -MP, icc 7.0 and 7.1 complain thusly:
5416 # icc: Command line warning: ignoring option '-M'; no argument required
5417 # The diagnosis changed in icc 8.0:
5418 # icc: Command line remark: option '-MP' not supported
5419 if (grep 'ignoring option' conftest.err ||
5420 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5421 am_cv_CXX_dependencies_compiler_type=$depmode
5430 am_cv_CXX_dependencies_compiler_type=none
5434 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5435 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5436 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5441 test "x$enable_dependency_tracking" != xno \
5442 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5443 am__fastdepCXX_TRUE=
5444 am__fastdepCXX_FALSE='#'
5446 am__fastdepCXX_TRUE='#'
5447 am__fastdepCXX_FALSE=
5453 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5454 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5455 (test "X$CXX" != "Xg++"))) ; then
5457 ac_cpp='$CXXCPP $CPPFLAGS'
5458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5461 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5462 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5463 if test -z "$CXXCPP"; then
5464 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 # Double quotes because CXXCPP needs to be expanded
5468 for CXXCPP in "$CXX -E" "/lib/cpp"
5471 for ac_cxx_preproc_warn_flag in '' yes
5473 # Use a header file that comes with gcc, so configuring glibc
5474 # with a fresh cross-compiler works.
5475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5476 # <limits.h> exists even on freestanding compilers.
5477 # On the NeXT, cc -E runs the code through the compiler's parser,
5478 # not just through cpp. "Syntax error" is here to catch this case.
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5486 # include <limits.h>
5488 # include <assert.h>
5492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } >/dev/null; then
5500 if test -s conftest.err; then
5501 ac_cpp_err=$ac_cxx_preproc_warn_flag
5502 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5509 if test -z "$ac_cpp_err"; then
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 # Broken: fails on valid input.
5518 rm -f conftest.err conftest.$ac_ext
5520 # OK, works on sane cases. Now check whether non-existent headers
5521 # can be detected and how.
5522 cat >conftest.$ac_ext <<_ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 #include <ac_nonexistent.h>
5530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5533 grep -v '^ *+' conftest.er1 >conftest.err
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } >/dev/null; then
5538 if test -s conftest.err; then
5539 ac_cpp_err=$ac_cxx_preproc_warn_flag
5540 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5547 if test -z "$ac_cpp_err"; then
5548 # Broken: success on invalid input.
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 # Passes both tests.
5558 rm -f conftest.err conftest.$ac_ext
5561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5562 rm -f conftest.err conftest.$ac_ext
5563 if $ac_preproc_ok; then
5568 ac_cv_prog_CXXCPP=$CXXCPP
5571 CXXCPP=$ac_cv_prog_CXXCPP
5573 ac_cv_prog_CXXCPP=$CXXCPP
5575 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5576 echo "${ECHO_T}$CXXCPP" >&6
5578 for ac_cxx_preproc_warn_flag in '' yes
5580 # Use a header file that comes with gcc, so configuring glibc
5581 # with a fresh cross-compiler works.
5582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5583 # <limits.h> exists even on freestanding compilers.
5584 # On the NeXT, cc -E runs the code through the compiler's parser,
5585 # not just through cpp. "Syntax error" is here to catch this case.
5586 cat >conftest.$ac_ext <<_ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5593 # include <limits.h>
5595 # include <assert.h>
5599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5602 grep -v '^ *+' conftest.er1 >conftest.err
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } >/dev/null; then
5607 if test -s conftest.err; then
5608 ac_cpp_err=$ac_cxx_preproc_warn_flag
5609 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5616 if test -z "$ac_cpp_err"; then
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5622 # Broken: fails on valid input.
5625 rm -f conftest.err conftest.$ac_ext
5627 # OK, works on sane cases. Now check whether non-existent headers
5628 # can be detected and how.
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 #include <ac_nonexistent.h>
5637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5640 grep -v '^ *+' conftest.er1 >conftest.err
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } >/dev/null; then
5645 if test -s conftest.err; then
5646 ac_cpp_err=$ac_cxx_preproc_warn_flag
5647 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5654 if test -z "$ac_cpp_err"; then
5655 # Broken: success on invalid input.
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5661 # Passes both tests.
5665 rm -f conftest.err conftest.$ac_ext
5668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5669 rm -f conftest.err conftest.$ac_ext
5670 if $ac_preproc_ok; then
5673 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5674 See \`config.log' for more details." >&5
5675 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5676 See \`config.log' for more details." >&2;}
5677 { (exit 1); exit 1; }; }
5681 ac_cpp='$CXXCPP $CPPFLAGS'
5682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5690 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5691 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5693 if test -n "$ac_tool_prefix"; then
5694 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5698 echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700 if test "${ac_cv_prog_F77+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 if test -n "$F77"; then
5704 ac_cv_prog_F77="$F77" # Let the user override the test.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 if test -n "$F77"; then
5724 echo "$as_me:$LINENO: result: $F77" >&5
5725 echo "${ECHO_T}$F77" >&6
5727 echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6
5731 test -n "$F77" && break
5734 if test -z "$F77"; then
5736 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5738 # Extract the first word of "$ac_prog", so it can be a program name with args.
5739 set dummy $ac_prog; ac_word=$2
5740 echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5742 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 if test -n "$ac_ct_F77"; then
5746 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_ac_ct_F77="$ac_prog"
5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5765 if test -n "$ac_ct_F77"; then
5766 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5767 echo "${ECHO_T}$ac_ct_F77" >&6
5769 echo "$as_me:$LINENO: result: no" >&5
5770 echo "${ECHO_T}no" >&6
5773 test -n "$ac_ct_F77" && break
5780 # Provide some information about the compiler.
5781 echo "$as_me:5781:" \
5782 "checking for Fortran 77 compiler version" >&5
5783 ac_compiler=`set X $ac_compile; echo $2`
5784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5785 (eval $ac_compiler --version </dev/null >&5) 2>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }
5789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5790 (eval $ac_compiler -v </dev/null >&5) 2>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }
5794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5795 (eval $ac_compiler -V </dev/null >&5) 2>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }
5801 # If we don't use `.F' as extension, the preprocessor is not run on the
5802 # input file. (Note that this only needs to work for GNU compilers.)
5805 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5806 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5807 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 cat >conftest.$ac_ext <<_ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>conftest.er1
5822 grep -v '^ *+' conftest.er1 >conftest.err
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_f77_werror_flag"
5828 || test ! -s conftest.err'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5848 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5851 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5852 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5854 ac_test_FFLAGS=${FFLAGS+set}
5855 ac_save_FFLAGS=$FFLAGS
5857 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5858 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5859 if test "${ac_cv_prog_f77_g+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 cat >conftest.$ac_ext <<_ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5870 (eval $ac_compile) 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -z "$ac_f77_werror_flag"
5878 || test ! -s conftest.err'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; } &&
5884 { ac_try='test -s conftest.$ac_objext'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 ac_cv_prog_f77_g=yes
5892 echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5900 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5901 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5902 if test "$ac_test_FFLAGS" = set; then
5903 FFLAGS=$ac_save_FFLAGS
5904 elif test $ac_cv_prog_f77_g = yes; then
5905 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5911 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5918 G77=`test $ac_compiler_gnu = yes && echo yes`
5920 ac_cpp='$CPP $CPPFLAGS'
5921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5929 # find the maximum length of command line arguments
5930 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5931 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5932 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 # On DJGPP, this test can blow up pretty badly due to problems in libc
5941 # (any single argument exceeding 2000 bytes causes a buffer overrun
5942 # during glob expansion). Even if it were fixed, the result of this
5943 # check would be larger than it should be.
5944 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5948 # Under GNU Hurd, this test is not required because there is
5949 # no limit to the length of command line arguments.
5950 # Libtool will interpret -1 as no limit whatsoever
5951 lt_cv_sys_max_cmd_len=-1;
5955 # On Win9x/ME, this test blows up -- it succeeds, but takes
5956 # about 5 minutes as the teststring grows exponentially.
5957 # Worse, since 9x/ME are not pre-emptively multitasking,
5958 # you end up with a "frozen" computer, even though with patience
5959 # the test eventually succeeds (with a max line length of 256k).
5960 # Instead, let's just punt: use the minimum linelength reported by
5961 # all of the supported platforms: 8192 (on NT/2K/XP).
5962 lt_cv_sys_max_cmd_len=8192;
5966 # On AmigaOS with pdksh, this test takes hours, literally.
5967 # So we just punt and use a minimum line length of 8192.
5968 lt_cv_sys_max_cmd_len=8192;
5971 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5972 # This has been around since 386BSD, at least. Likely further.
5973 if test -x /sbin/sysctl; then
5974 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5975 elif test -x /usr/sbin/sysctl; then
5976 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5978 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5980 # And add a safety zone
5981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5985 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5986 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5987 # nice to cause kernel panics so lets avoid the loop below.
5988 # First set a reasonable default.
5989 lt_cv_sys_max_cmd_len=16384
5991 if test -x /sbin/sysconfig; then
5992 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5993 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5998 # If test is not a shell built-in, we'll probably end up computing a
5999 # maximum length that is only half of the actual maximum length, but
6001 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6002 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6003 = "XX$teststring") >/dev/null 2>&1 &&
6004 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6005 lt_cv_sys_max_cmd_len=$new_result &&
6006 test $i != 17 # 1/2 MB should be enough
6009 teststring=$teststring$teststring
6012 # Add a significant safety factor because C++ compilers can tack on massive
6013 # amounts of additional arguments before passing them to the linker.
6014 # It appears as though 1/2 is a usable value.
6015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6021 if test -n $lt_cv_sys_max_cmd_len ; then
6022 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6023 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6025 echo "$as_me:$LINENO: result: none" >&5
6026 echo "${ECHO_T}none" >&6
6032 # Check for command to grab the raw symbol name followed by C symbol from nm.
6033 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6034 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6035 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 # These are sane defaults that work on at least a few old systems.
6040 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6042 # Character class describing NM global symbol codes.
6043 symcode='[BCDEGRST]'
6045 # Regexp to match symbols that can be accessed directly from C.
6046 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6048 # Transform an extracted symbol line into a proper C declaration
6049 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6051 # Transform an extracted symbol line into symbol name and symbol address
6052 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'"
6054 # Define system-specific variables.
6059 cygwin* | mingw* | pw32*)
6060 symcode='[ABCDGISTW]'
6062 hpux*) # Its linker distinguishes data from code symbols
6063 if test "$host_cpu" = ia64; then
6064 symcode='[ABCDEGRST]'
6066 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6067 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'"
6070 if test "$host_cpu" = ia64; then
6071 symcode='[ABCDGIRSTW]'
6072 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6073 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'"
6077 symcode='[BCDEGRST]'
6080 symcode='[BCDEGQRST]'
6090 # Handle CRLF in mingw tool chain
6094 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6098 # If we're using GNU nm, then use its standard symbol codes.
6099 case `$NM -V 2>&1` in
6100 *GNU* | *'with BFD'*)
6101 symcode='[ABCDGIRSTW]' ;;
6104 # Try without a prefix undercore, then with it.
6105 for ac_symprfx in "" "_"; do
6107 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6108 symxfrm="\\1 $ac_symprfx\\2 \\2"
6110 # Write the raw and C identifiers.
6111 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6113 # Check to see that the pipe works correctly.
6117 cat > conftest.$ac_ext <<EOF
6122 void nm_test_func(){}
6126 int main(){nm_test_var='a';nm_test_func();return(0);}
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130 (eval $ac_compile) 2>&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; then
6134 # Now try to grab the symbols.
6136 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6137 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } && test -s "$nlist"; then
6141 # Try sorting and uniquifying the output.
6142 if sort "$nlist" | uniq > "$nlist"T; then
6143 mv -f "$nlist"T "$nlist"
6148 # Make sure that we snagged all the symbols we need.
6149 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6150 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6151 cat <<EOF > conftest.$ac_ext
6157 # Now generate the symbol file.
6158 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6160 cat <<EOF >> conftest.$ac_ext
6161 #if defined (__STDC__) && __STDC__
6162 # define lt_ptr_t void *
6164 # define lt_ptr_t char *
6168 /* The mapping between symbol names and symbols. */
6173 lt_preloaded_symbols[] =
6176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6177 cat <<\EOF >> conftest.$ac_ext
6185 # Now try linking the two files.
6186 mv conftest.$ac_objext conftstm.$ac_objext
6187 lt_save_LIBS="$LIBS"
6188 lt_save_CFLAGS="$CFLAGS"
6189 LIBS="conftstm.$ac_objext"
6190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6198 LIBS="$lt_save_LIBS"
6199 CFLAGS="$lt_save_CFLAGS"
6201 echo "cannot find nm_test_func in $nlist" >&5
6204 echo "cannot find nm_test_var in $nlist" >&5
6207 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6210 echo "$progname: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6213 rm -f conftest* conftst*
6215 # Do not use the global_symbol_pipe unless it works.
6216 if test "$pipe_works" = yes; then
6219 lt_cv_sys_global_symbol_pipe=
6225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6226 lt_cv_sys_global_symbol_to_cdecl=
6228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6229 echo "$as_me:$LINENO: result: failed" >&5
6230 echo "${ECHO_T}failed" >&6
6232 echo "$as_me:$LINENO: result: ok" >&5
6233 echo "${ECHO_T}ok" >&6
6236 echo "$as_me:$LINENO: checking for objdir" >&5
6237 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6238 if test "${lt_cv_objdir+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 rm -f .libs 2>/dev/null
6242 mkdir .libs 2>/dev/null
6243 if test -d .libs; then
6246 # MS-DOS does not allow filenames that begin with a dot.
6249 rmdir .libs 2>/dev/null
6251 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6252 echo "${ECHO_T}$lt_cv_objdir" >&6
6253 objdir=$lt_cv_objdir
6261 # AIX sometimes has problems with the GCC collect2 program. For some
6262 # reason, if we set the COLLECT_NAMES environment variable, the problems
6263 # vanish in a puff of smoke.
6264 if test "X${COLLECT_NAMES+set}" != Xset; then
6266 export COLLECT_NAMES
6271 # Sed substitution that helps us do robust quoting. It backslashifies
6272 # metacharacters that are still active within double-quoted strings.
6273 Xsed='sed -e 1s/^X//'
6274 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6276 # Same as above, but do not quote variable references.
6277 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6279 # Sed substitution to delay expansion of an escaped shell variable in a
6280 # double_quote_subst'ed string.
6281 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6283 # Sed substitution to avoid accidental globbing in evaled expressions
6284 no_glob_subst='s/\*/\\\*/g'
6290 default_ofile=libtool
6291 can_build_shared=yes
6293 # All known linkers require a `.a' archive for static linking (except M$VC,
6294 # which needs '.lib').
6296 ltmain="$ac_aux_dir/ltmain.sh"
6297 ofile="$default_ofile"
6298 with_gnu_ld="$lt_cv_prog_gnu_ld"
6300 if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}ar; ac_word=$2
6303 echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6305 if test "${ac_cv_prog_AR+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 if test -n "$AR"; then
6309 ac_cv_prog_AR="$AR" # Let the user override the test.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318 ac_cv_prog_AR="${ac_tool_prefix}ar"
6319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 if test -n "$AR"; then
6329 echo "$as_me:$LINENO: result: $AR" >&5
6330 echo "${ECHO_T}$AR" >&6
6332 echo "$as_me:$LINENO: result: no" >&5
6333 echo "${ECHO_T}no" >&6
6337 if test -z "$ac_cv_prog_AR"; then
6339 # Extract the first word of "ar", so it can be a program name with args.
6340 set dummy ar; ac_word=$2
6341 echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6343 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 if test -n "$ac_ct_AR"; then
6347 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_ac_ct_AR="ar"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6366 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6367 if test -n "$ac_ct_AR"; then
6368 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6369 echo "${ECHO_T}$ac_ct_AR" >&6
6371 echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6
6380 if test -n "$ac_tool_prefix"; then
6381 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6383 echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6385 if test "${ac_cv_prog_RANLIB+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 if test -n "$RANLIB"; then
6389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 RANLIB=$ac_cv_prog_RANLIB
6408 if test -n "$RANLIB"; then
6409 echo "$as_me:$LINENO: result: $RANLIB" >&5
6410 echo "${ECHO_T}$RANLIB" >&6
6412 echo "$as_me:$LINENO: result: no" >&5
6413 echo "${ECHO_T}no" >&6
6417 if test -z "$ac_cv_prog_RANLIB"; then
6418 ac_ct_RANLIB=$RANLIB
6419 # Extract the first word of "ranlib", so it can be a program name with args.
6420 set dummy ranlib; ac_word=$2
6421 echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 if test -n "$ac_ct_RANLIB"; then
6427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_ac_ct_RANLIB="ranlib"
6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6447 if test -n "$ac_ct_RANLIB"; then
6448 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6449 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6451 echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6
6455 RANLIB=$ac_ct_RANLIB
6457 RANLIB="$ac_cv_prog_RANLIB"
6460 if test -n "$ac_tool_prefix"; then
6461 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6462 set dummy ${ac_tool_prefix}strip; ac_word=$2
6463 echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6465 if test "${ac_cv_prog_STRIP+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 if test -n "$STRIP"; then
6469 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 STRIP=$ac_cv_prog_STRIP
6488 if test -n "$STRIP"; then
6489 echo "$as_me:$LINENO: result: $STRIP" >&5
6490 echo "${ECHO_T}$STRIP" >&6
6492 echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6
6497 if test -z "$ac_cv_prog_STRIP"; then
6499 # Extract the first word of "strip", so it can be a program name with args.
6500 set dummy strip; ac_word=$2
6501 echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6503 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 if test -n "$ac_ct_STRIP"; then
6507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_ac_ct_STRIP="strip"
6517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6527 if test -n "$ac_ct_STRIP"; then
6528 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6529 echo "${ECHO_T}$ac_ct_STRIP" >&6
6531 echo "$as_me:$LINENO: result: no" >&5
6532 echo "${ECHO_T}no" >&6
6537 STRIP="$ac_cv_prog_STRIP"
6542 old_CFLAGS="$CFLAGS"
6544 # Set sane defaults for various variables
6545 test -z "$AR" && AR=ar
6546 test -z "$AR_FLAGS" && AR_FLAGS=cru
6547 test -z "$AS" && AS=as
6548 test -z "$CC" && CC=cc
6549 test -z "$LTCC" && LTCC=$CC
6550 test -z "$DLLTOOL" && DLLTOOL=dlltool
6551 test -z "$LD" && LD=ld
6552 test -z "$LN_S" && LN_S="ln -s"
6553 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6554 test -z "$NM" && NM=nm
6555 test -z "$SED" && SED=sed
6556 test -z "$OBJDUMP" && OBJDUMP=objdump
6557 test -z "$RANLIB" && RANLIB=:
6558 test -z "$STRIP" && STRIP=:
6559 test -z "$ac_objext" && ac_objext=o
6561 # Determine commands to create old-style static archives.
6562 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6563 old_postinstall_cmds='chmod 644 $oldlib'
6564 old_postuninstall_cmds=
6566 if test -n "$RANLIB"; then
6569 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6572 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6575 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6578 for cc_temp in $compiler""; do
6580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6586 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6589 # Only perform the check for file, if the check method requires it
6590 case $deplibs_check_method in
6592 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6593 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6594 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6595 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6603 lt_save_MAGIC_CMD="$MAGIC_CMD"
6604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6606 for ac_dir in $ac_dummy; do
6608 test -z "$ac_dir" && ac_dir=.
6609 if test -f $ac_dir/${ac_tool_prefix}file; then
6610 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6611 if test -n "$file_magic_test_file"; then
6612 case $deplibs_check_method in
6614 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6617 $EGREP "$file_magic_regex" > /dev/null; then
6622 *** Warning: the command libtool uses to detect shared libraries,
6623 *** $file_magic_cmd, produces output that libtool cannot recognize.
6624 *** The result is that libtool may fail to recognize shared libraries
6625 *** as such. This will affect the creation of libtool libraries that
6626 *** depend on shared libraries, but programs linked with such libtool
6627 *** libraries will work regardless of this problem. Nevertheless, you
6628 *** may want to report the problem to your system manager and/or to
6629 *** bug-libtool@gnu.org
6639 MAGIC_CMD="$lt_save_MAGIC_CMD"
6644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6645 if test -n "$MAGIC_CMD"; then
6646 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6647 echo "${ECHO_T}$MAGIC_CMD" >&6
6649 echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6
6653 if test -z "$lt_cv_path_MAGIC_CMD"; then
6654 if test -n "$ac_tool_prefix"; then
6655 echo "$as_me:$LINENO: checking for file" >&5
6656 echo $ECHO_N "checking for file... $ECHO_C" >&6
6657 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6665 lt_save_MAGIC_CMD="$MAGIC_CMD"
6666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6667 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6668 for ac_dir in $ac_dummy; do
6670 test -z "$ac_dir" && ac_dir=.
6671 if test -f $ac_dir/file; then
6672 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6673 if test -n "$file_magic_test_file"; then
6674 case $deplibs_check_method in
6676 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6679 $EGREP "$file_magic_regex" > /dev/null; then
6684 *** Warning: the command libtool uses to detect shared libraries,
6685 *** $file_magic_cmd, produces output that libtool cannot recognize.
6686 *** The result is that libtool may fail to recognize shared libraries
6687 *** as such. This will affect the creation of libtool libraries that
6688 *** depend on shared libraries, but programs linked with such libtool
6689 *** libraries will work regardless of this problem. Nevertheless, you
6690 *** may want to report the problem to your system manager and/or to
6691 *** bug-libtool@gnu.org
6701 MAGIC_CMD="$lt_save_MAGIC_CMD"
6706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6707 if test -n "$MAGIC_CMD"; then
6708 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6709 echo "${ECHO_T}$MAGIC_CMD" >&6
6711 echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6
6725 enable_win32_dll=yes
6727 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6728 if test "${enable_libtool_lock+set}" = set; then
6729 enableval="$enable_libtool_lock"
6732 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6735 # Check whether --with-pic or --without-pic was given.
6736 if test "${with_pic+set}" = set; then
6742 test -z "$pic_mode" && pic_mode=default
6744 # Use C for the default configuration in the libtool script
6748 ac_cpp='$CPP $CPPFLAGS'
6749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6754 # Source file extension for C test sources.
6757 # Object file extension for compiled C test sources.
6761 # Code to be used in simple compile tests
6762 lt_simple_compile_test_code="int some_variable = 0;\n"
6764 # Code to be used in simple link tests
6765 lt_simple_link_test_code='int main(){return(0);}\n'
6768 # If no C compiler was specified, use CC.
6771 # Allow CC to be a program name with arguments.
6775 # save warnings/boilerplate of simple test code
6776 ac_outfile=conftest.$ac_objext
6777 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6778 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6779 _lt_compiler_boilerplate=`cat conftest.err`
6782 ac_outfile=conftest.$ac_objext
6783 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6784 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6785 _lt_linker_boilerplate=`cat conftest.err`
6790 # Check for any special shared library compilation flags.
6793 if test "$GCC" = no; then
6796 lt_prog_cc_shlib='-belf'
6800 if test -n "$lt_prog_cc_shlib"; then
6801 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6802 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6803 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6805 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6806 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6807 lt_cv_prog_cc_can_build_shared=no
6813 # Check to make sure the static flag actually works.
6815 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6816 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6817 if test "${lt_prog_compiler_static_works+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 lt_prog_compiler_static_works=no
6821 save_LDFLAGS="$LDFLAGS"
6822 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6823 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6824 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6825 # The compiler can only warn and ignore the option if not recognized
6826 # So say no if there are warnings
6827 if test -s conftest.err; then
6828 # Append any errors to the config.log.
6829 cat conftest.err 1>&5
6830 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6831 $SED '/^$/d' conftest.err >conftest.er2
6832 if diff conftest.exp conftest.er2 >/dev/null; then
6833 lt_prog_compiler_static_works=yes
6836 lt_prog_compiler_static_works=yes
6840 LDFLAGS="$save_LDFLAGS"
6843 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6844 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6846 if test x"$lt_prog_compiler_static_works" = xyes; then
6849 lt_prog_compiler_static=
6855 ## There is no encapsulation within the following macros, do not change
6856 ## the running order or otherwise move them around unless you know exactly
6857 ## what you are doing...
6859 lt_prog_compiler_no_builtin_flag=
6861 if test "$GCC" = yes; then
6862 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6865 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6866 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6867 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 lt_cv_prog_compiler_rtti_exceptions=no
6871 ac_outfile=conftest.$ac_objext
6872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6873 lt_compiler_flag="-fno-rtti -fno-exceptions"
6874 # Insert the option either (1) after the last *FLAGS variable, or
6875 # (2) before a word containing "conftest.", or (3) at the end.
6876 # Note that $ac_compile itself does not contain backslashes and begins
6877 # with a dollar sign (not a hyphen), so the echo should work correctly.
6878 # The option is referenced via a variable to avoid confusing sed.
6879 lt_compile=`echo "$ac_compile" | $SED \
6880 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6882 -e 's:$: $lt_compiler_flag:'`
6883 (eval echo "\"\$as_me:6883: $lt_compile\"" >&5)
6884 (eval "$lt_compile" 2>conftest.err)
6886 cat conftest.err >&5
6887 echo "$as_me:6887: \$? = $ac_status" >&5
6888 if (exit $ac_status) && test -s "$ac_outfile"; then
6889 # The compiler can only warn and ignore the option if not recognized
6890 # So say no if there are warnings other than the usual output.
6891 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6892 $SED '/^$/d' conftest.err >conftest.er2
6893 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6894 lt_cv_prog_compiler_rtti_exceptions=yes
6900 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6901 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6903 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6904 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6911 lt_prog_compiler_wl=
6912 lt_prog_compiler_pic=
6913 lt_prog_compiler_static=
6915 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6916 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6918 if test "$GCC" = yes; then
6919 lt_prog_compiler_wl='-Wl,'
6920 lt_prog_compiler_static='-static'
6924 # All AIX code is PIC.
6925 if test "$host_cpu" = ia64; then
6926 # AIX 5 now supports IA64 processor
6927 lt_prog_compiler_static='-Bstatic'
6932 # FIXME: we need at least 68020 code to build shared libraries, but
6933 # adding the `-m68020' flag to GCC prevents building anything better,
6935 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6938 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6939 # PIC is the default for these OSes.
6942 mingw* | pw32* | os2*)
6943 # This hack is so that the source file can tell whether it is being
6944 # built for inclusion in a dll (and should export symbols for example).
6945 lt_prog_compiler_pic='-DDLL_EXPORT'
6948 darwin* | rhapsody*)
6949 # PIC is the default on this platform
6950 # Common symbols not allowed in MH_DYLIB files
6951 lt_prog_compiler_pic='-fno-common'
6955 # Just because we use GCC doesn't mean we suddenly get shared libraries
6956 # on systems that don't support them.
6957 lt_prog_compiler_can_build_shared=no
6962 if test -d /usr/nec; then
6963 lt_prog_compiler_pic=-Kconform_pic
6968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6975 lt_prog_compiler_pic='-fPIC'
6981 lt_prog_compiler_pic='-fPIC'
6985 # PORTME Check for flag to pass linker flags through the system compiler.
6988 lt_prog_compiler_wl='-Wl,'
6989 if test "$host_cpu" = ia64; then
6990 # AIX 5 now supports IA64 processor
6991 lt_prog_compiler_static='-Bstatic'
6993 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6997 # PIC is the default on this platform
6998 # Common symbols not allowed in MH_DYLIB files
6999 case $cc_basename in
7001 lt_prog_compiler_pic='-qnocommon'
7002 lt_prog_compiler_wl='-Wl,'
7007 mingw* | pw32* | os2*)
7008 # This hack is so that the source file can tell whether it is being
7009 # built for inclusion in a dll (and should export symbols for example).
7010 lt_prog_compiler_pic='-DDLL_EXPORT'
7013 hpux9* | hpux10* | hpux11*)
7014 lt_prog_compiler_wl='-Wl,'
7015 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7022 lt_prog_compiler_pic='+Z'
7025 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7026 lt_prog_compiler_static='${wl}-a ${wl}archive'
7029 irix5* | irix6* | nonstopux*)
7030 lt_prog_compiler_wl='-Wl,'
7031 # PIC (with -KPIC) is the default.
7032 lt_prog_compiler_static='-non_shared'
7036 lt_prog_compiler_pic='-KPIC'
7037 lt_prog_compiler_static='-Bstatic'
7041 case $cc_basename in
7043 lt_prog_compiler_wl='-Wl,'
7044 lt_prog_compiler_pic='-KPIC'
7045 lt_prog_compiler_static='-static'
7047 pgcc* | pgf77* | pgf90*)
7048 # Portland Group compilers (*not* the Pentium gcc compiler,
7049 # which looks to be a dead project)
7050 lt_prog_compiler_wl='-Wl,'
7051 lt_prog_compiler_pic='-fpic'
7052 lt_prog_compiler_static='-static'
7055 lt_prog_compiler_wl='-Wl,'
7056 # All Alpha code is PIC.
7057 lt_prog_compiler_static='-non_shared'
7062 osf3* | osf4* | osf5*)
7063 lt_prog_compiler_wl='-Wl,'
7064 # All OSF/1 code is PIC.
7065 lt_prog_compiler_static='-non_shared'
7069 lt_prog_compiler_pic='-Kpic'
7070 lt_prog_compiler_static='-dn'
7074 lt_prog_compiler_pic='-KPIC'
7075 lt_prog_compiler_static='-Bstatic'
7076 case $cc_basename in
7078 lt_prog_compiler_wl='-Qoption ld ';;
7080 lt_prog_compiler_wl='-Wl,';;
7085 lt_prog_compiler_wl='-Qoption ld '
7086 lt_prog_compiler_pic='-PIC'
7087 lt_prog_compiler_static='-Bstatic'
7090 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7091 lt_prog_compiler_wl='-Wl,'
7092 lt_prog_compiler_pic='-KPIC'
7093 lt_prog_compiler_static='-Bstatic'
7097 if test -d /usr/nec ;then
7098 lt_prog_compiler_pic='-Kconform_pic'
7099 lt_prog_compiler_static='-Bstatic'
7104 lt_prog_compiler_wl='-Wl,'
7105 lt_prog_compiler_can_build_shared=no
7109 lt_prog_compiler_pic='-pic'
7110 lt_prog_compiler_static='-Bstatic'
7114 lt_prog_compiler_can_build_shared=no
7119 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7120 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7123 # Check to make sure the PIC flag actually works.
7125 if test -n "$lt_prog_compiler_pic"; then
7127 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7128 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7129 if test "${lt_prog_compiler_pic_works+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 lt_prog_compiler_pic_works=no
7133 ac_outfile=conftest.$ac_objext
7134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7135 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7136 # Insert the option either (1) after the last *FLAGS variable, or
7137 # (2) before a word containing "conftest.", or (3) at the end.
7138 # Note that $ac_compile itself does not contain backslashes and begins
7139 # with a dollar sign (not a hyphen), so the echo should work correctly.
7140 # The option is referenced via a variable to avoid confusing sed.
7141 lt_compile=`echo "$ac_compile" | $SED \
7142 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7144 -e 's:$: $lt_compiler_flag:'`
7145 (eval echo "\"\$as_me:7145: $lt_compile\"" >&5)
7146 (eval "$lt_compile" 2>conftest.err)
7148 cat conftest.err >&5
7149 echo "$as_me:7149: \$? = $ac_status" >&5
7150 if (exit $ac_status) && test -s "$ac_outfile"; then
7151 # The compiler can only warn and ignore the option if not recognized
7152 # So say no if there are warnings other than the usual output.
7153 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7154 $SED '/^$/d' conftest.err >conftest.er2
7155 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7156 lt_prog_compiler_pic_works=yes
7162 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7163 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7165 if test x"$lt_prog_compiler_pic_works" = xyes; then
7166 case $lt_prog_compiler_pic in
7168 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7171 lt_prog_compiler_pic=
7172 lt_prog_compiler_can_build_shared=no
7177 # For platforms which do not support PIC, -DPIC is meaningless:
7179 lt_prog_compiler_pic=
7182 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7186 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7187 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7188 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 lt_cv_prog_compiler_c_o=no
7192 $rm -r conftest 2>/dev/null
7196 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7198 lt_compiler_flag="-o out/conftest2.$ac_objext"
7199 # Insert the option either (1) after the last *FLAGS variable, or
7200 # (2) before a word containing "conftest.", or (3) at the end.
7201 # Note that $ac_compile itself does not contain backslashes and begins
7202 # with a dollar sign (not a hyphen), so the echo should work correctly.
7203 lt_compile=`echo "$ac_compile" | $SED \
7204 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7206 -e 's:$: $lt_compiler_flag:'`
7207 (eval echo "\"\$as_me:7207: $lt_compile\"" >&5)
7208 (eval "$lt_compile" 2>out/conftest.err)
7210 cat out/conftest.err >&5
7211 echo "$as_me:7211: \$? = $ac_status" >&5
7212 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7214 # The compiler can only warn and ignore the option if not recognized
7215 # So say no if there are warnings
7216 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7217 $SED '/^$/d' out/conftest.err >out/conftest.er2
7218 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7219 lt_cv_prog_compiler_c_o=yes
7224 # SGI C++ compiler will create directory out/ii_files/ for
7225 # template instantiation
7226 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7227 $rm out/* && rmdir out
7233 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7234 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7237 hard_links="nottested"
7238 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7239 # do not overwrite the value of need_locks provided by the user
7240 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7241 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7244 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7246 ln conftest.a conftest.b 2>&5 || hard_links=no
7247 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7248 echo "$as_me:$LINENO: result: $hard_links" >&5
7249 echo "${ECHO_T}$hard_links" >&6
7250 if test "$hard_links" = no; then
7251 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7252 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7259 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7260 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7263 allow_undefined_flag=
7264 enable_shared_with_static_runtimes=no
7266 archive_expsym_cmds=
7267 old_archive_From_new_cmds=
7268 old_archive_from_expsyms_cmds=
7269 export_dynamic_flag_spec=
7270 whole_archive_flag_spec=
7271 thread_safe_flag_spec=
7272 hardcode_libdir_flag_spec=
7273 hardcode_libdir_flag_spec_ld=
7274 hardcode_libdir_separator=
7277 hardcode_shlibpath_var=unsupported
7278 link_all_deplibs=unknown
7279 hardcode_automatic=no
7282 always_export_symbols=no
7283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7284 # include_expsyms should be a list of space-separated symbols to be *always*
7285 # included in the symbol list
7287 # exclude_expsyms can be an extended regexp of symbols to exclude
7288 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7289 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7290 # as well as any symbol that contains `d'.
7291 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7292 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7293 # platforms (ab)use it in PIC code, but their linkers get confused if
7294 # the symbol is explicitly referenced. Since portable code cannot
7295 # rely on this symbol name, it's probably fine to never include it in
7296 # preloaded symbol tables.
7297 extract_expsyms_cmds=
7298 # Just being paranoid about ensuring that cc_basename is set.
7299 for cc_temp in $compiler""; do
7301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7307 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7310 cygwin* | mingw* | pw32*)
7311 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7312 # When not using gcc, we currently assume that we are using
7313 # Microsoft Visual C++.
7314 if test "$GCC" != yes; then
7324 if test "$with_gnu_ld" = yes; then
7325 # If archive_cmds runs LD, not CC, wlarc should be empty
7328 # Set some defaults for GNU ld with shared library support. These
7329 # are reset later if shared libraries are not supported. Putting them
7330 # here allows them to be overridden if necessary.
7331 runpath_var=LD_RUN_PATH
7332 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7333 export_dynamic_flag_spec='${wl}--export-dynamic'
7334 # ancient GNU ld didn't support --whole-archive et. al.
7335 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7336 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7338 whole_archive_flag_spec=
7340 supports_anon_versioning=no
7341 case `$LD -v 2>/dev/null` in
7342 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7343 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7344 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7345 *\ 2.11.*) ;; # other 2.11 versions
7346 *) supports_anon_versioning=yes ;;
7349 # See if GNU ld supports shared libraries.
7351 aix3* | aix4* | aix5*)
7352 # On AIX/PPC, the GNU linker is very broken
7353 if test "$host_cpu" != ia64; then
7357 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7358 *** to be unable to reliably create shared libraries on AIX.
7359 *** Therefore, libtool is disabling shared libraries support. If you
7360 *** really care for shared libraries, you may want to modify your PATH
7361 *** so that a non-GNU linker is found, and then restart.
7368 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)'
7369 hardcode_libdir_flag_spec='-L$libdir'
7370 hardcode_minus_L=yes
7372 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7373 # that the semantics of dynamic libraries on AmigaOS, at least up
7374 # to version 4, is to share data among multiple programs linked
7375 # with the same dynamic library. Since this doesn't match the
7376 # behavior of shared libraries on other platforms, we can't use
7382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7383 allow_undefined_flag=unsupported
7384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7385 # support --undefined. This deserves some investigation. FIXME
7386 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7392 cygwin* | mingw* | pw32*)
7393 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7394 # as there is no search path for DLLs.
7395 hardcode_libdir_flag_spec='-L$libdir'
7396 allow_undefined_flag=unsupported
7397 always_export_symbols=no
7398 enable_shared_with_static_runtimes=yes
7399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7401 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7403 # If the export-symbols file already is a .def file (1st line
7404 # is EXPORTS), use it as is; otherwise, prepend...
7405 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7406 cp $export_symbols $output_objdir/$soname.def;
7408 echo EXPORTS > $output_objdir/$soname.def;
7409 cat $export_symbols >> $output_objdir/$soname.def;
7411 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7418 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7420 case $cc_basename,$host_cpu in
7421 pgcc*) # Portland Group C compiler
7422 whole_archive_flag_spec=
7424 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7425 whole_archive_flag_spec=
7426 tmp_addflag=' -fpic -Mnomain' ;;
7427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7428 tmp_addflag=' -i_dynamic' ;;
7429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7430 tmp_addflag=' -i_dynamic -nofor_main' ;;
7431 ifc* | ifort*) # Intel Fortran compiler
7432 tmp_addflag=' -nofor_main' ;;
7434 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7436 if test $supports_anon_versioning = yes; then
7437 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7439 $echo "local: *; };" >> $output_objdir/$libname.ver~
7440 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7449 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7453 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7458 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7462 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7463 *** create shared libraries on Solaris systems. Therefore, libtool
7464 *** is disabling shared libraries support. We urge you to upgrade GNU
7465 *** binutils to release 2.9.1 or newer. Another option is to modify
7466 *** your PATH or compiler configuration so that the native linker is
7467 *** used, and then restart.
7470 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7472 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7479 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7482 hardcode_shlibpath_var=no
7486 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7495 if test "$ld_shlibs" = no; then
7497 hardcode_libdir_flag_spec=
7498 export_dynamic_flag_spec=
7499 whole_archive_flag_spec=
7502 # PORTME fill in a description of your system's linker (not GNU ld)
7505 allow_undefined_flag=unsupported
7506 always_export_symbols=yes
7507 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'
7508 # Note: this linker hardcodes the directories in LIBPATH if there
7509 # are no directories specified by -L.
7510 hardcode_minus_L=yes
7511 if test "$GCC" = yes && test -z "$link_static_flag"; then
7512 # Neither direct hardcoding nor static linking is supported with a
7514 hardcode_direct=unsupported
7519 if test "$host_cpu" = ia64; then
7520 # On IA64, the linker does run time linking by default, so we don't
7521 # have to do anything special.
7522 aix_use_runtimelinking=no
7523 exp_sym_flag='-Bexport'
7526 # If we're using GNU nm, then we don't want the "-C" option.
7527 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7528 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7529 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'
7531 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'
7533 aix_use_runtimelinking=no
7535 # Test if we are trying to use run time linking or normal
7536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7537 # need to do runtime linking.
7538 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7539 for ld_flag in $LDFLAGS; do
7540 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7541 aix_use_runtimelinking=yes
7547 exp_sym_flag='-bexport'
7548 no_entry_flag='-bnoentry'
7551 # When large executables or shared objects are built, AIX ld can
7552 # have problems creating the table of contents. If linking a library
7553 # or program results in "error TOC overflow" add -mminimal-toc to
7554 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7555 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7559 hardcode_libdir_separator=':'
7560 link_all_deplibs=yes
7562 if test "$GCC" = yes; then
7563 case $host_os in aix4.[012]|aix4.[012].*)
7564 # We only want to do this on AIX 4.2 and lower, the check
7565 # below for broken collect2 doesn't work under 4.3+
7566 collect2name=`${CC} -print-prog-name=collect2`
7567 if test -f "$collect2name" && \
7568 strings "$collect2name" | grep resolve_lib_name >/dev/null
7570 # We have reworked collect2
7573 # We have old collect2
7574 hardcode_direct=unsupported
7575 # It fails to find uninstalled libraries when the uninstalled
7576 # path is not listed in the libpath. Setting hardcode_minus_L
7577 # to unsupported forces relinking
7578 hardcode_minus_L=yes
7579 hardcode_libdir_flag_spec='-L$libdir'
7580 hardcode_libdir_separator=
7583 shared_flag='-shared'
7584 if test "$aix_use_runtimelinking" = yes; then
7585 shared_flag="$shared_flag "'${wl}-G'
7589 if test "$host_cpu" = ia64; then
7590 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7591 # chokes on -Wl,-G. The following line is correct:
7594 if test "$aix_use_runtimelinking" = yes; then
7595 shared_flag='${wl}-G'
7597 shared_flag='${wl}-bM:SRE'
7602 # It seems that -bexpall does not export symbols beginning with
7603 # underscore (_), so it is better to generate a list of symbols to export.
7604 always_export_symbols=yes
7605 if test "$aix_use_runtimelinking" = yes; then
7606 # Warning - without using the other runtime loading flags (-brtl),
7607 # -berok will link without error, but may produce a broken library.
7608 allow_undefined_flag='-berok'
7609 # Determine the default libpath from the value encoded in an empty executable.
7610 cat >conftest.$ac_ext <<_ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7625 rm -f conftest.$ac_objext conftest$ac_exeext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7627 (eval $ac_link) 2>conftest.er1
7629 grep -v '^ *+' conftest.er1 >conftest.err
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag"
7635 || test ! -s conftest.err'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try='test -s conftest$ac_exeext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7650 # Check for a 64-bit object if we didn't find anything.
7651 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; }
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7658 rm -f conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
7660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7663 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7665 if test "$host_cpu" = ia64; then
7666 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7667 allow_undefined_flag="-z nodefs"
7668 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7670 # Determine the default libpath from the value encoded in an empty executable.
7671 cat >conftest.$ac_ext <<_ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7686 rm -f conftest.$ac_objext conftest$ac_exeext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7688 (eval $ac_link) 2>conftest.er1
7690 grep -v '^ *+' conftest.er1 >conftest.err
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } &&
7695 { ac_try='test -z "$ac_c_werror_flag"
7696 || test ! -s conftest.err'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; } &&
7702 { ac_try='test -s conftest$ac_exeext'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; }; then
7709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7711 # Check for a 64-bit object if we didn't find anything.
7712 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; }
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7719 rm -f conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7724 # Warning - without using the other run time loading flags,
7725 # -berok will link without error, but may produce a broken library.
7726 no_undefined_flag=' ${wl}-bernotok'
7727 allow_undefined_flag=' ${wl}-berok'
7728 # -bexpall does not export symbols beginning with underscore (_)
7729 always_export_symbols=yes
7730 # Exported symbols can be pulled into shared objects from archives
7731 whole_archive_flag_spec=' '
7732 archive_cmds_need_lc=yes
7733 # This is similar to how AIX traditionally builds it's shared libraries.
7734 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7740 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)'
7741 hardcode_libdir_flag_spec='-L$libdir'
7742 hardcode_minus_L=yes
7743 # see comment about different semantics on the GNU ld section
7748 export_dynamic_flag_spec=-rdynamic
7751 cygwin* | mingw* | pw32*)
7752 # When not using gcc, we currently assume that we are using
7753 # Microsoft Visual C++.
7754 # hardcode_libdir_flag_spec is actually meaningless, as there is
7755 # no search path for DLLs.
7756 hardcode_libdir_flag_spec=' '
7757 allow_undefined_flag=unsupported
7758 # Tell ltmain to make .lib files, not .a files.
7760 # Tell ltmain to make .dll files, not .so files.
7762 # FIXME: Setting linknames here is a bad hack.
7763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7764 # The linker will automatically build a .lib file if we build a DLL.
7765 old_archive_From_new_cmds='true'
7766 # FIXME: Should let the user specify the lib program.
7767 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7768 fix_srcfile_path='`cygpath -w "$srcfile"`'
7769 enable_shared_with_static_runtimes=yes
7772 darwin* | rhapsody*)
7774 rhapsody* | darwin1.[012])
7775 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7778 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7779 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7781 case ${MACOSX_DEPLOYMENT_TARGET} in
7783 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7786 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7792 archive_cmds_need_lc=no
7794 hardcode_automatic=yes
7795 hardcode_shlibpath_var=unsupported
7796 whole_archive_flag_spec=''
7797 link_all_deplibs=yes
7798 if test "$GCC" = yes ; then
7799 output_verbose_link_cmd='echo'
7800 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7801 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7802 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7803 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}'
7804 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}'
7806 case $cc_basename in
7808 output_verbose_link_cmd='echo'
7809 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7810 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7811 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7812 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}'
7813 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}'
7823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7824 hardcode_libdir_flag_spec='-L$libdir'
7825 hardcode_shlibpath_var=no
7832 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7833 # support. Future versions do this automatically, but an explicit c++rt0.o
7834 # does not break anything, and helps significantly (at the cost of a little
7837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7838 hardcode_libdir_flag_spec='-R$libdir'
7840 hardcode_shlibpath_var=no
7843 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7847 hardcode_minus_L=yes
7848 hardcode_shlibpath_var=no
7851 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7852 freebsd* | kfreebsd*-gnu | dragonfly*)
7853 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7854 hardcode_libdir_flag_spec='-R$libdir'
7856 hardcode_shlibpath_var=no
7860 if test "$GCC" = yes; then
7861 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'
7863 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'
7865 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7866 hardcode_libdir_separator=:
7869 # hardcode_minus_L: Not really in the search PATH,
7870 # but as the default location of the library.
7871 hardcode_minus_L=yes
7872 export_dynamic_flag_spec='${wl}-E'
7876 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7879 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7882 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7888 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7895 if test "$with_gnu_ld" = no; then
7898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7899 hardcode_libdir_flag_spec_ld='+b $libdir'
7900 hardcode_libdir_separator=:
7902 hardcode_shlibpath_var=no
7905 hardcode_libdir_flag_spec='-L$libdir'
7907 hardcode_shlibpath_var=no
7909 # hardcode_minus_L: Not really in the search PATH,
7910 # but as the default location of the library.
7911 hardcode_minus_L=yes
7914 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7915 hardcode_libdir_separator=:
7917 export_dynamic_flag_spec='${wl}-E'
7919 # hardcode_minus_L: Not really in the search PATH,
7920 # but as the default location of the library.
7921 hardcode_minus_L=yes
7927 irix5* | irix6* | nonstopux*)
7928 if test "$GCC" = yes; then
7929 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'
7931 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'
7932 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7935 hardcode_libdir_separator=:
7936 link_all_deplibs=yes
7940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7943 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7945 hardcode_libdir_flag_spec='-R$libdir'
7947 hardcode_shlibpath_var=no
7951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7954 hardcode_libdir_separator=:
7955 hardcode_shlibpath_var=no
7960 hardcode_shlibpath_var=no
7961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7963 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7965 export_dynamic_flag_spec='${wl}-E'
7968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7970 hardcode_libdir_flag_spec='-R$libdir'
7973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7981 hardcode_libdir_flag_spec='-L$libdir'
7982 hardcode_minus_L=yes
7983 allow_undefined_flag=unsupported
7984 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'
7985 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7989 if test "$GCC" = yes; then
7990 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7991 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'
7993 allow_undefined_flag=' -expect_unresolved \*'
7994 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'
7996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7997 hardcode_libdir_separator=:
8000 osf4* | osf5*) # as osf3* with the addition of -msym flag
8001 if test "$GCC" = yes; then
8002 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8003 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'
8004 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8006 allow_undefined_flag=' -expect_unresolved \*'
8007 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'
8008 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8009 $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'
8011 # Both c and cxx compiler support -rpath directly
8012 hardcode_libdir_flag_spec='-rpath $libdir'
8014 hardcode_libdir_separator=:
8018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8019 hardcode_shlibpath_var=no
8020 export_dynamic_flag_spec='${wl}-Bexport'
8021 runpath_var=LD_RUN_PATH
8022 hardcode_runpath_var=yes
8026 no_undefined_flag=' -z text'
8027 if test "$GCC" = yes; then
8029 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8030 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8031 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8034 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8035 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8036 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8038 hardcode_libdir_flag_spec='-R$libdir'
8039 hardcode_shlibpath_var=no
8041 solaris2.[0-5] | solaris2.[0-5].*) ;;
8043 # The compiler driver will combine linker options so we
8044 # cannot just pass the convience library names through
8045 # without $wl, iff we do not link with $LD.
8046 # Luckily, gcc supports the same syntax we need for Sun Studio.
8047 # Supported since Solaris 2.6 (maybe 2.5.1?)
8050 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8052 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' ;;
8055 link_all_deplibs=yes
8059 if test "x$host_vendor" = xsequent; then
8060 # Use $CC to link under sequent, because it throws in some extra .o
8061 # files that make .init and .fini sections work.
8062 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8064 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8066 hardcode_libdir_flag_spec='-L$libdir'
8068 hardcode_minus_L=yes
8069 hardcode_shlibpath_var=no
8073 case $host_vendor in
8075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076 hardcode_direct=yes # is this really true???
8079 ## LD is ld it makes a PLAMLIB
8080 ## CC just makes a GrossModule.
8081 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8082 reload_cmds='$CC -r -o $output$reload_objs'
8086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8087 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8090 runpath_var='LD_RUN_PATH'
8091 hardcode_shlibpath_var=no
8095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8096 hardcode_shlibpath_var=no
8097 export_dynamic_flag_spec='-Bexport'
8101 if test -d /usr/nec; then
8102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8103 hardcode_shlibpath_var=no
8104 runpath_var=LD_RUN_PATH
8105 hardcode_runpath_var=yes
8111 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8114 hardcode_shlibpath_var=no
8115 hardcode_runpath_var=yes
8116 runpath_var=LD_RUN_PATH
8119 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8120 no_undefined_flag='${wl}-z ${wl}text'
8121 if test "$GCC" = yes; then
8122 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8124 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8126 runpath_var='LD_RUN_PATH'
8127 hardcode_shlibpath_var=no
8131 no_undefined_flag=' -z text'
8132 # $CC -shared without GNU ld will not create a library from C++
8133 # object files and a static libstdc++, better avoid it by now
8134 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8135 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8136 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8137 hardcode_libdir_flag_spec=
8138 hardcode_shlibpath_var=no
8139 runpath_var='LD_RUN_PATH'
8143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8144 hardcode_libdir_flag_spec='-L$libdir'
8145 hardcode_shlibpath_var=no
8154 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8155 echo "${ECHO_T}$ld_shlibs" >&6
8156 test "$ld_shlibs" = no && can_build_shared=no
8158 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8159 if test "$GCC" = yes; then
8160 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8164 # Do we need to explicitly link libc?
8166 case "x$archive_cmds_need_lc" in
8168 # Assume -lc should be added
8169 archive_cmds_need_lc=yes
8171 if test "$enable_shared" = yes && test "$GCC" = yes; then
8172 case $archive_cmds in
8174 # FIXME: we may have to deal with multi-command sequences.
8177 # Test whether the compiler implicitly links with -lc since on some
8178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8179 # to ld, don't add -lc before -lgcc.
8180 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8181 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186 (eval $ac_compile) 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } 2>conftest.err; then
8192 libobjs=conftest.$ac_objext
8194 wl=$lt_prog_compiler_wl
8200 lt_save_allow_undefined_flag=$allow_undefined_flag
8201 allow_undefined_flag=
8202 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8203 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }
8208 archive_cmds_need_lc=no
8210 archive_cmds_need_lc=yes
8212 allow_undefined_flag=$lt_save_allow_undefined_flag
8214 cat conftest.err 1>&5
8217 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8218 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8225 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8226 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8228 libname_spec='lib$name'
8236 shlibpath_overrides_runpath=unknown
8238 dynamic_linker="$host_os ld.so"
8239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8240 if test "$GCC" = yes; then
8241 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8242 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8243 # if the path contains ";" then we assume it to be the separator
8244 # otherwise default to the standard path separator (i.e. ":") - it is
8245 # assumed that no part of a normal pathname contains ";" but that should
8246 # okay in the real world where ";" in dirpaths is itself problematic.
8247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8252 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8254 need_lib_prefix=unknown
8255 hardcode_into_libs=no
8257 # when you set need_version to no, make sure it does not cause -set_version
8258 # flags to be left without arguments
8259 need_version=unknown
8264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8265 shlibpath_var=LIBPATH
8267 # AIX 3 has no versioning support, so we append a major version to the name.
8268 soname_spec='${libname}${release}${shared_ext}$major'
8275 hardcode_into_libs=yes
8276 if test "$host_cpu" = ia64; then
8277 # AIX 5 supports IA64
8278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8279 shlibpath_var=LD_LIBRARY_PATH
8281 # With GCC up to 2.95.x, collect2 would create an import file
8282 # for dependence libraries. The import file would start with
8283 # the line `#! .'. This would cause the generated library to
8284 # depend on `.', always an invalid library. This was fixed in
8285 # development snapshots of GCC prior to 3.0.
8287 aix4 | aix4.[01] | aix4.[01].*)
8288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8290 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8298 # soname into executable. Probably we can add versioning support to
8299 # collect2, so additional links can be useful in future.
8300 if test "$aix_use_runtimelinking" = yes; then
8301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8302 # instead of lib<name>.a to let people know that these are not
8303 # typical AIX shared libraries.
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8306 # We preserve .a as extension for shared libraries through AIX4.2
8307 # and later when we are not doing run time linking.
8308 library_names_spec='${libname}${release}.a $libname.a'
8309 soname_spec='${libname}${release}${shared_ext}$major'
8311 shlibpath_var=LIBPATH
8316 library_names_spec='$libname.ixlibrary $libname.a'
8317 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8318 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'
8322 library_names_spec='${libname}${shared_ext}'
8323 dynamic_linker="$host_os ld.so"
8324 shlibpath_var=LIBRARY_PATH
8330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8331 soname_spec='${libname}${release}${shared_ext}$major'
8332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8333 shlibpath_var=LD_LIBRARY_PATH
8334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8336 # the default ld.so.conf also contains /usr/contrib/lib and
8337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8338 # libtool to hard-code these into programs
8341 cygwin* | mingw* | pw32*)
8342 version_type=windows
8347 case $GCC,$host_os in
8348 yes,cygwin* | yes,mingw* | yes,pw32*)
8349 library_names_spec='$libname.dll.a'
8350 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8351 postinstall_cmds='base_file=`basename \${file}`~
8352 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8353 dldir=$destdir/`dirname \$dlpath`~
8354 test -d \$dldir || mkdir -p \$dldir~
8355 $install_prog $dir/$dlname \$dldir/$dlname'
8356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8357 dlpath=$dir/\$dldll~
8359 shlibpath_overrides_runpath=yes
8363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8364 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8365 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8368 # MinGW DLLs use traditional 'lib' prefix
8369 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8370 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8371 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8372 # It is most probably a Windows format PATH printed by
8373 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8374 # path with ; separators, and with drive letters. We can handle the
8375 # drive letters (cygwin fileutils understands them), so leave them,
8376 # especially as we might pass files found there to a mingw objdump,
8377 # which wouldn't understand a cygwinified path. Ahh.
8378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8384 # pw32 DLLs use 'pw' prefix rather than 'lib'
8385 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8391 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8394 dynamic_linker='Win32 ld.exe'
8395 # FIXME: first we should search . and the directory the executable is in
8399 darwin* | rhapsody*)
8400 dynamic_linker="$host_os dyld"
8404 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8405 soname_spec='${libname}${release}${major}$shared_ext'
8406 shlibpath_overrides_runpath=yes
8407 shlibpath_var=DYLD_LIBRARY_PATH
8408 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8409 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8410 if test "$GCC" = yes; then
8411 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"`
8413 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8415 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8423 soname_spec='${libname}${release}${shared_ext}$major'
8424 shlibpath_var=LD_LIBRARY_PATH
8435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8436 soname_spec='${libname}${release}${shared_ext}$major'
8437 shlibpath_var=LD_LIBRARY_PATH
8438 shlibpath_overrides_runpath=no
8439 hardcode_into_libs=yes
8440 dynamic_linker='GNU ld.so'
8443 freebsd* | dragonfly*)
8444 # DragonFly does not have aout. When/if they implement a new
8445 # versioning mechanism, adjust this.
8446 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8447 version_type=freebsd-$objformat
8448 case $version_type in
8450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8459 shlibpath_var=LD_LIBRARY_PATH
8462 shlibpath_overrides_runpath=yes
8464 freebsd3.[01]* | freebsdelf3.[01]*)
8465 shlibpath_overrides_runpath=yes
8466 hardcode_into_libs=yes
8469 shlibpath_overrides_runpath=no
8470 hardcode_into_libs=yes
8479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8480 soname_spec='${libname}${release}${shared_ext}$major'
8481 shlibpath_var=LD_LIBRARY_PATH
8482 hardcode_into_libs=yes
8485 hpux9* | hpux10* | hpux11*)
8486 # Give a soname corresponding to the major version so that dld.sl refuses to
8487 # link against other versions.
8494 hardcode_into_libs=yes
8495 dynamic_linker="$host_os dld.so"
8496 shlibpath_var=LD_LIBRARY_PATH
8497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8499 soname_spec='${libname}${release}${shared_ext}$major'
8500 if test "X$HPUX_IA64_MODE" = X32; then
8501 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8503 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8505 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8509 hardcode_into_libs=yes
8510 dynamic_linker="$host_os dld.sl"
8511 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8514 soname_spec='${libname}${release}${shared_ext}$major'
8515 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8516 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8520 dynamic_linker="$host_os dld.sl"
8521 shlibpath_var=SHLIB_PATH
8522 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8524 soname_spec='${libname}${release}${shared_ext}$major'
8527 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8528 postinstall_cmds='chmod 555 $lib'
8531 irix5* | irix6* | nonstopux*)
8533 nonstopux*) version_type=nonstopux ;;
8535 if test "$lt_cv_prog_gnu_ld" = yes; then
8543 soname_spec='${libname}${release}${shared_ext}$major'
8544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8546 irix5* | nonstopux*)
8550 case $LD in # libtool.m4 will add one of these switches to LD
8551 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8552 libsuff= shlibsuff= libmagic=32-bit;;
8553 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8554 libsuff=32 shlibsuff=N32 libmagic=N32;;
8555 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8556 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8557 *) libsuff= shlibsuff= libmagic=never-match;;
8561 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8562 shlibpath_overrides_runpath=no
8563 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8564 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8565 hardcode_into_libs=yes
8568 # No shared lib support for Linux oldld, aout, or coff.
8569 linux*oldld* | linux*aout* | linux*coff*)
8573 # This must be Linux ELF.
8578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8579 soname_spec='${libname}${release}${shared_ext}$major'
8580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8581 shlibpath_var=LD_LIBRARY_PATH
8582 shlibpath_overrides_runpath=no
8583 # This implies no fast_install, which is unacceptable.
8584 # Some rework will be needed to allow for fast_install
8585 # before this can be enabled.
8586 hardcode_into_libs=yes
8588 # find out which ABI we are using
8591 x86_64*|s390x*|powerpc64*)
8592 echo '#line 8592 "configure"' > conftest.$ac_ext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8594 (eval $ac_compile) 2>&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; then
8598 case `/usr/bin/file conftest.$ac_objext` in
8601 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8609 # Append ld.so.conf contents to the search path
8610 if test -f /etc/ld.so.conf; then
8611 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8612 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8615 # We used to test for /lib/ld.so.1 and disable shared libraries on
8616 # powerpc, because MkLinux only supported shared libraries with the
8617 # GNU dynamic linker. Since this was broken with cross compilers,
8618 # most powerpc-linux boxes support dynamic linking these days and
8619 # people can always --disable-shared, the test was removed, and we
8620 # assume the GNU/Linux dynamic linker is in use.
8621 dynamic_linker='GNU/Linux ld.so'
8628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8629 soname_spec='${libname}${release}${shared_ext}$major'
8630 shlibpath_var=LD_LIBRARY_PATH
8631 shlibpath_overrides_runpath=no
8632 hardcode_into_libs=yes
8633 dynamic_linker='GNU ld.so'
8640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8643 dynamic_linker='NetBSD (a.out) ld.so'
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8646 soname_spec='${libname}${release}${shared_ext}$major'
8647 dynamic_linker='NetBSD ld.elf_so'
8649 shlibpath_var=LD_LIBRARY_PATH
8650 shlibpath_overrides_runpath=yes
8651 hardcode_into_libs=yes
8656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8657 shlibpath_var=LD_LIBRARY_PATH
8658 shlibpath_overrides_runpath=yes
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666 soname_spec='${libname}${release}${shared_ext}$major'
8667 shlibpath_var=LD_LIBRARY_PATH
8668 shlibpath_overrides_runpath=yes
8675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8677 shlibpath_var=LD_LIBRARY_PATH
8678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8680 openbsd2.[89] | openbsd2.[89].*)
8681 shlibpath_overrides_runpath=no
8684 shlibpath_overrides_runpath=yes
8688 shlibpath_overrides_runpath=yes
8693 libname_spec='$name'
8696 library_names_spec='$libname${shared_ext} $libname.a'
8697 dynamic_linker='OS/2 ld.exe'
8698 shlibpath_var=LIBPATH
8701 osf3* | osf4* | osf5*)
8705 soname_spec='${libname}${release}${shared_ext}$major'
8706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8707 shlibpath_var=LD_LIBRARY_PATH
8708 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8709 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8714 soname_spec='${libname}${release}${shared_ext}$major'
8715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8716 shlibpath_var=LD_LIBRARY_PATH
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 shlibpath_var=LD_LIBRARY_PATH
8726 shlibpath_overrides_runpath=yes
8727 hardcode_into_libs=yes
8728 # ldd complains unless libraries are executable
8729 postinstall_cmds='chmod +x $lib'
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8735 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8736 shlibpath_var=LD_LIBRARY_PATH
8737 shlibpath_overrides_runpath=yes
8738 if test "$with_gnu_ld" = yes; then
8744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747 soname_spec='${libname}${release}${shared_ext}$major'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 case $host_vendor in
8751 shlibpath_overrides_runpath=no
8753 export_dynamic_flag_spec='${wl}-Blargedynsym'
8754 runpath_var=LD_RUN_PATH
8762 shlibpath_overrides_runpath=no
8763 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8769 if test -d /usr/nec ;then
8771 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8772 soname_spec='$libname${shared_ext}.$major'
8773 shlibpath_var=LD_LIBRARY_PATH
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 shlibpath_var=LD_LIBRARY_PATH
8788 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8789 echo "${ECHO_T}$dynamic_linker" >&6
8790 test "$dynamic_linker" = no && can_build_shared=no
8792 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8793 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8795 if test -n "$hardcode_libdir_flag_spec" || \
8796 test -n "$runpath_var" || \
8797 test "X$hardcode_automatic" = "Xyes" ; then
8799 # We can hardcode non-existant directories.
8800 if test "$hardcode_direct" != no &&
8801 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8802 # have to relink, otherwise we might link with an installed library
8803 # when we should be linking with a yet-to-be-installed one
8804 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8805 test "$hardcode_minus_L" != no; then
8806 # Linking always hardcodes the temporary library directory.
8807 hardcode_action=relink
8809 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8810 hardcode_action=immediate
8813 # We cannot hardcode anything, or else we can only hardcode existing
8815 hardcode_action=unsupported
8817 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8818 echo "${ECHO_T}$hardcode_action" >&6
8820 if test "$hardcode_action" = relink; then
8821 # Fast installation is not supported
8822 enable_fast_install=no
8823 elif test "$shlibpath_overrides_runpath" = yes ||
8824 test "$enable_shared" = no; then
8825 # Fast installation is not necessary
8826 enable_fast_install=needless
8831 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8832 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8833 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8834 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8835 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8836 echo "$as_me:$LINENO: result: yes" >&5
8837 echo "${ECHO_T}yes" >&6
8839 # FIXME - insert some real tests, host_os isn't really good enough
8842 if test -n "$STRIP" ; then
8843 striplib="$STRIP -x"
8844 echo "$as_me:$LINENO: result: yes" >&5
8845 echo "${ECHO_T}yes" >&6
8847 echo "$as_me:$LINENO: result: no" >&5
8848 echo "${ECHO_T}no" >&6
8852 echo "$as_me:$LINENO: result: no" >&5
8853 echo "${ECHO_T}no" >&6
8858 if test "x$enable_dlopen" != xyes; then
8859 enable_dlopen=unknown
8860 enable_dlopen_self=unknown
8861 enable_dlopen_self_static=unknown
8868 lt_cv_dlopen="load_add_on"
8870 lt_cv_dlopen_self=yes
8874 lt_cv_dlopen="LoadLibrary"
8879 lt_cv_dlopen="dlopen"
8884 # if libdl is installed we need to link against it
8885 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8886 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 ac_check_lib_save_LIBS=$LIBS
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8899 /* Override any gcc2 internal prototype to avoid an error. */
8903 /* We use char because int might match the return type of a gcc2
8904 builtin and then its argument prototype would still apply. */
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8918 grep -v '^ *+' conftest.er1 >conftest.err
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_lib_dl_dlopen=yes
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_cv_lib_dl_dlopen=no
8943 rm -f conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 LIBS=$ac_check_lib_save_LIBS
8947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8949 if test $ac_cv_lib_dl_dlopen = yes; then
8950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8955 lt_cv_dlopen_self=yes
8962 echo "$as_me:$LINENO: checking for shl_load" >&5
8963 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8964 if test "${ac_cv_func_shl_load+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 cat >conftest.$ac_ext <<_ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8973 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8975 #define shl_load innocuous_shl_load
8977 /* System header to define __stub macros and hopefully few prototypes,
8978 which can conflict with char shl_load (); below.
8979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8980 <limits.h> exists even on freestanding compilers. */
8983 # include <limits.h>
8985 # include <assert.h>
8990 /* Override any gcc2 internal prototype to avoid an error. */
8995 /* We use char because int might match the return type of a gcc2
8996 builtin and then its argument prototype would still apply. */
8998 /* The GNU C library defines this for functions which it implements
8999 to always fail with ENOSYS. Some functions are actually named
9000 something starting with __ and the normal name is an alias. */
9001 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9004 char (*f) () = shl_load;
9013 return f != shl_load;
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020 (eval $ac_link) 2>conftest.er1
9022 grep -v '^ *+' conftest.er1 >conftest.err
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } &&
9027 { ac_try='test -z "$ac_c_werror_flag"
9028 || test ! -s conftest.err'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; } &&
9034 { ac_try='test -s conftest$ac_exeext'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 ac_cv_func_shl_load=yes
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 ac_cv_func_shl_load=no
9047 rm -f conftest.err conftest.$ac_objext \
9048 conftest$ac_exeext conftest.$ac_ext
9050 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9051 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9052 if test $ac_cv_func_shl_load = yes; then
9053 lt_cv_dlopen="shl_load"
9055 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9056 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9057 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 ac_check_lib_save_LIBS=$LIBS
9062 cat >conftest.$ac_ext <<_ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9069 /* Override any gcc2 internal prototype to avoid an error. */
9073 /* We use char because int might match the return type of a gcc2
9074 builtin and then its argument prototype would still apply. */
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086 (eval $ac_link) 2>conftest.er1
9088 grep -v '^ *+' conftest.er1 >conftest.err
9090 cat conftest.err >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try='test -z "$ac_c_werror_flag"
9094 || test ! -s conftest.err'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; } &&
9100 { ac_try='test -s conftest$ac_exeext'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
9106 ac_cv_lib_dld_shl_load=yes
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9111 ac_cv_lib_dld_shl_load=no
9113 rm -f conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
9115 LIBS=$ac_check_lib_save_LIBS
9117 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9118 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9119 if test $ac_cv_lib_dld_shl_load = yes; then
9120 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9122 echo "$as_me:$LINENO: checking for dlopen" >&5
9123 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9124 if test "${ac_cv_func_dlopen+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 cat >conftest.$ac_ext <<_ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9133 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9135 #define dlopen innocuous_dlopen
9137 /* System header to define __stub macros and hopefully few prototypes,
9138 which can conflict with char dlopen (); below.
9139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9140 <limits.h> exists even on freestanding compilers. */
9143 # include <limits.h>
9145 # include <assert.h>
9150 /* Override any gcc2 internal prototype to avoid an error. */
9155 /* We use char because int might match the return type of a gcc2
9156 builtin and then its argument prototype would still apply. */
9158 /* The GNU C library defines this for functions which it implements
9159 to always fail with ENOSYS. Some functions are actually named
9160 something starting with __ and the normal name is an alias. */
9161 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9164 char (*f) () = dlopen;
9178 rm -f conftest.$ac_objext conftest$ac_exeext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9180 (eval $ac_link) 2>conftest.er1
9182 grep -v '^ *+' conftest.er1 >conftest.err
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_c_werror_flag"
9188 || test ! -s conftest.err'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; } &&
9194 { ac_try='test -s conftest$ac_exeext'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 ac_cv_func_dlopen=yes
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9205 ac_cv_func_dlopen=no
9207 rm -f conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9211 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9212 if test $ac_cv_func_dlopen = yes; then
9213 lt_cv_dlopen="dlopen"
9215 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9216 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 ac_check_lib_save_LIBS=$LIBS
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9229 /* Override any gcc2 internal prototype to avoid an error. */
9233 /* We use char because int might match the return type of a gcc2
9234 builtin and then its argument prototype would still apply. */
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9246 (eval $ac_link) 2>conftest.er1
9248 grep -v '^ *+' conftest.er1 >conftest.err
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } &&
9253 { ac_try='test -z "$ac_c_werror_flag"
9254 || test ! -s conftest.err'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest$ac_exeext'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
9266 ac_cv_lib_dl_dlopen=yes
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9271 ac_cv_lib_dl_dlopen=no
9273 rm -f conftest.err conftest.$ac_objext \
9274 conftest$ac_exeext conftest.$ac_ext
9275 LIBS=$ac_check_lib_save_LIBS
9277 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9278 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9279 if test $ac_cv_lib_dl_dlopen = yes; then
9280 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9282 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9283 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9284 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 ac_check_lib_save_LIBS=$LIBS
9289 cat >conftest.$ac_ext <<_ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9296 /* Override any gcc2 internal prototype to avoid an error. */
9300 /* We use char because int might match the return type of a gcc2
9301 builtin and then its argument prototype would still apply. */
9311 rm -f conftest.$ac_objext conftest$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313 (eval $ac_link) 2>conftest.er1
9315 grep -v '^ *+' conftest.er1 >conftest.err
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try='test -z "$ac_c_werror_flag"
9321 || test ! -s conftest.err'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; } &&
9327 { ac_try='test -s conftest$ac_exeext'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; }; then
9333 ac_cv_lib_svld_dlopen=yes
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_cv_lib_svld_dlopen=no
9340 rm -f conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9342 LIBS=$ac_check_lib_save_LIBS
9344 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9345 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9346 if test $ac_cv_lib_svld_dlopen = yes; then
9347 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9349 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9350 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9351 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 ac_check_lib_save_LIBS=$LIBS
9356 cat >conftest.$ac_ext <<_ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9363 /* Override any gcc2 internal prototype to avoid an error. */
9367 /* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380 (eval $ac_link) 2>conftest.er1
9382 grep -v '^ *+' conftest.er1 >conftest.err
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 ac_cv_lib_dld_dld_link=yes
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_cv_lib_dld_dld_link=no
9407 rm -f conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9409 LIBS=$ac_check_lib_save_LIBS
9411 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9412 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9413 if test $ac_cv_lib_dld_dld_link = yes; then
9414 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9435 if test "x$lt_cv_dlopen" != xno; then
9441 case $lt_cv_dlopen in
9443 save_CPPFLAGS="$CPPFLAGS"
9444 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9446 save_LDFLAGS="$LDFLAGS"
9447 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9450 LIBS="$lt_cv_dlopen_libs $LIBS"
9452 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9453 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9454 if test "${lt_cv_dlopen_self+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 if test "$cross_compiling" = yes; then :
9458 lt_cv_dlopen_self=cross
9460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9461 lt_status=$lt_dlunknown
9462 cat > conftest.$ac_ext <<EOF
9463 #line 9463 "configure"
9464 #include "confdefs.h"
9473 # define LT_DLGLOBAL RTLD_GLOBAL
9476 # define LT_DLGLOBAL DL_GLOBAL
9478 # define LT_DLGLOBAL 0
9482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9483 find out it does not work in some platform. */
9484 #ifndef LT_DLLAZY_OR_NOW
9486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9489 # define LT_DLLAZY_OR_NOW DL_LAZY
9492 # define LT_DLLAZY_OR_NOW RTLD_NOW
9495 # define LT_DLLAZY_OR_NOW DL_NOW
9497 # define LT_DLLAZY_OR_NOW 0
9505 extern "C" void exit (int);
9508 void fnord() { int i=42;}
9511 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9512 int status = $lt_dlunknown;
9516 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9517 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9518 /* dlclose (self); */
9524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525 (eval $ac_link) 2>&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9529 (./conftest; exit; ) 2>/dev/null
9532 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9533 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9534 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9537 # compilation failed
9538 lt_cv_dlopen_self=no
9545 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9546 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9548 if test "x$lt_cv_dlopen_self" = xyes; then
9549 LDFLAGS="$LDFLAGS $link_static_flag"
9550 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9551 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9552 if test "${lt_cv_dlopen_self_static+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 if test "$cross_compiling" = yes; then :
9556 lt_cv_dlopen_self_static=cross
9558 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9559 lt_status=$lt_dlunknown
9560 cat > conftest.$ac_ext <<EOF
9561 #line 9561 "configure"
9562 #include "confdefs.h"
9571 # define LT_DLGLOBAL RTLD_GLOBAL
9574 # define LT_DLGLOBAL DL_GLOBAL
9576 # define LT_DLGLOBAL 0
9580 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9581 find out it does not work in some platform. */
9582 #ifndef LT_DLLAZY_OR_NOW
9584 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9587 # define LT_DLLAZY_OR_NOW DL_LAZY
9590 # define LT_DLLAZY_OR_NOW RTLD_NOW
9593 # define LT_DLLAZY_OR_NOW DL_NOW
9595 # define LT_DLLAZY_OR_NOW 0
9603 extern "C" void exit (int);
9606 void fnord() { int i=42;}
9609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9610 int status = $lt_dlunknown;
9614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9615 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9616 /* dlclose (self); */
9622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623 (eval $ac_link) 2>&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9627 (./conftest; exit; ) 2>/dev/null
9630 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9631 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9632 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9635 # compilation failed
9636 lt_cv_dlopen_self_static=no
9643 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9644 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9647 CPPFLAGS="$save_CPPFLAGS"
9648 LDFLAGS="$save_LDFLAGS"
9653 case $lt_cv_dlopen_self in
9654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9655 *) enable_dlopen_self=unknown ;;
9658 case $lt_cv_dlopen_self_static in
9659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9660 *) enable_dlopen_self_static=unknown ;;
9665 # Report which librarie types wil actually be built
9666 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9667 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9668 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9669 echo "${ECHO_T}$can_build_shared" >&6
9671 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9672 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9673 test "$can_build_shared" = "no" && enable_shared=no
9675 # On AIX, shared libraries and static libraries use the same namespace, and
9676 # are all built from PIC.
9679 test "$enable_shared" = yes && enable_static=no
9680 if test -n "$RANLIB"; then
9681 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9682 postinstall_cmds='$RANLIB $lib'
9687 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9688 test "$enable_shared" = yes && enable_static=no
9692 echo "$as_me:$LINENO: result: $enable_shared" >&5
9693 echo "${ECHO_T}$enable_shared" >&6
9695 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9696 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9697 # Make sure either enable_shared or enable_static is yes.
9698 test "$enable_shared" = yes || enable_static=yes
9699 echo "$as_me:$LINENO: result: $enable_static" >&5
9700 echo "${ECHO_T}$enable_static" >&6
9702 # The else clause should only fire when bootstrapping the
9703 # libtool distribution, otherwise you forgot to ship ltmain.sh
9704 # with your package, and you will get complaints that there are
9705 # no rules to generate ltmain.sh.
9706 if test -f "$ltmain"; then
9707 # See if we are running on zsh, and set the options which allow our commands through
9708 # without removal of \ escapes.
9709 if test -n "${ZSH_VERSION+set}" ; then
9710 setopt NO_GLOB_SUBST
9712 # Now quote all the things that may contain metacharacters while being
9713 # careful not to overquote the AC_SUBSTed values. We take copies of the
9714 # variables and quote the copies for generation of the libtool script.
9715 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9717 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9718 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9719 deplibs_check_method reload_flag reload_cmds need_locks \
9720 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9721 lt_cv_sys_global_symbol_to_c_name_address \
9722 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9723 old_postinstall_cmds old_postuninstall_cmds \
9727 lt_prog_compiler_wl \
9728 lt_prog_compiler_pic \
9729 lt_prog_compiler_static \
9730 lt_prog_compiler_no_builtin_flag \
9731 export_dynamic_flag_spec \
9732 thread_safe_flag_spec \
9733 whole_archive_flag_spec \
9734 enable_shared_with_static_runtimes \
9736 old_archive_from_new_cmds \
9741 compiler_lib_search_path \
9743 archive_expsym_cmds \
9745 postuninstall_cmds \
9746 old_archive_from_expsyms_cmds \
9747 allow_undefined_flag \
9749 export_symbols_cmds \
9750 hardcode_libdir_flag_spec \
9751 hardcode_libdir_flag_spec_ld \
9752 hardcode_libdir_separator \
9753 hardcode_automatic \
9755 module_expsym_cmds \
9756 lt_cv_prog_compiler_c_o \
9761 old_archive_cmds | \
9762 old_archive_from_new_cmds | \
9764 archive_expsym_cmds | \
9766 module_expsym_cmds | \
9767 old_archive_from_expsyms_cmds | \
9768 export_symbols_cmds | \
9769 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9770 postinstall_cmds | postuninstall_cmds | \
9771 old_postinstall_cmds | old_postuninstall_cmds | \
9772 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9773 # Double-quote double-evaled strings.
9774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9783 *'\$0 --fallback-echo"')
9784 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9789 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9791 { echo "$as_me:$LINENO: creating $ofile" >&5
9792 echo "$as_me: creating $ofile" >&6;}
9794 cat <<__EOF__ >> "$cfgfile"
9797 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9798 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9799 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9801 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9802 # Free Software Foundation, Inc.
9804 # This file is part of GNU Libtool:
9805 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9807 # This program is free software; you can redistribute it and/or modify
9808 # it under the terms of the GNU General Public License as published by
9809 # the Free Software Foundation; either version 2 of the License, or
9810 # (at your option) any later version.
9812 # This program is distributed in the hope that it will be useful, but
9813 # WITHOUT ANY WARRANTY; without even the implied warranty of
9814 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9815 # General Public License for more details.
9817 # You should have received a copy of the GNU General Public License
9818 # along with this program; if not, write to the Free Software
9819 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9821 # As a special exception to the GNU General Public License, if you
9822 # distribute this file as part of a program that contains a
9823 # configuration script generated by Autoconf, you may include it under
9824 # the same distribution terms that you use for the rest of that program.
9826 # A sed program that does not truncate output.
9829 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9830 Xsed="$SED -e 1s/^X//"
9832 # The HP-UX ksh and POSIX shell print the target directory to stdout
9834 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9836 # The names of the tagged configurations supported by this script.
9839 # ### BEGIN LIBTOOL CONFIG
9841 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9843 # Shell to use when invoking shell scripts.
9846 # Whether or not to build shared libraries.
9847 build_libtool_libs=$enable_shared
9849 # Whether or not to build static libraries.
9850 build_old_libs=$enable_static
9852 # Whether or not to add -lc for building shared libraries.
9853 build_libtool_need_lc=$archive_cmds_need_lc
9855 # Whether or not to disallow shared libs when runtime libs are static
9856 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9858 # Whether or not to optimize for fast installation.
9859 fast_install=$enable_fast_install
9862 host_alias=$host_alias
9867 build_alias=$build_alias
9871 # An echo program that does not interpret backslashes.
9876 AR_FLAGS=$lt_AR_FLAGS
9881 # A language-specific compiler.
9884 # Is the compiler the GNU C compiler?
9890 # The linker used to build libraries.
9893 # Whether we need hard or soft links.
9896 # A BSD-compatible nm program.
9899 # A symbol stripping program
9902 # Used to examine libraries when file_magic_cmd begins "file"
9903 MAGIC_CMD=$MAGIC_CMD
9905 # Used on cygwin: DLL creation program.
9908 # Used on cygwin: object dumper.
9911 # Used on cygwin: assembler.
9914 # The name of the directory that contains temporary libtool files.
9917 # How to create reloadable object files.
9918 reload_flag=$lt_reload_flag
9919 reload_cmds=$lt_reload_cmds
9921 # How to pass a linker flag through the compiler.
9922 wl=$lt_lt_prog_compiler_wl
9924 # Object file suffix (normally "o").
9927 # Old archive suffix (normally "a").
9930 # Shared library suffix (normally ".so").
9931 shrext_cmds='$shrext_cmds'
9933 # Executable file suffix (normally "").
9936 # Additional compiler flags for building library objects.
9937 pic_flag=$lt_lt_prog_compiler_pic
9940 # What is the maximum length of a command?
9941 max_cmd_len=$lt_cv_sys_max_cmd_len
9943 # Does compiler simultaneously support -c and -o options?
9944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9946 # Must we lock files when doing compilation?
9947 need_locks=$lt_need_locks
9949 # Do we need the lib prefix for modules?
9950 need_lib_prefix=$need_lib_prefix
9952 # Do we need a version for libraries?
9953 need_version=$need_version
9955 # Whether dlopen is supported.
9956 dlopen_support=$enable_dlopen
9958 # Whether dlopen of programs is supported.
9959 dlopen_self=$enable_dlopen_self
9961 # Whether dlopen of statically linked programs is supported.
9962 dlopen_self_static=$enable_dlopen_self_static
9964 # Compiler flag to prevent dynamic linking.
9965 link_static_flag=$lt_lt_prog_compiler_static
9967 # Compiler flag to turn off builtin functions.
9968 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9970 # Compiler flag to allow reflexive dlopens.
9971 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9973 # Compiler flag to generate shared objects directly from archives.
9974 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9976 # Compiler flag to generate thread-safe objects.
9977 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9979 # Library versioning type.
9980 version_type=$version_type
9982 # Format of library name prefix.
9983 libname_spec=$lt_libname_spec
9985 # List of archive names. First name is the real one, the rest are links.
9986 # The last name is the one that the linker finds with -lNAME.
9987 library_names_spec=$lt_library_names_spec
9989 # The coded name of the library, if different from the real name.
9990 soname_spec=$lt_soname_spec
9992 # Commands used to build and install an old-style archive.
9994 old_archive_cmds=$lt_old_archive_cmds
9995 old_postinstall_cmds=$lt_old_postinstall_cmds
9996 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9998 # Create an old-style archive from a shared archive.
9999 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10001 # Create a temporary old-style archive to link instead of a shared archive.
10002 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10004 # Commands used to build and install a shared archive.
10005 archive_cmds=$lt_archive_cmds
10006 archive_expsym_cmds=$lt_archive_expsym_cmds
10007 postinstall_cmds=$lt_postinstall_cmds
10008 postuninstall_cmds=$lt_postuninstall_cmds
10010 # Commands used to build a loadable module (assumed same as above if empty)
10011 module_cmds=$lt_module_cmds
10012 module_expsym_cmds=$lt_module_expsym_cmds
10014 # Commands to strip libraries.
10015 old_striplib=$lt_old_striplib
10016 striplib=$lt_striplib
10018 # Dependencies to place before the objects being linked to create a
10020 predep_objects=$lt_predep_objects
10022 # Dependencies to place after the objects being linked to create a
10024 postdep_objects=$lt_postdep_objects
10026 # Dependencies to place before the objects being linked to create a
10028 predeps=$lt_predeps
10030 # Dependencies to place after the objects being linked to create a
10032 postdeps=$lt_postdeps
10034 # The library search path used internally by the compiler when linking
10035 # a shared library.
10036 compiler_lib_search_path=$lt_compiler_lib_search_path
10038 # Method to check whether dependent libraries are shared objects.
10039 deplibs_check_method=$lt_deplibs_check_method
10041 # Command to use when deplibs_check_method == file_magic.
10042 file_magic_cmd=$lt_file_magic_cmd
10044 # Flag that allows shared libraries with undefined symbols to be built.
10045 allow_undefined_flag=$lt_allow_undefined_flag
10047 # Flag that forces no undefined symbols.
10048 no_undefined_flag=$lt_no_undefined_flag
10050 # Commands used to finish a libtool library installation in a directory.
10051 finish_cmds=$lt_finish_cmds
10053 # Same as above, but a single script fragment to be evaled but not shown.
10054 finish_eval=$lt_finish_eval
10056 # Take the output of nm and produce a listing of raw symbols and C names.
10057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10059 # Transform the output of nm in a proper C declaration
10060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10062 # Transform the output of nm in a C name address pair
10063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10065 # This is the shared library runtime path variable.
10066 runpath_var=$runpath_var
10068 # This is the shared library path variable.
10069 shlibpath_var=$shlibpath_var
10071 # Is shlibpath searched before the hard-coded library search path?
10072 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10074 # How to hardcode a shared library path into an executable.
10075 hardcode_action=$hardcode_action
10077 # Whether we should hardcode library paths into libraries.
10078 hardcode_into_libs=$hardcode_into_libs
10080 # Flag to hardcode \$libdir into a binary during linking.
10081 # This must work even if \$libdir does not exist.
10082 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10084 # If ld is used when linking, flag to hardcode \$libdir into
10085 # a binary during linking. This must work even if \$libdir does
10087 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10089 # Whether we need a single -rpath flag with a separated argument.
10090 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10092 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10093 # resulting binary.
10094 hardcode_direct=$hardcode_direct
10096 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10097 # resulting binary.
10098 hardcode_minus_L=$hardcode_minus_L
10100 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10101 # the resulting binary.
10102 hardcode_shlibpath_var=$hardcode_shlibpath_var
10104 # Set to yes if building a shared library automatically hardcodes DIR into the library
10105 # and all subsequent libraries and executables linked against it.
10106 hardcode_automatic=$hardcode_automatic
10108 # Variables whose values should be saved in libtool wrapper scripts and
10109 # restored at relink time.
10110 variables_saved_for_relink="$variables_saved_for_relink"
10112 # Whether libtool must link a program against all its dependency libraries.
10113 link_all_deplibs=$link_all_deplibs
10115 # Compile-time system search path for libraries
10116 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10118 # Run-time system search path for libraries
10119 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10121 # Fix the shell variable \$srcfile for the compiler.
10122 fix_srcfile_path="$fix_srcfile_path"
10124 # Set to yes if exported symbols are required.
10125 always_export_symbols=$always_export_symbols
10127 # The commands to list exported symbols.
10128 export_symbols_cmds=$lt_export_symbols_cmds
10130 # The commands to extract the exported symbol list from a shared archive.
10131 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10133 # Symbols that should not be listed in the preloaded symbols.
10134 exclude_expsyms=$lt_exclude_expsyms
10136 # Symbols that must always be exported.
10137 include_expsyms=$lt_include_expsyms
10139 # ### END LIBTOOL CONFIG
10146 cat <<\EOF >> "$cfgfile"
10148 # AIX sometimes has problems with the GCC collect2 program. For some
10149 # reason, if we set the COLLECT_NAMES environment variable, the problems
10150 # vanish in a puff of smoke.
10151 if test "X${COLLECT_NAMES+set}" != Xset; then
10153 export COLLECT_NAMES
10159 # We use sed instead of cat because bash on DJGPP gets confused if
10160 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10161 # text mode, it properly converts lines to CR/LF. This bash problem
10162 # is reportedly fixed, but why not run on old versions too?
10163 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10165 mv -f "$cfgfile" "$ofile" || \
10166 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10170 # If there is no Makefile yet, we rely on a make rule to execute
10171 # `config.status --recheck' to rerun these tests and create the
10172 # libtool script then.
10173 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10174 if test -f "$ltmain_in"; then
10175 test -f Makefile && make "$ltmain"
10181 ac_cpp='$CPP $CPPFLAGS'
10182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10189 # Check whether --with-tags or --without-tags was given.
10190 if test "${with_tags+set}" = set; then
10191 withval="$with_tags"
10192 tagnames="$withval"
10195 if test -f "$ltmain" && test -n "$tagnames"; then
10196 if test ! -f "${ofile}"; then
10197 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10198 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10201 if test -z "$LTCC"; then
10202 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10203 if test -z "$LTCC"; then
10204 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10205 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10208 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10212 # Extract list of available tagged configurations in $ofile.
10213 # Note that this assumes the entire list is on one line.
10214 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10217 for tagname in $tagnames; do
10219 # Check whether tagname contains only valid characters
10220 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10222 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10223 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10224 { (exit 1); exit 1; }; }
10228 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10230 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10231 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10232 { (exit 1); exit 1; }; }
10235 # Update the list of available tags.
10236 if test -n "$tagname"; then
10237 echo appending configuration tag \"$tagname\" to $ofile
10241 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10242 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10243 (test "X$CXX" != "Xg++"))) ; then
10245 ac_cpp='$CXXCPP $CPPFLAGS'
10246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10253 archive_cmds_need_lc_CXX=no
10254 allow_undefined_flag_CXX=
10255 always_export_symbols_CXX=no
10256 archive_expsym_cmds_CXX=
10257 export_dynamic_flag_spec_CXX=
10258 hardcode_direct_CXX=no
10259 hardcode_libdir_flag_spec_CXX=
10260 hardcode_libdir_flag_spec_ld_CXX=
10261 hardcode_libdir_separator_CXX=
10262 hardcode_minus_L_CXX=no
10263 hardcode_automatic_CXX=no
10265 module_expsym_cmds_CXX=
10266 link_all_deplibs_CXX=unknown
10267 old_archive_cmds_CXX=$old_archive_cmds
10268 no_undefined_flag_CXX=
10269 whole_archive_flag_spec_CXX=
10270 enable_shared_with_static_runtimes_CXX=no
10272 # Dependencies to place before and after the object being linked:
10273 predep_objects_CXX=
10274 postdep_objects_CXX=
10277 compiler_lib_search_path_CXX=
10279 # Source file extension for C++ test sources.
10282 # Object file extension for compiled C++ test sources.
10286 # Code to be used in simple compile tests
10287 lt_simple_compile_test_code="int some_variable = 0;\n"
10289 # Code to be used in simple link tests
10290 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10292 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10294 # If no C compiler was specified, use CC.
10297 # Allow CC to be a program name with arguments.
10301 # save warnings/boilerplate of simple test code
10302 ac_outfile=conftest.$ac_objext
10303 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10305 _lt_compiler_boilerplate=`cat conftest.err`
10308 ac_outfile=conftest.$ac_objext
10309 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10311 _lt_linker_boilerplate=`cat conftest.err`
10315 # Allow CC to be a program name with arguments.
10320 lt_save_with_gnu_ld=$with_gnu_ld
10321 lt_save_path_LD=$lt_cv_path_LD
10322 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10323 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10325 unset lt_cv_prog_gnu_ld
10327 if test -n "${lt_cv_path_LDCXX+set}"; then
10328 lt_cv_path_LD=$lt_cv_path_LDCXX
10330 unset lt_cv_path_LD
10332 test -z "${LDCXX+set}" || LD=$LDCXX
10336 for cc_temp in $compiler""; do
10338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10344 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10347 # We don't want -fno-exception wen compiling C++ code, so set the
10348 # no_builtin_flag separately
10349 if test "$GXX" = yes; then
10350 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10352 lt_prog_compiler_no_builtin_flag_CXX=
10355 if test "$GXX" = yes; then
10356 # Set up default GNU C++ configuration
10359 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10360 if test "${with_gnu_ld+set}" = set; then
10361 withval="$with_gnu_ld"
10362 test "$withval" = no || with_gnu_ld=yes
10367 if test "$GCC" = yes; then
10368 # Check if gcc -print-prog-name=ld gives a path.
10369 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10370 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10373 # gcc leaves a trailing carriage return which upsets mingw
10374 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10376 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10379 # Accept absolute paths.
10381 re_direlt='/[^/][^/]*/\.\./'
10382 # Canonicalize the pathname of ld
10383 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10384 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10385 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10387 test -z "$LD" && LD="$ac_prog"
10390 # If it fails, then pretend we aren't using GCC.
10394 # If it is relative, then search for the first ld in PATH.
10395 with_gnu_ld=unknown
10398 elif test "$with_gnu_ld" = yes; then
10399 echo "$as_me:$LINENO: checking for GNU ld" >&5
10400 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10402 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10403 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10405 if test "${lt_cv_path_LD+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 if test -z "$LD"; then
10409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10410 for ac_dir in $PATH; do
10412 test -z "$ac_dir" && ac_dir=.
10413 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10414 lt_cv_path_LD="$ac_dir/$ac_prog"
10415 # Check to see if the program is GNU ld. I'd rather use --version,
10416 # but apparently some GNU ld's only accept -v.
10417 # Break only if it was the GNU/non-GNU ld that we prefer.
10418 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10419 *GNU* | *'with BFD'*)
10420 test "$with_gnu_ld" != no && break
10423 test "$with_gnu_ld" != yes && break
10430 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10434 LD="$lt_cv_path_LD"
10435 if test -n "$LD"; then
10436 echo "$as_me:$LINENO: result: $LD" >&5
10437 echo "${ECHO_T}$LD" >&6
10439 echo "$as_me:$LINENO: result: no" >&5
10440 echo "${ECHO_T}no" >&6
10442 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10443 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10444 { (exit 1); exit 1; }; }
10445 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10446 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10447 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10451 case `$LD -v 2>&1 </dev/null` in
10452 *GNU* | *'with BFD'*)
10453 lt_cv_prog_gnu_ld=yes
10456 lt_cv_prog_gnu_ld=no
10460 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10461 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10462 with_gnu_ld=$lt_cv_prog_gnu_ld
10466 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10467 # archiving commands below assume that GNU ld is being used.
10468 if test "$with_gnu_ld" = yes; then
10469 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470 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'
10472 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10473 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10475 # If archive_cmds runs LD, not CC, wlarc should be empty
10476 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10477 # investigate it a little bit more. (MM)
10480 # ancient GNU ld didn't support --whole-archive et. al.
10481 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10482 grep 'no-whole-archive' > /dev/null; then
10483 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10485 whole_archive_flag_spec_CXX=
10491 # A generic and very simple default shared library creation
10492 # command for GNU C++ for the case where it uses the native
10493 # linker, instead of GNU ld. If possible, this setting should
10494 # overridden to take advantage of the native linker features on
10495 # the platform it is being used on.
10496 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10499 # Commands to make compiler produce verbose output that lists
10500 # what "hidden" libraries, object files and flags are used when
10501 # linking a shared library.
10502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10510 # PORTME: fill in a description of your system's C++ link characteristics
10511 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10512 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10516 # FIXME: insert proper C++ library support
10520 if test "$host_cpu" = ia64; then
10521 # On IA64, the linker does run time linking by default, so we don't
10522 # have to do anything special.
10523 aix_use_runtimelinking=no
10524 exp_sym_flag='-Bexport'
10527 aix_use_runtimelinking=no
10529 # Test if we are trying to use run time linking or normal
10530 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10531 # need to do runtime linking.
10532 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10533 for ld_flag in $LDFLAGS; do
10536 aix_use_runtimelinking=yes
10543 exp_sym_flag='-bexport'
10544 no_entry_flag='-bnoentry'
10547 # When large executables or shared objects are built, AIX ld can
10548 # have problems creating the table of contents. If linking a library
10549 # or program results in "error TOC overflow" add -mminimal-toc to
10550 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10551 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10553 archive_cmds_CXX=''
10554 hardcode_direct_CXX=yes
10555 hardcode_libdir_separator_CXX=':'
10556 link_all_deplibs_CXX=yes
10558 if test "$GXX" = yes; then
10559 case $host_os in aix4.[012]|aix4.[012].*)
10560 # We only want to do this on AIX 4.2 and lower, the check
10561 # below for broken collect2 doesn't work under 4.3+
10562 collect2name=`${CC} -print-prog-name=collect2`
10563 if test -f "$collect2name" && \
10564 strings "$collect2name" | grep resolve_lib_name >/dev/null
10566 # We have reworked collect2
10567 hardcode_direct_CXX=yes
10569 # We have old collect2
10570 hardcode_direct_CXX=unsupported
10571 # It fails to find uninstalled libraries when the uninstalled
10572 # path is not listed in the libpath. Setting hardcode_minus_L
10573 # to unsupported forces relinking
10574 hardcode_minus_L_CXX=yes
10575 hardcode_libdir_flag_spec_CXX='-L$libdir'
10576 hardcode_libdir_separator_CXX=
10579 shared_flag='-shared'
10580 if test "$aix_use_runtimelinking" = yes; then
10581 shared_flag="$shared_flag "'${wl}-G'
10585 if test "$host_cpu" = ia64; then
10586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10587 # chokes on -Wl,-G. The following line is correct:
10590 if test "$aix_use_runtimelinking" = yes; then
10591 shared_flag='${wl}-G'
10593 shared_flag='${wl}-bM:SRE'
10598 # It seems that -bexpall does not export symbols beginning with
10599 # underscore (_), so it is better to generate a list of symbols to export.
10600 always_export_symbols_CXX=yes
10601 if test "$aix_use_runtimelinking" = yes; then
10602 # Warning - without using the other runtime loading flags (-brtl),
10603 # -berok will link without error, but may produce a broken library.
10604 allow_undefined_flag_CXX='-berok'
10605 # Determine the default libpath from the value encoded in an empty executable.
10606 cat >conftest.$ac_ext <<_ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623 (eval $ac_link) 2>conftest.er1
10625 grep -v '^ *+' conftest.er1 >conftest.err
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } &&
10630 { ac_try='test -z "$ac_cxx_werror_flag"
10631 || test ! -s conftest.err'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10644 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10646 # Check for a 64-bit object if we didn't find anything.
10647 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; }
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10654 rm -f conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10658 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10660 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10662 if test "$host_cpu" = ia64; then
10663 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10664 allow_undefined_flag_CXX="-z nodefs"
10665 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10667 # Determine the default libpath from the value encoded in an empty executable.
10668 cat >conftest.$ac_ext <<_ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10683 rm -f conftest.$ac_objext conftest$ac_exeext
10684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10685 (eval $ac_link) 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -z "$ac_cxx_werror_flag"
10693 || test ! -s conftest.err'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; } &&
10699 { ac_try='test -s conftest$ac_exeext'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10706 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10708 # Check for a 64-bit object if we didn't find anything.
10709 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; }
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10716 rm -f conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10720 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10721 # Warning - without using the other run time loading flags,
10722 # -berok will link without error, but may produce a broken library.
10723 no_undefined_flag_CXX=' ${wl}-bernotok'
10724 allow_undefined_flag_CXX=' ${wl}-berok'
10725 # -bexpall does not export symbols beginning with underscore (_)
10726 always_export_symbols_CXX=yes
10727 # Exported symbols can be pulled into shared objects from archives
10728 whole_archive_flag_spec_CXX=' '
10729 archive_cmds_need_lc_CXX=yes
10730 # This is similar to how AIX traditionally builds it's shared libraries.
10731 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10736 case $cc_basename in
10738 # FIXME: insert proper C++ library support
10745 cygwin* | mingw* | pw32*)
10746 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10747 # as there is no search path for DLLs.
10748 hardcode_libdir_flag_spec_CXX='-L$libdir'
10749 allow_undefined_flag_CXX=unsupported
10750 always_export_symbols_CXX=no
10751 enable_shared_with_static_runtimes_CXX=yes
10753 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10754 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10755 # If the export-symbols file already is a .def file (1st line
10756 # is EXPORTS), use it as is; otherwise, prepend...
10757 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10758 cp $export_symbols $output_objdir/$soname.def;
10760 echo EXPORTS > $output_objdir/$soname.def;
10761 cat $export_symbols >> $output_objdir/$soname.def;
10763 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10768 darwin* | rhapsody*)
10770 rhapsody* | darwin1.[012])
10771 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10774 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10775 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10777 case ${MACOSX_DEPLOYMENT_TARGET} in
10779 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10782 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10788 archive_cmds_need_lc_CXX=no
10789 hardcode_direct_CXX=no
10790 hardcode_automatic_CXX=yes
10791 hardcode_shlibpath_var_CXX=unsupported
10792 whole_archive_flag_spec_CXX=''
10793 link_all_deplibs_CXX=yes
10795 if test "$GXX" = yes ; then
10796 lt_int_apple_cc_single_mod=no
10797 output_verbose_link_cmd='echo'
10798 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10799 lt_int_apple_cc_single_mod=yes
10801 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10802 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10804 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'
10806 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10807 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10808 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10809 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}'
10811 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}'
10813 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}'
10815 case $cc_basename in
10817 output_verbose_link_cmd='echo'
10818 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'
10819 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10820 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10821 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}'
10822 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}'
10832 case $cc_basename in
10834 # FIXME: insert proper C++ library support
10838 # Green Hills C++ Compiler
10839 # FIXME: insert proper C++ library support
10843 # FIXME: insert proper C++ library support
10849 # C++ shared libraries reported to be fairly broken before switch to ELF
10853 archive_cmds_need_lc_CXX=no
10855 freebsd* | kfreebsd*-gnu | dragonfly*)
10856 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10863 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10864 hardcode_libdir_separator_CXX=:
10865 export_dynamic_flag_spec_CXX='${wl}-E'
10866 hardcode_direct_CXX=yes
10867 hardcode_minus_L_CXX=yes # Not in the search PATH,
10868 # but as the default
10869 # location of the library.
10871 case $cc_basename in
10873 # FIXME: insert proper C++ library support
10877 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'
10878 # Commands to make compiler produce verbose output that lists
10879 # what "hidden" libraries, object files and flags are used when
10880 # linking a shared library.
10882 # There doesn't appear to be a way to prevent this compiler from
10883 # explicitly linking system object files so we need to strip them
10884 # from the output so that they don't get included in the library
10886 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'
10889 if test "$GXX" = yes; then
10890 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'
10892 # FIXME: insert proper C++ library support
10899 if test $with_gnu_ld = no; then
10900 case "$host_cpu" in
10902 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10903 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10904 hardcode_libdir_separator_CXX=:
10907 hardcode_libdir_flag_spec_CXX='-L$libdir'
10910 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10911 hardcode_libdir_separator_CXX=:
10912 export_dynamic_flag_spec_CXX='${wl}-E'
10916 case "$host_cpu" in
10918 hardcode_direct_CXX=no
10919 hardcode_shlibpath_var_CXX=no
10922 hardcode_direct_CXX=no
10923 hardcode_shlibpath_var_CXX=no
10924 hardcode_minus_L_CXX=yes # Not in the search PATH,
10925 # but as the default
10926 # location of the library.
10929 hardcode_direct_CXX=yes
10930 hardcode_minus_L_CXX=yes # Not in the search PATH,
10931 # but as the default
10932 # location of the library.
10936 case $cc_basename in
10938 # FIXME: insert proper C++ library support
10942 case "$host_cpu" in
10944 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10947 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10950 # Commands to make compiler produce verbose output that lists
10951 # what "hidden" libraries, object files and flags are used when
10952 # linking a shared library.
10954 # There doesn't appear to be a way to prevent this compiler from
10955 # explicitly linking system object files so we need to strip them
10956 # from the output so that they don't get included in the library
10958 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'
10961 if test "$GXX" = yes; then
10962 if test $with_gnu_ld = no; then
10963 case "$host_cpu" in
10965 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10968 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'
10973 # FIXME: insert proper C++ library support
10980 case $cc_basename in
10983 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'
10985 # Archives containing C++ object files must be created using
10986 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10987 # necessary to make sure instantiated templates are included
10989 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10992 if test "$GXX" = yes; then
10993 if test "$with_gnu_ld" = no; then
10994 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'
10996 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'
10999 link_all_deplibs_CXX=yes
11002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11003 hardcode_libdir_separator_CXX=:
11006 case $cc_basename in
11008 # Kuck and Associates, Inc. (KAI) C++ Compiler
11010 # KCC will only create a shared library if the output file
11011 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11012 # to its proper name (with version) after linking.
11013 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'
11014 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'
11015 # Commands to make compiler produce verbose output that lists
11016 # what "hidden" libraries, object files and flags are used when
11017 # linking a shared library.
11019 # There doesn't appear to be a way to prevent this compiler from
11020 # explicitly linking system object files so we need to strip them
11021 # from the output so that they don't get included in the library
11023 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'
11025 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11026 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11028 # Archives containing C++ object files must be created using
11029 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11030 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11035 # version 8.0 and above of icpc choke on multiply defined symbols
11036 # if we add $predep_objects and $postdep_objects, however 7.1 and
11037 # earlier do not add the objects themselves.
11038 case `$CC -V 2>&1` in
11040 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11041 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'
11043 *) # Version 8.0 or newer
11046 ia64*) tmp_idyn=' -i_dynamic';;
11048 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11049 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'
11052 archive_cmds_need_lc_CXX=no
11053 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11055 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11058 # Portland Group C++ compiler
11059 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11060 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'
11062 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11063 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11064 whole_archive_flag_spec_CXX=''
11068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11069 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'
11071 runpath_var=LD_RUN_PATH
11072 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11073 hardcode_libdir_separator_CXX=:
11075 # Commands to make compiler produce verbose output that lists
11076 # what "hidden" libraries, object files and flags are used when
11077 # linking a shared library.
11079 # There doesn't appear to be a way to prevent this compiler from
11080 # explicitly linking system object files so we need to strip them
11081 # from the output so that they don't get included in the library
11083 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'
11088 # FIXME: insert proper C++ library support
11092 # FIXME: insert proper C++ library support
11096 case $cc_basename in
11098 # FIXME: insert proper C++ library support
11102 # FIXME: insert proper C++ library support
11108 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11109 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11111 hardcode_libdir_flag_spec_CXX='-R$libdir'
11112 hardcode_direct_CXX=yes
11113 hardcode_shlibpath_var_CXX=no
11115 # Workaround some broken pre-1.5 toolchains
11116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11119 # C++ shared libraries are fairly broken
11123 hardcode_direct_CXX=yes
11124 hardcode_shlibpath_var_CXX=no
11125 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11126 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11128 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11129 export_dynamic_flag_spec_CXX='${wl}-E'
11130 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11132 output_verbose_link_cmd='echo'
11135 case $cc_basename in
11137 # Kuck and Associates, Inc. (KAI) C++ Compiler
11139 # KCC will only create a shared library if the output file
11140 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11141 # to its proper name (with version) after linking.
11142 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'
11144 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11145 hardcode_libdir_separator_CXX=:
11147 # Archives containing C++ object files must be created using
11148 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11149 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11153 # Rational C++ 2.4.1
11154 # FIXME: insert proper C++ library support
11158 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11159 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'
11161 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11162 hardcode_libdir_separator_CXX=:
11164 # Commands to make compiler produce verbose output that lists
11165 # what "hidden" libraries, object files and flags are used when
11166 # linking a shared library.
11168 # There doesn't appear to be a way to prevent this compiler from
11169 # explicitly linking system object files so we need to strip them
11170 # from the output so that they don't get included in the library
11172 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'
11175 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11176 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11177 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'
11179 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11180 hardcode_libdir_separator_CXX=:
11182 # Commands to make compiler produce verbose output that lists
11183 # what "hidden" libraries, object files and flags are used when
11184 # linking a shared library.
11185 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11188 # FIXME: insert proper C++ library support
11195 case $cc_basename in
11197 # Kuck and Associates, Inc. (KAI) C++ Compiler
11199 # KCC will only create a shared library if the output file
11200 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11201 # to its proper name (with version) after linking.
11202 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'
11204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11205 hardcode_libdir_separator_CXX=:
11207 # Archives containing C++ object files must be created using
11208 # the KAI C++ compiler.
11209 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11212 # Rational C++ 2.4.1
11213 # FIXME: insert proper C++ library support
11217 allow_undefined_flag_CXX=' -expect_unresolved \*'
11218 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'
11219 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11220 echo "-hidden">> $lib.exp~
11221 $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~
11224 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11225 hardcode_libdir_separator_CXX=:
11227 # Commands to make compiler produce verbose output that lists
11228 # what "hidden" libraries, object files and flags are used when
11229 # linking a shared library.
11231 # There doesn't appear to be a way to prevent this compiler from
11232 # explicitly linking system object files so we need to strip them
11233 # from the output so that they don't get included in the library
11235 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'
11238 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11239 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11240 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'
11242 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11243 hardcode_libdir_separator_CXX=:
11245 # Commands to make compiler produce verbose output that lists
11246 # what "hidden" libraries, object files and flags are used when
11247 # linking a shared library.
11248 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11251 # FIXME: insert proper C++ library support
11258 # FIXME: insert proper C++ library support
11262 archive_cmds_need_lc_CXX=no
11263 case $cc_basename in
11265 # FIXME: insert proper C++ library support
11269 # FIXME: insert proper C++ library support
11275 case $cc_basename in
11278 # FIXME: insert proper C++ library support
11283 # FIXME: insert proper C++ library support
11287 # FIXME: insert proper C++ library support
11293 case $cc_basename in
11295 # Sun C++ 4.2, 5.x and Centerline C++
11296 no_undefined_flag_CXX=' -zdefs'
11297 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11298 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11299 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11301 hardcode_libdir_flag_spec_CXX='-R$libdir'
11302 hardcode_shlibpath_var_CXX=no
11304 solaris2.[0-5] | solaris2.[0-5].*) ;;
11306 # The C++ compiler is used as linker so we must use $wl
11307 # flag to pass the commands to the underlying system
11308 # linker. We must also pass each convience library through
11309 # to the system linker between allextract/defaultextract.
11310 # The C++ compiler will combine linker options so we
11311 # cannot just pass the convience library names through
11313 # Supported since Solaris 2.6 (maybe 2.5.1?)
11314 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'
11317 link_all_deplibs_CXX=yes
11319 # Commands to make compiler produce verbose output that lists
11320 # what "hidden" libraries, object files and flags are used when
11321 # linking a shared library.
11323 # There doesn't appear to be a way to prevent this compiler from
11324 # explicitly linking system object files so we need to strip them
11325 # from the output so that they don't get included in the library
11327 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11329 # Archives containing C++ object files must be created using
11330 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11331 # necessary to make sure instantiated templates are included
11333 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11336 # Green Hills C++ Compiler
11337 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11339 # The C++ compiler must be used to create the archive.
11340 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11343 # GNU C++ compiler with Solaris linker
11344 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11345 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11346 if $CC --version | grep -v '^2\.7' > /dev/null; then
11347 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11348 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11349 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11351 # Commands to make compiler produce verbose output that lists
11352 # what "hidden" libraries, object files and flags are used when
11353 # linking a shared library.
11354 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11356 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11358 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11359 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11360 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11362 # Commands to make compiler produce verbose output that lists
11363 # what "hidden" libraries, object files and flags are used when
11364 # linking a shared library.
11365 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11368 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11373 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11374 archive_cmds_need_lc_CXX=no
11377 case $cc_basename in
11379 # NonStop-UX NCC 3.20
11380 # FIXME: insert proper C++ library support
11384 # FIXME: insert proper C++ library support
11390 # FIXME: insert proper C++ library support
11394 # FIXME: insert proper C++ library support
11398 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11399 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11400 test "$ld_shlibs_CXX" = no && can_build_shared=no
11406 ## There is no encapsulation within the following macros, do not change
11407 ## the running order or otherwise move them around unless you know exactly
11408 ## what you are doing...
11410 cat > conftest.$ac_ext <<EOF
11414 Foo (void) { a = 0; }
11420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11421 (eval $ac_compile) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; then
11425 # Parse the compiler output and extract the necessary
11426 # objects, libraries and library flags.
11428 # Sentinel used to keep track of whether or not we are before
11429 # the conftest object file.
11430 pre_test_object_deps_done=no
11432 # The `*' in the case matches for architectures that use `case' in
11433 # $output_verbose_cmd can trigger glob expansion during the loop
11434 # eval without this substitution.
11435 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11437 for p in `eval $output_verbose_link_cmd`; do
11441 # Some compilers place space between "-{L,R}" and the path.
11442 # Remove the space.
11443 if test $p = "-L" \
11444 || test $p = "-R"; then
11451 if test "$pre_test_object_deps_done" = no; then
11454 # Internal compiler library paths should come after those
11455 # provided the user. The postdeps already come after the
11456 # user supplied libs so there is no need to process them.
11457 if test -z "$compiler_lib_search_path_CXX"; then
11458 compiler_lib_search_path_CXX="${prev}${p}"
11460 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11463 # The "-l" case would never come before the object being
11464 # linked, so don't bother handling this case.
11467 if test -z "$postdeps_CXX"; then
11468 postdeps_CXX="${prev}${p}"
11470 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11476 # This assumes that the test object file only shows up
11477 # once in the compiler output.
11478 if test "$p" = "conftest.$objext"; then
11479 pre_test_object_deps_done=yes
11483 if test "$pre_test_object_deps_done" = no; then
11484 if test -z "$predep_objects_CXX"; then
11485 predep_objects_CXX="$p"
11487 predep_objects_CXX="$predep_objects_CXX $p"
11490 if test -z "$postdep_objects_CXX"; then
11491 postdep_objects_CXX="$p"
11493 postdep_objects_CXX="$postdep_objects_CXX $p"
11498 *) ;; # Ignore the rest.
11506 echo "libtool.m4: error: problem compiling CXX test program"
11509 $rm -f confest.$objext
11511 case " $postdeps_CXX " in
11512 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11515 lt_prog_compiler_wl_CXX=
11516 lt_prog_compiler_pic_CXX=
11517 lt_prog_compiler_static_CXX=
11519 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11520 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11522 # C++ specific cases for pic, static, wl, etc.
11523 if test "$GXX" = yes; then
11524 lt_prog_compiler_wl_CXX='-Wl,'
11525 lt_prog_compiler_static_CXX='-static'
11529 # All AIX code is PIC.
11530 if test "$host_cpu" = ia64; then
11531 # AIX 5 now supports IA64 processor
11532 lt_prog_compiler_static_CXX='-Bstatic'
11536 # FIXME: we need at least 68020 code to build shared libraries, but
11537 # adding the `-m68020' flag to GCC prevents building anything better,
11539 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11541 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11542 # PIC is the default for these OSes.
11544 mingw* | os2* | pw32*)
11545 # This hack is so that the source file can tell whether it is being
11546 # built for inclusion in a dll (and should export symbols for example).
11547 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11549 darwin* | rhapsody*)
11550 # PIC is the default on this platform
11551 # Common symbols not allowed in MH_DYLIB files
11552 lt_prog_compiler_pic_CXX='-fno-common'
11555 # DJGPP does not support shared libraries at all
11556 lt_prog_compiler_pic_CXX=
11559 if test -d /usr/nec; then
11560 lt_prog_compiler_pic_CXX=-Kconform_pic
11564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11565 # not for PA HP-UX.
11566 case "$host_cpu" in
11570 lt_prog_compiler_pic_CXX='-fPIC'
11575 lt_prog_compiler_pic_CXX='-fPIC'
11581 # All AIX code is PIC.
11582 if test "$host_cpu" = ia64; then
11583 # AIX 5 now supports IA64 processor
11584 lt_prog_compiler_static_CXX='-Bstatic'
11586 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11590 case $cc_basename in
11592 # Green Hills C++ Compiler
11593 # _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"
11598 # PIC is the default on this platform
11599 # Common symbols not allowed in MH_DYLIB files
11600 case $cc_basename in
11602 lt_prog_compiler_pic_CXX='-qnocommon'
11603 lt_prog_compiler_wl_CXX='-Wl,'
11608 case $cc_basename in
11610 lt_prog_compiler_pic_CXX='-KPIC'
11613 # Green Hills C++ Compiler
11614 lt_prog_compiler_pic_CXX='-pic'
11620 freebsd* | kfreebsd*-gnu | dragonfly*)
11621 # FreeBSD uses GNU C++
11623 hpux9* | hpux10* | hpux11*)
11624 case $cc_basename in
11626 lt_prog_compiler_wl_CXX='-Wl,'
11627 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11628 if test "$host_cpu" != ia64; then
11629 lt_prog_compiler_pic_CXX='+Z'
11633 lt_prog_compiler_wl_CXX='-Wl,'
11634 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11635 case "$host_cpu" in
11640 lt_prog_compiler_pic_CXX='+Z'
11648 irix5* | irix6* | nonstopux*)
11649 case $cc_basename in
11651 lt_prog_compiler_wl_CXX='-Wl,'
11652 lt_prog_compiler_static_CXX='-non_shared'
11653 # CC pic flag -KPIC is the default.
11660 case $cc_basename in
11663 lt_prog_compiler_wl_CXX='--backend -Wl,'
11664 lt_prog_compiler_pic_CXX='-fPIC'
11668 lt_prog_compiler_wl_CXX='-Wl,'
11669 lt_prog_compiler_pic_CXX='-KPIC'
11670 lt_prog_compiler_static_CXX='-static'
11673 # Portland Group C++ compiler.
11674 lt_prog_compiler_wl_CXX='-Wl,'
11675 lt_prog_compiler_pic_CXX='-fpic'
11676 lt_prog_compiler_static_CXX='-static'
11680 # Make sure the PIC flag is empty. It appears that all Alpha
11681 # Linux and Compaq Tru64 Unix objects are PIC.
11682 lt_prog_compiler_pic_CXX=
11683 lt_prog_compiler_static_CXX='-non_shared'
11694 case $cc_basename in
11696 lt_prog_compiler_pic_CXX='-W c,exportall'
11704 osf3* | osf4* | osf5*)
11705 case $cc_basename in
11707 lt_prog_compiler_wl_CXX='--backend -Wl,'
11710 # Rational C++ 2.4.1
11711 lt_prog_compiler_pic_CXX='-pic'
11714 # Digital/Compaq C++
11715 lt_prog_compiler_wl_CXX='-Wl,'
11716 # Make sure the PIC flag is empty. It appears that all Alpha
11717 # Linux and Compaq Tru64 Unix objects are PIC.
11718 lt_prog_compiler_pic_CXX=
11719 lt_prog_compiler_static_CXX='-non_shared'
11728 case $cc_basename in
11730 lt_prog_compiler_pic_CXX='-fPIC'
11737 case $cc_basename in
11739 # Sun C++ 4.2, 5.x and Centerline C++
11740 lt_prog_compiler_pic_CXX='-KPIC'
11741 lt_prog_compiler_static_CXX='-Bstatic'
11742 lt_prog_compiler_wl_CXX='-Qoption ld '
11745 # Green Hills C++ Compiler
11746 lt_prog_compiler_pic_CXX='-PIC'
11753 case $cc_basename in
11756 lt_prog_compiler_pic_CXX='-pic'
11757 lt_prog_compiler_static_CXX='-Bstatic'
11761 lt_prog_compiler_pic_CXX='-pic'
11768 case $cc_basename in
11770 # NonStop-UX NCC 3.20
11771 lt_prog_compiler_pic_CXX='-KPIC'
11782 lt_prog_compiler_can_build_shared_CXX=no
11787 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11788 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11791 # Check to make sure the PIC flag actually works.
11793 if test -n "$lt_prog_compiler_pic_CXX"; then
11795 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11796 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11797 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 lt_prog_compiler_pic_works_CXX=no
11801 ac_outfile=conftest.$ac_objext
11802 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11803 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11804 # Insert the option either (1) after the last *FLAGS variable, or
11805 # (2) before a word containing "conftest.", or (3) at the end.
11806 # Note that $ac_compile itself does not contain backslashes and begins
11807 # with a dollar sign (not a hyphen), so the echo should work correctly.
11808 # The option is referenced via a variable to avoid confusing sed.
11809 lt_compile=`echo "$ac_compile" | $SED \
11810 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11812 -e 's:$: $lt_compiler_flag:'`
11813 (eval echo "\"\$as_me:11813: $lt_compile\"" >&5)
11814 (eval "$lt_compile" 2>conftest.err)
11816 cat conftest.err >&5
11817 echo "$as_me:11817: \$? = $ac_status" >&5
11818 if (exit $ac_status) && test -s "$ac_outfile"; then
11819 # The compiler can only warn and ignore the option if not recognized
11820 # So say no if there are warnings other than the usual output.
11821 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11822 $SED '/^$/d' conftest.err >conftest.er2
11823 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11824 lt_prog_compiler_pic_works_CXX=yes
11830 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11831 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11833 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11834 case $lt_prog_compiler_pic_CXX in
11836 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11839 lt_prog_compiler_pic_CXX=
11840 lt_prog_compiler_can_build_shared_CXX=no
11845 # For platforms which do not support PIC, -DPIC is meaningless:
11847 lt_prog_compiler_pic_CXX=
11850 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11854 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11855 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11856 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 lt_cv_prog_compiler_c_o_CXX=no
11860 $rm -r conftest 2>/dev/null
11864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11866 lt_compiler_flag="-o out/conftest2.$ac_objext"
11867 # Insert the option either (1) after the last *FLAGS variable, or
11868 # (2) before a word containing "conftest.", or (3) at the end.
11869 # Note that $ac_compile itself does not contain backslashes and begins
11870 # with a dollar sign (not a hyphen), so the echo should work correctly.
11871 lt_compile=`echo "$ac_compile" | $SED \
11872 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11874 -e 's:$: $lt_compiler_flag:'`
11875 (eval echo "\"\$as_me:11875: $lt_compile\"" >&5)
11876 (eval "$lt_compile" 2>out/conftest.err)
11878 cat out/conftest.err >&5
11879 echo "$as_me:11879: \$? = $ac_status" >&5
11880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11882 # The compiler can only warn and ignore the option if not recognized
11883 # So say no if there are warnings
11884 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11885 $SED '/^$/d' out/conftest.err >out/conftest.er2
11886 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11887 lt_cv_prog_compiler_c_o_CXX=yes
11892 # SGI C++ compiler will create directory out/ii_files/ for
11893 # template instantiation
11894 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11895 $rm out/* && rmdir out
11901 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11902 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11905 hard_links="nottested"
11906 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11907 # do not overwrite the value of need_locks provided by the user
11908 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11909 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11914 ln conftest.a conftest.b 2>&5 || hard_links=no
11915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11916 echo "$as_me:$LINENO: result: $hard_links" >&5
11917 echo "${ECHO_T}$hard_links" >&6
11918 if test "$hard_links" = no; then
11919 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11920 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11927 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11928 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11930 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11933 # If we're using GNU nm, then we don't want the "-C" option.
11934 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11935 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11936 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'
11938 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'
11942 export_symbols_cmds_CXX="$ltdll_cmds"
11945 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'
11948 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11952 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11953 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11954 test "$ld_shlibs_CXX" = no && can_build_shared=no
11956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11957 if test "$GCC" = yes; then
11958 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11962 # Do we need to explicitly link libc?
11964 case "x$archive_cmds_need_lc_CXX" in
11966 # Assume -lc should be added
11967 archive_cmds_need_lc_CXX=yes
11969 if test "$enable_shared" = yes && test "$GCC" = yes; then
11970 case $archive_cmds_CXX in
11972 # FIXME: we may have to deal with multi-command sequences.
11975 # Test whether the compiler implicitly links with -lc since on some
11976 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11977 # to ld, don't add -lc before -lgcc.
11978 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11979 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11981 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11984 (eval $ac_compile) 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } 2>conftest.err; then
11990 libobjs=conftest.$ac_objext
11992 wl=$lt_prog_compiler_wl_CXX
11998 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11999 allow_undefined_flag_CXX=
12000 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12001 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }
12006 archive_cmds_need_lc_CXX=no
12008 archive_cmds_need_lc_CXX=yes
12010 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12012 cat conftest.err 1>&5
12015 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12016 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12023 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12024 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12025 library_names_spec=
12026 libname_spec='lib$name'
12030 postuninstall_cmds=
12034 shlibpath_overrides_runpath=unknown
12036 dynamic_linker="$host_os ld.so"
12037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12038 if test "$GCC" = yes; then
12039 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12040 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12041 # if the path contains ";" then we assume it to be the separator
12042 # otherwise default to the standard path separator (i.e. ":") - it is
12043 # assumed that no part of a normal pathname contains ";" but that should
12044 # okay in the real world where ";" in dirpaths is itself problematic.
12045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12050 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12052 need_lib_prefix=unknown
12053 hardcode_into_libs=no
12055 # when you set need_version to no, make sure it does not cause -set_version
12056 # flags to be left without arguments
12057 need_version=unknown
12062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12063 shlibpath_var=LIBPATH
12065 # AIX 3 has no versioning support, so we append a major version to the name.
12066 soname_spec='${libname}${release}${shared_ext}$major'
12073 hardcode_into_libs=yes
12074 if test "$host_cpu" = ia64; then
12075 # AIX 5 supports IA64
12076 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12077 shlibpath_var=LD_LIBRARY_PATH
12079 # With GCC up to 2.95.x, collect2 would create an import file
12080 # for dependence libraries. The import file would start with
12081 # the line `#! .'. This would cause the generated library to
12082 # depend on `.', always an invalid library. This was fixed in
12083 # development snapshots of GCC prior to 3.0.
12085 aix4 | aix4.[01] | aix4.[01].*)
12086 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12088 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12091 can_build_shared=no
12095 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12096 # soname into executable. Probably we can add versioning support to
12097 # collect2, so additional links can be useful in future.
12098 if test "$aix_use_runtimelinking" = yes; then
12099 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12100 # instead of lib<name>.a to let people know that these are not
12101 # typical AIX shared libraries.
12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12104 # We preserve .a as extension for shared libraries through AIX4.2
12105 # and later when we are not doing run time linking.
12106 library_names_spec='${libname}${release}.a $libname.a'
12107 soname_spec='${libname}${release}${shared_ext}$major'
12109 shlibpath_var=LIBPATH
12114 library_names_spec='$libname.ixlibrary $libname.a'
12115 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12116 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'
12120 library_names_spec='${libname}${shared_ext}'
12121 dynamic_linker="$host_os ld.so"
12122 shlibpath_var=LIBRARY_PATH
12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12129 soname_spec='${libname}${release}${shared_ext}$major'
12130 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12131 shlibpath_var=LD_LIBRARY_PATH
12132 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12133 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12134 # the default ld.so.conf also contains /usr/contrib/lib and
12135 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12136 # libtool to hard-code these into programs
12139 cygwin* | mingw* | pw32*)
12140 version_type=windows
12145 case $GCC,$host_os in
12146 yes,cygwin* | yes,mingw* | yes,pw32*)
12147 library_names_spec='$libname.dll.a'
12148 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12149 postinstall_cmds='base_file=`basename \${file}`~
12150 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12151 dldir=$destdir/`dirname \$dlpath`~
12152 test -d \$dldir || mkdir -p \$dldir~
12153 $install_prog $dir/$dlname \$dldir/$dlname'
12154 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12155 dlpath=$dir/\$dldll~
12157 shlibpath_overrides_runpath=yes
12161 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12162 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12163 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12166 # MinGW DLLs use traditional 'lib' prefix
12167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12169 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12170 # It is most probably a Windows format PATH printed by
12171 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12172 # path with ; separators, and with drive letters. We can handle the
12173 # drive letters (cygwin fileutils understands them), so leave them,
12174 # especially as we might pass files found there to a mingw objdump,
12175 # which wouldn't understand a cygwinified path. Ahh.
12176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12182 # pw32 DLLs use 'pw' prefix rather than 'lib'
12183 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12189 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12192 dynamic_linker='Win32 ld.exe'
12193 # FIXME: first we should search . and the directory the executable is in
12197 darwin* | rhapsody*)
12198 dynamic_linker="$host_os dyld"
12199 version_type=darwin
12202 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12203 soname_spec='${libname}${release}${major}$shared_ext'
12204 shlibpath_overrides_runpath=yes
12205 shlibpath_var=DYLD_LIBRARY_PATH
12206 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12207 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12208 if test "$GCC" = yes; then
12209 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"`
12211 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12213 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12221 soname_spec='${libname}${release}${shared_ext}$major'
12222 shlibpath_var=LD_LIBRARY_PATH
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 shlibpath_var=LD_LIBRARY_PATH
12236 shlibpath_overrides_runpath=no
12237 hardcode_into_libs=yes
12238 dynamic_linker='GNU ld.so'
12241 freebsd* | dragonfly*)
12242 # DragonFly does not have aout. When/if they implement a new
12243 # versioning mechanism, adjust this.
12244 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12245 version_type=freebsd-$objformat
12246 case $version_type in
12248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12257 shlibpath_var=LD_LIBRARY_PATH
12260 shlibpath_overrides_runpath=yes
12262 freebsd3.[01]* | freebsdelf3.[01]*)
12263 shlibpath_overrides_runpath=yes
12264 hardcode_into_libs=yes
12267 shlibpath_overrides_runpath=no
12268 hardcode_into_libs=yes
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12278 soname_spec='${libname}${release}${shared_ext}$major'
12279 shlibpath_var=LD_LIBRARY_PATH
12280 hardcode_into_libs=yes
12283 hpux9* | hpux10* | hpux11*)
12284 # Give a soname corresponding to the major version so that dld.sl refuses to
12285 # link against other versions.
12289 case "$host_cpu" in
12292 hardcode_into_libs=yes
12293 dynamic_linker="$host_os dld.so"
12294 shlibpath_var=LD_LIBRARY_PATH
12295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12297 soname_spec='${libname}${release}${shared_ext}$major'
12298 if test "X$HPUX_IA64_MODE" = X32; then
12299 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12301 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12307 hardcode_into_libs=yes
12308 dynamic_linker="$host_os dld.sl"
12309 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12318 dynamic_linker="$host_os dld.sl"
12319 shlibpath_var=SHLIB_PATH
12320 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322 soname_spec='${libname}${release}${shared_ext}$major'
12325 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12326 postinstall_cmds='chmod 555 $lib'
12329 irix5* | irix6* | nonstopux*)
12331 nonstopux*) version_type=nonstopux ;;
12333 if test "$lt_cv_prog_gnu_ld" = yes; then
12341 soname_spec='${libname}${release}${shared_ext}$major'
12342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12344 irix5* | nonstopux*)
12345 libsuff= shlibsuff=
12348 case $LD in # libtool.m4 will add one of these switches to LD
12349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12350 libsuff= shlibsuff= libmagic=32-bit;;
12351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12352 libsuff=32 shlibsuff=N32 libmagic=N32;;
12353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12355 *) libsuff= shlibsuff= libmagic=never-match;;
12359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12360 shlibpath_overrides_runpath=no
12361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12363 hardcode_into_libs=yes
12366 # No shared lib support for Linux oldld, aout, or coff.
12367 linux*oldld* | linux*aout* | linux*coff*)
12371 # This must be Linux ELF.
12376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12377 soname_spec='${libname}${release}${shared_ext}$major'
12378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12379 shlibpath_var=LD_LIBRARY_PATH
12380 shlibpath_overrides_runpath=no
12381 # This implies no fast_install, which is unacceptable.
12382 # Some rework will be needed to allow for fast_install
12383 # before this can be enabled.
12384 hardcode_into_libs=yes
12386 # find out which ABI we are using
12388 case "$host_cpu" in
12389 x86_64*|s390x*|powerpc64*)
12390 echo '#line 12390 "configure"' > conftest.$ac_ext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12392 (eval $ac_compile) 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; then
12396 case `/usr/bin/file conftest.$ac_objext` in
12399 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12407 # Append ld.so.conf contents to the search path
12408 if test -f /etc/ld.so.conf; then
12409 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12410 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12413 # We used to test for /lib/ld.so.1 and disable shared libraries on
12414 # powerpc, because MkLinux only supported shared libraries with the
12415 # GNU dynamic linker. Since this was broken with cross compilers,
12416 # most powerpc-linux boxes support dynamic linking these days and
12417 # people can always --disable-shared, the test was removed, and we
12418 # assume the GNU/Linux dynamic linker is in use.
12419 dynamic_linker='GNU/Linux ld.so'
12426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12427 soname_spec='${libname}${release}${shared_ext}$major'
12428 shlibpath_var=LD_LIBRARY_PATH
12429 shlibpath_overrides_runpath=no
12430 hardcode_into_libs=yes
12431 dynamic_linker='GNU ld.so'
12438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12441 dynamic_linker='NetBSD (a.out) ld.so'
12443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12444 soname_spec='${libname}${release}${shared_ext}$major'
12445 dynamic_linker='NetBSD ld.elf_so'
12447 shlibpath_var=LD_LIBRARY_PATH
12448 shlibpath_overrides_runpath=yes
12449 hardcode_into_libs=yes
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12455 shlibpath_var=LD_LIBRARY_PATH
12456 shlibpath_overrides_runpath=yes
12463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12464 soname_spec='${libname}${release}${shared_ext}$major'
12465 shlibpath_var=LD_LIBRARY_PATH
12466 shlibpath_overrides_runpath=yes
12473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12475 shlibpath_var=LD_LIBRARY_PATH
12476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12478 openbsd2.[89] | openbsd2.[89].*)
12479 shlibpath_overrides_runpath=no
12482 shlibpath_overrides_runpath=yes
12486 shlibpath_overrides_runpath=yes
12491 libname_spec='$name'
12494 library_names_spec='$libname${shared_ext} $libname.a'
12495 dynamic_linker='OS/2 ld.exe'
12496 shlibpath_var=LIBPATH
12499 osf3* | osf4* | osf5*)
12503 soname_spec='${libname}${release}${shared_ext}$major'
12504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12505 shlibpath_var=LD_LIBRARY_PATH
12506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12514 shlibpath_var=LD_LIBRARY_PATH
12521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12522 soname_spec='${libname}${release}${shared_ext}$major'
12523 shlibpath_var=LD_LIBRARY_PATH
12524 shlibpath_overrides_runpath=yes
12525 hardcode_into_libs=yes
12526 # ldd complains unless libraries are executable
12527 postinstall_cmds='chmod +x $lib'
12532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12534 shlibpath_var=LD_LIBRARY_PATH
12535 shlibpath_overrides_runpath=yes
12536 if test "$with_gnu_ld" = yes; then
12542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545 soname_spec='${libname}${release}${shared_ext}$major'
12546 shlibpath_var=LD_LIBRARY_PATH
12547 case $host_vendor in
12549 shlibpath_overrides_runpath=no
12551 export_dynamic_flag_spec='${wl}-Blargedynsym'
12552 runpath_var=LD_RUN_PATH
12560 shlibpath_overrides_runpath=no
12561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12567 if test -d /usr/nec ;then
12569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12570 soname_spec='$libname${shared_ext}.$major'
12571 shlibpath_var=LD_LIBRARY_PATH
12577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12578 soname_spec='${libname}${release}${shared_ext}$major'
12579 shlibpath_var=LD_LIBRARY_PATH
12586 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12587 echo "${ECHO_T}$dynamic_linker" >&6
12588 test "$dynamic_linker" = no && can_build_shared=no
12590 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12592 hardcode_action_CXX=
12593 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12594 test -n "$runpath_var_CXX" || \
12595 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12597 # We can hardcode non-existant directories.
12598 if test "$hardcode_direct_CXX" != no &&
12599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12600 # have to relink, otherwise we might link with an installed library
12601 # when we should be linking with a yet-to-be-installed one
12602 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12603 test "$hardcode_minus_L_CXX" != no; then
12604 # Linking always hardcodes the temporary library directory.
12605 hardcode_action_CXX=relink
12607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12608 hardcode_action_CXX=immediate
12611 # We cannot hardcode anything, or else we can only hardcode existing
12613 hardcode_action_CXX=unsupported
12615 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12616 echo "${ECHO_T}$hardcode_action_CXX" >&6
12618 if test "$hardcode_action_CXX" = relink; then
12619 # Fast installation is not supported
12620 enable_fast_install=no
12621 elif test "$shlibpath_overrides_runpath" = yes ||
12622 test "$enable_shared" = no; then
12623 # Fast installation is not necessary
12624 enable_fast_install=needless
12629 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12630 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12631 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12632 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12633 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12634 echo "$as_me:$LINENO: result: yes" >&5
12635 echo "${ECHO_T}yes" >&6
12637 # FIXME - insert some real tests, host_os isn't really good enough
12640 if test -n "$STRIP" ; then
12641 striplib="$STRIP -x"
12642 echo "$as_me:$LINENO: result: yes" >&5
12643 echo "${ECHO_T}yes" >&6
12645 echo "$as_me:$LINENO: result: no" >&5
12646 echo "${ECHO_T}no" >&6
12650 echo "$as_me:$LINENO: result: no" >&5
12651 echo "${ECHO_T}no" >&6
12656 if test "x$enable_dlopen" != xyes; then
12657 enable_dlopen=unknown
12658 enable_dlopen_self=unknown
12659 enable_dlopen_self_static=unknown
12666 lt_cv_dlopen="load_add_on"
12668 lt_cv_dlopen_self=yes
12672 lt_cv_dlopen="LoadLibrary"
12677 lt_cv_dlopen="dlopen"
12682 # if libdl is installed we need to link against it
12683 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12684 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12685 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 ac_check_lib_save_LIBS=$LIBS
12690 cat >conftest.$ac_ext <<_ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12697 /* Override any gcc2 internal prototype to avoid an error. */
12701 /* We use char because int might match the return type of a gcc2
12702 builtin and then its argument prototype would still apply. */
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714 (eval $ac_link) 2>conftest.er1
12716 grep -v '^ *+' conftest.er1 >conftest.err
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try='test -z "$ac_cxx_werror_flag"
12722 || test ! -s conftest.err'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; } &&
12728 { ac_try='test -s conftest$ac_exeext'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 ac_cv_lib_dl_dlopen=yes
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 ac_cv_lib_dl_dlopen=no
12741 rm -f conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
12743 LIBS=$ac_check_lib_save_LIBS
12745 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12746 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12747 if test $ac_cv_lib_dl_dlopen = yes; then
12748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12751 lt_cv_dlopen="dyld"
12753 lt_cv_dlopen_self=yes
12760 echo "$as_me:$LINENO: checking for shl_load" >&5
12761 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12762 if test "${ac_cv_func_shl_load+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 cat >conftest.$ac_ext <<_ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12773 #define shl_load innocuous_shl_load
12775 /* System header to define __stub macros and hopefully few prototypes,
12776 which can conflict with char shl_load (); below.
12777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12778 <limits.h> exists even on freestanding compilers. */
12781 # include <limits.h>
12783 # include <assert.h>
12788 /* Override any gcc2 internal prototype to avoid an error. */
12793 /* We use char because int might match the return type of a gcc2
12794 builtin and then its argument prototype would still apply. */
12796 /* The GNU C library defines this for functions which it implements
12797 to always fail with ENOSYS. Some functions are actually named
12798 something starting with __ and the normal name is an alias. */
12799 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12802 char (*f) () = shl_load;
12811 return f != shl_load;
12816 rm -f conftest.$ac_objext conftest$ac_exeext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12818 (eval $ac_link) 2>conftest.er1
12820 grep -v '^ *+' conftest.er1 >conftest.err
12822 cat conftest.err >&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
12825 { ac_try='test -z "$ac_cxx_werror_flag"
12826 || test ! -s conftest.err'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; } &&
12832 { ac_try='test -s conftest$ac_exeext'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 ac_cv_func_shl_load=yes
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12843 ac_cv_func_shl_load=no
12845 rm -f conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12848 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12849 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12850 if test $ac_cv_func_shl_load = yes; then
12851 lt_cv_dlopen="shl_load"
12853 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12854 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12855 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 ac_check_lib_save_LIBS=$LIBS
12860 cat >conftest.$ac_ext <<_ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12867 /* Override any gcc2 internal prototype to avoid an error. */
12871 /* We use char because int might match the return type of a gcc2
12872 builtin and then its argument prototype would still apply. */
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884 (eval $ac_link) 2>conftest.er1
12886 grep -v '^ *+' conftest.er1 >conftest.err
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -z "$ac_cxx_werror_flag"
12892 || test ! -s conftest.err'
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; } &&
12898 { ac_try='test -s conftest$ac_exeext'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 ac_cv_lib_dld_shl_load=yes
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12909 ac_cv_lib_dld_shl_load=no
12911 rm -f conftest.err conftest.$ac_objext \
12912 conftest$ac_exeext conftest.$ac_ext
12913 LIBS=$ac_check_lib_save_LIBS
12915 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12916 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12917 if test $ac_cv_lib_dld_shl_load = yes; then
12918 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12920 echo "$as_me:$LINENO: checking for dlopen" >&5
12921 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12922 if test "${ac_cv_func_dlopen+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 cat >conftest.$ac_ext <<_ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12933 #define dlopen innocuous_dlopen
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char dlopen (); below.
12937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12938 <limits.h> exists even on freestanding compilers. */
12941 # include <limits.h>
12943 # include <assert.h>
12948 /* Override any gcc2 internal prototype to avoid an error. */
12953 /* We use char because int might match the return type of a gcc2
12954 builtin and then its argument prototype would still apply. */
12956 /* The GNU C library defines this for functions which it implements
12957 to always fail with ENOSYS. Some functions are actually named
12958 something starting with __ and the normal name is an alias. */
12959 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12962 char (*f) () = dlopen;
12971 return f != dlopen;
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978 (eval $ac_link) 2>conftest.er1
12980 grep -v '^ *+' conftest.er1 >conftest.err
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -z "$ac_cxx_werror_flag"
12986 || test ! -s conftest.err'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest$ac_exeext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 ac_cv_func_dlopen=yes
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 ac_cv_func_dlopen=no
13005 rm -f conftest.err conftest.$ac_objext \
13006 conftest$ac_exeext conftest.$ac_ext
13008 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13009 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13010 if test $ac_cv_func_dlopen = yes; then
13011 lt_cv_dlopen="dlopen"
13013 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 ac_check_lib_save_LIBS=$LIBS
13020 cat >conftest.$ac_ext <<_ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13027 /* Override any gcc2 internal prototype to avoid an error. */
13031 /* We use char because int might match the return type of a gcc2
13032 builtin and then its argument prototype would still apply. */
13042 rm -f conftest.$ac_objext conftest$ac_exeext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13044 (eval $ac_link) 2>conftest.er1
13046 grep -v '^ *+' conftest.er1 >conftest.err
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try='test -z "$ac_cxx_werror_flag"
13052 || test ! -s conftest.err'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest$ac_exeext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064 ac_cv_lib_dl_dlopen=yes
13066 echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13069 ac_cv_lib_dl_dlopen=no
13071 rm -f conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13073 LIBS=$ac_check_lib_save_LIBS
13075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13077 if test $ac_cv_lib_dl_dlopen = yes; then
13078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13080 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13081 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13082 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 ac_check_lib_save_LIBS=$LIBS
13086 LIBS="-lsvld $LIBS"
13087 cat >conftest.$ac_ext <<_ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13094 /* Override any gcc2 internal prototype to avoid an error. */
13098 /* We use char because int might match the return type of a gcc2
13099 builtin and then its argument prototype would still apply. */
13109 rm -f conftest.$ac_objext conftest$ac_exeext
13110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13111 (eval $ac_link) 2>conftest.er1
13113 grep -v '^ *+' conftest.er1 >conftest.err
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -z "$ac_cxx_werror_flag"
13119 || test ! -s conftest.err'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; } &&
13125 { ac_try='test -s conftest$ac_exeext'
13126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 (eval $ac_try) 2>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; }; then
13131 ac_cv_lib_svld_dlopen=yes
13133 echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13136 ac_cv_lib_svld_dlopen=no
13138 rm -f conftest.err conftest.$ac_objext \
13139 conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13142 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13143 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13144 if test $ac_cv_lib_svld_dlopen = yes; then
13145 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13147 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13148 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13149 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 ac_check_lib_save_LIBS=$LIBS
13154 cat >conftest.$ac_ext <<_ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13161 /* Override any gcc2 internal prototype to avoid an error. */
13165 /* We use char because int might match the return type of a gcc2
13166 builtin and then its argument prototype would still apply. */
13176 rm -f conftest.$ac_objext conftest$ac_exeext
13177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13178 (eval $ac_link) 2>conftest.er1
13180 grep -v '^ *+' conftest.er1 >conftest.err
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } &&
13185 { ac_try='test -z "$ac_cxx_werror_flag"
13186 || test ! -s conftest.err'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } &&
13192 { ac_try='test -s conftest$ac_exeext'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; }; then
13198 ac_cv_lib_dld_dld_link=yes
13200 echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13203 ac_cv_lib_dld_dld_link=no
13205 rm -f conftest.err conftest.$ac_objext \
13206 conftest$ac_exeext conftest.$ac_ext
13207 LIBS=$ac_check_lib_save_LIBS
13209 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13210 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13211 if test $ac_cv_lib_dld_dld_link = yes; then
13212 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13233 if test "x$lt_cv_dlopen" != xno; then
13239 case $lt_cv_dlopen in
13241 save_CPPFLAGS="$CPPFLAGS"
13242 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13244 save_LDFLAGS="$LDFLAGS"
13245 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13248 LIBS="$lt_cv_dlopen_libs $LIBS"
13250 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13251 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13252 if test "${lt_cv_dlopen_self+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 if test "$cross_compiling" = yes; then :
13256 lt_cv_dlopen_self=cross
13258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13259 lt_status=$lt_dlunknown
13260 cat > conftest.$ac_ext <<EOF
13261 #line 13261 "configure"
13262 #include "confdefs.h"
13271 # define LT_DLGLOBAL RTLD_GLOBAL
13274 # define LT_DLGLOBAL DL_GLOBAL
13276 # define LT_DLGLOBAL 0
13280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13281 find out it does not work in some platform. */
13282 #ifndef LT_DLLAZY_OR_NOW
13284 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13287 # define LT_DLLAZY_OR_NOW DL_LAZY
13290 # define LT_DLLAZY_OR_NOW RTLD_NOW
13293 # define LT_DLLAZY_OR_NOW DL_NOW
13295 # define LT_DLLAZY_OR_NOW 0
13303 extern "C" void exit (int);
13306 void fnord() { int i=42;}
13309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13310 int status = $lt_dlunknown;
13314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13315 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13316 /* dlclose (self); */
13322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13323 (eval $ac_link) 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13327 (./conftest; exit; ) 2>/dev/null
13329 case x$lt_status in
13330 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13331 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13332 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13335 # compilation failed
13336 lt_cv_dlopen_self=no
13343 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13344 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13346 if test "x$lt_cv_dlopen_self" = xyes; then
13347 LDFLAGS="$LDFLAGS $link_static_flag"
13348 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13349 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13350 if test "${lt_cv_dlopen_self_static+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 if test "$cross_compiling" = yes; then :
13354 lt_cv_dlopen_self_static=cross
13356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13357 lt_status=$lt_dlunknown
13358 cat > conftest.$ac_ext <<EOF
13359 #line 13359 "configure"
13360 #include "confdefs.h"
13369 # define LT_DLGLOBAL RTLD_GLOBAL
13372 # define LT_DLGLOBAL DL_GLOBAL
13374 # define LT_DLGLOBAL 0
13378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13379 find out it does not work in some platform. */
13380 #ifndef LT_DLLAZY_OR_NOW
13382 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13385 # define LT_DLLAZY_OR_NOW DL_LAZY
13388 # define LT_DLLAZY_OR_NOW RTLD_NOW
13391 # define LT_DLLAZY_OR_NOW DL_NOW
13393 # define LT_DLLAZY_OR_NOW 0
13401 extern "C" void exit (int);
13404 void fnord() { int i=42;}
13407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13408 int status = $lt_dlunknown;
13412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13413 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13414 /* dlclose (self); */
13420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421 (eval $ac_link) 2>&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13425 (./conftest; exit; ) 2>/dev/null
13427 case x$lt_status in
13428 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13429 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13430 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13433 # compilation failed
13434 lt_cv_dlopen_self_static=no
13441 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13442 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13445 CPPFLAGS="$save_CPPFLAGS"
13446 LDFLAGS="$save_LDFLAGS"
13451 case $lt_cv_dlopen_self in
13452 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13453 *) enable_dlopen_self=unknown ;;
13456 case $lt_cv_dlopen_self_static in
13457 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13458 *) enable_dlopen_self_static=unknown ;;
13463 # The else clause should only fire when bootstrapping the
13464 # libtool distribution, otherwise you forgot to ship ltmain.sh
13465 # with your package, and you will get complaints that there are
13466 # no rules to generate ltmain.sh.
13467 if test -f "$ltmain"; then
13468 # See if we are running on zsh, and set the options which allow our commands through
13469 # without removal of \ escapes.
13470 if test -n "${ZSH_VERSION+set}" ; then
13471 setopt NO_GLOB_SUBST
13473 # Now quote all the things that may contain metacharacters while being
13474 # careful not to overquote the AC_SUBSTed values. We take copies of the
13475 # variables and quote the copies for generation of the libtool script.
13476 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13478 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13479 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13480 deplibs_check_method reload_flag reload_cmds need_locks \
13481 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13482 lt_cv_sys_global_symbol_to_c_name_address \
13483 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13484 old_postinstall_cmds old_postuninstall_cmds \
13488 lt_prog_compiler_wl_CXX \
13489 lt_prog_compiler_pic_CXX \
13490 lt_prog_compiler_static_CXX \
13491 lt_prog_compiler_no_builtin_flag_CXX \
13492 export_dynamic_flag_spec_CXX \
13493 thread_safe_flag_spec_CXX \
13494 whole_archive_flag_spec_CXX \
13495 enable_shared_with_static_runtimes_CXX \
13496 old_archive_cmds_CXX \
13497 old_archive_from_new_cmds_CXX \
13498 predep_objects_CXX \
13499 postdep_objects_CXX \
13502 compiler_lib_search_path_CXX \
13504 archive_expsym_cmds_CXX \
13505 postinstall_cmds_CXX \
13506 postuninstall_cmds_CXX \
13507 old_archive_from_expsyms_cmds_CXX \
13508 allow_undefined_flag_CXX \
13509 no_undefined_flag_CXX \
13510 export_symbols_cmds_CXX \
13511 hardcode_libdir_flag_spec_CXX \
13512 hardcode_libdir_flag_spec_ld_CXX \
13513 hardcode_libdir_separator_CXX \
13514 hardcode_automatic_CXX \
13516 module_expsym_cmds_CXX \
13517 lt_cv_prog_compiler_c_o_CXX \
13518 exclude_expsyms_CXX \
13519 include_expsyms_CXX; do
13522 old_archive_cmds_CXX | \
13523 old_archive_from_new_cmds_CXX | \
13524 archive_cmds_CXX | \
13525 archive_expsym_cmds_CXX | \
13526 module_cmds_CXX | \
13527 module_expsym_cmds_CXX | \
13528 old_archive_from_expsyms_cmds_CXX | \
13529 export_symbols_cmds_CXX | \
13530 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13531 postinstall_cmds | postuninstall_cmds | \
13532 old_postinstall_cmds | old_postuninstall_cmds | \
13533 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13534 # Double-quote double-evaled strings.
13535 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13538 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13544 *'\$0 --fallback-echo"')
13545 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13551 cat <<__EOF__ >> "$cfgfile"
13552 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13554 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13556 # Shell to use when invoking shell scripts.
13559 # Whether or not to build shared libraries.
13560 build_libtool_libs=$enable_shared
13562 # Whether or not to build static libraries.
13563 build_old_libs=$enable_static
13565 # Whether or not to add -lc for building shared libraries.
13566 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13568 # Whether or not to disallow shared libs when runtime libs are static
13569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13571 # Whether or not to optimize for fast installation.
13572 fast_install=$enable_fast_install
13575 host_alias=$host_alias
13579 # The build system.
13580 build_alias=$build_alias
13584 # An echo program that does not interpret backslashes.
13589 AR_FLAGS=$lt_AR_FLAGS
13594 # A language-specific compiler.
13595 CC=$lt_compiler_CXX
13597 # Is the compiler the GNU C compiler?
13603 # The linker used to build libraries.
13606 # Whether we need hard or soft links.
13609 # A BSD-compatible nm program.
13612 # A symbol stripping program
13615 # Used to examine libraries when file_magic_cmd begins "file"
13616 MAGIC_CMD=$MAGIC_CMD
13618 # Used on cygwin: DLL creation program.
13621 # Used on cygwin: object dumper.
13624 # Used on cygwin: assembler.
13627 # The name of the directory that contains temporary libtool files.
13630 # How to create reloadable object files.
13631 reload_flag=$lt_reload_flag
13632 reload_cmds=$lt_reload_cmds
13634 # How to pass a linker flag through the compiler.
13635 wl=$lt_lt_prog_compiler_wl_CXX
13637 # Object file suffix (normally "o").
13638 objext="$ac_objext"
13640 # Old archive suffix (normally "a").
13643 # Shared library suffix (normally ".so").
13644 shrext_cmds='$shrext_cmds'
13646 # Executable file suffix (normally "").
13649 # Additional compiler flags for building library objects.
13650 pic_flag=$lt_lt_prog_compiler_pic_CXX
13653 # What is the maximum length of a command?
13654 max_cmd_len=$lt_cv_sys_max_cmd_len
13656 # Does compiler simultaneously support -c and -o options?
13657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13659 # Must we lock files when doing compilation?
13660 need_locks=$lt_need_locks
13662 # Do we need the lib prefix for modules?
13663 need_lib_prefix=$need_lib_prefix
13665 # Do we need a version for libraries?
13666 need_version=$need_version
13668 # Whether dlopen is supported.
13669 dlopen_support=$enable_dlopen
13671 # Whether dlopen of programs is supported.
13672 dlopen_self=$enable_dlopen_self
13674 # Whether dlopen of statically linked programs is supported.
13675 dlopen_self_static=$enable_dlopen_self_static
13677 # Compiler flag to prevent dynamic linking.
13678 link_static_flag=$lt_lt_prog_compiler_static_CXX
13680 # Compiler flag to turn off builtin functions.
13681 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13683 # Compiler flag to allow reflexive dlopens.
13684 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13686 # Compiler flag to generate shared objects directly from archives.
13687 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13689 # Compiler flag to generate thread-safe objects.
13690 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13692 # Library versioning type.
13693 version_type=$version_type
13695 # Format of library name prefix.
13696 libname_spec=$lt_libname_spec
13698 # List of archive names. First name is the real one, the rest are links.
13699 # The last name is the one that the linker finds with -lNAME.
13700 library_names_spec=$lt_library_names_spec
13702 # The coded name of the library, if different from the real name.
13703 soname_spec=$lt_soname_spec
13705 # Commands used to build and install an old-style archive.
13707 old_archive_cmds=$lt_old_archive_cmds_CXX
13708 old_postinstall_cmds=$lt_old_postinstall_cmds
13709 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13711 # Create an old-style archive from a shared archive.
13712 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13714 # Create a temporary old-style archive to link instead of a shared archive.
13715 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13717 # Commands used to build and install a shared archive.
13718 archive_cmds=$lt_archive_cmds_CXX
13719 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13720 postinstall_cmds=$lt_postinstall_cmds
13721 postuninstall_cmds=$lt_postuninstall_cmds
13723 # Commands used to build a loadable module (assumed same as above if empty)
13724 module_cmds=$lt_module_cmds_CXX
13725 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13727 # Commands to strip libraries.
13728 old_striplib=$lt_old_striplib
13729 striplib=$lt_striplib
13731 # Dependencies to place before the objects being linked to create a
13733 predep_objects=$lt_predep_objects_CXX
13735 # Dependencies to place after the objects being linked to create a
13737 postdep_objects=$lt_postdep_objects_CXX
13739 # Dependencies to place before the objects being linked to create a
13741 predeps=$lt_predeps_CXX
13743 # Dependencies to place after the objects being linked to create a
13745 postdeps=$lt_postdeps_CXX
13747 # The library search path used internally by the compiler when linking
13748 # a shared library.
13749 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13751 # Method to check whether dependent libraries are shared objects.
13752 deplibs_check_method=$lt_deplibs_check_method
13754 # Command to use when deplibs_check_method == file_magic.
13755 file_magic_cmd=$lt_file_magic_cmd
13757 # Flag that allows shared libraries with undefined symbols to be built.
13758 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13760 # Flag that forces no undefined symbols.
13761 no_undefined_flag=$lt_no_undefined_flag_CXX
13763 # Commands used to finish a libtool library installation in a directory.
13764 finish_cmds=$lt_finish_cmds
13766 # Same as above, but a single script fragment to be evaled but not shown.
13767 finish_eval=$lt_finish_eval
13769 # Take the output of nm and produce a listing of raw symbols and C names.
13770 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13772 # Transform the output of nm in a proper C declaration
13773 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13775 # Transform the output of nm in a C name address pair
13776 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13778 # This is the shared library runtime path variable.
13779 runpath_var=$runpath_var
13781 # This is the shared library path variable.
13782 shlibpath_var=$shlibpath_var
13784 # Is shlibpath searched before the hard-coded library search path?
13785 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13787 # How to hardcode a shared library path into an executable.
13788 hardcode_action=$hardcode_action_CXX
13790 # Whether we should hardcode library paths into libraries.
13791 hardcode_into_libs=$hardcode_into_libs
13793 # Flag to hardcode \$libdir into a binary during linking.
13794 # This must work even if \$libdir does not exist.
13795 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13797 # If ld is used when linking, flag to hardcode \$libdir into
13798 # a binary during linking. This must work even if \$libdir does
13800 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13802 # Whether we need a single -rpath flag with a separated argument.
13803 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13805 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13806 # resulting binary.
13807 hardcode_direct=$hardcode_direct_CXX
13809 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13810 # resulting binary.
13811 hardcode_minus_L=$hardcode_minus_L_CXX
13813 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13814 # the resulting binary.
13815 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13817 # Set to yes if building a shared library automatically hardcodes DIR into the library
13818 # and all subsequent libraries and executables linked against it.
13819 hardcode_automatic=$hardcode_automatic_CXX
13821 # Variables whose values should be saved in libtool wrapper scripts and
13822 # restored at relink time.
13823 variables_saved_for_relink="$variables_saved_for_relink"
13825 # Whether libtool must link a program against all its dependency libraries.
13826 link_all_deplibs=$link_all_deplibs_CXX
13828 # Compile-time system search path for libraries
13829 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13831 # Run-time system search path for libraries
13832 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13834 # Fix the shell variable \$srcfile for the compiler.
13835 fix_srcfile_path="$fix_srcfile_path_CXX"
13837 # Set to yes if exported symbols are required.
13838 always_export_symbols=$always_export_symbols_CXX
13840 # The commands to list exported symbols.
13841 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13843 # The commands to extract the exported symbol list from a shared archive.
13844 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13846 # Symbols that should not be listed in the preloaded symbols.
13847 exclude_expsyms=$lt_exclude_expsyms_CXX
13849 # Symbols that must always be exported.
13850 include_expsyms=$lt_include_expsyms_CXX
13852 # ### END LIBTOOL TAG CONFIG: $tagname
13858 # If there is no Makefile yet, we rely on a make rule to execute
13859 # `config.status --recheck' to rerun these tests and create the
13860 # libtool script then.
13861 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13862 if test -f "$ltmain_in"; then
13863 test -f Makefile && make "$ltmain"
13869 ac_cpp='$CPP $CPPFLAGS'
13870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13878 with_gnu_ldcxx=$with_gnu_ld
13879 with_gnu_ld=$lt_save_with_gnu_ld
13880 lt_cv_path_LDCXX=$lt_cv_path_LD
13881 lt_cv_path_LD=$lt_save_path_LD
13882 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13883 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13891 if test -n "$F77" && test "X$F77" != "Xno"; then
13894 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13895 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13896 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13899 archive_cmds_need_lc_F77=no
13900 allow_undefined_flag_F77=
13901 always_export_symbols_F77=no
13902 archive_expsym_cmds_F77=
13903 export_dynamic_flag_spec_F77=
13904 hardcode_direct_F77=no
13905 hardcode_libdir_flag_spec_F77=
13906 hardcode_libdir_flag_spec_ld_F77=
13907 hardcode_libdir_separator_F77=
13908 hardcode_minus_L_F77=no
13909 hardcode_automatic_F77=no
13911 module_expsym_cmds_F77=
13912 link_all_deplibs_F77=unknown
13913 old_archive_cmds_F77=$old_archive_cmds
13914 no_undefined_flag_F77=
13915 whole_archive_flag_spec_F77=
13916 enable_shared_with_static_runtimes_F77=no
13918 # Source file extension for f77 test sources.
13921 # Object file extension for compiled f77 test sources.
13925 # Code to be used in simple compile tests
13926 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13928 # Code to be used in simple link tests
13929 lt_simple_link_test_code=" program t\n end\n"
13931 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13933 # If no C compiler was specified, use CC.
13936 # Allow CC to be a program name with arguments.
13940 # save warnings/boilerplate of simple test code
13941 ac_outfile=conftest.$ac_objext
13942 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13944 _lt_compiler_boilerplate=`cat conftest.err`
13947 ac_outfile=conftest.$ac_objext
13948 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13950 _lt_linker_boilerplate=`cat conftest.err`
13954 # Allow CC to be a program name with arguments.
13959 for cc_temp in $compiler""; do
13961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13970 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13971 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13972 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13973 echo "${ECHO_T}$can_build_shared" >&6
13975 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13976 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13977 test "$can_build_shared" = "no" && enable_shared=no
13979 # On AIX, shared libraries and static libraries use the same namespace, and
13980 # are all built from PIC.
13983 test "$enable_shared" = yes && enable_static=no
13984 if test -n "$RANLIB"; then
13985 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13986 postinstall_cmds='$RANLIB $lib'
13990 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13991 test "$enable_shared" = yes && enable_static=no
13995 echo "$as_me:$LINENO: result: $enable_shared" >&5
13996 echo "${ECHO_T}$enable_shared" >&6
13998 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13999 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14000 # Make sure either enable_shared or enable_static is yes.
14001 test "$enable_shared" = yes || enable_static=yes
14002 echo "$as_me:$LINENO: result: $enable_static" >&5
14003 echo "${ECHO_T}$enable_static" >&6
14005 test "$ld_shlibs_F77" = no && can_build_shared=no
14010 lt_prog_compiler_wl_F77=
14011 lt_prog_compiler_pic_F77=
14012 lt_prog_compiler_static_F77=
14014 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14015 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14017 if test "$GCC" = yes; then
14018 lt_prog_compiler_wl_F77='-Wl,'
14019 lt_prog_compiler_static_F77='-static'
14023 # All AIX code is PIC.
14024 if test "$host_cpu" = ia64; then
14025 # AIX 5 now supports IA64 processor
14026 lt_prog_compiler_static_F77='-Bstatic'
14031 # FIXME: we need at least 68020 code to build shared libraries, but
14032 # adding the `-m68020' flag to GCC prevents building anything better,
14034 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14037 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14038 # PIC is the default for these OSes.
14041 mingw* | pw32* | os2*)
14042 # This hack is so that the source file can tell whether it is being
14043 # built for inclusion in a dll (and should export symbols for example).
14044 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14047 darwin* | rhapsody*)
14048 # PIC is the default on this platform
14049 # Common symbols not allowed in MH_DYLIB files
14050 lt_prog_compiler_pic_F77='-fno-common'
14054 # Just because we use GCC doesn't mean we suddenly get shared libraries
14055 # on systems that don't support them.
14056 lt_prog_compiler_can_build_shared_F77=no
14061 if test -d /usr/nec; then
14062 lt_prog_compiler_pic_F77=-Kconform_pic
14067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14068 # not for PA HP-UX.
14069 case "$host_cpu" in
14074 lt_prog_compiler_pic_F77='-fPIC'
14080 lt_prog_compiler_pic_F77='-fPIC'
14084 # PORTME Check for flag to pass linker flags through the system compiler.
14087 lt_prog_compiler_wl_F77='-Wl,'
14088 if test "$host_cpu" = ia64; then
14089 # AIX 5 now supports IA64 processor
14090 lt_prog_compiler_static_F77='-Bstatic'
14092 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14096 # PIC is the default on this platform
14097 # Common symbols not allowed in MH_DYLIB files
14098 case $cc_basename in
14100 lt_prog_compiler_pic_F77='-qnocommon'
14101 lt_prog_compiler_wl_F77='-Wl,'
14106 mingw* | pw32* | os2*)
14107 # This hack is so that the source file can tell whether it is being
14108 # built for inclusion in a dll (and should export symbols for example).
14109 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14112 hpux9* | hpux10* | hpux11*)
14113 lt_prog_compiler_wl_F77='-Wl,'
14114 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14115 # not for PA HP-UX.
14116 case "$host_cpu" in
14121 lt_prog_compiler_pic_F77='+Z'
14124 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14125 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14128 irix5* | irix6* | nonstopux*)
14129 lt_prog_compiler_wl_F77='-Wl,'
14130 # PIC (with -KPIC) is the default.
14131 lt_prog_compiler_static_F77='-non_shared'
14135 lt_prog_compiler_pic_F77='-KPIC'
14136 lt_prog_compiler_static_F77='-Bstatic'
14140 case $cc_basename in
14142 lt_prog_compiler_wl_F77='-Wl,'
14143 lt_prog_compiler_pic_F77='-KPIC'
14144 lt_prog_compiler_static_F77='-static'
14146 pgcc* | pgf77* | pgf90*)
14147 # Portland Group compilers (*not* the Pentium gcc compiler,
14148 # which looks to be a dead project)
14149 lt_prog_compiler_wl_F77='-Wl,'
14150 lt_prog_compiler_pic_F77='-fpic'
14151 lt_prog_compiler_static_F77='-static'
14154 lt_prog_compiler_wl_F77='-Wl,'
14155 # All Alpha code is PIC.
14156 lt_prog_compiler_static_F77='-non_shared'
14161 osf3* | osf4* | osf5*)
14162 lt_prog_compiler_wl_F77='-Wl,'
14163 # All OSF/1 code is PIC.
14164 lt_prog_compiler_static_F77='-non_shared'
14168 lt_prog_compiler_pic_F77='-Kpic'
14169 lt_prog_compiler_static_F77='-dn'
14173 lt_prog_compiler_pic_F77='-KPIC'
14174 lt_prog_compiler_static_F77='-Bstatic'
14175 case $cc_basename in
14176 f77* | f90* | f95*)
14177 lt_prog_compiler_wl_F77='-Qoption ld ';;
14179 lt_prog_compiler_wl_F77='-Wl,';;
14184 lt_prog_compiler_wl_F77='-Qoption ld '
14185 lt_prog_compiler_pic_F77='-PIC'
14186 lt_prog_compiler_static_F77='-Bstatic'
14189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14190 lt_prog_compiler_wl_F77='-Wl,'
14191 lt_prog_compiler_pic_F77='-KPIC'
14192 lt_prog_compiler_static_F77='-Bstatic'
14196 if test -d /usr/nec ;then
14197 lt_prog_compiler_pic_F77='-Kconform_pic'
14198 lt_prog_compiler_static_F77='-Bstatic'
14203 lt_prog_compiler_wl_F77='-Wl,'
14204 lt_prog_compiler_can_build_shared_F77=no
14208 lt_prog_compiler_pic_F77='-pic'
14209 lt_prog_compiler_static_F77='-Bstatic'
14213 lt_prog_compiler_can_build_shared_F77=no
14218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14219 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14222 # Check to make sure the PIC flag actually works.
14224 if test -n "$lt_prog_compiler_pic_F77"; then
14226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14228 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 lt_prog_compiler_pic_works_F77=no
14232 ac_outfile=conftest.$ac_objext
14233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14234 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14235 # Insert the option either (1) after the last *FLAGS variable, or
14236 # (2) before a word containing "conftest.", or (3) at the end.
14237 # Note that $ac_compile itself does not contain backslashes and begins
14238 # with a dollar sign (not a hyphen), so the echo should work correctly.
14239 # The option is referenced via a variable to avoid confusing sed.
14240 lt_compile=`echo "$ac_compile" | $SED \
14241 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14243 -e 's:$: $lt_compiler_flag:'`
14244 (eval echo "\"\$as_me:14244: $lt_compile\"" >&5)
14245 (eval "$lt_compile" 2>conftest.err)
14247 cat conftest.err >&5
14248 echo "$as_me:14248: \$? = $ac_status" >&5
14249 if (exit $ac_status) && test -s "$ac_outfile"; then
14250 # The compiler can only warn and ignore the option if not recognized
14251 # So say no if there are warnings other than the usual output.
14252 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14253 $SED '/^$/d' conftest.err >conftest.er2
14254 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14255 lt_prog_compiler_pic_works_F77=yes
14261 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14262 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14264 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14265 case $lt_prog_compiler_pic_F77 in
14267 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14270 lt_prog_compiler_pic_F77=
14271 lt_prog_compiler_can_build_shared_F77=no
14276 # For platforms which do not support PIC, -DPIC is meaningless:
14278 lt_prog_compiler_pic_F77=
14281 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14285 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14286 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14287 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 lt_cv_prog_compiler_c_o_F77=no
14291 $rm -r conftest 2>/dev/null
14295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14297 lt_compiler_flag="-o out/conftest2.$ac_objext"
14298 # Insert the option either (1) after the last *FLAGS variable, or
14299 # (2) before a word containing "conftest.", or (3) at the end.
14300 # Note that $ac_compile itself does not contain backslashes and begins
14301 # with a dollar sign (not a hyphen), so the echo should work correctly.
14302 lt_compile=`echo "$ac_compile" | $SED \
14303 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14305 -e 's:$: $lt_compiler_flag:'`
14306 (eval echo "\"\$as_me:14306: $lt_compile\"" >&5)
14307 (eval "$lt_compile" 2>out/conftest.err)
14309 cat out/conftest.err >&5
14310 echo "$as_me:14310: \$? = $ac_status" >&5
14311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14313 # The compiler can only warn and ignore the option if not recognized
14314 # So say no if there are warnings
14315 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14316 $SED '/^$/d' out/conftest.err >out/conftest.er2
14317 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14318 lt_cv_prog_compiler_c_o_F77=yes
14323 # SGI C++ compiler will create directory out/ii_files/ for
14324 # template instantiation
14325 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14326 $rm out/* && rmdir out
14332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14333 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14336 hard_links="nottested"
14337 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14338 # do not overwrite the value of need_locks provided by the user
14339 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14345 ln conftest.a conftest.b 2>&5 || hard_links=no
14346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14347 echo "$as_me:$LINENO: result: $hard_links" >&5
14348 echo "${ECHO_T}$hard_links" >&6
14349 if test "$hard_links" = no; then
14350 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14358 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14362 allow_undefined_flag_F77=
14363 enable_shared_with_static_runtimes_F77=no
14365 archive_expsym_cmds_F77=
14366 old_archive_From_new_cmds_F77=
14367 old_archive_from_expsyms_cmds_F77=
14368 export_dynamic_flag_spec_F77=
14369 whole_archive_flag_spec_F77=
14370 thread_safe_flag_spec_F77=
14371 hardcode_libdir_flag_spec_F77=
14372 hardcode_libdir_flag_spec_ld_F77=
14373 hardcode_libdir_separator_F77=
14374 hardcode_direct_F77=no
14375 hardcode_minus_L_F77=no
14376 hardcode_shlibpath_var_F77=unsupported
14377 link_all_deplibs_F77=unknown
14378 hardcode_automatic_F77=no
14380 module_expsym_cmds_F77=
14381 always_export_symbols_F77=no
14382 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14383 # include_expsyms should be a list of space-separated symbols to be *always*
14384 # included in the symbol list
14385 include_expsyms_F77=
14386 # exclude_expsyms can be an extended regexp of symbols to exclude
14387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14389 # as well as any symbol that contains `d'.
14390 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14392 # platforms (ab)use it in PIC code, but their linkers get confused if
14393 # the symbol is explicitly referenced. Since portable code cannot
14394 # rely on this symbol name, it's probably fine to never include it in
14395 # preloaded symbol tables.
14396 extract_expsyms_cmds=
14397 # Just being paranoid about ensuring that cc_basename is set.
14398 for cc_temp in $compiler""; do
14400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14406 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14409 cygwin* | mingw* | pw32*)
14410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14411 # When not using gcc, we currently assume that we are using
14412 # Microsoft Visual C++.
14413 if test "$GCC" != yes; then
14423 if test "$with_gnu_ld" = yes; then
14424 # If archive_cmds runs LD, not CC, wlarc should be empty
14427 # Set some defaults for GNU ld with shared library support. These
14428 # are reset later if shared libraries are not supported. Putting them
14429 # here allows them to be overridden if necessary.
14430 runpath_var=LD_RUN_PATH
14431 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14432 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14433 # ancient GNU ld didn't support --whole-archive et. al.
14434 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14435 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14437 whole_archive_flag_spec_F77=
14439 supports_anon_versioning=no
14440 case `$LD -v 2>/dev/null` in
14441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14444 *\ 2.11.*) ;; # other 2.11 versions
14445 *) supports_anon_versioning=yes ;;
14448 # See if GNU ld supports shared libraries.
14450 aix3* | aix4* | aix5*)
14451 # On AIX/PPC, the GNU linker is very broken
14452 if test "$host_cpu" != ia64; then
14456 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14457 *** to be unable to reliably create shared libraries on AIX.
14458 *** Therefore, libtool is disabling shared libraries support. If you
14459 *** really care for shared libraries, you may want to modify your PATH
14460 *** so that a non-GNU linker is found, and then restart.
14467 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)'
14468 hardcode_libdir_flag_spec_F77='-L$libdir'
14469 hardcode_minus_L_F77=yes
14471 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14472 # that the semantics of dynamic libraries on AmigaOS, at least up
14473 # to version 4, is to share data among multiple programs linked
14474 # with the same dynamic library. Since this doesn't match the
14475 # behavior of shared libraries on other platforms, we can't use
14481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14482 allow_undefined_flag_F77=unsupported
14483 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14484 # support --undefined. This deserves some investigation. FIXME
14485 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14491 cygwin* | mingw* | pw32*)
14492 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14493 # as there is no search path for DLLs.
14494 hardcode_libdir_flag_spec_F77='-L$libdir'
14495 allow_undefined_flag_F77=unsupported
14496 always_export_symbols_F77=no
14497 enable_shared_with_static_runtimes_F77=yes
14498 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14500 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14501 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14502 # If the export-symbols file already is a .def file (1st line
14503 # is EXPORTS), use it as is; otherwise, prepend...
14504 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14505 cp $export_symbols $output_objdir/$soname.def;
14507 echo EXPORTS > $output_objdir/$soname.def;
14508 cat $export_symbols >> $output_objdir/$soname.def;
14510 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14517 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14519 case $cc_basename,$host_cpu in
14520 pgcc*) # Portland Group C compiler
14521 whole_archive_flag_spec_F77=
14523 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14524 whole_archive_flag_spec_F77=
14525 tmp_addflag=' -fpic -Mnomain' ;;
14526 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14527 tmp_addflag=' -i_dynamic' ;;
14528 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14529 tmp_addflag=' -i_dynamic -nofor_main' ;;
14530 ifc* | ifort*) # Intel Fortran compiler
14531 tmp_addflag=' -nofor_main' ;;
14533 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14535 if test $supports_anon_versioning = yes; then
14536 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14538 $echo "local: *; };" >> $output_objdir/$libname.ver~
14539 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14547 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14548 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14551 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14552 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14557 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14561 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14562 *** create shared libraries on Solaris systems. Therefore, libtool
14563 *** is disabling shared libraries support. We urge you to upgrade GNU
14564 *** binutils to release 2.9.1 or newer. Another option is to modify
14565 *** your PATH or compiler configuration so that the native linker is
14566 *** used, and then restart.
14569 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14570 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14571 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14578 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14580 hardcode_direct_F77=yes
14581 hardcode_shlibpath_var_F77=no
14585 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14586 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14587 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14594 if test "$ld_shlibs_F77" = no; then
14596 hardcode_libdir_flag_spec_F77=
14597 export_dynamic_flag_spec_F77=
14598 whole_archive_flag_spec_F77=
14601 # PORTME fill in a description of your system's linker (not GNU ld)
14604 allow_undefined_flag_F77=unsupported
14605 always_export_symbols_F77=yes
14606 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'
14607 # Note: this linker hardcodes the directories in LIBPATH if there
14608 # are no directories specified by -L.
14609 hardcode_minus_L_F77=yes
14610 if test "$GCC" = yes && test -z "$link_static_flag"; then
14611 # Neither direct hardcoding nor static linking is supported with a
14613 hardcode_direct_F77=unsupported
14618 if test "$host_cpu" = ia64; then
14619 # On IA64, the linker does run time linking by default, so we don't
14620 # have to do anything special.
14621 aix_use_runtimelinking=no
14622 exp_sym_flag='-Bexport'
14625 # If we're using GNU nm, then we don't want the "-C" option.
14626 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14627 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14628 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'
14630 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'
14632 aix_use_runtimelinking=no
14634 # Test if we are trying to use run time linking or normal
14635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14636 # need to do runtime linking.
14637 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14638 for ld_flag in $LDFLAGS; do
14639 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14640 aix_use_runtimelinking=yes
14646 exp_sym_flag='-bexport'
14647 no_entry_flag='-bnoentry'
14650 # When large executables or shared objects are built, AIX ld can
14651 # have problems creating the table of contents. If linking a library
14652 # or program results in "error TOC overflow" add -mminimal-toc to
14653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14656 archive_cmds_F77=''
14657 hardcode_direct_F77=yes
14658 hardcode_libdir_separator_F77=':'
14659 link_all_deplibs_F77=yes
14661 if test "$GCC" = yes; then
14662 case $host_os in aix4.[012]|aix4.[012].*)
14663 # We only want to do this on AIX 4.2 and lower, the check
14664 # below for broken collect2 doesn't work under 4.3+
14665 collect2name=`${CC} -print-prog-name=collect2`
14666 if test -f "$collect2name" && \
14667 strings "$collect2name" | grep resolve_lib_name >/dev/null
14669 # We have reworked collect2
14670 hardcode_direct_F77=yes
14672 # We have old collect2
14673 hardcode_direct_F77=unsupported
14674 # It fails to find uninstalled libraries when the uninstalled
14675 # path is not listed in the libpath. Setting hardcode_minus_L
14676 # to unsupported forces relinking
14677 hardcode_minus_L_F77=yes
14678 hardcode_libdir_flag_spec_F77='-L$libdir'
14679 hardcode_libdir_separator_F77=
14682 shared_flag='-shared'
14683 if test "$aix_use_runtimelinking" = yes; then
14684 shared_flag="$shared_flag "'${wl}-G'
14688 if test "$host_cpu" = ia64; then
14689 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14690 # chokes on -Wl,-G. The following line is correct:
14693 if test "$aix_use_runtimelinking" = yes; then
14694 shared_flag='${wl}-G'
14696 shared_flag='${wl}-bM:SRE'
14701 # It seems that -bexpall does not export symbols beginning with
14702 # underscore (_), so it is better to generate a list of symbols to export.
14703 always_export_symbols_F77=yes
14704 if test "$aix_use_runtimelinking" = yes; then
14705 # Warning - without using the other runtime loading flags (-brtl),
14706 # -berok will link without error, but may produce a broken library.
14707 allow_undefined_flag_F77='-berok'
14708 # Determine the default libpath from the value encoded in an empty executable.
14709 cat >conftest.$ac_ext <<_ACEOF
14714 rm -f conftest.$ac_objext conftest$ac_exeext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14716 (eval $ac_link) 2>conftest.er1
14718 grep -v '^ *+' conftest.er1 >conftest.err
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
14723 { ac_try='test -z "$ac_f77_werror_flag"
14724 || test ! -s conftest.err'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; } &&
14730 { ac_try='test -s conftest$ac_exeext'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14739 # Check for a 64-bit object if we didn't find anything.
14740 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; }
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14747 rm -f conftest.err conftest.$ac_objext \
14748 conftest$ac_exeext conftest.$ac_ext
14749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14751 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14752 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14754 if test "$host_cpu" = ia64; then
14755 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14756 allow_undefined_flag_F77="-z nodefs"
14757 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14759 # Determine the default libpath from the value encoded in an empty executable.
14760 cat >conftest.$ac_ext <<_ACEOF
14765 rm -f conftest.$ac_objext conftest$ac_exeext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14767 (eval $ac_link) 2>conftest.er1
14769 grep -v '^ *+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_f77_werror_flag"
14775 || test ! -s conftest.err'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; } &&
14781 { ac_try='test -s conftest$ac_exeext'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; }; then
14788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14790 # Check for a 64-bit object if we didn't find anything.
14791 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; }
14794 echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14798 rm -f conftest.err conftest.$ac_objext \
14799 conftest$ac_exeext conftest.$ac_ext
14800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14802 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14803 # Warning - without using the other run time loading flags,
14804 # -berok will link without error, but may produce a broken library.
14805 no_undefined_flag_F77=' ${wl}-bernotok'
14806 allow_undefined_flag_F77=' ${wl}-berok'
14807 # -bexpall does not export symbols beginning with underscore (_)
14808 always_export_symbols_F77=yes
14809 # Exported symbols can be pulled into shared objects from archives
14810 whole_archive_flag_spec_F77=' '
14811 archive_cmds_need_lc_F77=yes
14812 # This is similar to how AIX traditionally builds it's shared libraries.
14813 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14819 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)'
14820 hardcode_libdir_flag_spec_F77='-L$libdir'
14821 hardcode_minus_L_F77=yes
14822 # see comment about different semantics on the GNU ld section
14827 export_dynamic_flag_spec_F77=-rdynamic
14830 cygwin* | mingw* | pw32*)
14831 # When not using gcc, we currently assume that we are using
14832 # Microsoft Visual C++.
14833 # hardcode_libdir_flag_spec is actually meaningless, as there is
14834 # no search path for DLLs.
14835 hardcode_libdir_flag_spec_F77=' '
14836 allow_undefined_flag_F77=unsupported
14837 # Tell ltmain to make .lib files, not .a files.
14839 # Tell ltmain to make .dll files, not .so files.
14841 # FIXME: Setting linknames here is a bad hack.
14842 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14843 # The linker will automatically build a .lib file if we build a DLL.
14844 old_archive_From_new_cmds_F77='true'
14845 # FIXME: Should let the user specify the lib program.
14846 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14847 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14848 enable_shared_with_static_runtimes_F77=yes
14851 darwin* | rhapsody*)
14853 rhapsody* | darwin1.[012])
14854 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14857 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14858 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14860 case ${MACOSX_DEPLOYMENT_TARGET} in
14862 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14865 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14871 archive_cmds_need_lc_F77=no
14872 hardcode_direct_F77=no
14873 hardcode_automatic_F77=yes
14874 hardcode_shlibpath_var_F77=unsupported
14875 whole_archive_flag_spec_F77=''
14876 link_all_deplibs_F77=yes
14877 if test "$GCC" = yes ; then
14878 output_verbose_link_cmd='echo'
14879 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14880 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14881 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14882 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}'
14883 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}'
14885 case $cc_basename in
14887 output_verbose_link_cmd='echo'
14888 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14889 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14890 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14891 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}'
14892 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}'
14902 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14903 hardcode_libdir_flag_spec_F77='-L$libdir'
14904 hardcode_shlibpath_var_F77=no
14911 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14912 # support. Future versions do this automatically, but an explicit c++rt0.o
14913 # does not break anything, and helps significantly (at the cost of a little
14916 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14917 hardcode_libdir_flag_spec_F77='-R$libdir'
14918 hardcode_direct_F77=yes
14919 hardcode_shlibpath_var_F77=no
14922 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14924 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14925 hardcode_direct_F77=yes
14926 hardcode_minus_L_F77=yes
14927 hardcode_shlibpath_var_F77=no
14930 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14931 freebsd* | kfreebsd*-gnu | dragonfly*)
14932 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14933 hardcode_libdir_flag_spec_F77='-R$libdir'
14934 hardcode_direct_F77=yes
14935 hardcode_shlibpath_var_F77=no
14939 if test "$GCC" = yes; then
14940 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'
14942 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'
14944 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14945 hardcode_libdir_separator_F77=:
14946 hardcode_direct_F77=yes
14948 # hardcode_minus_L: Not really in the search PATH,
14949 # but as the default location of the library.
14950 hardcode_minus_L_F77=yes
14951 export_dynamic_flag_spec_F77='${wl}-E'
14955 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14956 case "$host_cpu" in
14958 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14961 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14965 case "$host_cpu" in
14967 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14970 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14974 if test "$with_gnu_ld" = no; then
14975 case "$host_cpu" in
14977 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14978 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14979 hardcode_libdir_separator_F77=:
14980 hardcode_direct_F77=no
14981 hardcode_shlibpath_var_F77=no
14984 hardcode_libdir_flag_spec_F77='-L$libdir'
14985 hardcode_direct_F77=no
14986 hardcode_shlibpath_var_F77=no
14988 # hardcode_minus_L: Not really in the search PATH,
14989 # but as the default location of the library.
14990 hardcode_minus_L_F77=yes
14993 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14994 hardcode_libdir_separator_F77=:
14995 hardcode_direct_F77=yes
14996 export_dynamic_flag_spec_F77='${wl}-E'
14998 # hardcode_minus_L: Not really in the search PATH,
14999 # but as the default location of the library.
15000 hardcode_minus_L_F77=yes
15006 irix5* | irix6* | nonstopux*)
15007 if test "$GCC" = yes; then
15008 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'
15010 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'
15011 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15013 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15014 hardcode_libdir_separator_F77=:
15015 link_all_deplibs_F77=yes
15019 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15020 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15022 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15024 hardcode_libdir_flag_spec_F77='-R$libdir'
15025 hardcode_direct_F77=yes
15026 hardcode_shlibpath_var_F77=no
15030 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15031 hardcode_direct_F77=yes
15032 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15033 hardcode_libdir_separator_F77=:
15034 hardcode_shlibpath_var_F77=no
15038 hardcode_direct_F77=yes
15039 hardcode_shlibpath_var_F77=no
15040 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15041 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15042 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15043 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15044 export_dynamic_flag_spec_F77='${wl}-E'
15047 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15048 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15049 hardcode_libdir_flag_spec_F77='-R$libdir'
15052 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15053 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15060 hardcode_libdir_flag_spec_F77='-L$libdir'
15061 hardcode_minus_L_F77=yes
15062 allow_undefined_flag_F77=unsupported
15063 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'
15064 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15068 if test "$GCC" = yes; then
15069 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15070 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'
15072 allow_undefined_flag_F77=' -expect_unresolved \*'
15073 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'
15075 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15076 hardcode_libdir_separator_F77=:
15079 osf4* | osf5*) # as osf3* with the addition of -msym flag
15080 if test "$GCC" = yes; then
15081 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15082 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'
15083 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15085 allow_undefined_flag_F77=' -expect_unresolved \*'
15086 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'
15087 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~
15088 $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'
15090 # Both c and cxx compiler support -rpath directly
15091 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15093 hardcode_libdir_separator_F77=:
15097 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15098 hardcode_shlibpath_var_F77=no
15099 export_dynamic_flag_spec_F77='${wl}-Bexport'
15100 runpath_var=LD_RUN_PATH
15101 hardcode_runpath_var=yes
15105 no_undefined_flag_F77=' -z text'
15106 if test "$GCC" = yes; then
15108 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15109 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15110 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15113 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15115 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15117 hardcode_libdir_flag_spec_F77='-R$libdir'
15118 hardcode_shlibpath_var_F77=no
15120 solaris2.[0-5] | solaris2.[0-5].*) ;;
15122 # The compiler driver will combine linker options so we
15123 # cannot just pass the convience library names through
15124 # without $wl, iff we do not link with $LD.
15125 # Luckily, gcc supports the same syntax we need for Sun Studio.
15126 # Supported since Solaris 2.6 (maybe 2.5.1?)
15129 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15131 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' ;;
15134 link_all_deplibs_F77=yes
15138 if test "x$host_vendor" = xsequent; then
15139 # Use $CC to link under sequent, because it throws in some extra .o
15140 # files that make .init and .fini sections work.
15141 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15143 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15145 hardcode_libdir_flag_spec_F77='-L$libdir'
15146 hardcode_direct_F77=yes
15147 hardcode_minus_L_F77=yes
15148 hardcode_shlibpath_var_F77=no
15152 case $host_vendor in
15154 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15155 hardcode_direct_F77=yes # is this really true???
15158 ## LD is ld it makes a PLAMLIB
15159 ## CC just makes a GrossModule.
15160 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15161 reload_cmds_F77='$CC -r -o $output$reload_objs'
15162 hardcode_direct_F77=no
15165 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15166 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15169 runpath_var='LD_RUN_PATH'
15170 hardcode_shlibpath_var_F77=no
15174 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15175 hardcode_shlibpath_var_F77=no
15176 export_dynamic_flag_spec_F77='-Bexport'
15180 if test -d /usr/nec; then
15181 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15182 hardcode_shlibpath_var_F77=no
15183 runpath_var=LD_RUN_PATH
15184 hardcode_runpath_var=yes
15190 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15191 hardcode_direct_F77=yes
15192 hardcode_minus_L_F77=no
15193 hardcode_shlibpath_var_F77=no
15194 hardcode_runpath_var=yes
15195 runpath_var=LD_RUN_PATH
15198 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15199 no_undefined_flag_F77='${wl}-z ${wl}text'
15200 if test "$GCC" = yes; then
15201 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15203 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15205 runpath_var='LD_RUN_PATH'
15206 hardcode_shlibpath_var_F77=no
15210 no_undefined_flag_F77=' -z text'
15211 # $CC -shared without GNU ld will not create a library from C++
15212 # object files and a static libstdc++, better avoid it by now
15213 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15214 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15215 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15216 hardcode_libdir_flag_spec_F77=
15217 hardcode_shlibpath_var_F77=no
15218 runpath_var='LD_RUN_PATH'
15222 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15223 hardcode_libdir_flag_spec_F77='-L$libdir'
15224 hardcode_shlibpath_var_F77=no
15233 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15234 echo "${ECHO_T}$ld_shlibs_F77" >&6
15235 test "$ld_shlibs_F77" = no && can_build_shared=no
15237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15238 if test "$GCC" = yes; then
15239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15243 # Do we need to explicitly link libc?
15245 case "x$archive_cmds_need_lc_F77" in
15247 # Assume -lc should be added
15248 archive_cmds_need_lc_F77=yes
15250 if test "$enable_shared" = yes && test "$GCC" = yes; then
15251 case $archive_cmds_F77 in
15253 # FIXME: we may have to deal with multi-command sequences.
15256 # Test whether the compiler implicitly links with -lc since on some
15257 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15258 # to ld, don't add -lc before -lgcc.
15259 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15260 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15262 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15265 (eval $ac_compile) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } 2>conftest.err; then
15271 libobjs=conftest.$ac_objext
15273 wl=$lt_prog_compiler_wl_F77
15279 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15280 allow_undefined_flag_F77=
15281 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15282 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }
15287 archive_cmds_need_lc_F77=no
15289 archive_cmds_need_lc_F77=yes
15291 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15293 cat conftest.err 1>&5
15296 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15297 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15304 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15305 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15306 library_names_spec=
15307 libname_spec='lib$name'
15311 postuninstall_cmds=
15315 shlibpath_overrides_runpath=unknown
15317 dynamic_linker="$host_os ld.so"
15318 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15319 if test "$GCC" = yes; then
15320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15321 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15322 # if the path contains ";" then we assume it to be the separator
15323 # otherwise default to the standard path separator (i.e. ":") - it is
15324 # assumed that no part of a normal pathname contains ";" but that should
15325 # okay in the real world where ";" in dirpaths is itself problematic.
15326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15331 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15333 need_lib_prefix=unknown
15334 hardcode_into_libs=no
15336 # when you set need_version to no, make sure it does not cause -set_version
15337 # flags to be left without arguments
15338 need_version=unknown
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15344 shlibpath_var=LIBPATH
15346 # AIX 3 has no versioning support, so we append a major version to the name.
15347 soname_spec='${libname}${release}${shared_ext}$major'
15354 hardcode_into_libs=yes
15355 if test "$host_cpu" = ia64; then
15356 # AIX 5 supports IA64
15357 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15358 shlibpath_var=LD_LIBRARY_PATH
15360 # With GCC up to 2.95.x, collect2 would create an import file
15361 # for dependence libraries. The import file would start with
15362 # the line `#! .'. This would cause the generated library to
15363 # depend on `.', always an invalid library. This was fixed in
15364 # development snapshots of GCC prior to 3.0.
15366 aix4 | aix4.[01] | aix4.[01].*)
15367 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15369 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15372 can_build_shared=no
15376 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15377 # soname into executable. Probably we can add versioning support to
15378 # collect2, so additional links can be useful in future.
15379 if test "$aix_use_runtimelinking" = yes; then
15380 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15381 # instead of lib<name>.a to let people know that these are not
15382 # typical AIX shared libraries.
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385 # We preserve .a as extension for shared libraries through AIX4.2
15386 # and later when we are not doing run time linking.
15387 library_names_spec='${libname}${release}.a $libname.a'
15388 soname_spec='${libname}${release}${shared_ext}$major'
15390 shlibpath_var=LIBPATH
15395 library_names_spec='$libname.ixlibrary $libname.a'
15396 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15397 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'
15401 library_names_spec='${libname}${shared_ext}'
15402 dynamic_linker="$host_os ld.so"
15403 shlibpath_var=LIBRARY_PATH
15409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15410 soname_spec='${libname}${release}${shared_ext}$major'
15411 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15412 shlibpath_var=LD_LIBRARY_PATH
15413 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15414 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15415 # the default ld.so.conf also contains /usr/contrib/lib and
15416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15417 # libtool to hard-code these into programs
15420 cygwin* | mingw* | pw32*)
15421 version_type=windows
15426 case $GCC,$host_os in
15427 yes,cygwin* | yes,mingw* | yes,pw32*)
15428 library_names_spec='$libname.dll.a'
15429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15430 postinstall_cmds='base_file=`basename \${file}`~
15431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15432 dldir=$destdir/`dirname \$dlpath`~
15433 test -d \$dldir || mkdir -p \$dldir~
15434 $install_prog $dir/$dlname \$dldir/$dlname'
15435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15436 dlpath=$dir/\$dldll~
15438 shlibpath_overrides_runpath=yes
15442 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15443 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15444 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15447 # MinGW DLLs use traditional 'lib' prefix
15448 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15449 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15450 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15451 # It is most probably a Windows format PATH printed by
15452 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15453 # path with ; separators, and with drive letters. We can handle the
15454 # drive letters (cygwin fileutils understands them), so leave them,
15455 # especially as we might pass files found there to a mingw objdump,
15456 # which wouldn't understand a cygwinified path. Ahh.
15457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15459 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15463 # pw32 DLLs use 'pw' prefix rather than 'lib'
15464 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15470 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15473 dynamic_linker='Win32 ld.exe'
15474 # FIXME: first we should search . and the directory the executable is in
15478 darwin* | rhapsody*)
15479 dynamic_linker="$host_os dyld"
15480 version_type=darwin
15483 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15484 soname_spec='${libname}${release}${major}$shared_ext'
15485 shlibpath_overrides_runpath=yes
15486 shlibpath_var=DYLD_LIBRARY_PATH
15487 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15488 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15489 if test "$GCC" = yes; then
15490 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"`
15492 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15494 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15502 soname_spec='${libname}${release}${shared_ext}$major'
15503 shlibpath_var=LD_LIBRARY_PATH
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 shlibpath_var=LD_LIBRARY_PATH
15517 shlibpath_overrides_runpath=no
15518 hardcode_into_libs=yes
15519 dynamic_linker='GNU ld.so'
15522 freebsd* | dragonfly*)
15523 # DragonFly does not have aout. When/if they implement a new
15524 # versioning mechanism, adjust this.
15525 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15526 version_type=freebsd-$objformat
15527 case $version_type in
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15538 shlibpath_var=LD_LIBRARY_PATH
15541 shlibpath_overrides_runpath=yes
15543 freebsd3.[01]* | freebsdelf3.[01]*)
15544 shlibpath_overrides_runpath=yes
15545 hardcode_into_libs=yes
15548 shlibpath_overrides_runpath=no
15549 hardcode_into_libs=yes
15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15559 soname_spec='${libname}${release}${shared_ext}$major'
15560 shlibpath_var=LD_LIBRARY_PATH
15561 hardcode_into_libs=yes
15564 hpux9* | hpux10* | hpux11*)
15565 # Give a soname corresponding to the major version so that dld.sl refuses to
15566 # link against other versions.
15570 case "$host_cpu" in
15573 hardcode_into_libs=yes
15574 dynamic_linker="$host_os dld.so"
15575 shlibpath_var=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 if test "X$HPUX_IA64_MODE" = X32; then
15580 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15582 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15588 hardcode_into_libs=yes
15589 dynamic_linker="$host_os dld.sl"
15590 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593 soname_spec='${libname}${release}${shared_ext}$major'
15594 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15599 dynamic_linker="$host_os dld.sl"
15600 shlibpath_var=SHLIB_PATH
15601 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15606 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15607 postinstall_cmds='chmod 555 $lib'
15610 irix5* | irix6* | nonstopux*)
15612 nonstopux*) version_type=nonstopux ;;
15614 if test "$lt_cv_prog_gnu_ld" = yes; then
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15625 irix5* | nonstopux*)
15626 libsuff= shlibsuff=
15629 case $LD in # libtool.m4 will add one of these switches to LD
15630 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15631 libsuff= shlibsuff= libmagic=32-bit;;
15632 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15633 libsuff=32 shlibsuff=N32 libmagic=N32;;
15634 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15635 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15636 *) libsuff= shlibsuff= libmagic=never-match;;
15640 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15641 shlibpath_overrides_runpath=no
15642 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15643 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15644 hardcode_into_libs=yes
15647 # No shared lib support for Linux oldld, aout, or coff.
15648 linux*oldld* | linux*aout* | linux*coff*)
15652 # This must be Linux ELF.
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 shlibpath_overrides_runpath=no
15662 # This implies no fast_install, which is unacceptable.
15663 # Some rework will be needed to allow for fast_install
15664 # before this can be enabled.
15665 hardcode_into_libs=yes
15667 # find out which ABI we are using
15669 case "$host_cpu" in
15670 x86_64*|s390x*|powerpc64*)
15671 echo '#line 15671 "configure"' > conftest.$ac_ext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673 (eval $ac_compile) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; then
15677 case `/usr/bin/file conftest.$ac_objext` in
15680 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15688 # Append ld.so.conf contents to the search path
15689 if test -f /etc/ld.so.conf; then
15690 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15691 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15694 # We used to test for /lib/ld.so.1 and disable shared libraries on
15695 # powerpc, because MkLinux only supported shared libraries with the
15696 # GNU dynamic linker. Since this was broken with cross compilers,
15697 # most powerpc-linux boxes support dynamic linking these days and
15698 # people can always --disable-shared, the test was removed, and we
15699 # assume the GNU/Linux dynamic linker is in use.
15700 dynamic_linker='GNU/Linux ld.so'
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15708 soname_spec='${libname}${release}${shared_ext}$major'
15709 shlibpath_var=LD_LIBRARY_PATH
15710 shlibpath_overrides_runpath=no
15711 hardcode_into_libs=yes
15712 dynamic_linker='GNU ld.so'
15719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15722 dynamic_linker='NetBSD (a.out) ld.so'
15724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15725 soname_spec='${libname}${release}${shared_ext}$major'
15726 dynamic_linker='NetBSD ld.elf_so'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 shlibpath_overrides_runpath=yes
15730 hardcode_into_libs=yes
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 shlibpath_overrides_runpath=yes
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 shlibpath_var=LD_LIBRARY_PATH
15747 shlibpath_overrides_runpath=yes
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15756 shlibpath_var=LD_LIBRARY_PATH
15757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15759 openbsd2.[89] | openbsd2.[89].*)
15760 shlibpath_overrides_runpath=no
15763 shlibpath_overrides_runpath=yes
15767 shlibpath_overrides_runpath=yes
15772 libname_spec='$name'
15775 library_names_spec='$libname${shared_ext} $libname.a'
15776 dynamic_linker='OS/2 ld.exe'
15777 shlibpath_var=LIBPATH
15780 osf3* | osf4* | osf5*)
15784 soname_spec='${libname}${release}${shared_ext}$major'
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786 shlibpath_var=LD_LIBRARY_PATH
15787 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15788 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15793 soname_spec='${libname}${release}${shared_ext}$major'
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795 shlibpath_var=LD_LIBRARY_PATH
15802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15803 soname_spec='${libname}${release}${shared_ext}$major'
15804 shlibpath_var=LD_LIBRARY_PATH
15805 shlibpath_overrides_runpath=yes
15806 hardcode_into_libs=yes
15807 # ldd complains unless libraries are executable
15808 postinstall_cmds='chmod +x $lib'
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15814 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15815 shlibpath_var=LD_LIBRARY_PATH
15816 shlibpath_overrides_runpath=yes
15817 if test "$with_gnu_ld" = yes; then
15823 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 shlibpath_var=LD_LIBRARY_PATH
15828 case $host_vendor in
15830 shlibpath_overrides_runpath=no
15832 export_dynamic_flag_spec='${wl}-Blargedynsym'
15833 runpath_var=LD_RUN_PATH
15841 shlibpath_overrides_runpath=no
15842 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15848 if test -d /usr/nec ;then
15850 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15851 soname_spec='$libname${shared_ext}.$major'
15852 shlibpath_var=LD_LIBRARY_PATH
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15859 soname_spec='${libname}${release}${shared_ext}$major'
15860 shlibpath_var=LD_LIBRARY_PATH
15867 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15868 echo "${ECHO_T}$dynamic_linker" >&6
15869 test "$dynamic_linker" = no && can_build_shared=no
15871 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15872 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15873 hardcode_action_F77=
15874 if test -n "$hardcode_libdir_flag_spec_F77" || \
15875 test -n "$runpath_var_F77" || \
15876 test "X$hardcode_automatic_F77" = "Xyes" ; then
15878 # We can hardcode non-existant directories.
15879 if test "$hardcode_direct_F77" != no &&
15880 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15881 # have to relink, otherwise we might link with an installed library
15882 # when we should be linking with a yet-to-be-installed one
15883 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15884 test "$hardcode_minus_L_F77" != no; then
15885 # Linking always hardcodes the temporary library directory.
15886 hardcode_action_F77=relink
15888 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15889 hardcode_action_F77=immediate
15892 # We cannot hardcode anything, or else we can only hardcode existing
15894 hardcode_action_F77=unsupported
15896 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15897 echo "${ECHO_T}$hardcode_action_F77" >&6
15899 if test "$hardcode_action_F77" = relink; then
15900 # Fast installation is not supported
15901 enable_fast_install=no
15902 elif test "$shlibpath_overrides_runpath" = yes ||
15903 test "$enable_shared" = no; then
15904 # Fast installation is not necessary
15905 enable_fast_install=needless
15910 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15911 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15912 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15913 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15914 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15915 echo "$as_me:$LINENO: result: yes" >&5
15916 echo "${ECHO_T}yes" >&6
15918 # FIXME - insert some real tests, host_os isn't really good enough
15921 if test -n "$STRIP" ; then
15922 striplib="$STRIP -x"
15923 echo "$as_me:$LINENO: result: yes" >&5
15924 echo "${ECHO_T}yes" >&6
15926 echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6
15931 echo "$as_me:$LINENO: result: no" >&5
15932 echo "${ECHO_T}no" >&6
15939 # The else clause should only fire when bootstrapping the
15940 # libtool distribution, otherwise you forgot to ship ltmain.sh
15941 # with your package, and you will get complaints that there are
15942 # no rules to generate ltmain.sh.
15943 if test -f "$ltmain"; then
15944 # See if we are running on zsh, and set the options which allow our commands through
15945 # without removal of \ escapes.
15946 if test -n "${ZSH_VERSION+set}" ; then
15947 setopt NO_GLOB_SUBST
15949 # Now quote all the things that may contain metacharacters while being
15950 # careful not to overquote the AC_SUBSTed values. We take copies of the
15951 # variables and quote the copies for generation of the libtool script.
15952 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15954 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15955 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15956 deplibs_check_method reload_flag reload_cmds need_locks \
15957 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15958 lt_cv_sys_global_symbol_to_c_name_address \
15959 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15960 old_postinstall_cmds old_postuninstall_cmds \
15964 lt_prog_compiler_wl_F77 \
15965 lt_prog_compiler_pic_F77 \
15966 lt_prog_compiler_static_F77 \
15967 lt_prog_compiler_no_builtin_flag_F77 \
15968 export_dynamic_flag_spec_F77 \
15969 thread_safe_flag_spec_F77 \
15970 whole_archive_flag_spec_F77 \
15971 enable_shared_with_static_runtimes_F77 \
15972 old_archive_cmds_F77 \
15973 old_archive_from_new_cmds_F77 \
15974 predep_objects_F77 \
15975 postdep_objects_F77 \
15978 compiler_lib_search_path_F77 \
15980 archive_expsym_cmds_F77 \
15981 postinstall_cmds_F77 \
15982 postuninstall_cmds_F77 \
15983 old_archive_from_expsyms_cmds_F77 \
15984 allow_undefined_flag_F77 \
15985 no_undefined_flag_F77 \
15986 export_symbols_cmds_F77 \
15987 hardcode_libdir_flag_spec_F77 \
15988 hardcode_libdir_flag_spec_ld_F77 \
15989 hardcode_libdir_separator_F77 \
15990 hardcode_automatic_F77 \
15992 module_expsym_cmds_F77 \
15993 lt_cv_prog_compiler_c_o_F77 \
15994 exclude_expsyms_F77 \
15995 include_expsyms_F77; do
15998 old_archive_cmds_F77 | \
15999 old_archive_from_new_cmds_F77 | \
16000 archive_cmds_F77 | \
16001 archive_expsym_cmds_F77 | \
16002 module_cmds_F77 | \
16003 module_expsym_cmds_F77 | \
16004 old_archive_from_expsyms_cmds_F77 | \
16005 export_symbols_cmds_F77 | \
16006 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16007 postinstall_cmds | postuninstall_cmds | \
16008 old_postinstall_cmds | old_postuninstall_cmds | \
16009 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16010 # Double-quote double-evaled strings.
16011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16020 *'\$0 --fallback-echo"')
16021 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16027 cat <<__EOF__ >> "$cfgfile"
16028 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16030 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16032 # Shell to use when invoking shell scripts.
16035 # Whether or not to build shared libraries.
16036 build_libtool_libs=$enable_shared
16038 # Whether or not to build static libraries.
16039 build_old_libs=$enable_static
16041 # Whether or not to add -lc for building shared libraries.
16042 build_libtool_need_lc=$archive_cmds_need_lc_F77
16044 # Whether or not to disallow shared libs when runtime libs are static
16045 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16047 # Whether or not to optimize for fast installation.
16048 fast_install=$enable_fast_install
16051 host_alias=$host_alias
16055 # The build system.
16056 build_alias=$build_alias
16060 # An echo program that does not interpret backslashes.
16065 AR_FLAGS=$lt_AR_FLAGS
16070 # A language-specific compiler.
16071 CC=$lt_compiler_F77
16073 # Is the compiler the GNU C compiler?
16079 # The linker used to build libraries.
16082 # Whether we need hard or soft links.
16085 # A BSD-compatible nm program.
16088 # A symbol stripping program
16091 # Used to examine libraries when file_magic_cmd begins "file"
16092 MAGIC_CMD=$MAGIC_CMD
16094 # Used on cygwin: DLL creation program.
16097 # Used on cygwin: object dumper.
16100 # Used on cygwin: assembler.
16103 # The name of the directory that contains temporary libtool files.
16106 # How to create reloadable object files.
16107 reload_flag=$lt_reload_flag
16108 reload_cmds=$lt_reload_cmds
16110 # How to pass a linker flag through the compiler.
16111 wl=$lt_lt_prog_compiler_wl_F77
16113 # Object file suffix (normally "o").
16114 objext="$ac_objext"
16116 # Old archive suffix (normally "a").
16119 # Shared library suffix (normally ".so").
16120 shrext_cmds='$shrext_cmds'
16122 # Executable file suffix (normally "").
16125 # Additional compiler flags for building library objects.
16126 pic_flag=$lt_lt_prog_compiler_pic_F77
16129 # What is the maximum length of a command?
16130 max_cmd_len=$lt_cv_sys_max_cmd_len
16132 # Does compiler simultaneously support -c and -o options?
16133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16135 # Must we lock files when doing compilation?
16136 need_locks=$lt_need_locks
16138 # Do we need the lib prefix for modules?
16139 need_lib_prefix=$need_lib_prefix
16141 # Do we need a version for libraries?
16142 need_version=$need_version
16144 # Whether dlopen is supported.
16145 dlopen_support=$enable_dlopen
16147 # Whether dlopen of programs is supported.
16148 dlopen_self=$enable_dlopen_self
16150 # Whether dlopen of statically linked programs is supported.
16151 dlopen_self_static=$enable_dlopen_self_static
16153 # Compiler flag to prevent dynamic linking.
16154 link_static_flag=$lt_lt_prog_compiler_static_F77
16156 # Compiler flag to turn off builtin functions.
16157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16159 # Compiler flag to allow reflexive dlopens.
16160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16162 # Compiler flag to generate shared objects directly from archives.
16163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16165 # Compiler flag to generate thread-safe objects.
16166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16168 # Library versioning type.
16169 version_type=$version_type
16171 # Format of library name prefix.
16172 libname_spec=$lt_libname_spec
16174 # List of archive names. First name is the real one, the rest are links.
16175 # The last name is the one that the linker finds with -lNAME.
16176 library_names_spec=$lt_library_names_spec
16178 # The coded name of the library, if different from the real name.
16179 soname_spec=$lt_soname_spec
16181 # Commands used to build and install an old-style archive.
16183 old_archive_cmds=$lt_old_archive_cmds_F77
16184 old_postinstall_cmds=$lt_old_postinstall_cmds
16185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16187 # Create an old-style archive from a shared archive.
16188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16190 # Create a temporary old-style archive to link instead of a shared archive.
16191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16193 # Commands used to build and install a shared archive.
16194 archive_cmds=$lt_archive_cmds_F77
16195 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16196 postinstall_cmds=$lt_postinstall_cmds
16197 postuninstall_cmds=$lt_postuninstall_cmds
16199 # Commands used to build a loadable module (assumed same as above if empty)
16200 module_cmds=$lt_module_cmds_F77
16201 module_expsym_cmds=$lt_module_expsym_cmds_F77
16203 # Commands to strip libraries.
16204 old_striplib=$lt_old_striplib
16205 striplib=$lt_striplib
16207 # Dependencies to place before the objects being linked to create a
16209 predep_objects=$lt_predep_objects_F77
16211 # Dependencies to place after the objects being linked to create a
16213 postdep_objects=$lt_postdep_objects_F77
16215 # Dependencies to place before the objects being linked to create a
16217 predeps=$lt_predeps_F77
16219 # Dependencies to place after the objects being linked to create a
16221 postdeps=$lt_postdeps_F77
16223 # The library search path used internally by the compiler when linking
16224 # a shared library.
16225 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16227 # Method to check whether dependent libraries are shared objects.
16228 deplibs_check_method=$lt_deplibs_check_method
16230 # Command to use when deplibs_check_method == file_magic.
16231 file_magic_cmd=$lt_file_magic_cmd
16233 # Flag that allows shared libraries with undefined symbols to be built.
16234 allow_undefined_flag=$lt_allow_undefined_flag_F77
16236 # Flag that forces no undefined symbols.
16237 no_undefined_flag=$lt_no_undefined_flag_F77
16239 # Commands used to finish a libtool library installation in a directory.
16240 finish_cmds=$lt_finish_cmds
16242 # Same as above, but a single script fragment to be evaled but not shown.
16243 finish_eval=$lt_finish_eval
16245 # Take the output of nm and produce a listing of raw symbols and C names.
16246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16248 # Transform the output of nm in a proper C declaration
16249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16251 # Transform the output of nm in a C name address pair
16252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16254 # This is the shared library runtime path variable.
16255 runpath_var=$runpath_var
16257 # This is the shared library path variable.
16258 shlibpath_var=$shlibpath_var
16260 # Is shlibpath searched before the hard-coded library search path?
16261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16263 # How to hardcode a shared library path into an executable.
16264 hardcode_action=$hardcode_action_F77
16266 # Whether we should hardcode library paths into libraries.
16267 hardcode_into_libs=$hardcode_into_libs
16269 # Flag to hardcode \$libdir into a binary during linking.
16270 # This must work even if \$libdir does not exist.
16271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16273 # If ld is used when linking, flag to hardcode \$libdir into
16274 # a binary during linking. This must work even if \$libdir does
16276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16278 # Whether we need a single -rpath flag with a separated argument.
16279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16282 # resulting binary.
16283 hardcode_direct=$hardcode_direct_F77
16285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16286 # resulting binary.
16287 hardcode_minus_L=$hardcode_minus_L_F77
16289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16290 # the resulting binary.
16291 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16293 # Set to yes if building a shared library automatically hardcodes DIR into the library
16294 # and all subsequent libraries and executables linked against it.
16295 hardcode_automatic=$hardcode_automatic_F77
16297 # Variables whose values should be saved in libtool wrapper scripts and
16298 # restored at relink time.
16299 variables_saved_for_relink="$variables_saved_for_relink"
16301 # Whether libtool must link a program against all its dependency libraries.
16302 link_all_deplibs=$link_all_deplibs_F77
16304 # Compile-time system search path for libraries
16305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16307 # Run-time system search path for libraries
16308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16310 # Fix the shell variable \$srcfile for the compiler.
16311 fix_srcfile_path="$fix_srcfile_path_F77"
16313 # Set to yes if exported symbols are required.
16314 always_export_symbols=$always_export_symbols_F77
16316 # The commands to list exported symbols.
16317 export_symbols_cmds=$lt_export_symbols_cmds_F77
16319 # The commands to extract the exported symbol list from a shared archive.
16320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16322 # Symbols that should not be listed in the preloaded symbols.
16323 exclude_expsyms=$lt_exclude_expsyms_F77
16325 # Symbols that must always be exported.
16326 include_expsyms=$lt_include_expsyms_F77
16328 # ### END LIBTOOL TAG CONFIG: $tagname
16334 # If there is no Makefile yet, we rely on a make rule to execute
16335 # `config.status --recheck' to rerun these tests and create the
16336 # libtool script then.
16337 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16338 if test -f "$ltmain_in"; then
16339 test -f Makefile && make "$ltmain"
16345 ac_cpp='$CPP $CPPFLAGS'
16346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16358 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16362 # Source file extension for Java test sources.
16365 # Object file extension for compiled Java test sources.
16369 # Code to be used in simple compile tests
16370 lt_simple_compile_test_code="class foo {}\n"
16372 # Code to be used in simple link tests
16373 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16375 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16377 # If no C compiler was specified, use CC.
16380 # Allow CC to be a program name with arguments.
16384 # save warnings/boilerplate of simple test code
16385 ac_outfile=conftest.$ac_objext
16386 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16388 _lt_compiler_boilerplate=`cat conftest.err`
16391 ac_outfile=conftest.$ac_objext
16392 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16394 _lt_linker_boilerplate=`cat conftest.err`
16398 # Allow CC to be a program name with arguments.
16403 for cc_temp in $compiler""; do
16405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16411 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16414 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16415 archive_cmds_need_lc_GCJ=no
16417 old_archive_cmds_GCJ=$old_archive_cmds
16420 ## There is no encapsulation within the following macros, do not change
16421 ## the running order or otherwise move them around unless you know exactly
16422 ## what you are doing...
16424 lt_prog_compiler_no_builtin_flag_GCJ=
16426 if test "$GCC" = yes; then
16427 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16430 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16431 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16432 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16435 lt_cv_prog_compiler_rtti_exceptions=no
16436 ac_outfile=conftest.$ac_objext
16437 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16438 lt_compiler_flag="-fno-rtti -fno-exceptions"
16439 # Insert the option either (1) after the last *FLAGS variable, or
16440 # (2) before a word containing "conftest.", or (3) at the end.
16441 # Note that $ac_compile itself does not contain backslashes and begins
16442 # with a dollar sign (not a hyphen), so the echo should work correctly.
16443 # The option is referenced via a variable to avoid confusing sed.
16444 lt_compile=`echo "$ac_compile" | $SED \
16445 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16447 -e 's:$: $lt_compiler_flag:'`
16448 (eval echo "\"\$as_me:16448: $lt_compile\"" >&5)
16449 (eval "$lt_compile" 2>conftest.err)
16451 cat conftest.err >&5
16452 echo "$as_me:16452: \$? = $ac_status" >&5
16453 if (exit $ac_status) && test -s "$ac_outfile"; then
16454 # The compiler can only warn and ignore the option if not recognized
16455 # So say no if there are warnings other than the usual output.
16456 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16457 $SED '/^$/d' conftest.err >conftest.er2
16458 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16459 lt_cv_prog_compiler_rtti_exceptions=yes
16465 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16466 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16468 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16469 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16476 lt_prog_compiler_wl_GCJ=
16477 lt_prog_compiler_pic_GCJ=
16478 lt_prog_compiler_static_GCJ=
16480 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16481 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16483 if test "$GCC" = yes; then
16484 lt_prog_compiler_wl_GCJ='-Wl,'
16485 lt_prog_compiler_static_GCJ='-static'
16489 # All AIX code is PIC.
16490 if test "$host_cpu" = ia64; then
16491 # AIX 5 now supports IA64 processor
16492 lt_prog_compiler_static_GCJ='-Bstatic'
16497 # FIXME: we need at least 68020 code to build shared libraries, but
16498 # adding the `-m68020' flag to GCC prevents building anything better,
16500 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16503 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16504 # PIC is the default for these OSes.
16507 mingw* | pw32* | os2*)
16508 # This hack is so that the source file can tell whether it is being
16509 # built for inclusion in a dll (and should export symbols for example).
16510 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16513 darwin* | rhapsody*)
16514 # PIC is the default on this platform
16515 # Common symbols not allowed in MH_DYLIB files
16516 lt_prog_compiler_pic_GCJ='-fno-common'
16520 # Just because we use GCC doesn't mean we suddenly get shared libraries
16521 # on systems that don't support them.
16522 lt_prog_compiler_can_build_shared_GCJ=no
16527 if test -d /usr/nec; then
16528 lt_prog_compiler_pic_GCJ=-Kconform_pic
16533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16534 # not for PA HP-UX.
16535 case "$host_cpu" in
16540 lt_prog_compiler_pic_GCJ='-fPIC'
16546 lt_prog_compiler_pic_GCJ='-fPIC'
16550 # PORTME Check for flag to pass linker flags through the system compiler.
16553 lt_prog_compiler_wl_GCJ='-Wl,'
16554 if test "$host_cpu" = ia64; then
16555 # AIX 5 now supports IA64 processor
16556 lt_prog_compiler_static_GCJ='-Bstatic'
16558 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16562 # PIC is the default on this platform
16563 # Common symbols not allowed in MH_DYLIB files
16564 case $cc_basename in
16566 lt_prog_compiler_pic_GCJ='-qnocommon'
16567 lt_prog_compiler_wl_GCJ='-Wl,'
16572 mingw* | pw32* | os2*)
16573 # This hack is so that the source file can tell whether it is being
16574 # built for inclusion in a dll (and should export symbols for example).
16575 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16578 hpux9* | hpux10* | hpux11*)
16579 lt_prog_compiler_wl_GCJ='-Wl,'
16580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16581 # not for PA HP-UX.
16582 case "$host_cpu" in
16587 lt_prog_compiler_pic_GCJ='+Z'
16590 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16591 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16594 irix5* | irix6* | nonstopux*)
16595 lt_prog_compiler_wl_GCJ='-Wl,'
16596 # PIC (with -KPIC) is the default.
16597 lt_prog_compiler_static_GCJ='-non_shared'
16601 lt_prog_compiler_pic_GCJ='-KPIC'
16602 lt_prog_compiler_static_GCJ='-Bstatic'
16606 case $cc_basename in
16608 lt_prog_compiler_wl_GCJ='-Wl,'
16609 lt_prog_compiler_pic_GCJ='-KPIC'
16610 lt_prog_compiler_static_GCJ='-static'
16612 pgcc* | pgf77* | pgf90*)
16613 # Portland Group compilers (*not* the Pentium gcc compiler,
16614 # which looks to be a dead project)
16615 lt_prog_compiler_wl_GCJ='-Wl,'
16616 lt_prog_compiler_pic_GCJ='-fpic'
16617 lt_prog_compiler_static_GCJ='-static'
16620 lt_prog_compiler_wl_GCJ='-Wl,'
16621 # All Alpha code is PIC.
16622 lt_prog_compiler_static_GCJ='-non_shared'
16627 osf3* | osf4* | osf5*)
16628 lt_prog_compiler_wl_GCJ='-Wl,'
16629 # All OSF/1 code is PIC.
16630 lt_prog_compiler_static_GCJ='-non_shared'
16634 lt_prog_compiler_pic_GCJ='-Kpic'
16635 lt_prog_compiler_static_GCJ='-dn'
16639 lt_prog_compiler_pic_GCJ='-KPIC'
16640 lt_prog_compiler_static_GCJ='-Bstatic'
16641 case $cc_basename in
16642 f77* | f90* | f95*)
16643 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16645 lt_prog_compiler_wl_GCJ='-Wl,';;
16650 lt_prog_compiler_wl_GCJ='-Qoption ld '
16651 lt_prog_compiler_pic_GCJ='-PIC'
16652 lt_prog_compiler_static_GCJ='-Bstatic'
16655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16656 lt_prog_compiler_wl_GCJ='-Wl,'
16657 lt_prog_compiler_pic_GCJ='-KPIC'
16658 lt_prog_compiler_static_GCJ='-Bstatic'
16662 if test -d /usr/nec ;then
16663 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16664 lt_prog_compiler_static_GCJ='-Bstatic'
16669 lt_prog_compiler_wl_GCJ='-Wl,'
16670 lt_prog_compiler_can_build_shared_GCJ=no
16674 lt_prog_compiler_pic_GCJ='-pic'
16675 lt_prog_compiler_static_GCJ='-Bstatic'
16679 lt_prog_compiler_can_build_shared_GCJ=no
16684 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16685 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16688 # Check to make sure the PIC flag actually works.
16690 if test -n "$lt_prog_compiler_pic_GCJ"; then
16692 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16693 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16694 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 lt_prog_compiler_pic_works_GCJ=no
16698 ac_outfile=conftest.$ac_objext
16699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16700 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16701 # Insert the option either (1) after the last *FLAGS variable, or
16702 # (2) before a word containing "conftest.", or (3) at the end.
16703 # Note that $ac_compile itself does not contain backslashes and begins
16704 # with a dollar sign (not a hyphen), so the echo should work correctly.
16705 # The option is referenced via a variable to avoid confusing sed.
16706 lt_compile=`echo "$ac_compile" | $SED \
16707 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16709 -e 's:$: $lt_compiler_flag:'`
16710 (eval echo "\"\$as_me:16710: $lt_compile\"" >&5)
16711 (eval "$lt_compile" 2>conftest.err)
16713 cat conftest.err >&5
16714 echo "$as_me:16714: \$? = $ac_status" >&5
16715 if (exit $ac_status) && test -s "$ac_outfile"; then
16716 # The compiler can only warn and ignore the option if not recognized
16717 # So say no if there are warnings other than the usual output.
16718 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16719 $SED '/^$/d' conftest.err >conftest.er2
16720 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16721 lt_prog_compiler_pic_works_GCJ=yes
16727 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16728 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16730 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16731 case $lt_prog_compiler_pic_GCJ in
16733 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16736 lt_prog_compiler_pic_GCJ=
16737 lt_prog_compiler_can_build_shared_GCJ=no
16742 # For platforms which do not support PIC, -DPIC is meaningless:
16744 lt_prog_compiler_pic_GCJ=
16747 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16751 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16752 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16753 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 lt_cv_prog_compiler_c_o_GCJ=no
16757 $rm -r conftest 2>/dev/null
16761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16763 lt_compiler_flag="-o out/conftest2.$ac_objext"
16764 # Insert the option either (1) after the last *FLAGS variable, or
16765 # (2) before a word containing "conftest.", or (3) at the end.
16766 # Note that $ac_compile itself does not contain backslashes and begins
16767 # with a dollar sign (not a hyphen), so the echo should work correctly.
16768 lt_compile=`echo "$ac_compile" | $SED \
16769 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16771 -e 's:$: $lt_compiler_flag:'`
16772 (eval echo "\"\$as_me:16772: $lt_compile\"" >&5)
16773 (eval "$lt_compile" 2>out/conftest.err)
16775 cat out/conftest.err >&5
16776 echo "$as_me:16776: \$? = $ac_status" >&5
16777 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16779 # The compiler can only warn and ignore the option if not recognized
16780 # So say no if there are warnings
16781 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16782 $SED '/^$/d' out/conftest.err >out/conftest.er2
16783 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16784 lt_cv_prog_compiler_c_o_GCJ=yes
16789 # SGI C++ compiler will create directory out/ii_files/ for
16790 # template instantiation
16791 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16792 $rm out/* && rmdir out
16798 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16799 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16802 hard_links="nottested"
16803 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16804 # do not overwrite the value of need_locks provided by the user
16805 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16806 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16811 ln conftest.a conftest.b 2>&5 || hard_links=no
16812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16813 echo "$as_me:$LINENO: result: $hard_links" >&5
16814 echo "${ECHO_T}$hard_links" >&6
16815 if test "$hard_links" = no; then
16816 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16817 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16824 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16825 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16828 allow_undefined_flag_GCJ=
16829 enable_shared_with_static_runtimes_GCJ=no
16831 archive_expsym_cmds_GCJ=
16832 old_archive_From_new_cmds_GCJ=
16833 old_archive_from_expsyms_cmds_GCJ=
16834 export_dynamic_flag_spec_GCJ=
16835 whole_archive_flag_spec_GCJ=
16836 thread_safe_flag_spec_GCJ=
16837 hardcode_libdir_flag_spec_GCJ=
16838 hardcode_libdir_flag_spec_ld_GCJ=
16839 hardcode_libdir_separator_GCJ=
16840 hardcode_direct_GCJ=no
16841 hardcode_minus_L_GCJ=no
16842 hardcode_shlibpath_var_GCJ=unsupported
16843 link_all_deplibs_GCJ=unknown
16844 hardcode_automatic_GCJ=no
16846 module_expsym_cmds_GCJ=
16847 always_export_symbols_GCJ=no
16848 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16849 # include_expsyms should be a list of space-separated symbols to be *always*
16850 # included in the symbol list
16851 include_expsyms_GCJ=
16852 # exclude_expsyms can be an extended regexp of symbols to exclude
16853 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16854 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16855 # as well as any symbol that contains `d'.
16856 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16858 # platforms (ab)use it in PIC code, but their linkers get confused if
16859 # the symbol is explicitly referenced. Since portable code cannot
16860 # rely on this symbol name, it's probably fine to never include it in
16861 # preloaded symbol tables.
16862 extract_expsyms_cmds=
16863 # Just being paranoid about ensuring that cc_basename is set.
16864 for cc_temp in $compiler""; do
16866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16872 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16875 cygwin* | mingw* | pw32*)
16876 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16877 # When not using gcc, we currently assume that we are using
16878 # Microsoft Visual C++.
16879 if test "$GCC" != yes; then
16889 if test "$with_gnu_ld" = yes; then
16890 # If archive_cmds runs LD, not CC, wlarc should be empty
16893 # Set some defaults for GNU ld with shared library support. These
16894 # are reset later if shared libraries are not supported. Putting them
16895 # here allows them to be overridden if necessary.
16896 runpath_var=LD_RUN_PATH
16897 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16898 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16899 # ancient GNU ld didn't support --whole-archive et. al.
16900 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16901 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16903 whole_archive_flag_spec_GCJ=
16905 supports_anon_versioning=no
16906 case `$LD -v 2>/dev/null` in
16907 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16908 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16909 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16910 *\ 2.11.*) ;; # other 2.11 versions
16911 *) supports_anon_versioning=yes ;;
16914 # See if GNU ld supports shared libraries.
16916 aix3* | aix4* | aix5*)
16917 # On AIX/PPC, the GNU linker is very broken
16918 if test "$host_cpu" != ia64; then
16922 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16923 *** to be unable to reliably create shared libraries on AIX.
16924 *** Therefore, libtool is disabling shared libraries support. If you
16925 *** really care for shared libraries, you may want to modify your PATH
16926 *** so that a non-GNU linker is found, and then restart.
16933 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)'
16934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16935 hardcode_minus_L_GCJ=yes
16937 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16938 # that the semantics of dynamic libraries on AmigaOS, at least up
16939 # to version 4, is to share data among multiple programs linked
16940 # with the same dynamic library. Since this doesn't match the
16941 # behavior of shared libraries on other platforms, we can't use
16947 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16948 allow_undefined_flag_GCJ=unsupported
16949 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16950 # support --undefined. This deserves some investigation. FIXME
16951 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16957 cygwin* | mingw* | pw32*)
16958 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16959 # as there is no search path for DLLs.
16960 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16961 allow_undefined_flag_GCJ=unsupported
16962 always_export_symbols_GCJ=no
16963 enable_shared_with_static_runtimes_GCJ=yes
16964 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16966 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16967 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16968 # If the export-symbols file already is a .def file (1st line
16969 # is EXPORTS), use it as is; otherwise, prepend...
16970 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16971 cp $export_symbols $output_objdir/$soname.def;
16973 echo EXPORTS > $output_objdir/$soname.def;
16974 cat $export_symbols >> $output_objdir/$soname.def;
16976 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16983 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16985 case $cc_basename,$host_cpu in
16986 pgcc*) # Portland Group C compiler
16987 whole_archive_flag_spec_GCJ=
16989 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16990 whole_archive_flag_spec_GCJ=
16991 tmp_addflag=' -fpic -Mnomain' ;;
16992 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16993 tmp_addflag=' -i_dynamic' ;;
16994 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16995 tmp_addflag=' -i_dynamic -nofor_main' ;;
16996 ifc* | ifort*) # Intel Fortran compiler
16997 tmp_addflag=' -nofor_main' ;;
16999 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17001 if test $supports_anon_versioning = yes; then
17002 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17004 $echo "local: *; };" >> $output_objdir/$libname.ver~
17005 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17014 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17018 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17023 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17027 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17028 *** create shared libraries on Solaris systems. Therefore, libtool
17029 *** is disabling shared libraries support. We urge you to upgrade GNU
17030 *** binutils to release 2.9.1 or newer. Another option is to modify
17031 *** your PATH or compiler configuration so that the native linker is
17032 *** used, and then restart.
17035 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17036 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17037 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17044 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17046 hardcode_direct_GCJ=yes
17047 hardcode_shlibpath_var_GCJ=no
17051 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17052 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17053 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17060 if test "$ld_shlibs_GCJ" = no; then
17062 hardcode_libdir_flag_spec_GCJ=
17063 export_dynamic_flag_spec_GCJ=
17064 whole_archive_flag_spec_GCJ=
17067 # PORTME fill in a description of your system's linker (not GNU ld)
17070 allow_undefined_flag_GCJ=unsupported
17071 always_export_symbols_GCJ=yes
17072 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'
17073 # Note: this linker hardcodes the directories in LIBPATH if there
17074 # are no directories specified by -L.
17075 hardcode_minus_L_GCJ=yes
17076 if test "$GCC" = yes && test -z "$link_static_flag"; then
17077 # Neither direct hardcoding nor static linking is supported with a
17079 hardcode_direct_GCJ=unsupported
17084 if test "$host_cpu" = ia64; then
17085 # On IA64, the linker does run time linking by default, so we don't
17086 # have to do anything special.
17087 aix_use_runtimelinking=no
17088 exp_sym_flag='-Bexport'
17091 # If we're using GNU nm, then we don't want the "-C" option.
17092 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17093 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17094 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'
17096 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'
17098 aix_use_runtimelinking=no
17100 # Test if we are trying to use run time linking or normal
17101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17102 # need to do runtime linking.
17103 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17104 for ld_flag in $LDFLAGS; do
17105 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17106 aix_use_runtimelinking=yes
17112 exp_sym_flag='-bexport'
17113 no_entry_flag='-bnoentry'
17116 # When large executables or shared objects are built, AIX ld can
17117 # have problems creating the table of contents. If linking a library
17118 # or program results in "error TOC overflow" add -mminimal-toc to
17119 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17120 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17122 archive_cmds_GCJ=''
17123 hardcode_direct_GCJ=yes
17124 hardcode_libdir_separator_GCJ=':'
17125 link_all_deplibs_GCJ=yes
17127 if test "$GCC" = yes; then
17128 case $host_os in aix4.[012]|aix4.[012].*)
17129 # We only want to do this on AIX 4.2 and lower, the check
17130 # below for broken collect2 doesn't work under 4.3+
17131 collect2name=`${CC} -print-prog-name=collect2`
17132 if test -f "$collect2name" && \
17133 strings "$collect2name" | grep resolve_lib_name >/dev/null
17135 # We have reworked collect2
17136 hardcode_direct_GCJ=yes
17138 # We have old collect2
17139 hardcode_direct_GCJ=unsupported
17140 # It fails to find uninstalled libraries when the uninstalled
17141 # path is not listed in the libpath. Setting hardcode_minus_L
17142 # to unsupported forces relinking
17143 hardcode_minus_L_GCJ=yes
17144 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17145 hardcode_libdir_separator_GCJ=
17148 shared_flag='-shared'
17149 if test "$aix_use_runtimelinking" = yes; then
17150 shared_flag="$shared_flag "'${wl}-G'
17154 if test "$host_cpu" = ia64; then
17155 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17156 # chokes on -Wl,-G. The following line is correct:
17159 if test "$aix_use_runtimelinking" = yes; then
17160 shared_flag='${wl}-G'
17162 shared_flag='${wl}-bM:SRE'
17167 # It seems that -bexpall does not export symbols beginning with
17168 # underscore (_), so it is better to generate a list of symbols to export.
17169 always_export_symbols_GCJ=yes
17170 if test "$aix_use_runtimelinking" = yes; then
17171 # Warning - without using the other runtime loading flags (-brtl),
17172 # -berok will link without error, but may produce a broken library.
17173 allow_undefined_flag_GCJ='-berok'
17174 # Determine the default libpath from the value encoded in an empty executable.
17175 cat >conftest.$ac_ext <<_ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h. */
17190 rm -f conftest.$ac_objext conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>conftest.er1
17194 grep -v '^ *+' conftest.er1 >conftest.err
17196 cat conftest.err >&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } &&
17199 { ac_try='test -z "$ac_c_werror_flag"
17200 || test ! -s conftest.err'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; } &&
17206 { ac_try='test -s conftest$ac_exeext'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17215 # Check for a 64-bit object if we didn't find anything.
17216 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; }
17219 echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17223 rm -f conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17227 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17228 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17230 if test "$host_cpu" = ia64; then
17231 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17232 allow_undefined_flag_GCJ="-z nodefs"
17233 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17235 # Determine the default libpath from the value encoded in an empty executable.
17236 cat >conftest.$ac_ext <<_ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17253 (eval $ac_link) 2>conftest.er1
17255 grep -v '^ *+' conftest.er1 >conftest.err
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
17260 { ac_try='test -z "$ac_c_werror_flag"
17261 || test ! -s conftest.err'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest$ac_exeext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17276 # Check for a 64-bit object if we didn't find anything.
17277 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; }
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17284 rm -f conftest.err conftest.$ac_objext \
17285 conftest$ac_exeext conftest.$ac_ext
17286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17288 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17289 # Warning - without using the other run time loading flags,
17290 # -berok will link without error, but may produce a broken library.
17291 no_undefined_flag_GCJ=' ${wl}-bernotok'
17292 allow_undefined_flag_GCJ=' ${wl}-berok'
17293 # -bexpall does not export symbols beginning with underscore (_)
17294 always_export_symbols_GCJ=yes
17295 # Exported symbols can be pulled into shared objects from archives
17296 whole_archive_flag_spec_GCJ=' '
17297 archive_cmds_need_lc_GCJ=yes
17298 # This is similar to how AIX traditionally builds it's shared libraries.
17299 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17305 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)'
17306 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17307 hardcode_minus_L_GCJ=yes
17308 # see comment about different semantics on the GNU ld section
17313 export_dynamic_flag_spec_GCJ=-rdynamic
17316 cygwin* | mingw* | pw32*)
17317 # When not using gcc, we currently assume that we are using
17318 # Microsoft Visual C++.
17319 # hardcode_libdir_flag_spec is actually meaningless, as there is
17320 # no search path for DLLs.
17321 hardcode_libdir_flag_spec_GCJ=' '
17322 allow_undefined_flag_GCJ=unsupported
17323 # Tell ltmain to make .lib files, not .a files.
17325 # Tell ltmain to make .dll files, not .so files.
17327 # FIXME: Setting linknames here is a bad hack.
17328 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17329 # The linker will automatically build a .lib file if we build a DLL.
17330 old_archive_From_new_cmds_GCJ='true'
17331 # FIXME: Should let the user specify the lib program.
17332 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17333 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17334 enable_shared_with_static_runtimes_GCJ=yes
17337 darwin* | rhapsody*)
17339 rhapsody* | darwin1.[012])
17340 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17343 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17344 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17346 case ${MACOSX_DEPLOYMENT_TARGET} in
17348 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17351 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17357 archive_cmds_need_lc_GCJ=no
17358 hardcode_direct_GCJ=no
17359 hardcode_automatic_GCJ=yes
17360 hardcode_shlibpath_var_GCJ=unsupported
17361 whole_archive_flag_spec_GCJ=''
17362 link_all_deplibs_GCJ=yes
17363 if test "$GCC" = yes ; then
17364 output_verbose_link_cmd='echo'
17365 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17366 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17367 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17368 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}'
17369 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}'
17371 case $cc_basename in
17373 output_verbose_link_cmd='echo'
17374 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17375 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17376 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17377 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}'
17378 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}'
17388 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17389 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17390 hardcode_shlibpath_var_GCJ=no
17397 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17398 # support. Future versions do this automatically, but an explicit c++rt0.o
17399 # does not break anything, and helps significantly (at the cost of a little
17402 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17403 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17404 hardcode_direct_GCJ=yes
17405 hardcode_shlibpath_var_GCJ=no
17408 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17410 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17411 hardcode_direct_GCJ=yes
17412 hardcode_minus_L_GCJ=yes
17413 hardcode_shlibpath_var_GCJ=no
17416 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17417 freebsd* | kfreebsd*-gnu | dragonfly*)
17418 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17419 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17420 hardcode_direct_GCJ=yes
17421 hardcode_shlibpath_var_GCJ=no
17425 if test "$GCC" = yes; then
17426 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'
17428 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'
17430 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17431 hardcode_libdir_separator_GCJ=:
17432 hardcode_direct_GCJ=yes
17434 # hardcode_minus_L: Not really in the search PATH,
17435 # but as the default location of the library.
17436 hardcode_minus_L_GCJ=yes
17437 export_dynamic_flag_spec_GCJ='${wl}-E'
17441 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17442 case "$host_cpu" in
17444 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17447 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17451 case "$host_cpu" in
17453 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17456 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17460 if test "$with_gnu_ld" = no; then
17461 case "$host_cpu" in
17463 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17464 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17465 hardcode_libdir_separator_GCJ=:
17466 hardcode_direct_GCJ=no
17467 hardcode_shlibpath_var_GCJ=no
17470 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17471 hardcode_direct_GCJ=no
17472 hardcode_shlibpath_var_GCJ=no
17474 # hardcode_minus_L: Not really in the search PATH,
17475 # but as the default location of the library.
17476 hardcode_minus_L_GCJ=yes
17479 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17480 hardcode_libdir_separator_GCJ=:
17481 hardcode_direct_GCJ=yes
17482 export_dynamic_flag_spec_GCJ='${wl}-E'
17484 # hardcode_minus_L: Not really in the search PATH,
17485 # but as the default location of the library.
17486 hardcode_minus_L_GCJ=yes
17492 irix5* | irix6* | nonstopux*)
17493 if test "$GCC" = yes; then
17494 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'
17496 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'
17497 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17499 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17500 hardcode_libdir_separator_GCJ=:
17501 link_all_deplibs_GCJ=yes
17505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17506 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17508 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17510 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17511 hardcode_direct_GCJ=yes
17512 hardcode_shlibpath_var_GCJ=no
17516 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17517 hardcode_direct_GCJ=yes
17518 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17519 hardcode_libdir_separator_GCJ=:
17520 hardcode_shlibpath_var_GCJ=no
17524 hardcode_direct_GCJ=yes
17525 hardcode_shlibpath_var_GCJ=no
17526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17527 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17528 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17529 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17530 export_dynamic_flag_spec_GCJ='${wl}-E'
17533 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17534 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17535 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17538 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17539 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17546 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17547 hardcode_minus_L_GCJ=yes
17548 allow_undefined_flag_GCJ=unsupported
17549 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'
17550 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17554 if test "$GCC" = yes; then
17555 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17556 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'
17558 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17559 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'
17561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17562 hardcode_libdir_separator_GCJ=:
17565 osf4* | osf5*) # as osf3* with the addition of -msym flag
17566 if test "$GCC" = yes; then
17567 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17568 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'
17569 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17571 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17572 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'
17573 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~
17574 $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'
17576 # Both c and cxx compiler support -rpath directly
17577 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17579 hardcode_libdir_separator_GCJ=:
17583 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17584 hardcode_shlibpath_var_GCJ=no
17585 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17586 runpath_var=LD_RUN_PATH
17587 hardcode_runpath_var=yes
17591 no_undefined_flag_GCJ=' -z text'
17592 if test "$GCC" = yes; then
17594 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17595 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17596 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17599 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17600 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17601 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17603 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17604 hardcode_shlibpath_var_GCJ=no
17606 solaris2.[0-5] | solaris2.[0-5].*) ;;
17608 # The compiler driver will combine linker options so we
17609 # cannot just pass the convience library names through
17610 # without $wl, iff we do not link with $LD.
17611 # Luckily, gcc supports the same syntax we need for Sun Studio.
17612 # Supported since Solaris 2.6 (maybe 2.5.1?)
17615 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17617 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' ;;
17620 link_all_deplibs_GCJ=yes
17624 if test "x$host_vendor" = xsequent; then
17625 # Use $CC to link under sequent, because it throws in some extra .o
17626 # files that make .init and .fini sections work.
17627 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17629 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17631 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17632 hardcode_direct_GCJ=yes
17633 hardcode_minus_L_GCJ=yes
17634 hardcode_shlibpath_var_GCJ=no
17638 case $host_vendor in
17640 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17641 hardcode_direct_GCJ=yes # is this really true???
17644 ## LD is ld it makes a PLAMLIB
17645 ## CC just makes a GrossModule.
17646 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17647 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17648 hardcode_direct_GCJ=no
17651 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17652 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17655 runpath_var='LD_RUN_PATH'
17656 hardcode_shlibpath_var_GCJ=no
17660 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17661 hardcode_shlibpath_var_GCJ=no
17662 export_dynamic_flag_spec_GCJ='-Bexport'
17666 if test -d /usr/nec; then
17667 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17668 hardcode_shlibpath_var_GCJ=no
17669 runpath_var=LD_RUN_PATH
17670 hardcode_runpath_var=yes
17676 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17677 hardcode_direct_GCJ=yes
17678 hardcode_minus_L_GCJ=no
17679 hardcode_shlibpath_var_GCJ=no
17680 hardcode_runpath_var=yes
17681 runpath_var=LD_RUN_PATH
17684 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17685 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17686 if test "$GCC" = yes; then
17687 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17689 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17691 runpath_var='LD_RUN_PATH'
17692 hardcode_shlibpath_var_GCJ=no
17696 no_undefined_flag_GCJ=' -z text'
17697 # $CC -shared without GNU ld will not create a library from C++
17698 # object files and a static libstdc++, better avoid it by now
17699 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17700 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17701 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17702 hardcode_libdir_flag_spec_GCJ=
17703 hardcode_shlibpath_var_GCJ=no
17704 runpath_var='LD_RUN_PATH'
17708 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17709 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17710 hardcode_shlibpath_var_GCJ=no
17719 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17720 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17721 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17724 if test "$GCC" = yes; then
17725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17729 # Do we need to explicitly link libc?
17731 case "x$archive_cmds_need_lc_GCJ" in
17733 # Assume -lc should be added
17734 archive_cmds_need_lc_GCJ=yes
17736 if test "$enable_shared" = yes && test "$GCC" = yes; then
17737 case $archive_cmds_GCJ in
17739 # FIXME: we may have to deal with multi-command sequences.
17742 # Test whether the compiler implicitly links with -lc since on some
17743 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17744 # to ld, don't add -lc before -lgcc.
17745 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17746 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17748 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17751 (eval $ac_compile) 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } 2>conftest.err; then
17757 libobjs=conftest.$ac_objext
17759 wl=$lt_prog_compiler_wl_GCJ
17765 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17766 allow_undefined_flag_GCJ=
17767 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17768 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }
17773 archive_cmds_need_lc_GCJ=no
17775 archive_cmds_need_lc_GCJ=yes
17777 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17779 cat conftest.err 1>&5
17782 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17783 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17790 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17791 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17792 library_names_spec=
17793 libname_spec='lib$name'
17797 postuninstall_cmds=
17801 shlibpath_overrides_runpath=unknown
17803 dynamic_linker="$host_os ld.so"
17804 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17805 if test "$GCC" = yes; then
17806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17807 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17808 # if the path contains ";" then we assume it to be the separator
17809 # otherwise default to the standard path separator (i.e. ":") - it is
17810 # assumed that no part of a normal pathname contains ";" but that should
17811 # okay in the real world where ";" in dirpaths is itself problematic.
17812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17817 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17819 need_lib_prefix=unknown
17820 hardcode_into_libs=no
17822 # when you set need_version to no, make sure it does not cause -set_version
17823 # flags to be left without arguments
17824 need_version=unknown
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17830 shlibpath_var=LIBPATH
17832 # AIX 3 has no versioning support, so we append a major version to the name.
17833 soname_spec='${libname}${release}${shared_ext}$major'
17840 hardcode_into_libs=yes
17841 if test "$host_cpu" = ia64; then
17842 # AIX 5 supports IA64
17843 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17844 shlibpath_var=LD_LIBRARY_PATH
17846 # With GCC up to 2.95.x, collect2 would create an import file
17847 # for dependence libraries. The import file would start with
17848 # the line `#! .'. This would cause the generated library to
17849 # depend on `.', always an invalid library. This was fixed in
17850 # development snapshots of GCC prior to 3.0.
17852 aix4 | aix4.[01] | aix4.[01].*)
17853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17855 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17858 can_build_shared=no
17862 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17863 # soname into executable. Probably we can add versioning support to
17864 # collect2, so additional links can be useful in future.
17865 if test "$aix_use_runtimelinking" = yes; then
17866 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17867 # instead of lib<name>.a to let people know that these are not
17868 # typical AIX shared libraries.
17869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871 # We preserve .a as extension for shared libraries through AIX4.2
17872 # and later when we are not doing run time linking.
17873 library_names_spec='${libname}${release}.a $libname.a'
17874 soname_spec='${libname}${release}${shared_ext}$major'
17876 shlibpath_var=LIBPATH
17881 library_names_spec='$libname.ixlibrary $libname.a'
17882 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17883 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'
17887 library_names_spec='${libname}${shared_ext}'
17888 dynamic_linker="$host_os ld.so"
17889 shlibpath_var=LIBRARY_PATH
17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17898 shlibpath_var=LD_LIBRARY_PATH
17899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17901 # the default ld.so.conf also contains /usr/contrib/lib and
17902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17903 # libtool to hard-code these into programs
17906 cygwin* | mingw* | pw32*)
17907 version_type=windows
17912 case $GCC,$host_os in
17913 yes,cygwin* | yes,mingw* | yes,pw32*)
17914 library_names_spec='$libname.dll.a'
17915 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17916 postinstall_cmds='base_file=`basename \${file}`~
17917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17918 dldir=$destdir/`dirname \$dlpath`~
17919 test -d \$dldir || mkdir -p \$dldir~
17920 $install_prog $dir/$dlname \$dldir/$dlname'
17921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17922 dlpath=$dir/\$dldll~
17924 shlibpath_overrides_runpath=yes
17928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17929 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17930 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17933 # MinGW DLLs use traditional 'lib' prefix
17934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17936 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17937 # It is most probably a Windows format PATH printed by
17938 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17939 # path with ; separators, and with drive letters. We can handle the
17940 # drive letters (cygwin fileutils understands them), so leave them,
17941 # especially as we might pass files found there to a mingw objdump,
17942 # which wouldn't understand a cygwinified path. Ahh.
17943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17949 # pw32 DLLs use 'pw' prefix rather than 'lib'
17950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17959 dynamic_linker='Win32 ld.exe'
17960 # FIXME: first we should search . and the directory the executable is in
17964 darwin* | rhapsody*)
17965 dynamic_linker="$host_os dyld"
17966 version_type=darwin
17969 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17970 soname_spec='${libname}${release}${major}$shared_ext'
17971 shlibpath_overrides_runpath=yes
17972 shlibpath_var=DYLD_LIBRARY_PATH
17973 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17974 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17975 if test "$GCC" = yes; then
17976 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"`
17978 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17980 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17988 soname_spec='${libname}${release}${shared_ext}$major'
17989 shlibpath_var=LD_LIBRARY_PATH
18000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18001 soname_spec='${libname}${release}${shared_ext}$major'
18002 shlibpath_var=LD_LIBRARY_PATH
18003 shlibpath_overrides_runpath=no
18004 hardcode_into_libs=yes
18005 dynamic_linker='GNU ld.so'
18008 freebsd* | dragonfly*)
18009 # DragonFly does not have aout. When/if they implement a new
18010 # versioning mechanism, adjust this.
18011 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18012 version_type=freebsd-$objformat
18013 case $version_type in
18015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18024 shlibpath_var=LD_LIBRARY_PATH
18027 shlibpath_overrides_runpath=yes
18029 freebsd3.[01]* | freebsdelf3.[01]*)
18030 shlibpath_overrides_runpath=yes
18031 hardcode_into_libs=yes
18034 shlibpath_overrides_runpath=no
18035 hardcode_into_libs=yes
18044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18045 soname_spec='${libname}${release}${shared_ext}$major'
18046 shlibpath_var=LD_LIBRARY_PATH
18047 hardcode_into_libs=yes
18050 hpux9* | hpux10* | hpux11*)
18051 # Give a soname corresponding to the major version so that dld.sl refuses to
18052 # link against other versions.
18056 case "$host_cpu" in
18059 hardcode_into_libs=yes
18060 dynamic_linker="$host_os dld.so"
18061 shlibpath_var=LD_LIBRARY_PATH
18062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18064 soname_spec='${libname}${release}${shared_ext}$major'
18065 if test "X$HPUX_IA64_MODE" = X32; then
18066 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18068 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18074 hardcode_into_libs=yes
18075 dynamic_linker="$host_os dld.sl"
18076 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079 soname_spec='${libname}${release}${shared_ext}$major'
18080 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18085 dynamic_linker="$host_os dld.sl"
18086 shlibpath_var=SHLIB_PATH
18087 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18089 soname_spec='${libname}${release}${shared_ext}$major'
18092 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18093 postinstall_cmds='chmod 555 $lib'
18096 irix5* | irix6* | nonstopux*)
18098 nonstopux*) version_type=nonstopux ;;
18100 if test "$lt_cv_prog_gnu_ld" = yes; then
18108 soname_spec='${libname}${release}${shared_ext}$major'
18109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18111 irix5* | nonstopux*)
18112 libsuff= shlibsuff=
18115 case $LD in # libtool.m4 will add one of these switches to LD
18116 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18117 libsuff= shlibsuff= libmagic=32-bit;;
18118 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18119 libsuff=32 shlibsuff=N32 libmagic=N32;;
18120 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18121 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18122 *) libsuff= shlibsuff= libmagic=never-match;;
18126 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18127 shlibpath_overrides_runpath=no
18128 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18129 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18130 hardcode_into_libs=yes
18133 # No shared lib support for Linux oldld, aout, or coff.
18134 linux*oldld* | linux*aout* | linux*coff*)
18138 # This must be Linux ELF.
18143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 shlibpath_overrides_runpath=no
18148 # This implies no fast_install, which is unacceptable.
18149 # Some rework will be needed to allow for fast_install
18150 # before this can be enabled.
18151 hardcode_into_libs=yes
18153 # find out which ABI we are using
18155 case "$host_cpu" in
18156 x86_64*|s390x*|powerpc64*)
18157 echo '#line 18157 "configure"' > conftest.$ac_ext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18159 (eval $ac_compile) 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; then
18163 case `/usr/bin/file conftest.$ac_objext` in
18166 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18174 # Append ld.so.conf contents to the search path
18175 if test -f /etc/ld.so.conf; then
18176 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18177 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18180 # We used to test for /lib/ld.so.1 and disable shared libraries on
18181 # powerpc, because MkLinux only supported shared libraries with the
18182 # GNU dynamic linker. Since this was broken with cross compilers,
18183 # most powerpc-linux boxes support dynamic linking these days and
18184 # people can always --disable-shared, the test was removed, and we
18185 # assume the GNU/Linux dynamic linker is in use.
18186 dynamic_linker='GNU/Linux ld.so'
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 shlibpath_var=LD_LIBRARY_PATH
18196 shlibpath_overrides_runpath=no
18197 hardcode_into_libs=yes
18198 dynamic_linker='GNU ld.so'
18205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18208 dynamic_linker='NetBSD (a.out) ld.so'
18210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18211 soname_spec='${libname}${release}${shared_ext}$major'
18212 dynamic_linker='NetBSD ld.elf_so'
18214 shlibpath_var=LD_LIBRARY_PATH
18215 shlibpath_overrides_runpath=yes
18216 hardcode_into_libs=yes
18221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18222 shlibpath_var=LD_LIBRARY_PATH
18223 shlibpath_overrides_runpath=yes
18230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18231 soname_spec='${libname}${release}${shared_ext}$major'
18232 shlibpath_var=LD_LIBRARY_PATH
18233 shlibpath_overrides_runpath=yes
18240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18242 shlibpath_var=LD_LIBRARY_PATH
18243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18245 openbsd2.[89] | openbsd2.[89].*)
18246 shlibpath_overrides_runpath=no
18249 shlibpath_overrides_runpath=yes
18253 shlibpath_overrides_runpath=yes
18258 libname_spec='$name'
18261 library_names_spec='$libname${shared_ext} $libname.a'
18262 dynamic_linker='OS/2 ld.exe'
18263 shlibpath_var=LIBPATH
18266 osf3* | osf4* | osf5*)
18270 soname_spec='${libname}${release}${shared_ext}$major'
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272 shlibpath_var=LD_LIBRARY_PATH
18273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18274 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18279 soname_spec='${libname}${release}${shared_ext}$major'
18280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18281 shlibpath_var=LD_LIBRARY_PATH
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289 soname_spec='${libname}${release}${shared_ext}$major'
18290 shlibpath_var=LD_LIBRARY_PATH
18291 shlibpath_overrides_runpath=yes
18292 hardcode_into_libs=yes
18293 # ldd complains unless libraries are executable
18294 postinstall_cmds='chmod +x $lib'
18299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 shlibpath_overrides_runpath=yes
18303 if test "$with_gnu_ld" = yes; then
18309 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312 soname_spec='${libname}${release}${shared_ext}$major'
18313 shlibpath_var=LD_LIBRARY_PATH
18314 case $host_vendor in
18316 shlibpath_overrides_runpath=no
18318 export_dynamic_flag_spec='${wl}-Blargedynsym'
18319 runpath_var=LD_RUN_PATH
18327 shlibpath_overrides_runpath=no
18328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18334 if test -d /usr/nec ;then
18336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18337 soname_spec='$libname${shared_ext}.$major'
18338 shlibpath_var=LD_LIBRARY_PATH
18344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18345 soname_spec='${libname}${release}${shared_ext}$major'
18346 shlibpath_var=LD_LIBRARY_PATH
18353 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18354 echo "${ECHO_T}$dynamic_linker" >&6
18355 test "$dynamic_linker" = no && can_build_shared=no
18357 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18358 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18359 hardcode_action_GCJ=
18360 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18361 test -n "$runpath_var_GCJ" || \
18362 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18364 # We can hardcode non-existant directories.
18365 if test "$hardcode_direct_GCJ" != no &&
18366 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18367 # have to relink, otherwise we might link with an installed library
18368 # when we should be linking with a yet-to-be-installed one
18369 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18370 test "$hardcode_minus_L_GCJ" != no; then
18371 # Linking always hardcodes the temporary library directory.
18372 hardcode_action_GCJ=relink
18374 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18375 hardcode_action_GCJ=immediate
18378 # We cannot hardcode anything, or else we can only hardcode existing
18380 hardcode_action_GCJ=unsupported
18382 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18383 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18385 if test "$hardcode_action_GCJ" = relink; then
18386 # Fast installation is not supported
18387 enable_fast_install=no
18388 elif test "$shlibpath_overrides_runpath" = yes ||
18389 test "$enable_shared" = no; then
18390 # Fast installation is not necessary
18391 enable_fast_install=needless
18396 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18397 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18398 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18399 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18400 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18401 echo "$as_me:$LINENO: result: yes" >&5
18402 echo "${ECHO_T}yes" >&6
18404 # FIXME - insert some real tests, host_os isn't really good enough
18407 if test -n "$STRIP" ; then
18408 striplib="$STRIP -x"
18409 echo "$as_me:$LINENO: result: yes" >&5
18410 echo "${ECHO_T}yes" >&6
18412 echo "$as_me:$LINENO: result: no" >&5
18413 echo "${ECHO_T}no" >&6
18417 echo "$as_me:$LINENO: result: no" >&5
18418 echo "${ECHO_T}no" >&6
18423 if test "x$enable_dlopen" != xyes; then
18424 enable_dlopen=unknown
18425 enable_dlopen_self=unknown
18426 enable_dlopen_self_static=unknown
18433 lt_cv_dlopen="load_add_on"
18435 lt_cv_dlopen_self=yes
18439 lt_cv_dlopen="LoadLibrary"
18444 lt_cv_dlopen="dlopen"
18449 # if libdl is installed we need to link against it
18450 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18451 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18452 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18455 ac_check_lib_save_LIBS=$LIBS
18457 cat >conftest.$ac_ext <<_ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h. */
18464 /* Override any gcc2 internal prototype to avoid an error. */
18468 /* We use char because int might match the return type of a gcc2
18469 builtin and then its argument prototype would still apply. */
18479 rm -f conftest.$ac_objext conftest$ac_exeext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18481 (eval $ac_link) 2>conftest.er1
18483 grep -v '^ *+' conftest.er1 >conftest.err
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } &&
18488 { ac_try='test -z "$ac_c_werror_flag"
18489 || test ! -s conftest.err'
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest$ac_exeext'
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; }; then
18501 ac_cv_lib_dl_dlopen=yes
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18506 ac_cv_lib_dl_dlopen=no
18508 rm -f conftest.err conftest.$ac_objext \
18509 conftest$ac_exeext conftest.$ac_ext
18510 LIBS=$ac_check_lib_save_LIBS
18512 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18513 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18514 if test $ac_cv_lib_dl_dlopen = yes; then
18515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18518 lt_cv_dlopen="dyld"
18520 lt_cv_dlopen_self=yes
18527 echo "$as_me:$LINENO: checking for shl_load" >&5
18528 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18529 if test "${ac_cv_func_shl_load+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18532 cat >conftest.$ac_ext <<_ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18540 #define shl_load innocuous_shl_load
18542 /* System header to define __stub macros and hopefully few prototypes,
18543 which can conflict with char shl_load (); below.
18544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18545 <limits.h> exists even on freestanding compilers. */
18548 # include <limits.h>
18550 # include <assert.h>
18555 /* Override any gcc2 internal prototype to avoid an error. */
18560 /* We use char because int might match the return type of a gcc2
18561 builtin and then its argument prototype would still apply. */
18563 /* The GNU C library defines this for functions which it implements
18564 to always fail with ENOSYS. Some functions are actually named
18565 something starting with __ and the normal name is an alias. */
18566 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18569 char (*f) () = shl_load;
18578 return f != shl_load;
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18585 (eval $ac_link) 2>conftest.er1
18587 grep -v '^ *+' conftest.er1 >conftest.err
18589 cat conftest.err >&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
18592 { ac_try='test -z "$ac_c_werror_flag"
18593 || test ! -s conftest.err'
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest$ac_exeext'
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_cv_func_shl_load=yes
18607 echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18610 ac_cv_func_shl_load=no
18612 rm -f conftest.err conftest.$ac_objext \
18613 conftest$ac_exeext conftest.$ac_ext
18615 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18616 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18617 if test $ac_cv_func_shl_load = yes; then
18618 lt_cv_dlopen="shl_load"
18620 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18621 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18622 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18625 ac_check_lib_save_LIBS=$LIBS
18627 cat >conftest.$ac_ext <<_ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18634 /* Override any gcc2 internal prototype to avoid an error. */
18638 /* We use char because int might match the return type of a gcc2
18639 builtin and then its argument prototype would still apply. */
18649 rm -f conftest.$ac_objext conftest$ac_exeext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18651 (eval $ac_link) 2>conftest.er1
18653 grep -v '^ *+' conftest.er1 >conftest.err
18655 cat conftest.err >&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
18658 { ac_try='test -z "$ac_c_werror_flag"
18659 || test ! -s conftest.err'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; } &&
18665 { ac_try='test -s conftest$ac_exeext'
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; }; then
18671 ac_cv_lib_dld_shl_load=yes
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 ac_cv_lib_dld_shl_load=no
18678 rm -f conftest.err conftest.$ac_objext \
18679 conftest$ac_exeext conftest.$ac_ext
18680 LIBS=$ac_check_lib_save_LIBS
18682 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18683 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18684 if test $ac_cv_lib_dld_shl_load = yes; then
18685 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18687 echo "$as_me:$LINENO: checking for dlopen" >&5
18688 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18689 if test "${ac_cv_func_dlopen+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700 #define dlopen innocuous_dlopen
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char dlopen (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18708 # include <limits.h>
18710 # include <assert.h>
18715 /* Override any gcc2 internal prototype to avoid an error. */
18720 /* We use char because int might match the return type of a gcc2
18721 builtin and then its argument prototype would still apply. */
18723 /* The GNU C library defines this for functions which it implements
18724 to always fail with ENOSYS. Some functions are actually named
18725 something starting with __ and the normal name is an alias. */
18726 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18729 char (*f) () = dlopen;
18738 return f != dlopen;
18743 rm -f conftest.$ac_objext conftest$ac_exeext
18744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18745 (eval $ac_link) 2>conftest.er1
18747 grep -v '^ *+' conftest.er1 >conftest.err
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
18752 { ac_try='test -z "$ac_c_werror_flag"
18753 || test ! -s conftest.err'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest$ac_exeext'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; }; then
18765 ac_cv_func_dlopen=yes
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18770 ac_cv_func_dlopen=no
18772 rm -f conftest.err conftest.$ac_objext \
18773 conftest$ac_exeext conftest.$ac_ext
18775 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18776 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18777 if test $ac_cv_func_dlopen = yes; then
18778 lt_cv_dlopen="dlopen"
18780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18785 ac_check_lib_save_LIBS=$LIBS
18787 cat >conftest.$ac_ext <<_ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18794 /* Override any gcc2 internal prototype to avoid an error. */
18798 /* We use char because int might match the return type of a gcc2
18799 builtin and then its argument prototype would still apply. */
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811 (eval $ac_link) 2>conftest.er1
18813 grep -v '^ *+' conftest.er1 >conftest.err
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -z "$ac_c_werror_flag"
18819 || test ! -s conftest.err'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try='test -s conftest$ac_exeext'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18831 ac_cv_lib_dl_dlopen=yes
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18836 ac_cv_lib_dl_dlopen=no
18838 rm -f conftest.err conftest.$ac_objext \
18839 conftest$ac_exeext conftest.$ac_ext
18840 LIBS=$ac_check_lib_save_LIBS
18842 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18843 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18844 if test $ac_cv_lib_dl_dlopen = yes; then
18845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18847 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18848 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18850 echo $ECHO_N "(cached) $ECHO_C" >&6
18852 ac_check_lib_save_LIBS=$LIBS
18853 LIBS="-lsvld $LIBS"
18854 cat >conftest.$ac_ext <<_ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18861 /* Override any gcc2 internal prototype to avoid an error. */
18865 /* We use char because int might match the return type of a gcc2
18866 builtin and then its argument prototype would still apply. */
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18878 (eval $ac_link) 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_exeext'
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_lib_svld_dlopen=yes
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ac_cv_lib_svld_dlopen=no
18905 rm -f conftest.err conftest.$ac_objext \
18906 conftest$ac_exeext conftest.$ac_ext
18907 LIBS=$ac_check_lib_save_LIBS
18909 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18910 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18911 if test $ac_cv_lib_svld_dlopen = yes; then
18912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18914 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18915 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18916 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18919 ac_check_lib_save_LIBS=$LIBS
18921 cat >conftest.$ac_ext <<_ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18928 /* Override any gcc2 internal prototype to avoid an error. */
18932 /* We use char because int might match the return type of a gcc2
18933 builtin and then its argument prototype would still apply. */
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18945 (eval $ac_link) 2>conftest.er1
18947 grep -v '^ *+' conftest.er1 >conftest.err
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -z "$ac_c_werror_flag"
18953 || test ! -s conftest.err'
18954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955 (eval $ac_try) 2>&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; } &&
18959 { ac_try='test -s conftest$ac_exeext'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 ac_cv_lib_dld_dld_link=yes
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 ac_cv_lib_dld_dld_link=no
18972 rm -f conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
18974 LIBS=$ac_check_lib_save_LIBS
18976 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18977 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18978 if test $ac_cv_lib_dld_dld_link = yes; then
18979 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19000 if test "x$lt_cv_dlopen" != xno; then
19006 case $lt_cv_dlopen in
19008 save_CPPFLAGS="$CPPFLAGS"
19009 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19011 save_LDFLAGS="$LDFLAGS"
19012 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19015 LIBS="$lt_cv_dlopen_libs $LIBS"
19017 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19018 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19019 if test "${lt_cv_dlopen_self+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 if test "$cross_compiling" = yes; then :
19023 lt_cv_dlopen_self=cross
19025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19026 lt_status=$lt_dlunknown
19027 cat > conftest.$ac_ext <<EOF
19028 #line 19028 "configure"
19029 #include "confdefs.h"
19038 # define LT_DLGLOBAL RTLD_GLOBAL
19041 # define LT_DLGLOBAL DL_GLOBAL
19043 # define LT_DLGLOBAL 0
19047 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19048 find out it does not work in some platform. */
19049 #ifndef LT_DLLAZY_OR_NOW
19051 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19054 # define LT_DLLAZY_OR_NOW DL_LAZY
19057 # define LT_DLLAZY_OR_NOW RTLD_NOW
19060 # define LT_DLLAZY_OR_NOW DL_NOW
19062 # define LT_DLLAZY_OR_NOW 0
19070 extern "C" void exit (int);
19073 void fnord() { int i=42;}
19076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19077 int status = $lt_dlunknown;
19081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19083 /* dlclose (self); */
19089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19090 (eval $ac_link) 2>&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19094 (./conftest; exit; ) 2>/dev/null
19096 case x$lt_status in
19097 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19098 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19099 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19102 # compilation failed
19103 lt_cv_dlopen_self=no
19110 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19111 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19113 if test "x$lt_cv_dlopen_self" = xyes; then
19114 LDFLAGS="$LDFLAGS $link_static_flag"
19115 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19116 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19117 if test "${lt_cv_dlopen_self_static+set}" = set; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 if test "$cross_compiling" = yes; then :
19121 lt_cv_dlopen_self_static=cross
19123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19124 lt_status=$lt_dlunknown
19125 cat > conftest.$ac_ext <<EOF
19126 #line 19126 "configure"
19127 #include "confdefs.h"
19136 # define LT_DLGLOBAL RTLD_GLOBAL
19139 # define LT_DLGLOBAL DL_GLOBAL
19141 # define LT_DLGLOBAL 0
19145 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19146 find out it does not work in some platform. */
19147 #ifndef LT_DLLAZY_OR_NOW
19149 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19152 # define LT_DLLAZY_OR_NOW DL_LAZY
19155 # define LT_DLLAZY_OR_NOW RTLD_NOW
19158 # define LT_DLLAZY_OR_NOW DL_NOW
19160 # define LT_DLLAZY_OR_NOW 0
19168 extern "C" void exit (int);
19171 void fnord() { int i=42;}
19174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19175 int status = $lt_dlunknown;
19179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19180 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19181 /* dlclose (self); */
19187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19188 (eval $ac_link) 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19192 (./conftest; exit; ) 2>/dev/null
19194 case x$lt_status in
19195 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19196 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19197 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19200 # compilation failed
19201 lt_cv_dlopen_self_static=no
19208 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19209 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19212 CPPFLAGS="$save_CPPFLAGS"
19213 LDFLAGS="$save_LDFLAGS"
19218 case $lt_cv_dlopen_self in
19219 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19220 *) enable_dlopen_self=unknown ;;
19223 case $lt_cv_dlopen_self_static in
19224 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19225 *) enable_dlopen_self_static=unknown ;;
19230 # The else clause should only fire when bootstrapping the
19231 # libtool distribution, otherwise you forgot to ship ltmain.sh
19232 # with your package, and you will get complaints that there are
19233 # no rules to generate ltmain.sh.
19234 if test -f "$ltmain"; then
19235 # See if we are running on zsh, and set the options which allow our commands through
19236 # without removal of \ escapes.
19237 if test -n "${ZSH_VERSION+set}" ; then
19238 setopt NO_GLOB_SUBST
19240 # Now quote all the things that may contain metacharacters while being
19241 # careful not to overquote the AC_SUBSTed values. We take copies of the
19242 # variables and quote the copies for generation of the libtool script.
19243 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19245 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19246 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19247 deplibs_check_method reload_flag reload_cmds need_locks \
19248 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19249 lt_cv_sys_global_symbol_to_c_name_address \
19250 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19251 old_postinstall_cmds old_postuninstall_cmds \
19255 lt_prog_compiler_wl_GCJ \
19256 lt_prog_compiler_pic_GCJ \
19257 lt_prog_compiler_static_GCJ \
19258 lt_prog_compiler_no_builtin_flag_GCJ \
19259 export_dynamic_flag_spec_GCJ \
19260 thread_safe_flag_spec_GCJ \
19261 whole_archive_flag_spec_GCJ \
19262 enable_shared_with_static_runtimes_GCJ \
19263 old_archive_cmds_GCJ \
19264 old_archive_from_new_cmds_GCJ \
19265 predep_objects_GCJ \
19266 postdep_objects_GCJ \
19269 compiler_lib_search_path_GCJ \
19271 archive_expsym_cmds_GCJ \
19272 postinstall_cmds_GCJ \
19273 postuninstall_cmds_GCJ \
19274 old_archive_from_expsyms_cmds_GCJ \
19275 allow_undefined_flag_GCJ \
19276 no_undefined_flag_GCJ \
19277 export_symbols_cmds_GCJ \
19278 hardcode_libdir_flag_spec_GCJ \
19279 hardcode_libdir_flag_spec_ld_GCJ \
19280 hardcode_libdir_separator_GCJ \
19281 hardcode_automatic_GCJ \
19283 module_expsym_cmds_GCJ \
19284 lt_cv_prog_compiler_c_o_GCJ \
19285 exclude_expsyms_GCJ \
19286 include_expsyms_GCJ; do
19289 old_archive_cmds_GCJ | \
19290 old_archive_from_new_cmds_GCJ | \
19291 archive_cmds_GCJ | \
19292 archive_expsym_cmds_GCJ | \
19293 module_cmds_GCJ | \
19294 module_expsym_cmds_GCJ | \
19295 old_archive_from_expsyms_cmds_GCJ | \
19296 export_symbols_cmds_GCJ | \
19297 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19298 postinstall_cmds | postuninstall_cmds | \
19299 old_postinstall_cmds | old_postuninstall_cmds | \
19300 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19301 # Double-quote double-evaled strings.
19302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19305 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19311 *'\$0 --fallback-echo"')
19312 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19318 cat <<__EOF__ >> "$cfgfile"
19319 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19321 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19323 # Shell to use when invoking shell scripts.
19326 # Whether or not to build shared libraries.
19327 build_libtool_libs=$enable_shared
19329 # Whether or not to build static libraries.
19330 build_old_libs=$enable_static
19332 # Whether or not to add -lc for building shared libraries.
19333 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19335 # Whether or not to disallow shared libs when runtime libs are static
19336 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19338 # Whether or not to optimize for fast installation.
19339 fast_install=$enable_fast_install
19342 host_alias=$host_alias
19346 # The build system.
19347 build_alias=$build_alias
19351 # An echo program that does not interpret backslashes.
19356 AR_FLAGS=$lt_AR_FLAGS
19361 # A language-specific compiler.
19362 CC=$lt_compiler_GCJ
19364 # Is the compiler the GNU C compiler?
19370 # The linker used to build libraries.
19373 # Whether we need hard or soft links.
19376 # A BSD-compatible nm program.
19379 # A symbol stripping program
19382 # Used to examine libraries when file_magic_cmd begins "file"
19383 MAGIC_CMD=$MAGIC_CMD
19385 # Used on cygwin: DLL creation program.
19388 # Used on cygwin: object dumper.
19391 # Used on cygwin: assembler.
19394 # The name of the directory that contains temporary libtool files.
19397 # How to create reloadable object files.
19398 reload_flag=$lt_reload_flag
19399 reload_cmds=$lt_reload_cmds
19401 # How to pass a linker flag through the compiler.
19402 wl=$lt_lt_prog_compiler_wl_GCJ
19404 # Object file suffix (normally "o").
19405 objext="$ac_objext"
19407 # Old archive suffix (normally "a").
19410 # Shared library suffix (normally ".so").
19411 shrext_cmds='$shrext_cmds'
19413 # Executable file suffix (normally "").
19416 # Additional compiler flags for building library objects.
19417 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19420 # What is the maximum length of a command?
19421 max_cmd_len=$lt_cv_sys_max_cmd_len
19423 # Does compiler simultaneously support -c and -o options?
19424 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19426 # Must we lock files when doing compilation?
19427 need_locks=$lt_need_locks
19429 # Do we need the lib prefix for modules?
19430 need_lib_prefix=$need_lib_prefix
19432 # Do we need a version for libraries?
19433 need_version=$need_version
19435 # Whether dlopen is supported.
19436 dlopen_support=$enable_dlopen
19438 # Whether dlopen of programs is supported.
19439 dlopen_self=$enable_dlopen_self
19441 # Whether dlopen of statically linked programs is supported.
19442 dlopen_self_static=$enable_dlopen_self_static
19444 # Compiler flag to prevent dynamic linking.
19445 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19447 # Compiler flag to turn off builtin functions.
19448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19450 # Compiler flag to allow reflexive dlopens.
19451 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19453 # Compiler flag to generate shared objects directly from archives.
19454 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19456 # Compiler flag to generate thread-safe objects.
19457 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19459 # Library versioning type.
19460 version_type=$version_type
19462 # Format of library name prefix.
19463 libname_spec=$lt_libname_spec
19465 # List of archive names. First name is the real one, the rest are links.
19466 # The last name is the one that the linker finds with -lNAME.
19467 library_names_spec=$lt_library_names_spec
19469 # The coded name of the library, if different from the real name.
19470 soname_spec=$lt_soname_spec
19472 # Commands used to build and install an old-style archive.
19474 old_archive_cmds=$lt_old_archive_cmds_GCJ
19475 old_postinstall_cmds=$lt_old_postinstall_cmds
19476 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19478 # Create an old-style archive from a shared archive.
19479 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19481 # Create a temporary old-style archive to link instead of a shared archive.
19482 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19484 # Commands used to build and install a shared archive.
19485 archive_cmds=$lt_archive_cmds_GCJ
19486 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19487 postinstall_cmds=$lt_postinstall_cmds
19488 postuninstall_cmds=$lt_postuninstall_cmds
19490 # Commands used to build a loadable module (assumed same as above if empty)
19491 module_cmds=$lt_module_cmds_GCJ
19492 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19494 # Commands to strip libraries.
19495 old_striplib=$lt_old_striplib
19496 striplib=$lt_striplib
19498 # Dependencies to place before the objects being linked to create a
19500 predep_objects=$lt_predep_objects_GCJ
19502 # Dependencies to place after the objects being linked to create a
19504 postdep_objects=$lt_postdep_objects_GCJ
19506 # Dependencies to place before the objects being linked to create a
19508 predeps=$lt_predeps_GCJ
19510 # Dependencies to place after the objects being linked to create a
19512 postdeps=$lt_postdeps_GCJ
19514 # The library search path used internally by the compiler when linking
19515 # a shared library.
19516 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19518 # Method to check whether dependent libraries are shared objects.
19519 deplibs_check_method=$lt_deplibs_check_method
19521 # Command to use when deplibs_check_method == file_magic.
19522 file_magic_cmd=$lt_file_magic_cmd
19524 # Flag that allows shared libraries with undefined symbols to be built.
19525 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19527 # Flag that forces no undefined symbols.
19528 no_undefined_flag=$lt_no_undefined_flag_GCJ
19530 # Commands used to finish a libtool library installation in a directory.
19531 finish_cmds=$lt_finish_cmds
19533 # Same as above, but a single script fragment to be evaled but not shown.
19534 finish_eval=$lt_finish_eval
19536 # Take the output of nm and produce a listing of raw symbols and C names.
19537 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19539 # Transform the output of nm in a proper C declaration
19540 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19542 # Transform the output of nm in a C name address pair
19543 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19545 # This is the shared library runtime path variable.
19546 runpath_var=$runpath_var
19548 # This is the shared library path variable.
19549 shlibpath_var=$shlibpath_var
19551 # Is shlibpath searched before the hard-coded library search path?
19552 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19554 # How to hardcode a shared library path into an executable.
19555 hardcode_action=$hardcode_action_GCJ
19557 # Whether we should hardcode library paths into libraries.
19558 hardcode_into_libs=$hardcode_into_libs
19560 # Flag to hardcode \$libdir into a binary during linking.
19561 # This must work even if \$libdir does not exist.
19562 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19564 # If ld is used when linking, flag to hardcode \$libdir into
19565 # a binary during linking. This must work even if \$libdir does
19567 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19569 # Whether we need a single -rpath flag with a separated argument.
19570 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19572 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19573 # resulting binary.
19574 hardcode_direct=$hardcode_direct_GCJ
19576 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19577 # resulting binary.
19578 hardcode_minus_L=$hardcode_minus_L_GCJ
19580 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19581 # the resulting binary.
19582 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19584 # Set to yes if building a shared library automatically hardcodes DIR into the library
19585 # and all subsequent libraries and executables linked against it.
19586 hardcode_automatic=$hardcode_automatic_GCJ
19588 # Variables whose values should be saved in libtool wrapper scripts and
19589 # restored at relink time.
19590 variables_saved_for_relink="$variables_saved_for_relink"
19592 # Whether libtool must link a program against all its dependency libraries.
19593 link_all_deplibs=$link_all_deplibs_GCJ
19595 # Compile-time system search path for libraries
19596 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19598 # Run-time system search path for libraries
19599 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19601 # Fix the shell variable \$srcfile for the compiler.
19602 fix_srcfile_path="$fix_srcfile_path_GCJ"
19604 # Set to yes if exported symbols are required.
19605 always_export_symbols=$always_export_symbols_GCJ
19607 # The commands to list exported symbols.
19608 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19610 # The commands to extract the exported symbol list from a shared archive.
19611 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19613 # Symbols that should not be listed in the preloaded symbols.
19614 exclude_expsyms=$lt_exclude_expsyms_GCJ
19616 # Symbols that must always be exported.
19617 include_expsyms=$lt_include_expsyms_GCJ
19619 # ### END LIBTOOL TAG CONFIG: $tagname
19625 # If there is no Makefile yet, we rely on a make rule to execute
19626 # `config.status --recheck' to rerun these tests and create the
19627 # libtool script then.
19628 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19629 if test -f "$ltmain_in"; then
19630 test -f Makefile && make "$ltmain"
19636 ac_cpp='$CPP $CPPFLAGS'
19637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19652 # Source file extension for RC test sources.
19655 # Object file extension for compiled RC test sources.
19659 # Code to be used in simple compile tests
19660 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19662 # Code to be used in simple link tests
19663 lt_simple_link_test_code="$lt_simple_compile_test_code"
19665 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19667 # If no C compiler was specified, use CC.
19670 # Allow CC to be a program name with arguments.
19674 # save warnings/boilerplate of simple test code
19675 ac_outfile=conftest.$ac_objext
19676 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19677 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19678 _lt_compiler_boilerplate=`cat conftest.err`
19681 ac_outfile=conftest.$ac_objext
19682 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19683 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19684 _lt_linker_boilerplate=`cat conftest.err`
19688 # Allow CC to be a program name with arguments.
19693 for cc_temp in $compiler""; do
19695 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19696 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19701 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19703 lt_cv_prog_compiler_c_o_RC=yes
19705 # The else clause should only fire when bootstrapping the
19706 # libtool distribution, otherwise you forgot to ship ltmain.sh
19707 # with your package, and you will get complaints that there are
19708 # no rules to generate ltmain.sh.
19709 if test -f "$ltmain"; then
19710 # See if we are running on zsh, and set the options which allow our commands through
19711 # without removal of \ escapes.
19712 if test -n "${ZSH_VERSION+set}" ; then
19713 setopt NO_GLOB_SUBST
19715 # Now quote all the things that may contain metacharacters while being
19716 # careful not to overquote the AC_SUBSTed values. We take copies of the
19717 # variables and quote the copies for generation of the libtool script.
19718 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19720 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19721 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19722 deplibs_check_method reload_flag reload_cmds need_locks \
19723 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19724 lt_cv_sys_global_symbol_to_c_name_address \
19725 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19726 old_postinstall_cmds old_postuninstall_cmds \
19730 lt_prog_compiler_wl_RC \
19731 lt_prog_compiler_pic_RC \
19732 lt_prog_compiler_static_RC \
19733 lt_prog_compiler_no_builtin_flag_RC \
19734 export_dynamic_flag_spec_RC \
19735 thread_safe_flag_spec_RC \
19736 whole_archive_flag_spec_RC \
19737 enable_shared_with_static_runtimes_RC \
19738 old_archive_cmds_RC \
19739 old_archive_from_new_cmds_RC \
19740 predep_objects_RC \
19741 postdep_objects_RC \
19744 compiler_lib_search_path_RC \
19746 archive_expsym_cmds_RC \
19747 postinstall_cmds_RC \
19748 postuninstall_cmds_RC \
19749 old_archive_from_expsyms_cmds_RC \
19750 allow_undefined_flag_RC \
19751 no_undefined_flag_RC \
19752 export_symbols_cmds_RC \
19753 hardcode_libdir_flag_spec_RC \
19754 hardcode_libdir_flag_spec_ld_RC \
19755 hardcode_libdir_separator_RC \
19756 hardcode_automatic_RC \
19758 module_expsym_cmds_RC \
19759 lt_cv_prog_compiler_c_o_RC \
19760 exclude_expsyms_RC \
19761 include_expsyms_RC; do
19764 old_archive_cmds_RC | \
19765 old_archive_from_new_cmds_RC | \
19766 archive_cmds_RC | \
19767 archive_expsym_cmds_RC | \
19769 module_expsym_cmds_RC | \
19770 old_archive_from_expsyms_cmds_RC | \
19771 export_symbols_cmds_RC | \
19772 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19773 postinstall_cmds | postuninstall_cmds | \
19774 old_postinstall_cmds | old_postuninstall_cmds | \
19775 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19776 # Double-quote double-evaled strings.
19777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19786 *'\$0 --fallback-echo"')
19787 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19793 cat <<__EOF__ >> "$cfgfile"
19794 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19796 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19798 # Shell to use when invoking shell scripts.
19801 # Whether or not to build shared libraries.
19802 build_libtool_libs=$enable_shared
19804 # Whether or not to build static libraries.
19805 build_old_libs=$enable_static
19807 # Whether or not to add -lc for building shared libraries.
19808 build_libtool_need_lc=$archive_cmds_need_lc_RC
19810 # Whether or not to disallow shared libs when runtime libs are static
19811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19813 # Whether or not to optimize for fast installation.
19814 fast_install=$enable_fast_install
19817 host_alias=$host_alias
19821 # The build system.
19822 build_alias=$build_alias
19826 # An echo program that does not interpret backslashes.
19831 AR_FLAGS=$lt_AR_FLAGS
19836 # A language-specific compiler.
19839 # Is the compiler the GNU C compiler?
19845 # The linker used to build libraries.
19848 # Whether we need hard or soft links.
19851 # A BSD-compatible nm program.
19854 # A symbol stripping program
19857 # Used to examine libraries when file_magic_cmd begins "file"
19858 MAGIC_CMD=$MAGIC_CMD
19860 # Used on cygwin: DLL creation program.
19863 # Used on cygwin: object dumper.
19866 # Used on cygwin: assembler.
19869 # The name of the directory that contains temporary libtool files.
19872 # How to create reloadable object files.
19873 reload_flag=$lt_reload_flag
19874 reload_cmds=$lt_reload_cmds
19876 # How to pass a linker flag through the compiler.
19877 wl=$lt_lt_prog_compiler_wl_RC
19879 # Object file suffix (normally "o").
19880 objext="$ac_objext"
19882 # Old archive suffix (normally "a").
19885 # Shared library suffix (normally ".so").
19886 shrext_cmds='$shrext_cmds'
19888 # Executable file suffix (normally "").
19891 # Additional compiler flags for building library objects.
19892 pic_flag=$lt_lt_prog_compiler_pic_RC
19895 # What is the maximum length of a command?
19896 max_cmd_len=$lt_cv_sys_max_cmd_len
19898 # Does compiler simultaneously support -c and -o options?
19899 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19901 # Must we lock files when doing compilation?
19902 need_locks=$lt_need_locks
19904 # Do we need the lib prefix for modules?
19905 need_lib_prefix=$need_lib_prefix
19907 # Do we need a version for libraries?
19908 need_version=$need_version
19910 # Whether dlopen is supported.
19911 dlopen_support=$enable_dlopen
19913 # Whether dlopen of programs is supported.
19914 dlopen_self=$enable_dlopen_self
19916 # Whether dlopen of statically linked programs is supported.
19917 dlopen_self_static=$enable_dlopen_self_static
19919 # Compiler flag to prevent dynamic linking.
19920 link_static_flag=$lt_lt_prog_compiler_static_RC
19922 # Compiler flag to turn off builtin functions.
19923 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19925 # Compiler flag to allow reflexive dlopens.
19926 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19928 # Compiler flag to generate shared objects directly from archives.
19929 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19931 # Compiler flag to generate thread-safe objects.
19932 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19934 # Library versioning type.
19935 version_type=$version_type
19937 # Format of library name prefix.
19938 libname_spec=$lt_libname_spec
19940 # List of archive names. First name is the real one, the rest are links.
19941 # The last name is the one that the linker finds with -lNAME.
19942 library_names_spec=$lt_library_names_spec
19944 # The coded name of the library, if different from the real name.
19945 soname_spec=$lt_soname_spec
19947 # Commands used to build and install an old-style archive.
19949 old_archive_cmds=$lt_old_archive_cmds_RC
19950 old_postinstall_cmds=$lt_old_postinstall_cmds
19951 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19953 # Create an old-style archive from a shared archive.
19954 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19956 # Create a temporary old-style archive to link instead of a shared archive.
19957 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19959 # Commands used to build and install a shared archive.
19960 archive_cmds=$lt_archive_cmds_RC
19961 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19962 postinstall_cmds=$lt_postinstall_cmds
19963 postuninstall_cmds=$lt_postuninstall_cmds
19965 # Commands used to build a loadable module (assumed same as above if empty)
19966 module_cmds=$lt_module_cmds_RC
19967 module_expsym_cmds=$lt_module_expsym_cmds_RC
19969 # Commands to strip libraries.
19970 old_striplib=$lt_old_striplib
19971 striplib=$lt_striplib
19973 # Dependencies to place before the objects being linked to create a
19975 predep_objects=$lt_predep_objects_RC
19977 # Dependencies to place after the objects being linked to create a
19979 postdep_objects=$lt_postdep_objects_RC
19981 # Dependencies to place before the objects being linked to create a
19983 predeps=$lt_predeps_RC
19985 # Dependencies to place after the objects being linked to create a
19987 postdeps=$lt_postdeps_RC
19989 # The library search path used internally by the compiler when linking
19990 # a shared library.
19991 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19993 # Method to check whether dependent libraries are shared objects.
19994 deplibs_check_method=$lt_deplibs_check_method
19996 # Command to use when deplibs_check_method == file_magic.
19997 file_magic_cmd=$lt_file_magic_cmd
19999 # Flag that allows shared libraries with undefined symbols to be built.
20000 allow_undefined_flag=$lt_allow_undefined_flag_RC
20002 # Flag that forces no undefined symbols.
20003 no_undefined_flag=$lt_no_undefined_flag_RC
20005 # Commands used to finish a libtool library installation in a directory.
20006 finish_cmds=$lt_finish_cmds
20008 # Same as above, but a single script fragment to be evaled but not shown.
20009 finish_eval=$lt_finish_eval
20011 # Take the output of nm and produce a listing of raw symbols and C names.
20012 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20014 # Transform the output of nm in a proper C declaration
20015 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20017 # Transform the output of nm in a C name address pair
20018 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20020 # This is the shared library runtime path variable.
20021 runpath_var=$runpath_var
20023 # This is the shared library path variable.
20024 shlibpath_var=$shlibpath_var
20026 # Is shlibpath searched before the hard-coded library search path?
20027 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20029 # How to hardcode a shared library path into an executable.
20030 hardcode_action=$hardcode_action_RC
20032 # Whether we should hardcode library paths into libraries.
20033 hardcode_into_libs=$hardcode_into_libs
20035 # Flag to hardcode \$libdir into a binary during linking.
20036 # This must work even if \$libdir does not exist.
20037 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20039 # If ld is used when linking, flag to hardcode \$libdir into
20040 # a binary during linking. This must work even if \$libdir does
20042 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20044 # Whether we need a single -rpath flag with a separated argument.
20045 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20047 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20048 # resulting binary.
20049 hardcode_direct=$hardcode_direct_RC
20051 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20052 # resulting binary.
20053 hardcode_minus_L=$hardcode_minus_L_RC
20055 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20056 # the resulting binary.
20057 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20059 # Set to yes if building a shared library automatically hardcodes DIR into the library
20060 # and all subsequent libraries and executables linked against it.
20061 hardcode_automatic=$hardcode_automatic_RC
20063 # Variables whose values should be saved in libtool wrapper scripts and
20064 # restored at relink time.
20065 variables_saved_for_relink="$variables_saved_for_relink"
20067 # Whether libtool must link a program against all its dependency libraries.
20068 link_all_deplibs=$link_all_deplibs_RC
20070 # Compile-time system search path for libraries
20071 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20073 # Run-time system search path for libraries
20074 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20076 # Fix the shell variable \$srcfile for the compiler.
20077 fix_srcfile_path="$fix_srcfile_path_RC"
20079 # Set to yes if exported symbols are required.
20080 always_export_symbols=$always_export_symbols_RC
20082 # The commands to list exported symbols.
20083 export_symbols_cmds=$lt_export_symbols_cmds_RC
20085 # The commands to extract the exported symbol list from a shared archive.
20086 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20088 # Symbols that should not be listed in the preloaded symbols.
20089 exclude_expsyms=$lt_exclude_expsyms_RC
20091 # Symbols that must always be exported.
20092 include_expsyms=$lt_include_expsyms_RC
20094 # ### END LIBTOOL TAG CONFIG: $tagname
20100 # If there is no Makefile yet, we rely on a make rule to execute
20101 # `config.status --recheck' to rerun these tests and create the
20102 # libtool script then.
20103 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20104 if test -f "$ltmain_in"; then
20105 test -f Makefile && make "$ltmain"
20111 ac_cpp='$CPP $CPPFLAGS'
20112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20121 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20122 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20123 { (exit 1); exit 1; }; }
20127 # Append the new tag name to the list of available tags.
20128 if test -n "$tagname" ; then
20129 available_tags="$available_tags $tagname"
20135 # Now substitute the updated list of available tags.
20136 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20137 mv "${ofile}T" "$ofile"
20141 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20142 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20143 { (exit 1); exit 1; }; }
20149 # This can be used to rebuild libtool when needed
20150 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20152 # Always use our own libtool.
20153 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20155 # Prevent multiple expansion
20183 ac_header_dirent=no
20184 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20185 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20186 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20187 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 #include <sys/types.h>
20209 rm -f conftest.$ac_objext
20210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20211 (eval $ac_compile) 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } &&
20218 { ac_try='test -z "$ac_c_werror_flag"
20219 || test ! -s conftest.err'
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; } &&
20225 { ac_try='test -s conftest.$ac_objext'
20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227 (eval $ac_try) 2>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; }; then
20231 eval "$as_ac_Header=yes"
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 eval "$as_ac_Header=no"
20238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20243 cat >>confdefs.h <<_ACEOF
20244 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20247 ac_header_dirent=$ac_hdr; break
20251 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20252 if test $ac_header_dirent = dirent.h; then
20253 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20254 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20255 if test "${ac_cv_search_opendir+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 ac_func_search_save_LIBS=$LIBS
20259 ac_cv_search_opendir=no
20260 cat >conftest.$ac_ext <<_ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20267 /* Override any gcc2 internal prototype to avoid an error. */
20271 /* We use char because int might match the return type of a gcc2
20272 builtin and then its argument prototype would still apply. */
20282 rm -f conftest.$ac_objext conftest$ac_exeext
20283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20284 (eval $ac_link) 2>conftest.er1
20286 grep -v '^ *+' conftest.er1 >conftest.err
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } &&
20291 { ac_try='test -z "$ac_c_werror_flag"
20292 || test ! -s conftest.err'
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } &&
20298 { ac_try='test -s conftest$ac_exeext'
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 ac_cv_search_opendir="none required"
20306 echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20310 rm -f conftest.err conftest.$ac_objext \
20311 conftest$ac_exeext conftest.$ac_ext
20312 if test "$ac_cv_search_opendir" = no; then
20313 for ac_lib in dir; do
20314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20322 /* Override any gcc2 internal prototype to avoid an error. */
20326 /* We use char because int might match the return type of a gcc2
20327 builtin and then its argument prototype would still apply. */
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20339 (eval $ac_link) 2>conftest.er1
20341 grep -v '^ *+' conftest.er1 >conftest.err
20343 cat conftest.err >&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } &&
20346 { ac_try='test -z "$ac_c_werror_flag"
20347 || test ! -s conftest.err'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; } &&
20353 { ac_try='test -s conftest$ac_exeext'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 ac_cv_search_opendir="-l$ac_lib"
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20366 rm -f conftest.err conftest.$ac_objext \
20367 conftest$ac_exeext conftest.$ac_ext
20370 LIBS=$ac_func_search_save_LIBS
20372 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20373 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20374 if test "$ac_cv_search_opendir" != no; then
20375 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20380 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20381 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20382 if test "${ac_cv_search_opendir+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 ac_func_search_save_LIBS=$LIBS
20386 ac_cv_search_opendir=no
20387 cat >conftest.$ac_ext <<_ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20394 /* Override any gcc2 internal prototype to avoid an error. */
20398 /* We use char because int might match the return type of a gcc2
20399 builtin and then its argument prototype would still apply. */
20409 rm -f conftest.$ac_objext conftest$ac_exeext
20410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20411 (eval $ac_link) 2>conftest.er1
20413 grep -v '^ *+' conftest.er1 >conftest.err
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } &&
20418 { ac_try='test -z "$ac_c_werror_flag"
20419 || test ! -s conftest.err'
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; } &&
20425 { ac_try='test -s conftest$ac_exeext'
20426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427 (eval $ac_try) 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; }; then
20431 ac_cv_search_opendir="none required"
20433 echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20437 rm -f conftest.err conftest.$ac_objext \
20438 conftest$ac_exeext conftest.$ac_ext
20439 if test "$ac_cv_search_opendir" = no; then
20440 for ac_lib in x; do
20441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20442 cat >conftest.$ac_ext <<_ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20449 /* Override any gcc2 internal prototype to avoid an error. */
20453 /* We use char because int might match the return type of a gcc2
20454 builtin and then its argument prototype would still apply. */
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20466 (eval $ac_link) 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag"
20474 || test ! -s conftest.err'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; } &&
20480 { ac_try='test -s conftest$ac_exeext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 ac_cv_search_opendir="-l$ac_lib"
20489 echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20493 rm -f conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
20497 LIBS=$ac_func_search_save_LIBS
20499 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20500 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20501 if test "$ac_cv_search_opendir" != no; then
20502 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20508 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
20509 if test "${enable_ltdl_install+set}" = set; then
20510 enableval="$enable_ltdl_install"
20516 if test x"${enable_ltdl_install-no}" != xno; then
20518 INSTALL_LTDL_FALSE='#'
20520 INSTALL_LTDL_TRUE='#'
20521 INSTALL_LTDL_FALSE=
20526 if test x"${enable_ltdl_convenience-no}" != xno; then
20527 CONVENIENCE_LTDL_TRUE=
20528 CONVENIENCE_LTDL_FALSE='#'
20530 CONVENIENCE_LTDL_TRUE='#'
20531 CONVENIENCE_LTDL_FALSE=
20536 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20537 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
20538 if test "${libltdl_cv_shlibext+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20542 ## GCJ LOCAL: gcj specific stuff. Please keep it.
20543 # Here in libltdl for libgcj we don't build modules for darwin.
20544 # So we say no. Then the extension gets .dylib which is the right
20545 # thing for shared libraries on darwin. Please keep me next time you
20555 eval libltdl_cv_shlibext=$shrext_cmds
20558 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20559 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
20560 if test -n "$libltdl_cv_shlibext"; then
20562 cat >>confdefs.h <<_ACEOF
20563 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20569 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20570 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
20571 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 libltdl_cv_shlibpath_var="$shlibpath_var"
20576 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20577 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
20578 if test -n "$libltdl_cv_shlibpath_var"; then
20580 cat >>confdefs.h <<_ACEOF
20581 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20587 echo "$as_me:$LINENO: checking for the default library search path" >&5
20588 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
20589 if test "${libltdl_cv_sys_search_path+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20594 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20595 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
20596 if test -n "$libltdl_cv_sys_search_path"; then
20598 for dir in $libltdl_cv_sys_search_path; do
20599 if test -z "$sys_search_path"; then
20600 sys_search_path="$dir"
20602 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20606 cat >>confdefs.h <<_ACEOF
20607 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20612 echo "$as_me:$LINENO: checking for objdir" >&5
20613 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20614 if test "${libltdl_cv_objdir+set}" = set; then
20615 echo $ECHO_N "(cached) $ECHO_C" >&6
20617 libltdl_cv_objdir="$objdir"
20618 if test -n "$objdir"; then
20621 rm -f .libs 2>/dev/null
20622 mkdir .libs 2>/dev/null
20623 if test -d .libs; then
20624 libltdl_cv_objdir=.libs
20626 # MS-DOS does not allow filenames that begin with a dot.
20627 libltdl_cv_objdir=_libs
20629 rmdir .libs 2>/dev/null
20633 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20634 echo "${ECHO_T}$libltdl_cv_objdir" >&6
20636 cat >>confdefs.h <<_ACEOF
20637 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20642 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20643 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
20644 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20647 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20648 libltdl_cv_preloaded_symbols=yes
20650 libltdl_cv_preloaded_symbols=no
20654 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20655 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
20656 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20658 cat >>confdefs.h <<\_ACEOF
20659 #define HAVE_PRELOADED_SYMBOLS 1
20667 ac_cpp='$CPP $CPPFLAGS'
20668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20673 echo "$as_me:$LINENO: checking for shl_load" >&5
20674 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20675 if test "${ac_cv_func_shl_load+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20686 #define shl_load innocuous_shl_load
20688 /* System header to define __stub macros and hopefully few prototypes,
20689 which can conflict with char shl_load (); below.
20690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20691 <limits.h> exists even on freestanding compilers. */
20694 # include <limits.h>
20696 # include <assert.h>
20701 /* Override any gcc2 internal prototype to avoid an error. */
20706 /* We use char because int might match the return type of a gcc2
20707 builtin and then its argument prototype would still apply. */
20709 /* The GNU C library defines this for functions which it implements
20710 to always fail with ENOSYS. Some functions are actually named
20711 something starting with __ and the normal name is an alias. */
20712 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20715 char (*f) () = shl_load;
20724 return f != shl_load;
20729 rm -f conftest.$ac_objext conftest$ac_exeext
20730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20731 (eval $ac_link) 2>conftest.er1
20733 grep -v '^ *+' conftest.er1 >conftest.err
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
20738 { ac_try='test -z "$ac_c_werror_flag"
20739 || test ! -s conftest.err'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest$ac_exeext'
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 ac_cv_func_shl_load=yes
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20756 ac_cv_func_shl_load=no
20758 rm -f conftest.err conftest.$ac_objext \
20759 conftest$ac_exeext conftest.$ac_ext
20761 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20762 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20763 if test $ac_cv_func_shl_load = yes; then
20765 cat >>confdefs.h <<\_ACEOF
20766 #define HAVE_SHL_LOAD 1
20770 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20771 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20772 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
20775 ac_check_lib_save_LIBS=$LIBS
20777 cat >conftest.$ac_ext <<_ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20784 /* Override any gcc2 internal prototype to avoid an error. */
20788 /* We use char because int might match the return type of a gcc2
20789 builtin and then its argument prototype would still apply. */
20799 rm -f conftest.$ac_objext conftest$ac_exeext
20800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20801 (eval $ac_link) 2>conftest.er1
20803 grep -v '^ *+' conftest.er1 >conftest.err
20805 cat conftest.err >&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try='test -z "$ac_c_werror_flag"
20809 || test ! -s conftest.err'
20810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811 (eval $ac_try) 2>&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; } &&
20815 { ac_try='test -s conftest$ac_exeext'
20816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817 (eval $ac_try) 2>&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); }; }; then
20821 ac_cv_lib_dld_shl_load=yes
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826 ac_cv_lib_dld_shl_load=no
20828 rm -f conftest.err conftest.$ac_objext \
20829 conftest$ac_exeext conftest.$ac_ext
20830 LIBS=$ac_check_lib_save_LIBS
20832 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20833 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20834 if test $ac_cv_lib_dld_shl_load = yes; then
20836 cat >>confdefs.h <<\_ACEOF
20837 #define HAVE_SHL_LOAD 1
20840 LIBADD_DL="$LIBADD_DL -ldld"
20842 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20843 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 ac_check_lib_save_LIBS=$LIBS
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20856 /* Override any gcc2 internal prototype to avoid an error. */
20860 /* We use char because int might match the return type of a gcc2
20861 builtin and then its argument prototype would still apply. */
20871 rm -f conftest.$ac_objext conftest$ac_exeext
20872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20873 (eval $ac_link) 2>conftest.er1
20875 grep -v '^ *+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } &&
20880 { ac_try='test -z "$ac_c_werror_flag"
20881 || test ! -s conftest.err'
20882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20883 (eval $ac_try) 2>&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); }; } &&
20887 { ac_try='test -s conftest$ac_exeext'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; }; then
20893 ac_cv_lib_dl_dlopen=yes
20895 echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20898 ac_cv_lib_dl_dlopen=no
20900 rm -f conftest.err conftest.$ac_objext \
20901 conftest$ac_exeext conftest.$ac_ext
20902 LIBS=$ac_check_lib_save_LIBS
20904 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20905 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20906 if test $ac_cv_lib_dl_dlopen = yes; then
20908 cat >>confdefs.h <<\_ACEOF
20909 #define HAVE_LIBDL 1
20912 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20914 cat >conftest.$ac_ext <<_ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h. */
20921 # include <dlfcn.h>
20932 rm -f conftest.$ac_objext conftest$ac_exeext
20933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20934 (eval $ac_link) 2>conftest.er1
20936 grep -v '^ *+' conftest.er1 >conftest.err
20938 cat conftest.err >&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } &&
20941 { ac_try='test -z "$ac_c_werror_flag"
20942 || test ! -s conftest.err'
20943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944 (eval $ac_try) 2>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; } &&
20948 { ac_try='test -s conftest$ac_exeext'
20949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950 (eval $ac_try) 2>&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; }; then
20955 cat >>confdefs.h <<\_ACEOF
20956 #define HAVE_LIBDL 1
20958 libltdl_cv_func_dlopen="yes"
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20964 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20965 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20968 ac_check_lib_save_LIBS=$LIBS
20969 LIBS="-lsvld $LIBS"
20970 cat >conftest.$ac_ext <<_ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20977 /* Override any gcc2 internal prototype to avoid an error. */
20981 /* We use char because int might match the return type of a gcc2
20982 builtin and then its argument prototype would still apply. */
20992 rm -f conftest.$ac_objext conftest$ac_exeext
20993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20994 (eval $ac_link) 2>conftest.er1
20996 grep -v '^ *+' conftest.er1 >conftest.err
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } &&
21001 { ac_try='test -z "$ac_c_werror_flag"
21002 || test ! -s conftest.err'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest$ac_exeext'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 ac_cv_lib_svld_dlopen=yes
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ac_cv_lib_svld_dlopen=no
21021 rm -f conftest.err conftest.$ac_objext \
21022 conftest$ac_exeext conftest.$ac_ext
21023 LIBS=$ac_check_lib_save_LIBS
21025 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21026 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21027 if test $ac_cv_lib_svld_dlopen = yes; then
21029 cat >>confdefs.h <<\_ACEOF
21030 #define HAVE_LIBDL 1
21033 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
21035 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21036 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21037 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 ac_check_lib_save_LIBS=$LIBS
21042 cat >conftest.$ac_ext <<_ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21049 /* Override any gcc2 internal prototype to avoid an error. */
21053 /* We use char because int might match the return type of a gcc2
21054 builtin and then its argument prototype would still apply. */
21064 rm -f conftest.$ac_objext conftest$ac_exeext
21065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21066 (eval $ac_link) 2>conftest.er1
21068 grep -v '^ *+' conftest.er1 >conftest.err
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } &&
21073 { ac_try='test -z "$ac_c_werror_flag"
21074 || test ! -s conftest.err'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; } &&
21080 { ac_try='test -s conftest$ac_exeext'
21081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082 (eval $ac_try) 2>&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; }; then
21086 ac_cv_lib_dld_dld_link=yes
21088 echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21091 ac_cv_lib_dld_dld_link=no
21093 rm -f conftest.err conftest.$ac_objext \
21094 conftest$ac_exeext conftest.$ac_ext
21095 LIBS=$ac_check_lib_save_LIBS
21097 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21098 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21099 if test $ac_cv_lib_dld_dld_link = yes; then
21101 cat >>confdefs.h <<\_ACEOF
21105 LIBADD_DL="$LIBADD_DL -ldld"
21107 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21108 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
21109 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21112 cat >conftest.$ac_ext <<_ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21120 #define _dyld_func_lookup innocuous__dyld_func_lookup
21122 /* System header to define __stub macros and hopefully few prototypes,
21123 which can conflict with char _dyld_func_lookup (); below.
21124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21125 <limits.h> exists even on freestanding compilers. */
21128 # include <limits.h>
21130 # include <assert.h>
21133 #undef _dyld_func_lookup
21135 /* Override any gcc2 internal prototype to avoid an error. */
21140 /* We use char because int might match the return type of a gcc2
21141 builtin and then its argument prototype would still apply. */
21142 char _dyld_func_lookup ();
21143 /* The GNU C library defines this for functions which it implements
21144 to always fail with ENOSYS. Some functions are actually named
21145 something starting with __ and the normal name is an alias. */
21146 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
21149 char (*f) () = _dyld_func_lookup;
21158 return f != _dyld_func_lookup;
21163 rm -f conftest.$ac_objext conftest$ac_exeext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21165 (eval $ac_link) 2>conftest.er1
21167 grep -v '^ *+' conftest.er1 >conftest.err
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
21172 { ac_try='test -z "$ac_c_werror_flag"
21173 || test ! -s conftest.err'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } &&
21179 { ac_try='test -s conftest$ac_exeext'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; }; then
21185 ac_cv_func__dyld_func_lookup=yes
21187 echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21190 ac_cv_func__dyld_func_lookup=no
21192 rm -f conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
21195 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21196 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
21197 if test $ac_cv_func__dyld_func_lookup = yes; then
21199 cat >>confdefs.h <<\_ACEOF
21200 #define HAVE_DYLD 1
21213 rm -f conftest.err conftest.$ac_objext \
21214 conftest$ac_exeext conftest.$ac_ext
21225 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21227 lt_save_LIBS="$LIBS"
21228 LIBS="$LIBS $LIBADD_DL"
21230 for ac_func in dlerror
21232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21233 echo "$as_me:$LINENO: checking for $ac_func" >&5
21234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21235 if eval "test \"\${$as_ac_var+set}\" = set"; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21246 #define $ac_func innocuous_$ac_func
21248 /* System header to define __stub macros and hopefully few prototypes,
21249 which can conflict with char $ac_func (); below.
21250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21251 <limits.h> exists even on freestanding compilers. */
21254 # include <limits.h>
21256 # include <assert.h>
21261 /* Override any gcc2 internal prototype to avoid an error. */
21266 /* We use char because int might match the return type of a gcc2
21267 builtin and then its argument prototype would still apply. */
21269 /* The GNU C library defines this for functions which it implements
21270 to always fail with ENOSYS. Some functions are actually named
21271 something starting with __ and the normal name is an alias. */
21272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21275 char (*f) () = $ac_func;
21284 return f != $ac_func;
21289 rm -f conftest.$ac_objext conftest$ac_exeext
21290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21291 (eval $ac_link) 2>conftest.er1
21293 grep -v '^ *+' conftest.er1 >conftest.err
21295 cat conftest.err >&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } &&
21298 { ac_try='test -z "$ac_c_werror_flag"
21299 || test ! -s conftest.err'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; } &&
21305 { ac_try='test -s conftest$ac_exeext'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; }; then
21311 eval "$as_ac_var=yes"
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 eval "$as_ac_var=no"
21318 rm -f conftest.err conftest.$ac_objext \
21319 conftest$ac_exeext conftest.$ac_ext
21321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21323 if test `eval echo '${'$as_ac_var'}'` = yes; then
21324 cat >>confdefs.h <<_ACEOF
21325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21331 LIBS="$lt_save_LIBS"
21334 ac_cpp='$CPP $CPPFLAGS'
21335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21341 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21342 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
21343 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21344 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 ac_cv_sys_symbol_underscore=no
21347 cat > conftest.$ac_ext <<EOF
21348 void nm_test_func(){}
21349 int main(){nm_test_func;return 0;}
21351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21352 (eval $ac_compile) 2>&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; then
21356 # Now try to grab the symbols.
21357 ac_nlist=conftest.nm
21358 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21359 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } && test -s "$ac_nlist"; then
21363 # See whether the symbols have a leading underscore.
21364 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21365 ac_cv_sys_symbol_underscore=yes
21367 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21370 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21374 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21377 echo "configure: failed program was:" >&5
21383 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21384 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
21387 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21388 if test x"$libltdl_cv_func_dlopen" = xyes ||
21389 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21390 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21391 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
21392 if test "${libltdl_cv_need_uscore+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21395 libltdl_cv_need_uscore=unknown
21397 LIBS="$LIBS $LIBADD_DL"
21398 if test "$cross_compiling" = yes; then :
21399 libltdl_cv_need_uscore=cross
21401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21402 lt_status=$lt_dlunknown
21403 cat > conftest.$ac_ext <<EOF
21404 #line 21404 "configure"
21405 #include "confdefs.h"
21414 # define LT_DLGLOBAL RTLD_GLOBAL
21417 # define LT_DLGLOBAL DL_GLOBAL
21419 # define LT_DLGLOBAL 0
21423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21424 find out it does not work in some platform. */
21425 #ifndef LT_DLLAZY_OR_NOW
21427 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21430 # define LT_DLLAZY_OR_NOW DL_LAZY
21433 # define LT_DLLAZY_OR_NOW RTLD_NOW
21436 # define LT_DLLAZY_OR_NOW DL_NOW
21438 # define LT_DLLAZY_OR_NOW 0
21446 extern "C" void exit (int);
21449 void fnord() { int i=42;}
21452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21453 int status = $lt_dlunknown;
21457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21459 /* dlclose (self); */
21465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21466 (eval $ac_link) 2>&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21470 (./conftest; exit; ) 2>/dev/null
21472 case x$lt_status in
21473 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21474 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21475 x$lt_unknown|x*) ;;
21478 # compilation failed
21487 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21488 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
21492 if test x"$libltdl_cv_need_uscore" = xyes; then
21494 cat >>confdefs.h <<\_ACEOF
21495 #define NEED_USCORE 1
21501 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21502 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
21503 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 # PORTME does your system automatically load deplibs for dlopen?
21507 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21508 # For now, we just catch OSes we know something about -- in the
21509 # future, we'll try test this programmatically.
21510 libltdl_cv_sys_dlopen_deplibs=unknown
21512 aix3*|aix4.1.*|aix4.2.*)
21513 # Unknown whether this is true for these versions of AIX, but
21514 # we want this `case' here to explicitly catch those versions.
21515 libltdl_cv_sys_dlopen_deplibs=unknown
21518 libltdl_cv_sys_dlopen_deplibs=yes
21521 # Assuming the user has installed a libdl from somewhere, this is true
21522 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21523 libltdl_cv_sys_dlopen_deplibs=yes
21525 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21526 # GNU and its variants, using gnu ld.so (Glibc)
21527 libltdl_cv_sys_dlopen_deplibs=yes
21530 libltdl_cv_sys_dlopen_deplibs=yes
21532 irix[12345]*|irix6.[01]*)
21533 # Catch all versions of IRIX before 6.2, and indicate that we don't
21534 # know how it worked for any of those versions.
21535 libltdl_cv_sys_dlopen_deplibs=unknown
21538 # The case above catches anything before 6.2, and it's known that
21539 # at 6.2 and later dlopen does load deplibs.
21540 libltdl_cv_sys_dlopen_deplibs=yes
21543 libltdl_cv_sys_dlopen_deplibs=yes
21546 libltdl_cv_sys_dlopen_deplibs=yes
21549 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21550 # it did *not* use an RPATH in a shared library to find objects the
21551 # library depends on, so we explictly say `no'.
21552 libltdl_cv_sys_dlopen_deplibs=no
21554 osf5.0|osf5.0a|osf5.1)
21555 # dlopen *does* load deplibs and with the right loader patch applied
21556 # it even uses RPATH in a shared library to search for shared objects
21557 # that the library depends on, but there's no easy way to know if that
21558 # patch is installed. Since this is the case, all we can really
21559 # say is unknown -- it depends on the patch being installed. If
21560 # it is, this changes to `yes'. Without it, it would be `no'.
21561 libltdl_cv_sys_dlopen_deplibs=unknown
21564 # the two cases above should catch all versions of osf <= 5.1. Read
21565 # the comments above for what we know about them.
21566 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21567 # is used to find them so we can finally say `yes'.
21568 libltdl_cv_sys_dlopen_deplibs=yes
21571 libltdl_cv_sys_dlopen_deplibs=yes
21576 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21577 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
21578 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21580 cat >>confdefs.h <<\_ACEOF
21581 #define LTDL_DLOPEN_DEPLIBS 1
21587 for ac_header in argz.h
21589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21591 echo "$as_me:$LINENO: checking for $ac_header" >&5
21592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21599 # Is the header compilable?
21600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21602 cat >conftest.$ac_ext <<_ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21608 $ac_includes_default
21609 #include <$ac_header>
21611 rm -f conftest.$ac_objext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21613 (eval $ac_compile) 2>conftest.er1
21615 grep -v '^ *+' conftest.er1 >conftest.err
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } &&
21620 { ac_try='test -z "$ac_c_werror_flag"
21621 || test ! -s conftest.err'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; } &&
21627 { ac_try='test -s conftest.$ac_objext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 ac_header_compiler=yes
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_header_compiler=no
21640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21642 echo "${ECHO_T}$ac_header_compiler" >&6
21644 # Is the header present?
21645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21647 cat >conftest.$ac_ext <<_ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21653 #include <$ac_header>
21655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21658 grep -v '^ *+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } >/dev/null; then
21663 if test -s conftest.err; then
21664 ac_cpp_err=$ac_c_preproc_warn_flag
21665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21672 if test -z "$ac_cpp_err"; then
21673 ac_header_preproc=yes
21675 echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21678 ac_header_preproc=no
21680 rm -f conftest.err conftest.$ac_ext
21681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21682 echo "${ECHO_T}$ac_header_preproc" >&6
21684 # So? What about this header?
21685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21691 ac_header_preproc=yes
21694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21708 ## ---------------------------------- ##
21709 ## Report this to bug-libtool@gnu.org ##
21710 ## ---------------------------------- ##
21713 sed "s/^/$as_me: WARNING: /" >&2
21716 echo "$as_me:$LINENO: checking for $ac_header" >&5
21717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21719 echo $ECHO_N "(cached) $ECHO_C" >&6
21721 eval "$as_ac_Header=\$ac_header_preproc"
21723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21728 cat >>confdefs.h <<_ACEOF
21729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21737 echo "$as_me:$LINENO: checking for error_t" >&5
21738 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21739 if test "${ac_cv_type_error_t+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21742 cat >conftest.$ac_ext <<_ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21757 if (sizeof (error_t))
21763 rm -f conftest.$ac_objext
21764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21765 (eval $ac_compile) 2>conftest.er1
21767 grep -v '^ *+' conftest.er1 >conftest.err
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } &&
21772 { ac_try='test -z "$ac_c_werror_flag"
21773 || test ! -s conftest.err'
21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775 (eval $ac_try) 2>&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; } &&
21779 { ac_try='test -s conftest.$ac_objext'
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; }; then
21785 ac_cv_type_error_t=yes
21787 echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21790 ac_cv_type_error_t=no
21792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21794 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21795 echo "${ECHO_T}$ac_cv_type_error_t" >&6
21796 if test $ac_cv_type_error_t = yes; then
21798 cat >>confdefs.h <<_ACEOF
21799 #define HAVE_ERROR_T 1
21805 cat >>confdefs.h <<\_ACEOF
21806 #define error_t int
21817 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21820 echo "$as_me:$LINENO: checking for $ac_func" >&5
21821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21822 if eval "test \"\${$as_ac_var+set}\" = set"; then
21823 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 cat >conftest.$ac_ext <<_ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21833 #define $ac_func innocuous_$ac_func
21835 /* System header to define __stub macros and hopefully few prototypes,
21836 which can conflict with char $ac_func (); below.
21837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21838 <limits.h> exists even on freestanding compilers. */
21841 # include <limits.h>
21843 # include <assert.h>
21848 /* Override any gcc2 internal prototype to avoid an error. */
21853 /* We use char because int might match the return type of a gcc2
21854 builtin and then its argument prototype would still apply. */
21856 /* The GNU C library defines this for functions which it implements
21857 to always fail with ENOSYS. Some functions are actually named
21858 something starting with __ and the normal name is an alias. */
21859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21862 char (*f) () = $ac_func;
21871 return f != $ac_func;
21876 rm -f conftest.$ac_objext conftest$ac_exeext
21877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21878 (eval $ac_link) 2>conftest.er1
21880 grep -v '^ *+' conftest.er1 >conftest.err
21882 cat conftest.err >&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } &&
21885 { ac_try='test -z "$ac_c_werror_flag"
21886 || test ! -s conftest.err'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; } &&
21892 { ac_try='test -s conftest$ac_exeext'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; }; then
21898 eval "$as_ac_var=yes"
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 eval "$as_ac_var=no"
21905 rm -f conftest.err conftest.$ac_objext \
21906 conftest$ac_exeext conftest.$ac_ext
21908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21910 if test `eval echo '${'$as_ac_var'}'` = yes; then
21911 cat >>confdefs.h <<_ACEOF
21912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21945 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21950 echo "$as_me:$LINENO: checking for $ac_header" >&5
21951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21958 # Is the header compilable?
21959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21961 cat >conftest.$ac_ext <<_ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 $ac_includes_default
21968 #include <$ac_header>
21970 rm -f conftest.$ac_objext
21971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21972 (eval $ac_compile) 2>conftest.er1
21974 grep -v '^ *+' conftest.er1 >conftest.err
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } &&
21979 { ac_try='test -z "$ac_c_werror_flag"
21980 || test ! -s conftest.err'
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; } &&
21986 { ac_try='test -s conftest.$ac_objext'
21987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988 (eval $ac_try) 2>&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; }; then
21992 ac_header_compiler=yes
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21997 ac_header_compiler=no
21999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22001 echo "${ECHO_T}$ac_header_compiler" >&6
22003 # Is the header present?
22004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22006 cat >conftest.$ac_ext <<_ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h. */
22012 #include <$ac_header>
22014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } >/dev/null; then
22022 if test -s conftest.err; then
22023 ac_cpp_err=$ac_c_preproc_warn_flag
22024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22031 if test -z "$ac_cpp_err"; then
22032 ac_header_preproc=yes
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22037 ac_header_preproc=no
22039 rm -f conftest.err conftest.$ac_ext
22040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22041 echo "${ECHO_T}$ac_header_preproc" >&6
22043 # So? What about this header?
22044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22050 ac_header_preproc=yes
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22067 ## ---------------------------------- ##
22068 ## Report this to bug-libtool@gnu.org ##
22069 ## ---------------------------------- ##
22072 sed "s/^/$as_me: WARNING: /" >&2
22075 echo "$as_me:$LINENO: checking for $ac_header" >&5
22076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
22080 eval "$as_ac_Header=\$ac_header_preproc"
22082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22087 cat >>confdefs.h <<_ACEOF
22088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22099 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22103 echo "$as_me:$LINENO: checking for $ac_header" >&5
22104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22111 # Is the header compilable?
22112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22114 cat >conftest.$ac_ext <<_ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 $ac_includes_default
22121 #include <$ac_header>
22123 rm -f conftest.$ac_objext
22124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22125 (eval $ac_compile) 2>conftest.er1
22127 grep -v '^ *+' conftest.er1 >conftest.err
22129 cat conftest.err >&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } &&
22132 { ac_try='test -z "$ac_c_werror_flag"
22133 || test ! -s conftest.err'
22134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22135 (eval $ac_try) 2>&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; } &&
22139 { ac_try='test -s conftest.$ac_objext'
22140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141 (eval $ac_try) 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; }; then
22145 ac_header_compiler=yes
22147 echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22150 ac_header_compiler=no
22152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22154 echo "${ECHO_T}$ac_header_compiler" >&6
22156 # Is the header present?
22157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22159 cat >conftest.$ac_ext <<_ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h. */
22165 #include <$ac_header>
22167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22170 grep -v '^ *+' conftest.er1 >conftest.err
22172 cat conftest.err >&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } >/dev/null; then
22175 if test -s conftest.err; then
22176 ac_cpp_err=$ac_c_preproc_warn_flag
22177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22184 if test -z "$ac_cpp_err"; then
22185 ac_header_preproc=yes
22187 echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22190 ac_header_preproc=no
22192 rm -f conftest.err conftest.$ac_ext
22193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22194 echo "${ECHO_T}$ac_header_preproc" >&6
22196 # So? What about this header?
22197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22203 ac_header_preproc=yes
22206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22220 ## ---------------------------------- ##
22221 ## Report this to bug-libtool@gnu.org ##
22222 ## ---------------------------------- ##
22225 sed "s/^/$as_me: WARNING: /" >&2
22228 echo "$as_me:$LINENO: checking for $ac_header" >&5
22229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22233 eval "$as_ac_Header=\$ac_header_preproc"
22235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22240 cat >>confdefs.h <<_ACEOF
22241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22250 for ac_header in string.h strings.h
22252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22254 echo "$as_me:$LINENO: checking for $ac_header" >&5
22255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22262 # Is the header compilable?
22263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22265 cat >conftest.$ac_ext <<_ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22271 $ac_includes_default
22272 #include <$ac_header>
22274 rm -f conftest.$ac_objext
22275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22276 (eval $ac_compile) 2>conftest.er1
22278 grep -v '^ *+' conftest.er1 >conftest.err
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } &&
22283 { ac_try='test -z "$ac_c_werror_flag"
22284 || test ! -s conftest.err'
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; } &&
22290 { ac_try='test -s conftest.$ac_objext'
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; }; then
22296 ac_header_compiler=yes
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 ac_header_compiler=no
22303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22305 echo "${ECHO_T}$ac_header_compiler" >&6
22307 # Is the header present?
22308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22310 cat >conftest.$ac_ext <<_ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h. */
22316 #include <$ac_header>
22318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22321 grep -v '^ *+' conftest.er1 >conftest.err
22323 cat conftest.err >&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } >/dev/null; then
22326 if test -s conftest.err; then
22327 ac_cpp_err=$ac_c_preproc_warn_flag
22328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22335 if test -z "$ac_cpp_err"; then
22336 ac_header_preproc=yes
22338 echo "$as_me: failed program was:" >&5
22339 sed 's/^/| /' conftest.$ac_ext >&5
22341 ac_header_preproc=no
22343 rm -f conftest.err conftest.$ac_ext
22344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22345 echo "${ECHO_T}$ac_header_preproc" >&6
22347 # So? What about this header?
22348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22354 ac_header_preproc=yes
22357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22371 ## ---------------------------------- ##
22372 ## Report this to bug-libtool@gnu.org ##
22373 ## ---------------------------------- ##
22376 sed "s/^/$as_me: WARNING: /" >&2
22379 echo "$as_me:$LINENO: checking for $ac_header" >&5
22380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22384 eval "$as_ac_Header=\$ac_header_preproc"
22386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22391 cat >>confdefs.h <<_ACEOF
22392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22402 for ac_func in strchr index
22404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22405 echo "$as_me:$LINENO: checking for $ac_func" >&5
22406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22407 if eval "test \"\${$as_ac_var+set}\" = set"; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22410 cat >conftest.$ac_ext <<_ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22418 #define $ac_func innocuous_$ac_func
22420 /* System header to define __stub macros and hopefully few prototypes,
22421 which can conflict with char $ac_func (); below.
22422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22423 <limits.h> exists even on freestanding compilers. */
22426 # include <limits.h>
22428 # include <assert.h>
22433 /* Override any gcc2 internal prototype to avoid an error. */
22438 /* We use char because int might match the return type of a gcc2
22439 builtin and then its argument prototype would still apply. */
22441 /* The GNU C library defines this for functions which it implements
22442 to always fail with ENOSYS. Some functions are actually named
22443 something starting with __ and the normal name is an alias. */
22444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22447 char (*f) () = $ac_func;
22456 return f != $ac_func;
22461 rm -f conftest.$ac_objext conftest$ac_exeext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22463 (eval $ac_link) 2>conftest.er1
22465 grep -v '^ *+' conftest.er1 >conftest.err
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -z "$ac_c_werror_flag"
22471 || test ! -s conftest.err'
22472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473 (eval $ac_try) 2>&5
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); }; } &&
22477 { ac_try='test -s conftest$ac_exeext'
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 eval "$as_ac_var=yes"
22485 echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22488 eval "$as_ac_var=no"
22490 rm -f conftest.err conftest.$ac_objext \
22491 conftest$ac_exeext conftest.$ac_ext
22493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22495 if test `eval echo '${'$as_ac_var'}'` = yes; then
22496 cat >>confdefs.h <<_ACEOF
22497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22505 for ac_func in strrchr rindex
22507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22508 echo "$as_me:$LINENO: checking for $ac_func" >&5
22509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22510 if eval "test \"\${$as_ac_var+set}\" = set"; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22521 #define $ac_func innocuous_$ac_func
22523 /* System header to define __stub macros and hopefully few prototypes,
22524 which can conflict with char $ac_func (); below.
22525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22526 <limits.h> exists even on freestanding compilers. */
22529 # include <limits.h>
22531 # include <assert.h>
22536 /* Override any gcc2 internal prototype to avoid an error. */
22541 /* We use char because int might match the return type of a gcc2
22542 builtin and then its argument prototype would still apply. */
22544 /* The GNU C library defines this for functions which it implements
22545 to always fail with ENOSYS. Some functions are actually named
22546 something starting with __ and the normal name is an alias. */
22547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22550 char (*f) () = $ac_func;
22559 return f != $ac_func;
22564 rm -f conftest.$ac_objext conftest$ac_exeext
22565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22566 (eval $ac_link) 2>conftest.er1
22568 grep -v '^ *+' conftest.er1 >conftest.err
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } &&
22573 { ac_try='test -z "$ac_c_werror_flag"
22574 || test ! -s conftest.err'
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; } &&
22580 { ac_try='test -s conftest$ac_exeext'
22581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582 (eval $ac_try) 2>&5
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); }; }; then
22586 eval "$as_ac_var=yes"
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22591 eval "$as_ac_var=no"
22593 rm -f conftest.err conftest.$ac_objext \
22594 conftest$ac_exeext conftest.$ac_ext
22596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22598 if test `eval echo '${'$as_ac_var'}'` = yes; then
22599 cat >>confdefs.h <<_ACEOF
22600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22608 for ac_func in memcpy bcopy
22610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22611 echo "$as_me:$LINENO: checking for $ac_func" >&5
22612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22613 if eval "test \"\${$as_ac_var+set}\" = set"; then
22614 echo $ECHO_N "(cached) $ECHO_C" >&6
22616 cat >conftest.$ac_ext <<_ACEOF
22619 cat confdefs.h >>conftest.$ac_ext
22620 cat >>conftest.$ac_ext <<_ACEOF
22621 /* end confdefs.h. */
22622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22624 #define $ac_func innocuous_$ac_func
22626 /* System header to define __stub macros and hopefully few prototypes,
22627 which can conflict with char $ac_func (); below.
22628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22629 <limits.h> exists even on freestanding compilers. */
22632 # include <limits.h>
22634 # include <assert.h>
22639 /* Override any gcc2 internal prototype to avoid an error. */
22644 /* We use char because int might match the return type of a gcc2
22645 builtin and then its argument prototype would still apply. */
22647 /* The GNU C library defines this for functions which it implements
22648 to always fail with ENOSYS. Some functions are actually named
22649 something starting with __ and the normal name is an alias. */
22650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22653 char (*f) () = $ac_func;
22662 return f != $ac_func;
22667 rm -f conftest.$ac_objext conftest$ac_exeext
22668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22669 (eval $ac_link) 2>conftest.er1
22671 grep -v '^ *+' conftest.er1 >conftest.err
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } &&
22676 { ac_try='test -z "$ac_c_werror_flag"
22677 || test ! -s conftest.err'
22678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 (eval $ac_try) 2>&5
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; } &&
22683 { ac_try='test -s conftest$ac_exeext'
22684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685 (eval $ac_try) 2>&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; }; then
22689 eval "$as_ac_var=yes"
22691 echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22694 eval "$as_ac_var=no"
22696 rm -f conftest.err conftest.$ac_objext \
22697 conftest$ac_exeext conftest.$ac_ext
22699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22701 if test `eval echo '${'$as_ac_var'}'` = yes; then
22702 cat >>confdefs.h <<_ACEOF
22703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22711 for ac_func in memmove strcmp
22713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22714 echo "$as_me:$LINENO: checking for $ac_func" >&5
22715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22716 if eval "test \"\${$as_ac_var+set}\" = set"; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 cat >conftest.$ac_ext <<_ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22727 #define $ac_func innocuous_$ac_func
22729 /* System header to define __stub macros and hopefully few prototypes,
22730 which can conflict with char $ac_func (); below.
22731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22732 <limits.h> exists even on freestanding compilers. */
22735 # include <limits.h>
22737 # include <assert.h>
22742 /* Override any gcc2 internal prototype to avoid an error. */
22747 /* We use char because int might match the return type of a gcc2
22748 builtin and then its argument prototype would still apply. */
22750 /* The GNU C library defines this for functions which it implements
22751 to always fail with ENOSYS. Some functions are actually named
22752 something starting with __ and the normal name is an alias. */
22753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22756 char (*f) () = $ac_func;
22765 return f != $ac_func;
22770 rm -f conftest.$ac_objext conftest$ac_exeext
22771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22772 (eval $ac_link) 2>conftest.er1
22774 grep -v '^ *+' conftest.er1 >conftest.err
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } &&
22779 { ac_try='test -z "$ac_c_werror_flag"
22780 || test ! -s conftest.err'
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; } &&
22786 { ac_try='test -s conftest$ac_exeext'
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; }; then
22792 eval "$as_ac_var=yes"
22794 echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22797 eval "$as_ac_var=no"
22799 rm -f conftest.err conftest.$ac_objext \
22800 conftest$ac_exeext conftest.$ac_ext
22802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22804 if test `eval echo '${'$as_ac_var'}'` = yes; then
22805 cat >>confdefs.h <<_ACEOF
22806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22815 for ac_func in closedir opendir readdir
22817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22818 echo "$as_me:$LINENO: checking for $ac_func" >&5
22819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22820 if eval "test \"\${$as_ac_var+set}\" = set"; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22831 #define $ac_func innocuous_$ac_func
22833 /* System header to define __stub macros and hopefully few prototypes,
22834 which can conflict with char $ac_func (); below.
22835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22836 <limits.h> exists even on freestanding compilers. */
22839 # include <limits.h>
22841 # include <assert.h>
22846 /* Override any gcc2 internal prototype to avoid an error. */
22851 /* We use char because int might match the return type of a gcc2
22852 builtin and then its argument prototype would still apply. */
22854 /* The GNU C library defines this for functions which it implements
22855 to always fail with ENOSYS. Some functions are actually named
22856 something starting with __ and the normal name is an alias. */
22857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22860 char (*f) () = $ac_func;
22869 return f != $ac_func;
22874 rm -f conftest.$ac_objext conftest$ac_exeext
22875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22876 (eval $ac_link) 2>conftest.er1
22878 grep -v '^ *+' conftest.er1 >conftest.err
22880 cat conftest.err >&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } &&
22883 { ac_try='test -z "$ac_c_werror_flag"
22884 || test ! -s conftest.err'
22885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886 (eval $ac_try) 2>&5
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; } &&
22890 { ac_try='test -s conftest$ac_exeext'
22891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892 (eval $ac_try) 2>&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); }; }; then
22896 eval "$as_ac_var=yes"
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 eval "$as_ac_var=no"
22903 rm -f conftest.err conftest.$ac_objext \
22904 conftest$ac_exeext conftest.$ac_ext
22906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22908 if test `eval echo '${'$as_ac_var'}'` = yes; then
22909 cat >>confdefs.h <<_ACEOF
22910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22922 ac_config_files="$ac_config_files Makefile"
22924 cat >confcache <<\_ACEOF
22925 # This file is a shell script that caches the results of configure
22926 # tests run on this system so they can be shared between configure
22927 # scripts and configure runs, see configure's option --config-cache.
22928 # It is not useful on other systems. If it contains results you don't
22929 # want to keep, you may remove or edit it.
22931 # config.status only pays attention to the cache file if you give it
22932 # the --recheck option to rerun configure.
22934 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22935 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22936 # following values.
22940 # The following way of writing the cache mishandles newlines in values,
22941 # but we know of no workaround that is simple, portable, and efficient.
22942 # So, don't put newlines in cache variables' values.
22943 # Ultrix sh set writes to stderr and can't be redirected directly,
22944 # and sets the high bit in the cache file unless we assign to the vars.
22947 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22949 # `set' does not quote correctly, so add quotes (double-quote
22950 # substitution turns \\\\ into \\, and sed turns \\ into \).
22953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22956 # `set' quotes correctly as required by POSIX, so do not add quotes.
22958 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22967 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22969 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22970 if test -w $cache_file; then
22971 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22972 cat confcache >$cache_file
22974 echo "not updating unwritable cache $cache_file"
22979 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22980 # Let make expand exec_prefix.
22981 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22983 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22984 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22985 # trailing colons and then remove the whole line if VPATH becomes empty
22986 # (actually we leave an empty line to preserve line numbers).
22987 if test "x$srcdir" = x.; then
22988 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22989 s/:*\$(srcdir):*/:/;
22990 s/:*\${srcdir}:*/:/;
22992 s/^\([^=]*=[ ]*\):*/\1/;
22998 DEFS=-DHAVE_CONFIG_H
23002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23003 # 1. Remove the extension, and $U if already installed.
23004 ac_i=`echo "$ac_i" |
23005 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23007 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23008 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23010 LIBOBJS=$ac_libobjs
23012 LTLIBOBJS=$ac_ltlibobjs
23015 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23016 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23017 Usually this means the macro was only invoked conditionally." >&5
23018 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23019 Usually this means the macro was only invoked conditionally." >&2;}
23020 { (exit 1); exit 1; }; }
23022 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23023 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23024 Usually this means the macro was only invoked conditionally." >&5
23025 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23026 Usually this means the macro was only invoked conditionally." >&2;}
23027 { (exit 1); exit 1; }; }
23029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23030 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23031 Usually this means the macro was only invoked conditionally." >&5
23032 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23033 Usually this means the macro was only invoked conditionally." >&2;}
23034 { (exit 1); exit 1; }; }
23036 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23037 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23038 Usually this means the macro was only invoked conditionally." >&5
23039 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23040 Usually this means the macro was only invoked conditionally." >&2;}
23041 { (exit 1); exit 1; }; }
23043 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
23044 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
23045 Usually this means the macro was only invoked conditionally." >&5
23046 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
23047 Usually this means the macro was only invoked conditionally." >&2;}
23048 { (exit 1); exit 1; }; }
23050 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
23051 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23052 Usually this means the macro was only invoked conditionally." >&5
23053 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23054 Usually this means the macro was only invoked conditionally." >&2;}
23055 { (exit 1); exit 1; }; }
23058 : ${CONFIG_STATUS=./config.status}
23059 ac_clean_files_save=$ac_clean_files
23060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23061 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23062 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23063 cat >$CONFIG_STATUS <<_ACEOF
23065 # Generated by $as_me.
23066 # Run this file to recreate the current configuration.
23067 # Compiler output produced by configure, useful for debugging
23068 # configure, is in config.log if it exists.
23071 ac_cs_recheck=false
23073 SHELL=\${CONFIG_SHELL-$SHELL}
23076 cat >>$CONFIG_STATUS <<\_ACEOF
23077 ## --------------------- ##
23078 ## M4sh Initialization. ##
23079 ## --------------------- ##
23081 # Be Bourne compatible
23082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23085 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23086 # is contrary to our usage. Disable this feature.
23087 alias -g '${1+"$@"}'='"$@"'
23088 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23091 DUALCASE=1; export DUALCASE # for MKS sh
23093 # Support unset when possible.
23094 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23101 # Work around bugs in pre-3.0 UWIN ksh.
23102 $as_unset ENV MAIL MAILPATH
23109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23111 LC_TELEPHONE LC_TIME
23113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23114 eval $as_var=C; export $as_var
23120 # Required to use basename.
23121 if expr a : '\(a\)' >/dev/null 2>&1; then
23127 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23128 as_basename=basename
23134 # Name of the executable.
23135 as_me=`$as_basename "$0" ||
23136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23137 X"$0" : 'X\(//\)$' \| \
23138 X"$0" : 'X\(/\)$' \| \
23139 . : '\(.\)' 2>/dev/null ||
23141 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23142 /^X\/\(\/\/\)$/{ s//\1/; q; }
23143 /^X\/\(\/\).*/{ s//\1/; q; }
23147 # PATH needs CR, and LINENO needs CR and PATH.
23148 # Avoid depending upon Character Ranges.
23149 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23150 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23151 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23152 as_cr_digits='0123456789'
23153 as_cr_alnum=$as_cr_Letters$as_cr_digits
23155 # The user is always right.
23156 if test "${PATH_SEPARATOR+set}" != set; then
23157 echo "#! /bin/sh" >conf$$.sh
23158 echo "exit 0" >>conf$$.sh
23160 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23169 as_lineno_1=$LINENO
23170 as_lineno_2=$LINENO
23171 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23172 test "x$as_lineno_1" != "x$as_lineno_2" &&
23173 test "x$as_lineno_3" = "x$as_lineno_2" || {
23174 # Find who we are. Look in the path if we contain no path at all
23177 *[\\/]* ) as_myself=$0 ;;
23178 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23179 for as_dir in $PATH
23182 test -z "$as_dir" && as_dir=.
23183 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23188 # We did not find ourselves, most probably we were run as `sh COMMAND'
23189 # in which case we are not to be found in the path.
23190 if test "x$as_myself" = x; then
23193 if test ! -f "$as_myself"; then
23194 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23195 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23196 { (exit 1); exit 1; }; }
23198 case $CONFIG_SHELL in
23200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23204 test -z "$as_dir" && as_dir=.
23205 for as_base in sh bash ksh sh5; do
23208 if ("$as_dir/$as_base" -c '
23209 as_lineno_1=$LINENO
23210 as_lineno_2=$LINENO
23211 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23212 test "x$as_lineno_1" != "x$as_lineno_2" &&
23213 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23214 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23215 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23216 CONFIG_SHELL=$as_dir/$as_base
23217 export CONFIG_SHELL
23218 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23226 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23227 # uniformly replaced by the line number. The first 'sed' inserts a
23228 # line-number line before each line; the second 'sed' does the real
23229 # work. The second script uses 'N' to pair each line-number line
23230 # with the numbered line, and appends trailing '-' during
23231 # substitution so that $LINENO is not a special case at line end.
23232 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23233 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23234 sed '=' <$as_myself |
23239 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23242 s,^['$as_cr_digits']*\n,,
23243 ' >$as_me.lineno &&
23244 chmod +x $as_me.lineno ||
23245 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23246 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23247 { (exit 1); exit 1; }; }
23249 # Don't try to exec as it changes $[0], causing all sort of problems
23250 # (the dirname of $[0] is not the place where we might find the
23251 # original and so on. Autoconf is especially sensible to this).
23253 # Exit status is that of the last command.
23258 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23259 *c*,-n*) ECHO_N= ECHO_C='
23261 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23262 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23265 if expr a : '\(a\)' >/dev/null 2>&1; then
23271 rm -f conf$$ conf$$.exe conf$$.file
23273 if ln -s conf$$.file conf$$ 2>/dev/null; then
23274 # We could just check for DJGPP; but this test a) works b) is more generic
23275 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23276 if test -f conf$$.exe; then
23277 # Don't use ln at all; we don't have any links
23282 elif ln conf$$.file conf$$ 2>/dev/null; then
23287 rm -f conf$$ conf$$.exe conf$$.file
23289 if mkdir -p . 2>/dev/null; then
23292 test -d ./-p && rmdir ./-p
23296 as_executable_p="test -f"
23298 # Sed expression to map a string onto a valid CPP name.
23299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23301 # Sed expression to map a string onto a valid variable name.
23302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23306 # We need space, tab and new line, in precisely that order.
23316 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23317 # report actual input values of CONFIG_FILES etc. instead of their
23318 # values after options handling. Logging --version etc. is OK.
23322 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23323 ## Running $as_me. ##
23328 This file was extended by libltdl $as_me 1.2, which was
23329 generated by GNU Autoconf 2.59. Invocation command line was
23331 CONFIG_FILES = $CONFIG_FILES
23332 CONFIG_HEADERS = $CONFIG_HEADERS
23333 CONFIG_LINKS = $CONFIG_LINKS
23334 CONFIG_COMMANDS = $CONFIG_COMMANDS
23338 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23342 # Files that config.status was made for.
23343 if test -n "$ac_config_files"; then
23344 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23347 if test -n "$ac_config_headers"; then
23348 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23351 if test -n "$ac_config_links"; then
23352 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23355 if test -n "$ac_config_commands"; then
23356 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23359 cat >>$CONFIG_STATUS <<\_ACEOF
23362 \`$as_me' instantiates files from templates according to the
23363 current configuration.
23365 Usage: $0 [OPTIONS] [FILE]...
23367 -h, --help print this help, then exit
23368 -V, --version print version number, then exit
23369 -q, --quiet do not print progress messages
23370 -d, --debug don't remove temporary files
23371 --recheck update $as_me by reconfiguring in the same conditions
23372 --file=FILE[:TEMPLATE]
23373 instantiate the configuration file FILE
23374 --header=FILE[:TEMPLATE]
23375 instantiate the configuration header FILE
23377 Configuration files:
23380 Configuration headers:
23383 Configuration commands:
23386 Report bugs to <bug-autoconf@gnu.org>."
23389 cat >>$CONFIG_STATUS <<_ACEOF
23391 libltdl config.status 1.2
23392 configured by $0, generated by GNU Autoconf 2.59,
23393 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23395 Copyright (C) 2003 Free Software Foundation, Inc.
23396 This config.status script is free software; the Free Software Foundation
23397 gives unlimited permission to copy, distribute and modify it."
23402 cat >>$CONFIG_STATUS <<\_ACEOF
23403 # If no file are specified by the user, then we need to provide default
23404 # value. By we need to know if files were specified by the user.
23410 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23411 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23419 *) # This is not an option, so the user has probably given explicit
23422 ac_need_defaults=false;;
23426 # Handling of the options.
23428 cat >>$CONFIG_STATUS <<\_ACEOF
23429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23431 --version | --vers* | -V )
23432 echo "$ac_cs_version"; exit 0 ;;
23434 # Conflict between --help and --header
23435 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23436 Try \`$0 --help' for more information." >&5
23437 echo "$as_me: error: ambiguous option: $1
23438 Try \`$0 --help' for more information." >&2;}
23439 { (exit 1); exit 1; }; };;
23440 --help | --hel | -h )
23441 echo "$ac_cs_usage"; exit 0 ;;
23442 --debug | --d* | -d )
23444 --file | --fil | --fi | --f )
23446 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23447 ac_need_defaults=false;;
23448 --header | --heade | --head | --hea )
23450 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23451 ac_need_defaults=false;;
23452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23453 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23456 # This is an error.
23457 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23458 Try \`$0 --help' for more information." >&5
23459 echo "$as_me: error: unrecognized option: $1
23460 Try \`$0 --help' for more information." >&2;}
23461 { (exit 1); exit 1; }; } ;;
23463 *) ac_config_targets="$ac_config_targets $1" ;;
23469 ac_configure_extra_args=
23471 if $ac_cs_silent; then
23473 ac_configure_extra_args="$ac_configure_extra_args --silent"
23477 cat >>$CONFIG_STATUS <<_ACEOF
23478 if \$ac_cs_recheck; then
23479 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23480 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23485 cat >>$CONFIG_STATUS <<_ACEOF
23487 # INIT-COMMANDS section.
23494 with_multisubdir="$with_multisubdir"
23495 with_multisrctop="$with_multisrctop"
23496 with_target_subdir="$with_target_subdir"
23497 ac_configure_args="${multilib_arg} ${ac_configure_args}"
23498 multi_basedir="$multi_basedir"
23499 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
23501 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23507 cat >>$CONFIG_STATUS <<\_ACEOF
23508 for ac_config_target in $ac_config_targets
23510 case "$ac_config_target" in
23511 # Handling of arguments.
23512 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23513 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23514 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23515 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23516 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23517 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23518 { (exit 1); exit 1; }; };;
23522 # If the user did not use the arguments to specify the items to instantiate,
23523 # then the envvar interface is used. Set only those that are not.
23524 # We use the long form for the default assignment because of an extremely
23525 # bizarre bug on SunOS 4.1.3.
23526 if $ac_need_defaults; then
23527 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23528 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23532 # Have a temporary directory for convenience. Make it in the build tree
23533 # simply because there is no reason to put it here, and in addition,
23534 # creating and moving files from /tmp can sometimes cause problems.
23535 # Create a temporary directory, and hook for its removal unless debugging.
23538 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23539 trap '{ (exit 1); exit 1; }' 1 2 13 15
23542 # Create a (secure) tmp directory for tmp files.
23545 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23546 test -n "$tmp" && test -d "$tmp"
23549 tmp=./confstat$$-$RANDOM
23550 (umask 077 && mkdir $tmp)
23553 echo "$me: cannot create a temporary directory in ." >&2
23554 { (exit 1); exit 1; }
23559 cat >>$CONFIG_STATUS <<_ACEOF
23562 # CONFIG_FILES section.
23565 # No need to generate the scripts if there are no CONFIG_FILES.
23566 # This happens for instance when ./config.status config.h
23567 if test -n "\$CONFIG_FILES"; then
23568 # Protect against being on the right side of a sed subst in config.status.
23569 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23570 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23571 s,@SHELL@,$SHELL,;t t
23572 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23573 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23574 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23575 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23576 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23577 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23578 s,@exec_prefix@,$exec_prefix,;t t
23579 s,@prefix@,$prefix,;t t
23580 s,@program_transform_name@,$program_transform_name,;t t
23581 s,@bindir@,$bindir,;t t
23582 s,@sbindir@,$sbindir,;t t
23583 s,@libexecdir@,$libexecdir,;t t
23584 s,@datadir@,$datadir,;t t
23585 s,@sysconfdir@,$sysconfdir,;t t
23586 s,@sharedstatedir@,$sharedstatedir,;t t
23587 s,@localstatedir@,$localstatedir,;t t
23588 s,@libdir@,$libdir,;t t
23589 s,@includedir@,$includedir,;t t
23590 s,@oldincludedir@,$oldincludedir,;t t
23591 s,@infodir@,$infodir,;t t
23592 s,@mandir@,$mandir,;t t
23593 s,@build_alias@,$build_alias,;t t
23594 s,@host_alias@,$host_alias,;t t
23595 s,@target_alias@,$target_alias,;t t
23596 s,@DEFS@,$DEFS,;t t
23597 s,@ECHO_C@,$ECHO_C,;t t
23598 s,@ECHO_N@,$ECHO_N,;t t
23599 s,@ECHO_T@,$ECHO_T,;t t
23600 s,@LIBS@,$LIBS,;t t
23601 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23602 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23603 s,@MAINT@,$MAINT,;t t
23604 s,@multi_basedir@,$multi_basedir,;t t
23605 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23606 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23607 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23608 s,@CYGPATH_W@,$CYGPATH_W,;t t
23609 s,@PACKAGE@,$PACKAGE,;t t
23610 s,@VERSION@,$VERSION,;t t
23611 s,@ACLOCAL@,$ACLOCAL,;t t
23612 s,@AUTOCONF@,$AUTOCONF,;t t
23613 s,@AUTOMAKE@,$AUTOMAKE,;t t
23614 s,@AUTOHEADER@,$AUTOHEADER,;t t
23615 s,@MAKEINFO@,$MAKEINFO,;t t
23616 s,@install_sh@,$install_sh,;t t
23617 s,@STRIP@,$STRIP,;t t
23618 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23619 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23620 s,@mkdir_p@,$mkdir_p,;t t
23622 s,@SET_MAKE@,$SET_MAKE,;t t
23623 s,@am__leading_dot@,$am__leading_dot,;t t
23624 s,@AMTAR@,$AMTAR,;t t
23625 s,@am__tar@,$am__tar,;t t
23626 s,@am__untar@,$am__untar,;t t
23628 s,@CFLAGS@,$CFLAGS,;t t
23629 s,@LDFLAGS@,$LDFLAGS,;t t
23630 s,@CPPFLAGS@,$CPPFLAGS,;t t
23631 s,@ac_ct_CC@,$ac_ct_CC,;t t
23632 s,@EXEEXT@,$EXEEXT,;t t
23633 s,@OBJEXT@,$OBJEXT,;t t
23634 s,@DEPDIR@,$DEPDIR,;t t
23635 s,@am__include@,$am__include,;t t
23636 s,@am__quote@,$am__quote,;t t
23637 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23638 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23639 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23640 s,@CCDEPMODE@,$CCDEPMODE,;t t
23641 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23642 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23643 s,@build@,$build,;t t
23644 s,@build_cpu@,$build_cpu,;t t
23645 s,@build_vendor@,$build_vendor,;t t
23646 s,@build_os@,$build_os,;t t
23647 s,@host@,$host,;t t
23648 s,@host_cpu@,$host_cpu,;t t
23649 s,@host_vendor@,$host_vendor,;t t
23650 s,@host_os@,$host_os,;t t
23651 s,@EGREP@,$EGREP,;t t
23652 s,@LN_S@,$LN_S,;t t
23653 s,@ECHO@,$ECHO,;t t
23655 s,@ac_ct_AR@,$ac_ct_AR,;t t
23656 s,@RANLIB@,$RANLIB,;t t
23657 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23658 s,@DLLTOOL@,$DLLTOOL,;t t
23659 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23661 s,@ac_ct_AS@,$ac_ct_AS,;t t
23662 s,@OBJDUMP@,$OBJDUMP,;t t
23663 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23666 s,@CXXFLAGS@,$CXXFLAGS,;t t
23667 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23668 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23669 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23670 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23671 s,@CXXCPP@,$CXXCPP,;t t
23673 s,@FFLAGS@,$FFLAGS,;t t
23674 s,@ac_ct_F77@,$ac_ct_F77,;t t
23675 s,@LIBTOOL@,$LIBTOOL,;t t
23676 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
23677 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
23678 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
23679 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
23680 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
23681 s,@LIBADD_DL@,$LIBADD_DL,;t t
23682 s,@LIBOBJS@,$LIBOBJS,;t t
23683 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23688 cat >>$CONFIG_STATUS <<\_ACEOF
23689 # Split the substitutions into bite-sized pieces for seds with
23690 # small command number limits, like on Digital OSF/1 and HP-UX.
23691 ac_max_sed_lines=48
23692 ac_sed_frag=1 # Number of current file.
23693 ac_beg=1 # First line for current file.
23694 ac_end=$ac_max_sed_lines # Line after last line for current file.
23697 while $ac_more_lines; do
23698 if test $ac_beg -gt 1; then
23699 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23701 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23703 if test ! -s $tmp/subs.frag; then
23704 ac_more_lines=false
23706 # The purpose of the label and of the branching condition is to
23707 # speed up the sed processing (if there are no `@' at all, there
23708 # is no need to browse any of the substitutions).
23709 # These are the two extra sed commands mentioned above.
23711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23712 if test -z "$ac_sed_cmds"; then
23713 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23715 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23717 ac_sed_frag=`expr $ac_sed_frag + 1`
23719 ac_end=`expr $ac_end + $ac_max_sed_lines`
23722 if test -z "$ac_sed_cmds"; then
23725 fi # test -n "$CONFIG_FILES"
23728 cat >>$CONFIG_STATUS <<\_ACEOF
23729 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23732 - | *:- | *:-:* ) # input from stdin
23734 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23736 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23738 * ) ac_file_in=$ac_file.in ;;
23741 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23742 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23744 X"$ac_file" : 'X\(//\)[^/]' \| \
23745 X"$ac_file" : 'X\(//\)$' \| \
23746 X"$ac_file" : 'X\(/\)' \| \
23747 . : '\(.\)' 2>/dev/null ||
23749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23751 /^X\(\/\/\)$/{ s//\1/; q; }
23752 /^X\(\/\).*/{ s//\1/; q; }
23754 { if $as_mkdir_p; then
23759 while test ! -d "$as_dir"; do
23760 as_dirs="$as_dir $as_dirs"
23761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23763 X"$as_dir" : 'X\(//\)[^/]' \| \
23764 X"$as_dir" : 'X\(//\)$' \| \
23765 X"$as_dir" : 'X\(/\)' \| \
23766 . : '\(.\)' 2>/dev/null ||
23768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23770 /^X\(\/\/\)$/{ s//\1/; q; }
23771 /^X\(\/\).*/{ s//\1/; q; }
23774 test ! -n "$as_dirs" || mkdir $as_dirs
23775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23777 { (exit 1); exit 1; }; }; }
23781 if test "$ac_dir" != .; then
23782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23783 # A "../" for each directory in $ac_dir_suffix.
23784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23786 ac_dir_suffix= ac_top_builddir=
23790 .) # No --srcdir option. We are building in place.
23792 if test -z "$ac_top_builddir"; then
23795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23797 [\\/]* | ?:[\\/]* ) # Absolute path.
23798 ac_srcdir=$srcdir$ac_dir_suffix;
23799 ac_top_srcdir=$srcdir ;;
23800 *) # Relative path.
23801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23802 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23805 # Do not use `cd foo && pwd` to compute absolute paths, because
23806 # the directories may not exist.
23808 .) ac_abs_builddir="$ac_dir";;
23811 .) ac_abs_builddir=`pwd`;;
23812 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23813 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23816 case $ac_abs_builddir in
23817 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23819 case ${ac_top_builddir}. in
23820 .) ac_abs_top_builddir=$ac_abs_builddir;;
23821 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23822 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23825 case $ac_abs_builddir in
23826 .) ac_abs_srcdir=$ac_srcdir;;
23829 .) ac_abs_srcdir=$ac_abs_builddir;;
23830 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23831 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23834 case $ac_abs_builddir in
23835 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23837 case $ac_top_srcdir in
23838 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23839 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23840 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23846 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23847 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23850 if test x"$ac_file" != x-; then
23851 { echo "$as_me:$LINENO: creating $ac_file" >&5
23852 echo "$as_me: creating $ac_file" >&6;}
23855 # Let's still pretend it is `configure' which instantiates (i.e., don't
23856 # use $as_me), people would be surprised to read:
23857 # /* config.h. Generated by config.status. */
23858 if test x"$ac_file" = x-; then
23861 configure_input="$ac_file. "
23863 configure_input=$configure_input"Generated from `echo $ac_file_in |
23864 sed 's,.*/,,'` by configure."
23866 # First look for the input files in the build tree, otherwise in the
23868 ac_file_inputs=`IFS=:
23869 for f in $ac_file_in; do
23871 -) echo $tmp/stdin ;;
23873 # Absolute (can't be DOS-style, as IFS=:)
23874 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23875 echo "$as_me: error: cannot find input file: $f" >&2;}
23876 { (exit 1); exit 1; }; }
23879 if test -f "$f"; then
23882 elif test -f "$srcdir/$f"; then
23887 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23888 echo "$as_me: error: cannot find input file: $f" >&2;}
23889 { (exit 1); exit 1; }; }
23892 done` || { (exit 1); exit 1; }
23894 cat >>$CONFIG_STATUS <<_ACEOF
23898 cat >>$CONFIG_STATUS <<\_ACEOF
23900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23901 s,@configure_input@,$configure_input,;t t
23902 s,@srcdir@,$ac_srcdir,;t t
23903 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23904 s,@top_srcdir@,$ac_top_srcdir,;t t
23905 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23906 s,@builddir@,$ac_builddir,;t t
23907 s,@abs_builddir@,$ac_abs_builddir,;t t
23908 s,@top_builddir@,$ac_top_builddir,;t t
23909 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23910 s,@INSTALL@,$ac_INSTALL,;t t
23911 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23913 if test x"$ac_file" != x-; then
23914 mv $tmp/out $ac_file
23922 cat >>$CONFIG_STATUS <<\_ACEOF
23925 # CONFIG_HEADER section.
23928 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23929 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23931 # ac_d sets the value in "#define NAME VALUE" lines.
23932 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23933 ac_dB='[ ].*$,\1#\2'
23936 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23937 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23938 ac_uB='$,\1#\2define\3'
23942 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23945 - | *:- | *:-:* ) # input from stdin
23947 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23949 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23951 * ) ac_file_in=$ac_file.in ;;
23954 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23955 echo "$as_me: creating $ac_file" >&6;}
23957 # First look for the input files in the build tree, otherwise in the
23959 ac_file_inputs=`IFS=:
23960 for f in $ac_file_in; do
23962 -) echo $tmp/stdin ;;
23964 # Absolute (can't be DOS-style, as IFS=:)
23965 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23966 echo "$as_me: error: cannot find input file: $f" >&2;}
23967 { (exit 1); exit 1; }; }
23968 # Do quote $f, to prevent DOS paths from being IFS'd.
23971 if test -f "$f"; then
23974 elif test -f "$srcdir/$f"; then
23979 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23980 echo "$as_me: error: cannot find input file: $f" >&2;}
23981 { (exit 1); exit 1; }; }
23984 done` || { (exit 1); exit 1; }
23985 # Remove the trailing spaces.
23986 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23990 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23991 # `conftest.undefs', that substitutes the proper values into
23992 # config.h.in to produce config.h. The first handles `#define'
23993 # templates, and the second `#undef' templates.
23994 # And first: Protect against being on the right side of a sed subst in
23995 # config.status. Protect against being in an unquoted here document
23996 # in config.status.
23997 rm -f conftest.defines conftest.undefs
23998 # Using a here document instead of a string reduces the quoting nightmare.
23999 # Putting comments in sed scripts is not portable.
24001 # `end' is used to avoid that the second main sed command (meant for
24002 # 0-ary CPP macros) applies to n-ary macro definitions.
24003 # See the Autoconf documentation for `clear'.
24004 cat >confdef2sed.sed <<\_ACEOF
24009 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24011 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24014 # If some macros were called several times there might be several times
24015 # the same #defines, which is useless. Nevertheless, we may not want to
24016 # sort them, since we want the *last* AC-DEFINE to be honored.
24017 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24018 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24019 rm -f confdef2sed.sed
24021 # This sed command replaces #undef with comments. This is necessary, for
24022 # example, in the case of _POSIX_SOURCE, which is predefined and required
24023 # on some systems where configure will not decide to define it.
24024 cat >>conftest.undefs <<\_ACEOF
24025 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24028 # Break up conftest.defines because some shells have a limit on the size
24029 # of here documents, and old seds have small limits too (100 cmds).
24030 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24031 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24032 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24033 echo ' :' >>$CONFIG_STATUS
24034 rm -f conftest.tail
24035 while grep . conftest.defines >/dev/null
24037 # Write a limited-size here document to $tmp/defines.sed.
24038 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24039 # Speed up: don't consider the non `#define' lines.
24040 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24041 # Work around the forget-to-reset-the-flag bug.
24042 echo 't clr' >>$CONFIG_STATUS
24043 echo ': clr' >>$CONFIG_STATUS
24044 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24046 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24048 mv $tmp/out $tmp/in
24050 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24051 rm -f conftest.defines
24052 mv conftest.tail conftest.defines
24054 rm -f conftest.defines
24055 echo ' fi # grep' >>$CONFIG_STATUS
24056 echo >>$CONFIG_STATUS
24058 # Break up conftest.undefs because some shells have a limit on the size
24059 # of here documents, and old seds have small limits too (100 cmds).
24060 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24061 rm -f conftest.tail
24062 while grep . conftest.undefs >/dev/null
24064 # Write a limited-size here document to $tmp/undefs.sed.
24065 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24066 # Speed up: don't consider the non `#undef'
24067 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24068 # Work around the forget-to-reset-the-flag bug.
24069 echo 't clr' >>$CONFIG_STATUS
24070 echo ': clr' >>$CONFIG_STATUS
24071 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24073 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24075 mv $tmp/out $tmp/in
24077 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24078 rm -f conftest.undefs
24079 mv conftest.tail conftest.undefs
24081 rm -f conftest.undefs
24083 cat >>$CONFIG_STATUS <<\_ACEOF
24084 # Let's still pretend it is `configure' which instantiates (i.e., don't
24085 # use $as_me), people would be surprised to read:
24086 # /* config.h. Generated by config.status. */
24087 if test x"$ac_file" = x-; then
24088 echo "/* Generated by configure. */" >$tmp/config.h
24090 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24092 cat $tmp/in >>$tmp/config.h
24094 if test x"$ac_file" != x-; then
24095 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24096 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24097 echo "$as_me: $ac_file is unchanged" >&6;}
24099 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24101 X"$ac_file" : 'X\(//\)[^/]' \| \
24102 X"$ac_file" : 'X\(//\)$' \| \
24103 X"$ac_file" : 'X\(/\)' \| \
24104 . : '\(.\)' 2>/dev/null ||
24106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24108 /^X\(\/\/\)$/{ s//\1/; q; }
24109 /^X\(\/\).*/{ s//\1/; q; }
24111 { if $as_mkdir_p; then
24116 while test ! -d "$as_dir"; do
24117 as_dirs="$as_dir $as_dirs"
24118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24120 X"$as_dir" : 'X\(//\)[^/]' \| \
24121 X"$as_dir" : 'X\(//\)$' \| \
24122 X"$as_dir" : 'X\(/\)' \| \
24123 . : '\(.\)' 2>/dev/null ||
24125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24127 /^X\(\/\/\)$/{ s//\1/; q; }
24128 /^X\(\/\).*/{ s//\1/; q; }
24131 test ! -n "$as_dirs" || mkdir $as_dirs
24132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24134 { (exit 1); exit 1; }; }; }
24137 mv $tmp/config.h $ac_file
24141 rm -f $tmp/config.h
24143 # Compute $ac_file's index in $config_headers.
24145 for _am_header in $config_headers :; do
24146 case $_am_header in
24147 $ac_file | $ac_file:* )
24150 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24153 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24154 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24155 X$ac_file : 'X\(//\)[^/]' \| \
24156 X$ac_file : 'X\(//\)$' \| \
24157 X$ac_file : 'X\(/\)' \| \
24158 . : '\(.\)' 2>/dev/null ||
24160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24162 /^X\(\/\/\)$/{ s//\1/; q; }
24163 /^X\(\/\).*/{ s//\1/; q; }
24164 s/.*/./; q'`/stamp-h$_am_stamp_count
24167 cat >>$CONFIG_STATUS <<\_ACEOF
24170 # CONFIG_COMMANDS section.
24172 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24173 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24174 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24175 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24176 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24177 X"$ac_dest" : 'X\(//\)[^/]' \| \
24178 X"$ac_dest" : 'X\(//\)$' \| \
24179 X"$ac_dest" : 'X\(/\)' \| \
24180 . : '\(.\)' 2>/dev/null ||
24182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24184 /^X\(\/\/\)$/{ s//\1/; q; }
24185 /^X\(\/\).*/{ s//\1/; q; }
24187 { if $as_mkdir_p; then
24192 while test ! -d "$as_dir"; do
24193 as_dirs="$as_dir $as_dirs"
24194 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24196 X"$as_dir" : 'X\(//\)[^/]' \| \
24197 X"$as_dir" : 'X\(//\)$' \| \
24198 X"$as_dir" : 'X\(/\)' \| \
24199 . : '\(.\)' 2>/dev/null ||
24201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24203 /^X\(\/\/\)$/{ s//\1/; q; }
24204 /^X\(\/\).*/{ s//\1/; q; }
24207 test ! -n "$as_dirs" || mkdir $as_dirs
24208 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24209 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24210 { (exit 1); exit 1; }; }; }
24214 if test "$ac_dir" != .; then
24215 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24216 # A "../" for each directory in $ac_dir_suffix.
24217 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24219 ac_dir_suffix= ac_top_builddir=
24223 .) # No --srcdir option. We are building in place.
24225 if test -z "$ac_top_builddir"; then
24228 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24230 [\\/]* | ?:[\\/]* ) # Absolute path.
24231 ac_srcdir=$srcdir$ac_dir_suffix;
24232 ac_top_srcdir=$srcdir ;;
24233 *) # Relative path.
24234 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24235 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24238 # Do not use `cd foo && pwd` to compute absolute paths, because
24239 # the directories may not exist.
24241 .) ac_abs_builddir="$ac_dir";;
24244 .) ac_abs_builddir=`pwd`;;
24245 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24246 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24249 case $ac_abs_builddir in
24250 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24252 case ${ac_top_builddir}. in
24253 .) ac_abs_top_builddir=$ac_abs_builddir;;
24254 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24255 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24258 case $ac_abs_builddir in
24259 .) ac_abs_srcdir=$ac_srcdir;;
24262 .) ac_abs_srcdir=$ac_abs_builddir;;
24263 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24264 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24267 case $ac_abs_builddir in
24268 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24270 case $ac_top_srcdir in
24271 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24272 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24273 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24278 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24279 echo "$as_me: executing $ac_dest commands" >&6;}
24282 # Only add multilib support code if we just rebuilt the top-level
24284 case " $CONFIG_FILES " in
24286 ac_file=Makefile . ${multi_basedir}/config-ml.in
24289 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24290 # Strip MF so we end up with the name of the file.
24291 mf=`echo "$mf" | sed -e 's/:.*$//'`
24292 # Check whether this is an Automake generated Makefile or not.
24293 # We used to match only the files named `Makefile.in', but
24294 # some people rename them; so instead we look at the file content.
24295 # Grep'ing the first line is not enough: some people post-process
24296 # each Makefile.in and add a new line on top of each file to say so.
24297 # So let's grep whole file.
24298 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24299 dirpart=`(dirname "$mf") 2>/dev/null ||
24300 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24301 X"$mf" : 'X\(//\)[^/]' \| \
24302 X"$mf" : 'X\(//\)$' \| \
24303 X"$mf" : 'X\(/\)' \| \
24304 . : '\(.\)' 2>/dev/null ||
24306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24308 /^X\(\/\/\)$/{ s//\1/; q; }
24309 /^X\(\/\).*/{ s//\1/; q; }
24314 # Extract the definition of DEPDIR, am__include, and am__quote
24315 # from the Makefile without running `make'.
24316 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24317 test -z "$DEPDIR" && continue
24318 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24319 test -z "am__include" && continue
24320 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24321 # When using ansi2knr, U may be empty or an underscore; expand it
24322 U=`sed -n 's/^U = //p' < "$mf"`
24323 # Find all dependency output files, they are included files with
24324 # $(DEPDIR) in their names. We invoke sed twice because it is the
24325 # simplest approach to changing $(DEPDIR) to its actual value in the
24327 for file in `sed -n "
24328 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24329 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24330 # Make sure the directory exists.
24331 test -f "$dirpart/$file" && continue
24332 fdir=`(dirname "$file") 2>/dev/null ||
24333 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24334 X"$file" : 'X\(//\)[^/]' \| \
24335 X"$file" : 'X\(//\)$' \| \
24336 X"$file" : 'X\(/\)' \| \
24337 . : '\(.\)' 2>/dev/null ||
24339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24341 /^X\(\/\/\)$/{ s//\1/; q; }
24342 /^X\(\/\).*/{ s//\1/; q; }
24344 { if $as_mkdir_p; then
24345 mkdir -p $dirpart/$fdir
24347 as_dir=$dirpart/$fdir
24349 while test ! -d "$as_dir"; do
24350 as_dirs="$as_dir $as_dirs"
24351 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24353 X"$as_dir" : 'X\(//\)[^/]' \| \
24354 X"$as_dir" : 'X\(//\)$' \| \
24355 X"$as_dir" : 'X\(/\)' \| \
24356 . : '\(.\)' 2>/dev/null ||
24358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24360 /^X\(\/\/\)$/{ s//\1/; q; }
24361 /^X\(\/\).*/{ s//\1/; q; }
24364 test ! -n "$as_dirs" || mkdir $as_dirs
24365 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24366 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24367 { (exit 1); exit 1; }; }; }
24369 # echo "creating $dirpart/$file"
24370 echo '# dummy' > "$dirpart/$file"
24378 cat >>$CONFIG_STATUS <<\_ACEOF
24380 { (exit 0); exit 0; }
24382 chmod +x $CONFIG_STATUS
24383 ac_clean_files=$ac_clean_files_save
24386 # configure is writing to config.log, and then calls config.status.
24387 # config.status does its own redirection, appending to config.log.
24388 # Unfortunately, on DOS this fails, as config.log is still kept open
24389 # by configure, so config.status won't be able to write to it; its
24390 # output is simply discarded. So we exec the FD to /dev/null,
24391 # effectively closing config.log, so it can be properly (re)opened and
24392 # appended to by config.status. When coming back to configure, we
24393 # need to make the FD available again.
24394 if test "$no_create" != yes; then
24396 ac_config_status_args=
24397 test "$silent" = yes &&
24398 ac_config_status_args="$ac_config_status_args --quiet"
24400 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24402 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24403 # would make configure fail if this is the last instruction.
24404 $ac_cs_success || { (exit 1); exit 1; }