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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-ltdl-install install libltdl
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1052 Some influential environment variables:
1053 CC C compiler command
1054 CFLAGS C compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
1060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
1062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1069 Report bugs to <bug-libtool@gnu.org>.
1073 if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1080 if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 ac_dir_suffix= ac_top_builddir=
1089 .) # No --srcdir option. We are building in place.
1091 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1107 .) ac_abs_builddir="$ac_dir";;
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1154 $ac_configure --help
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1165 libltdl configure 1.2
1166 generated by GNU Autoconf 2.59
1168 Copyright (C) 2003 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1176 This file contains any messages produced by compilers while
1177 running configure, to aid debugging if configure makes a mistake.
1179 It was created by libltdl $as_me 1.2, which was
1180 generated by GNU Autoconf 2.59. Invocation command line was
1191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir"
1230 # Keep a trace of the command line.
1231 # Strip out --no-create and --no-recursion so they do not pile up.
1232 # Strip out --silent because we don't want to record it for future runs.
1233 # Also quote any args containing shell meta-characters.
1234 # Make two passes to allow for proper duplicate-argument suppression.
1239 ac_must_keep_next=false
1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256 if test $ac_must_keep_next = true; then
1257 ac_must_keep_next=false # Got value, back to normal.
1260 *=* | --config-cache | -C | -disable-* | --disable-* \
1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263 | -with-* | --with-* | -without-* | --without-* | --x)
1264 case "$ac_configure_args0 " in
1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268 -* ) ac_must_keep_next=true ;;
1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272 # Get rid of the leading space.
1278 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281 # When interrupted or exit'd, cleanup temporary files, and complete
1282 # config.log. We remove comments because anyway the quotes in there
1283 # would cause problems or look ugly.
1284 # WARNING: Be sure not to use single quotes in there, as some shells,
1285 # such as our DU 5.0 friend, will then `close' the trap.
1286 trap 'exit_status=$?
1287 # Save into config.log some information that might help in debugging.
1292 ## ---------------- ##
1293 ## Cache variables. ##
1294 ## ---------------- ##
1297 # The following way of writing the cache mishandles newlines in values,
1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1315 ## ----------------- ##
1316 ## Output variables. ##
1317 ## ----------------- ##
1320 for ac_var in $ac_subst_vars
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1327 if test -n "$ac_subst_files"; then
1334 for ac_var in $ac_subst_files
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1342 if test -s confdefs.h; then
1349 sed "/^$/d" confdefs.h | sort
1352 test "$ac_signal" != 0 &&
1353 echo "$as_me: caught signal $ac_signal"
1354 echo "$as_me: exit $exit_status"
1356 rm -f core *.core &&
1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360 for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1366 rm -rf conftest* confdefs.h
1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 # Predefined preprocessor variables.
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 # Let the site file select an alternate cache file if it wants to.
1398 # Prefer explicitly selected file to automatically selected ones.
1399 if test -z "$CONFIG_SITE"; then
1400 if test "x$prefix" != xNONE; then
1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406 for ac_site_file in $CONFIG_SITE; do
1407 if test -r "$ac_site_file"; then
1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409 echo "$as_me: loading site script $ac_site_file" >&6;}
1410 sed 's/^/| /' "$ac_site_file" >&5
1415 if test -r "$cache_file"; then
1416 # Some versions of bash will fail to source /dev/null (special
1417 # files actually), so we avoid doing that.
1418 if test -f "$cache_file"; then
1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420 echo "$as_me: loading cache $cache_file" >&6;}
1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
1423 *) . ./$cache_file;;
1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428 echo "$as_me: creating cache $cache_file" >&6;}
1432 # Check that the precious variables saved in the cache have kept the same
1434 ac_cache_corrupted=false
1435 for ac_var in `(set) 2>&1 |
1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438 eval ac_new_set=\$ac_env_${ac_var}_set
1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440 eval ac_new_val="\$ac_env_${ac_var}_value"
1441 case $ac_old_set,$ac_new_set in
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1452 if test "x$ac_old_val" != "x$ac_new_val"; then
1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1456 echo "$as_me: former value: $ac_old_val" >&2;}
1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1458 echo "$as_me: current value: $ac_new_val" >&2;}
1459 ac_cache_corrupted=:
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480 { (exit 1); exit 1; }; }
1484 ac_cpp='$CPP $CPPFLAGS'
1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516 ac_config_files="$ac_config_files config.h:config-h.in"
1520 ## ------------------------------- ##
1521 ## Libltdl specific configuration. ##
1522 ## ------------------------------- ##
1525 for ac_dir in . $srcdir/.; do
1526 if test -f $ac_dir/install-sh; then
1528 ac_install_sh="$ac_aux_dir/install-sh -c"
1530 elif test -f $ac_dir/install.sh; then
1532 ac_install_sh="$ac_aux_dir/install.sh -c"
1534 elif test -f $ac_dir/shtool; then
1536 ac_install_sh="$ac_aux_dir/shtool install -c"
1540 if test -z "$ac_aux_dir"; then
1541 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1542 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1543 { (exit 1); exit 1; }; }
1545 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1546 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1547 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1550 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1551 if test -f ${srcdir}/ltmain.sh; then
1552 # if libltdl is libtoolized, it is assumed to be stand-alone and
1553 # installed unless the command line overrides it (tested above)
1554 enable_ltdl_install=yes
1556 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1557 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1558 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1559 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1560 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1561 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1562 { (exit 1); exit 1; }; }
1567 ## ------------------------ ##
1568 ## Automake Initialisation. ##
1569 ## ------------------------ ##
1570 am__api_version="1.9"
1571 # Find a good install program. We prefer a C program (faster),
1572 # so one script is as good as another. But avoid the broken or
1573 # incompatible versions:
1574 # SysV /etc/install, /usr/sbin/install
1575 # SunOS /usr/etc/install
1576 # IRIX /sbin/install
1578 # AmigaOS /C/install, which installs bootblocks on floppy discs
1579 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1582 # OS/2's system install, which has a completely different semantic
1583 # ./install, which can be erroneously created by make from ./install.sh.
1584 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1585 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1586 if test -z "$INSTALL"; then
1587 if test "${ac_cv_path_install+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 test -z "$as_dir" && as_dir=.
1595 # Account for people who put trailing slashes in PATH elements.
1597 ./ | .// | /cC/* | \
1598 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1599 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1602 # OSF1 and SCO ODT 3.0 have their own names for install.
1603 # Don't use installbsd from OSF since it installs stuff as root
1605 for ac_prog in ginstall scoinst install; do
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1608 if test $ac_prog = install &&
1609 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610 # AIX install. It has an incompatible calling convention.
1612 elif test $ac_prog = install &&
1613 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1614 # program-specific install script used by HP pwplus--don't use.
1617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1629 if test "${ac_cv_path_install+set}" = set; then
1630 INSTALL=$ac_cv_path_install
1632 # As a last resort, use the slow shell script. We don't cache a
1633 # path for INSTALL within a source directory, because that will
1634 # break other packages using the cache if that directory is
1635 # removed, or if the path is relative.
1636 INSTALL=$ac_install_sh
1639 echo "$as_me:$LINENO: result: $INSTALL" >&5
1640 echo "${ECHO_T}$INSTALL" >&6
1642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1643 # It thinks the first close brace ends the variable substitution.
1644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1648 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1650 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1651 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1654 echo timestamp > conftest.file
1655 # Do `set' in a subshell so we don't clobber the current shell's
1656 # arguments. Must try -L first in case configure is actually a
1657 # symlink; some systems play weird games with the mod time of symlinks
1658 # (eg FreeBSD returns the mod time of the symlink's containing
1661 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1662 if test "$*" = "X"; then
1664 set X `ls -t $srcdir/configure conftest.file`
1667 if test "$*" != "X $srcdir/configure conftest.file" \
1668 && test "$*" != "X conftest.file $srcdir/configure"; then
1670 # If neither matched, then we have a broken ls. This can happen
1671 # if, for instance, CONFIG_SHELL is bash and it inherits a
1672 # broken ls alias from the environment. This has actually
1673 # happened. Such a system could not be considered "sane".
1674 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1675 alias in your environment" >&5
1676 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1677 alias in your environment" >&2;}
1678 { (exit 1); exit 1; }; }
1681 test "$2" = conftest.file
1687 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1688 Check your system clock" >&5
1689 echo "$as_me: error: newly created file is older than distributed files!
1690 Check your system clock" >&2;}
1691 { (exit 1); exit 1; }; }
1693 echo "$as_me:$LINENO: result: yes" >&5
1694 echo "${ECHO_T}yes" >&6
1695 test "$program_prefix" != NONE &&
1696 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1697 # Use a double $ so make ignores it.
1698 test "$program_suffix" != NONE &&
1699 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1700 # Double any \ or $. echo might interpret backslashes.
1701 # By default was `s,x,x', remove it if useless.
1702 cat <<\_ACEOF >conftest.sed
1703 s/[\\$]/&&/g;s/;s,x,x,$//
1705 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1708 # expand $ac_aux_dir to an absolute path
1709 am_aux_dir=`cd $ac_aux_dir && pwd`
1711 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1712 # Use eval to expand $SHELL
1713 if eval "$MISSING --run true"; then
1714 am_missing_run="$MISSING --run "
1717 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1718 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1721 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1722 # We used to keeping the `.' as first argument, in order to
1723 # allow $(mkdir_p) to be used without argument. As in
1724 # $(mkdir_p) $(somedir)
1725 # where $(somedir) is conditionally defined. However this is wrong
1727 # 1. if the package is installed by a user who cannot write `.'
1728 # make install will fail,
1729 # 2. the above comment should most certainly read
1730 # $(mkdir_p) $(DESTDIR)$(somedir)
1731 # so it does not work when $(somedir) is undefined and
1732 # $(DESTDIR) is not.
1733 # To support the latter case, we have to write
1734 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1735 # so the `.' trick is pointless.
1736 mkdir_p='mkdir -p --'
1738 # On NextStep and OpenStep, the `mkdir' command does not
1739 # recognize any option. It will interpret all options as
1740 # directories to create, and then abort because `.' already
1742 for d in ./-p ./--version;
1744 test -d $d && rmdir $d
1746 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1747 if test -f "$ac_aux_dir/mkinstalldirs"; then
1748 mkdir_p='$(mkinstalldirs)'
1750 mkdir_p='$(install_sh) -d'
1754 for ac_prog in gawk mawk nawk awk
1756 # Extract the first word of "$ac_prog", so it can be a program name with args.
1757 set dummy $ac_prog; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_AWK+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 if test -n "$AWK"; then
1764 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 ac_cv_prog_AWK="$ac_prog"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 if test -n "$AWK"; then
1784 echo "$as_me:$LINENO: result: $AWK" >&5
1785 echo "${ECHO_T}$AWK" >&6
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1791 test -n "$AWK" && break
1794 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1795 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1796 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1797 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 cat >conftest.make <<\_ACEOF
1802 @echo 'ac_maketemp="$(MAKE)"'
1804 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1805 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1806 if test -n "$ac_maketemp"; then
1807 eval ac_cv_prog_make_${ac_make}_set=yes
1809 eval ac_cv_prog_make_${ac_make}_set=no
1813 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1820 SET_MAKE="MAKE=${MAKE-make}"
1823 rm -rf .tst 2>/dev/null
1824 mkdir .tst 2>/dev/null
1825 if test -d .tst; then
1830 rmdir .tst 2>/dev/null
1832 # test to see if srcdir already configured
1833 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1834 test -f $srcdir/config.status; then
1835 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1836 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1837 { (exit 1); exit 1; }; }
1840 # test whether we have cygpath
1841 if test -z "$CYGPATH_W"; then
1842 if (cygpath --version) >/dev/null 2>/dev/null; then
1843 CYGPATH_W='cygpath -w'
1850 # Define the identity of the package.
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE "$PACKAGE"
1860 cat >>confdefs.h <<_ACEOF
1861 #define VERSION "$VERSION"
1864 # Some tools Automake needs.
1866 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1869 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1872 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1875 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1878 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1880 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1882 # Installed binaries are usually stripped using `strip' when the user
1883 # run `make install-strip'. However `strip' might not be the right
1884 # tool to use in cross-compilation environments, therefore Automake
1885 # will honor the `STRIP' environment variable to overrule this program.
1886 if test "$cross_compiling" != no; then
1887 if test -n "$ac_tool_prefix"; then
1888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1889 set dummy ${ac_tool_prefix}strip; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_STRIP+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$STRIP"; then
1896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 STRIP=$ac_cv_prog_STRIP
1915 if test -n "$STRIP"; then
1916 echo "$as_me:$LINENO: result: $STRIP" >&5
1917 echo "${ECHO_T}$STRIP" >&6
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1924 if test -z "$ac_cv_prog_STRIP"; then
1926 # Extract the first word of "strip", so it can be a program name with args.
1927 set dummy strip; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 if test -n "$ac_ct_STRIP"; then
1934 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 test -z "$as_dir" && as_dir=.
1941 for ac_exec_ext in '' $ac_executable_extensions; do
1942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943 ac_cv_prog_ac_ct_STRIP="strip"
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1953 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1954 if test -n "$ac_ct_STRIP"; then
1955 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1956 echo "${ECHO_T}$ac_ct_STRIP" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1964 STRIP="$ac_cv_prog_STRIP"
1968 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1970 # We need awk for the "check" target. The system "awk" is bad on
1972 # Always define AMTAR for backward compatibility.
1974 AMTAR=${AMTAR-"${am_missing_run}tar"}
1976 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1982 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1983 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1984 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1985 if test "${enable_maintainer_mode+set}" = set; then
1986 enableval="$enable_maintainer_mode"
1987 USE_MAINTAINER_MODE=$enableval
1989 USE_MAINTAINER_MODE=no
1991 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1992 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1995 if test $USE_MAINTAINER_MODE = yes; then
1996 MAINTAINER_MODE_TRUE=
1997 MAINTAINER_MODE_FALSE='#'
1999 MAINTAINER_MODE_TRUE='#'
2000 MAINTAINER_MODE_FALSE=
2003 MAINT=$MAINTAINER_MODE_TRUE
2008 ## ------------------ ##
2009 ## C compiler checks. ##
2010 ## ------------------ ##
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 if test -n "$ac_tool_prefix"; then
2017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 if test -n "$CC"; then
2045 echo "$as_me:$LINENO: result: $CC" >&5
2046 echo "${ECHO_T}$CC" >&6
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2053 if test -z "$ac_cv_prog_CC"; then
2055 # Extract the first word of "gcc", so it can be a program name with args.
2056 set dummy gcc; ac_word=$2
2057 echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$ac_ct_CC"; then
2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072 ac_cv_prog_ac_ct_CC="gcc"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082 if test -n "$ac_ct_CC"; then
2083 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084 echo "${ECHO_T}$ac_ct_CC" >&6
2086 echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2095 if test -z "$CC"; then
2096 if test -n "$ac_tool_prefix"; then
2097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2098 set dummy ${ac_tool_prefix}cc; ac_word=$2
2099 echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2101 if test "${ac_cv_prog_CC+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 if test -n "$CC"; then
2105 ac_cv_prog_CC="$CC" # Let the user override the test.
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 test -z "$as_dir" && as_dir=.
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114 ac_cv_prog_CC="${ac_tool_prefix}cc"
2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 if test -n "$CC"; then
2125 echo "$as_me:$LINENO: result: $CC" >&5
2126 echo "${ECHO_T}$CC" >&6
2128 echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6
2133 if test -z "$ac_cv_prog_CC"; then
2135 # Extract the first word of "cc", so it can be a program name with args.
2136 set dummy cc; ac_word=$2
2137 echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 if test -n "$ac_ct_CC"; then
2143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2152 ac_cv_prog_ac_ct_CC="cc"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2162 if test -n "$ac_ct_CC"; then
2163 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2164 echo "${ECHO_T}$ac_ct_CC" >&6
2166 echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6
2176 if test -z "$CC"; then
2177 # Extract the first word of "cc", so it can be a program name with args.
2178 set dummy cc; ac_word=$2
2179 echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2181 if test "${ac_cv_prog_CC+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 if test -n "$CC"; then
2185 ac_cv_prog_CC="$CC" # Let the user override the test.
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2196 ac_prog_rejected=yes
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 if test $ac_prog_rejected = yes; then
2207 # We found a bogon in the path, so make sure we never use it.
2208 set dummy $ac_cv_prog_CC
2210 if test $# != 0; then
2211 # We chose a different compiler from the bogus one.
2212 # However, it has the same basename, so the bogon will be chosen
2213 # first if we set CC to just the basename; use the full file name.
2215 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2221 if test -n "$CC"; then
2222 echo "$as_me:$LINENO: result: $CC" >&5
2223 echo "${ECHO_T}$CC" >&6
2225 echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2230 if test -z "$CC"; then
2231 if test -n "$ac_tool_prefix"; then
2234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2236 echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 if test -n "$CC"; then
2262 echo "$as_me:$LINENO: result: $CC" >&5
2263 echo "${ECHO_T}$CC" >&6
2265 echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6
2269 test -n "$CC" && break
2272 if test -z "$CC"; then
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 if test -n "$ac_ct_CC"; then
2284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293 ac_cv_prog_ac_ct_CC="$ac_prog"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303 if test -n "$ac_ct_CC"; then
2304 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305 echo "${ECHO_T}$ac_ct_CC" >&6
2307 echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6
2311 test -n "$ac_ct_CC" && break
2320 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: no acceptable C compiler found in \$PATH
2323 See \`config.log' for more details." >&2;}
2324 { (exit 1); exit 1; }; }
2326 # Provide some information about the compiler.
2327 echo "$as_me:$LINENO:" \
2328 "checking for C compiler version" >&5
2329 ac_compiler=`set X $ac_compile; echo $2`
2330 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2331 (eval $ac_compiler --version </dev/null >&5) 2>&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }
2335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2336 (eval $ac_compiler -v </dev/null >&5) 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }
2340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2341 (eval $ac_compiler -V </dev/null >&5) 2>&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }
2346 cat >conftest.$ac_ext <<_ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h. */
2361 ac_clean_files_save=$ac_clean_files
2362 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2363 # Try to create an executable without -o first, disregard a.out.
2364 # It will help us diagnose broken compilers, and finding out an intuition
2366 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2367 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2368 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2369 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2370 (eval $ac_link_default) 2>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; then
2374 # Find the output, starting from the most likely. This scheme is
2375 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2378 # Be careful to initialize this variable, since it used to be cached.
2379 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2381 # b.out is created by i960 compilers.
2382 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2384 test -f "$ac_file" || continue
2386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2389 # This is the source file.
2392 # We found the default executable, but exeext='' is most
2396 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2397 # FIXME: I believe we export ac_cv_exeext for Libtool,
2398 # but it would be cool to find out if it's true. Does anybody
2399 # maintain Libtool? --akim.
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2410 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: C compiler cannot create executables
2413 See \`config.log' for more details." >&2;}
2414 { (exit 77); exit 77; }; }
2417 ac_exeext=$ac_cv_exeext
2418 echo "$as_me:$LINENO: result: $ac_file" >&5
2419 echo "${ECHO_T}$ac_file" >&6
2421 # Check the compiler produces executables we can run. If not, either
2422 # the compiler is broken, or we cross compile.
2423 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2424 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2425 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2426 # If not cross compiling, check that we can run a simple program.
2427 if test "$cross_compiling" != yes; then
2428 if { ac_try='./$ac_file'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2436 if test "$cross_compiling" = maybe; then
2439 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2440 If you meant to cross compile, use \`--host'.
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: cannot run C compiled programs.
2443 If you meant to cross compile, use \`--host'.
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2449 echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6
2452 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2453 ac_clean_files=$ac_clean_files_save
2454 # Check the compiler produces executables we can run. If not, either
2455 # the compiler is broken, or we cross compile.
2456 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2457 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2458 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2459 echo "${ECHO_T}$cross_compiling" >&6
2461 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2462 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2464 (eval $ac_link) 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; then
2468 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2469 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2470 # work properly (i.e., refer to `conftest.exe'), while it won't with
2472 for ac_file in conftest.exe conftest conftest.*; do
2473 test -f "$ac_file" || continue
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2490 rm -f conftest$ac_cv_exeext
2491 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2492 echo "${ECHO_T}$ac_cv_exeext" >&6
2494 rm -f conftest.$ac_ext
2495 EXEEXT=$ac_cv_exeext
2497 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2498 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2499 if test "${ac_cv_objext+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 cat >conftest.$ac_ext <<_ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2517 rm -f conftest.o conftest.obj
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; then
2523 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2534 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2535 See \`config.log' for more details." >&5
2536 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2537 See \`config.log' for more details." >&2;}
2538 { (exit 1); exit 1; }; }
2541 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2543 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2544 echo "${ECHO_T}$ac_cv_objext" >&6
2545 OBJEXT=$ac_cv_objext
2547 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2548 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2549 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2552 cat >conftest.$ac_ext <<_ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2574 grep -v '^ *+' conftest.er1 >conftest.err
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2602 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2604 GCC=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CFLAGS=${CFLAGS+set}
2606 ac_save_CFLAGS=$CFLAGS
2608 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2609 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cc_g+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 cat >conftest.$ac_ext <<_ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2632 grep -v '^ *+' conftest.er1 >conftest.err
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2660 if test "$ac_test_CFLAGS" = set; then
2661 CFLAGS=$ac_save_CFLAGS
2662 elif test $ac_cv_prog_cc_g = yes; then
2663 if test "$GCC" = yes; then
2669 if test "$GCC" = yes; then
2675 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2676 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2677 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 ac_cv_prog_cc_stdc=no
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2690 #include <sys/types.h>
2691 #include <sys/stat.h>
2692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2693 struct buf { int x; };
2694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2695 static char *e (p, i)
2701 static char *f (char * (*g) (char **, int), char **p, ...)
2706 s = g (p, va_arg (v,int));
2711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2712 function prototypes and stuff, but not '\xHH' hex character constants.
2713 These don't provoke an error unfortunately, instead are silently treated
2714 as 'x'. The following induces an error, until -std1 is added to get
2715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2716 array size at least. It's necessary to write '\x00'==0 to get something
2717 that's true only with -std1. */
2718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2720 int test (int i, double x);
2721 struct s1 {int (*f) (int a);};
2722 struct s2 {int (*f) (double a);};
2723 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2729 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2734 # Don't try gcc -ansi; that turns off useful extensions and
2735 # breaks some systems' header files.
2736 # AIX -qlanglvl=ansi
2737 # Ultrix and OSF/1 -std1
2738 # HP-UX 10.20 and later -Ae
2739 # HP-UX older versions -Aa -D_HPUX_SOURCE
2740 # SVR4 -Xc -D__EXTENSIONS__
2741 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2743 CC="$ac_save_CC $ac_arg"
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 ac_cv_prog_cc_stdc=$ac_arg
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2772 rm -f conftest.err conftest.$ac_objext
2774 rm -f conftest.$ac_ext conftest.$ac_objext
2779 case "x$ac_cv_prog_cc_stdc" in
2781 echo "$as_me:$LINENO: result: none needed" >&5
2782 echo "${ECHO_T}none needed" >&6 ;;
2784 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2785 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2786 CC="$CC $ac_cv_prog_cc_stdc" ;;
2789 # Some people use a C++ compiler to compile C. Since we use `exit',
2790 # in C++ we need to declare it. In case someone uses the same compiler
2791 # for both compiling C and C++ we need to have the C++ compiler decide
2792 # the declaration of exit, since it's the most demanding environment.
2793 cat >conftest.$ac_ext <<_ACEOF
2798 rm -f conftest.$ac_objext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2800 (eval $ac_compile) 2>conftest.er1
2802 grep -v '^ *+' conftest.er1 >conftest.err
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 for ac_declaration in \
2821 'extern "C" void std::exit (int) throw (); using std::exit;' \
2822 'extern "C" void std::exit (int); using std::exit;' \
2823 'extern "C" void exit (int) throw ();' \
2824 'extern "C" void exit (int);' \
2827 cat >conftest.$ac_ext <<_ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2872 cat >conftest.$ac_ext <<_ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>conftest.er1
2891 grep -v '^ *+' conftest.er1 >conftest.err
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
2896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917 if test -n "$ac_declaration"; then
2918 echo '#ifdef __cplusplus' >>confdefs.h
2919 echo $ac_declaration >>confdefs.h
2920 echo '#endif' >>confdefs.h
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 DEPDIR="${am__leading_dot}deps"
2936 ac_config_commands="$ac_config_commands depfiles"
2939 am_make=${MAKE-make}
2940 cat > confinc << 'END'
2945 # If we don't find an include directive, just comment out the code.
2946 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2947 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2951 # First try GNU make style include.
2952 echo "include confinc" > confmf
2953 # We grep out `Entering directory' and `Leaving directory'
2954 # messages which can occur if `w' ends up in MAKEFLAGS.
2955 # In particular we don't look at `^make:' because GNU make might
2956 # be invoked under some other name (usually "gmake"), in which
2957 # case it prints its new name instead of `make'.
2958 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2963 # Now try BSD make style include.
2964 if test "$am__include" = "#"; then
2965 echo '.include "confinc"' > confmf
2966 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2967 am__include=.include
2974 echo "$as_me:$LINENO: result: $_am_result" >&5
2975 echo "${ECHO_T}$_am_result" >&6
2976 rm -f confinc confmf
2978 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2979 if test "${enable_dependency_tracking+set}" = set; then
2980 enableval="$enable_dependency_tracking"
2983 if test "x$enable_dependency_tracking" != xno; then
2984 am_depcomp="$ac_aux_dir/depcomp"
2989 if test "x$enable_dependency_tracking" != xno; then
3000 depcc="$CC" am_compiler_list=
3002 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3003 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3004 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3008 # We make a subdir and do the tests there. Otherwise we can end up
3009 # making bogus files that we don't know about and never remove. For
3010 # instance it was reported that on HP-UX the gcc test will end up
3011 # making a dummy file named `D' -- because `-MD' means `put the output
3014 # Copy depcomp to subdir because otherwise we won't find it if we're
3015 # using a relative directory.
3016 cp "$am_depcomp" conftest.dir
3018 # We will build objects and dependencies in a subdirectory because
3019 # it helps to detect inapplicable dependency modes. For instance
3020 # both Tru64's cc and ICC support -MD to output dependencies as a
3021 # side effect of compilation, but ICC will put the dependencies in
3022 # the current directory while Tru64 will put them in the object
3026 am_cv_CC_dependencies_compiler_type=none
3027 if test "$am_compiler_list" = ""; then
3028 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3030 for depmode in $am_compiler_list; do
3031 # Setup a source with many dependencies, because some compilers
3032 # like to wrap large dependency lists on column 80 (with \), and
3033 # we should not choose a depcomp mode which is confused by this.
3035 # We need to recreate these files for each test, as the compiler may
3036 # overwrite some of them when testing with obscure command lines.
3037 # This happens at least with the AIX C compiler.
3039 for i in 1 2 3 4 5 6; do
3040 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3041 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3042 # Solaris 8's {/usr,}/bin/sh.
3043 touch sub/conftst$i.h
3045 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3049 # after this tag, mechanisms are not by side-effect, so they'll
3050 # only be used when explicitly requested
3051 if test "x$enable_dependency_tracking" = xyes; then
3059 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3060 # mode. It turns out that the SunPro C++ compiler does not properly
3061 # handle `-M -o', and we need to detect this.
3062 if depmode=$depmode \
3063 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3064 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3065 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3066 >/dev/null 2>conftest.err &&
3067 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3068 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3069 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3070 # icc doesn't choke on unknown options, it will just issue warnings
3071 # or remarks (even with -Werror). So we grep stderr for any message
3072 # that says an option was ignored or not supported.
3073 # When given -MP, icc 7.0 and 7.1 complain thusly:
3074 # icc: Command line warning: ignoring option '-M'; no argument required
3075 # The diagnosis changed in icc 8.0:
3076 # icc: Command line remark: option '-MP' not supported
3077 if (grep 'ignoring option' conftest.err ||
3078 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3079 am_cv_CC_dependencies_compiler_type=$depmode
3088 am_cv_CC_dependencies_compiler_type=none
3092 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3093 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3094 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3099 test "x$enable_dependency_tracking" != xno \
3100 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3102 am__fastdepCC_FALSE='#'
3104 am__fastdepCC_TRUE='#'
3105 am__fastdepCC_FALSE=
3110 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3111 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3112 if test "${ac_cv_c_const+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3125 /* FIXME: Include the comments suggested by Paul. */
3127 /* Ultrix mips cc rejects this. */
3128 typedef int charset[2];
3130 /* SunOS 4.1.1 cc rejects this. */
3131 char const *const *ccp;
3133 /* NEC SVR4.0.2 mips cc rejects this. */
3134 struct point {int x, y;};
3135 static struct point const zero = {0,0};
3136 /* AIX XL C 1.02.0.0 rejects this.
3137 It does not let you subtract one const X* pointer from another in
3138 an arm of an if-expression whose if-part is not a constant
3140 const char *g = "string";
3141 ccp = &g + (g ? g-g : 0);
3142 /* HPUX 7.0 cc rejects these. */
3145 ccp = (char const *const *) p;
3146 { /* SCO 3.2v4 cc rejects this. */
3148 char const *s = 0 ? (char *) 0 : (char const *) 0;
3152 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3154 const int *foo = &x[0];
3157 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3158 typedef const int *iptr;
3162 { /* AIX XL C 1.02.0.0 rejects this saying
3163 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3164 struct s { int j; const int *ap[3]; };
3165 struct s *b; b->j = 5;
3167 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3176 rm -f conftest.$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178 (eval $ac_compile) 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3206 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3207 echo "${ECHO_T}$ac_cv_c_const" >&6
3208 if test $ac_cv_c_const = no; then
3210 cat >>confdefs.h <<\_ACEOF
3216 echo "$as_me:$LINENO: checking for inline" >&5
3217 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3218 if test "${ac_cv_c_inline+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 for ac_kw in inline __inline__ __inline; do
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3231 static $ac_kw foo_t static_foo () {return 0; }
3232 $ac_kw foo_t foo () {return 0; }
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" || test ! -s conftest.err'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; } &&
3251 { ac_try='test -s conftest.$ac_objext'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3257 ac_cv_c_inline=$ac_kw; break
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3267 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3268 echo "${ECHO_T}$ac_cv_c_inline" >&6
3271 case $ac_cv_c_inline in
3274 case $ac_cv_c_inline in
3276 *) ac_val=$ac_cv_c_inline;;
3278 cat >>confdefs.h <<_ACEOF
3280 #define inline $ac_val
3288 ## ----------------------- ##
3289 ## Libtool initialisation. ##
3290 ## ----------------------- ##
3293 # Check whether --enable-shared or --disable-shared was given.
3294 if test "${enable_shared+set}" = set; then
3295 enableval="$enable_shared"
3296 p=${PACKAGE-default}
3298 yes) enable_shared=yes ;;
3299 no) enable_shared=no ;;
3302 # Look at the argument we got. We use all the common list separators.
3303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3304 for pkg in $enableval; do
3306 if test "X$pkg" = "X$p"; then
3317 # Check whether --enable-static or --disable-static was given.
3318 if test "${enable_static+set}" = set; then
3319 enableval="$enable_static"
3320 p=${PACKAGE-default}
3322 yes) enable_static=yes ;;
3323 no) enable_static=no ;;
3326 # Look at the argument we got. We use all the common list separators.
3327 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3328 for pkg in $enableval; do
3330 if test "X$pkg" = "X$p"; then
3341 # Check whether --enable-fast-install or --disable-fast-install was given.
3342 if test "${enable_fast_install+set}" = set; then
3343 enableval="$enable_fast_install"
3344 p=${PACKAGE-default}
3346 yes) enable_fast_install=yes ;;
3347 no) enable_fast_install=no ;;
3349 enable_fast_install=no
3350 # Look at the argument we got. We use all the common list separators.
3351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3352 for pkg in $enableval; do
3354 if test "X$pkg" = "X$p"; then
3355 enable_fast_install=yes
3362 enable_fast_install=yes
3365 # Make sure we can run config.sub.
3366 $ac_config_sub sun4 >/dev/null 2>&1 ||
3367 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3368 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3369 { (exit 1); exit 1; }; }
3371 echo "$as_me:$LINENO: checking build system type" >&5
3372 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3373 if test "${ac_cv_build+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 ac_cv_build_alias=$build_alias
3377 test -z "$ac_cv_build_alias" &&
3378 ac_cv_build_alias=`$ac_config_guess`
3379 test -z "$ac_cv_build_alias" &&
3380 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3381 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3382 { (exit 1); exit 1; }; }
3383 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3384 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3385 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3386 { (exit 1); exit 1; }; }
3389 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3390 echo "${ECHO_T}$ac_cv_build" >&6
3392 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3393 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3394 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3397 echo "$as_me:$LINENO: checking host system type" >&5
3398 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3399 if test "${ac_cv_host+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 ac_cv_host_alias=$host_alias
3403 test -z "$ac_cv_host_alias" &&
3404 ac_cv_host_alias=$ac_cv_build_alias
3405 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3407 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3408 { (exit 1); exit 1; }; }
3411 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3412 echo "${ECHO_T}$ac_cv_host" >&6
3414 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3415 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3416 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3419 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3420 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3421 if test "${lt_cv_path_SED+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 # Loop through the user's path and test for sed and gsed.
3425 # Then use that list of sed's as ones to test for truncation.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir=.
3431 for lt_ac_prog in sed gsed; do
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3434 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3441 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3442 # along with /bin/sed that truncates output.
3443 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3444 test ! -f $lt_ac_sed && break
3445 cat /dev/null > conftest.in
3447 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3448 # Check for GNU sed and select it if it is found.
3449 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3450 lt_cv_path_SED=$lt_ac_sed
3454 cat conftest.in conftest.in >conftest.tmp
3455 mv conftest.tmp conftest.in
3456 cp conftest.in conftest.nl
3458 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3459 cmp -s conftest.out conftest.nl || break
3460 # 10000 chars as input seems more than enough
3461 test $lt_ac_count -gt 10 && break
3462 lt_ac_count=`expr $lt_ac_count + 1`
3463 if test $lt_ac_count -gt $lt_ac_max; then
3464 lt_ac_max=$lt_ac_count
3465 lt_cv_path_SED=$lt_ac_sed
3473 echo "$as_me:$LINENO: result: $SED" >&5
3474 echo "${ECHO_T}$SED" >&6
3476 echo "$as_me:$LINENO: checking for egrep" >&5
3477 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3478 if test "${ac_cv_prog_egrep+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3482 then ac_cv_prog_egrep='grep -E'
3483 else ac_cv_prog_egrep='egrep'
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3487 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3488 EGREP=$ac_cv_prog_egrep
3492 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3493 if test "${with_gnu_ld+set}" = set; then
3494 withval="$with_gnu_ld"
3495 test "$withval" = no || with_gnu_ld=yes
3500 if test "$GCC" = yes; then
3501 # Check if gcc -print-prog-name=ld gives a path.
3502 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3503 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3506 # gcc leaves a trailing carriage return which upsets mingw
3507 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3509 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3512 # Accept absolute paths.
3514 re_direlt='/[^/][^/]*/\.\./'
3515 # Canonicalize the path of ld
3516 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3517 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3518 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3520 test -z "$LD" && LD="$ac_prog"
3523 # If it fails, then pretend we aren't using GCC.
3527 # If it is relative, then search for the first ld in PATH.
3531 elif test "$with_gnu_ld" = yes; then
3532 echo "$as_me:$LINENO: checking for GNU ld" >&5
3533 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3535 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3536 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3538 if test "${lt_cv_path_LD+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 if test -z "$LD"; then
3542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3543 for ac_dir in $PATH; do
3545 test -z "$ac_dir" && ac_dir=.
3546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3547 lt_cv_path_LD="$ac_dir/$ac_prog"
3548 # Check to see if the program is GNU ld. I'd rather use --version,
3549 # but apparently some GNU ld's only accept -v.
3550 # Break only if it was the GNU/non-GNU ld that we prefer.
3551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3552 *GNU* | *'with BFD'*)
3553 test "$with_gnu_ld" != no && break
3556 test "$with_gnu_ld" != yes && break
3563 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3568 if test -n "$LD"; then
3569 echo "$as_me:$LINENO: result: $LD" >&5
3570 echo "${ECHO_T}$LD" >&6
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3575 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3576 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3577 { (exit 1); exit 1; }; }
3578 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3580 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3584 case `"$LD" -v 2>&1 </dev/null` in
3585 *GNU* | *'with BFD'*)
3586 lt_cv_prog_gnu_ld=yes
3589 lt_cv_prog_gnu_ld=no
3593 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3594 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3595 with_gnu_ld=$lt_cv_prog_gnu_ld
3598 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3599 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3600 if test "${lt_cv_ld_reload_flag+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 lt_cv_ld_reload_flag='-r'
3605 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3606 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3607 reload_flag=$lt_cv_ld_reload_flag
3608 case $reload_flag in
3610 *) reload_flag=" $reload_flag" ;;
3612 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3614 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3615 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3616 if test "${lt_cv_path_NM+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if test -n "$NM"; then
3620 # Let the user override the test.
3623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3624 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3626 test -z "$ac_dir" && ac_dir=.
3627 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3628 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3629 # Check to see if the nm accepts a BSD-compat flag.
3630 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3631 # nm: unknown option "B" ignored
3632 # Tru64's nm complains that /dev/null is an invalid object file
3633 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3634 */dev/null* | *'Invalid file or object type'*)
3635 lt_cv_path_NM="$tmp_nm -B"
3639 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3641 lt_cv_path_NM="$tmp_nm -p"
3645 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3646 continue # so that we can try to find one that supports BSD flags
3653 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3656 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3657 echo "${ECHO_T}$lt_cv_path_NM" >&6
3660 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3661 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3663 if test "$LN_S" = "ln -s"; then
3664 echo "$as_me:$LINENO: result: yes" >&5
3665 echo "${ECHO_T}yes" >&6
3667 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3668 echo "${ECHO_T}no, using $LN_S" >&6
3671 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3672 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3673 if test "${lt_cv_deplibs_check_method+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 lt_cv_file_magic_cmd='$MAGIC_CMD'
3677 lt_cv_file_magic_test_file=
3678 lt_cv_deplibs_check_method='unknown'
3679 # Need to set the preceding variable on all platforms that support
3680 # interlibrary dependencies.
3681 # 'none' -- dependencies not supported.
3682 # `unknown' -- same as none, but documents that we really don't know.
3683 # 'pass_all' -- all dependencies passed with no checks.
3684 # 'test_compile' -- check by making test program.
3685 # 'file_magic [[regex]]' -- check by looking for files in library path
3686 # which responds to the $file_magic_cmd with a given extended regex.
3687 # If you have `file' or equivalent on your system and you're not sure
3688 # whether `pass_all' will *always* work, you probably want this one.
3692 lt_cv_deplibs_check_method=pass_all
3696 lt_cv_deplibs_check_method=pass_all
3700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3701 lt_cv_file_magic_cmd='/usr/bin/file -L'
3702 lt_cv_file_magic_test_file=/shlib/libc.so
3705 cygwin* | mingw* | pw32*)
3706 # win32_libid is a shell function defined in ltmain.sh
3707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3708 lt_cv_file_magic_cmd='win32_libid'
3711 darwin* | rhapsody*)
3712 # this will be overwritten by pass_all, but leave it in just in case
3713 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3714 lt_cv_file_magic_cmd='/usr/bin/file -L'
3716 rhapsody* | darwin1.[012])
3717 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3720 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3723 lt_cv_deplibs_check_method=pass_all
3727 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3730 # Not sure whether the presence of OpenBSD here was a mistake.
3731 # Let's accept both of them until this is cleared up.
3732 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3733 lt_cv_file_magic_cmd=/usr/bin/file
3734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3738 lt_cv_deplibs_check_method=pass_all
3743 lt_cv_deplibs_check_method=pass_all
3746 hpux10.20* | hpux11*)
3747 lt_cv_file_magic_cmd=/usr/bin/file
3750 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3751 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3754 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]'
3755 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3759 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3764 irix5* | irix6* | nonstopux*)
3766 irix5* | nonstopux*)
3767 # this will be overridden with pass_all, but let us keep it just in case
3768 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3772 *-32|*"-32 ") libmagic=32-bit;;
3773 *-n32|*"-n32 ") libmagic=N32;;
3774 *-64|*"-64 ") libmagic=64-bit;;
3775 *) libmagic=never-match;;
3777 # this will be overridden with pass_all, but let us keep it just in case
3778 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3781 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3782 lt_cv_deplibs_check_method=pass_all
3785 # This must be Linux ELF.
3788 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3789 lt_cv_deplibs_check_method=pass_all ;;
3791 # glibc up to 2.1.1 does not perform some relocations on ARM
3792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3794 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3798 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3807 lt_cv_file_magic_cmd=/usr/bin/file
3808 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3812 lt_cv_deplibs_check_method=unknown
3816 lt_cv_file_magic_cmd=/usr/bin/file
3817 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3818 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3821 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3825 osf3* | osf4* | osf5*)
3826 # this will be overridden with pass_all, but let us keep it just in case
3827 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3828 lt_cv_file_magic_test_file=/shlib/libc.so
3829 lt_cv_deplibs_check_method=pass_all
3833 lt_cv_deplibs_check_method=pass_all
3837 lt_cv_deplibs_check_method=pass_all
3838 lt_cv_file_magic_test_file=/lib/libc.so
3841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3842 case $host_vendor in
3844 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]'
3845 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3848 lt_cv_deplibs_check_method=pass_all
3851 lt_cv_file_magic_cmd='/bin/file'
3852 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3855 lt_cv_file_magic_cmd='/bin/file'
3856 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3857 lt_cv_file_magic_test_file=/lib/libc.so
3860 lt_cv_deplibs_check_method=pass_all
3865 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3866 lt_cv_deplibs_check_method=pass_all
3871 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3872 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3873 file_magic_cmd=$lt_cv_file_magic_cmd
3874 deplibs_check_method=$lt_cv_deplibs_check_method
3875 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3880 # If no C compiler was specified, use CC.
3883 # Allow CC to be a program name with arguments.
3886 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3887 if test "${enable_libtool_lock+set}" = set; then
3888 enableval="$enable_libtool_lock"
3891 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3893 # Some flags need to be propagated to the compiler or linker for good
3897 # Find out which ABI we are using.
3898 echo 'int i;' > conftest.$ac_ext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900 (eval $ac_compile) 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; then
3904 case `/usr/bin/file conftest.$ac_objext` in
3916 # Find out which ABI we are using.
3917 echo '#line 3917 "configure"' > conftest.$ac_ext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; then
3923 if test "$lt_cv_prog_gnu_ld" = yes; then
3924 case `/usr/bin/file conftest.$ac_objext` in
3926 LD="${LD-ld} -melf32bsmip"
3929 LD="${LD-ld} -melf32bmipn32"
3932 LD="${LD-ld} -melf64bmip"
3936 case `/usr/bin/file conftest.$ac_objext` in
3952 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3953 # Find out which ABI we are using.
3954 echo 'int i;' > conftest.$ac_ext
3955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956 (eval $ac_compile) 2>&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; then
3960 case "`/usr/bin/file conftest.o`" in
3964 LD="${LD-ld} -m elf_i386"
3967 LD="${LD-ld} -m elf32ppclinux"
3970 LD="${LD-ld} -m elf_s390"
3973 LD="${LD-ld} -m elf32_sparc"
3980 LD="${LD-ld} -m elf_x86_64"
3982 ppc*-*linux*|powerpc*-*linux*)
3983 LD="${LD-ld} -m elf64ppc"
3986 LD="${LD-ld} -m elf64_s390"
3989 LD="${LD-ld} -m elf64_sparc"
3999 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4000 SAVE_CFLAGS="$CFLAGS"
4001 CFLAGS="$CFLAGS -belf"
4002 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4003 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4004 if test "${lt_cv_cc_needs_belf+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013 cat >conftest.$ac_ext <<_ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>conftest.er1
4032 grep -v '^ *+' conftest.er1 >conftest.err
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest$ac_exeext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 lt_cv_cc_needs_belf=yes
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 lt_cv_cc_needs_belf=no
4056 rm -f conftest.err conftest.$ac_objext \
4057 conftest$ac_exeext conftest.$ac_ext
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4066 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4067 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4068 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4069 CFLAGS="$SAVE_CFLAGS"
4072 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4073 if test -n "$ac_tool_prefix"; then
4074 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4075 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4076 echo "$as_me:$LINENO: checking for $ac_word" >&5
4077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4078 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 if test -n "$DLLTOOL"; then
4082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 DLLTOOL=$ac_cv_prog_DLLTOOL
4101 if test -n "$DLLTOOL"; then
4102 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4103 echo "${ECHO_T}$DLLTOOL" >&6
4105 echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4110 if test -z "$ac_cv_prog_DLLTOOL"; then
4111 ac_ct_DLLTOOL=$DLLTOOL
4112 # Extract the first word of "dlltool", so it can be a program name with args.
4113 set dummy dlltool; ac_word=$2
4114 echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4116 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 if test -n "$ac_ct_DLLTOOL"; then
4120 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4139 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4140 if test -n "$ac_ct_DLLTOOL"; then
4141 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4142 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4148 DLLTOOL=$ac_ct_DLLTOOL
4150 DLLTOOL="$ac_cv_prog_DLLTOOL"
4153 if test -n "$ac_tool_prefix"; then
4154 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4155 set dummy ${ac_tool_prefix}as; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_prog_AS+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test -n "$AS"; then
4162 ac_cv_prog_AS="$AS" # Let the user override the test.
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171 ac_cv_prog_AS="${ac_tool_prefix}as"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 if test -n "$AS"; then
4182 echo "$as_me:$LINENO: result: $AS" >&5
4183 echo "${ECHO_T}$AS" >&6
4185 echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4190 if test -z "$ac_cv_prog_AS"; then
4192 # Extract the first word of "as", so it can be a program name with args.
4193 set dummy as; ac_word=$2
4194 echo "$as_me:$LINENO: checking for $ac_word" >&5
4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4196 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 if test -n "$ac_ct_AS"; then
4200 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4209 ac_cv_prog_ac_ct_AS="as"
4210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4219 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4220 if test -n "$ac_ct_AS"; then
4221 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4222 echo "${ECHO_T}$ac_ct_AS" >&6
4224 echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4236 echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if test -n "$OBJDUMP"; then
4242 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 OBJDUMP=$ac_cv_prog_OBJDUMP
4261 if test -n "$OBJDUMP"; then
4262 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4263 echo "${ECHO_T}$OBJDUMP" >&6
4265 echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4270 if test -z "$ac_cv_prog_OBJDUMP"; then
4271 ac_ct_OBJDUMP=$OBJDUMP
4272 # Extract the first word of "objdump", so it can be a program name with args.
4273 set dummy objdump; ac_word=$2
4274 echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 if test -n "$ac_ct_OBJDUMP"; then
4280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4299 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4300 if test -n "$ac_ct_OBJDUMP"; then
4301 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4302 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4304 echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4308 OBJDUMP=$ac_ct_OBJDUMP
4310 OBJDUMP="$ac_cv_prog_OBJDUMP"
4317 need_locks="$enable_libtool_lock"
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4326 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4327 # On Suns, sometimes $CPP names a directory.
4328 if test -n "$CPP" && test -d "$CPP"; then
4331 if test -z "$CPP"; then
4332 if test "${ac_cv_prog_CPP+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 # Double quotes because CPP needs to be expanded
4336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4339 for ac_c_preproc_warn_flag in '' yes
4341 # Use a header file that comes with gcc, so configuring glibc
4342 # with a fresh cross-compiler works.
4343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4344 # <limits.h> exists even on freestanding compilers.
4345 # On the NeXT, cc -E runs the code through the compiler's parser,
4346 # not just through cpp. "Syntax error" is here to catch this case.
4347 cat >conftest.$ac_ext <<_ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4354 # include <limits.h>
4356 # include <assert.h>
4360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4363 grep -v '^ *+' conftest.er1 >conftest.err
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } >/dev/null; then
4368 if test -s conftest.err; then
4369 ac_cpp_err=$ac_c_preproc_warn_flag
4370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4377 if test -z "$ac_cpp_err"; then
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4383 # Broken: fails on valid input.
4386 rm -f conftest.err conftest.$ac_ext
4388 # OK, works on sane cases. Now check whether non-existent headers
4389 # can be detected and how.
4390 cat >conftest.$ac_ext <<_ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4396 #include <ac_nonexistent.h>
4398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } >/dev/null; then
4406 if test -s conftest.err; then
4407 ac_cpp_err=$ac_c_preproc_warn_flag
4408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4415 if test -z "$ac_cpp_err"; then
4416 # Broken: success on invalid input.
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 # Passes both tests.
4426 rm -f conftest.err conftest.$ac_ext
4429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4430 rm -f conftest.err conftest.$ac_ext
4431 if $ac_preproc_ok; then
4443 echo "$as_me:$LINENO: result: $CPP" >&5
4444 echo "${ECHO_T}$CPP" >&6
4446 for ac_c_preproc_warn_flag in '' yes
4448 # Use a header file that comes with gcc, so configuring glibc
4449 # with a fresh cross-compiler works.
4450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4451 # <limits.h> exists even on freestanding compilers.
4452 # On the NeXT, cc -E runs the code through the compiler's parser,
4453 # not just through cpp. "Syntax error" is here to catch this case.
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4461 # include <limits.h>
4463 # include <assert.h>
4467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4470 grep -v '^ *+' conftest.er1 >conftest.err
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } >/dev/null; then
4475 if test -s conftest.err; then
4476 ac_cpp_err=$ac_c_preproc_warn_flag
4477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4484 if test -z "$ac_cpp_err"; then
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 # Broken: fails on valid input.
4493 rm -f conftest.err conftest.$ac_ext
4495 # OK, works on sane cases. Now check whether non-existent headers
4496 # can be detected and how.
4497 cat >conftest.$ac_ext <<_ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <ac_nonexistent.h>
4505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4508 grep -v '^ *+' conftest.er1 >conftest.err
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } >/dev/null; then
4513 if test -s conftest.err; then
4514 ac_cpp_err=$ac_c_preproc_warn_flag
4515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4522 if test -z "$ac_cpp_err"; then
4523 # Broken: success on invalid input.
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4529 # Passes both tests.
4533 rm -f conftest.err conftest.$ac_ext
4536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4537 rm -f conftest.err conftest.$ac_ext
4538 if $ac_preproc_ok; then
4541 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4542 See \`config.log' for more details." >&5
4543 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4544 See \`config.log' for more details." >&2;}
4545 { (exit 1); exit 1; }; }
4549 ac_cpp='$CPP $CPPFLAGS'
4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4555 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4556 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4557 if test "${ac_cv_header_stdc+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4579 rm -f conftest.$ac_objext
4580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4581 (eval $ac_compile) 2>conftest.er1
4583 grep -v '^ *+' conftest.er1 >conftest.err
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 ac_cv_header_stdc=yes
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 ac_cv_header_stdc=no
4607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609 if test $ac_cv_header_stdc = yes; then
4610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4611 cat >conftest.$ac_ext <<_ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4621 $EGREP "memchr" >/dev/null 2>&1; then
4624 ac_cv_header_stdc=no
4630 if test $ac_cv_header_stdc = yes; then
4631 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4642 $EGREP "free" >/dev/null 2>&1; then
4645 ac_cv_header_stdc=no
4651 if test $ac_cv_header_stdc = yes; then
4652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4653 if test "$cross_compiling" = yes; then
4656 cat >conftest.$ac_ext <<_ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4663 #if ((' ' & 0x0FF) == 0x020)
4664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4667 # define ISLOWER(c) \
4668 (('a' <= (c) && (c) <= 'i') \
4669 || ('j' <= (c) && (c) <= 'r') \
4670 || ('s' <= (c) && (c) <= 'z'))
4671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4679 for (i = 0; i < 256; i++)
4680 if (XOR (islower (i), ISLOWER (i))
4681 || toupper (i) != TOUPPER (i))
4686 rm -f conftest$ac_exeext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4688 (eval $ac_link) 2>&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4699 echo "$as_me: program exited with status $ac_status" >&5
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4704 ac_cv_header_stdc=no
4706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4710 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4711 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4712 if test $ac_cv_header_stdc = yes; then
4714 cat >>confdefs.h <<\_ACEOF
4715 #define STDC_HEADERS 1
4720 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4730 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4731 inttypes.h stdint.h unistd.h
4733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4734 echo "$as_me:$LINENO: checking for $ac_header" >&5
4735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 cat >conftest.$ac_ext <<_ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 $ac_includes_default
4747 #include <$ac_header>
4749 rm -f conftest.$ac_objext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>conftest.er1
4753 grep -v '^ *+' conftest.er1 >conftest.err
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } &&
4758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; } &&
4764 { ac_try='test -s conftest.$ac_objext'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 eval "$as_ac_Header=yes"
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 eval "$as_ac_Header=no"
4777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4782 cat >>confdefs.h <<_ACEOF
4783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4792 for ac_header in dlfcn.h
4794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4796 echo "$as_me:$LINENO: checking for $ac_header" >&5
4797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4804 # Is the header compilable?
4805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4807 cat >conftest.$ac_ext <<_ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 $ac_includes_default
4814 #include <$ac_header>
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_header_compiler=yes
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4842 ac_header_compiler=no
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4846 echo "${ECHO_T}$ac_header_compiler" >&6
4848 # Is the header present?
4849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4851 cat >conftest.$ac_ext <<_ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 #include <$ac_header>
4859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } >/dev/null; then
4867 if test -s conftest.err; then
4868 ac_cpp_err=$ac_c_preproc_warn_flag
4869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4876 if test -z "$ac_cpp_err"; then
4877 ac_header_preproc=yes
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 ac_header_preproc=no
4884 rm -f conftest.err conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4886 echo "${ECHO_T}$ac_header_preproc" >&6
4888 # So? What about this header?
4889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4895 ac_header_preproc=yes
4898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4912 ## ---------------------------------- ##
4913 ## Report this to bug-libtool@gnu.org ##
4914 ## ---------------------------------- ##
4917 sed "s/^/$as_me: WARNING: /" >&2
4920 echo "$as_me:$LINENO: checking for $ac_header" >&5
4921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 eval "$as_ac_Header=\$ac_header_preproc"
4927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4932 cat >>confdefs.h <<_ACEOF
4933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4941 ac_cpp='$CXXCPP $CPPFLAGS'
4942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4945 if test -n "$ac_tool_prefix"; then
4946 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4950 echo "$as_me:$LINENO: checking for $ac_word" >&5
4951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4952 if test "${ac_cv_prog_CXX+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 if test -n "$CXX"; then
4956 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 if test -n "$CXX"; then
4976 echo "$as_me:$LINENO: result: $CXX" >&5
4977 echo "${ECHO_T}$CXX" >&6
4979 echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6
4983 test -n "$CXX" && break
4986 if test -z "$CXX"; then
4988 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4990 # Extract the first word of "$ac_prog", so it can be a program name with args.
4991 set dummy $ac_prog; ac_word=$2
4992 echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 if test -n "$ac_ct_CXX"; then
4998 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_ac_ct_CXX="$ac_prog"
5008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5017 if test -n "$ac_ct_CXX"; then
5018 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5019 echo "${ECHO_T}$ac_ct_CXX" >&6
5021 echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6
5025 test -n "$ac_ct_CXX" && break
5027 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5033 # Provide some information about the compiler.
5034 echo "$as_me:$LINENO:" \
5035 "checking for C++ compiler version" >&5
5036 ac_compiler=`set X $ac_compile; echo $2`
5037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5038 (eval $ac_compiler --version </dev/null >&5) 2>&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }
5042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5043 (eval $ac_compiler -v </dev/null >&5) 2>&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }
5047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5048 (eval $ac_compiler -V </dev/null >&5) 2>&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }
5053 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5054 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5055 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 cat >conftest.$ac_ext <<_ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>conftest.er1
5080 grep -v '^ *+' conftest.er1 >conftest.err
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; } &&
5091 { ac_try='test -s conftest.$ac_objext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5105 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5108 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5109 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5110 GXX=`test $ac_compiler_gnu = yes && echo yes`
5111 ac_test_CXXFLAGS=${CXXFLAGS+set}
5112 ac_save_CXXFLAGS=$CXXFLAGS
5114 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5115 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5116 if test "${ac_cv_prog_cxx_g+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5134 rm -f conftest.$ac_objext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5136 (eval $ac_compile) 2>conftest.er1
5138 grep -v '^ *+' conftest.er1 >conftest.err
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } &&
5143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; } &&
5149 { ac_try='test -s conftest.$ac_objext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 ac_cv_prog_cxx_g=yes
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5164 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5166 if test "$ac_test_CXXFLAGS" = set; then
5167 CXXFLAGS=$ac_save_CXXFLAGS
5168 elif test $ac_cv_prog_cxx_g = yes; then
5169 if test "$GXX" = yes; then
5175 if test "$GXX" = yes; then
5181 for ac_declaration in \
5183 'extern "C" void std::exit (int) throw (); using std::exit;' \
5184 'extern "C" void std::exit (int); using std::exit;' \
5185 'extern "C" void exit (int) throw ();' \
5186 'extern "C" void exit (int);' \
5189 cat >conftest.$ac_ext <<_ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5205 rm -f conftest.$ac_objext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5207 (eval $ac_compile) 2>conftest.er1
5209 grep -v '^ *+' conftest.er1 >conftest.err
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
5214 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest.$ac_objext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5234 cat >conftest.$ac_ext <<_ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1 >conftest.err
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5279 if test -n "$ac_declaration"; then
5280 echo '#ifdef __cplusplus' >>confdefs.h
5281 echo $ac_declaration >>confdefs.h
5282 echo '#endif' >>confdefs.h
5286 ac_cpp='$CXXCPP $CPPFLAGS'
5287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5291 depcc="$CXX" am_compiler_list=
5293 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5294 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5295 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5299 # We make a subdir and do the tests there. Otherwise we can end up
5300 # making bogus files that we don't know about and never remove. For
5301 # instance it was reported that on HP-UX the gcc test will end up
5302 # making a dummy file named `D' -- because `-MD' means `put the output
5305 # Copy depcomp to subdir because otherwise we won't find it if we're
5306 # using a relative directory.
5307 cp "$am_depcomp" conftest.dir
5309 # We will build objects and dependencies in a subdirectory because
5310 # it helps to detect inapplicable dependency modes. For instance
5311 # both Tru64's cc and ICC support -MD to output dependencies as a
5312 # side effect of compilation, but ICC will put the dependencies in
5313 # the current directory while Tru64 will put them in the object
5317 am_cv_CXX_dependencies_compiler_type=none
5318 if test "$am_compiler_list" = ""; then
5319 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5321 for depmode in $am_compiler_list; do
5322 # Setup a source with many dependencies, because some compilers
5323 # like to wrap large dependency lists on column 80 (with \), and
5324 # we should not choose a depcomp mode which is confused by this.
5326 # We need to recreate these files for each test, as the compiler may
5327 # overwrite some of them when testing with obscure command lines.
5328 # This happens at least with the AIX C compiler.
5330 for i in 1 2 3 4 5 6; do
5331 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5332 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5333 # Solaris 8's {/usr,}/bin/sh.
5334 touch sub/conftst$i.h
5336 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5340 # after this tag, mechanisms are not by side-effect, so they'll
5341 # only be used when explicitly requested
5342 if test "x$enable_dependency_tracking" = xyes; then
5350 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5351 # mode. It turns out that the SunPro C++ compiler does not properly
5352 # handle `-M -o', and we need to detect this.
5353 if depmode=$depmode \
5354 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5355 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5356 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5357 >/dev/null 2>conftest.err &&
5358 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5359 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5360 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5361 # icc doesn't choke on unknown options, it will just issue warnings
5362 # or remarks (even with -Werror). So we grep stderr for any message
5363 # that says an option was ignored or not supported.
5364 # When given -MP, icc 7.0 and 7.1 complain thusly:
5365 # icc: Command line warning: ignoring option '-M'; no argument required
5366 # The diagnosis changed in icc 8.0:
5367 # icc: Command line remark: option '-MP' not supported
5368 if (grep 'ignoring option' conftest.err ||
5369 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5370 am_cv_CXX_dependencies_compiler_type=$depmode
5379 am_cv_CXX_dependencies_compiler_type=none
5383 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5384 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5385 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5390 test "x$enable_dependency_tracking" != xno \
5391 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5392 am__fastdepCXX_TRUE=
5393 am__fastdepCXX_FALSE='#'
5395 am__fastdepCXX_TRUE='#'
5396 am__fastdepCXX_FALSE=
5401 ac_cpp='$CXXCPP $CPPFLAGS'
5402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5405 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5406 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5407 if test -z "$CXXCPP"; then
5408 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 # Double quotes because CXXCPP needs to be expanded
5412 for CXXCPP in "$CXX -E" "/lib/cpp"
5415 for ac_cxx_preproc_warn_flag in '' yes
5417 # Use a header file that comes with gcc, so configuring glibc
5418 # with a fresh cross-compiler works.
5419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5420 # <limits.h> exists even on freestanding compilers.
5421 # On the NeXT, cc -E runs the code through the compiler's parser,
5422 # not just through cpp. "Syntax error" is here to catch this case.
5423 cat >conftest.$ac_ext <<_ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5430 # include <limits.h>
5432 # include <assert.h>
5436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5439 grep -v '^ *+' conftest.er1 >conftest.err
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } >/dev/null; then
5444 if test -s conftest.err; then
5445 ac_cpp_err=$ac_cxx_preproc_warn_flag
5446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5453 if test -z "$ac_cpp_err"; then
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5459 # Broken: fails on valid input.
5462 rm -f conftest.err conftest.$ac_ext
5464 # OK, works on sane cases. Now check whether non-existent headers
5465 # can be detected and how.
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 #include <ac_nonexistent.h>
5474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5477 grep -v '^ *+' conftest.er1 >conftest.err
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } >/dev/null; then
5482 if test -s conftest.err; then
5483 ac_cpp_err=$ac_cxx_preproc_warn_flag
5484 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5491 if test -z "$ac_cpp_err"; then
5492 # Broken: success on invalid input.
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 # Passes both tests.
5502 rm -f conftest.err conftest.$ac_ext
5505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5506 rm -f conftest.err conftest.$ac_ext
5507 if $ac_preproc_ok; then
5512 ac_cv_prog_CXXCPP=$CXXCPP
5515 CXXCPP=$ac_cv_prog_CXXCPP
5517 ac_cv_prog_CXXCPP=$CXXCPP
5519 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5520 echo "${ECHO_T}$CXXCPP" >&6
5522 for ac_cxx_preproc_warn_flag in '' yes
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
5530 cat >conftest.$ac_ext <<_ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5537 # include <limits.h>
5539 # include <assert.h>
5543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5546 grep -v '^ *+' conftest.er1 >conftest.err
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } >/dev/null; then
5551 if test -s conftest.err; then
5552 ac_cpp_err=$ac_cxx_preproc_warn_flag
5553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5560 if test -z "$ac_cpp_err"; then
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 # Broken: fails on valid input.
5569 rm -f conftest.err conftest.$ac_ext
5571 # OK, works on sane cases. Now check whether non-existent headers
5572 # can be detected and how.
5573 cat >conftest.$ac_ext <<_ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 #include <ac_nonexistent.h>
5581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5584 grep -v '^ *+' conftest.er1 >conftest.err
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } >/dev/null; then
5589 if test -s conftest.err; then
5590 ac_cpp_err=$ac_cxx_preproc_warn_flag
5591 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5598 if test -z "$ac_cpp_err"; then
5599 # Broken: success on invalid input.
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 # Passes both tests.
5609 rm -f conftest.err conftest.$ac_ext
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then
5617 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5618 See \`config.log' for more details." >&5
5619 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5620 See \`config.log' for more details." >&2;}
5621 { (exit 1); exit 1; }; }
5625 ac_cpp='$CXXCPP $CPPFLAGS'
5626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5632 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5633 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5635 if test -n "$ac_tool_prefix"; then
5636 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5640 echo "$as_me:$LINENO: checking for $ac_word" >&5
5641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5642 if test "${ac_cv_prog_F77+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 if test -n "$F77"; then
5646 ac_cv_prog_F77="$F77" # Let the user override the test.
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 if test -n "$F77"; then
5666 echo "$as_me:$LINENO: result: $F77" >&5
5667 echo "${ECHO_T}$F77" >&6
5669 echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6
5673 test -n "$F77" && break
5676 if test -z "$F77"; then
5678 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5680 # Extract the first word of "$ac_prog", so it can be a program name with args.
5681 set dummy $ac_prog; ac_word=$2
5682 echo "$as_me:$LINENO: checking for $ac_word" >&5
5683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5684 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 if test -n "$ac_ct_F77"; then
5688 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_ac_ct_F77="$ac_prog"
5698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5707 if test -n "$ac_ct_F77"; then
5708 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5709 echo "${ECHO_T}$ac_ct_F77" >&6
5711 echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5715 test -n "$ac_ct_F77" && break
5722 # Provide some information about the compiler.
5723 echo "$as_me:5723:" \
5724 "checking for Fortran 77 compiler version" >&5
5725 ac_compiler=`set X $ac_compile; echo $2`
5726 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5727 (eval $ac_compiler --version </dev/null >&5) 2>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }
5731 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5732 (eval $ac_compiler -v </dev/null >&5) 2>&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }
5736 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5737 (eval $ac_compiler -V </dev/null >&5) 2>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }
5743 # If we don't use `.F' as extension, the preprocessor is not run on the
5744 # input file. (Note that this only needs to work for GNU compilers.)
5747 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5748 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5749 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 cat >conftest.$ac_ext <<_ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5792 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5793 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5795 ac_test_FFLAGS=${FFLAGS+set}
5796 ac_save_FFLAGS=$FFLAGS
5798 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5799 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5800 if test "${ac_cv_prog_f77_g+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 cat >conftest.$ac_ext <<_ACEOF
5809 rm -f conftest.$ac_objext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>conftest.er1
5813 grep -v '^ *+' conftest.er1 >conftest.err
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_cv_prog_f77_g=yes
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5840 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5841 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5842 if test "$ac_test_FFLAGS" = set; then
5843 FFLAGS=$ac_save_FFLAGS
5844 elif test $ac_cv_prog_f77_g = yes; then
5845 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5851 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5858 G77=`test $ac_compiler_gnu = yes && echo yes`
5860 ac_cpp='$CPP $CPPFLAGS'
5861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5867 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5869 # find the maximum length of command line arguments
5870 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5871 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5872 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 # On DJGPP, this test can blow up pretty badly due to problems in libc
5881 # (any single argument exceeding 2000 bytes causes a buffer overrun
5882 # during glob expansion). Even if it were fixed, the result of this
5883 # check would be larger than it should be.
5884 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5888 # Under GNU Hurd, this test is not required because there is
5889 # no limit to the length of command line arguments.
5890 # Libtool will interpret -1 as no limit whatsoever
5891 lt_cv_sys_max_cmd_len=-1;
5895 # On Win9x/ME, this test blows up -- it succeeds, but takes
5896 # about 5 minutes as the teststring grows exponentially.
5897 # Worse, since 9x/ME are not pre-emptively multitasking,
5898 # you end up with a "frozen" computer, even though with patience
5899 # the test eventually succeeds (with a max line length of 256k).
5900 # Instead, let's just punt: use the minimum linelength reported by
5901 # all of the supported platforms: 8192 (on NT/2K/XP).
5902 lt_cv_sys_max_cmd_len=8192;
5906 # If test is not a shell built-in, we'll probably end up computing a
5907 # maximum length that is only half of the actual maximum length, but
5909 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5910 = "XX$testring") >/dev/null 2>&1 &&
5911 new_result=`expr "X$testring" : ".*" 2>&1` &&
5912 lt_cv_sys_max_cmd_len=$new_result &&
5913 test $i != 17 # 1/2 MB should be enough
5916 testring=$testring$testring
5919 # Add a significant safety factor because C++ compilers can tack on massive
5920 # amounts of additional arguments before passing them to the linker.
5921 # It appears as though 1/2 is a usable value.
5922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5928 if test -n $lt_cv_sys_max_cmd_len ; then
5929 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5930 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5932 echo "$as_me:$LINENO: result: none" >&5
5933 echo "${ECHO_T}none" >&6
5939 # Check for command to grab the raw symbol name followed by C symbol from nm.
5940 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5941 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5942 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 # These are sane defaults that work on at least a few old systems.
5947 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5949 # Character class describing NM global symbol codes.
5950 symcode='[BCDEGRST]'
5952 # Regexp to match symbols that can be accessed directly from C.
5953 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5955 # Transform the above into a raw symbol and a C symbol.
5956 symxfrm='\1 \2\3 \3'
5958 # Transform an extracted symbol line into a proper C declaration
5959 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5961 # Transform an extracted symbol line into symbol name and symbol address
5962 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'"
5964 # Define system-specific variables.
5969 cygwin* | mingw* | pw32*)
5970 symcode='[ABCDGISTW]'
5972 hpux*) # Its linker distinguishes data from code symbols
5973 if test "$host_cpu" = ia64; then
5974 symcode='[ABCDEGRST]'
5976 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5977 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'"
5980 symcode='[BCDEGRST]'
5983 symcode='[BCDEGQRST]'
5993 # Handle CRLF in mingw tool chain
5997 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6001 # If we're using GNU nm, then use its standard symbol codes.
6002 case `$NM -V 2>&1` in
6003 *GNU* | *'with BFD'*)
6004 symcode='[ABCDGISTW]' ;;
6007 # Try without a prefix undercore, then with it.
6008 for ac_symprfx in "" "_"; do
6010 # Write the raw and C identifiers.
6011 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6013 # Check to see that the pipe works correctly.
6017 cat > conftest.$ac_ext <<EOF
6022 void nm_test_func(){}
6026 int main(){nm_test_var='a';nm_test_func();return(0);}
6029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030 (eval $ac_compile) 2>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; then
6034 # Now try to grab the symbols.
6036 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6037 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } && test -s "$nlist"; then
6041 # Try sorting and uniquifying the output.
6042 if sort "$nlist" | uniq > "$nlist"T; then
6043 mv -f "$nlist"T "$nlist"
6048 # Make sure that we snagged all the symbols we need.
6049 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6050 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6051 cat <<EOF > conftest.$ac_ext
6057 # Now generate the symbol file.
6058 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6060 cat <<EOF >> conftest.$ac_ext
6061 #if defined (__STDC__) && __STDC__
6062 # define lt_ptr_t void *
6064 # define lt_ptr_t char *
6068 /* The mapping between symbol names and symbols. */
6073 lt_preloaded_symbols[] =
6076 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6077 cat <<\EOF >> conftest.$ac_ext
6085 # Now try linking the two files.
6086 mv conftest.$ac_objext conftstm.$ac_objext
6087 lt_save_LIBS="$LIBS"
6088 lt_save_CFLAGS="$CFLAGS"
6089 LIBS="conftstm.$ac_objext"
6090 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092 (eval $ac_link) 2>&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6098 LIBS="$lt_save_LIBS"
6099 CFLAGS="$lt_save_CFLAGS"
6101 echo "cannot find nm_test_func in $nlist" >&5
6104 echo "cannot find nm_test_var in $nlist" >&5
6107 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6110 echo "$progname: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6113 rm -f conftest* conftst*
6115 # Do not use the global_symbol_pipe unless it works.
6116 if test "$pipe_works" = yes; then
6119 lt_cv_sys_global_symbol_pipe=
6125 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6126 lt_cv_sys_global_symbol_to_cdecl=
6128 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6129 echo "$as_me:$LINENO: result: failed" >&5
6130 echo "${ECHO_T}failed" >&6
6132 echo "$as_me:$LINENO: result: ok" >&5
6133 echo "${ECHO_T}ok" >&6
6136 echo "$as_me:$LINENO: checking for objdir" >&5
6137 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6138 if test "${lt_cv_objdir+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 rm -f .libs 2>/dev/null
6142 mkdir .libs 2>/dev/null
6143 if test -d .libs; then
6146 # MS-DOS does not allow filenames that begin with a dot.
6149 rmdir .libs 2>/dev/null
6151 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6152 echo "${ECHO_T}$lt_cv_objdir" >&6
6153 objdir=$lt_cv_objdir
6161 # AIX sometimes has problems with the GCC collect2 program. For some
6162 # reason, if we set the COLLECT_NAMES environment variable, the problems
6163 # vanish in a puff of smoke.
6164 if test "X${COLLECT_NAMES+set}" != Xset; then
6166 export COLLECT_NAMES
6171 # Sed substitution that helps us do robust quoting. It backslashifies
6172 # metacharacters that are still active within double-quoted strings.
6173 Xsed='sed -e s/^X//'
6174 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6176 # Same as above, but do not quote variable references.
6177 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6179 # Sed substitution to delay expansion of an escaped shell variable in a
6180 # double_quote_subst'ed string.
6181 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6183 # Sed substitution to avoid accidental globbing in evaled expressions
6184 no_glob_subst='s/\*/\\\*/g'
6190 default_ofile=libtool
6191 can_build_shared=yes
6193 # All known linkers require a `.a' archive for static linking (except M$VC,
6194 # which needs '.lib').
6196 ltmain="$ac_aux_dir/ltmain.sh"
6197 ofile="$default_ofile"
6198 with_gnu_ld="$lt_cv_prog_gnu_ld"
6200 if test -n "$ac_tool_prefix"; then
6201 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}ar; ac_word=$2
6203 echo "$as_me:$LINENO: checking for $ac_word" >&5
6204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6205 if test "${ac_cv_prog_AR+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 if test -n "$AR"; then
6209 ac_cv_prog_AR="$AR" # Let the user override the test.
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218 ac_cv_prog_AR="${ac_tool_prefix}ar"
6219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 if test -n "$AR"; then
6229 echo "$as_me:$LINENO: result: $AR" >&5
6230 echo "${ECHO_T}$AR" >&6
6232 echo "$as_me:$LINENO: result: no" >&5
6233 echo "${ECHO_T}no" >&6
6237 if test -z "$ac_cv_prog_AR"; then
6239 # Extract the first word of "ar", so it can be a program name with args.
6240 set dummy ar; ac_word=$2
6241 echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6243 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 if test -n "$ac_ct_AR"; then
6247 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_ac_ct_AR="ar"
6257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6266 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6267 if test -n "$ac_ct_AR"; then
6268 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6269 echo "${ECHO_T}$ac_ct_AR" >&6
6271 echo "$as_me:$LINENO: result: no" >&5
6272 echo "${ECHO_T}no" >&6
6280 if test -n "$ac_tool_prefix"; then
6281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6282 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6283 echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6285 if test "${ac_cv_prog_RANLIB+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 if test -n "$RANLIB"; then
6289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 RANLIB=$ac_cv_prog_RANLIB
6308 if test -n "$RANLIB"; then
6309 echo "$as_me:$LINENO: result: $RANLIB" >&5
6310 echo "${ECHO_T}$RANLIB" >&6
6312 echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6
6317 if test -z "$ac_cv_prog_RANLIB"; then
6318 ac_ct_RANLIB=$RANLIB
6319 # Extract the first word of "ranlib", so it can be a program name with args.
6320 set dummy ranlib; ac_word=$2
6321 echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 if test -n "$ac_ct_RANLIB"; then
6327 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_ac_ct_RANLIB="ranlib"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6346 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6347 if test -n "$ac_ct_RANLIB"; then
6348 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6349 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6351 echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6
6355 RANLIB=$ac_ct_RANLIB
6357 RANLIB="$ac_cv_prog_RANLIB"
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}strip; ac_word=$2
6363 echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6365 if test "${ac_cv_prog_STRIP+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 if test -n "$STRIP"; then
6369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 STRIP=$ac_cv_prog_STRIP
6388 if test -n "$STRIP"; then
6389 echo "$as_me:$LINENO: result: $STRIP" >&5
6390 echo "${ECHO_T}$STRIP" >&6
6392 echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6
6397 if test -z "$ac_cv_prog_STRIP"; then
6399 # Extract the first word of "strip", so it can be a program name with args.
6400 set dummy strip; ac_word=$2
6401 echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6403 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 if test -n "$ac_ct_STRIP"; then
6407 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_ac_ct_STRIP="strip"
6417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6426 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6427 if test -n "$ac_ct_STRIP"; then
6428 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6429 echo "${ECHO_T}$ac_ct_STRIP" >&6
6431 echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6
6437 STRIP="$ac_cv_prog_STRIP"
6442 old_CFLAGS="$CFLAGS"
6444 # Set sane defaults for various variables
6445 test -z "$AR" && AR=ar
6446 test -z "$AR_FLAGS" && AR_FLAGS=cru
6447 test -z "$AS" && AS=as
6448 test -z "$CC" && CC=cc
6449 test -z "$LTCC" && LTCC=$CC
6450 test -z "$DLLTOOL" && DLLTOOL=dlltool
6451 test -z "$LD" && LD=ld
6452 test -z "$LN_S" && LN_S="ln -s"
6453 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6454 test -z "$NM" && NM=nm
6455 test -z "$SED" && SED=sed
6456 test -z "$OBJDUMP" && OBJDUMP=objdump
6457 test -z "$RANLIB" && RANLIB=:
6458 test -z "$STRIP" && STRIP=:
6459 test -z "$ac_objext" && ac_objext=o
6461 # Determine commands to create old-style static archives.
6462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6463 old_postinstall_cmds='chmod 644 $oldlib'
6464 old_postuninstall_cmds=
6466 if test -n "$RANLIB"; then
6469 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6472 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6475 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6478 # Only perform the check for file, if the check method requires it
6479 case $deplibs_check_method in
6481 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6482 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6483 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6484 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6492 lt_save_MAGIC_CMD="$MAGIC_CMD"
6493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6494 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6495 for ac_dir in $ac_dummy; do
6497 test -z "$ac_dir" && ac_dir=.
6498 if test -f $ac_dir/${ac_tool_prefix}file; then
6499 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6500 if test -n "$file_magic_test_file"; then
6501 case $deplibs_check_method in
6503 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6506 $EGREP "$file_magic_regex" > /dev/null; then
6511 *** Warning: the command libtool uses to detect shared libraries,
6512 *** $file_magic_cmd, produces output that libtool cannot recognize.
6513 *** The result is that libtool may fail to recognize shared libraries
6514 *** as such. This will affect the creation of libtool libraries that
6515 *** depend on shared libraries, but programs linked with such libtool
6516 *** libraries will work regardless of this problem. Nevertheless, you
6517 *** may want to report the problem to your system manager and/or to
6518 *** bug-libtool@gnu.org
6528 MAGIC_CMD="$lt_save_MAGIC_CMD"
6533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6534 if test -n "$MAGIC_CMD"; then
6535 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6536 echo "${ECHO_T}$MAGIC_CMD" >&6
6538 echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6
6542 if test -z "$lt_cv_path_MAGIC_CMD"; then
6543 if test -n "$ac_tool_prefix"; then
6544 echo "$as_me:$LINENO: checking for file" >&5
6545 echo $ECHO_N "checking for file... $ECHO_C" >&6
6546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6554 lt_save_MAGIC_CMD="$MAGIC_CMD"
6555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6556 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6557 for ac_dir in $ac_dummy; do
6559 test -z "$ac_dir" && ac_dir=.
6560 if test -f $ac_dir/file; then
6561 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6562 if test -n "$file_magic_test_file"; then
6563 case $deplibs_check_method in
6565 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6568 $EGREP "$file_magic_regex" > /dev/null; then
6573 *** Warning: the command libtool uses to detect shared libraries,
6574 *** $file_magic_cmd, produces output that libtool cannot recognize.
6575 *** The result is that libtool may fail to recognize shared libraries
6576 *** as such. This will affect the creation of libtool libraries that
6577 *** depend on shared libraries, but programs linked with such libtool
6578 *** libraries will work regardless of this problem. Nevertheless, you
6579 *** may want to report the problem to your system manager and/or to
6580 *** bug-libtool@gnu.org
6590 MAGIC_CMD="$lt_save_MAGIC_CMD"
6595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6596 if test -n "$MAGIC_CMD"; then
6597 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6598 echo "${ECHO_T}$MAGIC_CMD" >&6
6600 echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6
6614 enable_win32_dll=yes
6616 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6617 if test "${enable_libtool_lock+set}" = set; then
6618 enableval="$enable_libtool_lock"
6621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6624 # Check whether --with-pic or --without-pic was given.
6625 if test "${with_pic+set}" = set; then
6631 test -z "$pic_mode" && pic_mode=default
6633 # Use C for the default configuration in the libtool script
6637 ac_cpp='$CPP $CPPFLAGS'
6638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6643 # Source file extension for C test sources.
6646 # Object file extension for compiled C test sources.
6650 # Code to be used in simple compile tests
6651 lt_simple_compile_test_code="int some_variable = 0;\n"
6653 # Code to be used in simple link tests
6654 lt_simple_link_test_code='int main(){return(0);}\n'
6657 # If no C compiler was specified, use CC.
6660 # Allow CC to be a program name with arguments.
6665 # Check for any special shared library compilation flags.
6668 if test "$GCC" = no; then
6671 lt_prog_cc_shlib='-belf'
6675 if test -n "$lt_prog_cc_shlib"; then
6676 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6677 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6678 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6680 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6681 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6682 lt_cv_prog_cc_can_build_shared=no
6688 # Check to make sure the static flag actually works.
6690 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6691 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6692 if test "${lt_prog_compiler_static_works+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 lt_prog_compiler_static_works=no
6696 save_LDFLAGS="$LDFLAGS"
6697 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6698 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6700 # The compiler can only warn and ignore the option if not recognized
6701 # So say no if there are warnings
6702 if test -s conftest.err; then
6703 # Append any errors to the config.log.
6704 cat conftest.err 1>&5
6706 lt_prog_compiler_static_works=yes
6710 LDFLAGS="$save_LDFLAGS"
6713 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6714 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6716 if test x"$lt_prog_compiler_static_works" = xyes; then
6719 lt_prog_compiler_static=
6725 ## There is no encapsulation within the following macros, do not change
6726 ## the running order or otherwise move them around unless you know exactly
6727 ## what you are doing...
6729 lt_prog_compiler_no_builtin_flag=
6731 if test "$GCC" = yes; then
6732 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6734 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6735 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6736 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 lt_cv_prog_compiler_rtti_exceptions=no
6740 ac_outfile=conftest.$ac_objext
6741 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6742 lt_compiler_flag="-fno-rtti -fno-exceptions"
6743 # Insert the option either (1) after the last *FLAGS variable, or
6744 # (2) before a word containing "conftest.", or (3) at the end.
6745 # Note that $ac_compile itself does not contain backslashes and begins
6746 # with a dollar sign (not a hyphen), so the echo should work correctly.
6747 # The option is referenced via a variable to avoid confusing sed.
6748 lt_compile=`echo "$ac_compile" | $SED \
6749 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6751 -e 's:$: $lt_compiler_flag:'`
6752 (eval echo "\"\$as_me:6752: $lt_compile\"" >&5)
6753 (eval "$lt_compile" 2>conftest.err)
6755 cat conftest.err >&5
6756 echo "$as_me:6756: \$? = $ac_status" >&5
6757 if (exit $ac_status) && test -s "$ac_outfile"; then
6758 # The compiler can only warn and ignore the option if not recognized
6759 # So say no if there are warnings
6760 if test ! -s conftest.err; then
6761 lt_cv_prog_compiler_rtti_exceptions=yes
6767 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6768 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6770 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6771 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6778 lt_prog_compiler_wl=
6779 lt_prog_compiler_pic=
6780 lt_prog_compiler_static=
6782 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6783 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6785 if test "$GCC" = yes; then
6786 lt_prog_compiler_wl='-Wl,'
6787 lt_prog_compiler_static='-static'
6791 # All AIX code is PIC.
6792 if test "$host_cpu" = ia64; then
6793 # AIX 5 now supports IA64 processor
6794 lt_prog_compiler_static='-Bstatic'
6799 # FIXME: we need at least 68020 code to build shared libraries, but
6800 # adding the `-m68020' flag to GCC prevents building anything better,
6802 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6805 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6806 # PIC is the default for these OSes.
6809 mingw* | pw32* | os2*)
6810 # This hack is so that the source file can tell whether it is being
6811 # built for inclusion in a dll (and should export symbols for example).
6812 lt_prog_compiler_pic='-DDLL_EXPORT'
6815 darwin* | rhapsody*)
6816 # PIC is the default on this platform
6817 # Common symbols not allowed in MH_DYLIB files
6818 lt_prog_compiler_pic='-fno-common'
6822 # Just because we use GCC doesn't mean we suddenly get shared libraries
6823 # on systems that don't support them.
6824 lt_prog_compiler_can_build_shared=no
6829 if test -d /usr/nec; then
6830 lt_prog_compiler_pic=-Kconform_pic
6835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6842 lt_prog_compiler_pic='-fPIC'
6848 lt_prog_compiler_pic='-fPIC'
6852 # PORTME Check for flag to pass linker flags through the system compiler.
6855 lt_prog_compiler_wl='-Wl,'
6856 if test "$host_cpu" = ia64; then
6857 # AIX 5 now supports IA64 processor
6858 lt_prog_compiler_static='-Bstatic'
6860 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6864 mingw* | pw32* | os2*)
6865 # This hack is so that the source file can tell whether it is being
6866 # built for inclusion in a dll (and should export symbols for example).
6867 lt_prog_compiler_pic='-DDLL_EXPORT'
6870 hpux9* | hpux10* | hpux11*)
6871 lt_prog_compiler_wl='-Wl,'
6872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6879 lt_prog_compiler_pic='+Z'
6882 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6883 lt_prog_compiler_static='${wl}-a ${wl}archive'
6886 irix5* | irix6* | nonstopux*)
6887 lt_prog_compiler_wl='-Wl,'
6888 # PIC (with -KPIC) is the default.
6889 lt_prog_compiler_static='-non_shared'
6893 lt_prog_compiler_pic='-KPIC'
6894 lt_prog_compiler_static='-Bstatic'
6900 lt_prog_compiler_wl='-Wl,'
6901 lt_prog_compiler_pic='-KPIC'
6902 lt_prog_compiler_static='-static'
6905 lt_prog_compiler_wl='-Wl,'
6906 # All Alpha code is PIC.
6907 lt_prog_compiler_static='-non_shared'
6912 osf3* | osf4* | osf5*)
6913 lt_prog_compiler_wl='-Wl,'
6914 # All OSF/1 code is PIC.
6915 lt_prog_compiler_static='-non_shared'
6919 lt_prog_compiler_pic='-Kpic'
6920 lt_prog_compiler_static='-dn'
6924 lt_prog_compiler_wl='-Wl,'
6925 lt_prog_compiler_pic='-KPIC'
6926 lt_prog_compiler_static='-Bstatic'
6930 lt_prog_compiler_wl='-Qoption ld '
6931 lt_prog_compiler_pic='-PIC'
6932 lt_prog_compiler_static='-Bstatic'
6935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6936 lt_prog_compiler_wl='-Wl,'
6937 lt_prog_compiler_pic='-KPIC'
6938 lt_prog_compiler_static='-Bstatic'
6942 if test -d /usr/nec ;then
6943 lt_prog_compiler_pic='-Kconform_pic'
6944 lt_prog_compiler_static='-Bstatic'
6949 lt_prog_compiler_pic='-pic'
6950 lt_prog_compiler_static='-Bstatic'
6954 lt_prog_compiler_can_build_shared=no
6959 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6960 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6963 # Check to make sure the PIC flag actually works.
6965 if test -n "$lt_prog_compiler_pic"; then
6966 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6967 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6968 if test "${lt_prog_compiler_pic_works+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 lt_prog_compiler_pic_works=no
6972 ac_outfile=conftest.$ac_objext
6973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6974 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6975 # Insert the option either (1) after the last *FLAGS variable, or
6976 # (2) before a word containing "conftest.", or (3) at the end.
6977 # Note that $ac_compile itself does not contain backslashes and begins
6978 # with a dollar sign (not a hyphen), so the echo should work correctly.
6979 # The option is referenced via a variable to avoid confusing sed.
6980 lt_compile=`echo "$ac_compile" | $SED \
6981 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6983 -e 's:$: $lt_compiler_flag:'`
6984 (eval echo "\"\$as_me:6984: $lt_compile\"" >&5)
6985 (eval "$lt_compile" 2>conftest.err)
6987 cat conftest.err >&5
6988 echo "$as_me:6988: \$? = $ac_status" >&5
6989 if (exit $ac_status) && test -s "$ac_outfile"; then
6990 # The compiler can only warn and ignore the option if not recognized
6991 # So say no if there are warnings
6992 if test ! -s conftest.err; then
6993 lt_prog_compiler_pic_works=yes
6999 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7000 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7002 if test x"$lt_prog_compiler_pic_works" = xyes; then
7003 case $lt_prog_compiler_pic in
7005 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7008 lt_prog_compiler_pic=
7009 lt_prog_compiler_can_build_shared=no
7014 # For platforms which do not support PIC, -DPIC is meaningless:
7016 lt_prog_compiler_pic=
7019 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7023 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7024 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7025 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 lt_cv_prog_compiler_c_o=no
7029 $rm -r conftest 2>/dev/null
7033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7035 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7036 # that will create temporary files in the current directory regardless of
7037 # the output directory. Thus, making CWD read-only will cause this test
7038 # to fail, enabling locking or at least warning the user not to do parallel
7042 lt_compiler_flag="-o out/conftest2.$ac_objext"
7043 # Insert the option either (1) after the last *FLAGS variable, or
7044 # (2) before a word containing "conftest.", or (3) at the end.
7045 # Note that $ac_compile itself does not contain backslashes and begins
7046 # with a dollar sign (not a hyphen), so the echo should work correctly.
7047 lt_compile=`echo "$ac_compile" | $SED \
7048 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7050 -e 's:$: $lt_compiler_flag:'`
7051 (eval echo "\"\$as_me:7051: $lt_compile\"" >&5)
7052 (eval "$lt_compile" 2>out/conftest.err)
7054 cat out/conftest.err >&5
7055 echo "$as_me:7055: \$? = $ac_status" >&5
7056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7058 # The compiler can only warn and ignore the option if not recognized
7059 # So say no if there are warnings
7060 if test ! -s out/conftest.err; then
7061 lt_cv_prog_compiler_c_o=yes
7072 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7076 hard_links="nottested"
7077 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7078 # do not overwrite the value of need_locks provided by the user
7079 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7085 ln conftest.a conftest.b 2>&5 || hard_links=no
7086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7087 echo "$as_me:$LINENO: result: $hard_links" >&5
7088 echo "${ECHO_T}$hard_links" >&6
7089 if test "$hard_links" = no; then
7090 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7098 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7102 allow_undefined_flag=
7103 enable_shared_with_static_runtimes=no
7105 archive_expsym_cmds=
7106 old_archive_From_new_cmds=
7107 old_archive_from_expsyms_cmds=
7108 export_dynamic_flag_spec=
7109 whole_archive_flag_spec=
7110 thread_safe_flag_spec=
7111 hardcode_libdir_flag_spec=
7112 hardcode_libdir_flag_spec_ld=
7113 hardcode_libdir_separator=
7116 hardcode_shlibpath_var=unsupported
7117 link_all_deplibs=unknown
7118 hardcode_automatic=no
7121 always_export_symbols=no
7122 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7123 # include_expsyms should be a list of space-separated symbols to be *always*
7124 # included in the symbol list
7126 # exclude_expsyms can be an extended regexp of symbols to exclude
7127 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7128 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7129 # as well as any symbol that contains `d'.
7130 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7132 # platforms (ab)use it in PIC code, but their linkers get confused if
7133 # the symbol is explicitly referenced. Since portable code cannot
7134 # rely on this symbol name, it's probably fine to never include it in
7135 # preloaded symbol tables.
7136 extract_expsyms_cmds=
7139 cygwin* | mingw* | pw32*)
7140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7141 # When not using gcc, we currently assume that we are using
7142 # Microsoft Visual C++.
7143 if test "$GCC" != yes; then
7153 if test "$with_gnu_ld" = yes; then
7154 # If archive_cmds runs LD, not CC, wlarc should be empty
7157 # See if GNU ld supports shared libraries.
7159 aix3* | aix4* | aix5*)
7160 # On AIX/PPC, the GNU linker is very broken
7161 if test "$host_cpu" != ia64; then
7165 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7166 *** to be unable to reliably create shared libraries on AIX.
7167 *** Therefore, libtool is disabling shared libraries support. If you
7168 *** really care for shared libraries, you may want to modify your PATH
7169 *** so that a non-GNU linker is found, and then restart.
7176 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)'
7177 hardcode_libdir_flag_spec='-L$libdir'
7178 hardcode_minus_L=yes
7180 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7181 # that the semantics of dynamic libraries on AmigaOS, at least up
7182 # to version 4, is to share data among multiple programs linked
7183 # with the same dynamic library. Since this doesn't match the
7184 # behavior of shared libraries on other platforms, we can't use
7190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7191 allow_undefined_flag=unsupported
7192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7193 # support --undefined. This deserves some investigation. FIXME
7194 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7200 cygwin* | mingw* | pw32*)
7201 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7202 # as there is no search path for DLLs.
7203 hardcode_libdir_flag_spec='-L$libdir'
7204 allow_undefined_flag=unsupported
7205 always_export_symbols=no
7206 enable_shared_with_static_runtimes=yes
7207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7209 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7211 # If the export-symbols file already is a .def file (1st line
7212 # is EXPORTS), use it as is; otherwise, prepend...
7213 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7214 cp $export_symbols $output_objdir/$soname.def;
7216 echo EXPORTS > $output_objdir/$soname.def;
7217 cat $export_symbols >> $output_objdir/$soname.def;
7219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7227 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7231 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7236 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7241 *** create shared libraries on Solaris systems. Therefore, libtool
7242 *** is disabling shared libraries support. We urge you to upgrade GNU
7243 *** binutils to release 2.9.1 or newer. Another option is to modify
7244 *** your PATH or compiler configuration so that the native linker is
7245 *** used, and then restart.
7248 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7257 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7260 hardcode_shlibpath_var=no
7264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7273 if test "$ld_shlibs" = yes; then
7274 runpath_var=LD_RUN_PATH
7275 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7276 export_dynamic_flag_spec='${wl}--export-dynamic'
7277 # ancient GNU ld didn't support --whole-archive et. al.
7278 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7279 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7281 whole_archive_flag_spec=
7285 # PORTME fill in a description of your system's linker (not GNU ld)
7288 allow_undefined_flag=unsupported
7289 always_export_symbols=yes
7290 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'
7291 # Note: this linker hardcodes the directories in LIBPATH if there
7292 # are no directories specified by -L.
7293 hardcode_minus_L=yes
7294 if test "$GCC" = yes && test -z "$link_static_flag"; then
7295 # Neither direct hardcoding nor static linking is supported with a
7297 hardcode_direct=unsupported
7302 if test "$host_cpu" = ia64; then
7303 # On IA64, the linker does run time linking by default, so we don't
7304 # have to do anything special.
7305 aix_use_runtimelinking=no
7306 exp_sym_flag='-Bexport'
7309 # If we're using GNU nm, then we don't want the "-C" option.
7310 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7311 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7312 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'
7314 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'
7316 aix_use_runtimelinking=no
7318 # Test if we are trying to use run time linking or normal
7319 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7320 # need to do runtime linking.
7321 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7322 for ld_flag in $LDFLAGS; do
7323 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7324 aix_use_runtimelinking=yes
7330 exp_sym_flag='-bexport'
7331 no_entry_flag='-bnoentry'
7334 # When large executables or shared objects are built, AIX ld can
7335 # have problems creating the table of contents. If linking a library
7336 # or program results in "error TOC overflow" add -mminimal-toc to
7337 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7338 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7342 hardcode_libdir_separator=':'
7343 link_all_deplibs=yes
7345 if test "$GCC" = yes; then
7346 case $host_os in aix4.012|aix4.012.*)
7347 # We only want to do this on AIX 4.2 and lower, the check
7348 # below for broken collect2 doesn't work under 4.3+
7349 collect2name=`${CC} -print-prog-name=collect2`
7350 if test -f "$collect2name" && \
7351 strings "$collect2name" | grep resolve_lib_name >/dev/null
7353 # We have reworked collect2
7356 # We have old collect2
7357 hardcode_direct=unsupported
7358 # It fails to find uninstalled libraries when the uninstalled
7359 # path is not listed in the libpath. Setting hardcode_minus_L
7360 # to unsupported forces relinking
7361 hardcode_minus_L=yes
7362 hardcode_libdir_flag_spec='-L$libdir'
7363 hardcode_libdir_separator=
7366 shared_flag='-shared'
7369 if test "$host_cpu" = ia64; then
7370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7371 # chokes on -Wl,-G. The following line is correct:
7374 if test "$aix_use_runtimelinking" = yes; then
7375 shared_flag='${wl}-G'
7377 shared_flag='${wl}-bM:SRE'
7382 # It seems that -bexpall does not export symbols beginning with
7383 # underscore (_), so it is better to generate a list of symbols to export.
7384 always_export_symbols=yes
7385 if test "$aix_use_runtimelinking" = yes; then
7386 # Warning - without using the other runtime loading flags (-brtl),
7387 # -berok will link without error, but may produce a broken library.
7388 allow_undefined_flag='-berok'
7389 # Determine the default libpath from the value encoded in an empty executable.
7390 cat >conftest.$ac_ext <<_ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7405 rm -f conftest.$ac_objext conftest$ac_exeext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7407 (eval $ac_link) 2>conftest.er1
7409 grep -v '^ *+' conftest.er1 >conftest.err
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try='test -s conftest$ac_exeext'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7429 # Check for a 64-bit object if we didn't find anything.
7430 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; }
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7437 rm -f conftest.err conftest.$ac_objext \
7438 conftest$ac_exeext conftest.$ac_ext
7439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7441 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7442 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"
7444 if test "$host_cpu" = ia64; then
7445 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7446 allow_undefined_flag="-z nodefs"
7447 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"
7449 # Determine the default libpath from the value encoded in an empty executable.
7450 cat >conftest.$ac_ext <<_ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7465 rm -f conftest.$ac_objext conftest$ac_exeext
7466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7467 (eval $ac_link) 2>conftest.er1
7469 grep -v '^ *+' conftest.er1 >conftest.err
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } &&
7474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; } &&
7480 { ac_try='test -s conftest$ac_exeext'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7489 # Check for a 64-bit object if we didn't find anything.
7490 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; }
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7497 rm -f conftest.err conftest.$ac_objext \
7498 conftest$ac_exeext conftest.$ac_ext
7499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7501 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7502 # Warning - without using the other run time loading flags,
7503 # -berok will link without error, but may produce a broken library.
7504 no_undefined_flag=' ${wl}-bernotok'
7505 allow_undefined_flag=' ${wl}-berok'
7506 # -bexpall does not export symbols beginning with underscore (_)
7507 always_export_symbols=yes
7508 # Exported symbols can be pulled into shared objects from archives
7509 whole_archive_flag_spec=' '
7510 archive_cmds_need_lc=yes
7511 # This is similar to how AIX traditionally builds it's shared libraries.
7512 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'
7518 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)'
7519 hardcode_libdir_flag_spec='-L$libdir'
7520 hardcode_minus_L=yes
7521 # see comment about different semantics on the GNU ld section
7526 export_dynamic_flag_spec=-rdynamic
7529 cygwin* | mingw* | pw32*)
7530 # When not using gcc, we currently assume that we are using
7531 # Microsoft Visual C++.
7532 # hardcode_libdir_flag_spec is actually meaningless, as there is
7533 # no search path for DLLs.
7534 hardcode_libdir_flag_spec=' '
7535 allow_undefined_flag=unsupported
7536 # Tell ltmain to make .lib files, not .a files.
7538 # Tell ltmain to make .dll files, not .so files.
7540 # FIXME: Setting linknames here is a bad hack.
7541 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7542 # The linker will automatically build a .lib file if we build a DLL.
7543 old_archive_From_new_cmds='true'
7544 # FIXME: Should let the user specify the lib program.
7545 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7546 fix_srcfile_path='`cygpath -w "$srcfile"`'
7547 enable_shared_with_static_runtimes=yes
7550 darwin* | rhapsody*)
7551 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7552 archive_cmds_need_lc=no
7554 rhapsody* | darwin1.[012])
7555 allow_undefined_flag='-undefined suppress'
7558 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7561 # FIXME: Relying on posixy $() will cause problems for
7562 # cross-compilation, but unfortunately the echo tests do not
7563 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7564 # `"' quotes if we put them in here... so don't!
7565 lt_int_apple_cc_single_mod=no
7566 output_verbose_link_cmd='echo'
7567 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7568 lt_int_apple_cc_single_mod=yes
7570 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7571 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7573 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7575 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7576 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7577 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7578 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7580 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7582 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7584 hardcode_automatic=yes
7585 hardcode_shlibpath_var=unsupported
7586 whole_archive_flag_spec='-all_load $convenience'
7587 link_all_deplibs=yes
7592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7593 hardcode_libdir_flag_spec='-L$libdir'
7594 hardcode_shlibpath_var=no
7601 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7602 # support. Future versions do this automatically, but an explicit c++rt0.o
7603 # does not break anything, and helps significantly (at the cost of a little
7606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7607 hardcode_libdir_flag_spec='-R$libdir'
7609 hardcode_shlibpath_var=no
7612 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7616 hardcode_minus_L=yes
7617 hardcode_shlibpath_var=no
7620 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7622 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7623 hardcode_libdir_flag_spec='-R$libdir'
7625 hardcode_shlibpath_var=no
7629 if test "$GCC" = yes; then
7630 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'
7632 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'
7634 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7635 hardcode_libdir_separator=:
7638 # hardcode_minus_L: Not really in the search PATH,
7639 # but as the default location of the library.
7640 hardcode_minus_L=yes
7641 export_dynamic_flag_spec='${wl}-E'
7645 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7648 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7651 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7657 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7664 if test "$with_gnu_ld" = no; then
7667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7668 hardcode_libdir_flag_spec_ld='+b $libdir'
7669 hardcode_libdir_separator=:
7671 hardcode_shlibpath_var=no
7674 hardcode_libdir_flag_spec='-L$libdir'
7676 hardcode_shlibpath_var=no
7678 # hardcode_minus_L: Not really in the search PATH,
7679 # but as the default location of the library.
7680 hardcode_minus_L=yes
7683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7684 hardcode_libdir_separator=:
7686 export_dynamic_flag_spec='${wl}-E'
7688 # hardcode_minus_L: Not really in the search PATH,
7689 # but as the default location of the library.
7690 hardcode_minus_L=yes
7696 irix5* | irix6* | nonstopux*)
7697 if test "$GCC" = yes; then
7698 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'
7700 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'
7701 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7704 hardcode_libdir_separator=:
7705 link_all_deplibs=yes
7709 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7712 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7714 hardcode_libdir_flag_spec='-R$libdir'
7716 hardcode_shlibpath_var=no
7720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7723 hardcode_libdir_separator=:
7724 hardcode_shlibpath_var=no
7729 hardcode_shlibpath_var=no
7730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7731 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7732 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7733 export_dynamic_flag_spec='${wl}-E'
7736 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7738 hardcode_libdir_flag_spec='-R$libdir'
7741 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7742 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7749 hardcode_libdir_flag_spec='-L$libdir'
7750 hardcode_minus_L=yes
7751 allow_undefined_flag=unsupported
7752 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'
7753 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7757 if test "$GCC" = yes; then
7758 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7759 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'
7761 allow_undefined_flag=' -expect_unresolved \*'
7762 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'
7764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7765 hardcode_libdir_separator=:
7768 osf4* | osf5*) # as osf3* with the addition of -msym flag
7769 if test "$GCC" = yes; then
7770 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7771 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'
7772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7774 allow_undefined_flag=' -expect_unresolved \*'
7775 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'
7776 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7777 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7779 # Both c and cxx compiler support -rpath directly
7780 hardcode_libdir_flag_spec='-rpath $libdir'
7782 hardcode_libdir_separator=:
7786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7787 hardcode_shlibpath_var=no
7788 export_dynamic_flag_spec='${wl}-Bexport'
7789 runpath_var=LD_RUN_PATH
7790 hardcode_runpath_var=yes
7794 no_undefined_flag=' -z text'
7795 if test "$GCC" = yes; then
7796 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7797 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7798 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7800 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7801 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7802 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7804 hardcode_libdir_flag_spec='-R$libdir'
7805 hardcode_shlibpath_var=no
7807 solaris2.[0-5] | solaris2.[0-5].*) ;;
7808 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7809 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7811 link_all_deplibs=yes
7815 if test "x$host_vendor" = xsequent; then
7816 # Use $CC to link under sequent, because it throws in some extra .o
7817 # files that make .init and .fini sections work.
7818 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7820 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7822 hardcode_libdir_flag_spec='-L$libdir'
7824 hardcode_minus_L=yes
7825 hardcode_shlibpath_var=no
7829 case $host_vendor in
7831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832 hardcode_direct=yes # is this really true???
7835 ## LD is ld it makes a PLAMLIB
7836 ## CC just makes a GrossModule.
7837 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7838 reload_cmds='$CC -r -o $output$reload_objs'
7842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7843 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7846 runpath_var='LD_RUN_PATH'
7847 hardcode_shlibpath_var=no
7851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7852 hardcode_shlibpath_var=no
7853 export_dynamic_flag_spec='-Bexport'
7857 if test -d /usr/nec; then
7858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7859 hardcode_shlibpath_var=no
7860 runpath_var=LD_RUN_PATH
7861 hardcode_runpath_var=yes
7867 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7870 hardcode_shlibpath_var=no
7871 hardcode_runpath_var=yes
7872 runpath_var=LD_RUN_PATH
7875 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7876 no_undefined_flag='${wl}-z ${wl}text'
7877 if test "$GCC" = yes; then
7878 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7880 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7882 runpath_var='LD_RUN_PATH'
7883 hardcode_shlibpath_var=no
7887 no_undefined_flag=' -z text'
7888 # $CC -shared without GNU ld will not create a library from C++
7889 # object files and a static libstdc++, better avoid it by now
7890 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7893 hardcode_libdir_flag_spec=
7894 hardcode_shlibpath_var=no
7895 runpath_var='LD_RUN_PATH'
7899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7900 hardcode_libdir_flag_spec='-L$libdir'
7901 hardcode_shlibpath_var=no
7910 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7911 echo "${ECHO_T}$ld_shlibs" >&6
7912 test "$ld_shlibs" = no && can_build_shared=no
7914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7915 if test "$GCC" = yes; then
7916 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7920 # Do we need to explicitly link libc?
7922 case "x$archive_cmds_need_lc" in
7924 # Assume -lc should be added
7925 archive_cmds_need_lc=yes
7927 if test "$enable_shared" = yes && test "$GCC" = yes; then
7928 case $archive_cmds in
7930 # FIXME: we may have to deal with multi-command sequences.
7933 # Test whether the compiler implicitly links with -lc since on some
7934 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7935 # to ld, don't add -lc before -lgcc.
7936 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7937 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7939 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7942 (eval $ac_compile) 2>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } 2>conftest.err; then
7948 libobjs=conftest.$ac_objext
7950 wl=$lt_prog_compiler_wl
7956 lt_save_allow_undefined_flag=$allow_undefined_flag
7957 allow_undefined_flag=
7958 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7959 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }
7964 archive_cmds_need_lc=no
7966 archive_cmds_need_lc=yes
7968 allow_undefined_flag=$lt_save_allow_undefined_flag
7970 cat conftest.err 1>&5
7973 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7974 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7981 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7982 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7984 if test -n "$hardcode_libdir_flag_spec" || \
7985 test -n "$runpath_var " || \
7986 test "X$hardcode_automatic"="Xyes" ; then
7988 # We can hardcode non-existant directories.
7989 if test "$hardcode_direct" != no &&
7990 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7991 # have to relink, otherwise we might link with an installed library
7992 # when we should be linking with a yet-to-be-installed one
7993 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7994 test "$hardcode_minus_L" != no; then
7995 # Linking always hardcodes the temporary library directory.
7996 hardcode_action=relink
7998 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7999 hardcode_action=immediate
8002 # We cannot hardcode anything, or else we can only hardcode existing
8004 hardcode_action=unsupported
8006 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8007 echo "${ECHO_T}$hardcode_action" >&6
8009 if test "$hardcode_action" = relink; then
8010 # Fast installation is not supported
8011 enable_fast_install=no
8012 elif test "$shlibpath_overrides_runpath" = yes ||
8013 test "$enable_shared" = no; then
8014 # Fast installation is not necessary
8015 enable_fast_install=needless
8020 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8021 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8022 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8025 echo "$as_me:$LINENO: result: yes" >&5
8026 echo "${ECHO_T}yes" >&6
8028 # FIXME - insert some real tests, host_os isn't really good enough
8031 if test -n "$STRIP" ; then
8032 striplib="$STRIP -x"
8033 echo "$as_me:$LINENO: result: yes" >&5
8034 echo "${ECHO_T}yes" >&6
8036 echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6
8041 echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6
8047 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8048 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8050 libname_spec='lib$name'
8058 shlibpath_overrides_runpath=unknown
8060 dynamic_linker="$host_os ld.so"
8061 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8062 if test "$GCC" = yes; then
8063 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8064 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8065 # if the path contains ";" then we assume it to be the separator
8066 # otherwise default to the standard path separator (i.e. ":") - it is
8067 # assumed that no part of a normal pathname contains ";" but that should
8068 # okay in the real world where ";" in dirpaths is itself problematic.
8069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8074 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8076 need_lib_prefix=unknown
8077 hardcode_into_libs=no
8079 # when you set need_version to no, make sure it does not cause -set_version
8080 # flags to be left without arguments
8081 need_version=unknown
8086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8087 shlibpath_var=LIBPATH
8089 # AIX 3 has no versioning support, so we append a major version to the name.
8090 soname_spec='${libname}${release}${shared_ext}$major'
8097 hardcode_into_libs=yes
8098 if test "$host_cpu" = ia64; then
8099 # AIX 5 supports IA64
8100 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8101 shlibpath_var=LD_LIBRARY_PATH
8103 # With GCC up to 2.95.x, collect2 would create an import file
8104 # for dependence libraries. The import file would start with
8105 # the line `#! .'. This would cause the generated library to
8106 # depend on `.', always an invalid library. This was fixed in
8107 # development snapshots of GCC prior to 3.0.
8109 aix4 | aix4.[01] | aix4.[01].*)
8110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8112 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8119 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8120 # soname into executable. Probably we can add versioning support to
8121 # collect2, so additional links can be useful in future.
8122 if test "$aix_use_runtimelinking" = yes; then
8123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8124 # instead of lib<name>.a to let people know that these are not
8125 # typical AIX shared libraries.
8126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8128 # We preserve .a as extension for shared libraries through AIX4.2
8129 # and later when we are not doing run time linking.
8130 library_names_spec='${libname}${release}.a $libname.a'
8131 soname_spec='${libname}${release}${shared_ext}$major'
8133 shlibpath_var=LIBPATH
8138 library_names_spec='$libname.ixlibrary $libname.a'
8139 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8140 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'
8144 library_names_spec='${libname}${shared_ext}'
8145 dynamic_linker="$host_os ld.so"
8146 shlibpath_var=LIBRARY_PATH
8152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8153 soname_spec='${libname}${release}${shared_ext}$major'
8154 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8155 shlibpath_var=LD_LIBRARY_PATH
8156 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8157 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8158 # the default ld.so.conf also contains /usr/contrib/lib and
8159 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8160 # libtool to hard-code these into programs
8163 cygwin* | mingw* | pw32*)
8164 version_type=windows
8169 case $GCC,$host_os in
8170 yes,cygwin* | yes,mingw* | yes,pw32*)
8171 library_names_spec='$libname.dll.a'
8172 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8173 postinstall_cmds='base_file=`basename \${file}`~
8174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8175 dldir=$destdir/`dirname \$dlpath`~
8176 test -d \$dldir || mkdir -p \$dldir~
8177 $install_prog $dir/$dlname \$dldir/$dlname'
8178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8179 dlpath=$dir/\$dldll~
8181 shlibpath_overrides_runpath=yes
8185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8187 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
8190 # MinGW DLLs use traditional 'lib' prefix
8191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8192 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8193 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8194 # It is most probably a Windows format PATH printed by
8195 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8196 # path with ; separators, and with drive letters. We can handle the
8197 # drive letters (cygwin fileutils understands them), so leave them,
8198 # especially as we might pass files found there to a mingw objdump,
8199 # which wouldn't understand a cygwinified path. Ahh.
8200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8206 # pw32 DLLs use 'pw' prefix rather than 'lib'
8207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8213 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8216 dynamic_linker='Win32 ld.exe'
8217 # FIXME: first we should search . and the directory the executable is in
8221 darwin* | rhapsody*)
8222 dynamic_linker="$host_os dyld"
8226 # FIXME: Relying on posixy $() will cause problems for
8227 # cross-compilation, but unfortunately the echo tests do not
8228 # yet detect zsh echo's removal of \ escapes.
8229 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8230 soname_spec='${libname}${release}${major}$shared_ext'
8231 shlibpath_overrides_runpath=yes
8232 shlibpath_var=DYLD_LIBRARY_PATH
8233 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8234 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8235 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8236 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"`
8238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8246 soname_spec='${libname}${release}${shared_ext}$major'
8247 shlibpath_var=LD_LIBRARY_PATH
8255 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8256 version_type=freebsd-$objformat
8257 case $version_type in
8259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8268 shlibpath_var=LD_LIBRARY_PATH
8271 shlibpath_overrides_runpath=yes
8273 freebsd3.01* | freebsdelf3.01*)
8274 shlibpath_overrides_runpath=yes
8275 hardcode_into_libs=yes
8278 shlibpath_overrides_runpath=no
8279 hardcode_into_libs=yes
8288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8289 soname_spec='${libname}${release}${shared_ext}$major'
8290 shlibpath_var=LD_LIBRARY_PATH
8291 hardcode_into_libs=yes
8294 hpux9* | hpux10* | hpux11*)
8295 # Give a soname corresponding to the major version so that dld.sl refuses to
8296 # link against other versions.
8303 hardcode_into_libs=yes
8304 dynamic_linker="$host_os dld.so"
8305 shlibpath_var=LD_LIBRARY_PATH
8306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8308 soname_spec='${libname}${release}${shared_ext}$major'
8309 if test "X$HPUX_IA64_MODE" = X32; then
8310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8318 hardcode_into_libs=yes
8319 dynamic_linker="$host_os dld.sl"
8320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8323 soname_spec='${libname}${release}${shared_ext}$major'
8324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8329 dynamic_linker="$host_os dld.sl"
8330 shlibpath_var=SHLIB_PATH
8331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8333 soname_spec='${libname}${release}${shared_ext}$major'
8336 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8337 postinstall_cmds='chmod 555 $lib'
8340 irix5* | irix6* | nonstopux*)
8342 nonstopux*) version_type=nonstopux ;;
8344 if test "$lt_cv_prog_gnu_ld" = yes; then
8352 soname_spec='${libname}${release}${shared_ext}$major'
8353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8355 irix5* | nonstopux*)
8359 case $LD in # libtool.m4 will add one of these switches to LD
8360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8361 libsuff= shlibsuff= libmagic=32-bit;;
8362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8363 libsuff=32 shlibsuff=N32 libmagic=N32;;
8364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8366 *) libsuff= shlibsuff= libmagic=never-match;;
8370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8371 shlibpath_overrides_runpath=no
8372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8374 hardcode_into_libs=yes
8377 # No shared lib support for Linux oldld, aout, or coff.
8378 linux*oldld* | linux*aout* | linux*coff*)
8382 # This must be Linux ELF.
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388 soname_spec='${libname}${release}${shared_ext}$major'
8389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8390 shlibpath_var=LD_LIBRARY_PATH
8391 shlibpath_overrides_runpath=no
8392 # This implies no fast_install, which is unacceptable.
8393 # Some rework will be needed to allow for fast_install
8394 # before this can be enabled.
8395 hardcode_into_libs=yes
8397 # We used to test for /lib/ld.so.1 and disable shared libraries on
8398 # powerpc, because MkLinux only supported shared libraries with the
8399 # GNU dynamic linker. Since this was broken with cross compilers,
8400 # most powerpc-linux boxes support dynamic linking these days and
8401 # people can always --disable-shared, the test was removed, and we
8402 # assume the GNU/Linux dynamic linker is in use.
8403 dynamic_linker='GNU/Linux ld.so'
8410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8413 dynamic_linker='NetBSD (a.out) ld.so'
8415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8416 soname_spec='${libname}${release}${shared_ext}$major'
8417 dynamic_linker='NetBSD ld.elf_so'
8419 shlibpath_var=LD_LIBRARY_PATH
8420 shlibpath_overrides_runpath=yes
8421 hardcode_into_libs=yes
8426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8427 shlibpath_var=LD_LIBRARY_PATH
8428 shlibpath_overrides_runpath=yes
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=yes
8445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8447 shlibpath_var=LD_LIBRARY_PATH
8448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8450 openbsd2.[89] | openbsd2.[89].*)
8451 shlibpath_overrides_runpath=no
8454 shlibpath_overrides_runpath=yes
8458 shlibpath_overrides_runpath=yes
8463 libname_spec='$name'
8466 library_names_spec='$libname${shared_ext} $libname.a'
8467 dynamic_linker='OS/2 ld.exe'
8468 shlibpath_var=LIBPATH
8471 osf3* | osf4* | osf5*)
8475 soname_spec='${libname}${release}${shared_ext}$major'
8476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8477 shlibpath_var=LD_LIBRARY_PATH
8478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8484 soname_spec='${libname}${release}${shared_ext}$major'
8485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486 shlibpath_var=LD_LIBRARY_PATH
8493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8494 soname_spec='${libname}${release}${shared_ext}$major'
8495 shlibpath_var=LD_LIBRARY_PATH
8496 shlibpath_overrides_runpath=yes
8497 hardcode_into_libs=yes
8498 # ldd complains unless libraries are executable
8499 postinstall_cmds='chmod +x $lib'
8504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8505 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8506 shlibpath_var=LD_LIBRARY_PATH
8507 shlibpath_overrides_runpath=yes
8508 if test "$with_gnu_ld" = yes; then
8514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8517 soname_spec='${libname}${release}${shared_ext}$major'
8518 shlibpath_var=LD_LIBRARY_PATH
8519 case $host_vendor in
8521 shlibpath_overrides_runpath=no
8523 export_dynamic_flag_spec='${wl}-Blargedynsym'
8524 runpath_var=LD_RUN_PATH
8532 shlibpath_overrides_runpath=no
8533 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8539 if test -d /usr/nec ;then
8541 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8542 soname_spec='$libname${shared_ext}.$major'
8543 shlibpath_var=LD_LIBRARY_PATH
8549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8550 soname_spec='${libname}${release}${shared_ext}$major'
8551 shlibpath_var=LD_LIBRARY_PATH
8558 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8559 echo "${ECHO_T}$dynamic_linker" >&6
8560 test "$dynamic_linker" = no && can_build_shared=no
8562 if test "x$enable_dlopen" != xyes; then
8563 enable_dlopen=unknown
8564 enable_dlopen_self=unknown
8565 enable_dlopen_self_static=unknown
8572 lt_cv_dlopen="load_add_on"
8574 lt_cv_dlopen_self=yes
8578 lt_cv_dlopen="LoadLibrary"
8583 lt_cv_dlopen="dlopen"
8588 # if libdl is installed we need to link against it
8589 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8590 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8591 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 ac_check_lib_save_LIBS=$LIBS
8596 cat >conftest.$ac_ext <<_ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8603 /* Override any gcc2 internal prototype to avoid an error. */
8607 /* We use char because int might match the return type of a gcc2
8608 builtin and then its argument prototype would still apply. */
8618 rm -f conftest.$ac_objext conftest$ac_exeext
8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620 (eval $ac_link) 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
8627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; } &&
8633 { ac_try='test -s conftest$ac_exeext'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 ac_cv_lib_dl_dlopen=yes
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8644 ac_cv_lib_dl_dlopen=no
8646 rm -f conftest.err conftest.$ac_objext \
8647 conftest$ac_exeext conftest.$ac_ext
8648 LIBS=$ac_check_lib_save_LIBS
8650 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8651 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8652 if test $ac_cv_lib_dl_dlopen = yes; then
8653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8658 lt_cv_dlopen_self=yes
8665 echo "$as_me:$LINENO: checking for shl_load" >&5
8666 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8667 if test "${ac_cv_func_shl_load+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 cat >conftest.$ac_ext <<_ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8676 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8678 #define shl_load innocuous_shl_load
8680 /* System header to define __stub macros and hopefully few prototypes,
8681 which can conflict with char shl_load (); below.
8682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8683 <limits.h> exists even on freestanding compilers. */
8686 # include <limits.h>
8688 # include <assert.h>
8693 /* Override any gcc2 internal prototype to avoid an error. */
8698 /* We use char because int might match the return type of a gcc2
8699 builtin and then its argument prototype would still apply. */
8701 /* The GNU C library defines this for functions which it implements
8702 to always fail with ENOSYS. Some functions are actually named
8703 something starting with __ and the normal name is an alias. */
8704 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8707 char (*f) () = shl_load;
8716 return f != shl_load;
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723 (eval $ac_link) 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_cv_func_shl_load=yes
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ac_cv_func_shl_load=no
8749 rm -f conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8752 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8753 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8754 if test $ac_cv_func_shl_load = yes; then
8755 lt_cv_dlopen="shl_load"
8757 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8758 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8759 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 ac_check_lib_save_LIBS=$LIBS
8764 cat >conftest.$ac_ext <<_ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8771 /* Override any gcc2 internal prototype to avoid an error. */
8775 /* We use char because int might match the return type of a gcc2
8776 builtin and then its argument prototype would still apply. */
8786 rm -f conftest.$ac_objext conftest$ac_exeext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8788 (eval $ac_link) 2>conftest.er1
8790 grep -v '^ *+' conftest.er1 >conftest.err
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } &&
8795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; } &&
8801 { ac_try='test -s conftest$ac_exeext'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; }; then
8807 ac_cv_lib_dld_shl_load=yes
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8812 ac_cv_lib_dld_shl_load=no
8814 rm -f conftest.err conftest.$ac_objext \
8815 conftest$ac_exeext conftest.$ac_ext
8816 LIBS=$ac_check_lib_save_LIBS
8818 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8819 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8820 if test $ac_cv_lib_dld_shl_load = yes; then
8821 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8823 echo "$as_me:$LINENO: checking for dlopen" >&5
8824 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8825 if test "${ac_cv_func_dlopen+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 cat >conftest.$ac_ext <<_ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8834 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8836 #define dlopen innocuous_dlopen
8838 /* System header to define __stub macros and hopefully few prototypes,
8839 which can conflict with char dlopen (); below.
8840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8841 <limits.h> exists even on freestanding compilers. */
8844 # include <limits.h>
8846 # include <assert.h>
8851 /* Override any gcc2 internal prototype to avoid an error. */
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8859 /* The GNU C library defines this for functions which it implements
8860 to always fail with ENOSYS. Some functions are actually named
8861 something starting with __ and the normal name is an alias. */
8862 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8865 char (*f) () = dlopen;
8879 rm -f conftest.$ac_objext conftest$ac_exeext
8880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8881 (eval $ac_link) 2>conftest.er1
8883 grep -v '^ *+' conftest.er1 >conftest.err
8885 cat conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } &&
8888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; } &&
8894 { ac_try='test -s conftest$ac_exeext'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 ac_cv_func_dlopen=yes
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8905 ac_cv_func_dlopen=no
8907 rm -f conftest.err conftest.$ac_objext \
8908 conftest$ac_exeext conftest.$ac_ext
8910 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8911 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8912 if test $ac_cv_func_dlopen = yes; then
8913 lt_cv_dlopen="dlopen"
8915 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8916 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8917 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 ac_check_lib_save_LIBS=$LIBS
8922 cat >conftest.$ac_ext <<_ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8929 /* Override any gcc2 internal prototype to avoid an error. */
8933 /* We use char because int might match the return type of a gcc2
8934 builtin and then its argument prototype would still apply. */
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>conftest.er1
8948 grep -v '^ *+' conftest.er1 >conftest.err
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; } &&
8959 { ac_try='test -s conftest$ac_exeext'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; }; then
8965 ac_cv_lib_dl_dlopen=yes
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 ac_cv_lib_dl_dlopen=no
8972 rm -f conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext conftest.$ac_ext
8974 LIBS=$ac_check_lib_save_LIBS
8976 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8978 if test $ac_cv_lib_dl_dlopen = yes; then
8979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8981 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8982 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8983 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 ac_check_lib_save_LIBS=$LIBS
8988 cat >conftest.$ac_ext <<_ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8995 /* Override any gcc2 internal prototype to avoid an error. */
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9014 grep -v '^ *+' conftest.er1 >conftest.err
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; } &&
9025 { ac_try='test -s conftest$ac_exeext'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9031 ac_cv_lib_svld_dlopen=yes
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 ac_cv_lib_svld_dlopen=no
9038 rm -f conftest.err conftest.$ac_objext \
9039 conftest$ac_exeext conftest.$ac_ext
9040 LIBS=$ac_check_lib_save_LIBS
9042 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9043 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9044 if test $ac_cv_lib_svld_dlopen = yes; then
9045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9047 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9048 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 ac_check_lib_save_LIBS=$LIBS
9054 cat >conftest.$ac_ext <<_ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9061 /* Override any gcc2 internal prototype to avoid an error. */
9065 /* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */
9076 rm -f conftest.$ac_objext conftest$ac_exeext
9077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9078 (eval $ac_link) 2>conftest.er1
9080 grep -v '^ *+' conftest.er1 >conftest.err
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; } &&
9091 { ac_try='test -s conftest$ac_exeext'
9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_cv_lib_dld_dld_link=yes
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9102 ac_cv_lib_dld_dld_link=no
9104 rm -f conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext conftest.$ac_ext
9106 LIBS=$ac_check_lib_save_LIBS
9108 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9109 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9110 if test $ac_cv_lib_dld_dld_link = yes; then
9111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9132 if test "x$lt_cv_dlopen" != xno; then
9138 case $lt_cv_dlopen in
9140 save_CPPFLAGS="$CPPFLAGS"
9141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9143 save_LDFLAGS="$LDFLAGS"
9144 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9147 LIBS="$lt_cv_dlopen_libs $LIBS"
9149 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9150 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9151 if test "${lt_cv_dlopen_self+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 if test "$cross_compiling" = yes; then :
9155 lt_cv_dlopen_self=cross
9157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9158 lt_status=$lt_dlunknown
9159 cat > conftest.$ac_ext <<EOF
9160 #line 9160 "configure"
9161 #include "confdefs.h"
9170 # define LT_DLGLOBAL RTLD_GLOBAL
9173 # define LT_DLGLOBAL DL_GLOBAL
9175 # define LT_DLGLOBAL 0
9179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9180 find out it does not work in some platform. */
9181 #ifndef LT_DLLAZY_OR_NOW
9183 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9186 # define LT_DLLAZY_OR_NOW DL_LAZY
9189 # define LT_DLLAZY_OR_NOW RTLD_NOW
9192 # define LT_DLLAZY_OR_NOW DL_NOW
9194 # define LT_DLLAZY_OR_NOW 0
9202 extern "C" void exit (int);
9205 void fnord() { int i=42;}
9208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9209 int status = $lt_dlunknown;
9213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9214 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9215 /* dlclose (self); */
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9226 (./conftest; exit; ) 2>/dev/null
9229 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9230 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9231 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9234 # compilation failed
9235 lt_cv_dlopen_self=no
9242 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9243 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9245 if test "x$lt_cv_dlopen_self" = xyes; then
9246 LDFLAGS="$LDFLAGS $link_static_flag"
9247 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9248 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9249 if test "${lt_cv_dlopen_self_static+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 if test "$cross_compiling" = yes; then :
9253 lt_cv_dlopen_self_static=cross
9255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9256 lt_status=$lt_dlunknown
9257 cat > conftest.$ac_ext <<EOF
9258 #line 9258 "configure"
9259 #include "confdefs.h"
9268 # define LT_DLGLOBAL RTLD_GLOBAL
9271 # define LT_DLGLOBAL DL_GLOBAL
9273 # define LT_DLGLOBAL 0
9277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9278 find out it does not work in some platform. */
9279 #ifndef LT_DLLAZY_OR_NOW
9281 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9284 # define LT_DLLAZY_OR_NOW DL_LAZY
9287 # define LT_DLLAZY_OR_NOW RTLD_NOW
9290 # define LT_DLLAZY_OR_NOW DL_NOW
9292 # define LT_DLLAZY_OR_NOW 0
9300 extern "C" void exit (int);
9303 void fnord() { int i=42;}
9306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9307 int status = $lt_dlunknown;
9311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9312 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9313 /* dlclose (self); */
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9324 (./conftest; exit; ) 2>/dev/null
9327 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9328 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9329 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9332 # compilation failed
9333 lt_cv_dlopen_self_static=no
9340 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9341 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9344 CPPFLAGS="$save_CPPFLAGS"
9345 LDFLAGS="$save_LDFLAGS"
9350 case $lt_cv_dlopen_self in
9351 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9352 *) enable_dlopen_self=unknown ;;
9355 case $lt_cv_dlopen_self_static in
9356 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9357 *) enable_dlopen_self_static=unknown ;;
9362 # Report which librarie types wil actually be built
9363 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9364 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9365 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9366 echo "${ECHO_T}$can_build_shared" >&6
9368 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9369 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9370 test "$can_build_shared" = "no" && enable_shared=no
9372 # On AIX, shared libraries and static libraries use the same namespace, and
9373 # are all built from PIC.
9376 test "$enable_shared" = yes && enable_static=no
9377 if test -n "$RANLIB"; then
9378 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9379 postinstall_cmds='$RANLIB $lib'
9384 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9385 test "$enable_shared" = yes && enable_static=no
9388 darwin* | rhapsody*)
9389 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9390 archive_cmds_need_lc=no
9392 rhapsody* | darwin1.[012])
9393 allow_undefined_flag='-undefined suppress'
9396 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9399 # FIXME: Relying on posixy $() will cause problems for
9400 # cross-compilation, but unfortunately the echo tests do not
9401 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
9402 # `"' quotes if we put them in here... so don't!
9403 output_verbose_link_cmd='echo'
9404 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9405 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9407 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}'
9408 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9410 hardcode_automatic=yes
9411 hardcode_shlibpath_var=unsupported
9412 whole_archive_flag_spec='-all_load $convenience'
9413 link_all_deplibs=yes
9417 echo "$as_me:$LINENO: result: $enable_shared" >&5
9418 echo "${ECHO_T}$enable_shared" >&6
9420 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9421 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9422 # Make sure either enable_shared or enable_static is yes.
9423 test "$enable_shared" = yes || enable_static=yes
9424 echo "$as_me:$LINENO: result: $enable_static" >&5
9425 echo "${ECHO_T}$enable_static" >&6
9427 # The else clause should only fire when bootstrapping the
9428 # libtool distribution, otherwise you forgot to ship ltmain.sh
9429 # with your package, and you will get complaints that there are
9430 # no rules to generate ltmain.sh.
9431 if test -f "$ltmain"; then
9432 # See if we are running on zsh, and set the options which allow our commands through
9433 # without removal of \ escapes.
9434 if test -n "${ZSH_VERSION+set}" ; then
9435 setopt NO_GLOB_SUBST
9437 # Now quote all the things that may contain metacharacters while being
9438 # careful not to overquote the AC_SUBSTed values. We take copies of the
9439 # variables and quote the copies for generation of the libtool script.
9440 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9441 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9442 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9443 deplibs_check_method reload_flag reload_cmds need_locks \
9444 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9445 lt_cv_sys_global_symbol_to_c_name_address \
9446 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9447 old_postinstall_cmds old_postuninstall_cmds \
9451 lt_prog_compiler_wl \
9452 lt_prog_compiler_pic \
9453 lt_prog_compiler_static \
9454 lt_prog_compiler_no_builtin_flag \
9455 export_dynamic_flag_spec \
9456 thread_safe_flag_spec \
9457 whole_archive_flag_spec \
9458 enable_shared_with_static_runtimes \
9460 old_archive_from_new_cmds \
9465 compiler_lib_search_path \
9467 archive_expsym_cmds \
9469 postuninstall_cmds \
9470 old_archive_from_expsyms_cmds \
9471 allow_undefined_flag \
9473 export_symbols_cmds \
9474 hardcode_libdir_flag_spec \
9475 hardcode_libdir_flag_spec_ld \
9476 hardcode_libdir_separator \
9477 hardcode_automatic \
9479 module_expsym_cmds \
9480 lt_cv_prog_compiler_c_o \
9485 old_archive_cmds | \
9486 old_archive_from_new_cmds | \
9488 archive_expsym_cmds | \
9490 module_expsym_cmds | \
9491 old_archive_from_expsyms_cmds | \
9492 export_symbols_cmds | \
9493 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9494 postinstall_cmds | postuninstall_cmds | \
9495 old_postinstall_cmds | old_postuninstall_cmds | \
9496 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9497 # Double-quote double-evaled strings.
9498 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9501 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9507 *'\$0 --fallback-echo"')
9508 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9513 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9515 { echo "$as_me:$LINENO: creating $ofile" >&5
9516 echo "$as_me: creating $ofile" >&6;}
9518 cat <<__EOF__ >> "$cfgfile"
9521 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9522 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9523 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9525 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9526 # Free Software Foundation, Inc.
9528 # This file is part of GNU Libtool:
9529 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9531 # This program is free software; you can redistribute it and/or modify
9532 # it under the terms of the GNU General Public License as published by
9533 # the Free Software Foundation; either version 2 of the License, or
9534 # (at your option) any later version.
9536 # This program is distributed in the hope that it will be useful, but
9537 # WITHOUT ANY WARRANTY; without even the implied warranty of
9538 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9539 # General Public License for more details.
9541 # You should have received a copy of the GNU General Public License
9542 # along with this program; if not, write to the Free Software
9543 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9545 # As a special exception to the GNU General Public License, if you
9546 # distribute this file as part of a program that contains a
9547 # configuration script generated by Autoconf, you may include it under
9548 # the same distribution terms that you use for the rest of that program.
9550 # A sed program that does not truncate output.
9553 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9554 Xsed="$SED -e s/^X//"
9556 # The HP-UX ksh and POSIX shell print the target directory to stdout
9558 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9560 # The names of the tagged configurations supported by this script.
9563 # ### BEGIN LIBTOOL CONFIG
9565 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9567 # Shell to use when invoking shell scripts.
9570 # Whether or not to build shared libraries.
9571 build_libtool_libs=$enable_shared
9573 # Whether or not to build static libraries.
9574 build_old_libs=$enable_static
9576 # Whether or not to add -lc for building shared libraries.
9577 build_libtool_need_lc=$archive_cmds_need_lc
9579 # Whether or not to disallow shared libs when runtime libs are static
9580 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9582 # Whether or not to optimize for fast installation.
9583 fast_install=$enable_fast_install
9586 host_alias=$host_alias
9589 # An echo program that does not interpret backslashes.
9594 AR_FLAGS=$lt_AR_FLAGS
9599 # A language-specific compiler.
9602 # Is the compiler the GNU C compiler?
9608 # The linker used to build libraries.
9611 # Whether we need hard or soft links.
9614 # A BSD-compatible nm program.
9617 # A symbol stripping program
9620 # Used to examine libraries when file_magic_cmd begins "file"
9621 MAGIC_CMD=$MAGIC_CMD
9623 # Used on cygwin: DLL creation program.
9626 # Used on cygwin: object dumper.
9629 # Used on cygwin: assembler.
9632 # The name of the directory that contains temporary libtool files.
9635 # How to create reloadable object files.
9636 reload_flag=$lt_reload_flag
9637 reload_cmds=$lt_reload_cmds
9639 # How to pass a linker flag through the compiler.
9640 wl=$lt_lt_prog_compiler_wl
9642 # Object file suffix (normally "o").
9645 # Old archive suffix (normally "a").
9648 # Shared library suffix (normally ".so").
9651 # Executable file suffix (normally "").
9654 # Additional compiler flags for building library objects.
9655 pic_flag=$lt_lt_prog_compiler_pic
9658 # What is the maximum length of a command?
9659 max_cmd_len=$lt_cv_sys_max_cmd_len
9661 # Does compiler simultaneously support -c and -o options?
9662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9664 # Must we lock files when doing compilation ?
9665 need_locks=$lt_need_locks
9667 # Do we need the lib prefix for modules?
9668 need_lib_prefix=$need_lib_prefix
9670 # Do we need a version for libraries?
9671 need_version=$need_version
9673 # Whether dlopen is supported.
9674 dlopen_support=$enable_dlopen
9676 # Whether dlopen of programs is supported.
9677 dlopen_self=$enable_dlopen_self
9679 # Whether dlopen of statically linked programs is supported.
9680 dlopen_self_static=$enable_dlopen_self_static
9682 # Compiler flag to prevent dynamic linking.
9683 link_static_flag=$lt_lt_prog_compiler_static
9685 # Compiler flag to turn off builtin functions.
9686 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9688 # Compiler flag to allow reflexive dlopens.
9689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9691 # Compiler flag to generate shared objects directly from archives.
9692 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9694 # Compiler flag to generate thread-safe objects.
9695 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9697 # Library versioning type.
9698 version_type=$version_type
9700 # Format of library name prefix.
9701 libname_spec=$lt_libname_spec
9703 # List of archive names. First name is the real one, the rest are links.
9704 # The last name is the one that the linker finds with -lNAME.
9705 library_names_spec=$lt_library_names_spec
9707 # The coded name of the library, if different from the real name.
9708 soname_spec=$lt_soname_spec
9710 # Commands used to build and install an old-style archive.
9712 old_archive_cmds=$lt_old_archive_cmds
9713 old_postinstall_cmds=$lt_old_postinstall_cmds
9714 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9716 # Create an old-style archive from a shared archive.
9717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9719 # Create a temporary old-style archive to link instead of a shared archive.
9720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9722 # Commands used to build and install a shared archive.
9723 archive_cmds=$lt_archive_cmds
9724 archive_expsym_cmds=$lt_archive_expsym_cmds
9725 postinstall_cmds=$lt_postinstall_cmds
9726 postuninstall_cmds=$lt_postuninstall_cmds
9728 # Commands used to build a loadable module (assumed same as above if empty)
9729 module_cmds=$lt_module_cmds
9730 module_expsym_cmds=$lt_module_expsym_cmds
9732 # Commands to strip libraries.
9733 old_striplib=$lt_old_striplib
9734 striplib=$lt_striplib
9736 # Dependencies to place before the objects being linked to create a
9738 predep_objects=$lt_predep_objects
9740 # Dependencies to place after the objects being linked to create a
9742 postdep_objects=$lt_postdep_objects
9744 # Dependencies to place before the objects being linked to create a
9748 # Dependencies to place after the objects being linked to create a
9750 postdeps=$lt_postdeps
9752 # The library search path used internally by the compiler when linking
9754 compiler_lib_search_path=$lt_compiler_lib_search_path
9756 # Method to check whether dependent libraries are shared objects.
9757 deplibs_check_method=$lt_deplibs_check_method
9759 # Command to use when deplibs_check_method == file_magic.
9760 file_magic_cmd=$lt_file_magic_cmd
9762 # Flag that allows shared libraries with undefined symbols to be built.
9763 allow_undefined_flag=$lt_allow_undefined_flag
9765 # Flag that forces no undefined symbols.
9766 no_undefined_flag=$lt_no_undefined_flag
9768 # Commands used to finish a libtool library installation in a directory.
9769 finish_cmds=$lt_finish_cmds
9771 # Same as above, but a single script fragment to be evaled but not shown.
9772 finish_eval=$lt_finish_eval
9774 # Take the output of nm and produce a listing of raw symbols and C names.
9775 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9777 # Transform the output of nm in a proper C declaration
9778 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9780 # Transform the output of nm in a C name address pair
9781 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9783 # This is the shared library runtime path variable.
9784 runpath_var=$runpath_var
9786 # This is the shared library path variable.
9787 shlibpath_var=$shlibpath_var
9789 # Is shlibpath searched before the hard-coded library search path?
9790 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9792 # How to hardcode a shared library path into an executable.
9793 hardcode_action=$hardcode_action
9795 # Whether we should hardcode library paths into libraries.
9796 hardcode_into_libs=$hardcode_into_libs
9798 # Flag to hardcode \$libdir into a binary during linking.
9799 # This must work even if \$libdir does not exist.
9800 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9802 # If ld is used when linking, flag to hardcode \$libdir into
9803 # a binary during linking. This must work even if \$libdir does
9805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9807 # Whether we need a single -rpath flag with a separated argument.
9808 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9810 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9812 hardcode_direct=$hardcode_direct
9814 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9816 hardcode_minus_L=$hardcode_minus_L
9818 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9819 # the resulting binary.
9820 hardcode_shlibpath_var=$hardcode_shlibpath_var
9822 # Set to yes if building a shared library automatically hardcodes DIR into the library
9823 # and all subsequent libraries and executables linked against it.
9824 hardcode_automatic=$hardcode_automatic
9826 # Variables whose values should be saved in libtool wrapper scripts and
9827 # restored at relink time.
9828 variables_saved_for_relink="$variables_saved_for_relink"
9830 # Whether libtool must link a program against all its dependency libraries.
9831 link_all_deplibs=$link_all_deplibs
9833 # Compile-time system search path for libraries
9834 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9836 # Run-time system search path for libraries
9837 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9839 # Fix the shell variable \$srcfile for the compiler.
9840 fix_srcfile_path="$fix_srcfile_path"
9842 # Set to yes if exported symbols are required.
9843 always_export_symbols=$always_export_symbols
9845 # The commands to list exported symbols.
9846 export_symbols_cmds=$lt_export_symbols_cmds
9848 # The commands to extract the exported symbol list from a shared archive.
9849 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9851 # Symbols that should not be listed in the preloaded symbols.
9852 exclude_expsyms=$lt_exclude_expsyms
9854 # Symbols that must always be exported.
9855 include_expsyms=$lt_include_expsyms
9857 # ### END LIBTOOL CONFIG
9864 cat <<\EOF >> "$cfgfile"
9866 # AIX sometimes has problems with the GCC collect2 program. For some
9867 # reason, if we set the COLLECT_NAMES environment variable, the problems
9868 # vanish in a puff of smoke.
9869 if test "X${COLLECT_NAMES+set}" != Xset; then
9871 export COLLECT_NAMES
9877 # We use sed instead of cat because bash on DJGPP gets confused if
9878 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9879 # text mode, it properly converts lines to CR/LF. This bash problem
9880 # is reportedly fixed, but why not run on old versions too?
9881 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9883 mv -f "$cfgfile" "$ofile" || \
9884 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9888 # If there is no Makefile yet, we rely on a make rule to execute
9889 # `config.status --recheck' to rerun these tests and create the
9890 # libtool script then.
9891 test -f Makefile && make "$ltmain"
9896 ac_cpp='$CPP $CPPFLAGS'
9897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9904 # Check whether --with-tags or --without-tags was given.
9905 if test "${with_tags+set}" = set; then
9906 withval="$with_tags"
9910 if test -f "$ltmain" && test -n "$tagnames"; then
9911 if test ! -f "${ofile}"; then
9912 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9913 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9916 if test -z "$LTCC"; then
9917 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9918 if test -z "$LTCC"; then
9919 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9920 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9923 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9927 # Extract list of available tagged configurations in $ofile.
9928 # Note that this assumes the entire list is on one line.
9929 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9932 for tagname in $tagnames; do
9934 # Check whether tagname contains only valid characters
9935 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9937 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9938 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9939 { (exit 1); exit 1; }; }
9943 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9945 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9946 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9947 { (exit 1); exit 1; }; }
9950 # Update the list of available tags.
9951 if test -n "$tagname"; then
9952 echo appending configuration tag \"$tagname\" to $ofile
9956 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9958 ac_cpp='$CXXCPP $CPPFLAGS'
9959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9966 archive_cmds_need_lc_CXX=no
9967 allow_undefined_flag_CXX=
9968 always_export_symbols_CXX=no
9969 archive_expsym_cmds_CXX=
9970 export_dynamic_flag_spec_CXX=
9971 hardcode_direct_CXX=no
9972 hardcode_libdir_flag_spec_CXX=
9973 hardcode_libdir_flag_spec_ld_CXX=
9974 hardcode_libdir_separator_CXX=
9975 hardcode_minus_L_CXX=no
9976 hardcode_automatic_CXX=no
9978 module_expsym_cmds_CXX=
9979 link_all_deplibs_CXX=unknown
9980 old_archive_cmds_CXX=$old_archive_cmds
9981 no_undefined_flag_CXX=
9982 whole_archive_flag_spec_CXX=
9983 enable_shared_with_static_runtimes_CXX=no
9985 # Dependencies to place before and after the object being linked:
9987 postdep_objects_CXX=
9990 compiler_lib_search_path_CXX=
9992 # Source file extension for C++ test sources.
9995 # Object file extension for compiled C++ test sources.
9999 # Code to be used in simple compile tests
10000 lt_simple_compile_test_code="int some_variable = 0;\n"
10002 # Code to be used in simple link tests
10003 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10005 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10007 # If no C compiler was specified, use CC.
10010 # Allow CC to be a program name with arguments.
10014 # Allow CC to be a program name with arguments.
10019 lt_save_with_gnu_ld=$with_gnu_ld
10020 lt_save_path_LD=$lt_cv_path_LD
10021 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10022 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10024 unset lt_cv_prog_gnu_ld
10026 if test -n "${lt_cv_path_LDCXX+set}"; then
10027 lt_cv_path_LD=$lt_cv_path_LDCXX
10029 unset lt_cv_path_LD
10031 test -z "${LDCXX+set}" || LD=$LDCXX
10035 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10037 # We don't want -fno-exception wen compiling C++ code, so set the
10038 # no_builtin_flag separately
10039 if test "$GXX" = yes; then
10040 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10042 lt_prog_compiler_no_builtin_flag_CXX=
10045 if test "$GXX" = yes; then
10046 # Set up default GNU C++ configuration
10049 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10050 if test "${with_gnu_ld+set}" = set; then
10051 withval="$with_gnu_ld"
10052 test "$withval" = no || with_gnu_ld=yes
10057 if test "$GCC" = yes; then
10058 # Check if gcc -print-prog-name=ld gives a path.
10059 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10060 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10063 # gcc leaves a trailing carriage return which upsets mingw
10064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10069 # Accept absolute paths.
10071 re_direlt='/[^/][^/]*/\.\./'
10072 # Canonicalize the path of ld
10073 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10074 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10075 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10077 test -z "$LD" && LD="$ac_prog"
10080 # If it fails, then pretend we aren't using GCC.
10084 # If it is relative, then search for the first ld in PATH.
10085 with_gnu_ld=unknown
10088 elif test "$with_gnu_ld" = yes; then
10089 echo "$as_me:$LINENO: checking for GNU ld" >&5
10090 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10092 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10093 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10095 if test "${lt_cv_path_LD+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 if test -z "$LD"; then
10099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10100 for ac_dir in $PATH; do
10102 test -z "$ac_dir" && ac_dir=.
10103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10104 lt_cv_path_LD="$ac_dir/$ac_prog"
10105 # Check to see if the program is GNU ld. I'd rather use --version,
10106 # but apparently some GNU ld's only accept -v.
10107 # Break only if it was the GNU/non-GNU ld that we prefer.
10108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10109 *GNU* | *'with BFD'*)
10110 test "$with_gnu_ld" != no && break
10113 test "$with_gnu_ld" != yes && break
10120 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10124 LD="$lt_cv_path_LD"
10125 if test -n "$LD"; then
10126 echo "$as_me:$LINENO: result: $LD" >&5
10127 echo "${ECHO_T}$LD" >&6
10129 echo "$as_me:$LINENO: result: no" >&5
10130 echo "${ECHO_T}no" >&6
10132 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10133 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10134 { (exit 1); exit 1; }; }
10135 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10136 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10137 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10141 case `"$LD" -v 2>&1 </dev/null` in
10142 *GNU* | *'with BFD'*)
10143 lt_cv_prog_gnu_ld=yes
10146 lt_cv_prog_gnu_ld=no
10150 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10151 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10152 with_gnu_ld=$lt_cv_prog_gnu_ld
10156 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10157 # archiving commands below assume that GNU ld is being used.
10158 if test "$with_gnu_ld" = yes; then
10159 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160 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'
10162 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10165 # If archive_cmds runs LD, not CC, wlarc should be empty
10166 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10167 # investigate it a little bit more. (MM)
10170 # ancient GNU ld didn't support --whole-archive et. al.
10171 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10172 grep 'no-whole-archive' > /dev/null; then
10173 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10175 whole_archive_flag_spec_CXX=
10181 # A generic and very simple default shared library creation
10182 # command for GNU C++ for the case where it uses the native
10183 # linker, instead of GNU ld. If possible, this setting should
10184 # overridden to take advantage of the native linker features on
10185 # the platform it is being used on.
10186 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10189 # Commands to make compiler produce verbose output that lists
10190 # what "hidden" libraries, object files and flags are used when
10191 # linking a shared library.
10192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10200 # PORTME: fill in a description of your system's C++ link characteristics
10201 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10202 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10206 # FIXME: insert proper C++ library support
10210 if test "$host_cpu" = ia64; then
10211 # On IA64, the linker does run time linking by default, so we don't
10212 # have to do anything special.
10213 aix_use_runtimelinking=no
10214 exp_sym_flag='-Bexport'
10217 aix_use_runtimelinking=no
10219 # Test if we are trying to use run time linking or normal
10220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10221 # need to do runtime linking.
10222 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10223 for ld_flag in $LDFLAGS; do
10226 aix_use_runtimelinking=yes
10233 exp_sym_flag='-bexport'
10234 no_entry_flag='-bnoentry'
10237 # When large executables or shared objects are built, AIX ld can
10238 # have problems creating the table of contents. If linking a library
10239 # or program results in "error TOC overflow" add -mminimal-toc to
10240 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10241 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10243 archive_cmds_CXX=''
10244 hardcode_direct_CXX=yes
10245 hardcode_libdir_separator_CXX=':'
10246 link_all_deplibs_CXX=yes
10248 if test "$GXX" = yes; then
10249 case $host_os in aix4.012|aix4.012.*)
10250 # We only want to do this on AIX 4.2 and lower, the check
10251 # below for broken collect2 doesn't work under 4.3+
10252 collect2name=`${CC} -print-prog-name=collect2`
10253 if test -f "$collect2name" && \
10254 strings "$collect2name" | grep resolve_lib_name >/dev/null
10256 # We have reworked collect2
10257 hardcode_direct_CXX=yes
10259 # We have old collect2
10260 hardcode_direct_CXX=unsupported
10261 # It fails to find uninstalled libraries when the uninstalled
10262 # path is not listed in the libpath. Setting hardcode_minus_L
10263 # to unsupported forces relinking
10264 hardcode_minus_L_CXX=yes
10265 hardcode_libdir_flag_spec_CXX='-L$libdir'
10266 hardcode_libdir_separator_CXX=
10269 shared_flag='-shared'
10272 if test "$host_cpu" = ia64; then
10273 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10274 # chokes on -Wl,-G. The following line is correct:
10277 if test "$aix_use_runtimelinking" = yes; then
10278 shared_flag='${wl}-G'
10280 shared_flag='${wl}-bM:SRE'
10285 # It seems that -bexpall does not export symbols beginning with
10286 # underscore (_), so it is better to generate a list of symbols to export.
10287 always_export_symbols_CXX=yes
10288 if test "$aix_use_runtimelinking" = yes; then
10289 # Warning - without using the other runtime loading flags (-brtl),
10290 # -berok will link without error, but may produce a broken library.
10291 allow_undefined_flag_CXX='-berok'
10292 # Determine the default libpath from the value encoded in an empty executable.
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>conftest.er1
10312 grep -v '^ *+' conftest.er1 >conftest.err
10314 cat conftest.err >&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest$ac_exeext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10332 # Check for a 64-bit object if we didn't find anything.
10333 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10340 rm -f conftest.err conftest.$ac_objext \
10341 conftest$ac_exeext conftest.$ac_ext
10342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10344 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10346 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $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"
10348 if test "$host_cpu" = ia64; then
10349 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10350 allow_undefined_flag_CXX="-z nodefs"
10351 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10353 # Determine the default libpath from the value encoded in an empty executable.
10354 cat >conftest.$ac_ext <<_ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371 (eval $ac_link) 2>conftest.er1
10373 grep -v '^ *+' conftest.er1 >conftest.err
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; } &&
10384 { ac_try='test -s conftest$ac_exeext'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; }; then
10391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10393 # Check for a 64-bit object if we didn't find anything.
10394 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; }
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10401 rm -f conftest.err conftest.$ac_objext \
10402 conftest$ac_exeext conftest.$ac_ext
10403 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10405 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10406 # Warning - without using the other run time loading flags,
10407 # -berok will link without error, but may produce a broken library.
10408 no_undefined_flag_CXX=' ${wl}-bernotok'
10409 allow_undefined_flag_CXX=' ${wl}-berok'
10410 # -bexpall does not export symbols beginning with underscore (_)
10411 always_export_symbols_CXX=yes
10412 # Exported symbols can be pulled into shared objects from archives
10413 whole_archive_flag_spec_CXX=' '
10414 archive_cmds_need_lc_CXX=yes
10415 # This is similar to how AIX traditionally builds it's shared libraries.
10416 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'
10421 case $cc_basename in
10423 # FIXME: insert proper C++ library support
10429 cygwin* | mingw* | pw32*)
10430 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10431 # as there is no search path for DLLs.
10432 hardcode_libdir_flag_spec_CXX='-L$libdir'
10433 allow_undefined_flag_CXX=unsupported
10434 always_export_symbols_CXX=no
10435 enable_shared_with_static_runtimes_CXX=yes
10437 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10438 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'
10439 # If the export-symbols file already is a .def file (1st line
10440 # is EXPORTS), use it as is; otherwise, prepend...
10441 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10442 cp $export_symbols $output_objdir/$soname.def;
10444 echo EXPORTS > $output_objdir/$soname.def;
10445 cat $export_symbols >> $output_objdir/$soname.def;
10447 $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'
10453 darwin* | rhapsody*)
10454 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10455 archive_cmds_need_lc_CXX=no
10457 rhapsody* | darwin1.[012])
10458 allow_undefined_flag_CXX='-undefined suppress'
10461 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10464 lt_int_apple_cc_single_mod=no
10465 output_verbose_link_cmd='echo'
10466 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10467 lt_int_apple_cc_single_mod=yes
10469 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10470 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10472 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10474 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10476 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10477 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10478 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}'
10480 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10482 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10483 hardcode_direct_CXX=no
10484 hardcode_automatic_CXX=yes
10485 hardcode_shlibpath_var_CXX=unsupported
10486 whole_archive_flag_spec_CXX='-all_load $convenience'
10487 link_all_deplibs_CXX=yes
10492 case $cc_basename in
10494 # FIXME: insert proper C++ library support
10498 # Green Hills C++ Compiler
10499 # FIXME: insert proper C++ library support
10503 # FIXME: insert proper C++ library support
10509 # C++ shared libraries reported to be fairly broken before switch to ELF
10513 archive_cmds_need_lc_CXX=no
10516 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10523 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10524 hardcode_libdir_separator_CXX=:
10525 export_dynamic_flag_spec_CXX='${wl}-E'
10526 hardcode_direct_CXX=yes
10527 hardcode_minus_L_CXX=yes # Not in the search PATH,
10528 # but as the default
10529 # location of the library.
10531 case $cc_basename in
10533 # FIXME: insert proper C++ library support
10537 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'
10538 # Commands to make compiler produce verbose output that lists
10539 # what "hidden" libraries, object files and flags are used when
10540 # linking a shared library.
10542 # There doesn't appear to be a way to prevent this compiler from
10543 # explicitly linking system object files so we need to strip them
10544 # from the output so that they don't get included in the library
10546 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10549 if test "$GXX" = yes; then
10550 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'
10552 # FIXME: insert proper C++ library support
10559 if test $with_gnu_ld = no; then
10560 case "$host_cpu" in
10562 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10563 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10564 hardcode_libdir_separator_CXX=:
10567 hardcode_libdir_flag_spec_CXX='-L$libdir'
10570 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10571 hardcode_libdir_separator_CXX=:
10572 export_dynamic_flag_spec_CXX='${wl}-E'
10576 case "$host_cpu" in
10578 hardcode_direct_CXX=no
10579 hardcode_shlibpath_var_CXX=no
10582 hardcode_direct_CXX=no
10583 hardcode_shlibpath_var_CXX=no
10584 hardcode_minus_L_CXX=yes # Not in the search PATH,
10585 # but as the default
10586 # location of the library.
10589 hardcode_direct_CXX=yes
10590 hardcode_minus_L_CXX=yes # Not in the search PATH,
10591 # but as the default
10592 # location of the library.
10596 case $cc_basename in
10598 # FIXME: insert proper C++ library support
10602 case "$host_cpu" in
10604 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10607 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10610 # Commands to make compiler produce verbose output that lists
10611 # what "hidden" libraries, object files and flags are used when
10612 # linking a shared library.
10614 # There doesn't appear to be a way to prevent this compiler from
10615 # explicitly linking system object files so we need to strip them
10616 # from the output so that they don't get included in the library
10618 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'
10621 if test "$GXX" = yes; then
10622 if test $with_gnu_ld = no; then
10623 case "$host_cpu" in
10625 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10628 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'
10633 # FIXME: insert proper C++ library support
10640 case $cc_basename in
10643 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10645 # Archives containing C++ object files must be created using
10646 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10647 # necessary to make sure instantiated templates are included
10649 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10652 if test "$GXX" = yes; then
10653 if test "$with_gnu_ld" = no; then
10654 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10656 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'
10659 link_all_deplibs_CXX=yes
10662 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10663 hardcode_libdir_separator_CXX=:
10666 case $cc_basename in
10668 # Kuck and Associates, Inc. (KAI) C++ Compiler
10670 # KCC will only create a shared library if the output file
10671 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10672 # to its proper name (with version) after linking.
10673 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'
10674 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'
10675 # Commands to make compiler produce verbose output that lists
10676 # what "hidden" libraries, object files and flags are used when
10677 # linking a shared library.
10679 # There doesn't appear to be a way to prevent this compiler from
10680 # explicitly linking system object files so we need to strip them
10681 # from the output so that they don't get included in the library
10683 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'
10685 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10686 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10688 # Archives containing C++ object files must be created using
10689 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10690 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10695 archive_cmds_need_lc_CXX=no
10696 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10697 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'
10698 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10699 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10700 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10704 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10705 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'
10707 runpath_var=LD_RUN_PATH
10708 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10709 hardcode_libdir_separator_CXX=:
10711 # Commands to make compiler produce verbose output that lists
10712 # what "hidden" libraries, object files and flags are used when
10713 # linking a shared library.
10715 # There doesn't appear to be a way to prevent this compiler from
10716 # explicitly linking system object files so we need to strip them
10717 # from the output so that they don't get included in the library
10719 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'
10724 # FIXME: insert proper C++ library support
10728 # FIXME: insert proper C++ library support
10732 case $cc_basename in
10734 # FIXME: insert proper C++ library support
10738 # FIXME: insert proper C++ library support
10744 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10745 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10747 hardcode_libdir_flag_spec_CXX='-R$libdir'
10748 hardcode_direct_CXX=yes
10749 hardcode_shlibpath_var_CXX=no
10751 # Workaround some broken pre-1.5 toolchains
10752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10755 case $cc_basename in
10757 # Kuck and Associates, Inc. (KAI) C++ Compiler
10759 # KCC will only create a shared library if the output file
10760 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10761 # to its proper name (with version) after linking.
10762 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'
10764 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10765 hardcode_libdir_separator_CXX=:
10767 # Archives containing C++ object files must be created using
10768 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10769 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10773 # Rational C++ 2.4.1
10774 # FIXME: insert proper C++ library support
10778 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10779 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10781 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10782 hardcode_libdir_separator_CXX=:
10784 # Commands to make compiler produce verbose output that lists
10785 # what "hidden" libraries, object files and flags are used when
10786 # linking a shared library.
10788 # There doesn't appear to be a way to prevent this compiler from
10789 # explicitly linking system object files so we need to strip them
10790 # from the output so that they don't get included in the library
10792 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'
10795 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10796 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10797 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10800 hardcode_libdir_separator_CXX=:
10802 # Commands to make compiler produce verbose output that lists
10803 # what "hidden" libraries, object files and flags are used when
10804 # linking a shared library.
10805 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10808 # FIXME: insert proper C++ library support
10815 case $cc_basename in
10817 # Kuck and Associates, Inc. (KAI) C++ Compiler
10819 # KCC will only create a shared library if the output file
10820 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10821 # to its proper name (with version) after linking.
10822 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'
10824 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10825 hardcode_libdir_separator_CXX=:
10827 # Archives containing C++ object files must be created using
10828 # the KAI C++ compiler.
10829 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10832 # Rational C++ 2.4.1
10833 # FIXME: insert proper C++ library support
10837 allow_undefined_flag_CXX=' -expect_unresolved \*'
10838 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10839 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10840 echo "-hidden">> $lib.exp~
10841 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10844 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10845 hardcode_libdir_separator_CXX=:
10847 # Commands to make compiler produce verbose output that lists
10848 # what "hidden" libraries, object files and flags are used when
10849 # linking a shared library.
10851 # There doesn't appear to be a way to prevent this compiler from
10852 # explicitly linking system object files so we need to strip them
10853 # from the output so that they don't get included in the library
10855 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'
10858 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10859 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10860 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10862 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10863 hardcode_libdir_separator_CXX=:
10865 # Commands to make compiler produce verbose output that lists
10866 # what "hidden" libraries, object files and flags are used when
10867 # linking a shared library.
10868 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10871 # FIXME: insert proper C++ library support
10878 # FIXME: insert proper C++ library support
10882 archive_cmds_need_lc_CXX=no
10883 case $cc_basename in
10885 # FIXME: insert proper C++ library support
10889 # FIXME: insert proper C++ library support
10895 case $cc_basename in
10898 # FIXME: insert proper C++ library support
10903 # FIXME: insert proper C++ library support
10907 # FIXME: insert proper C++ library support
10913 case $cc_basename in
10915 # Sun C++ 4.2, 5.x and Centerline C++
10916 no_undefined_flag_CXX=' -zdefs'
10917 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10918 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10919 $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'
10921 hardcode_libdir_flag_spec_CXX='-R$libdir'
10922 hardcode_shlibpath_var_CXX=no
10924 solaris2.0-5 | solaris2.0-5.*) ;;
10926 # The C++ compiler is used as linker so we must use $wl
10927 # flag to pass the commands to the underlying system
10929 # Supported since Solaris 2.6 (maybe 2.5.1?)
10930 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10933 link_all_deplibs_CXX=yes
10935 # Commands to make compiler produce verbose output that lists
10936 # what "hidden" libraries, object files and flags are used when
10937 # linking a shared library.
10939 # There doesn't appear to be a way to prevent this compiler from
10940 # explicitly linking system object files so we need to strip them
10941 # from the output so that they don't get included in the library
10943 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'
10945 # Archives containing C++ object files must be created using
10946 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10947 # necessary to make sure instantiated templates are included
10949 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10952 # Green Hills C++ Compiler
10953 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10955 # The C++ compiler must be used to create the archive.
10956 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10959 # GNU C++ compiler with Solaris linker
10960 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10961 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10962 if $CC --version | grep -v '^2\.7' > /dev/null; then
10963 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10964 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10965 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10967 # Commands to make compiler produce verbose output that lists
10968 # what "hidden" libraries, object files and flags are used when
10969 # linking a shared library.
10970 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10972 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10974 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10975 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10976 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10978 # Commands to make compiler produce verbose output that lists
10979 # what "hidden" libraries, object files and flags are used when
10980 # linking a shared library.
10981 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10984 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10989 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10990 archive_cmds_need_lc_CXX=no
10993 case $cc_basename in
10995 # NonStop-UX NCC 3.20
10996 # FIXME: insert proper C++ library support
11000 # FIXME: insert proper C++ library support
11006 # FIXME: insert proper C++ library support
11010 # FIXME: insert proper C++ library support
11014 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11015 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11016 test "$ld_shlibs_CXX" = no && can_build_shared=no
11022 ## There is no encapsulation within the following macros, do not change
11023 ## the running order or otherwise move them around unless you know exactly
11024 ## what you are doing...
11026 cat > conftest.$ac_ext <<EOF
11030 Foo (void) { a = 0; }
11036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11037 (eval $ac_compile) 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; then
11041 # Parse the compiler output and extract the necessary
11042 # objects, libraries and library flags.
11044 # Sentinel used to keep track of whether or not we are before
11045 # the conftest object file.
11046 pre_test_object_deps_done=no
11048 # The `*' in the case matches for architectures that use `case' in
11049 # $output_verbose_cmd can trigger glob expansion during the loop
11050 # eval without this substitution.
11051 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11053 for p in `eval $output_verbose_link_cmd`; do
11057 # Some compilers place space between "-{L,R}" and the path.
11058 # Remove the space.
11059 if test $p = "-L" \
11060 || test $p = "-R"; then
11067 if test "$pre_test_object_deps_done" = no; then
11070 # Internal compiler library paths should come after those
11071 # provided the user. The postdeps already come after the
11072 # user supplied libs so there is no need to process them.
11073 if test -z "$compiler_lib_search_path_CXX"; then
11074 compiler_lib_search_path_CXX="${prev}${p}"
11076 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11079 # The "-l" case would never come before the object being
11080 # linked, so don't bother handling this case.
11083 if test -z "$postdeps_CXX"; then
11084 postdeps_CXX="${prev}${p}"
11086 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11092 # This assumes that the test object file only shows up
11093 # once in the compiler output.
11094 if test "$p" = "conftest.$objext"; then
11095 pre_test_object_deps_done=yes
11099 if test "$pre_test_object_deps_done" = no; then
11100 if test -z "$predep_objects_CXX"; then
11101 predep_objects_CXX="$p"
11103 predep_objects_CXX="$predep_objects_CXX $p"
11106 if test -z "$postdep_objects_CXX"; then
11107 postdep_objects_CXX="$p"
11109 postdep_objects_CXX="$postdep_objects_CXX $p"
11114 *) ;; # Ignore the rest.
11122 echo "libtool.m4: error: problem compiling CXX test program"
11125 $rm -f confest.$objext
11127 case " $postdeps_CXX " in
11128 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11131 lt_prog_compiler_wl_CXX=
11132 lt_prog_compiler_pic_CXX=
11133 lt_prog_compiler_static_CXX=
11135 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11136 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11138 # C++ specific cases for pic, static, wl, etc.
11139 if test "$GXX" = yes; then
11140 lt_prog_compiler_wl_CXX='-Wl,'
11141 lt_prog_compiler_static_CXX='-static'
11145 # All AIX code is PIC.
11146 if test "$host_cpu" = ia64; then
11147 # AIX 5 now supports IA64 processor
11148 lt_prog_compiler_static_CXX='-Bstatic'
11152 # FIXME: we need at least 68020 code to build shared libraries, but
11153 # adding the `-m68020' flag to GCC prevents building anything better,
11155 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11157 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11158 # PIC is the default for these OSes.
11160 mingw* | os2* | pw32*)
11161 # This hack is so that the source file can tell whether it is being
11162 # built for inclusion in a dll (and should export symbols for example).
11163 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11165 darwin* | rhapsody*)
11166 # PIC is the default on this platform
11167 # Common symbols not allowed in MH_DYLIB files
11168 lt_prog_compiler_pic_CXX='-fno-common'
11171 # DJGPP does not support shared libraries at all
11172 lt_prog_compiler_pic_CXX=
11175 if test -d /usr/nec; then
11176 lt_prog_compiler_pic_CXX=-Kconform_pic
11180 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11181 # not for PA HP-UX.
11182 case "$host_cpu" in
11186 lt_prog_compiler_pic_CXX='-fPIC'
11191 lt_prog_compiler_pic_CXX='-fPIC'
11197 # All AIX code is PIC.
11198 if test "$host_cpu" = ia64; then
11199 # AIX 5 now supports IA64 processor
11200 lt_prog_compiler_static_CXX='-Bstatic'
11202 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11206 case $cc_basename in
11208 # Green Hills C++ Compiler
11209 # _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"
11214 case $cc_basename in
11216 lt_prog_compiler_pic_CXX='-KPIC'
11219 # Green Hills C++ Compiler
11220 lt_prog_compiler_pic_CXX='-pic'
11227 # FreeBSD uses GNU C++
11229 hpux9* | hpux10* | hpux11*)
11230 case $cc_basename in
11232 lt_prog_compiler_wl_CXX='-Wl,'
11233 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11234 if test "$host_cpu" != ia64; then
11235 lt_prog_compiler_pic_CXX='+Z'
11239 lt_prog_compiler_wl_CXX='-Wl,'
11240 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11241 case "$host_cpu" in
11246 lt_prog_compiler_pic_CXX='+Z'
11254 irix5* | irix6* | nonstopux*)
11255 case $cc_basename in
11257 lt_prog_compiler_wl_CXX='-Wl,'
11258 lt_prog_compiler_static_CXX='-non_shared'
11259 # CC pic flag -KPIC is the default.
11266 case $cc_basename in
11269 lt_prog_compiler_wl_CXX='--backend -Wl,'
11270 lt_prog_compiler_pic_CXX='-fPIC'
11274 lt_prog_compiler_wl_CXX='-Wl,'
11275 lt_prog_compiler_pic_CXX='-KPIC'
11276 lt_prog_compiler_static_CXX='-static'
11280 # Make sure the PIC flag is empty. It appears that all Alpha
11281 # Linux and Compaq Tru64 Unix objects are PIC.
11282 lt_prog_compiler_pic_CXX=
11283 lt_prog_compiler_static_CXX='-non_shared'
11294 case $cc_basename in
11296 lt_prog_compiler_pic_CXX='-Wextra c,exportall'
11304 osf3* | osf4* | osf5*)
11305 case $cc_basename in
11307 lt_prog_compiler_wl_CXX='--backend -Wl,'
11310 # Rational C++ 2.4.1
11311 lt_prog_compiler_pic_CXX='-pic'
11314 # Digital/Compaq C++
11315 lt_prog_compiler_wl_CXX='-Wl,'
11316 # Make sure the PIC flag is empty. It appears that all Alpha
11317 # Linux and Compaq Tru64 Unix objects are PIC.
11318 lt_prog_compiler_pic_CXX=
11319 lt_prog_compiler_static_CXX='-non_shared'
11328 case $cc_basename in
11330 lt_prog_compiler_pic_CXX='-fPIC'
11337 case $cc_basename in
11339 # Sun C++ 4.2, 5.x and Centerline C++
11340 lt_prog_compiler_pic_CXX='-KPIC'
11341 lt_prog_compiler_static_CXX='-Bstatic'
11342 lt_prog_compiler_wl_CXX='-Qoption ld '
11345 # Green Hills C++ Compiler
11346 lt_prog_compiler_pic_CXX='-PIC'
11353 case $cc_basename in
11356 lt_prog_compiler_pic_CXX='-pic'
11357 lt_prog_compiler_static_CXX='-Bstatic'
11361 lt_prog_compiler_pic_CXX='-pic'
11368 case $cc_basename in
11370 # NonStop-UX NCC 3.20
11371 lt_prog_compiler_pic_CXX='-KPIC'
11382 lt_prog_compiler_can_build_shared_CXX=no
11387 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11388 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11391 # Check to make sure the PIC flag actually works.
11393 if test -n "$lt_prog_compiler_pic_CXX"; then
11394 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11395 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11396 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 lt_prog_compiler_pic_works_CXX=no
11400 ac_outfile=conftest.$ac_objext
11401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11402 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11403 # Insert the option either (1) after the last *FLAGS variable, or
11404 # (2) before a word containing "conftest.", or (3) at the end.
11405 # Note that $ac_compile itself does not contain backslashes and begins
11406 # with a dollar sign (not a hyphen), so the echo should work correctly.
11407 # The option is referenced via a variable to avoid confusing sed.
11408 lt_compile=`echo "$ac_compile" | $SED \
11409 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11411 -e 's:$: $lt_compiler_flag:'`
11412 (eval echo "\"\$as_me:11412: $lt_compile\"" >&5)
11413 (eval "$lt_compile" 2>conftest.err)
11415 cat conftest.err >&5
11416 echo "$as_me:11416: \$? = $ac_status" >&5
11417 if (exit $ac_status) && test -s "$ac_outfile"; then
11418 # The compiler can only warn and ignore the option if not recognized
11419 # So say no if there are warnings
11420 if test ! -s conftest.err; then
11421 lt_prog_compiler_pic_works_CXX=yes
11427 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11428 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11430 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11431 case $lt_prog_compiler_pic_CXX in
11433 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11436 lt_prog_compiler_pic_CXX=
11437 lt_prog_compiler_can_build_shared_CXX=no
11442 # For platforms which do not support PIC, -DPIC is meaningless:
11444 lt_prog_compiler_pic_CXX=
11447 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11451 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11452 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11453 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 lt_cv_prog_compiler_c_o_CXX=no
11457 $rm -r conftest 2>/dev/null
11461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11463 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11464 # that will create temporary files in the current directory regardless of
11465 # the output directory. Thus, making CWD read-only will cause this test
11466 # to fail, enabling locking or at least warning the user not to do parallel
11470 lt_compiler_flag="-o out/conftest2.$ac_objext"
11471 # Insert the option either (1) after the last *FLAGS variable, or
11472 # (2) before a word containing "conftest.", or (3) at the end.
11473 # Note that $ac_compile itself does not contain backslashes and begins
11474 # with a dollar sign (not a hyphen), so the echo should work correctly.
11475 lt_compile=`echo "$ac_compile" | $SED \
11476 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11478 -e 's:$: $lt_compiler_flag:'`
11479 (eval echo "\"\$as_me:11479: $lt_compile\"" >&5)
11480 (eval "$lt_compile" 2>out/conftest.err)
11482 cat out/conftest.err >&5
11483 echo "$as_me:11483: \$? = $ac_status" >&5
11484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11486 # The compiler can only warn and ignore the option if not recognized
11487 # So say no if there are warnings
11488 if test ! -s out/conftest.err; then
11489 lt_cv_prog_compiler_c_o_CXX=yes
11493 $rm conftest* out/*
11500 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11501 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11504 hard_links="nottested"
11505 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11506 # do not overwrite the value of need_locks provided by the user
11507 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11508 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11513 ln conftest.a conftest.b 2>&5 || hard_links=no
11514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11515 echo "$as_me:$LINENO: result: $hard_links" >&5
11516 echo "${ECHO_T}$hard_links" >&6
11517 if test "$hard_links" = no; then
11518 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11519 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11526 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11527 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11529 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11532 # If we're using GNU nm, then we don't want the "-C" option.
11533 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11534 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11535 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'
11537 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'
11541 export_symbols_cmds_CXX="$ltdll_cmds"
11544 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11547 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11551 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11552 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11553 test "$ld_shlibs_CXX" = no && can_build_shared=no
11555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11556 if test "$GCC" = yes; then
11557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11561 # Do we need to explicitly link libc?
11563 case "x$archive_cmds_need_lc_CXX" in
11565 # Assume -lc should be added
11566 archive_cmds_need_lc_CXX=yes
11568 if test "$enable_shared" = yes && test "$GCC" = yes; then
11569 case $archive_cmds_CXX in
11571 # FIXME: we may have to deal with multi-command sequences.
11574 # Test whether the compiler implicitly links with -lc since on some
11575 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11576 # to ld, don't add -lc before -lgcc.
11577 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11578 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11583 (eval $ac_compile) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } 2>conftest.err; then
11589 libobjs=conftest.$ac_objext
11591 wl=$lt_prog_compiler_wl_CXX
11597 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11598 allow_undefined_flag_CXX=
11599 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11600 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }
11605 archive_cmds_need_lc_CXX=no
11607 archive_cmds_need_lc_CXX=yes
11609 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11611 cat conftest.err 1>&5
11614 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11615 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11622 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11623 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11624 hardcode_action_CXX=
11625 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11626 test -n "$runpath_var CXX" || \
11627 test "X$hardcode_automatic_CXX"="Xyes" ; then
11629 # We can hardcode non-existant directories.
11630 if test "$hardcode_direct_CXX" != no &&
11631 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11632 # have to relink, otherwise we might link with an installed library
11633 # when we should be linking with a yet-to-be-installed one
11634 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11635 test "$hardcode_minus_L_CXX" != no; then
11636 # Linking always hardcodes the temporary library directory.
11637 hardcode_action_CXX=relink
11639 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11640 hardcode_action_CXX=immediate
11643 # We cannot hardcode anything, or else we can only hardcode existing
11645 hardcode_action_CXX=unsupported
11647 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11648 echo "${ECHO_T}$hardcode_action_CXX" >&6
11650 if test "$hardcode_action_CXX" = relink; then
11651 # Fast installation is not supported
11652 enable_fast_install=no
11653 elif test "$shlibpath_overrides_runpath" = yes ||
11654 test "$enable_shared" = no; then
11655 # Fast installation is not necessary
11656 enable_fast_install=needless
11661 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11662 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11663 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11664 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11665 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11666 echo "$as_me:$LINENO: result: yes" >&5
11667 echo "${ECHO_T}yes" >&6
11669 # FIXME - insert some real tests, host_os isn't really good enough
11672 if test -n "$STRIP" ; then
11673 striplib="$STRIP -x"
11674 echo "$as_me:$LINENO: result: yes" >&5
11675 echo "${ECHO_T}yes" >&6
11677 echo "$as_me:$LINENO: result: no" >&5
11678 echo "${ECHO_T}no" >&6
11682 echo "$as_me:$LINENO: result: no" >&5
11683 echo "${ECHO_T}no" >&6
11688 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11689 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11690 library_names_spec=
11691 libname_spec='lib$name'
11695 postuninstall_cmds=
11699 shlibpath_overrides_runpath=unknown
11701 dynamic_linker="$host_os ld.so"
11702 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11703 if test "$GCC" = yes; then
11704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11705 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11706 # if the path contains ";" then we assume it to be the separator
11707 # otherwise default to the standard path separator (i.e. ":") - it is
11708 # assumed that no part of a normal pathname contains ";" but that should
11709 # okay in the real world where ";" in dirpaths is itself problematic.
11710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11715 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11717 need_lib_prefix=unknown
11718 hardcode_into_libs=no
11720 # when you set need_version to no, make sure it does not cause -set_version
11721 # flags to be left without arguments
11722 need_version=unknown
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11728 shlibpath_var=LIBPATH
11730 # AIX 3 has no versioning support, so we append a major version to the name.
11731 soname_spec='${libname}${release}${shared_ext}$major'
11738 hardcode_into_libs=yes
11739 if test "$host_cpu" = ia64; then
11740 # AIX 5 supports IA64
11741 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11742 shlibpath_var=LD_LIBRARY_PATH
11744 # With GCC up to 2.95.x, collect2 would create an import file
11745 # for dependence libraries. The import file would start with
11746 # the line `#! .'. This would cause the generated library to
11747 # depend on `.', always an invalid library. This was fixed in
11748 # development snapshots of GCC prior to 3.0.
11750 aix4 | aix4.[01] | aix4.[01].*)
11751 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11753 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11756 can_build_shared=no
11760 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11761 # soname into executable. Probably we can add versioning support to
11762 # collect2, so additional links can be useful in future.
11763 if test "$aix_use_runtimelinking" = yes; then
11764 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11765 # instead of lib<name>.a to let people know that these are not
11766 # typical AIX shared libraries.
11767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769 # We preserve .a as extension for shared libraries through AIX4.2
11770 # and later when we are not doing run time linking.
11771 library_names_spec='${libname}${release}.a $libname.a'
11772 soname_spec='${libname}${release}${shared_ext}$major'
11774 shlibpath_var=LIBPATH
11779 library_names_spec='$libname.ixlibrary $libname.a'
11780 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11781 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'
11785 library_names_spec='${libname}${shared_ext}'
11786 dynamic_linker="$host_os ld.so"
11787 shlibpath_var=LIBRARY_PATH
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794 soname_spec='${libname}${release}${shared_ext}$major'
11795 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11798 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11799 # the default ld.so.conf also contains /usr/contrib/lib and
11800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11801 # libtool to hard-code these into programs
11804 cygwin* | mingw* | pw32*)
11805 version_type=windows
11810 case $GCC,$host_os in
11811 yes,cygwin* | yes,mingw* | yes,pw32*)
11812 library_names_spec='$libname.dll.a'
11813 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11814 postinstall_cmds='base_file=`basename \${file}`~
11815 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11816 dldir=$destdir/`dirname \$dlpath`~
11817 test -d \$dldir || mkdir -p \$dldir~
11818 $install_prog $dir/$dlname \$dldir/$dlname'
11819 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11820 dlpath=$dir/\$dldll~
11822 shlibpath_overrides_runpath=yes
11826 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11827 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11828 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11831 # MinGW DLLs use traditional 'lib' prefix
11832 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11833 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11834 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11835 # It is most probably a Windows format PATH printed by
11836 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11837 # path with ; separators, and with drive letters. We can handle the
11838 # drive letters (cygwin fileutils understands them), so leave them,
11839 # especially as we might pass files found there to a mingw objdump,
11840 # which wouldn't understand a cygwinified path. Ahh.
11841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11847 # pw32 DLLs use 'pw' prefix rather than 'lib'
11848 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11854 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11857 dynamic_linker='Win32 ld.exe'
11858 # FIXME: first we should search . and the directory the executable is in
11862 darwin* | rhapsody*)
11863 dynamic_linker="$host_os dyld"
11864 version_type=darwin
11867 # FIXME: Relying on posixy $() will cause problems for
11868 # cross-compilation, but unfortunately the echo tests do not
11869 # yet detect zsh echo's removal of \ escapes.
11870 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11871 soname_spec='${libname}${release}${major}$shared_ext'
11872 shlibpath_overrides_runpath=yes
11873 shlibpath_var=DYLD_LIBRARY_PATH
11874 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11875 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11876 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11877 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"`
11879 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11887 soname_spec='${libname}${release}${shared_ext}$major'
11888 shlibpath_var=LD_LIBRARY_PATH
11896 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11897 version_type=freebsd-$objformat
11898 case $version_type in
11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11909 shlibpath_var=LD_LIBRARY_PATH
11912 shlibpath_overrides_runpath=yes
11914 freebsd3.01* | freebsdelf3.01*)
11915 shlibpath_overrides_runpath=yes
11916 hardcode_into_libs=yes
11919 shlibpath_overrides_runpath=no
11920 hardcode_into_libs=yes
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11930 soname_spec='${libname}${release}${shared_ext}$major'
11931 shlibpath_var=LD_LIBRARY_PATH
11932 hardcode_into_libs=yes
11935 hpux9* | hpux10* | hpux11*)
11936 # Give a soname corresponding to the major version so that dld.sl refuses to
11937 # link against other versions.
11941 case "$host_cpu" in
11944 hardcode_into_libs=yes
11945 dynamic_linker="$host_os dld.so"
11946 shlibpath_var=LD_LIBRARY_PATH
11947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 if test "X$HPUX_IA64_MODE" = X32; then
11951 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11953 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11959 hardcode_into_libs=yes
11960 dynamic_linker="$host_os dld.sl"
11961 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11964 soname_spec='${libname}${release}${shared_ext}$major'
11965 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11970 dynamic_linker="$host_os dld.sl"
11971 shlibpath_var=SHLIB_PATH
11972 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974 soname_spec='${libname}${release}${shared_ext}$major'
11977 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11978 postinstall_cmds='chmod 555 $lib'
11981 irix5* | irix6* | nonstopux*)
11983 nonstopux*) version_type=nonstopux ;;
11985 if test "$lt_cv_prog_gnu_ld" = yes; then
11993 soname_spec='${libname}${release}${shared_ext}$major'
11994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11996 irix5* | nonstopux*)
11997 libsuff= shlibsuff=
12000 case $LD in # libtool.m4 will add one of these switches to LD
12001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12002 libsuff= shlibsuff= libmagic=32-bit;;
12003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12004 libsuff=32 shlibsuff=N32 libmagic=N32;;
12005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12007 *) libsuff= shlibsuff= libmagic=never-match;;
12011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12012 shlibpath_overrides_runpath=no
12013 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12014 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12015 hardcode_into_libs=yes
12018 # No shared lib support for Linux oldld, aout, or coff.
12019 linux*oldld* | linux*aout* | linux*coff*)
12023 # This must be Linux ELF.
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12029 soname_spec='${libname}${release}${shared_ext}$major'
12030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12031 shlibpath_var=LD_LIBRARY_PATH
12032 shlibpath_overrides_runpath=no
12033 # This implies no fast_install, which is unacceptable.
12034 # Some rework will be needed to allow for fast_install
12035 # before this can be enabled.
12036 hardcode_into_libs=yes
12038 # We used to test for /lib/ld.so.1 and disable shared libraries on
12039 # powerpc, because MkLinux only supported shared libraries with the
12040 # GNU dynamic linker. Since this was broken with cross compilers,
12041 # most powerpc-linux boxes support dynamic linking these days and
12042 # people can always --disable-shared, the test was removed, and we
12043 # assume the GNU/Linux dynamic linker is in use.
12044 dynamic_linker='GNU/Linux ld.so'
12051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12054 dynamic_linker='NetBSD (a.out) ld.so'
12056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12057 soname_spec='${libname}${release}${shared_ext}$major'
12058 dynamic_linker='NetBSD ld.elf_so'
12060 shlibpath_var=LD_LIBRARY_PATH
12061 shlibpath_overrides_runpath=yes
12062 hardcode_into_libs=yes
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068 shlibpath_var=LD_LIBRARY_PATH
12069 shlibpath_overrides_runpath=yes
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077 soname_spec='${libname}${release}${shared_ext}$major'
12078 shlibpath_var=LD_LIBRARY_PATH
12079 shlibpath_overrides_runpath=yes
12086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12091 openbsd2.[89] | openbsd2.[89].*)
12092 shlibpath_overrides_runpath=no
12095 shlibpath_overrides_runpath=yes
12099 shlibpath_overrides_runpath=yes
12104 libname_spec='$name'
12107 library_names_spec='$libname${shared_ext} $libname.a'
12108 dynamic_linker='OS/2 ld.exe'
12109 shlibpath_var=LIBPATH
12112 osf3* | osf4* | osf5*)
12116 soname_spec='${libname}${release}${shared_ext}$major'
12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118 shlibpath_var=LD_LIBRARY_PATH
12119 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12120 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12125 soname_spec='${libname}${release}${shared_ext}$major'
12126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12127 shlibpath_var=LD_LIBRARY_PATH
12134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12135 soname_spec='${libname}${release}${shared_ext}$major'
12136 shlibpath_var=LD_LIBRARY_PATH
12137 shlibpath_overrides_runpath=yes
12138 hardcode_into_libs=yes
12139 # ldd complains unless libraries are executable
12140 postinstall_cmds='chmod +x $lib'
12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12146 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12147 shlibpath_var=LD_LIBRARY_PATH
12148 shlibpath_overrides_runpath=yes
12149 if test "$with_gnu_ld" = yes; then
12155 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12158 soname_spec='${libname}${release}${shared_ext}$major'
12159 shlibpath_var=LD_LIBRARY_PATH
12160 case $host_vendor in
12162 shlibpath_overrides_runpath=no
12164 export_dynamic_flag_spec='${wl}-Blargedynsym'
12165 runpath_var=LD_RUN_PATH
12173 shlibpath_overrides_runpath=no
12174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12180 if test -d /usr/nec ;then
12182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12183 soname_spec='$libname${shared_ext}.$major'
12184 shlibpath_var=LD_LIBRARY_PATH
12190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12191 soname_spec='${libname}${release}${shared_ext}$major'
12192 shlibpath_var=LD_LIBRARY_PATH
12199 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12200 echo "${ECHO_T}$dynamic_linker" >&6
12201 test "$dynamic_linker" = no && can_build_shared=no
12203 if test "x$enable_dlopen" != xyes; then
12204 enable_dlopen=unknown
12205 enable_dlopen_self=unknown
12206 enable_dlopen_self_static=unknown
12213 lt_cv_dlopen="load_add_on"
12215 lt_cv_dlopen_self=yes
12219 lt_cv_dlopen="LoadLibrary"
12224 lt_cv_dlopen="dlopen"
12229 # if libdl is installed we need to link against it
12230 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12231 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 ac_check_lib_save_LIBS=$LIBS
12237 cat >conftest.$ac_ext <<_ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12244 /* Override any gcc2 internal prototype to avoid an error. */
12248 /* We use char because int might match the return type of a gcc2
12249 builtin and then its argument prototype would still apply. */
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261 (eval $ac_link) 2>conftest.er1
12263 grep -v '^ *+' conftest.er1 >conftest.err
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest$ac_exeext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 ac_cv_lib_dl_dlopen=yes
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 ac_cv_lib_dl_dlopen=no
12287 rm -f conftest.err conftest.$ac_objext \
12288 conftest$ac_exeext conftest.$ac_ext
12289 LIBS=$ac_check_lib_save_LIBS
12291 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12292 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12293 if test $ac_cv_lib_dl_dlopen = yes; then
12294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12297 lt_cv_dlopen="dyld"
12299 lt_cv_dlopen_self=yes
12306 echo "$as_me:$LINENO: checking for shl_load" >&5
12307 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12308 if test "${ac_cv_func_shl_load+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12319 #define shl_load innocuous_shl_load
12321 /* System header to define __stub macros and hopefully few prototypes,
12322 which can conflict with char shl_load (); below.
12323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12324 <limits.h> exists even on freestanding compilers. */
12327 # include <limits.h>
12329 # include <assert.h>
12334 /* Override any gcc2 internal prototype to avoid an error. */
12339 /* We use char because int might match the return type of a gcc2
12340 builtin and then its argument prototype would still apply. */
12342 /* The GNU C library defines this for functions which it implements
12343 to always fail with ENOSYS. Some functions are actually named
12344 something starting with __ and the normal name is an alias. */
12345 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12348 char (*f) () = shl_load;
12357 return f != shl_load;
12362 rm -f conftest.$ac_objext conftest$ac_exeext
12363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12364 (eval $ac_link) 2>conftest.er1
12366 grep -v '^ *+' conftest.er1 >conftest.err
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } &&
12371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest$ac_exeext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_func_shl_load=yes
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12388 ac_cv_func_shl_load=no
12390 rm -f conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12393 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12394 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12395 if test $ac_cv_func_shl_load = yes; then
12396 lt_cv_dlopen="shl_load"
12398 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12399 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12400 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 ac_check_lib_save_LIBS=$LIBS
12405 cat >conftest.$ac_ext <<_ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12412 /* Override any gcc2 internal prototype to avoid an error. */
12416 /* We use char because int might match the return type of a gcc2
12417 builtin and then its argument prototype would still apply. */
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest$ac_exeext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_cv_lib_dld_shl_load=yes
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12453 ac_cv_lib_dld_shl_load=no
12455 rm -f conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12459 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12460 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12461 if test $ac_cv_lib_dld_shl_load = yes; then
12462 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12464 echo "$as_me:$LINENO: checking for dlopen" >&5
12465 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12466 if test "${ac_cv_func_dlopen+set}" = set; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 cat >conftest.$ac_ext <<_ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12477 #define dlopen innocuous_dlopen
12479 /* System header to define __stub macros and hopefully few prototypes,
12480 which can conflict with char dlopen (); below.
12481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12482 <limits.h> exists even on freestanding compilers. */
12485 # include <limits.h>
12487 # include <assert.h>
12492 /* Override any gcc2 internal prototype to avoid an error. */
12497 /* We use char because int might match the return type of a gcc2
12498 builtin and then its argument prototype would still apply. */
12500 /* The GNU C library defines this for functions which it implements
12501 to always fail with ENOSYS. Some functions are actually named
12502 something starting with __ and the normal name is an alias. */
12503 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12506 char (*f) () = dlopen;
12515 return f != dlopen;
12520 rm -f conftest.$ac_objext conftest$ac_exeext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12522 (eval $ac_link) 2>conftest.er1
12524 grep -v '^ *+' conftest.er1 >conftest.err
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } &&
12529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest$ac_exeext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_cv_func_dlopen=yes
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12546 ac_cv_func_dlopen=no
12548 rm -f conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12551 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12552 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12553 if test $ac_cv_func_dlopen = yes; then
12554 lt_cv_dlopen="dlopen"
12556 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12557 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 ac_check_lib_save_LIBS=$LIBS
12563 cat >conftest.$ac_ext <<_ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12570 /* Override any gcc2 internal prototype to avoid an error. */
12574 /* We use char because int might match the return type of a gcc2
12575 builtin and then its argument prototype would still apply. */
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12587 (eval $ac_link) 2>conftest.er1
12589 grep -v '^ *+' conftest.er1 >conftest.err
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
12594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 ac_cv_lib_dl_dlopen=yes
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_cv_lib_dl_dlopen=no
12613 rm -f conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12617 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12618 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12619 if test $ac_cv_lib_dl_dlopen = yes; then
12620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12622 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12623 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12624 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 ac_check_lib_save_LIBS=$LIBS
12628 LIBS="-lsvld $LIBS"
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12636 /* Override any gcc2 internal prototype to avoid an error. */
12640 /* We use char because int might match the return type of a gcc2
12641 builtin and then its argument prototype would still apply. */
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653 (eval $ac_link) 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try='test -s conftest$ac_exeext'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_cv_lib_svld_dlopen=yes
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12677 ac_cv_lib_svld_dlopen=no
12679 rm -f conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12683 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12684 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12685 if test $ac_cv_lib_svld_dlopen = yes; then
12686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12688 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12689 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12690 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 ac_check_lib_save_LIBS=$LIBS
12695 cat >conftest.$ac_ext <<_ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12702 /* Override any gcc2 internal prototype to avoid an error. */
12706 /* We use char because int might match the return type of a gcc2
12707 builtin and then its argument prototype would still apply. */
12717 rm -f conftest.$ac_objext conftest$ac_exeext
12718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12719 (eval $ac_link) 2>conftest.er1
12721 grep -v '^ *+' conftest.er1 >conftest.err
12723 cat conftest.err >&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } &&
12726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; } &&
12732 { ac_try='test -s conftest$ac_exeext'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 ac_cv_lib_dld_dld_link=yes
12740 echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12743 ac_cv_lib_dld_dld_link=no
12745 rm -f conftest.err conftest.$ac_objext \
12746 conftest$ac_exeext conftest.$ac_ext
12747 LIBS=$ac_check_lib_save_LIBS
12749 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12750 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12751 if test $ac_cv_lib_dld_dld_link = yes; then
12752 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12773 if test "x$lt_cv_dlopen" != xno; then
12779 case $lt_cv_dlopen in
12781 save_CPPFLAGS="$CPPFLAGS"
12782 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12784 save_LDFLAGS="$LDFLAGS"
12785 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12788 LIBS="$lt_cv_dlopen_libs $LIBS"
12790 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12791 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12792 if test "${lt_cv_dlopen_self+set}" = set; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 if test "$cross_compiling" = yes; then :
12796 lt_cv_dlopen_self=cross
12798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12799 lt_status=$lt_dlunknown
12800 cat > conftest.$ac_ext <<EOF
12801 #line 12801 "configure"
12802 #include "confdefs.h"
12811 # define LT_DLGLOBAL RTLD_GLOBAL
12814 # define LT_DLGLOBAL DL_GLOBAL
12816 # define LT_DLGLOBAL 0
12820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12821 find out it does not work in some platform. */
12822 #ifndef LT_DLLAZY_OR_NOW
12824 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12827 # define LT_DLLAZY_OR_NOW DL_LAZY
12830 # define LT_DLLAZY_OR_NOW RTLD_NOW
12833 # define LT_DLLAZY_OR_NOW DL_NOW
12835 # define LT_DLLAZY_OR_NOW 0
12843 extern "C" void exit (int);
12846 void fnord() { int i=42;}
12849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12850 int status = $lt_dlunknown;
12854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12855 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12856 /* dlclose (self); */
12862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863 (eval $ac_link) 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12867 (./conftest; exit; ) 2>/dev/null
12869 case x$lt_status in
12870 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12871 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12872 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12875 # compilation failed
12876 lt_cv_dlopen_self=no
12883 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12884 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12886 if test "x$lt_cv_dlopen_self" = xyes; then
12887 LDFLAGS="$LDFLAGS $link_static_flag"
12888 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12889 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12890 if test "${lt_cv_dlopen_self_static+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 if test "$cross_compiling" = yes; then :
12894 lt_cv_dlopen_self_static=cross
12896 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12897 lt_status=$lt_dlunknown
12898 cat > conftest.$ac_ext <<EOF
12899 #line 12899 "configure"
12900 #include "confdefs.h"
12909 # define LT_DLGLOBAL RTLD_GLOBAL
12912 # define LT_DLGLOBAL DL_GLOBAL
12914 # define LT_DLGLOBAL 0
12918 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12919 find out it does not work in some platform. */
12920 #ifndef LT_DLLAZY_OR_NOW
12922 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12925 # define LT_DLLAZY_OR_NOW DL_LAZY
12928 # define LT_DLLAZY_OR_NOW RTLD_NOW
12931 # define LT_DLLAZY_OR_NOW DL_NOW
12933 # define LT_DLLAZY_OR_NOW 0
12941 extern "C" void exit (int);
12944 void fnord() { int i=42;}
12947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12948 int status = $lt_dlunknown;
12952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12953 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12954 /* dlclose (self); */
12960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12961 (eval $ac_link) 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12965 (./conftest; exit; ) 2>/dev/null
12967 case x$lt_status in
12968 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12969 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12970 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12973 # compilation failed
12974 lt_cv_dlopen_self_static=no
12981 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12982 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12985 CPPFLAGS="$save_CPPFLAGS"
12986 LDFLAGS="$save_LDFLAGS"
12991 case $lt_cv_dlopen_self in
12992 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12993 *) enable_dlopen_self=unknown ;;
12996 case $lt_cv_dlopen_self_static in
12997 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12998 *) enable_dlopen_self_static=unknown ;;
13003 # The else clause should only fire when bootstrapping the
13004 # libtool distribution, otherwise you forgot to ship ltmain.sh
13005 # with your package, and you will get complaints that there are
13006 # no rules to generate ltmain.sh.
13007 if test -f "$ltmain"; then
13008 # See if we are running on zsh, and set the options which allow our commands through
13009 # without removal of \ escapes.
13010 if test -n "${ZSH_VERSION+set}" ; then
13011 setopt NO_GLOB_SUBST
13013 # Now quote all the things that may contain metacharacters while being
13014 # careful not to overquote the AC_SUBSTed values. We take copies of the
13015 # variables and quote the copies for generation of the libtool script.
13016 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13017 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13018 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13019 deplibs_check_method reload_flag reload_cmds need_locks \
13020 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13021 lt_cv_sys_global_symbol_to_c_name_address \
13022 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13023 old_postinstall_cmds old_postuninstall_cmds \
13027 lt_prog_compiler_wl_CXX \
13028 lt_prog_compiler_pic_CXX \
13029 lt_prog_compiler_static_CXX \
13030 lt_prog_compiler_no_builtin_flag_CXX \
13031 export_dynamic_flag_spec_CXX \
13032 thread_safe_flag_spec_CXX \
13033 whole_archive_flag_spec_CXX \
13034 enable_shared_with_static_runtimes_CXX \
13035 old_archive_cmds_CXX \
13036 old_archive_from_new_cmds_CXX \
13037 predep_objects_CXX \
13038 postdep_objects_CXX \
13041 compiler_lib_search_path_CXX \
13043 archive_expsym_cmds_CXX \
13044 postinstall_cmds_CXX \
13045 postuninstall_cmds_CXX \
13046 old_archive_from_expsyms_cmds_CXX \
13047 allow_undefined_flag_CXX \
13048 no_undefined_flag_CXX \
13049 export_symbols_cmds_CXX \
13050 hardcode_libdir_flag_spec_CXX \
13051 hardcode_libdir_flag_spec_ld_CXX \
13052 hardcode_libdir_separator_CXX \
13053 hardcode_automatic_CXX \
13055 module_expsym_cmds_CXX \
13056 lt_cv_prog_compiler_c_o_CXX \
13057 exclude_expsyms_CXX \
13058 include_expsyms_CXX; do
13061 old_archive_cmds_CXX | \
13062 old_archive_from_new_cmds_CXX | \
13063 archive_cmds_CXX | \
13064 archive_expsym_cmds_CXX | \
13065 module_cmds_CXX | \
13066 module_expsym_cmds_CXX | \
13067 old_archive_from_expsyms_cmds_CXX | \
13068 export_symbols_cmds_CXX | \
13069 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13070 postinstall_cmds | postuninstall_cmds | \
13071 old_postinstall_cmds | old_postuninstall_cmds | \
13072 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13073 # Double-quote double-evaled strings.
13074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13077 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13083 *'\$0 --fallback-echo"')
13084 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13090 cat <<__EOF__ >> "$cfgfile"
13091 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13093 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13095 # Shell to use when invoking shell scripts.
13098 # Whether or not to build shared libraries.
13099 build_libtool_libs=$enable_shared
13101 # Whether or not to build static libraries.
13102 build_old_libs=$enable_static
13104 # Whether or not to add -lc for building shared libraries.
13105 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13107 # Whether or not to disallow shared libs when runtime libs are static
13108 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13110 # Whether or not to optimize for fast installation.
13111 fast_install=$enable_fast_install
13114 host_alias=$host_alias
13117 # An echo program that does not interpret backslashes.
13122 AR_FLAGS=$lt_AR_FLAGS
13127 # A language-specific compiler.
13128 CC=$lt_compiler_CXX
13130 # Is the compiler the GNU C compiler?
13136 # The linker used to build libraries.
13139 # Whether we need hard or soft links.
13142 # A BSD-compatible nm program.
13145 # A symbol stripping program
13148 # Used to examine libraries when file_magic_cmd begins "file"
13149 MAGIC_CMD=$MAGIC_CMD
13151 # Used on cygwin: DLL creation program.
13154 # Used on cygwin: object dumper.
13157 # Used on cygwin: assembler.
13160 # The name of the directory that contains temporary libtool files.
13163 # How to create reloadable object files.
13164 reload_flag=$lt_reload_flag
13165 reload_cmds=$lt_reload_cmds
13167 # How to pass a linker flag through the compiler.
13168 wl=$lt_lt_prog_compiler_wl_CXX
13170 # Object file suffix (normally "o").
13171 objext="$ac_objext"
13173 # Old archive suffix (normally "a").
13176 # Shared library suffix (normally ".so").
13179 # Executable file suffix (normally "").
13182 # Additional compiler flags for building library objects.
13183 pic_flag=$lt_lt_prog_compiler_pic_CXX
13186 # What is the maximum length of a command?
13187 max_cmd_len=$lt_cv_sys_max_cmd_len
13189 # Does compiler simultaneously support -c and -o options?
13190 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13192 # Must we lock files when doing compilation ?
13193 need_locks=$lt_need_locks
13195 # Do we need the lib prefix for modules?
13196 need_lib_prefix=$need_lib_prefix
13198 # Do we need a version for libraries?
13199 need_version=$need_version
13201 # Whether dlopen is supported.
13202 dlopen_support=$enable_dlopen
13204 # Whether dlopen of programs is supported.
13205 dlopen_self=$enable_dlopen_self
13207 # Whether dlopen of statically linked programs is supported.
13208 dlopen_self_static=$enable_dlopen_self_static
13210 # Compiler flag to prevent dynamic linking.
13211 link_static_flag=$lt_lt_prog_compiler_static_CXX
13213 # Compiler flag to turn off builtin functions.
13214 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13216 # Compiler flag to allow reflexive dlopens.
13217 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13219 # Compiler flag to generate shared objects directly from archives.
13220 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13222 # Compiler flag to generate thread-safe objects.
13223 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13225 # Library versioning type.
13226 version_type=$version_type
13228 # Format of library name prefix.
13229 libname_spec=$lt_libname_spec
13231 # List of archive names. First name is the real one, the rest are links.
13232 # The last name is the one that the linker finds with -lNAME.
13233 library_names_spec=$lt_library_names_spec
13235 # The coded name of the library, if different from the real name.
13236 soname_spec=$lt_soname_spec
13238 # Commands used to build and install an old-style archive.
13240 old_archive_cmds=$lt_old_archive_cmds_CXX
13241 old_postinstall_cmds=$lt_old_postinstall_cmds
13242 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13244 # Create an old-style archive from a shared archive.
13245 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13247 # Create a temporary old-style archive to link instead of a shared archive.
13248 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13250 # Commands used to build and install a shared archive.
13251 archive_cmds=$lt_archive_cmds_CXX
13252 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13253 postinstall_cmds=$lt_postinstall_cmds
13254 postuninstall_cmds=$lt_postuninstall_cmds
13256 # Commands used to build a loadable module (assumed same as above if empty)
13257 module_cmds=$lt_module_cmds_CXX
13258 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13260 # Commands to strip libraries.
13261 old_striplib=$lt_old_striplib
13262 striplib=$lt_striplib
13264 # Dependencies to place before the objects being linked to create a
13266 predep_objects=$lt_predep_objects_CXX
13268 # Dependencies to place after the objects being linked to create a
13270 postdep_objects=$lt_postdep_objects_CXX
13272 # Dependencies to place before the objects being linked to create a
13274 predeps=$lt_predeps_CXX
13276 # Dependencies to place after the objects being linked to create a
13278 postdeps=$lt_postdeps_CXX
13280 # The library search path used internally by the compiler when linking
13281 # a shared library.
13282 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13284 # Method to check whether dependent libraries are shared objects.
13285 deplibs_check_method=$lt_deplibs_check_method
13287 # Command to use when deplibs_check_method == file_magic.
13288 file_magic_cmd=$lt_file_magic_cmd
13290 # Flag that allows shared libraries with undefined symbols to be built.
13291 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13293 # Flag that forces no undefined symbols.
13294 no_undefined_flag=$lt_no_undefined_flag_CXX
13296 # Commands used to finish a libtool library installation in a directory.
13297 finish_cmds=$lt_finish_cmds
13299 # Same as above, but a single script fragment to be evaled but not shown.
13300 finish_eval=$lt_finish_eval
13302 # Take the output of nm and produce a listing of raw symbols and C names.
13303 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13305 # Transform the output of nm in a proper C declaration
13306 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13308 # Transform the output of nm in a C name address pair
13309 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13311 # This is the shared library runtime path variable.
13312 runpath_var=$runpath_var
13314 # This is the shared library path variable.
13315 shlibpath_var=$shlibpath_var
13317 # Is shlibpath searched before the hard-coded library search path?
13318 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13320 # How to hardcode a shared library path into an executable.
13321 hardcode_action=$hardcode_action_CXX
13323 # Whether we should hardcode library paths into libraries.
13324 hardcode_into_libs=$hardcode_into_libs
13326 # Flag to hardcode \$libdir into a binary during linking.
13327 # This must work even if \$libdir does not exist.
13328 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13330 # If ld is used when linking, flag to hardcode \$libdir into
13331 # a binary during linking. This must work even if \$libdir does
13333 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13335 # Whether we need a single -rpath flag with a separated argument.
13336 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13338 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13339 # resulting binary.
13340 hardcode_direct=$hardcode_direct_CXX
13342 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13343 # resulting binary.
13344 hardcode_minus_L=$hardcode_minus_L_CXX
13346 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13347 # the resulting binary.
13348 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13350 # Set to yes if building a shared library automatically hardcodes DIR into the library
13351 # and all subsequent libraries and executables linked against it.
13352 hardcode_automatic=$hardcode_automatic_CXX
13354 # Variables whose values should be saved in libtool wrapper scripts and
13355 # restored at relink time.
13356 variables_saved_for_relink="$variables_saved_for_relink"
13358 # Whether libtool must link a program against all its dependency libraries.
13359 link_all_deplibs=$link_all_deplibs_CXX
13361 # Compile-time system search path for libraries
13362 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13364 # Run-time system search path for libraries
13365 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13367 # Fix the shell variable \$srcfile for the compiler.
13368 fix_srcfile_path="$fix_srcfile_path_CXX"
13370 # Set to yes if exported symbols are required.
13371 always_export_symbols=$always_export_symbols_CXX
13373 # The commands to list exported symbols.
13374 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13376 # The commands to extract the exported symbol list from a shared archive.
13377 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13379 # Symbols that should not be listed in the preloaded symbols.
13380 exclude_expsyms=$lt_exclude_expsyms_CXX
13382 # Symbols that must always be exported.
13383 include_expsyms=$lt_include_expsyms_CXX
13385 # ### END LIBTOOL TAG CONFIG: $tagname
13391 # If there is no Makefile yet, we rely on a make rule to execute
13392 # `config.status --recheck' to rerun these tests and create the
13393 # libtool script then.
13394 test -f Makefile && make "$ltmain"
13399 ac_cpp='$CPP $CPPFLAGS'
13400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13408 with_gnu_ldcxx=$with_gnu_ld
13409 with_gnu_ld=$lt_save_with_gnu_ld
13410 lt_cv_path_LDCXX=$lt_cv_path_LD
13411 lt_cv_path_LD=$lt_save_path_LD
13412 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13413 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13421 if test -n "$F77" && test "X$F77" != "Xno"; then
13424 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13425 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13429 archive_cmds_need_lc_F77=no
13430 allow_undefined_flag_F77=
13431 always_export_symbols_F77=no
13432 archive_expsym_cmds_F77=
13433 export_dynamic_flag_spec_F77=
13434 hardcode_direct_F77=no
13435 hardcode_libdir_flag_spec_F77=
13436 hardcode_libdir_flag_spec_ld_F77=
13437 hardcode_libdir_separator_F77=
13438 hardcode_minus_L_F77=no
13439 hardcode_automatic_F77=no
13441 module_expsym_cmds_F77=
13442 link_all_deplibs_F77=unknown
13443 old_archive_cmds_F77=$old_archive_cmds
13444 no_undefined_flag_F77=
13445 whole_archive_flag_spec_F77=
13446 enable_shared_with_static_runtimes_F77=no
13448 # Source file extension for f77 test sources.
13451 # Object file extension for compiled f77 test sources.
13455 # Code to be used in simple compile tests
13456 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13458 # Code to be used in simple link tests
13459 lt_simple_link_test_code=" program t\n end\n"
13461 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13463 # If no C compiler was specified, use CC.
13466 # Allow CC to be a program name with arguments.
13470 # Allow CC to be a program name with arguments.
13475 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13477 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13478 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13479 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13480 echo "${ECHO_T}$can_build_shared" >&6
13482 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13483 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13484 test "$can_build_shared" = "no" && enable_shared=no
13486 # On AIX, shared libraries and static libraries use the same namespace, and
13487 # are all built from PIC.
13490 test "$enable_shared" = yes && enable_static=no
13491 if test -n "$RANLIB"; then
13492 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13493 postinstall_cmds='$RANLIB $lib'
13497 test "$enable_shared" = yes && enable_static=no
13500 echo "$as_me:$LINENO: result: $enable_shared" >&5
13501 echo "${ECHO_T}$enable_shared" >&6
13503 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13504 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13505 # Make sure either enable_shared or enable_static is yes.
13506 test "$enable_shared" = yes || enable_static=yes
13507 echo "$as_me:$LINENO: result: $enable_static" >&5
13508 echo "${ECHO_T}$enable_static" >&6
13510 test "$ld_shlibs_F77" = no && can_build_shared=no
13515 lt_prog_compiler_wl_F77=
13516 lt_prog_compiler_pic_F77=
13517 lt_prog_compiler_static_F77=
13519 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13520 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13522 if test "$GCC" = yes; then
13523 lt_prog_compiler_wl_F77='-Wl,'
13524 lt_prog_compiler_static_F77='-static'
13528 # All AIX code is PIC.
13529 if test "$host_cpu" = ia64; then
13530 # AIX 5 now supports IA64 processor
13531 lt_prog_compiler_static_F77='-Bstatic'
13536 # FIXME: we need at least 68020 code to build shared libraries, but
13537 # adding the `-m68020' flag to GCC prevents building anything better,
13539 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13542 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13543 # PIC is the default for these OSes.
13546 mingw* | pw32* | os2*)
13547 # This hack is so that the source file can tell whether it is being
13548 # built for inclusion in a dll (and should export symbols for example).
13549 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13552 darwin* | rhapsody*)
13553 # PIC is the default on this platform
13554 # Common symbols not allowed in MH_DYLIB files
13555 lt_prog_compiler_pic_F77='-fno-common'
13559 # Just because we use GCC doesn't mean we suddenly get shared libraries
13560 # on systems that don't support them.
13561 lt_prog_compiler_can_build_shared_F77=no
13566 if test -d /usr/nec; then
13567 lt_prog_compiler_pic_F77=-Kconform_pic
13572 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13573 # not for PA HP-UX.
13574 case "$host_cpu" in
13579 lt_prog_compiler_pic_F77='-fPIC'
13585 lt_prog_compiler_pic_F77='-fPIC'
13589 # PORTME Check for flag to pass linker flags through the system compiler.
13592 lt_prog_compiler_wl_F77='-Wl,'
13593 if test "$host_cpu" = ia64; then
13594 # AIX 5 now supports IA64 processor
13595 lt_prog_compiler_static_F77='-Bstatic'
13597 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13601 mingw* | pw32* | os2*)
13602 # This hack is so that the source file can tell whether it is being
13603 # built for inclusion in a dll (and should export symbols for example).
13604 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13607 hpux9* | hpux10* | hpux11*)
13608 lt_prog_compiler_wl_F77='-Wl,'
13609 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13610 # not for PA HP-UX.
13611 case "$host_cpu" in
13616 lt_prog_compiler_pic_F77='+Z'
13619 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13620 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13623 irix5* | irix6* | nonstopux*)
13624 lt_prog_compiler_wl_F77='-Wl,'
13625 # PIC (with -KPIC) is the default.
13626 lt_prog_compiler_static_F77='-non_shared'
13630 lt_prog_compiler_pic_F77='-KPIC'
13631 lt_prog_compiler_static_F77='-Bstatic'
13637 lt_prog_compiler_wl_F77='-Wl,'
13638 lt_prog_compiler_pic_F77='-KPIC'
13639 lt_prog_compiler_static_F77='-static'
13642 lt_prog_compiler_wl_F77='-Wl,'
13643 # All Alpha code is PIC.
13644 lt_prog_compiler_static_F77='-non_shared'
13649 osf3* | osf4* | osf5*)
13650 lt_prog_compiler_wl_F77='-Wl,'
13651 # All OSF/1 code is PIC.
13652 lt_prog_compiler_static_F77='-non_shared'
13656 lt_prog_compiler_pic_F77='-Kpic'
13657 lt_prog_compiler_static_F77='-dn'
13661 lt_prog_compiler_wl_F77='-Wl,'
13662 lt_prog_compiler_pic_F77='-KPIC'
13663 lt_prog_compiler_static_F77='-Bstatic'
13667 lt_prog_compiler_wl_F77='-Qoption ld '
13668 lt_prog_compiler_pic_F77='-PIC'
13669 lt_prog_compiler_static_F77='-Bstatic'
13672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13673 lt_prog_compiler_wl_F77='-Wl,'
13674 lt_prog_compiler_pic_F77='-KPIC'
13675 lt_prog_compiler_static_F77='-Bstatic'
13679 if test -d /usr/nec ;then
13680 lt_prog_compiler_pic_F77='-Kconform_pic'
13681 lt_prog_compiler_static_F77='-Bstatic'
13686 lt_prog_compiler_pic_F77='-pic'
13687 lt_prog_compiler_static_F77='-Bstatic'
13691 lt_prog_compiler_can_build_shared_F77=no
13696 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13697 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13700 # Check to make sure the PIC flag actually works.
13702 if test -n "$lt_prog_compiler_pic_F77"; then
13703 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13704 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13705 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 lt_prog_compiler_pic_works_F77=no
13709 ac_outfile=conftest.$ac_objext
13710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13711 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13712 # Insert the option either (1) after the last *FLAGS variable, or
13713 # (2) before a word containing "conftest.", or (3) at the end.
13714 # Note that $ac_compile itself does not contain backslashes and begins
13715 # with a dollar sign (not a hyphen), so the echo should work correctly.
13716 # The option is referenced via a variable to avoid confusing sed.
13717 lt_compile=`echo "$ac_compile" | $SED \
13718 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13720 -e 's:$: $lt_compiler_flag:'`
13721 (eval echo "\"\$as_me:13721: $lt_compile\"" >&5)
13722 (eval "$lt_compile" 2>conftest.err)
13724 cat conftest.err >&5
13725 echo "$as_me:13725: \$? = $ac_status" >&5
13726 if (exit $ac_status) && test -s "$ac_outfile"; then
13727 # The compiler can only warn and ignore the option if not recognized
13728 # So say no if there are warnings
13729 if test ! -s conftest.err; then
13730 lt_prog_compiler_pic_works_F77=yes
13736 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13737 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13739 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13740 case $lt_prog_compiler_pic_F77 in
13742 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13745 lt_prog_compiler_pic_F77=
13746 lt_prog_compiler_can_build_shared_F77=no
13751 # For platforms which do not support PIC, -DPIC is meaningless:
13753 lt_prog_compiler_pic_F77=
13756 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13760 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13761 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13762 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 lt_cv_prog_compiler_c_o_F77=no
13766 $rm -r conftest 2>/dev/null
13770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13772 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13773 # that will create temporary files in the current directory regardless of
13774 # the output directory. Thus, making CWD read-only will cause this test
13775 # to fail, enabling locking or at least warning the user not to do parallel
13779 lt_compiler_flag="-o out/conftest2.$ac_objext"
13780 # Insert the option either (1) after the last *FLAGS variable, or
13781 # (2) before a word containing "conftest.", or (3) at the end.
13782 # Note that $ac_compile itself does not contain backslashes and begins
13783 # with a dollar sign (not a hyphen), so the echo should work correctly.
13784 lt_compile=`echo "$ac_compile" | $SED \
13785 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13787 -e 's:$: $lt_compiler_flag:'`
13788 (eval echo "\"\$as_me:13788: $lt_compile\"" >&5)
13789 (eval "$lt_compile" 2>out/conftest.err)
13791 cat out/conftest.err >&5
13792 echo "$as_me:13792: \$? = $ac_status" >&5
13793 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13795 # The compiler can only warn and ignore the option if not recognized
13796 # So say no if there are warnings
13797 if test ! -s out/conftest.err; then
13798 lt_cv_prog_compiler_c_o_F77=yes
13802 $rm conftest* out/*
13809 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13810 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13813 hard_links="nottested"
13814 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13815 # do not overwrite the value of need_locks provided by the user
13816 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13817 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13822 ln conftest.a conftest.b 2>&5 || hard_links=no
13823 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13824 echo "$as_me:$LINENO: result: $hard_links" >&5
13825 echo "${ECHO_T}$hard_links" >&6
13826 if test "$hard_links" = no; then
13827 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13828 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13835 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13836 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13839 allow_undefined_flag_F77=
13840 enable_shared_with_static_runtimes_F77=no
13842 archive_expsym_cmds_F77=
13843 old_archive_From_new_cmds_F77=
13844 old_archive_from_expsyms_cmds_F77=
13845 export_dynamic_flag_spec_F77=
13846 whole_archive_flag_spec_F77=
13847 thread_safe_flag_spec_F77=
13848 hardcode_libdir_flag_spec_F77=
13849 hardcode_libdir_flag_spec_ld_F77=
13850 hardcode_libdir_separator_F77=
13851 hardcode_direct_F77=no
13852 hardcode_minus_L_F77=no
13853 hardcode_shlibpath_var_F77=unsupported
13854 link_all_deplibs_F77=unknown
13855 hardcode_automatic_F77=no
13857 module_expsym_cmds_F77=
13858 always_export_symbols_F77=no
13859 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13860 # include_expsyms should be a list of space-separated symbols to be *always*
13861 # included in the symbol list
13862 include_expsyms_F77=
13863 # exclude_expsyms can be an extended regexp of symbols to exclude
13864 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13865 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13866 # as well as any symbol that contains `d'.
13867 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13868 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13869 # platforms (ab)use it in PIC code, but their linkers get confused if
13870 # the symbol is explicitly referenced. Since portable code cannot
13871 # rely on this symbol name, it's probably fine to never include it in
13872 # preloaded symbol tables.
13873 extract_expsyms_cmds=
13876 cygwin* | mingw* | pw32*)
13877 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13878 # When not using gcc, we currently assume that we are using
13879 # Microsoft Visual C++.
13880 if test "$GCC" != yes; then
13890 if test "$with_gnu_ld" = yes; then
13891 # If archive_cmds runs LD, not CC, wlarc should be empty
13894 # See if GNU ld supports shared libraries.
13896 aix3* | aix4* | aix5*)
13897 # On AIX/PPC, the GNU linker is very broken
13898 if test "$host_cpu" != ia64; then
13902 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13903 *** to be unable to reliably create shared libraries on AIX.
13904 *** Therefore, libtool is disabling shared libraries support. If you
13905 *** really care for shared libraries, you may want to modify your PATH
13906 *** so that a non-GNU linker is found, and then restart.
13913 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)'
13914 hardcode_libdir_flag_spec_F77='-L$libdir'
13915 hardcode_minus_L_F77=yes
13917 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13918 # that the semantics of dynamic libraries on AmigaOS, at least up
13919 # to version 4, is to share data among multiple programs linked
13920 # with the same dynamic library. Since this doesn't match the
13921 # behavior of shared libraries on other platforms, we can't use
13927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13928 allow_undefined_flag_F77=unsupported
13929 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13930 # support --undefined. This deserves some investigation. FIXME
13931 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13937 cygwin* | mingw* | pw32*)
13938 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13939 # as there is no search path for DLLs.
13940 hardcode_libdir_flag_spec_F77='-L$libdir'
13941 allow_undefined_flag_F77=unsupported
13942 always_export_symbols_F77=no
13943 enable_shared_with_static_runtimes_F77=yes
13944 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13946 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13947 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13948 # If the export-symbols file already is a .def file (1st line
13949 # is EXPORTS), use it as is; otherwise, prepend...
13950 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13951 cp $export_symbols $output_objdir/$soname.def;
13953 echo EXPORTS > $output_objdir/$soname.def;
13954 cat $export_symbols >> $output_objdir/$soname.def;
13956 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13964 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13967 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13968 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13973 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13978 *** create shared libraries on Solaris systems. Therefore, libtool
13979 *** is disabling shared libraries support. We urge you to upgrade GNU
13980 *** binutils to release 2.9.1 or newer. Another option is to modify
13981 *** your PATH or compiler configuration so that the native linker is
13982 *** used, and then restart.
13985 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13986 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13987 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13994 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13996 hardcode_direct_F77=yes
13997 hardcode_shlibpath_var_F77=no
14001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14002 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14003 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14010 if test "$ld_shlibs_F77" = yes; then
14011 runpath_var=LD_RUN_PATH
14012 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14013 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14014 # ancient GNU ld didn't support --whole-archive et. al.
14015 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14016 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14018 whole_archive_flag_spec_F77=
14022 # PORTME fill in a description of your system's linker (not GNU ld)
14025 allow_undefined_flag_F77=unsupported
14026 always_export_symbols_F77=yes
14027 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'
14028 # Note: this linker hardcodes the directories in LIBPATH if there
14029 # are no directories specified by -L.
14030 hardcode_minus_L_F77=yes
14031 if test "$GCC" = yes && test -z "$link_static_flag"; then
14032 # Neither direct hardcoding nor static linking is supported with a
14034 hardcode_direct_F77=unsupported
14039 if test "$host_cpu" = ia64; then
14040 # On IA64, the linker does run time linking by default, so we don't
14041 # have to do anything special.
14042 aix_use_runtimelinking=no
14043 exp_sym_flag='-Bexport'
14046 # If we're using GNU nm, then we don't want the "-C" option.
14047 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14048 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14049 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'
14051 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'
14053 aix_use_runtimelinking=no
14055 # Test if we are trying to use run time linking or normal
14056 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14057 # need to do runtime linking.
14058 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14059 for ld_flag in $LDFLAGS; do
14060 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14061 aix_use_runtimelinking=yes
14067 exp_sym_flag='-bexport'
14068 no_entry_flag='-bnoentry'
14071 # When large executables or shared objects are built, AIX ld can
14072 # have problems creating the table of contents. If linking a library
14073 # or program results in "error TOC overflow" add -mminimal-toc to
14074 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14075 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14077 archive_cmds_F77=''
14078 hardcode_direct_F77=yes
14079 hardcode_libdir_separator_F77=':'
14080 link_all_deplibs_F77=yes
14082 if test "$GCC" = yes; then
14083 case $host_os in aix4.012|aix4.012.*)
14084 # We only want to do this on AIX 4.2 and lower, the check
14085 # below for broken collect2 doesn't work under 4.3+
14086 collect2name=`${CC} -print-prog-name=collect2`
14087 if test -f "$collect2name" && \
14088 strings "$collect2name" | grep resolve_lib_name >/dev/null
14090 # We have reworked collect2
14091 hardcode_direct_F77=yes
14093 # We have old collect2
14094 hardcode_direct_F77=unsupported
14095 # It fails to find uninstalled libraries when the uninstalled
14096 # path is not listed in the libpath. Setting hardcode_minus_L
14097 # to unsupported forces relinking
14098 hardcode_minus_L_F77=yes
14099 hardcode_libdir_flag_spec_F77='-L$libdir'
14100 hardcode_libdir_separator_F77=
14103 shared_flag='-shared'
14106 if test "$host_cpu" = ia64; then
14107 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14108 # chokes on -Wl,-G. The following line is correct:
14111 if test "$aix_use_runtimelinking" = yes; then
14112 shared_flag='${wl}-G'
14114 shared_flag='${wl}-bM:SRE'
14119 # It seems that -bexpall does not export symbols beginning with
14120 # underscore (_), so it is better to generate a list of symbols to export.
14121 always_export_symbols_F77=yes
14122 if test "$aix_use_runtimelinking" = yes; then
14123 # Warning - without using the other runtime loading flags (-brtl),
14124 # -berok will link without error, but may produce a broken library.
14125 allow_undefined_flag_F77='-berok'
14126 # Determine the default libpath from the value encoded in an empty executable.
14127 cat >conftest.$ac_ext <<_ACEOF
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14134 (eval $ac_link) 2>conftest.er1
14136 grep -v '^ *+' conftest.er1 >conftest.err
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; } &&
14147 { ac_try='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14156 # Check for a 64-bit object if we didn't find anything.
14157 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; }
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14164 rm -f conftest.err conftest.$ac_objext \
14165 conftest$ac_exeext conftest.$ac_ext
14166 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14168 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14169 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"
14171 if test "$host_cpu" = ia64; then
14172 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14173 allow_undefined_flag_F77="-z nodefs"
14174 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"
14176 # Determine the default libpath from the value encoded in an empty executable.
14177 cat >conftest.$ac_ext <<_ACEOF
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184 (eval $ac_link) 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try='test -s conftest$ac_exeext'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14206 # Check for a 64-bit object if we didn't find anything.
14207 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; }
14210 echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14214 rm -f conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14218 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14219 # Warning - without using the other run time loading flags,
14220 # -berok will link without error, but may produce a broken library.
14221 no_undefined_flag_F77=' ${wl}-bernotok'
14222 allow_undefined_flag_F77=' ${wl}-berok'
14223 # -bexpall does not export symbols beginning with underscore (_)
14224 always_export_symbols_F77=yes
14225 # Exported symbols can be pulled into shared objects from archives
14226 whole_archive_flag_spec_F77=' '
14227 archive_cmds_need_lc_F77=yes
14228 # This is similar to how AIX traditionally builds it's shared libraries.
14229 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'
14235 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)'
14236 hardcode_libdir_flag_spec_F77='-L$libdir'
14237 hardcode_minus_L_F77=yes
14238 # see comment about different semantics on the GNU ld section
14243 export_dynamic_flag_spec_F77=-rdynamic
14246 cygwin* | mingw* | pw32*)
14247 # When not using gcc, we currently assume that we are using
14248 # Microsoft Visual C++.
14249 # hardcode_libdir_flag_spec is actually meaningless, as there is
14250 # no search path for DLLs.
14251 hardcode_libdir_flag_spec_F77=' '
14252 allow_undefined_flag_F77=unsupported
14253 # Tell ltmain to make .lib files, not .a files.
14255 # Tell ltmain to make .dll files, not .so files.
14257 # FIXME: Setting linknames here is a bad hack.
14258 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14259 # The linker will automatically build a .lib file if we build a DLL.
14260 old_archive_From_new_cmds_F77='true'
14261 # FIXME: Should let the user specify the lib program.
14262 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14263 fix_srcfile_path='`cygpath -w "$srcfile"`'
14264 enable_shared_with_static_runtimes_F77=yes
14267 darwin* | rhapsody*)
14268 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14269 archive_cmds_need_lc_F77=no
14271 rhapsody* | darwin1.[012])
14272 allow_undefined_flag_F77='-undefined suppress'
14275 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14278 # FIXME: Relying on posixy $() will cause problems for
14279 # cross-compilation, but unfortunately the echo tests do not
14280 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
14281 # `"' quotes if we put them in here... so don't!
14282 lt_int_apple_cc_single_mod=no
14283 output_verbose_link_cmd='echo'
14284 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14285 lt_int_apple_cc_single_mod=yes
14287 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14288 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14290 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14292 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14293 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14294 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14295 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14297 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14299 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14300 hardcode_direct_F77=no
14301 hardcode_automatic_F77=yes
14302 hardcode_shlibpath_var_F77=unsupported
14303 whole_archive_flag_spec_F77='-all_load $convenience'
14304 link_all_deplibs_F77=yes
14309 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14310 hardcode_libdir_flag_spec_F77='-L$libdir'
14311 hardcode_shlibpath_var_F77=no
14318 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14319 # support. Future versions do this automatically, but an explicit c++rt0.o
14320 # does not break anything, and helps significantly (at the cost of a little
14323 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14324 hardcode_libdir_flag_spec_F77='-R$libdir'
14325 hardcode_direct_F77=yes
14326 hardcode_shlibpath_var_F77=no
14329 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14331 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14332 hardcode_direct_F77=yes
14333 hardcode_minus_L_F77=yes
14334 hardcode_shlibpath_var_F77=no
14337 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14339 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14340 hardcode_libdir_flag_spec_F77='-R$libdir'
14341 hardcode_direct_F77=yes
14342 hardcode_shlibpath_var_F77=no
14346 if test "$GCC" = yes; then
14347 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'
14349 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'
14351 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14352 hardcode_libdir_separator_F77=:
14353 hardcode_direct_F77=yes
14355 # hardcode_minus_L: Not really in the search PATH,
14356 # but as the default location of the library.
14357 hardcode_minus_L_F77=yes
14358 export_dynamic_flag_spec_F77='${wl}-E'
14362 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14363 case "$host_cpu" in
14365 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14368 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14372 case "$host_cpu" in
14374 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14377 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14381 if test "$with_gnu_ld" = no; then
14382 case "$host_cpu" in
14384 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14385 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14386 hardcode_libdir_separator_F77=:
14387 hardcode_direct_F77=no
14388 hardcode_shlibpath_var_F77=no
14391 hardcode_libdir_flag_spec_F77='-L$libdir'
14392 hardcode_direct_F77=no
14393 hardcode_shlibpath_var_F77=no
14395 # hardcode_minus_L: Not really in the search PATH,
14396 # but as the default location of the library.
14397 hardcode_minus_L_F77=yes
14400 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14401 hardcode_libdir_separator_F77=:
14402 hardcode_direct_F77=yes
14403 export_dynamic_flag_spec_F77='${wl}-E'
14405 # hardcode_minus_L: Not really in the search PATH,
14406 # but as the default location of the library.
14407 hardcode_minus_L_F77=yes
14413 irix5* | irix6* | nonstopux*)
14414 if test "$GCC" = yes; then
14415 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'
14417 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'
14418 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14420 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14421 hardcode_libdir_separator_F77=:
14422 link_all_deplibs_F77=yes
14426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14427 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14429 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14431 hardcode_libdir_flag_spec_F77='-R$libdir'
14432 hardcode_direct_F77=yes
14433 hardcode_shlibpath_var_F77=no
14437 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14438 hardcode_direct_F77=yes
14439 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14440 hardcode_libdir_separator_F77=:
14441 hardcode_shlibpath_var_F77=no
14445 hardcode_direct_F77=yes
14446 hardcode_shlibpath_var_F77=no
14447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14448 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14449 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14450 export_dynamic_flag_spec_F77='${wl}-E'
14453 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14454 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14455 hardcode_libdir_flag_spec_F77='-R$libdir'
14458 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14459 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14466 hardcode_libdir_flag_spec_F77='-L$libdir'
14467 hardcode_minus_L_F77=yes
14468 allow_undefined_flag_F77=unsupported
14469 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'
14470 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14474 if test "$GCC" = yes; then
14475 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14476 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'
14478 allow_undefined_flag_F77=' -expect_unresolved \*'
14479 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'
14481 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14482 hardcode_libdir_separator_F77=:
14485 osf4* | osf5*) # as osf3* with the addition of -msym flag
14486 if test "$GCC" = yes; then
14487 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14488 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'
14489 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14491 allow_undefined_flag_F77=' -expect_unresolved \*'
14492 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'
14493 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~
14494 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14496 # Both c and cxx compiler support -rpath directly
14497 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14499 hardcode_libdir_separator_F77=:
14503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14504 hardcode_shlibpath_var_F77=no
14505 export_dynamic_flag_spec_F77='${wl}-Bexport'
14506 runpath_var=LD_RUN_PATH
14507 hardcode_runpath_var=yes
14511 no_undefined_flag_F77=' -z text'
14512 if test "$GCC" = yes; then
14513 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14515 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14517 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14518 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14519 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14521 hardcode_libdir_flag_spec_F77='-R$libdir'
14522 hardcode_shlibpath_var_F77=no
14524 solaris2.[0-5] | solaris2.[0-5].*) ;;
14525 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14526 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14528 link_all_deplibs_F77=yes
14532 if test "x$host_vendor" = xsequent; then
14533 # Use $CC to link under sequent, because it throws in some extra .o
14534 # files that make .init and .fini sections work.
14535 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14537 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14539 hardcode_libdir_flag_spec_F77='-L$libdir'
14540 hardcode_direct_F77=yes
14541 hardcode_minus_L_F77=yes
14542 hardcode_shlibpath_var_F77=no
14546 case $host_vendor in
14548 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14549 hardcode_direct_F77=yes # is this really true???
14552 ## LD is ld it makes a PLAMLIB
14553 ## CC just makes a GrossModule.
14554 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14555 reload_cmds_F77='$CC -r -o $output$reload_objs'
14556 hardcode_direct_F77=no
14559 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14560 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14563 runpath_var='LD_RUN_PATH'
14564 hardcode_shlibpath_var_F77=no
14568 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14569 hardcode_shlibpath_var_F77=no
14570 export_dynamic_flag_spec_F77='-Bexport'
14574 if test -d /usr/nec; then
14575 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14576 hardcode_shlibpath_var_F77=no
14577 runpath_var=LD_RUN_PATH
14578 hardcode_runpath_var=yes
14584 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14585 hardcode_direct_F77=yes
14586 hardcode_minus_L_F77=no
14587 hardcode_shlibpath_var_F77=no
14588 hardcode_runpath_var=yes
14589 runpath_var=LD_RUN_PATH
14592 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14593 no_undefined_flag_F77='${wl}-z ${wl}text'
14594 if test "$GCC" = yes; then
14595 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14597 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14599 runpath_var='LD_RUN_PATH'
14600 hardcode_shlibpath_var_F77=no
14604 no_undefined_flag_F77=' -z text'
14605 # $CC -shared without GNU ld will not create a library from C++
14606 # object files and a static libstdc++, better avoid it by now
14607 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14608 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14610 hardcode_libdir_flag_spec_F77=
14611 hardcode_shlibpath_var_F77=no
14612 runpath_var='LD_RUN_PATH'
14616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14617 hardcode_libdir_flag_spec_F77='-L$libdir'
14618 hardcode_shlibpath_var_F77=no
14627 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14628 echo "${ECHO_T}$ld_shlibs_F77" >&6
14629 test "$ld_shlibs_F77" = no && can_build_shared=no
14631 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14632 if test "$GCC" = yes; then
14633 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14637 # Do we need to explicitly link libc?
14639 case "x$archive_cmds_need_lc_F77" in
14641 # Assume -lc should be added
14642 archive_cmds_need_lc_F77=yes
14644 if test "$enable_shared" = yes && test "$GCC" = yes; then
14645 case $archive_cmds_F77 in
14647 # FIXME: we may have to deal with multi-command sequences.
14650 # Test whether the compiler implicitly links with -lc since on some
14651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14652 # to ld, don't add -lc before -lgcc.
14653 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14654 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14659 (eval $ac_compile) 2>&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } 2>conftest.err; then
14665 libobjs=conftest.$ac_objext
14667 wl=$lt_prog_compiler_wl_F77
14673 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14674 allow_undefined_flag_F77=
14675 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14676 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }
14681 archive_cmds_need_lc_F77=no
14683 archive_cmds_need_lc_F77=yes
14685 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14687 cat conftest.err 1>&5
14690 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14691 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14698 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14699 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14700 hardcode_action_F77=
14701 if test -n "$hardcode_libdir_flag_spec_F77" || \
14702 test -n "$runpath_var F77" || \
14703 test "X$hardcode_automatic_F77"="Xyes" ; then
14705 # We can hardcode non-existant directories.
14706 if test "$hardcode_direct_F77" != no &&
14707 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14708 # have to relink, otherwise we might link with an installed library
14709 # when we should be linking with a yet-to-be-installed one
14710 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14711 test "$hardcode_minus_L_F77" != no; then
14712 # Linking always hardcodes the temporary library directory.
14713 hardcode_action_F77=relink
14715 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14716 hardcode_action_F77=immediate
14719 # We cannot hardcode anything, or else we can only hardcode existing
14721 hardcode_action_F77=unsupported
14723 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14724 echo "${ECHO_T}$hardcode_action_F77" >&6
14726 if test "$hardcode_action_F77" = relink; then
14727 # Fast installation is not supported
14728 enable_fast_install=no
14729 elif test "$shlibpath_overrides_runpath" = yes ||
14730 test "$enable_shared" = no; then
14731 # Fast installation is not necessary
14732 enable_fast_install=needless
14737 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14738 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14739 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14740 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14741 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14742 echo "$as_me:$LINENO: result: yes" >&5
14743 echo "${ECHO_T}yes" >&6
14745 # FIXME - insert some real tests, host_os isn't really good enough
14748 if test -n "$STRIP" ; then
14749 striplib="$STRIP -x"
14750 echo "$as_me:$LINENO: result: yes" >&5
14751 echo "${ECHO_T}yes" >&6
14753 echo "$as_me:$LINENO: result: no" >&5
14754 echo "${ECHO_T}no" >&6
14758 echo "$as_me:$LINENO: result: no" >&5
14759 echo "${ECHO_T}no" >&6
14764 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14765 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14766 library_names_spec=
14767 libname_spec='lib$name'
14771 postuninstall_cmds=
14775 shlibpath_overrides_runpath=unknown
14777 dynamic_linker="$host_os ld.so"
14778 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14779 if test "$GCC" = yes; then
14780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14781 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14782 # if the path contains ";" then we assume it to be the separator
14783 # otherwise default to the standard path separator (i.e. ":") - it is
14784 # assumed that no part of a normal pathname contains ";" but that should
14785 # okay in the real world where ";" in dirpaths is itself problematic.
14786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14791 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14793 need_lib_prefix=unknown
14794 hardcode_into_libs=no
14796 # when you set need_version to no, make sure it does not cause -set_version
14797 # flags to be left without arguments
14798 need_version=unknown
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14804 shlibpath_var=LIBPATH
14806 # AIX 3 has no versioning support, so we append a major version to the name.
14807 soname_spec='${libname}${release}${shared_ext}$major'
14814 hardcode_into_libs=yes
14815 if test "$host_cpu" = ia64; then
14816 # AIX 5 supports IA64
14817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14818 shlibpath_var=LD_LIBRARY_PATH
14820 # With GCC up to 2.95.x, collect2 would create an import file
14821 # for dependence libraries. The import file would start with
14822 # the line `#! .'. This would cause the generated library to
14823 # depend on `.', always an invalid library. This was fixed in
14824 # development snapshots of GCC prior to 3.0.
14826 aix4 | aix4.[01] | aix4.[01].*)
14827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14829 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14832 can_build_shared=no
14836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14837 # soname into executable. Probably we can add versioning support to
14838 # collect2, so additional links can be useful in future.
14839 if test "$aix_use_runtimelinking" = yes; then
14840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14841 # instead of lib<name>.a to let people know that these are not
14842 # typical AIX shared libraries.
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14845 # We preserve .a as extension for shared libraries through AIX4.2
14846 # and later when we are not doing run time linking.
14847 library_names_spec='${libname}${release}.a $libname.a'
14848 soname_spec='${libname}${release}${shared_ext}$major'
14850 shlibpath_var=LIBPATH
14855 library_names_spec='$libname.ixlibrary $libname.a'
14856 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14857 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'
14861 library_names_spec='${libname}${shared_ext}'
14862 dynamic_linker="$host_os ld.so"
14863 shlibpath_var=LIBRARY_PATH
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870 soname_spec='${libname}${release}${shared_ext}$major'
14871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14872 shlibpath_var=LD_LIBRARY_PATH
14873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14875 # the default ld.so.conf also contains /usr/contrib/lib and
14876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14877 # libtool to hard-code these into programs
14880 cygwin* | mingw* | pw32*)
14881 version_type=windows
14886 case $GCC,$host_os in
14887 yes,cygwin* | yes,mingw* | yes,pw32*)
14888 library_names_spec='$libname.dll.a'
14889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14890 postinstall_cmds='base_file=`basename \${file}`~
14891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14892 dldir=$destdir/`dirname \$dlpath`~
14893 test -d \$dldir || mkdir -p \$dldir~
14894 $install_prog $dir/$dlname \$dldir/$dlname'
14895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14896 dlpath=$dir/\$dldll~
14898 shlibpath_overrides_runpath=yes
14902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14904 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14907 # MinGW DLLs use traditional 'lib' prefix
14908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14909 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14910 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14911 # It is most probably a Windows format PATH printed by
14912 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14913 # path with ; separators, and with drive letters. We can handle the
14914 # drive letters (cygwin fileutils understands them), so leave them,
14915 # especially as we might pass files found there to a mingw objdump,
14916 # which wouldn't understand a cygwinified path. Ahh.
14917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14923 # pw32 DLLs use 'pw' prefix rather than 'lib'
14924 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14930 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14933 dynamic_linker='Win32 ld.exe'
14934 # FIXME: first we should search . and the directory the executable is in
14938 darwin* | rhapsody*)
14939 dynamic_linker="$host_os dyld"
14940 version_type=darwin
14943 # FIXME: Relying on posixy $() will cause problems for
14944 # cross-compilation, but unfortunately the echo tests do not
14945 # yet detect zsh echo's removal of \ escapes.
14946 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14947 soname_spec='${libname}${release}${major}$shared_ext'
14948 shlibpath_overrides_runpath=yes
14949 shlibpath_var=DYLD_LIBRARY_PATH
14950 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14951 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14952 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14953 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"`
14955 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14972 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14973 version_type=freebsd-$objformat
14974 case $version_type in
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14985 shlibpath_var=LD_LIBRARY_PATH
14988 shlibpath_overrides_runpath=yes
14990 freebsd3.01* | freebsdelf3.01*)
14991 shlibpath_overrides_runpath=yes
14992 hardcode_into_libs=yes
14995 shlibpath_overrides_runpath=no
14996 hardcode_into_libs=yes
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 shlibpath_var=LD_LIBRARY_PATH
15008 hardcode_into_libs=yes
15011 hpux9* | hpux10* | hpux11*)
15012 # Give a soname corresponding to the major version so that dld.sl refuses to
15013 # link against other versions.
15017 case "$host_cpu" in
15020 hardcode_into_libs=yes
15021 dynamic_linker="$host_os dld.so"
15022 shlibpath_var=LD_LIBRARY_PATH
15023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 if test "X$HPUX_IA64_MODE" = X32; then
15027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15029 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15035 hardcode_into_libs=yes
15036 dynamic_linker="$host_os dld.sl"
15037 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15040 soname_spec='${libname}${release}${shared_ext}$major'
15041 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15046 dynamic_linker="$host_os dld.sl"
15047 shlibpath_var=SHLIB_PATH
15048 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15050 soname_spec='${libname}${release}${shared_ext}$major'
15053 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15054 postinstall_cmds='chmod 555 $lib'
15057 irix5* | irix6* | nonstopux*)
15059 nonstopux*) version_type=nonstopux ;;
15061 if test "$lt_cv_prog_gnu_ld" = yes; then
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15072 irix5* | nonstopux*)
15073 libsuff= shlibsuff=
15076 case $LD in # libtool.m4 will add one of these switches to LD
15077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15078 libsuff= shlibsuff= libmagic=32-bit;;
15079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15080 libsuff=32 shlibsuff=N32 libmagic=N32;;
15081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15083 *) libsuff= shlibsuff= libmagic=never-match;;
15087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15088 shlibpath_overrides_runpath=no
15089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15091 hardcode_into_libs=yes
15094 # No shared lib support for Linux oldld, aout, or coff.
15095 linux*oldld* | linux*aout* | linux*coff*)
15099 # This must be Linux ELF.
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105 soname_spec='${libname}${release}${shared_ext}$major'
15106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=no
15109 # This implies no fast_install, which is unacceptable.
15110 # Some rework will be needed to allow for fast_install
15111 # before this can be enabled.
15112 hardcode_into_libs=yes
15114 # We used to test for /lib/ld.so.1 and disable shared libraries on
15115 # powerpc, because MkLinux only supported shared libraries with the
15116 # GNU dynamic linker. Since this was broken with cross compilers,
15117 # most powerpc-linux boxes support dynamic linking these days and
15118 # people can always --disable-shared, the test was removed, and we
15119 # assume the GNU/Linux dynamic linker is in use.
15120 dynamic_linker='GNU/Linux ld.so'
15127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15130 dynamic_linker='NetBSD (a.out) ld.so'
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15133 soname_spec='${libname}${release}${shared_ext}$major'
15134 dynamic_linker='NetBSD ld.elf_so'
15136 shlibpath_var=LD_LIBRARY_PATH
15137 shlibpath_overrides_runpath=yes
15138 hardcode_into_libs=yes
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 shlibpath_var=LD_LIBRARY_PATH
15145 shlibpath_overrides_runpath=yes
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 shlibpath_var=LD_LIBRARY_PATH
15155 shlibpath_overrides_runpath=yes
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15167 openbsd2.[89] | openbsd2.[89].*)
15168 shlibpath_overrides_runpath=no
15171 shlibpath_overrides_runpath=yes
15175 shlibpath_overrides_runpath=yes
15180 libname_spec='$name'
15183 library_names_spec='$libname${shared_ext} $libname.a'
15184 dynamic_linker='OS/2 ld.exe'
15185 shlibpath_var=LIBPATH
15188 osf3* | osf4* | osf5*)
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 shlibpath_var=LD_LIBRARY_PATH
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 shlibpath_overrides_runpath=yes
15214 hardcode_into_libs=yes
15215 # ldd complains unless libraries are executable
15216 postinstall_cmds='chmod +x $lib'
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 shlibpath_overrides_runpath=yes
15225 if test "$with_gnu_ld" = yes; then
15231 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 soname_spec='${libname}${release}${shared_ext}$major'
15235 shlibpath_var=LD_LIBRARY_PATH
15236 case $host_vendor in
15238 shlibpath_overrides_runpath=no
15240 export_dynamic_flag_spec='${wl}-Blargedynsym'
15241 runpath_var=LD_RUN_PATH
15249 shlibpath_overrides_runpath=no
15250 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15256 if test -d /usr/nec ;then
15258 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15259 soname_spec='$libname${shared_ext}.$major'
15260 shlibpath_var=LD_LIBRARY_PATH
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15275 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15276 echo "${ECHO_T}$dynamic_linker" >&6
15277 test "$dynamic_linker" = no && can_build_shared=no
15280 # The else clause should only fire when bootstrapping the
15281 # libtool distribution, otherwise you forgot to ship ltmain.sh
15282 # with your package, and you will get complaints that there are
15283 # no rules to generate ltmain.sh.
15284 if test -f "$ltmain"; then
15285 # See if we are running on zsh, and set the options which allow our commands through
15286 # without removal of \ escapes.
15287 if test -n "${ZSH_VERSION+set}" ; then
15288 setopt NO_GLOB_SUBST
15290 # Now quote all the things that may contain metacharacters while being
15291 # careful not to overquote the AC_SUBSTed values. We take copies of the
15292 # variables and quote the copies for generation of the libtool script.
15293 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15294 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15295 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15296 deplibs_check_method reload_flag reload_cmds need_locks \
15297 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15298 lt_cv_sys_global_symbol_to_c_name_address \
15299 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15300 old_postinstall_cmds old_postuninstall_cmds \
15304 lt_prog_compiler_wl_F77 \
15305 lt_prog_compiler_pic_F77 \
15306 lt_prog_compiler_static_F77 \
15307 lt_prog_compiler_no_builtin_flag_F77 \
15308 export_dynamic_flag_spec_F77 \
15309 thread_safe_flag_spec_F77 \
15310 whole_archive_flag_spec_F77 \
15311 enable_shared_with_static_runtimes_F77 \
15312 old_archive_cmds_F77 \
15313 old_archive_from_new_cmds_F77 \
15314 predep_objects_F77 \
15315 postdep_objects_F77 \
15318 compiler_lib_search_path_F77 \
15320 archive_expsym_cmds_F77 \
15321 postinstall_cmds_F77 \
15322 postuninstall_cmds_F77 \
15323 old_archive_from_expsyms_cmds_F77 \
15324 allow_undefined_flag_F77 \
15325 no_undefined_flag_F77 \
15326 export_symbols_cmds_F77 \
15327 hardcode_libdir_flag_spec_F77 \
15328 hardcode_libdir_flag_spec_ld_F77 \
15329 hardcode_libdir_separator_F77 \
15330 hardcode_automatic_F77 \
15332 module_expsym_cmds_F77 \
15333 lt_cv_prog_compiler_c_o_F77 \
15334 exclude_expsyms_F77 \
15335 include_expsyms_F77; do
15338 old_archive_cmds_F77 | \
15339 old_archive_from_new_cmds_F77 | \
15340 archive_cmds_F77 | \
15341 archive_expsym_cmds_F77 | \
15342 module_cmds_F77 | \
15343 module_expsym_cmds_F77 | \
15344 old_archive_from_expsyms_cmds_F77 | \
15345 export_symbols_cmds_F77 | \
15346 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15347 postinstall_cmds | postuninstall_cmds | \
15348 old_postinstall_cmds | old_postuninstall_cmds | \
15349 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15350 # Double-quote double-evaled strings.
15351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15360 *'\$0 --fallback-echo"')
15361 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15367 cat <<__EOF__ >> "$cfgfile"
15368 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15370 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15372 # Shell to use when invoking shell scripts.
15375 # Whether or not to build shared libraries.
15376 build_libtool_libs=$enable_shared
15378 # Whether or not to build static libraries.
15379 build_old_libs=$enable_static
15381 # Whether or not to add -lc for building shared libraries.
15382 build_libtool_need_lc=$archive_cmds_need_lc_F77
15384 # Whether or not to disallow shared libs when runtime libs are static
15385 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15387 # Whether or not to optimize for fast installation.
15388 fast_install=$enable_fast_install
15391 host_alias=$host_alias
15394 # An echo program that does not interpret backslashes.
15399 AR_FLAGS=$lt_AR_FLAGS
15404 # A language-specific compiler.
15405 CC=$lt_compiler_F77
15407 # Is the compiler the GNU C compiler?
15413 # The linker used to build libraries.
15416 # Whether we need hard or soft links.
15419 # A BSD-compatible nm program.
15422 # A symbol stripping program
15425 # Used to examine libraries when file_magic_cmd begins "file"
15426 MAGIC_CMD=$MAGIC_CMD
15428 # Used on cygwin: DLL creation program.
15431 # Used on cygwin: object dumper.
15434 # Used on cygwin: assembler.
15437 # The name of the directory that contains temporary libtool files.
15440 # How to create reloadable object files.
15441 reload_flag=$lt_reload_flag
15442 reload_cmds=$lt_reload_cmds
15444 # How to pass a linker flag through the compiler.
15445 wl=$lt_lt_prog_compiler_wl_F77
15447 # Object file suffix (normally "o").
15448 objext="$ac_objext"
15450 # Old archive suffix (normally "a").
15453 # Shared library suffix (normally ".so").
15456 # Executable file suffix (normally "").
15459 # Additional compiler flags for building library objects.
15460 pic_flag=$lt_lt_prog_compiler_pic_F77
15463 # What is the maximum length of a command?
15464 max_cmd_len=$lt_cv_sys_max_cmd_len
15466 # Does compiler simultaneously support -c and -o options?
15467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15469 # Must we lock files when doing compilation ?
15470 need_locks=$lt_need_locks
15472 # Do we need the lib prefix for modules?
15473 need_lib_prefix=$need_lib_prefix
15475 # Do we need a version for libraries?
15476 need_version=$need_version
15478 # Whether dlopen is supported.
15479 dlopen_support=$enable_dlopen
15481 # Whether dlopen of programs is supported.
15482 dlopen_self=$enable_dlopen_self
15484 # Whether dlopen of statically linked programs is supported.
15485 dlopen_self_static=$enable_dlopen_self_static
15487 # Compiler flag to prevent dynamic linking.
15488 link_static_flag=$lt_lt_prog_compiler_static_F77
15490 # Compiler flag to turn off builtin functions.
15491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15493 # Compiler flag to allow reflexive dlopens.
15494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15496 # Compiler flag to generate shared objects directly from archives.
15497 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15499 # Compiler flag to generate thread-safe objects.
15500 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15502 # Library versioning type.
15503 version_type=$version_type
15505 # Format of library name prefix.
15506 libname_spec=$lt_libname_spec
15508 # List of archive names. First name is the real one, the rest are links.
15509 # The last name is the one that the linker finds with -lNAME.
15510 library_names_spec=$lt_library_names_spec
15512 # The coded name of the library, if different from the real name.
15513 soname_spec=$lt_soname_spec
15515 # Commands used to build and install an old-style archive.
15517 old_archive_cmds=$lt_old_archive_cmds_F77
15518 old_postinstall_cmds=$lt_old_postinstall_cmds
15519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15521 # Create an old-style archive from a shared archive.
15522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15524 # Create a temporary old-style archive to link instead of a shared archive.
15525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15527 # Commands used to build and install a shared archive.
15528 archive_cmds=$lt_archive_cmds_F77
15529 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15530 postinstall_cmds=$lt_postinstall_cmds
15531 postuninstall_cmds=$lt_postuninstall_cmds
15533 # Commands used to build a loadable module (assumed same as above if empty)
15534 module_cmds=$lt_module_cmds_F77
15535 module_expsym_cmds=$lt_module_expsym_cmds_F77
15537 # Commands to strip libraries.
15538 old_striplib=$lt_old_striplib
15539 striplib=$lt_striplib
15541 # Dependencies to place before the objects being linked to create a
15543 predep_objects=$lt_predep_objects_F77
15545 # Dependencies to place after the objects being linked to create a
15547 postdep_objects=$lt_postdep_objects_F77
15549 # Dependencies to place before the objects being linked to create a
15551 predeps=$lt_predeps_F77
15553 # Dependencies to place after the objects being linked to create a
15555 postdeps=$lt_postdeps_F77
15557 # The library search path used internally by the compiler when linking
15558 # a shared library.
15559 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15561 # Method to check whether dependent libraries are shared objects.
15562 deplibs_check_method=$lt_deplibs_check_method
15564 # Command to use when deplibs_check_method == file_magic.
15565 file_magic_cmd=$lt_file_magic_cmd
15567 # Flag that allows shared libraries with undefined symbols to be built.
15568 allow_undefined_flag=$lt_allow_undefined_flag_F77
15570 # Flag that forces no undefined symbols.
15571 no_undefined_flag=$lt_no_undefined_flag_F77
15573 # Commands used to finish a libtool library installation in a directory.
15574 finish_cmds=$lt_finish_cmds
15576 # Same as above, but a single script fragment to be evaled but not shown.
15577 finish_eval=$lt_finish_eval
15579 # Take the output of nm and produce a listing of raw symbols and C names.
15580 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15582 # Transform the output of nm in a proper C declaration
15583 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15585 # Transform the output of nm in a C name address pair
15586 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15588 # This is the shared library runtime path variable.
15589 runpath_var=$runpath_var
15591 # This is the shared library path variable.
15592 shlibpath_var=$shlibpath_var
15594 # Is shlibpath searched before the hard-coded library search path?
15595 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15597 # How to hardcode a shared library path into an executable.
15598 hardcode_action=$hardcode_action_F77
15600 # Whether we should hardcode library paths into libraries.
15601 hardcode_into_libs=$hardcode_into_libs
15603 # Flag to hardcode \$libdir into a binary during linking.
15604 # This must work even if \$libdir does not exist.
15605 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15607 # If ld is used when linking, flag to hardcode \$libdir into
15608 # a binary during linking. This must work even if \$libdir does
15610 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15612 # Whether we need a single -rpath flag with a separated argument.
15613 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15615 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15616 # resulting binary.
15617 hardcode_direct=$hardcode_direct_F77
15619 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15620 # resulting binary.
15621 hardcode_minus_L=$hardcode_minus_L_F77
15623 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15624 # the resulting binary.
15625 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15627 # Set to yes if building a shared library automatically hardcodes DIR into the library
15628 # and all subsequent libraries and executables linked against it.
15629 hardcode_automatic=$hardcode_automatic_F77
15631 # Variables whose values should be saved in libtool wrapper scripts and
15632 # restored at relink time.
15633 variables_saved_for_relink="$variables_saved_for_relink"
15635 # Whether libtool must link a program against all its dependency libraries.
15636 link_all_deplibs=$link_all_deplibs_F77
15638 # Compile-time system search path for libraries
15639 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15641 # Run-time system search path for libraries
15642 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15644 # Fix the shell variable \$srcfile for the compiler.
15645 fix_srcfile_path="$fix_srcfile_path_F77"
15647 # Set to yes if exported symbols are required.
15648 always_export_symbols=$always_export_symbols_F77
15650 # The commands to list exported symbols.
15651 export_symbols_cmds=$lt_export_symbols_cmds_F77
15653 # The commands to extract the exported symbol list from a shared archive.
15654 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15656 # Symbols that should not be listed in the preloaded symbols.
15657 exclude_expsyms=$lt_exclude_expsyms_F77
15659 # Symbols that must always be exported.
15660 include_expsyms=$lt_include_expsyms_F77
15662 # ### END LIBTOOL TAG CONFIG: $tagname
15668 # If there is no Makefile yet, we rely on a make rule to execute
15669 # `config.status --recheck' to rerun these tests and create the
15670 # libtool script then.
15671 test -f Makefile && make "$ltmain"
15676 ac_cpp='$CPP $CPPFLAGS'
15677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15689 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15693 # Source file extension for Java test sources.
15696 # Object file extension for compiled Java test sources.
15700 # Code to be used in simple compile tests
15701 lt_simple_compile_test_code="class foo {}\n"
15703 # Code to be used in simple link tests
15704 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15706 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15708 # If no C compiler was specified, use CC.
15711 # Allow CC to be a program name with arguments.
15715 # Allow CC to be a program name with arguments.
15721 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15722 archive_cmds_need_lc_GCJ=no
15725 ## There is no encapsulation within the following macros, do not change
15726 ## the running order or otherwise move them around unless you know exactly
15727 ## what you are doing...
15729 lt_prog_compiler_no_builtin_flag_GCJ=
15731 if test "$GCC" = yes; then
15732 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15734 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15735 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15736 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 lt_cv_prog_compiler_rtti_exceptions=no
15740 ac_outfile=conftest.$ac_objext
15741 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15742 lt_compiler_flag="-fno-rtti -fno-exceptions"
15743 # Insert the option either (1) after the last *FLAGS variable, or
15744 # (2) before a word containing "conftest.", or (3) at the end.
15745 # Note that $ac_compile itself does not contain backslashes and begins
15746 # with a dollar sign (not a hyphen), so the echo should work correctly.
15747 # The option is referenced via a variable to avoid confusing sed.
15748 lt_compile=`echo "$ac_compile" | $SED \
15749 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15751 -e 's:$: $lt_compiler_flag:'`
15752 (eval echo "\"\$as_me:15752: $lt_compile\"" >&5)
15753 (eval "$lt_compile" 2>conftest.err)
15755 cat conftest.err >&5
15756 echo "$as_me:15756: \$? = $ac_status" >&5
15757 if (exit $ac_status) && test -s "$ac_outfile"; then
15758 # The compiler can only warn and ignore the option if not recognized
15759 # So say no if there are warnings
15760 if test ! -s conftest.err; then
15761 lt_cv_prog_compiler_rtti_exceptions=yes
15767 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15768 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15770 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15771 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15778 lt_prog_compiler_wl_GCJ=
15779 lt_prog_compiler_pic_GCJ=
15780 lt_prog_compiler_static_GCJ=
15782 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15783 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15785 if test "$GCC" = yes; then
15786 lt_prog_compiler_wl_GCJ='-Wl,'
15787 lt_prog_compiler_static_GCJ='-static'
15791 # All AIX code is PIC.
15792 if test "$host_cpu" = ia64; then
15793 # AIX 5 now supports IA64 processor
15794 lt_prog_compiler_static_GCJ='-Bstatic'
15799 # FIXME: we need at least 68020 code to build shared libraries, but
15800 # adding the `-m68020' flag to GCC prevents building anything better,
15802 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15805 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15806 # PIC is the default for these OSes.
15809 mingw* | pw32* | os2*)
15810 # This hack is so that the source file can tell whether it is being
15811 # built for inclusion in a dll (and should export symbols for example).
15812 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15815 darwin* | rhapsody*)
15816 # PIC is the default on this platform
15817 # Common symbols not allowed in MH_DYLIB files
15818 lt_prog_compiler_pic_GCJ='-fno-common'
15822 # Just because we use GCC doesn't mean we suddenly get shared libraries
15823 # on systems that don't support them.
15824 lt_prog_compiler_can_build_shared_GCJ=no
15829 if test -d /usr/nec; then
15830 lt_prog_compiler_pic_GCJ=-Kconform_pic
15835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15836 # not for PA HP-UX.
15837 case "$host_cpu" in
15842 lt_prog_compiler_pic_GCJ='-fPIC'
15848 lt_prog_compiler_pic_GCJ='-fPIC'
15852 # PORTME Check for flag to pass linker flags through the system compiler.
15855 lt_prog_compiler_wl_GCJ='-Wl,'
15856 if test "$host_cpu" = ia64; then
15857 # AIX 5 now supports IA64 processor
15858 lt_prog_compiler_static_GCJ='-Bstatic'
15860 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15864 mingw* | pw32* | os2*)
15865 # This hack is so that the source file can tell whether it is being
15866 # built for inclusion in a dll (and should export symbols for example).
15867 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15870 hpux9* | hpux10* | hpux11*)
15871 lt_prog_compiler_wl_GCJ='-Wl,'
15872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15873 # not for PA HP-UX.
15874 case "$host_cpu" in
15879 lt_prog_compiler_pic_GCJ='+Z'
15882 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15883 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15886 irix5* | irix6* | nonstopux*)
15887 lt_prog_compiler_wl_GCJ='-Wl,'
15888 # PIC (with -KPIC) is the default.
15889 lt_prog_compiler_static_GCJ='-non_shared'
15893 lt_prog_compiler_pic_GCJ='-KPIC'
15894 lt_prog_compiler_static_GCJ='-Bstatic'
15900 lt_prog_compiler_wl_GCJ='-Wl,'
15901 lt_prog_compiler_pic_GCJ='-KPIC'
15902 lt_prog_compiler_static_GCJ='-static'
15905 lt_prog_compiler_wl_GCJ='-Wl,'
15906 # All Alpha code is PIC.
15907 lt_prog_compiler_static_GCJ='-non_shared'
15912 osf3* | osf4* | osf5*)
15913 lt_prog_compiler_wl_GCJ='-Wl,'
15914 # All OSF/1 code is PIC.
15915 lt_prog_compiler_static_GCJ='-non_shared'
15919 lt_prog_compiler_pic_GCJ='-Kpic'
15920 lt_prog_compiler_static_GCJ='-dn'
15924 lt_prog_compiler_wl_GCJ='-Wl,'
15925 lt_prog_compiler_pic_GCJ='-KPIC'
15926 lt_prog_compiler_static_GCJ='-Bstatic'
15930 lt_prog_compiler_wl_GCJ='-Qoption ld '
15931 lt_prog_compiler_pic_GCJ='-PIC'
15932 lt_prog_compiler_static_GCJ='-Bstatic'
15935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15936 lt_prog_compiler_wl_GCJ='-Wl,'
15937 lt_prog_compiler_pic_GCJ='-KPIC'
15938 lt_prog_compiler_static_GCJ='-Bstatic'
15942 if test -d /usr/nec ;then
15943 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15944 lt_prog_compiler_static_GCJ='-Bstatic'
15949 lt_prog_compiler_pic_GCJ='-pic'
15950 lt_prog_compiler_static_GCJ='-Bstatic'
15954 lt_prog_compiler_can_build_shared_GCJ=no
15959 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15960 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15963 # Check to make sure the PIC flag actually works.
15965 if test -n "$lt_prog_compiler_pic_GCJ"; then
15966 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15967 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15968 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 lt_prog_compiler_pic_works_GCJ=no
15972 ac_outfile=conftest.$ac_objext
15973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15974 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15975 # Insert the option either (1) after the last *FLAGS variable, or
15976 # (2) before a word containing "conftest.", or (3) at the end.
15977 # Note that $ac_compile itself does not contain backslashes and begins
15978 # with a dollar sign (not a hyphen), so the echo should work correctly.
15979 # The option is referenced via a variable to avoid confusing sed.
15980 lt_compile=`echo "$ac_compile" | $SED \
15981 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15983 -e 's:$: $lt_compiler_flag:'`
15984 (eval echo "\"\$as_me:15984: $lt_compile\"" >&5)
15985 (eval "$lt_compile" 2>conftest.err)
15987 cat conftest.err >&5
15988 echo "$as_me:15988: \$? = $ac_status" >&5
15989 if (exit $ac_status) && test -s "$ac_outfile"; then
15990 # The compiler can only warn and ignore the option if not recognized
15991 # So say no if there are warnings
15992 if test ! -s conftest.err; then
15993 lt_prog_compiler_pic_works_GCJ=yes
15999 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16000 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16002 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16003 case $lt_prog_compiler_pic_GCJ in
16005 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16008 lt_prog_compiler_pic_GCJ=
16009 lt_prog_compiler_can_build_shared_GCJ=no
16014 # For platforms which do not support PIC, -DPIC is meaningless:
16016 lt_prog_compiler_pic_GCJ=
16019 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16023 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16024 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16025 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 lt_cv_prog_compiler_c_o_GCJ=no
16029 $rm -r conftest 2>/dev/null
16033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16035 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16036 # that will create temporary files in the current directory regardless of
16037 # the output directory. Thus, making CWD read-only will cause this test
16038 # to fail, enabling locking or at least warning the user not to do parallel
16042 lt_compiler_flag="-o out/conftest2.$ac_objext"
16043 # Insert the option either (1) after the last *FLAGS variable, or
16044 # (2) before a word containing "conftest.", or (3) at the end.
16045 # Note that $ac_compile itself does not contain backslashes and begins
16046 # with a dollar sign (not a hyphen), so the echo should work correctly.
16047 lt_compile=`echo "$ac_compile" | $SED \
16048 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16050 -e 's:$: $lt_compiler_flag:'`
16051 (eval echo "\"\$as_me:16051: $lt_compile\"" >&5)
16052 (eval "$lt_compile" 2>out/conftest.err)
16054 cat out/conftest.err >&5
16055 echo "$as_me:16055: \$? = $ac_status" >&5
16056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16058 # The compiler can only warn and ignore the option if not recognized
16059 # So say no if there are warnings
16060 if test ! -s out/conftest.err; then
16061 lt_cv_prog_compiler_c_o_GCJ=yes
16065 $rm conftest* out/*
16072 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16076 hard_links="nottested"
16077 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16078 # do not overwrite the value of need_locks provided by the user
16079 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16085 ln conftest.a conftest.b 2>&5 || hard_links=no
16086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16087 echo "$as_me:$LINENO: result: $hard_links" >&5
16088 echo "${ECHO_T}$hard_links" >&6
16089 if test "$hard_links" = no; then
16090 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16098 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16102 allow_undefined_flag_GCJ=
16103 enable_shared_with_static_runtimes_GCJ=no
16105 archive_expsym_cmds_GCJ=
16106 old_archive_From_new_cmds_GCJ=
16107 old_archive_from_expsyms_cmds_GCJ=
16108 export_dynamic_flag_spec_GCJ=
16109 whole_archive_flag_spec_GCJ=
16110 thread_safe_flag_spec_GCJ=
16111 hardcode_libdir_flag_spec_GCJ=
16112 hardcode_libdir_flag_spec_ld_GCJ=
16113 hardcode_libdir_separator_GCJ=
16114 hardcode_direct_GCJ=no
16115 hardcode_minus_L_GCJ=no
16116 hardcode_shlibpath_var_GCJ=unsupported
16117 link_all_deplibs_GCJ=unknown
16118 hardcode_automatic_GCJ=no
16120 module_expsym_cmds_GCJ=
16121 always_export_symbols_GCJ=no
16122 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16123 # include_expsyms should be a list of space-separated symbols to be *always*
16124 # included in the symbol list
16125 include_expsyms_GCJ=
16126 # exclude_expsyms can be an extended regexp of symbols to exclude
16127 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16128 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16129 # as well as any symbol that contains `d'.
16130 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16132 # platforms (ab)use it in PIC code, but their linkers get confused if
16133 # the symbol is explicitly referenced. Since portable code cannot
16134 # rely on this symbol name, it's probably fine to never include it in
16135 # preloaded symbol tables.
16136 extract_expsyms_cmds=
16139 cygwin* | mingw* | pw32*)
16140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16141 # When not using gcc, we currently assume that we are using
16142 # Microsoft Visual C++.
16143 if test "$GCC" != yes; then
16153 if test "$with_gnu_ld" = yes; then
16154 # If archive_cmds runs LD, not CC, wlarc should be empty
16157 # See if GNU ld supports shared libraries.
16159 aix3* | aix4* | aix5*)
16160 # On AIX/PPC, the GNU linker is very broken
16161 if test "$host_cpu" != ia64; then
16165 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16166 *** to be unable to reliably create shared libraries on AIX.
16167 *** Therefore, libtool is disabling shared libraries support. If you
16168 *** really care for shared libraries, you may want to modify your PATH
16169 *** so that a non-GNU linker is found, and then restart.
16176 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)'
16177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16178 hardcode_minus_L_GCJ=yes
16180 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16181 # that the semantics of dynamic libraries on AmigaOS, at least up
16182 # to version 4, is to share data among multiple programs linked
16183 # with the same dynamic library. Since this doesn't match the
16184 # behavior of shared libraries on other platforms, we can't use
16190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16191 allow_undefined_flag_GCJ=unsupported
16192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16193 # support --undefined. This deserves some investigation. FIXME
16194 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16200 cygwin* | mingw* | pw32*)
16201 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16202 # as there is no search path for DLLs.
16203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16204 allow_undefined_flag_GCJ=unsupported
16205 always_export_symbols_GCJ=no
16206 enable_shared_with_static_runtimes_GCJ=yes
16207 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16209 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16210 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16211 # If the export-symbols file already is a .def file (1st line
16212 # is EXPORTS), use it as is; otherwise, prepend...
16213 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16214 cp $export_symbols $output_objdir/$soname.def;
16216 echo EXPORTS > $output_objdir/$soname.def;
16217 cat $export_symbols >> $output_objdir/$soname.def;
16219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16227 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16230 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16231 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16236 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16241 *** create shared libraries on Solaris systems. Therefore, libtool
16242 *** is disabling shared libraries support. We urge you to upgrade GNU
16243 *** binutils to release 2.9.1 or newer. Another option is to modify
16244 *** your PATH or compiler configuration so that the native linker is
16245 *** used, and then restart.
16248 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16249 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16250 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16257 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16259 hardcode_direct_GCJ=yes
16260 hardcode_shlibpath_var_GCJ=no
16264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16265 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16266 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16273 if test "$ld_shlibs_GCJ" = yes; then
16274 runpath_var=LD_RUN_PATH
16275 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16276 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16277 # ancient GNU ld didn't support --whole-archive et. al.
16278 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16279 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16281 whole_archive_flag_spec_GCJ=
16285 # PORTME fill in a description of your system's linker (not GNU ld)
16288 allow_undefined_flag_GCJ=unsupported
16289 always_export_symbols_GCJ=yes
16290 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'
16291 # Note: this linker hardcodes the directories in LIBPATH if there
16292 # are no directories specified by -L.
16293 hardcode_minus_L_GCJ=yes
16294 if test "$GCC" = yes && test -z "$link_static_flag"; then
16295 # Neither direct hardcoding nor static linking is supported with a
16297 hardcode_direct_GCJ=unsupported
16302 if test "$host_cpu" = ia64; then
16303 # On IA64, the linker does run time linking by default, so we don't
16304 # have to do anything special.
16305 aix_use_runtimelinking=no
16306 exp_sym_flag='-Bexport'
16309 # If we're using GNU nm, then we don't want the "-C" option.
16310 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16311 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16312 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'
16314 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'
16316 aix_use_runtimelinking=no
16318 # Test if we are trying to use run time linking or normal
16319 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16320 # need to do runtime linking.
16321 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16322 for ld_flag in $LDFLAGS; do
16323 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16324 aix_use_runtimelinking=yes
16330 exp_sym_flag='-bexport'
16331 no_entry_flag='-bnoentry'
16334 # When large executables or shared objects are built, AIX ld can
16335 # have problems creating the table of contents. If linking a library
16336 # or program results in "error TOC overflow" add -mminimal-toc to
16337 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16338 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16340 archive_cmds_GCJ=''
16341 hardcode_direct_GCJ=yes
16342 hardcode_libdir_separator_GCJ=':'
16343 link_all_deplibs_GCJ=yes
16345 if test "$GCC" = yes; then
16346 case $host_os in aix4.012|aix4.012.*)
16347 # We only want to do this on AIX 4.2 and lower, the check
16348 # below for broken collect2 doesn't work under 4.3+
16349 collect2name=`${CC} -print-prog-name=collect2`
16350 if test -f "$collect2name" && \
16351 strings "$collect2name" | grep resolve_lib_name >/dev/null
16353 # We have reworked collect2
16354 hardcode_direct_GCJ=yes
16356 # We have old collect2
16357 hardcode_direct_GCJ=unsupported
16358 # It fails to find uninstalled libraries when the uninstalled
16359 # path is not listed in the libpath. Setting hardcode_minus_L
16360 # to unsupported forces relinking
16361 hardcode_minus_L_GCJ=yes
16362 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16363 hardcode_libdir_separator_GCJ=
16366 shared_flag='-shared'
16369 if test "$host_cpu" = ia64; then
16370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16371 # chokes on -Wl,-G. The following line is correct:
16374 if test "$aix_use_runtimelinking" = yes; then
16375 shared_flag='${wl}-G'
16377 shared_flag='${wl}-bM:SRE'
16382 # It seems that -bexpall does not export symbols beginning with
16383 # underscore (_), so it is better to generate a list of symbols to export.
16384 always_export_symbols_GCJ=yes
16385 if test "$aix_use_runtimelinking" = yes; then
16386 # Warning - without using the other runtime loading flags (-brtl),
16387 # -berok will link without error, but may produce a broken library.
16388 allow_undefined_flag_GCJ='-berok'
16389 # Determine the default libpath from the value encoded in an empty executable.
16390 cat >conftest.$ac_ext <<_ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16405 rm -f conftest.$ac_objext conftest$ac_exeext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407 (eval $ac_link) 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
16414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; } &&
16420 { ac_try='test -s conftest$ac_exeext'
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; }; then
16427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16429 # Check for a 64-bit object if we didn't find anything.
16430 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; }
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16437 rm -f conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16441 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16442 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"
16444 if test "$host_cpu" = ia64; then
16445 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16446 allow_undefined_flag_GCJ="-z nodefs"
16447 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"
16449 # Determine the default libpath from the value encoded in an empty executable.
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16465 rm -f conftest.$ac_objext conftest$ac_exeext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16467 (eval $ac_link) 2>conftest.er1
16469 grep -v '^ *+' conftest.er1 >conftest.err
16471 cat conftest.err >&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest$ac_exeext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16489 # Check for a 64-bit object if we didn't find anything.
16490 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; }
16493 echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16497 rm -f conftest.err conftest.$ac_objext \
16498 conftest$ac_exeext conftest.$ac_ext
16499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16501 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16502 # Warning - without using the other run time loading flags,
16503 # -berok will link without error, but may produce a broken library.
16504 no_undefined_flag_GCJ=' ${wl}-bernotok'
16505 allow_undefined_flag_GCJ=' ${wl}-berok'
16506 # -bexpall does not export symbols beginning with underscore (_)
16507 always_export_symbols_GCJ=yes
16508 # Exported symbols can be pulled into shared objects from archives
16509 whole_archive_flag_spec_GCJ=' '
16510 archive_cmds_need_lc_GCJ=yes
16511 # This is similar to how AIX traditionally builds it's shared libraries.
16512 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'
16518 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)'
16519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16520 hardcode_minus_L_GCJ=yes
16521 # see comment about different semantics on the GNU ld section
16526 export_dynamic_flag_spec_GCJ=-rdynamic
16529 cygwin* | mingw* | pw32*)
16530 # When not using gcc, we currently assume that we are using
16531 # Microsoft Visual C++.
16532 # hardcode_libdir_flag_spec is actually meaningless, as there is
16533 # no search path for DLLs.
16534 hardcode_libdir_flag_spec_GCJ=' '
16535 allow_undefined_flag_GCJ=unsupported
16536 # Tell ltmain to make .lib files, not .a files.
16538 # Tell ltmain to make .dll files, not .so files.
16540 # FIXME: Setting linknames here is a bad hack.
16541 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16542 # The linker will automatically build a .lib file if we build a DLL.
16543 old_archive_From_new_cmds_GCJ='true'
16544 # FIXME: Should let the user specify the lib program.
16545 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16546 fix_srcfile_path='`cygpath -w "$srcfile"`'
16547 enable_shared_with_static_runtimes_GCJ=yes
16550 darwin* | rhapsody*)
16551 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16552 archive_cmds_need_lc_GCJ=no
16554 rhapsody* | darwin1.[012])
16555 allow_undefined_flag_GCJ='-undefined suppress'
16558 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16561 # FIXME: Relying on posixy $() will cause problems for
16562 # cross-compilation, but unfortunately the echo tests do not
16563 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16564 # `"' quotes if we put them in here... so don't!
16565 lt_int_apple_cc_single_mod=no
16566 output_verbose_link_cmd='echo'
16567 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16568 lt_int_apple_cc_single_mod=yes
16570 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16571 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16573 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16575 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16576 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16577 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16578 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16580 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16582 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16583 hardcode_direct_GCJ=no
16584 hardcode_automatic_GCJ=yes
16585 hardcode_shlibpath_var_GCJ=unsupported
16586 whole_archive_flag_spec_GCJ='-all_load $convenience'
16587 link_all_deplibs_GCJ=yes
16592 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16593 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16594 hardcode_shlibpath_var_GCJ=no
16601 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16602 # support. Future versions do this automatically, but an explicit c++rt0.o
16603 # does not break anything, and helps significantly (at the cost of a little
16606 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16607 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16608 hardcode_direct_GCJ=yes
16609 hardcode_shlibpath_var_GCJ=no
16612 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16614 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16615 hardcode_direct_GCJ=yes
16616 hardcode_minus_L_GCJ=yes
16617 hardcode_shlibpath_var_GCJ=no
16620 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16622 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16623 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16624 hardcode_direct_GCJ=yes
16625 hardcode_shlibpath_var_GCJ=no
16629 if test "$GCC" = yes; then
16630 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'
16632 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'
16634 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16635 hardcode_libdir_separator_GCJ=:
16636 hardcode_direct_GCJ=yes
16638 # hardcode_minus_L: Not really in the search PATH,
16639 # but as the default location of the library.
16640 hardcode_minus_L_GCJ=yes
16641 export_dynamic_flag_spec_GCJ='${wl}-E'
16645 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16646 case "$host_cpu" in
16648 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16651 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16655 case "$host_cpu" in
16657 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16660 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16664 if test "$with_gnu_ld" = no; then
16665 case "$host_cpu" in
16667 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16668 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16669 hardcode_libdir_separator_GCJ=:
16670 hardcode_direct_GCJ=no
16671 hardcode_shlibpath_var_GCJ=no
16674 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16675 hardcode_direct_GCJ=no
16676 hardcode_shlibpath_var_GCJ=no
16678 # hardcode_minus_L: Not really in the search PATH,
16679 # but as the default location of the library.
16680 hardcode_minus_L_GCJ=yes
16683 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16684 hardcode_libdir_separator_GCJ=:
16685 hardcode_direct_GCJ=yes
16686 export_dynamic_flag_spec_GCJ='${wl}-E'
16688 # hardcode_minus_L: Not really in the search PATH,
16689 # but as the default location of the library.
16690 hardcode_minus_L_GCJ=yes
16696 irix5* | irix6* | nonstopux*)
16697 if test "$GCC" = yes; then
16698 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'
16700 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'
16701 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16703 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16704 hardcode_libdir_separator_GCJ=:
16705 link_all_deplibs_GCJ=yes
16709 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16710 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16712 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16714 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16715 hardcode_direct_GCJ=yes
16716 hardcode_shlibpath_var_GCJ=no
16720 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721 hardcode_direct_GCJ=yes
16722 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16723 hardcode_libdir_separator_GCJ=:
16724 hardcode_shlibpath_var_GCJ=no
16728 hardcode_direct_GCJ=yes
16729 hardcode_shlibpath_var_GCJ=no
16730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16731 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16733 export_dynamic_flag_spec_GCJ='${wl}-E'
16736 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16737 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16738 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16741 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16742 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16749 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16750 hardcode_minus_L_GCJ=yes
16751 allow_undefined_flag_GCJ=unsupported
16752 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'
16753 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16757 if test "$GCC" = yes; then
16758 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16759 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'
16761 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16762 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'
16764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16765 hardcode_libdir_separator_GCJ=:
16768 osf4* | osf5*) # as osf3* with the addition of -msym flag
16769 if test "$GCC" = yes; then
16770 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16771 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'
16772 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16774 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16775 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'
16776 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~
16777 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16779 # Both c and cxx compiler support -rpath directly
16780 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16782 hardcode_libdir_separator_GCJ=:
16786 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16787 hardcode_shlibpath_var_GCJ=no
16788 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16789 runpath_var=LD_RUN_PATH
16790 hardcode_runpath_var=yes
16794 no_undefined_flag_GCJ=' -z text'
16795 if test "$GCC" = yes; then
16796 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16797 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16798 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16800 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16801 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16802 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16804 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16805 hardcode_shlibpath_var_GCJ=no
16807 solaris2.[0-5] | solaris2.[0-5].*) ;;
16808 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16809 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16811 link_all_deplibs_GCJ=yes
16815 if test "x$host_vendor" = xsequent; then
16816 # Use $CC to link under sequent, because it throws in some extra .o
16817 # files that make .init and .fini sections work.
16818 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16820 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16823 hardcode_direct_GCJ=yes
16824 hardcode_minus_L_GCJ=yes
16825 hardcode_shlibpath_var_GCJ=no
16829 case $host_vendor in
16831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832 hardcode_direct_GCJ=yes # is this really true???
16835 ## LD is ld it makes a PLAMLIB
16836 ## CC just makes a GrossModule.
16837 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16838 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16839 hardcode_direct_GCJ=no
16842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16846 runpath_var='LD_RUN_PATH'
16847 hardcode_shlibpath_var_GCJ=no
16851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16852 hardcode_shlibpath_var_GCJ=no
16853 export_dynamic_flag_spec_GCJ='-Bexport'
16857 if test -d /usr/nec; then
16858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16859 hardcode_shlibpath_var_GCJ=no
16860 runpath_var=LD_RUN_PATH
16861 hardcode_runpath_var=yes
16867 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16868 hardcode_direct_GCJ=yes
16869 hardcode_minus_L_GCJ=no
16870 hardcode_shlibpath_var_GCJ=no
16871 hardcode_runpath_var=yes
16872 runpath_var=LD_RUN_PATH
16875 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16876 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16877 if test "$GCC" = yes; then
16878 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16880 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16882 runpath_var='LD_RUN_PATH'
16883 hardcode_shlibpath_var_GCJ=no
16887 no_undefined_flag_GCJ=' -z text'
16888 # $CC -shared without GNU ld will not create a library from C++
16889 # object files and a static libstdc++, better avoid it by now
16890 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16893 hardcode_libdir_flag_spec_GCJ=
16894 hardcode_shlibpath_var_GCJ=no
16895 runpath_var='LD_RUN_PATH'
16899 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16900 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16901 hardcode_shlibpath_var_GCJ=no
16910 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16911 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16912 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16915 if test "$GCC" = yes; then
16916 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16920 # Do we need to explicitly link libc?
16922 case "x$archive_cmds_need_lc_GCJ" in
16924 # Assume -lc should be added
16925 archive_cmds_need_lc_GCJ=yes
16927 if test "$enable_shared" = yes && test "$GCC" = yes; then
16928 case $archive_cmds_GCJ in
16930 # FIXME: we may have to deal with multi-command sequences.
16933 # Test whether the compiler implicitly links with -lc since on some
16934 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16935 # to ld, don't add -lc before -lgcc.
16936 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16937 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16939 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16942 (eval $ac_compile) 2>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } 2>conftest.err; then
16948 libobjs=conftest.$ac_objext
16950 wl=$lt_prog_compiler_wl_GCJ
16956 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16957 allow_undefined_flag_GCJ=
16958 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16959 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }
16964 archive_cmds_need_lc_GCJ=no
16966 archive_cmds_need_lc_GCJ=yes
16968 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16970 cat conftest.err 1>&5
16973 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16974 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16981 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16982 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16983 hardcode_action_GCJ=
16984 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16985 test -n "$runpath_var GCJ" || \
16986 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16988 # We can hardcode non-existant directories.
16989 if test "$hardcode_direct_GCJ" != no &&
16990 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16991 # have to relink, otherwise we might link with an installed library
16992 # when we should be linking with a yet-to-be-installed one
16993 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16994 test "$hardcode_minus_L_GCJ" != no; then
16995 # Linking always hardcodes the temporary library directory.
16996 hardcode_action_GCJ=relink
16998 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16999 hardcode_action_GCJ=immediate
17002 # We cannot hardcode anything, or else we can only hardcode existing
17004 hardcode_action_GCJ=unsupported
17006 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17007 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17009 if test "$hardcode_action_GCJ" = relink; then
17010 # Fast installation is not supported
17011 enable_fast_install=no
17012 elif test "$shlibpath_overrides_runpath" = yes ||
17013 test "$enable_shared" = no; then
17014 # Fast installation is not necessary
17015 enable_fast_install=needless
17020 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17021 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17022 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17025 echo "$as_me:$LINENO: result: yes" >&5
17026 echo "${ECHO_T}yes" >&6
17028 # FIXME - insert some real tests, host_os isn't really good enough
17031 if test -n "$STRIP" ; then
17032 striplib="$STRIP -x"
17033 echo "$as_me:$LINENO: result: yes" >&5
17034 echo "${ECHO_T}yes" >&6
17036 echo "$as_me:$LINENO: result: no" >&5
17037 echo "${ECHO_T}no" >&6
17041 echo "$as_me:$LINENO: result: no" >&5
17042 echo "${ECHO_T}no" >&6
17047 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17048 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17049 library_names_spec=
17050 libname_spec='lib$name'
17054 postuninstall_cmds=
17058 shlibpath_overrides_runpath=unknown
17060 dynamic_linker="$host_os ld.so"
17061 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17062 if test "$GCC" = yes; then
17063 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17064 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17065 # if the path contains ";" then we assume it to be the separator
17066 # otherwise default to the standard path separator (i.e. ":") - it is
17067 # assumed that no part of a normal pathname contains ";" but that should
17068 # okay in the real world where ";" in dirpaths is itself problematic.
17069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17074 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17076 need_lib_prefix=unknown
17077 hardcode_into_libs=no
17079 # when you set need_version to no, make sure it does not cause -set_version
17080 # flags to be left without arguments
17081 need_version=unknown
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17087 shlibpath_var=LIBPATH
17089 # AIX 3 has no versioning support, so we append a major version to the name.
17090 soname_spec='${libname}${release}${shared_ext}$major'
17097 hardcode_into_libs=yes
17098 if test "$host_cpu" = ia64; then
17099 # AIX 5 supports IA64
17100 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17101 shlibpath_var=LD_LIBRARY_PATH
17103 # With GCC up to 2.95.x, collect2 would create an import file
17104 # for dependence libraries. The import file would start with
17105 # the line `#! .'. This would cause the generated library to
17106 # depend on `.', always an invalid library. This was fixed in
17107 # development snapshots of GCC prior to 3.0.
17109 aix4 | aix4.[01] | aix4.[01].*)
17110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17112 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17115 can_build_shared=no
17119 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17120 # soname into executable. Probably we can add versioning support to
17121 # collect2, so additional links can be useful in future.
17122 if test "$aix_use_runtimelinking" = yes; then
17123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17124 # instead of lib<name>.a to let people know that these are not
17125 # typical AIX shared libraries.
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 # We preserve .a as extension for shared libraries through AIX4.2
17129 # and later when we are not doing run time linking.
17130 library_names_spec='${libname}${release}.a $libname.a'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17133 shlibpath_var=LIBPATH
17138 library_names_spec='$libname.ixlibrary $libname.a'
17139 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17140 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'
17144 library_names_spec='${libname}${shared_ext}'
17145 dynamic_linker="$host_os ld.so"
17146 shlibpath_var=LIBRARY_PATH
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17157 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17158 # the default ld.so.conf also contains /usr/contrib/lib and
17159 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17160 # libtool to hard-code these into programs
17163 cygwin* | mingw* | pw32*)
17164 version_type=windows
17169 case $GCC,$host_os in
17170 yes,cygwin* | yes,mingw* | yes,pw32*)
17171 library_names_spec='$libname.dll.a'
17172 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17173 postinstall_cmds='base_file=`basename \${file}`~
17174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17175 dldir=$destdir/`dirname \$dlpath`~
17176 test -d \$dldir || mkdir -p \$dldir~
17177 $install_prog $dir/$dlname \$dldir/$dlname'
17178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17179 dlpath=$dir/\$dldll~
17181 shlibpath_overrides_runpath=yes
17185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17187 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
17190 # MinGW DLLs use traditional 'lib' prefix
17191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17192 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17193 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17194 # It is most probably a Windows format PATH printed by
17195 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17196 # path with ; separators, and with drive letters. We can handle the
17197 # drive letters (cygwin fileutils understands them), so leave them,
17198 # especially as we might pass files found there to a mingw objdump,
17199 # which wouldn't understand a cygwinified path. Ahh.
17200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17206 # pw32 DLLs use 'pw' prefix rather than 'lib'
17207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17213 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17216 dynamic_linker='Win32 ld.exe'
17217 # FIXME: first we should search . and the directory the executable is in
17221 darwin* | rhapsody*)
17222 dynamic_linker="$host_os dyld"
17223 version_type=darwin
17226 # FIXME: Relying on posixy $() will cause problems for
17227 # cross-compilation, but unfortunately the echo tests do not
17228 # yet detect zsh echo's removal of \ escapes.
17229 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17230 soname_spec='${libname}${release}${major}$shared_ext'
17231 shlibpath_overrides_runpath=yes
17232 shlibpath_var=DYLD_LIBRARY_PATH
17233 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17234 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17235 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17236 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"`
17238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 shlibpath_var=LD_LIBRARY_PATH
17255 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17256 version_type=freebsd-$objformat
17257 case $version_type in
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17268 shlibpath_var=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath=yes
17273 freebsd3.01* | freebsdelf3.01*)
17274 shlibpath_overrides_runpath=yes
17275 hardcode_into_libs=yes
17278 shlibpath_overrides_runpath=no
17279 hardcode_into_libs=yes
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 hardcode_into_libs=yes
17294 hpux9* | hpux10* | hpux11*)
17295 # Give a soname corresponding to the major version so that dld.sl refuses to
17296 # link against other versions.
17300 case "$host_cpu" in
17303 hardcode_into_libs=yes
17304 dynamic_linker="$host_os dld.so"
17305 shlibpath_var=LD_LIBRARY_PATH
17306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17308 soname_spec='${libname}${release}${shared_ext}$major'
17309 if test "X$HPUX_IA64_MODE" = X32; then
17310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17318 hardcode_into_libs=yes
17319 dynamic_linker="$host_os dld.sl"
17320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17323 soname_spec='${libname}${release}${shared_ext}$major'
17324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17329 dynamic_linker="$host_os dld.sl"
17330 shlibpath_var=SHLIB_PATH
17331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333 soname_spec='${libname}${release}${shared_ext}$major'
17336 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17337 postinstall_cmds='chmod 555 $lib'
17340 irix5* | irix6* | nonstopux*)
17342 nonstopux*) version_type=nonstopux ;;
17344 if test "$lt_cv_prog_gnu_ld" = yes; then
17352 soname_spec='${libname}${release}${shared_ext}$major'
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17355 irix5* | nonstopux*)
17356 libsuff= shlibsuff=
17359 case $LD in # libtool.m4 will add one of these switches to LD
17360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17361 libsuff= shlibsuff= libmagic=32-bit;;
17362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17363 libsuff=32 shlibsuff=N32 libmagic=N32;;
17364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17366 *) libsuff= shlibsuff= libmagic=never-match;;
17370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17371 shlibpath_overrides_runpath=no
17372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17374 hardcode_into_libs=yes
17377 # No shared lib support for Linux oldld, aout, or coff.
17378 linux*oldld* | linux*aout* | linux*coff*)
17382 # This must be Linux ELF.
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17390 shlibpath_var=LD_LIBRARY_PATH
17391 shlibpath_overrides_runpath=no
17392 # This implies no fast_install, which is unacceptable.
17393 # Some rework will be needed to allow for fast_install
17394 # before this can be enabled.
17395 hardcode_into_libs=yes
17397 # We used to test for /lib/ld.so.1 and disable shared libraries on
17398 # powerpc, because MkLinux only supported shared libraries with the
17399 # GNU dynamic linker. Since this was broken with cross compilers,
17400 # most powerpc-linux boxes support dynamic linking these days and
17401 # people can always --disable-shared, the test was removed, and we
17402 # assume the GNU/Linux dynamic linker is in use.
17403 dynamic_linker='GNU/Linux ld.so'
17410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17413 dynamic_linker='NetBSD (a.out) ld.so'
17415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17416 soname_spec='${libname}${release}${shared_ext}$major'
17417 dynamic_linker='NetBSD ld.elf_so'
17419 shlibpath_var=LD_LIBRARY_PATH
17420 shlibpath_overrides_runpath=yes
17421 hardcode_into_libs=yes
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17427 shlibpath_var=LD_LIBRARY_PATH
17428 shlibpath_overrides_runpath=yes
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436 soname_spec='${libname}${release}${shared_ext}$major'
17437 shlibpath_var=LD_LIBRARY_PATH
17438 shlibpath_overrides_runpath=yes
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17447 shlibpath_var=LD_LIBRARY_PATH
17448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17450 openbsd2.[89] | openbsd2.[89].*)
17451 shlibpath_overrides_runpath=no
17454 shlibpath_overrides_runpath=yes
17458 shlibpath_overrides_runpath=yes
17463 libname_spec='$name'
17466 library_names_spec='$libname${shared_ext} $libname.a'
17467 dynamic_linker='OS/2 ld.exe'
17468 shlibpath_var=LIBPATH
17471 osf3* | osf4* | osf5*)
17475 soname_spec='${libname}${release}${shared_ext}$major'
17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17484 soname_spec='${libname}${release}${shared_ext}$major'
17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486 shlibpath_var=LD_LIBRARY_PATH
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=yes
17497 hardcode_into_libs=yes
17498 # ldd complains unless libraries are executable
17499 postinstall_cmds='chmod +x $lib'
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17505 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17506 shlibpath_var=LD_LIBRARY_PATH
17507 shlibpath_overrides_runpath=yes
17508 if test "$with_gnu_ld" = yes; then
17514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517 soname_spec='${libname}${release}${shared_ext}$major'
17518 shlibpath_var=LD_LIBRARY_PATH
17519 case $host_vendor in
17521 shlibpath_overrides_runpath=no
17523 export_dynamic_flag_spec='${wl}-Blargedynsym'
17524 runpath_var=LD_RUN_PATH
17532 shlibpath_overrides_runpath=no
17533 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17539 if test -d /usr/nec ;then
17541 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17542 soname_spec='$libname${shared_ext}.$major'
17543 shlibpath_var=LD_LIBRARY_PATH
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 shlibpath_var=LD_LIBRARY_PATH
17558 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17559 echo "${ECHO_T}$dynamic_linker" >&6
17560 test "$dynamic_linker" = no && can_build_shared=no
17562 if test "x$enable_dlopen" != xyes; then
17563 enable_dlopen=unknown
17564 enable_dlopen_self=unknown
17565 enable_dlopen_self_static=unknown
17572 lt_cv_dlopen="load_add_on"
17574 lt_cv_dlopen_self=yes
17578 lt_cv_dlopen="LoadLibrary"
17583 lt_cv_dlopen="dlopen"
17588 # if libdl is installed we need to link against it
17589 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17590 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17591 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 ac_check_lib_save_LIBS=$LIBS
17596 cat >conftest.$ac_ext <<_ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17603 /* Override any gcc2 internal prototype to avoid an error. */
17607 /* We use char because int might match the return type of a gcc2
17608 builtin and then its argument prototype would still apply. */
17618 rm -f conftest.$ac_objext conftest$ac_exeext
17619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17620 (eval $ac_link) 2>conftest.er1
17622 grep -v '^ *+' conftest.er1 >conftest.err
17624 cat conftest.err >&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } &&
17627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try='test -s conftest$ac_exeext'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_lib_dl_dlopen=yes
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ac_cv_lib_dl_dlopen=no
17646 rm -f conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17648 LIBS=$ac_check_lib_save_LIBS
17650 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17651 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17652 if test $ac_cv_lib_dl_dlopen = yes; then
17653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17656 lt_cv_dlopen="dyld"
17658 lt_cv_dlopen_self=yes
17665 echo "$as_me:$LINENO: checking for shl_load" >&5
17666 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17667 if test "${ac_cv_func_shl_load+set}" = set; then
17668 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 cat >conftest.$ac_ext <<_ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17678 #define shl_load innocuous_shl_load
17680 /* System header to define __stub macros and hopefully few prototypes,
17681 which can conflict with char shl_load (); below.
17682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17683 <limits.h> exists even on freestanding compilers. */
17686 # include <limits.h>
17688 # include <assert.h>
17693 /* Override any gcc2 internal prototype to avoid an error. */
17698 /* We use char because int might match the return type of a gcc2
17699 builtin and then its argument prototype would still apply. */
17701 /* The GNU C library defines this for functions which it implements
17702 to always fail with ENOSYS. Some functions are actually named
17703 something starting with __ and the normal name is an alias. */
17704 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17707 char (*f) () = shl_load;
17716 return f != shl_load;
17721 rm -f conftest.$ac_objext conftest$ac_exeext
17722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17723 (eval $ac_link) 2>conftest.er1
17725 grep -v '^ *+' conftest.er1 >conftest.err
17727 cat conftest.err >&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } &&
17730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; } &&
17736 { ac_try='test -s conftest$ac_exeext'
17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738 (eval $ac_try) 2>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; }; then
17742 ac_cv_func_shl_load=yes
17744 echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17747 ac_cv_func_shl_load=no
17749 rm -f conftest.err conftest.$ac_objext \
17750 conftest$ac_exeext conftest.$ac_ext
17752 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17753 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17754 if test $ac_cv_func_shl_load = yes; then
17755 lt_cv_dlopen="shl_load"
17757 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17758 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17759 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17762 ac_check_lib_save_LIBS=$LIBS
17764 cat >conftest.$ac_ext <<_ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17771 /* Override any gcc2 internal prototype to avoid an error. */
17775 /* We use char because int might match the return type of a gcc2
17776 builtin and then its argument prototype would still apply. */
17786 rm -f conftest.$ac_objext conftest$ac_exeext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788 (eval $ac_link) 2>conftest.er1
17790 grep -v '^ *+' conftest.er1 >conftest.err
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797 (eval $ac_try) 2>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }; } &&
17801 { ac_try='test -s conftest$ac_exeext'
17802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803 (eval $ac_try) 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; }; then
17807 ac_cv_lib_dld_shl_load=yes
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 ac_cv_lib_dld_shl_load=no
17814 rm -f conftest.err conftest.$ac_objext \
17815 conftest$ac_exeext conftest.$ac_ext
17816 LIBS=$ac_check_lib_save_LIBS
17818 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17819 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17820 if test $ac_cv_lib_dld_shl_load = yes; then
17821 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17823 echo "$as_me:$LINENO: checking for dlopen" >&5
17824 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17825 if test "${ac_cv_func_dlopen+set}" = set; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17828 cat >conftest.$ac_ext <<_ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17836 #define dlopen innocuous_dlopen
17838 /* System header to define __stub macros and hopefully few prototypes,
17839 which can conflict with char dlopen (); below.
17840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17841 <limits.h> exists even on freestanding compilers. */
17844 # include <limits.h>
17846 # include <assert.h>
17851 /* Override any gcc2 internal prototype to avoid an error. */
17856 /* We use char because int might match the return type of a gcc2
17857 builtin and then its argument prototype would still apply. */
17859 /* The GNU C library defines this for functions which it implements
17860 to always fail with ENOSYS. Some functions are actually named
17861 something starting with __ and the normal name is an alias. */
17862 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17865 char (*f) () = dlopen;
17874 return f != dlopen;
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17881 (eval $ac_link) 2>conftest.er1
17883 grep -v '^ *+' conftest.er1 >conftest.err
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
17888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; } &&
17894 { ac_try='test -s conftest$ac_exeext'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
17900 ac_cv_func_dlopen=yes
17902 echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17905 ac_cv_func_dlopen=no
17907 rm -f conftest.err conftest.$ac_objext \
17908 conftest$ac_exeext conftest.$ac_ext
17910 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17911 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17912 if test $ac_cv_func_dlopen = yes; then
17913 lt_cv_dlopen="dlopen"
17915 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17916 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17917 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 ac_check_lib_save_LIBS=$LIBS
17922 cat >conftest.$ac_ext <<_ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17929 /* Override any gcc2 internal prototype to avoid an error. */
17933 /* We use char because int might match the return type of a gcc2
17934 builtin and then its argument prototype would still apply. */
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17946 (eval $ac_link) 2>conftest.er1
17948 grep -v '^ *+' conftest.er1 >conftest.err
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
17953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest$ac_exeext'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_lib_dl_dlopen=yes
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 ac_cv_lib_dl_dlopen=no
17972 rm -f conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
17974 LIBS=$ac_check_lib_save_LIBS
17976 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17978 if test $ac_cv_lib_dl_dlopen = yes; then
17979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17981 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17982 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17983 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 ac_check_lib_save_LIBS=$LIBS
17987 LIBS="-lsvld $LIBS"
17988 cat >conftest.$ac_ext <<_ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17995 /* Override any gcc2 internal prototype to avoid an error. */
17999 /* We use char because int might match the return type of a gcc2
18000 builtin and then its argument prototype would still apply. */
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18012 (eval $ac_link) 2>conftest.er1
18014 grep -v '^ *+' conftest.er1 >conftest.err
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } &&
18019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try='test -s conftest$ac_exeext'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 ac_cv_lib_svld_dlopen=yes
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18036 ac_cv_lib_svld_dlopen=no
18038 rm -f conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
18040 LIBS=$ac_check_lib_save_LIBS
18042 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18043 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18044 if test $ac_cv_lib_svld_dlopen = yes; then
18045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18047 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18048 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18052 ac_check_lib_save_LIBS=$LIBS
18054 cat >conftest.$ac_ext <<_ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h. */
18061 /* Override any gcc2 internal prototype to avoid an error. */
18065 /* We use char because int might match the return type of a gcc2
18066 builtin and then its argument prototype would still apply. */
18076 rm -f conftest.$ac_objext conftest$ac_exeext
18077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18078 (eval $ac_link) 2>conftest.er1
18080 grep -v '^ *+' conftest.er1 >conftest.err
18082 cat conftest.err >&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
18085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } &&
18091 { ac_try='test -s conftest$ac_exeext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 ac_cv_lib_dld_dld_link=yes
18099 echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18102 ac_cv_lib_dld_dld_link=no
18104 rm -f conftest.err conftest.$ac_objext \
18105 conftest$ac_exeext conftest.$ac_ext
18106 LIBS=$ac_check_lib_save_LIBS
18108 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18109 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18110 if test $ac_cv_lib_dld_dld_link = yes; then
18111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18132 if test "x$lt_cv_dlopen" != xno; then
18138 case $lt_cv_dlopen in
18140 save_CPPFLAGS="$CPPFLAGS"
18141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18143 save_LDFLAGS="$LDFLAGS"
18144 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18147 LIBS="$lt_cv_dlopen_libs $LIBS"
18149 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18150 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18151 if test "${lt_cv_dlopen_self+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 if test "$cross_compiling" = yes; then :
18155 lt_cv_dlopen_self=cross
18157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18158 lt_status=$lt_dlunknown
18159 cat > conftest.$ac_ext <<EOF
18160 #line 18160 "configure"
18161 #include "confdefs.h"
18170 # define LT_DLGLOBAL RTLD_GLOBAL
18173 # define LT_DLGLOBAL DL_GLOBAL
18175 # define LT_DLGLOBAL 0
18179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18180 find out it does not work in some platform. */
18181 #ifndef LT_DLLAZY_OR_NOW
18183 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18186 # define LT_DLLAZY_OR_NOW DL_LAZY
18189 # define LT_DLLAZY_OR_NOW RTLD_NOW
18192 # define LT_DLLAZY_OR_NOW DL_NOW
18194 # define LT_DLLAZY_OR_NOW 0
18202 extern "C" void exit (int);
18205 void fnord() { int i=42;}
18208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18209 int status = $lt_dlunknown;
18213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18214 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18215 /* dlclose (self); */
18221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18222 (eval $ac_link) 2>&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18226 (./conftest; exit; ) 2>/dev/null
18228 case x$lt_status in
18229 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18230 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18231 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18234 # compilation failed
18235 lt_cv_dlopen_self=no
18242 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18243 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18245 if test "x$lt_cv_dlopen_self" = xyes; then
18246 LDFLAGS="$LDFLAGS $link_static_flag"
18247 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18248 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18249 if test "${lt_cv_dlopen_self_static+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 if test "$cross_compiling" = yes; then :
18253 lt_cv_dlopen_self_static=cross
18255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18256 lt_status=$lt_dlunknown
18257 cat > conftest.$ac_ext <<EOF
18258 #line 18258 "configure"
18259 #include "confdefs.h"
18268 # define LT_DLGLOBAL RTLD_GLOBAL
18271 # define LT_DLGLOBAL DL_GLOBAL
18273 # define LT_DLGLOBAL 0
18277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18278 find out it does not work in some platform. */
18279 #ifndef LT_DLLAZY_OR_NOW
18281 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18284 # define LT_DLLAZY_OR_NOW DL_LAZY
18287 # define LT_DLLAZY_OR_NOW RTLD_NOW
18290 # define LT_DLLAZY_OR_NOW DL_NOW
18292 # define LT_DLLAZY_OR_NOW 0
18300 extern "C" void exit (int);
18303 void fnord() { int i=42;}
18306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18307 int status = $lt_dlunknown;
18311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18312 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18313 /* dlclose (self); */
18319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320 (eval $ac_link) 2>&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18324 (./conftest; exit; ) 2>/dev/null
18326 case x$lt_status in
18327 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18328 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18329 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18332 # compilation failed
18333 lt_cv_dlopen_self_static=no
18340 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18341 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18344 CPPFLAGS="$save_CPPFLAGS"
18345 LDFLAGS="$save_LDFLAGS"
18350 case $lt_cv_dlopen_self in
18351 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18352 *) enable_dlopen_self=unknown ;;
18355 case $lt_cv_dlopen_self_static in
18356 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18357 *) enable_dlopen_self_static=unknown ;;
18362 # The else clause should only fire when bootstrapping the
18363 # libtool distribution, otherwise you forgot to ship ltmain.sh
18364 # with your package, and you will get complaints that there are
18365 # no rules to generate ltmain.sh.
18366 if test -f "$ltmain"; then
18367 # See if we are running on zsh, and set the options which allow our commands through
18368 # without removal of \ escapes.
18369 if test -n "${ZSH_VERSION+set}" ; then
18370 setopt NO_GLOB_SUBST
18372 # Now quote all the things that may contain metacharacters while being
18373 # careful not to overquote the AC_SUBSTed values. We take copies of the
18374 # variables and quote the copies for generation of the libtool script.
18375 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18376 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18377 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18378 deplibs_check_method reload_flag reload_cmds need_locks \
18379 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18380 lt_cv_sys_global_symbol_to_c_name_address \
18381 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18382 old_postinstall_cmds old_postuninstall_cmds \
18386 lt_prog_compiler_wl_GCJ \
18387 lt_prog_compiler_pic_GCJ \
18388 lt_prog_compiler_static_GCJ \
18389 lt_prog_compiler_no_builtin_flag_GCJ \
18390 export_dynamic_flag_spec_GCJ \
18391 thread_safe_flag_spec_GCJ \
18392 whole_archive_flag_spec_GCJ \
18393 enable_shared_with_static_runtimes_GCJ \
18394 old_archive_cmds_GCJ \
18395 old_archive_from_new_cmds_GCJ \
18396 predep_objects_GCJ \
18397 postdep_objects_GCJ \
18400 compiler_lib_search_path_GCJ \
18402 archive_expsym_cmds_GCJ \
18403 postinstall_cmds_GCJ \
18404 postuninstall_cmds_GCJ \
18405 old_archive_from_expsyms_cmds_GCJ \
18406 allow_undefined_flag_GCJ \
18407 no_undefined_flag_GCJ \
18408 export_symbols_cmds_GCJ \
18409 hardcode_libdir_flag_spec_GCJ \
18410 hardcode_libdir_flag_spec_ld_GCJ \
18411 hardcode_libdir_separator_GCJ \
18412 hardcode_automatic_GCJ \
18414 module_expsym_cmds_GCJ \
18415 lt_cv_prog_compiler_c_o_GCJ \
18416 exclude_expsyms_GCJ \
18417 include_expsyms_GCJ; do
18420 old_archive_cmds_GCJ | \
18421 old_archive_from_new_cmds_GCJ | \
18422 archive_cmds_GCJ | \
18423 archive_expsym_cmds_GCJ | \
18424 module_cmds_GCJ | \
18425 module_expsym_cmds_GCJ | \
18426 old_archive_from_expsyms_cmds_GCJ | \
18427 export_symbols_cmds_GCJ | \
18428 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18429 postinstall_cmds | postuninstall_cmds | \
18430 old_postinstall_cmds | old_postuninstall_cmds | \
18431 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18432 # Double-quote double-evaled strings.
18433 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18442 *'\$0 --fallback-echo"')
18443 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18449 cat <<__EOF__ >> "$cfgfile"
18450 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18452 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18454 # Shell to use when invoking shell scripts.
18457 # Whether or not to build shared libraries.
18458 build_libtool_libs=$enable_shared
18460 # Whether or not to build static libraries.
18461 build_old_libs=$enable_static
18463 # Whether or not to add -lc for building shared libraries.
18464 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18466 # Whether or not to disallow shared libs when runtime libs are static
18467 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18469 # Whether or not to optimize for fast installation.
18470 fast_install=$enable_fast_install
18473 host_alias=$host_alias
18476 # An echo program that does not interpret backslashes.
18481 AR_FLAGS=$lt_AR_FLAGS
18486 # A language-specific compiler.
18487 CC=$lt_compiler_GCJ
18489 # Is the compiler the GNU C compiler?
18495 # The linker used to build libraries.
18498 # Whether we need hard or soft links.
18501 # A BSD-compatible nm program.
18504 # A symbol stripping program
18507 # Used to examine libraries when file_magic_cmd begins "file"
18508 MAGIC_CMD=$MAGIC_CMD
18510 # Used on cygwin: DLL creation program.
18513 # Used on cygwin: object dumper.
18516 # Used on cygwin: assembler.
18519 # The name of the directory that contains temporary libtool files.
18522 # How to create reloadable object files.
18523 reload_flag=$lt_reload_flag
18524 reload_cmds=$lt_reload_cmds
18526 # How to pass a linker flag through the compiler.
18527 wl=$lt_lt_prog_compiler_wl_GCJ
18529 # Object file suffix (normally "o").
18530 objext="$ac_objext"
18532 # Old archive suffix (normally "a").
18535 # Shared library suffix (normally ".so").
18538 # Executable file suffix (normally "").
18541 # Additional compiler flags for building library objects.
18542 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18545 # What is the maximum length of a command?
18546 max_cmd_len=$lt_cv_sys_max_cmd_len
18548 # Does compiler simultaneously support -c and -o options?
18549 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18551 # Must we lock files when doing compilation ?
18552 need_locks=$lt_need_locks
18554 # Do we need the lib prefix for modules?
18555 need_lib_prefix=$need_lib_prefix
18557 # Do we need a version for libraries?
18558 need_version=$need_version
18560 # Whether dlopen is supported.
18561 dlopen_support=$enable_dlopen
18563 # Whether dlopen of programs is supported.
18564 dlopen_self=$enable_dlopen_self
18566 # Whether dlopen of statically linked programs is supported.
18567 dlopen_self_static=$enable_dlopen_self_static
18569 # Compiler flag to prevent dynamic linking.
18570 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18572 # Compiler flag to turn off builtin functions.
18573 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18575 # Compiler flag to allow reflexive dlopens.
18576 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18578 # Compiler flag to generate shared objects directly from archives.
18579 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18581 # Compiler flag to generate thread-safe objects.
18582 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18584 # Library versioning type.
18585 version_type=$version_type
18587 # Format of library name prefix.
18588 libname_spec=$lt_libname_spec
18590 # List of archive names. First name is the real one, the rest are links.
18591 # The last name is the one that the linker finds with -lNAME.
18592 library_names_spec=$lt_library_names_spec
18594 # The coded name of the library, if different from the real name.
18595 soname_spec=$lt_soname_spec
18597 # Commands used to build and install an old-style archive.
18599 old_archive_cmds=$lt_old_archive_cmds_GCJ
18600 old_postinstall_cmds=$lt_old_postinstall_cmds
18601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18603 # Create an old-style archive from a shared archive.
18604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18606 # Create a temporary old-style archive to link instead of a shared archive.
18607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18609 # Commands used to build and install a shared archive.
18610 archive_cmds=$lt_archive_cmds_GCJ
18611 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18612 postinstall_cmds=$lt_postinstall_cmds
18613 postuninstall_cmds=$lt_postuninstall_cmds
18615 # Commands used to build a loadable module (assumed same as above if empty)
18616 module_cmds=$lt_module_cmds_GCJ
18617 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18619 # Commands to strip libraries.
18620 old_striplib=$lt_old_striplib
18621 striplib=$lt_striplib
18623 # Dependencies to place before the objects being linked to create a
18625 predep_objects=$lt_predep_objects_GCJ
18627 # Dependencies to place after the objects being linked to create a
18629 postdep_objects=$lt_postdep_objects_GCJ
18631 # Dependencies to place before the objects being linked to create a
18633 predeps=$lt_predeps_GCJ
18635 # Dependencies to place after the objects being linked to create a
18637 postdeps=$lt_postdeps_GCJ
18639 # The library search path used internally by the compiler when linking
18640 # a shared library.
18641 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18643 # Method to check whether dependent libraries are shared objects.
18644 deplibs_check_method=$lt_deplibs_check_method
18646 # Command to use when deplibs_check_method == file_magic.
18647 file_magic_cmd=$lt_file_magic_cmd
18649 # Flag that allows shared libraries with undefined symbols to be built.
18650 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18652 # Flag that forces no undefined symbols.
18653 no_undefined_flag=$lt_no_undefined_flag_GCJ
18655 # Commands used to finish a libtool library installation in a directory.
18656 finish_cmds=$lt_finish_cmds
18658 # Same as above, but a single script fragment to be evaled but not shown.
18659 finish_eval=$lt_finish_eval
18661 # Take the output of nm and produce a listing of raw symbols and C names.
18662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18664 # Transform the output of nm in a proper C declaration
18665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18667 # Transform the output of nm in a C name address pair
18668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18670 # This is the shared library runtime path variable.
18671 runpath_var=$runpath_var
18673 # This is the shared library path variable.
18674 shlibpath_var=$shlibpath_var
18676 # Is shlibpath searched before the hard-coded library search path?
18677 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18679 # How to hardcode a shared library path into an executable.
18680 hardcode_action=$hardcode_action_GCJ
18682 # Whether we should hardcode library paths into libraries.
18683 hardcode_into_libs=$hardcode_into_libs
18685 # Flag to hardcode \$libdir into a binary during linking.
18686 # This must work even if \$libdir does not exist.
18687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18689 # If ld is used when linking, flag to hardcode \$libdir into
18690 # a binary during linking. This must work even if \$libdir does
18692 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18694 # Whether we need a single -rpath flag with a separated argument.
18695 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18697 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18698 # resulting binary.
18699 hardcode_direct=$hardcode_direct_GCJ
18701 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18702 # resulting binary.
18703 hardcode_minus_L=$hardcode_minus_L_GCJ
18705 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18706 # the resulting binary.
18707 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18709 # Set to yes if building a shared library automatically hardcodes DIR into the library
18710 # and all subsequent libraries and executables linked against it.
18711 hardcode_automatic=$hardcode_automatic_GCJ
18713 # Variables whose values should be saved in libtool wrapper scripts and
18714 # restored at relink time.
18715 variables_saved_for_relink="$variables_saved_for_relink"
18717 # Whether libtool must link a program against all its dependency libraries.
18718 link_all_deplibs=$link_all_deplibs_GCJ
18720 # Compile-time system search path for libraries
18721 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18723 # Run-time system search path for libraries
18724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18726 # Fix the shell variable \$srcfile for the compiler.
18727 fix_srcfile_path="$fix_srcfile_path_GCJ"
18729 # Set to yes if exported symbols are required.
18730 always_export_symbols=$always_export_symbols_GCJ
18732 # The commands to list exported symbols.
18733 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18735 # The commands to extract the exported symbol list from a shared archive.
18736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18738 # Symbols that should not be listed in the preloaded symbols.
18739 exclude_expsyms=$lt_exclude_expsyms_GCJ
18741 # Symbols that must always be exported.
18742 include_expsyms=$lt_include_expsyms_GCJ
18744 # ### END LIBTOOL TAG CONFIG: $tagname
18750 # If there is no Makefile yet, we rely on a make rule to execute
18751 # `config.status --recheck' to rerun these tests and create the
18752 # libtool script then.
18753 test -f Makefile && make "$ltmain"
18758 ac_cpp='$CPP $CPPFLAGS'
18759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18774 # Source file extension for RC test sources.
18777 # Object file extension for compiled RC test sources.
18781 # Code to be used in simple compile tests
18782 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18784 # Code to be used in simple link tests
18785 lt_simple_link_test_code="$lt_simple_compile_test_code"
18787 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18789 # If no C compiler was specified, use CC.
18792 # Allow CC to be a program name with arguments.
18796 # Allow CC to be a program name with arguments.
18801 lt_cv_prog_compiler_c_o_RC=yes
18803 # The else clause should only fire when bootstrapping the
18804 # libtool distribution, otherwise you forgot to ship ltmain.sh
18805 # with your package, and you will get complaints that there are
18806 # no rules to generate ltmain.sh.
18807 if test -f "$ltmain"; then
18808 # See if we are running on zsh, and set the options which allow our commands through
18809 # without removal of \ escapes.
18810 if test -n "${ZSH_VERSION+set}" ; then
18811 setopt NO_GLOB_SUBST
18813 # Now quote all the things that may contain metacharacters while being
18814 # careful not to overquote the AC_SUBSTed values. We take copies of the
18815 # variables and quote the copies for generation of the libtool script.
18816 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18817 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18818 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18819 deplibs_check_method reload_flag reload_cmds need_locks \
18820 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18821 lt_cv_sys_global_symbol_to_c_name_address \
18822 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18823 old_postinstall_cmds old_postuninstall_cmds \
18827 lt_prog_compiler_wl_RC \
18828 lt_prog_compiler_pic_RC \
18829 lt_prog_compiler_static_RC \
18830 lt_prog_compiler_no_builtin_flag_RC \
18831 export_dynamic_flag_spec_RC \
18832 thread_safe_flag_spec_RC \
18833 whole_archive_flag_spec_RC \
18834 enable_shared_with_static_runtimes_RC \
18835 old_archive_cmds_RC \
18836 old_archive_from_new_cmds_RC \
18837 predep_objects_RC \
18838 postdep_objects_RC \
18841 compiler_lib_search_path_RC \
18843 archive_expsym_cmds_RC \
18844 postinstall_cmds_RC \
18845 postuninstall_cmds_RC \
18846 old_archive_from_expsyms_cmds_RC \
18847 allow_undefined_flag_RC \
18848 no_undefined_flag_RC \
18849 export_symbols_cmds_RC \
18850 hardcode_libdir_flag_spec_RC \
18851 hardcode_libdir_flag_spec_ld_RC \
18852 hardcode_libdir_separator_RC \
18853 hardcode_automatic_RC \
18855 module_expsym_cmds_RC \
18856 lt_cv_prog_compiler_c_o_RC \
18857 exclude_expsyms_RC \
18858 include_expsyms_RC; do
18861 old_archive_cmds_RC | \
18862 old_archive_from_new_cmds_RC | \
18863 archive_cmds_RC | \
18864 archive_expsym_cmds_RC | \
18866 module_expsym_cmds_RC | \
18867 old_archive_from_expsyms_cmds_RC | \
18868 export_symbols_cmds_RC | \
18869 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18870 postinstall_cmds | postuninstall_cmds | \
18871 old_postinstall_cmds | old_postuninstall_cmds | \
18872 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18873 # Double-quote double-evaled strings.
18874 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18877 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18883 *'\$0 --fallback-echo"')
18884 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18890 cat <<__EOF__ >> "$cfgfile"
18891 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18893 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18895 # Shell to use when invoking shell scripts.
18898 # Whether or not to build shared libraries.
18899 build_libtool_libs=$enable_shared
18901 # Whether or not to build static libraries.
18902 build_old_libs=$enable_static
18904 # Whether or not to add -lc for building shared libraries.
18905 build_libtool_need_lc=$archive_cmds_need_lc_RC
18907 # Whether or not to disallow shared libs when runtime libs are static
18908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18910 # Whether or not to optimize for fast installation.
18911 fast_install=$enable_fast_install
18914 host_alias=$host_alias
18917 # An echo program that does not interpret backslashes.
18922 AR_FLAGS=$lt_AR_FLAGS
18927 # A language-specific compiler.
18930 # Is the compiler the GNU C compiler?
18936 # The linker used to build libraries.
18939 # Whether we need hard or soft links.
18942 # A BSD-compatible nm program.
18945 # A symbol stripping program
18948 # Used to examine libraries when file_magic_cmd begins "file"
18949 MAGIC_CMD=$MAGIC_CMD
18951 # Used on cygwin: DLL creation program.
18954 # Used on cygwin: object dumper.
18957 # Used on cygwin: assembler.
18960 # The name of the directory that contains temporary libtool files.
18963 # How to create reloadable object files.
18964 reload_flag=$lt_reload_flag
18965 reload_cmds=$lt_reload_cmds
18967 # How to pass a linker flag through the compiler.
18968 wl=$lt_lt_prog_compiler_wl_RC
18970 # Object file suffix (normally "o").
18971 objext="$ac_objext"
18973 # Old archive suffix (normally "a").
18976 # Shared library suffix (normally ".so").
18979 # Executable file suffix (normally "").
18982 # Additional compiler flags for building library objects.
18983 pic_flag=$lt_lt_prog_compiler_pic_RC
18986 # What is the maximum length of a command?
18987 max_cmd_len=$lt_cv_sys_max_cmd_len
18989 # Does compiler simultaneously support -c and -o options?
18990 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18992 # Must we lock files when doing compilation ?
18993 need_locks=$lt_need_locks
18995 # Do we need the lib prefix for modules?
18996 need_lib_prefix=$need_lib_prefix
18998 # Do we need a version for libraries?
18999 need_version=$need_version
19001 # Whether dlopen is supported.
19002 dlopen_support=$enable_dlopen
19004 # Whether dlopen of programs is supported.
19005 dlopen_self=$enable_dlopen_self
19007 # Whether dlopen of statically linked programs is supported.
19008 dlopen_self_static=$enable_dlopen_self_static
19010 # Compiler flag to prevent dynamic linking.
19011 link_static_flag=$lt_lt_prog_compiler_static_RC
19013 # Compiler flag to turn off builtin functions.
19014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19016 # Compiler flag to allow reflexive dlopens.
19017 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19019 # Compiler flag to generate shared objects directly from archives.
19020 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19022 # Compiler flag to generate thread-safe objects.
19023 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19025 # Library versioning type.
19026 version_type=$version_type
19028 # Format of library name prefix.
19029 libname_spec=$lt_libname_spec
19031 # List of archive names. First name is the real one, the rest are links.
19032 # The last name is the one that the linker finds with -lNAME.
19033 library_names_spec=$lt_library_names_spec
19035 # The coded name of the library, if different from the real name.
19036 soname_spec=$lt_soname_spec
19038 # Commands used to build and install an old-style archive.
19040 old_archive_cmds=$lt_old_archive_cmds_RC
19041 old_postinstall_cmds=$lt_old_postinstall_cmds
19042 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19044 # Create an old-style archive from a shared archive.
19045 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19047 # Create a temporary old-style archive to link instead of a shared archive.
19048 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19050 # Commands used to build and install a shared archive.
19051 archive_cmds=$lt_archive_cmds_RC
19052 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19053 postinstall_cmds=$lt_postinstall_cmds
19054 postuninstall_cmds=$lt_postuninstall_cmds
19056 # Commands used to build a loadable module (assumed same as above if empty)
19057 module_cmds=$lt_module_cmds_RC
19058 module_expsym_cmds=$lt_module_expsym_cmds_RC
19060 # Commands to strip libraries.
19061 old_striplib=$lt_old_striplib
19062 striplib=$lt_striplib
19064 # Dependencies to place before the objects being linked to create a
19066 predep_objects=$lt_predep_objects_RC
19068 # Dependencies to place after the objects being linked to create a
19070 postdep_objects=$lt_postdep_objects_RC
19072 # Dependencies to place before the objects being linked to create a
19074 predeps=$lt_predeps_RC
19076 # Dependencies to place after the objects being linked to create a
19078 postdeps=$lt_postdeps_RC
19080 # The library search path used internally by the compiler when linking
19081 # a shared library.
19082 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19084 # Method to check whether dependent libraries are shared objects.
19085 deplibs_check_method=$lt_deplibs_check_method
19087 # Command to use when deplibs_check_method == file_magic.
19088 file_magic_cmd=$lt_file_magic_cmd
19090 # Flag that allows shared libraries with undefined symbols to be built.
19091 allow_undefined_flag=$lt_allow_undefined_flag_RC
19093 # Flag that forces no undefined symbols.
19094 no_undefined_flag=$lt_no_undefined_flag_RC
19096 # Commands used to finish a libtool library installation in a directory.
19097 finish_cmds=$lt_finish_cmds
19099 # Same as above, but a single script fragment to be evaled but not shown.
19100 finish_eval=$lt_finish_eval
19102 # Take the output of nm and produce a listing of raw symbols and C names.
19103 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19105 # Transform the output of nm in a proper C declaration
19106 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19108 # Transform the output of nm in a C name address pair
19109 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19111 # This is the shared library runtime path variable.
19112 runpath_var=$runpath_var
19114 # This is the shared library path variable.
19115 shlibpath_var=$shlibpath_var
19117 # Is shlibpath searched before the hard-coded library search path?
19118 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19120 # How to hardcode a shared library path into an executable.
19121 hardcode_action=$hardcode_action_RC
19123 # Whether we should hardcode library paths into libraries.
19124 hardcode_into_libs=$hardcode_into_libs
19126 # Flag to hardcode \$libdir into a binary during linking.
19127 # This must work even if \$libdir does not exist.
19128 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19130 # If ld is used when linking, flag to hardcode \$libdir into
19131 # a binary during linking. This must work even if \$libdir does
19133 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19135 # Whether we need a single -rpath flag with a separated argument.
19136 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19138 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19139 # resulting binary.
19140 hardcode_direct=$hardcode_direct_RC
19142 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19143 # resulting binary.
19144 hardcode_minus_L=$hardcode_minus_L_RC
19146 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19147 # the resulting binary.
19148 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19150 # Set to yes if building a shared library automatically hardcodes DIR into the library
19151 # and all subsequent libraries and executables linked against it.
19152 hardcode_automatic=$hardcode_automatic_RC
19154 # Variables whose values should be saved in libtool wrapper scripts and
19155 # restored at relink time.
19156 variables_saved_for_relink="$variables_saved_for_relink"
19158 # Whether libtool must link a program against all its dependency libraries.
19159 link_all_deplibs=$link_all_deplibs_RC
19161 # Compile-time system search path for libraries
19162 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19164 # Run-time system search path for libraries
19165 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19167 # Fix the shell variable \$srcfile for the compiler.
19168 fix_srcfile_path="$fix_srcfile_path_RC"
19170 # Set to yes if exported symbols are required.
19171 always_export_symbols=$always_export_symbols_RC
19173 # The commands to list exported symbols.
19174 export_symbols_cmds=$lt_export_symbols_cmds_RC
19176 # The commands to extract the exported symbol list from a shared archive.
19177 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19179 # Symbols that should not be listed in the preloaded symbols.
19180 exclude_expsyms=$lt_exclude_expsyms_RC
19182 # Symbols that must always be exported.
19183 include_expsyms=$lt_include_expsyms_RC
19185 # ### END LIBTOOL TAG CONFIG: $tagname
19191 # If there is no Makefile yet, we rely on a make rule to execute
19192 # `config.status --recheck' to rerun these tests and create the
19193 # libtool script then.
19194 test -f Makefile && make "$ltmain"
19199 ac_cpp='$CPP $CPPFLAGS'
19200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19209 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19210 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19211 { (exit 1); exit 1; }; }
19215 # Append the new tag name to the list of available tags.
19216 if test -n "$tagname" ; then
19217 available_tags="$available_tags $tagname"
19223 # Now substitute the updated list of available tags.
19224 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19225 mv "${ofile}T" "$ofile"
19229 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19230 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19231 { (exit 1); exit 1; }; }
19237 # This can be used to rebuild libtool when needed
19238 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19240 # Always use our own libtool.
19241 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19243 # Prevent multiple expansion
19271 ac_header_dirent=no
19272 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19273 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19274 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19275 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19277 echo $ECHO_N "(cached) $ECHO_C" >&6
19279 cat >conftest.$ac_ext <<_ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19285 #include <sys/types.h>
19297 rm -f conftest.$ac_objext
19298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19299 (eval $ac_compile) 2>conftest.er1
19301 grep -v '^ *+' conftest.er1 >conftest.err
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } &&
19306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest.$ac_objext'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 eval "$as_ac_Header=yes"
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19323 eval "$as_ac_Header=no"
19325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19330 cat >>confdefs.h <<_ACEOF
19331 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19334 ac_header_dirent=$ac_hdr; break
19338 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19339 if test $ac_header_dirent = dirent.h; then
19340 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19341 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19342 if test "${ac_cv_search_opendir+set}" = set; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19345 ac_func_search_save_LIBS=$LIBS
19346 ac_cv_search_opendir=no
19347 cat >conftest.$ac_ext <<_ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19354 /* Override any gcc2 internal prototype to avoid an error. */
19358 /* We use char because int might match the return type of a gcc2
19359 builtin and then its argument prototype would still apply. */
19369 rm -f conftest.$ac_objext conftest$ac_exeext
19370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19371 (eval $ac_link) 2>conftest.er1
19373 grep -v '^ *+' conftest.er1 >conftest.err
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; } &&
19384 { ac_try='test -s conftest$ac_exeext'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 ac_cv_search_opendir="none required"
19392 echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19396 rm -f conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19398 if test "$ac_cv_search_opendir" = no; then
19399 for ac_lib in dir; do
19400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any gcc2 internal prototype to avoid an error. */
19412 /* We use char because int might match the return type of a gcc2
19413 builtin and then its argument prototype would still apply. */
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19425 (eval $ac_link) 2>conftest.er1
19427 grep -v '^ *+' conftest.er1 >conftest.err
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest$ac_exeext'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444 ac_cv_search_opendir="-l$ac_lib"
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19451 rm -f conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19455 LIBS=$ac_func_search_save_LIBS
19457 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19458 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19459 if test "$ac_cv_search_opendir" != no; then
19460 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19465 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19466 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19467 if test "${ac_cv_search_opendir+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 ac_func_search_save_LIBS=$LIBS
19471 ac_cv_search_opendir=no
19472 cat >conftest.$ac_ext <<_ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19479 /* Override any gcc2 internal prototype to avoid an error. */
19483 /* We use char because int might match the return type of a gcc2
19484 builtin and then its argument prototype would still apply. */
19494 rm -f conftest.$ac_objext conftest$ac_exeext
19495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19496 (eval $ac_link) 2>conftest.er1
19498 grep -v '^ *+' conftest.er1 >conftest.err
19500 cat conftest.err >&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } &&
19503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest$ac_exeext'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 ac_cv_search_opendir="none required"
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19521 rm -f conftest.err conftest.$ac_objext \
19522 conftest$ac_exeext conftest.$ac_ext
19523 if test "$ac_cv_search_opendir" = no; then
19524 for ac_lib in x; do
19525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19526 cat >conftest.$ac_ext <<_ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19533 /* Override any gcc2 internal prototype to avoid an error. */
19537 /* We use char because int might match the return type of a gcc2
19538 builtin and then its argument prototype would still apply. */
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550 (eval $ac_link) 2>conftest.er1
19552 grep -v '^ *+' conftest.er1 >conftest.err
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest$ac_exeext'
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19569 ac_cv_search_opendir="-l$ac_lib"
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19576 rm -f conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_func_search_save_LIBS
19582 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19583 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19584 if test "$ac_cv_search_opendir" != no; then
19585 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19591 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
19592 if test "${enable_ltdl_install+set}" = set; then
19593 enableval="$enable_ltdl_install"
19599 if test x"${enable_ltdl_install-no}" != xno; then
19601 INSTALL_LTDL_FALSE='#'
19603 INSTALL_LTDL_TRUE='#'
19604 INSTALL_LTDL_FALSE=
19609 if test x"${enable_ltdl_convenience-no}" != xno; then
19610 CONVENIENCE_LTDL_TRUE=
19611 CONVENIENCE_LTDL_FALSE='#'
19613 CONVENIENCE_LTDL_TRUE='#'
19614 CONVENIENCE_LTDL_FALSE=
19619 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19620 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
19621 if test "${libltdl_cv_shlibext+set}" = set; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 # Here in libltdl for libgcj we don't build modules for darwin.
19626 # So we say no. Then the extension gets .dylib which is the right
19627 # thing for shared libraries on darwin.
19636 eval libltdl_cv_shlibext=$shrext
19639 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19640 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
19641 if test -n "$libltdl_cv_shlibext"; then
19643 cat >>confdefs.h <<_ACEOF
19644 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19650 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19651 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
19652 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 libltdl_cv_shlibpath_var="$shlibpath_var"
19657 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19658 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
19659 if test -n "$libltdl_cv_shlibpath_var"; then
19661 cat >>confdefs.h <<_ACEOF
19662 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19668 echo "$as_me:$LINENO: checking for the default library search path" >&5
19669 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
19670 if test "${libltdl_cv_sys_search_path+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19675 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19676 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
19677 if test -n "$libltdl_cv_sys_search_path"; then
19679 for dir in $libltdl_cv_sys_search_path; do
19680 if test -z "$sys_search_path"; then
19681 sys_search_path="$dir"
19683 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19687 cat >>confdefs.h <<_ACEOF
19688 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19693 echo "$as_me:$LINENO: checking for objdir" >&5
19694 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
19695 if test "${libltdl_cv_objdir+set}" = set; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 libltdl_cv_objdir="$objdir"
19699 if test -n "$objdir"; then
19702 rm -f .libs 2>/dev/null
19703 mkdir .libs 2>/dev/null
19704 if test -d .libs; then
19705 libltdl_cv_objdir=.libs
19707 # MS-DOS does not allow filenames that begin with a dot.
19708 libltdl_cv_objdir=_libs
19710 rmdir .libs 2>/dev/null
19714 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19715 echo "${ECHO_T}$libltdl_cv_objdir" >&6
19717 cat >>confdefs.h <<_ACEOF
19718 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19723 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19724 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
19725 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19729 libltdl_cv_preloaded_symbols=yes
19731 libltdl_cv_preloaded_symbols=no
19735 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19736 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
19737 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_PRELOADED_SYMBOLS 1
19748 ac_cpp='$CPP $CPPFLAGS'
19749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19754 echo "$as_me:$LINENO: checking for shl_load" >&5
19755 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19756 if test "${ac_cv_func_shl_load+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 cat >conftest.$ac_ext <<_ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19765 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19767 #define shl_load innocuous_shl_load
19769 /* System header to define __stub macros and hopefully few prototypes,
19770 which can conflict with char shl_load (); below.
19771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19772 <limits.h> exists even on freestanding compilers. */
19775 # include <limits.h>
19777 # include <assert.h>
19782 /* Override any gcc2 internal prototype to avoid an error. */
19787 /* We use char because int might match the return type of a gcc2
19788 builtin and then its argument prototype would still apply. */
19790 /* The GNU C library defines this for functions which it implements
19791 to always fail with ENOSYS. Some functions are actually named
19792 something starting with __ and the normal name is an alias. */
19793 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19796 char (*f) () = shl_load;
19805 return f != shl_load;
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812 (eval $ac_link) 2>conftest.er1
19814 grep -v '^ *+' conftest.er1 >conftest.err
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest$ac_exeext'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 ac_cv_func_shl_load=yes
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 ac_cv_func_shl_load=no
19838 rm -f conftest.err conftest.$ac_objext \
19839 conftest$ac_exeext conftest.$ac_ext
19841 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19842 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19843 if test $ac_cv_func_shl_load = yes; then
19845 cat >>confdefs.h <<\_ACEOF
19846 #define HAVE_SHL_LOAD 1
19850 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 ac_check_lib_save_LIBS=$LIBS
19857 cat >conftest.$ac_ext <<_ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19864 /* Override any gcc2 internal prototype to avoid an error. */
19868 /* We use char because int might match the return type of a gcc2
19869 builtin and then its argument prototype would still apply. */
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19881 (eval $ac_link) 2>conftest.er1
19883 grep -v '^ *+' conftest.er1 >conftest.err
19885 cat conftest.err >&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest$ac_exeext'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 ac_cv_lib_dld_shl_load=yes
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 ac_cv_lib_dld_shl_load=no
19907 rm -f conftest.err conftest.$ac_objext \
19908 conftest$ac_exeext conftest.$ac_ext
19909 LIBS=$ac_check_lib_save_LIBS
19911 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19912 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19913 if test $ac_cv_lib_dld_shl_load = yes; then
19915 cat >>confdefs.h <<\_ACEOF
19916 #define HAVE_SHL_LOAD 1
19919 LIBADD_DL="$LIBADD_DL -ldld"
19921 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19922 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19923 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 ac_check_lib_save_LIBS=$LIBS
19928 cat >conftest.$ac_ext <<_ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19935 /* Override any gcc2 internal prototype to avoid an error. */
19939 /* We use char because int might match the return type of a gcc2
19940 builtin and then its argument prototype would still apply. */
19950 rm -f conftest.$ac_objext conftest$ac_exeext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19952 (eval $ac_link) 2>conftest.er1
19954 grep -v '^ *+' conftest.er1 >conftest.err
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try='test -s conftest$ac_exeext'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_cv_lib_dl_dlopen=yes
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19976 ac_cv_lib_dl_dlopen=no
19978 rm -f conftest.err conftest.$ac_objext \
19979 conftest$ac_exeext conftest.$ac_ext
19980 LIBS=$ac_check_lib_save_LIBS
19982 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19983 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19984 if test $ac_cv_lib_dl_dlopen = yes; then
19986 cat >>confdefs.h <<\_ACEOF
19987 #define HAVE_LIBDL 1
19990 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19999 # include <dlfcn.h>
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20012 (eval $ac_link) 2>conftest.er1
20014 grep -v '^ *+' conftest.er1 >conftest.err
20016 cat conftest.err >&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } &&
20019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } &&
20025 { ac_try='test -s conftest$ac_exeext'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20032 cat >>confdefs.h <<\_ACEOF
20033 #define HAVE_LIBDL 1
20035 libltdl_cv_func_dlopen="yes"
20037 echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20041 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20042 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 ac_check_lib_save_LIBS=$LIBS
20046 LIBS="-lsvld $LIBS"
20047 cat >conftest.$ac_ext <<_ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h. */
20054 /* Override any gcc2 internal prototype to avoid an error. */
20058 /* We use char because int might match the return type of a gcc2
20059 builtin and then its argument prototype would still apply. */
20069 rm -f conftest.$ac_objext conftest$ac_exeext
20070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20071 (eval $ac_link) 2>conftest.er1
20073 grep -v '^ *+' conftest.er1 >conftest.err
20075 cat conftest.err >&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } &&
20078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; } &&
20084 { ac_try='test -s conftest$ac_exeext'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_cv_lib_svld_dlopen=yes
20092 echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20095 ac_cv_lib_svld_dlopen=no
20097 rm -f conftest.err conftest.$ac_objext \
20098 conftest$ac_exeext conftest.$ac_ext
20099 LIBS=$ac_check_lib_save_LIBS
20101 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20102 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20103 if test $ac_cv_lib_svld_dlopen = yes; then
20105 cat >>confdefs.h <<\_ACEOF
20106 #define HAVE_LIBDL 1
20109 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20111 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20112 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20113 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 ac_check_lib_save_LIBS=$LIBS
20118 cat >conftest.$ac_ext <<_ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20125 /* Override any gcc2 internal prototype to avoid an error. */
20129 /* We use char because int might match the return type of a gcc2
20130 builtin and then its argument prototype would still apply. */
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20142 (eval $ac_link) 2>conftest.er1
20144 grep -v '^ *+' conftest.er1 >conftest.err
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest$ac_exeext'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 ac_cv_lib_dld_dld_link=yes
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20166 ac_cv_lib_dld_dld_link=no
20168 rm -f conftest.err conftest.$ac_objext \
20169 conftest$ac_exeext conftest.$ac_ext
20170 LIBS=$ac_check_lib_save_LIBS
20172 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20173 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20174 if test $ac_cv_lib_dld_dld_link = yes; then
20176 cat >>confdefs.h <<\_ACEOF
20180 LIBADD_DL="$LIBADD_DL -ldld"
20182 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20183 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
20184 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 cat >conftest.$ac_ext <<_ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20193 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20195 #define _dyld_func_lookup innocuous__dyld_func_lookup
20197 /* System header to define __stub macros and hopefully few prototypes,
20198 which can conflict with char _dyld_func_lookup (); below.
20199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20200 <limits.h> exists even on freestanding compilers. */
20203 # include <limits.h>
20205 # include <assert.h>
20208 #undef _dyld_func_lookup
20210 /* Override any gcc2 internal prototype to avoid an error. */
20215 /* We use char because int might match the return type of a gcc2
20216 builtin and then its argument prototype would still apply. */
20217 char _dyld_func_lookup ();
20218 /* The GNU C library defines this for functions which it implements
20219 to always fail with ENOSYS. Some functions are actually named
20220 something starting with __ and the normal name is an alias. */
20221 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
20224 char (*f) () = _dyld_func_lookup;
20233 return f != _dyld_func_lookup;
20238 rm -f conftest.$ac_objext conftest$ac_exeext
20239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20240 (eval $ac_link) 2>conftest.er1
20242 grep -v '^ *+' conftest.er1 >conftest.err
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } &&
20247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249 (eval $ac_try) 2>&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; } &&
20253 { ac_try='test -s conftest$ac_exeext'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; }; then
20259 ac_cv_func__dyld_func_lookup=yes
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20264 ac_cv_func__dyld_func_lookup=no
20266 rm -f conftest.err conftest.$ac_objext \
20267 conftest$ac_exeext conftest.$ac_ext
20269 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20270 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
20271 if test $ac_cv_func__dyld_func_lookup = yes; then
20273 cat >>confdefs.h <<\_ACEOF
20274 #define HAVE_DYLD 1
20287 rm -f conftest.err conftest.$ac_objext \
20288 conftest$ac_exeext conftest.$ac_ext
20299 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20301 lt_save_LIBS="$LIBS"
20302 LIBS="$LIBS $LIBADD_DL"
20304 for ac_func in dlerror
20306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20307 echo "$as_me:$LINENO: checking for $ac_func" >&5
20308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20309 if eval "test \"\${$as_ac_var+set}\" = set"; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20320 #define $ac_func innocuous_$ac_func
20322 /* System header to define __stub macros and hopefully few prototypes,
20323 which can conflict with char $ac_func (); below.
20324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20325 <limits.h> exists even on freestanding compilers. */
20328 # include <limits.h>
20330 # include <assert.h>
20335 /* Override any gcc2 internal prototype to avoid an error. */
20340 /* We use char because int might match the return type of a gcc2
20341 builtin and then its argument prototype would still apply. */
20343 /* The GNU C library defines this for functions which it implements
20344 to always fail with ENOSYS. Some functions are actually named
20345 something starting with __ and the normal name is an alias. */
20346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20349 char (*f) () = $ac_func;
20358 return f != $ac_func;
20363 rm -f conftest.$ac_objext conftest$ac_exeext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20365 (eval $ac_link) 2>conftest.er1
20367 grep -v '^ *+' conftest.er1 >conftest.err
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; } &&
20378 { ac_try='test -s conftest$ac_exeext'
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; }; then
20384 eval "$as_ac_var=yes"
20386 echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20389 eval "$as_ac_var=no"
20391 rm -f conftest.err conftest.$ac_objext \
20392 conftest$ac_exeext conftest.$ac_ext
20394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20396 if test `eval echo '${'$as_ac_var'}'` = yes; then
20397 cat >>confdefs.h <<_ACEOF
20398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20404 LIBS="$lt_save_LIBS"
20407 ac_cpp='$CPP $CPPFLAGS'
20408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20414 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20415 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
20416 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 ac_cv_sys_symbol_underscore=no
20420 cat > conftest.$ac_ext <<EOF
20421 void nm_test_func(){}
20422 int main(){nm_test_func;return 0;}
20424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20425 (eval $ac_compile) 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; then
20429 # Now try to grab the symbols.
20430 ac_nlist=conftest.nm
20431 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20432 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } && test -s "$ac_nlist"; then
20436 # See whether the symbols have a leading underscore.
20437 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20438 ac_cv_sys_symbol_underscore=yes
20440 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20443 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20447 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20450 echo "configure: failed program was:" >&5
20456 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20457 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
20460 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20461 if test x"$libltdl_cv_func_dlopen" = xyes ||
20462 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20463 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20464 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
20465 if test "${libltdl_cv_need_uscore+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 libltdl_cv_need_uscore=unknown
20470 LIBS="$LIBS $LIBADD_DL"
20471 if test "$cross_compiling" = yes; then :
20472 libltdl_cv_need_uscore=cross
20474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20475 lt_status=$lt_dlunknown
20476 cat > conftest.$ac_ext <<EOF
20477 #line 20477 "configure"
20478 #include "confdefs.h"
20487 # define LT_DLGLOBAL RTLD_GLOBAL
20490 # define LT_DLGLOBAL DL_GLOBAL
20492 # define LT_DLGLOBAL 0
20496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20497 find out it does not work in some platform. */
20498 #ifndef LT_DLLAZY_OR_NOW
20500 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20503 # define LT_DLLAZY_OR_NOW DL_LAZY
20506 # define LT_DLLAZY_OR_NOW RTLD_NOW
20509 # define LT_DLLAZY_OR_NOW DL_NOW
20511 # define LT_DLLAZY_OR_NOW 0
20519 extern "C" void exit (int);
20522 void fnord() { int i=42;}
20525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20526 int status = $lt_dlunknown;
20530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20532 /* dlclose (self); */
20538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20539 (eval $ac_link) 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20543 (./conftest; exit; ) 2>/dev/null
20545 case x$lt_status in
20546 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20547 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20548 x$lt_unknown|x*) ;;
20551 # compilation failed
20560 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20561 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
20565 if test x"$libltdl_cv_need_uscore" = xyes; then
20567 cat >>confdefs.h <<\_ACEOF
20568 #define NEED_USCORE 1
20574 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20575 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
20576 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 # PORTME does your system automatically load deplibs for dlopen?
20580 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20581 # For now, we just catch OSes we know something about -- in the
20582 # future, we'll try test this programmatically.
20583 libltdl_cv_sys_dlopen_deplibs=unknown
20585 aix3*|aix4.1.*|aix4.2.*)
20586 # Unknown whether this is true for these versions of AIX, but
20587 # we want this `case' here to explicitly catch those versions.
20588 libltdl_cv_sys_dlopen_deplibs=unknown
20591 libltdl_cv_sys_dlopen_deplibs=yes
20594 # Assuming the user has installed a libdl from somewhere, this is true
20595 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20596 libltdl_cv_sys_dlopen_deplibs=yes
20599 libltdl_cv_sys_dlopen_deplibs=yes
20602 libltdl_cv_sys_dlopen_deplibs=yes
20604 irix[12345]*|irix6.[01]*)
20605 # Catch all versions of IRIX before 6.2, and indicate that we don't
20606 # know how it worked for any of those versions.
20607 libltdl_cv_sys_dlopen_deplibs=unknown
20610 # The case above catches anything before 6.2, and it's known that
20611 # at 6.2 and later dlopen does load deplibs.
20612 libltdl_cv_sys_dlopen_deplibs=yes
20615 libltdl_cv_sys_dlopen_deplibs=yes
20618 libltdl_cv_sys_dlopen_deplibs=yes
20621 libltdl_cv_sys_dlopen_deplibs=yes
20624 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20625 # it did *not* use an RPATH in a shared library to find objects the
20626 # library depends on, so we explictly say `no'.
20627 libltdl_cv_sys_dlopen_deplibs=no
20629 osf5.0|osf5.0a|osf5.1)
20630 # dlopen *does* load deplibs and with the right loader patch applied
20631 # it even uses RPATH in a shared library to search for shared objects
20632 # that the library depends on, but there's no easy way to know if that
20633 # patch is installed. Since this is the case, all we can really
20634 # say is unknown -- it depends on the patch being installed. If
20635 # it is, this changes to `yes'. Without it, it would be `no'.
20636 libltdl_cv_sys_dlopen_deplibs=unknown
20639 # the two cases above should catch all versions of osf <= 5.1. Read
20640 # the comments above for what we know about them.
20641 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20642 # is used to find them so we can finally say `yes'.
20643 libltdl_cv_sys_dlopen_deplibs=yes
20646 libltdl_cv_sys_dlopen_deplibs=yes
20651 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20652 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
20653 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20655 cat >>confdefs.h <<\_ACEOF
20656 #define LTDL_DLOPEN_DEPLIBS 1
20662 for ac_header in argz.h
20664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20666 echo "$as_me:$LINENO: checking for $ac_header" >&5
20667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20674 # Is the header compilable?
20675 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20677 cat >conftest.$ac_ext <<_ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20683 $ac_includes_default
20684 #include <$ac_header>
20686 rm -f conftest.$ac_objext
20687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20688 (eval $ac_compile) 2>conftest.er1
20690 grep -v '^ *+' conftest.er1 >conftest.err
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } &&
20695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; } &&
20701 { ac_try='test -s conftest.$ac_objext'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; }; then
20707 ac_header_compiler=yes
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20712 ac_header_compiler=no
20714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20716 echo "${ECHO_T}$ac_header_compiler" >&6
20718 # Is the header present?
20719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 #include <$ac_header>
20729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20732 grep -v '^ *+' conftest.er1 >conftest.err
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } >/dev/null; then
20737 if test -s conftest.err; then
20738 ac_cpp_err=$ac_c_preproc_warn_flag
20739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20746 if test -z "$ac_cpp_err"; then
20747 ac_header_preproc=yes
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ac_header_preproc=no
20754 rm -f conftest.err conftest.$ac_ext
20755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20756 echo "${ECHO_T}$ac_header_preproc" >&6
20758 # So? What about this header?
20759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20765 ac_header_preproc=yes
20768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20782 ## ---------------------------------- ##
20783 ## Report this to bug-libtool@gnu.org ##
20784 ## ---------------------------------- ##
20787 sed "s/^/$as_me: WARNING: /" >&2
20790 echo "$as_me:$LINENO: checking for $ac_header" >&5
20791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20795 eval "$as_ac_Header=\$ac_header_preproc"
20797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20802 cat >>confdefs.h <<_ACEOF
20803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20811 echo "$as_me:$LINENO: checking for error_t" >&5
20812 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
20813 if test "${ac_cv_type_error_t+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 cat >conftest.$ac_ext <<_ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20831 if (sizeof (error_t))
20837 rm -f conftest.$ac_objext
20838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20839 (eval $ac_compile) 2>conftest.er1
20841 grep -v '^ *+' conftest.er1 >conftest.err
20843 cat conftest.err >&5
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); } &&
20846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20848 (eval $ac_try) 2>&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); }; } &&
20852 { ac_try='test -s conftest.$ac_objext'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ac_cv_type_error_t=yes
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20863 ac_cv_type_error_t=no
20865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20867 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20868 echo "${ECHO_T}$ac_cv_type_error_t" >&6
20869 if test $ac_cv_type_error_t = yes; then
20871 cat >>confdefs.h <<_ACEOF
20872 #define HAVE_ERROR_T 1
20878 cat >>confdefs.h <<\_ACEOF
20879 #define error_t int
20890 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20893 echo "$as_me:$LINENO: checking for $ac_func" >&5
20894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20895 if eval "test \"\${$as_ac_var+set}\" = set"; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20906 #define $ac_func innocuous_$ac_func
20908 /* System header to define __stub macros and hopefully few prototypes,
20909 which can conflict with char $ac_func (); below.
20910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20911 <limits.h> exists even on freestanding compilers. */
20914 # include <limits.h>
20916 # include <assert.h>
20921 /* Override any gcc2 internal prototype to avoid an error. */
20926 /* We use char because int might match the return type of a gcc2
20927 builtin and then its argument prototype would still apply. */
20929 /* The GNU C library defines this for functions which it implements
20930 to always fail with ENOSYS. Some functions are actually named
20931 something starting with __ and the normal name is an alias. */
20932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20935 char (*f) () = $ac_func;
20944 return f != $ac_func;
20949 rm -f conftest.$ac_objext conftest$ac_exeext
20950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20951 (eval $ac_link) 2>conftest.er1
20953 grep -v '^ *+' conftest.er1 >conftest.err
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
20958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; } &&
20964 { ac_try='test -s conftest$ac_exeext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 eval "$as_ac_var=yes"
20972 echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20975 eval "$as_ac_var=no"
20977 rm -f conftest.err conftest.$ac_objext \
20978 conftest$ac_exeext conftest.$ac_ext
20980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20982 if test `eval echo '${'$as_ac_var'}'` = yes; then
20983 cat >>confdefs.h <<_ACEOF
20984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21017 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21022 echo "$as_me:$LINENO: checking for $ac_header" >&5
21023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21030 # Is the header compilable?
21031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21033 cat >conftest.$ac_ext <<_ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 $ac_includes_default
21040 #include <$ac_header>
21042 rm -f conftest.$ac_objext
21043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21044 (eval $ac_compile) 2>conftest.er1
21046 grep -v '^ *+' conftest.er1 >conftest.err
21048 cat conftest.err >&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } &&
21051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; } &&
21057 { ac_try='test -s conftest.$ac_objext'
21058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21059 (eval $ac_try) 2>&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; }; then
21063 ac_header_compiler=yes
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21068 ac_header_compiler=no
21070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21072 echo "${ECHO_T}$ac_header_compiler" >&6
21074 # Is the header present?
21075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 #include <$ac_header>
21085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21088 grep -v '^ *+' conftest.er1 >conftest.err
21090 cat conftest.err >&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } >/dev/null; then
21093 if test -s conftest.err; then
21094 ac_cpp_err=$ac_c_preproc_warn_flag
21095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21102 if test -z "$ac_cpp_err"; then
21103 ac_header_preproc=yes
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21108 ac_header_preproc=no
21110 rm -f conftest.err conftest.$ac_ext
21111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21112 echo "${ECHO_T}$ac_header_preproc" >&6
21114 # So? What about this header?
21115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21121 ac_header_preproc=yes
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21138 ## ---------------------------------- ##
21139 ## Report this to bug-libtool@gnu.org ##
21140 ## ---------------------------------- ##
21143 sed "s/^/$as_me: WARNING: /" >&2
21146 echo "$as_me:$LINENO: checking for $ac_header" >&5
21147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 eval "$as_ac_Header=\$ac_header_preproc"
21153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21158 cat >>confdefs.h <<_ACEOF
21159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21170 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21174 echo "$as_me:$LINENO: checking for $ac_header" >&5
21175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21182 # Is the header compilable?
21183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21185 cat >conftest.$ac_ext <<_ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 $ac_includes_default
21192 #include <$ac_header>
21194 rm -f conftest.$ac_objext
21195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21196 (eval $ac_compile) 2>conftest.er1
21198 grep -v '^ *+' conftest.er1 >conftest.err
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } &&
21203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; } &&
21209 { ac_try='test -s conftest.$ac_objext'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ac_header_compiler=yes
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_header_compiler=no
21222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21224 echo "${ECHO_T}$ac_header_compiler" >&6
21226 # Is the header present?
21227 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21229 cat >conftest.$ac_ext <<_ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 #include <$ac_header>
21237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21240 grep -v '^ *+' conftest.er1 >conftest.err
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } >/dev/null; then
21245 if test -s conftest.err; then
21246 ac_cpp_err=$ac_c_preproc_warn_flag
21247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21254 if test -z "$ac_cpp_err"; then
21255 ac_header_preproc=yes
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21260 ac_header_preproc=no
21262 rm -f conftest.err conftest.$ac_ext
21263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21264 echo "${ECHO_T}$ac_header_preproc" >&6
21266 # So? What about this header?
21267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21273 ac_header_preproc=yes
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21290 ## ---------------------------------- ##
21291 ## Report this to bug-libtool@gnu.org ##
21292 ## ---------------------------------- ##
21295 sed "s/^/$as_me: WARNING: /" >&2
21298 echo "$as_me:$LINENO: checking for $ac_header" >&5
21299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21303 eval "$as_ac_Header=\$ac_header_preproc"
21305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21310 cat >>confdefs.h <<_ACEOF
21311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21320 for ac_header in string.h strings.h
21322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21324 echo "$as_me:$LINENO: checking for $ac_header" >&5
21325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21332 # Is the header compilable?
21333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21335 cat >conftest.$ac_ext <<_ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21341 $ac_includes_default
21342 #include <$ac_header>
21344 rm -f conftest.$ac_objext
21345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21346 (eval $ac_compile) 2>conftest.er1
21348 grep -v '^ *+' conftest.er1 >conftest.err
21350 cat conftest.err >&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } &&
21353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; } &&
21359 { ac_try='test -s conftest.$ac_objext'
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; }; then
21365 ac_header_compiler=yes
21367 echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21370 ac_header_compiler=no
21372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21374 echo "${ECHO_T}$ac_header_compiler" >&6
21376 # Is the header present?
21377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21379 cat >conftest.$ac_ext <<_ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21385 #include <$ac_header>
21387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21390 grep -v '^ *+' conftest.er1 >conftest.err
21392 cat conftest.err >&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } >/dev/null; then
21395 if test -s conftest.err; then
21396 ac_cpp_err=$ac_c_preproc_warn_flag
21397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21404 if test -z "$ac_cpp_err"; then
21405 ac_header_preproc=yes
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ac_header_preproc=no
21412 rm -f conftest.err conftest.$ac_ext
21413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21414 echo "${ECHO_T}$ac_header_preproc" >&6
21416 # So? What about this header?
21417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21423 ac_header_preproc=yes
21426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21440 ## ---------------------------------- ##
21441 ## Report this to bug-libtool@gnu.org ##
21442 ## ---------------------------------- ##
21445 sed "s/^/$as_me: WARNING: /" >&2
21448 echo "$as_me:$LINENO: checking for $ac_header" >&5
21449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21453 eval "$as_ac_Header=\$ac_header_preproc"
21455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21460 cat >>confdefs.h <<_ACEOF
21461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21471 for ac_func in strchr index
21473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21474 echo "$as_me:$LINENO: checking for $ac_func" >&5
21475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21476 if eval "test \"\${$as_ac_var+set}\" = set"; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 cat >conftest.$ac_ext <<_ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21487 #define $ac_func innocuous_$ac_func
21489 /* System header to define __stub macros and hopefully few prototypes,
21490 which can conflict with char $ac_func (); below.
21491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21492 <limits.h> exists even on freestanding compilers. */
21495 # include <limits.h>
21497 # include <assert.h>
21502 /* Override any gcc2 internal prototype to avoid an error. */
21507 /* We use char because int might match the return type of a gcc2
21508 builtin and then its argument prototype would still apply. */
21510 /* The GNU C library defines this for functions which it implements
21511 to always fail with ENOSYS. Some functions are actually named
21512 something starting with __ and the normal name is an alias. */
21513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21516 char (*f) () = $ac_func;
21525 return f != $ac_func;
21530 rm -f conftest.$ac_objext conftest$ac_exeext
21531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532 (eval $ac_link) 2>conftest.er1
21534 grep -v '^ *+' conftest.er1 >conftest.err
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } &&
21539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; } &&
21545 { ac_try='test -s conftest$ac_exeext'
21546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547 (eval $ac_try) 2>&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); }; }; then
21551 eval "$as_ac_var=yes"
21553 echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21556 eval "$as_ac_var=no"
21558 rm -f conftest.err conftest.$ac_objext \
21559 conftest$ac_exeext conftest.$ac_ext
21561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21563 if test `eval echo '${'$as_ac_var'}'` = yes; then
21564 cat >>confdefs.h <<_ACEOF
21565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21573 for ac_func in strrchr rindex
21575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21576 echo "$as_me:$LINENO: checking for $ac_func" >&5
21577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21578 if eval "test \"\${$as_ac_var+set}\" = set"; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21589 #define $ac_func innocuous_$ac_func
21591 /* System header to define __stub macros and hopefully few prototypes,
21592 which can conflict with char $ac_func (); below.
21593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21594 <limits.h> exists even on freestanding compilers. */
21597 # include <limits.h>
21599 # include <assert.h>
21604 /* Override any gcc2 internal prototype to avoid an error. */
21609 /* We use char because int might match the return type of a gcc2
21610 builtin and then its argument prototype would still apply. */
21612 /* The GNU C library defines this for functions which it implements
21613 to always fail with ENOSYS. Some functions are actually named
21614 something starting with __ and the normal name is an alias. */
21615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21618 char (*f) () = $ac_func;
21627 return f != $ac_func;
21632 rm -f conftest.$ac_objext conftest$ac_exeext
21633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21634 (eval $ac_link) 2>conftest.er1
21636 grep -v '^ *+' conftest.er1 >conftest.err
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } &&
21641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; } &&
21647 { ac_try='test -s conftest$ac_exeext'
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; }; then
21653 eval "$as_ac_var=yes"
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21658 eval "$as_ac_var=no"
21660 rm -f conftest.err conftest.$ac_objext \
21661 conftest$ac_exeext conftest.$ac_ext
21663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21665 if test `eval echo '${'$as_ac_var'}'` = yes; then
21666 cat >>confdefs.h <<_ACEOF
21667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21675 for ac_func in memcpy bcopy
21677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21678 echo "$as_me:$LINENO: checking for $ac_func" >&5
21679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21680 if eval "test \"\${$as_ac_var+set}\" = set"; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 cat >conftest.$ac_ext <<_ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h. */
21689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21691 #define $ac_func innocuous_$ac_func
21693 /* System header to define __stub macros and hopefully few prototypes,
21694 which can conflict with char $ac_func (); below.
21695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21696 <limits.h> exists even on freestanding compilers. */
21699 # include <limits.h>
21701 # include <assert.h>
21706 /* Override any gcc2 internal prototype to avoid an error. */
21711 /* We use char because int might match the return type of a gcc2
21712 builtin and then its argument prototype would still apply. */
21714 /* The GNU C library defines this for functions which it implements
21715 to always fail with ENOSYS. Some functions are actually named
21716 something starting with __ and the normal name is an alias. */
21717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21720 char (*f) () = $ac_func;
21729 return f != $ac_func;
21734 rm -f conftest.$ac_objext conftest$ac_exeext
21735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21736 (eval $ac_link) 2>conftest.er1
21738 grep -v '^ *+' conftest.er1 >conftest.err
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } &&
21743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; } &&
21749 { ac_try='test -s conftest$ac_exeext'
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755 eval "$as_ac_var=yes"
21757 echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21760 eval "$as_ac_var=no"
21762 rm -f conftest.err conftest.$ac_objext \
21763 conftest$ac_exeext conftest.$ac_ext
21765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21767 if test `eval echo '${'$as_ac_var'}'` = yes; then
21768 cat >>confdefs.h <<_ACEOF
21769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21777 for ac_func in memmove strcmp
21779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21780 echo "$as_me:$LINENO: checking for $ac_func" >&5
21781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21782 if eval "test \"\${$as_ac_var+set}\" = set"; then
21783 echo $ECHO_N "(cached) $ECHO_C" >&6
21785 cat >conftest.$ac_ext <<_ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21793 #define $ac_func innocuous_$ac_func
21795 /* System header to define __stub macros and hopefully few prototypes,
21796 which can conflict with char $ac_func (); below.
21797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21798 <limits.h> exists even on freestanding compilers. */
21801 # include <limits.h>
21803 # include <assert.h>
21808 /* Override any gcc2 internal prototype to avoid an error. */
21813 /* We use char because int might match the return type of a gcc2
21814 builtin and then its argument prototype would still apply. */
21816 /* The GNU C library defines this for functions which it implements
21817 to always fail with ENOSYS. Some functions are actually named
21818 something starting with __ and the normal name is an alias. */
21819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21822 char (*f) () = $ac_func;
21831 return f != $ac_func;
21836 rm -f conftest.$ac_objext conftest$ac_exeext
21837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21838 (eval $ac_link) 2>conftest.er1
21840 grep -v '^ *+' conftest.er1 >conftest.err
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } &&
21845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; } &&
21851 { ac_try='test -s conftest$ac_exeext'
21852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853 (eval $ac_try) 2>&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; }; then
21857 eval "$as_ac_var=yes"
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21862 eval "$as_ac_var=no"
21864 rm -f conftest.err conftest.$ac_objext \
21865 conftest$ac_exeext conftest.$ac_ext
21867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21869 if test `eval echo '${'$as_ac_var'}'` = yes; then
21870 cat >>confdefs.h <<_ACEOF
21871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21880 for ac_func in closedir opendir readdir
21882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21883 echo "$as_me:$LINENO: checking for $ac_func" >&5
21884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21885 if eval "test \"\${$as_ac_var+set}\" = set"; then
21886 echo $ECHO_N "(cached) $ECHO_C" >&6
21888 cat >conftest.$ac_ext <<_ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21896 #define $ac_func innocuous_$ac_func
21898 /* System header to define __stub macros and hopefully few prototypes,
21899 which can conflict with char $ac_func (); below.
21900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21901 <limits.h> exists even on freestanding compilers. */
21904 # include <limits.h>
21906 # include <assert.h>
21911 /* Override any gcc2 internal prototype to avoid an error. */
21916 /* We use char because int might match the return type of a gcc2
21917 builtin and then its argument prototype would still apply. */
21919 /* The GNU C library defines this for functions which it implements
21920 to always fail with ENOSYS. Some functions are actually named
21921 something starting with __ and the normal name is an alias. */
21922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21925 char (*f) () = $ac_func;
21934 return f != $ac_func;
21939 rm -f conftest.$ac_objext conftest$ac_exeext
21940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21941 (eval $ac_link) 2>conftest.er1
21943 grep -v '^ *+' conftest.er1 >conftest.err
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } &&
21948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950 (eval $ac_try) 2>&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; } &&
21954 { ac_try='test -s conftest$ac_exeext'
21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956 (eval $ac_try) 2>&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; }; then
21960 eval "$as_ac_var=yes"
21962 echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21965 eval "$as_ac_var=no"
21967 rm -f conftest.err conftest.$ac_objext \
21968 conftest$ac_exeext conftest.$ac_ext
21970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21972 if test `eval echo '${'$as_ac_var'}'` = yes; then
21973 cat >>confdefs.h <<_ACEOF
21974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21986 ac_config_files="$ac_config_files Makefile"
21988 cat >confcache <<\_ACEOF
21989 # This file is a shell script that caches the results of configure
21990 # tests run on this system so they can be shared between configure
21991 # scripts and configure runs, see configure's option --config-cache.
21992 # It is not useful on other systems. If it contains results you don't
21993 # want to keep, you may remove or edit it.
21995 # config.status only pays attention to the cache file if you give it
21996 # the --recheck option to rerun configure.
21998 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21999 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22000 # following values.
22004 # The following way of writing the cache mishandles newlines in values,
22005 # but we know of no workaround that is simple, portable, and efficient.
22006 # So, don't put newlines in cache variables' values.
22007 # Ultrix sh set writes to stderr and can't be redirected directly,
22008 # and sets the high bit in the cache file unless we assign to the vars.
22011 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22013 # `set' does not quote correctly, so add quotes (double-quote
22014 # substitution turns \\\\ into \\, and sed turns \\ into \).
22017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22020 # `set' quotes correctly as required by POSIX, so do not add quotes.
22022 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22029 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22031 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22033 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22034 if test -w $cache_file; then
22035 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22036 cat confcache >$cache_file
22038 echo "not updating unwritable cache $cache_file"
22043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22044 # Let make expand exec_prefix.
22045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22047 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22048 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22049 # trailing colons and then remove the whole line if VPATH becomes empty
22050 # (actually we leave an empty line to preserve line numbers).
22051 if test "x$srcdir" = x.; then
22052 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22053 s/:*\$(srcdir):*/:/;
22054 s/:*\${srcdir}:*/:/;
22056 s/^\([^=]*=[ ]*\):*/\1/;
22062 # Transform confdefs.h into DEFS.
22063 # Protect against shell expansion while executing Makefile rules.
22064 # Protect against Makefile macro expansion.
22066 # If the first sed substitution is executed (which looks for macros that
22067 # take arguments), then we branch to the quote section. Otherwise,
22068 # look for a macro that doesn't take arguments.
22069 cat >confdef2opt.sed <<\_ACEOF
22072 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
22074 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
22078 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
22084 # We use echo to avoid assuming a particular line-breaking character.
22085 # The extra dot is to prevent the shell from consuming trailing
22086 # line-breaks from the sub-command output. A line-break within
22087 # single-quotes doesn't work because, if this script is created in a
22088 # platform that uses two characters for line-breaks (e.g., DOS), tr
22090 ac_LF_and_DOT=`echo; echo .`
22091 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22092 rm -f confdef2opt.sed
22097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22098 # 1. Remove the extension, and $U if already installed.
22099 ac_i=`echo "$ac_i" |
22100 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22102 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22103 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22105 LIBOBJS=$ac_libobjs
22107 LTLIBOBJS=$ac_ltlibobjs
22110 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22111 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22112 Usually this means the macro was only invoked conditionally." >&5
22113 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22114 Usually this means the macro was only invoked conditionally." >&2;}
22115 { (exit 1); exit 1; }; }
22117 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22118 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22119 Usually this means the macro was only invoked conditionally." >&5
22120 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22121 Usually this means the macro was only invoked conditionally." >&2;}
22122 { (exit 1); exit 1; }; }
22124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22125 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22126 Usually this means the macro was only invoked conditionally." >&5
22127 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22128 Usually this means the macro was only invoked conditionally." >&2;}
22129 { (exit 1); exit 1; }; }
22131 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22132 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22133 Usually this means the macro was only invoked conditionally." >&5
22134 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22135 Usually this means the macro was only invoked conditionally." >&2;}
22136 { (exit 1); exit 1; }; }
22138 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22139 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22140 Usually this means the macro was only invoked conditionally." >&5
22141 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22142 Usually this means the macro was only invoked conditionally." >&2;}
22143 { (exit 1); exit 1; }; }
22145 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22146 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22147 Usually this means the macro was only invoked conditionally." >&5
22148 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22149 Usually this means the macro was only invoked conditionally." >&2;}
22150 { (exit 1); exit 1; }; }
22153 : ${CONFIG_STATUS=./config.status}
22154 ac_clean_files_save=$ac_clean_files
22155 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22156 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22157 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22158 cat >$CONFIG_STATUS <<_ACEOF
22160 # Generated by $as_me.
22161 # Run this file to recreate the current configuration.
22162 # Compiler output produced by configure, useful for debugging
22163 # configure, is in config.log if it exists.
22166 ac_cs_recheck=false
22168 SHELL=\${CONFIG_SHELL-$SHELL}
22171 cat >>$CONFIG_STATUS <<\_ACEOF
22172 ## --------------------- ##
22173 ## M4sh Initialization. ##
22174 ## --------------------- ##
22176 # Be Bourne compatible
22177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22180 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22181 # is contrary to our usage. Disable this feature.
22182 alias -g '${1+"$@"}'='"$@"'
22183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22186 DUALCASE=1; export DUALCASE # for MKS sh
22188 # Support unset when possible.
22189 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22196 # Work around bugs in pre-3.0 UWIN ksh.
22197 $as_unset ENV MAIL MAILPATH
22204 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22205 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22206 LC_TELEPHONE LC_TIME
22208 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22209 eval $as_var=C; export $as_var
22215 # Required to use basename.
22216 if expr a : '\(a\)' >/dev/null 2>&1; then
22222 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22223 as_basename=basename
22229 # Name of the executable.
22230 as_me=`$as_basename "$0" ||
22231 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22232 X"$0" : 'X\(//\)$' \| \
22233 X"$0" : 'X\(/\)$' \| \
22234 . : '\(.\)' 2>/dev/null ||
22236 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22237 /^X\/\(\/\/\)$/{ s//\1/; q; }
22238 /^X\/\(\/\).*/{ s//\1/; q; }
22242 # PATH needs CR, and LINENO needs CR and PATH.
22243 # Avoid depending upon Character Ranges.
22244 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22245 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22246 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22247 as_cr_digits='0123456789'
22248 as_cr_alnum=$as_cr_Letters$as_cr_digits
22250 # The user is always right.
22251 if test "${PATH_SEPARATOR+set}" != set; then
22252 echo "#! /bin/sh" >conf$$.sh
22253 echo "exit 0" >>conf$$.sh
22255 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22264 as_lineno_1=$LINENO
22265 as_lineno_2=$LINENO
22266 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22267 test "x$as_lineno_1" != "x$as_lineno_2" &&
22268 test "x$as_lineno_3" = "x$as_lineno_2" || {
22269 # Find who we are. Look in the path if we contain no path at all
22272 *[\\/]* ) as_myself=$0 ;;
22273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22274 for as_dir in $PATH
22277 test -z "$as_dir" && as_dir=.
22278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22283 # We did not find ourselves, most probably we were run as `sh COMMAND'
22284 # in which case we are not to be found in the path.
22285 if test "x$as_myself" = x; then
22288 if test ! -f "$as_myself"; then
22289 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22290 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22291 { (exit 1); exit 1; }; }
22293 case $CONFIG_SHELL in
22295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22296 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22299 test -z "$as_dir" && as_dir=.
22300 for as_base in sh bash ksh sh5; do
22303 if ("$as_dir/$as_base" -c '
22304 as_lineno_1=$LINENO
22305 as_lineno_2=$LINENO
22306 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22307 test "x$as_lineno_1" != "x$as_lineno_2" &&
22308 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22309 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22310 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22311 CONFIG_SHELL=$as_dir/$as_base
22312 export CONFIG_SHELL
22313 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22321 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22322 # uniformly replaced by the line number. The first 'sed' inserts a
22323 # line-number line before each line; the second 'sed' does the real
22324 # work. The second script uses 'N' to pair each line-number line
22325 # with the numbered line, and appends trailing '-' during
22326 # substitution so that $LINENO is not a special case at line end.
22327 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22328 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22329 sed '=' <$as_myself |
22334 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22337 s,^['$as_cr_digits']*\n,,
22338 ' >$as_me.lineno &&
22339 chmod +x $as_me.lineno ||
22340 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22341 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22342 { (exit 1); exit 1; }; }
22344 # Don't try to exec as it changes $[0], causing all sort of problems
22345 # (the dirname of $[0] is not the place where we might find the
22346 # original and so on. Autoconf is especially sensible to this).
22348 # Exit status is that of the last command.
22353 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22354 *c*,-n*) ECHO_N= ECHO_C='
22356 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22357 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22360 if expr a : '\(a\)' >/dev/null 2>&1; then
22366 rm -f conf$$ conf$$.exe conf$$.file
22368 if ln -s conf$$.file conf$$ 2>/dev/null; then
22369 # We could just check for DJGPP; but this test a) works b) is more generic
22370 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22371 if test -f conf$$.exe; then
22372 # Don't use ln at all; we don't have any links
22377 elif ln conf$$.file conf$$ 2>/dev/null; then
22382 rm -f conf$$ conf$$.exe conf$$.file
22384 if mkdir -p . 2>/dev/null; then
22387 test -d ./-p && rmdir ./-p
22391 as_executable_p="test -f"
22393 # Sed expression to map a string onto a valid CPP name.
22394 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22396 # Sed expression to map a string onto a valid variable name.
22397 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22401 # We need space, tab and new line, in precisely that order.
22411 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22412 # report actual input values of CONFIG_FILES etc. instead of their
22413 # values after options handling. Logging --version etc. is OK.
22417 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22418 ## Running $as_me. ##
22423 This file was extended by libltdl $as_me 1.2, which was
22424 generated by GNU Autoconf 2.59. Invocation command line was
22426 CONFIG_FILES = $CONFIG_FILES
22427 CONFIG_HEADERS = $CONFIG_HEADERS
22428 CONFIG_LINKS = $CONFIG_LINKS
22429 CONFIG_COMMANDS = $CONFIG_COMMANDS
22433 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22437 # Files that config.status was made for.
22438 if test -n "$ac_config_files"; then
22439 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22442 if test -n "$ac_config_headers"; then
22443 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22446 if test -n "$ac_config_links"; then
22447 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22450 if test -n "$ac_config_commands"; then
22451 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22454 cat >>$CONFIG_STATUS <<\_ACEOF
22457 \`$as_me' instantiates files from templates according to the
22458 current configuration.
22460 Usage: $0 [OPTIONS] [FILE]...
22462 -h, --help print this help, then exit
22463 -V, --version print version number, then exit
22464 -q, --quiet do not print progress messages
22465 -d, --debug don't remove temporary files
22466 --recheck update $as_me by reconfiguring in the same conditions
22467 --file=FILE[:TEMPLATE]
22468 instantiate the configuration file FILE
22470 Configuration files:
22473 Configuration commands:
22476 Report bugs to <bug-autoconf@gnu.org>."
22479 cat >>$CONFIG_STATUS <<_ACEOF
22481 libltdl config.status 1.2
22482 configured by $0, generated by GNU Autoconf 2.59,
22483 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22485 Copyright (C) 2003 Free Software Foundation, Inc.
22486 This config.status script is free software; the Free Software Foundation
22487 gives unlimited permission to copy, distribute and modify it."
22492 cat >>$CONFIG_STATUS <<\_ACEOF
22493 # If no file are specified by the user, then we need to provide default
22494 # value. By we need to know if files were specified by the user.
22500 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22501 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22509 *) # This is not an option, so the user has probably given explicit
22512 ac_need_defaults=false;;
22516 # Handling of the options.
22518 cat >>$CONFIG_STATUS <<\_ACEOF
22519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22521 --version | --vers* | -V )
22522 echo "$ac_cs_version"; exit 0 ;;
22524 # Conflict between --help and --header
22525 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22526 Try \`$0 --help' for more information." >&5
22527 echo "$as_me: error: ambiguous option: $1
22528 Try \`$0 --help' for more information." >&2;}
22529 { (exit 1); exit 1; }; };;
22530 --help | --hel | -h )
22531 echo "$ac_cs_usage"; exit 0 ;;
22532 --debug | --d* | -d )
22534 --file | --fil | --fi | --f )
22536 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22537 ac_need_defaults=false;;
22538 --header | --heade | --head | --hea )
22540 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22541 ac_need_defaults=false;;
22542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22543 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22546 # This is an error.
22547 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22548 Try \`$0 --help' for more information." >&5
22549 echo "$as_me: error: unrecognized option: $1
22550 Try \`$0 --help' for more information." >&2;}
22551 { (exit 1); exit 1; }; } ;;
22553 *) ac_config_targets="$ac_config_targets $1" ;;
22559 ac_configure_extra_args=
22561 if $ac_cs_silent; then
22563 ac_configure_extra_args="$ac_configure_extra_args --silent"
22567 cat >>$CONFIG_STATUS <<_ACEOF
22568 if \$ac_cs_recheck; then
22569 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22570 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22575 cat >>$CONFIG_STATUS <<_ACEOF
22577 # INIT-COMMANDS section.
22580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22586 cat >>$CONFIG_STATUS <<\_ACEOF
22587 for ac_config_target in $ac_config_targets
22589 case "$ac_config_target" in
22590 # Handling of arguments.
22591 "config.h" ) CONFIG_FILES="$CONFIG_FILES config.h:config-h.in" ;;
22592 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22593 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22595 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22596 { (exit 1); exit 1; }; };;
22600 # If the user did not use the arguments to specify the items to instantiate,
22601 # then the envvar interface is used. Set only those that are not.
22602 # We use the long form for the default assignment because of an extremely
22603 # bizarre bug on SunOS 4.1.3.
22604 if $ac_need_defaults; then
22605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22606 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22609 # Have a temporary directory for convenience. Make it in the build tree
22610 # simply because there is no reason to put it here, and in addition,
22611 # creating and moving files from /tmp can sometimes cause problems.
22612 # Create a temporary directory, and hook for its removal unless debugging.
22615 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22616 trap '{ (exit 1); exit 1; }' 1 2 13 15
22619 # Create a (secure) tmp directory for tmp files.
22622 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22623 test -n "$tmp" && test -d "$tmp"
22626 tmp=./confstat$$-$RANDOM
22627 (umask 077 && mkdir $tmp)
22630 echo "$me: cannot create a temporary directory in ." >&2
22631 { (exit 1); exit 1; }
22636 cat >>$CONFIG_STATUS <<_ACEOF
22639 # CONFIG_FILES section.
22642 # No need to generate the scripts if there are no CONFIG_FILES.
22643 # This happens for instance when ./config.status config.h
22644 if test -n "\$CONFIG_FILES"; then
22645 # Protect against being on the right side of a sed subst in config.status.
22646 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22647 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22648 s,@SHELL@,$SHELL,;t t
22649 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22650 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22651 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22652 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22653 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22654 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22655 s,@exec_prefix@,$exec_prefix,;t t
22656 s,@prefix@,$prefix,;t t
22657 s,@program_transform_name@,$program_transform_name,;t t
22658 s,@bindir@,$bindir,;t t
22659 s,@sbindir@,$sbindir,;t t
22660 s,@libexecdir@,$libexecdir,;t t
22661 s,@datadir@,$datadir,;t t
22662 s,@sysconfdir@,$sysconfdir,;t t
22663 s,@sharedstatedir@,$sharedstatedir,;t t
22664 s,@localstatedir@,$localstatedir,;t t
22665 s,@libdir@,$libdir,;t t
22666 s,@includedir@,$includedir,;t t
22667 s,@oldincludedir@,$oldincludedir,;t t
22668 s,@infodir@,$infodir,;t t
22669 s,@mandir@,$mandir,;t t
22670 s,@build_alias@,$build_alias,;t t
22671 s,@host_alias@,$host_alias,;t t
22672 s,@target_alias@,$target_alias,;t t
22673 s,@DEFS@,$DEFS,;t t
22674 s,@ECHO_C@,$ECHO_C,;t t
22675 s,@ECHO_N@,$ECHO_N,;t t
22676 s,@ECHO_T@,$ECHO_T,;t t
22677 s,@LIBS@,$LIBS,;t t
22678 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22679 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22680 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22681 s,@CYGPATH_W@,$CYGPATH_W,;t t
22682 s,@PACKAGE@,$PACKAGE,;t t
22683 s,@VERSION@,$VERSION,;t t
22684 s,@ACLOCAL@,$ACLOCAL,;t t
22685 s,@AUTOCONF@,$AUTOCONF,;t t
22686 s,@AUTOMAKE@,$AUTOMAKE,;t t
22687 s,@AUTOHEADER@,$AUTOHEADER,;t t
22688 s,@MAKEINFO@,$MAKEINFO,;t t
22689 s,@install_sh@,$install_sh,;t t
22690 s,@STRIP@,$STRIP,;t t
22691 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22692 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22693 s,@mkdir_p@,$mkdir_p,;t t
22695 s,@SET_MAKE@,$SET_MAKE,;t t
22696 s,@am__leading_dot@,$am__leading_dot,;t t
22697 s,@AMTAR@,$AMTAR,;t t
22698 s,@am__tar@,$am__tar,;t t
22699 s,@am__untar@,$am__untar,;t t
22700 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22701 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22702 s,@MAINT@,$MAINT,;t t
22704 s,@CFLAGS@,$CFLAGS,;t t
22705 s,@LDFLAGS@,$LDFLAGS,;t t
22706 s,@CPPFLAGS@,$CPPFLAGS,;t t
22707 s,@ac_ct_CC@,$ac_ct_CC,;t t
22708 s,@EXEEXT@,$EXEEXT,;t t
22709 s,@OBJEXT@,$OBJEXT,;t t
22710 s,@DEPDIR@,$DEPDIR,;t t
22711 s,@am__include@,$am__include,;t t
22712 s,@am__quote@,$am__quote,;t t
22713 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22714 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22715 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22716 s,@CCDEPMODE@,$CCDEPMODE,;t t
22717 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22718 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22719 s,@build@,$build,;t t
22720 s,@build_cpu@,$build_cpu,;t t
22721 s,@build_vendor@,$build_vendor,;t t
22722 s,@build_os@,$build_os,;t t
22723 s,@host@,$host,;t t
22724 s,@host_cpu@,$host_cpu,;t t
22725 s,@host_vendor@,$host_vendor,;t t
22726 s,@host_os@,$host_os,;t t
22727 s,@EGREP@,$EGREP,;t t
22728 s,@LN_S@,$LN_S,;t t
22729 s,@ECHO@,$ECHO,;t t
22731 s,@ac_ct_AR@,$ac_ct_AR,;t t
22732 s,@RANLIB@,$RANLIB,;t t
22733 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22734 s,@DLLTOOL@,$DLLTOOL,;t t
22735 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22737 s,@ac_ct_AS@,$ac_ct_AS,;t t
22738 s,@OBJDUMP@,$OBJDUMP,;t t
22739 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22742 s,@CXXFLAGS@,$CXXFLAGS,;t t
22743 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22744 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22745 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22746 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22747 s,@CXXCPP@,$CXXCPP,;t t
22749 s,@FFLAGS@,$FFLAGS,;t t
22750 s,@ac_ct_F77@,$ac_ct_F77,;t t
22751 s,@LIBTOOL@,$LIBTOOL,;t t
22752 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22753 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
22754 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
22755 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
22756 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
22757 s,@LIBADD_DL@,$LIBADD_DL,;t t
22758 s,@LIBOBJS@,$LIBOBJS,;t t
22759 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22764 cat >>$CONFIG_STATUS <<\_ACEOF
22765 # Split the substitutions into bite-sized pieces for seds with
22766 # small command number limits, like on Digital OSF/1 and HP-UX.
22767 ac_max_sed_lines=48
22768 ac_sed_frag=1 # Number of current file.
22769 ac_beg=1 # First line for current file.
22770 ac_end=$ac_max_sed_lines # Line after last line for current file.
22773 while $ac_more_lines; do
22774 if test $ac_beg -gt 1; then
22775 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22777 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22779 if test ! -s $tmp/subs.frag; then
22780 ac_more_lines=false
22782 # The purpose of the label and of the branching condition is to
22783 # speed up the sed processing (if there are no `@' at all, there
22784 # is no need to browse any of the substitutions).
22785 # These are the two extra sed commands mentioned above.
22787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22788 if test -z "$ac_sed_cmds"; then
22789 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22791 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22793 ac_sed_frag=`expr $ac_sed_frag + 1`
22795 ac_end=`expr $ac_end + $ac_max_sed_lines`
22798 if test -z "$ac_sed_cmds"; then
22801 fi # test -n "$CONFIG_FILES"
22804 cat >>$CONFIG_STATUS <<\_ACEOF
22805 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22808 - | *:- | *:-:* ) # input from stdin
22810 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22811 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22812 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22814 * ) ac_file_in=$ac_file.in ;;
22817 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22818 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22820 X"$ac_file" : 'X\(//\)[^/]' \| \
22821 X"$ac_file" : 'X\(//\)$' \| \
22822 X"$ac_file" : 'X\(/\)' \| \
22823 . : '\(.\)' 2>/dev/null ||
22825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22827 /^X\(\/\/\)$/{ s//\1/; q; }
22828 /^X\(\/\).*/{ s//\1/; q; }
22830 { if $as_mkdir_p; then
22835 while test ! -d "$as_dir"; do
22836 as_dirs="$as_dir $as_dirs"
22837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22839 X"$as_dir" : 'X\(//\)[^/]' \| \
22840 X"$as_dir" : 'X\(//\)$' \| \
22841 X"$as_dir" : 'X\(/\)' \| \
22842 . : '\(.\)' 2>/dev/null ||
22844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22846 /^X\(\/\/\)$/{ s//\1/; q; }
22847 /^X\(\/\).*/{ s//\1/; q; }
22850 test ! -n "$as_dirs" || mkdir $as_dirs
22851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22853 { (exit 1); exit 1; }; }; }
22857 if test "$ac_dir" != .; then
22858 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22859 # A "../" for each directory in $ac_dir_suffix.
22860 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22862 ac_dir_suffix= ac_top_builddir=
22866 .) # No --srcdir option. We are building in place.
22868 if test -z "$ac_top_builddir"; then
22871 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22873 [\\/]* | ?:[\\/]* ) # Absolute path.
22874 ac_srcdir=$srcdir$ac_dir_suffix;
22875 ac_top_srcdir=$srcdir ;;
22876 *) # Relative path.
22877 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22878 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22881 # Do not use `cd foo && pwd` to compute absolute paths, because
22882 # the directories may not exist.
22884 .) ac_abs_builddir="$ac_dir";;
22887 .) ac_abs_builddir=`pwd`;;
22888 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22889 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22892 case $ac_abs_builddir in
22893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22895 case ${ac_top_builddir}. in
22896 .) ac_abs_top_builddir=$ac_abs_builddir;;
22897 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22898 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22901 case $ac_abs_builddir in
22902 .) ac_abs_srcdir=$ac_srcdir;;
22905 .) ac_abs_srcdir=$ac_abs_builddir;;
22906 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22907 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22910 case $ac_abs_builddir in
22911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22913 case $ac_top_srcdir in
22914 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22915 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22916 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22923 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22926 # Let's still pretend it is `configure' which instantiates (i.e., don't
22927 # use $as_me), people would be surprised to read:
22928 # /* config.h. Generated by config.status. */
22929 if test x"$ac_file" = x-; then
22932 configure_input="$ac_file. "
22934 configure_input=$configure_input"Generated from `echo $ac_file_in |
22935 sed 's,.*/,,'` by configure."
22937 # First look for the input files in the build tree, otherwise in the
22939 ac_file_inputs=`IFS=:
22940 for f in $ac_file_in; do
22942 -) echo $tmp/stdin ;;
22944 # Absolute (can't be DOS-style, as IFS=:)
22945 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22946 echo "$as_me: error: cannot find input file: $f" >&2;}
22947 { (exit 1); exit 1; }; }
22950 if test -f "$f"; then
22953 elif test -f "$srcdir/$f"; then
22958 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22959 echo "$as_me: error: cannot find input file: $f" >&2;}
22960 { (exit 1); exit 1; }; }
22963 done` || { (exit 1); exit 1; }
22965 if test x"$ac_file" != x-; then
22966 { echo "$as_me:$LINENO: creating $ac_file" >&5
22967 echo "$as_me: creating $ac_file" >&6;}
22971 cat >>$CONFIG_STATUS <<_ACEOF
22975 cat >>$CONFIG_STATUS <<\_ACEOF
22977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22978 s,@configure_input@,$configure_input,;t t
22979 s,@srcdir@,$ac_srcdir,;t t
22980 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22981 s,@top_srcdir@,$ac_top_srcdir,;t t
22982 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22983 s,@builddir@,$ac_builddir,;t t
22984 s,@abs_builddir@,$ac_abs_builddir,;t t
22985 s,@top_builddir@,$ac_top_builddir,;t t
22986 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22987 s,@INSTALL@,$ac_INSTALL,;t t
22988 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22990 if test x"$ac_file" != x-; then
22991 mv $tmp/out $ac_file
22999 cat >>$CONFIG_STATUS <<\_ACEOF
23002 # CONFIG_COMMANDS section.
23004 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23005 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23006 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23007 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23008 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23009 X"$ac_dest" : 'X\(//\)[^/]' \| \
23010 X"$ac_dest" : 'X\(//\)$' \| \
23011 X"$ac_dest" : 'X\(/\)' \| \
23012 . : '\(.\)' 2>/dev/null ||
23014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23016 /^X\(\/\/\)$/{ s//\1/; q; }
23017 /^X\(\/\).*/{ s//\1/; q; }
23019 { if $as_mkdir_p; then
23024 while test ! -d "$as_dir"; do
23025 as_dirs="$as_dir $as_dirs"
23026 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23027 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23028 X"$as_dir" : 'X\(//\)[^/]' \| \
23029 X"$as_dir" : 'X\(//\)$' \| \
23030 X"$as_dir" : 'X\(/\)' \| \
23031 . : '\(.\)' 2>/dev/null ||
23033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23034 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23035 /^X\(\/\/\)$/{ s//\1/; q; }
23036 /^X\(\/\).*/{ s//\1/; q; }
23039 test ! -n "$as_dirs" || mkdir $as_dirs
23040 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23041 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23042 { (exit 1); exit 1; }; }; }
23046 if test "$ac_dir" != .; then
23047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23048 # A "../" for each directory in $ac_dir_suffix.
23049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23051 ac_dir_suffix= ac_top_builddir=
23055 .) # No --srcdir option. We are building in place.
23057 if test -z "$ac_top_builddir"; then
23060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23062 [\\/]* | ?:[\\/]* ) # Absolute path.
23063 ac_srcdir=$srcdir$ac_dir_suffix;
23064 ac_top_srcdir=$srcdir ;;
23065 *) # Relative path.
23066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23070 # Do not use `cd foo && pwd` to compute absolute paths, because
23071 # the directories may not exist.
23073 .) ac_abs_builddir="$ac_dir";;
23076 .) ac_abs_builddir=`pwd`;;
23077 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23078 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23081 case $ac_abs_builddir in
23082 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23084 case ${ac_top_builddir}. in
23085 .) ac_abs_top_builddir=$ac_abs_builddir;;
23086 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23087 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23090 case $ac_abs_builddir in
23091 .) ac_abs_srcdir=$ac_srcdir;;
23094 .) ac_abs_srcdir=$ac_abs_builddir;;
23095 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23096 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23099 case $ac_abs_builddir in
23100 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23102 case $ac_top_srcdir in
23103 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23104 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23105 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23110 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23111 echo "$as_me: executing $ac_dest commands" >&6;}
23113 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23114 # Strip MF so we end up with the name of the file.
23115 mf=`echo "$mf" | sed -e 's/:.*$//'`
23116 # Check whether this is an Automake generated Makefile or not.
23117 # We used to match only the files named `Makefile.in', but
23118 # some people rename them; so instead we look at the file content.
23119 # Grep'ing the first line is not enough: some people post-process
23120 # each Makefile.in and add a new line on top of each file to say so.
23121 # So let's grep whole file.
23122 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23123 dirpart=`(dirname "$mf") 2>/dev/null ||
23124 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23125 X"$mf" : 'X\(//\)[^/]' \| \
23126 X"$mf" : 'X\(//\)$' \| \
23127 X"$mf" : 'X\(/\)' \| \
23128 . : '\(.\)' 2>/dev/null ||
23130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23132 /^X\(\/\/\)$/{ s//\1/; q; }
23133 /^X\(\/\).*/{ s//\1/; q; }
23138 # Extract the definition of DEPDIR, am__include, and am__quote
23139 # from the Makefile without running `make'.
23140 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23141 test -z "$DEPDIR" && continue
23142 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23143 test -z "am__include" && continue
23144 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23145 # When using ansi2knr, U may be empty or an underscore; expand it
23146 U=`sed -n 's/^U = //p' < "$mf"`
23147 # Find all dependency output files, they are included files with
23148 # $(DEPDIR) in their names. We invoke sed twice because it is the
23149 # simplest approach to changing $(DEPDIR) to its actual value in the
23151 for file in `sed -n "
23152 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23153 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23154 # Make sure the directory exists.
23155 test -f "$dirpart/$file" && continue
23156 fdir=`(dirname "$file") 2>/dev/null ||
23157 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23158 X"$file" : 'X\(//\)[^/]' \| \
23159 X"$file" : 'X\(//\)$' \| \
23160 X"$file" : 'X\(/\)' \| \
23161 . : '\(.\)' 2>/dev/null ||
23163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23165 /^X\(\/\/\)$/{ s//\1/; q; }
23166 /^X\(\/\).*/{ s//\1/; q; }
23168 { if $as_mkdir_p; then
23169 mkdir -p $dirpart/$fdir
23171 as_dir=$dirpart/$fdir
23173 while test ! -d "$as_dir"; do
23174 as_dirs="$as_dir $as_dirs"
23175 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23177 X"$as_dir" : 'X\(//\)[^/]' \| \
23178 X"$as_dir" : 'X\(//\)$' \| \
23179 X"$as_dir" : 'X\(/\)' \| \
23180 . : '\(.\)' 2>/dev/null ||
23182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23184 /^X\(\/\/\)$/{ s//\1/; q; }
23185 /^X\(\/\).*/{ s//\1/; q; }
23188 test ! -n "$as_dirs" || mkdir $as_dirs
23189 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23190 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23191 { (exit 1); exit 1; }; }; }
23193 # echo "creating $dirpart/$file"
23194 echo '# dummy' > "$dirpart/$file"
23202 cat >>$CONFIG_STATUS <<\_ACEOF
23204 { (exit 0); exit 0; }
23206 chmod +x $CONFIG_STATUS
23207 ac_clean_files=$ac_clean_files_save
23210 # configure is writing to config.log, and then calls config.status.
23211 # config.status does its own redirection, appending to config.log.
23212 # Unfortunately, on DOS this fails, as config.log is still kept open
23213 # by configure, so config.status won't be able to write to it; its
23214 # output is simply discarded. So we exec the FD to /dev/null,
23215 # effectively closing config.log, so it can be properly (re)opened and
23216 # appended to by config.status. When coming back to configure, we
23217 # need to make the FD available again.
23218 if test "$no_create" != yes; then
23220 ac_config_status_args=
23221 test "$silent" = yes &&
23222 ac_config_status_args="$ac_config_status_args --quiet"
23224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23227 # would make configure fail if this is the last instruction.
23228 $ac_cs_success || { (exit 1); exit 1; }