2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='libltdl'
425 PACKAGE_TARNAME='libltdl'
426 PACKAGE_VERSION='1.2'
427 PACKAGE_STRING='libltdl 1.2'
428 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
430 ac_unique_file="ltdl.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of libltdl 1.2:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --enable-ltdl-install install libltdl
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1048 include additional configurations [automatic]
1050 Some influential environment variables:
1051 CC C compiler command
1052 CFLAGS C compiler flags
1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1054 nonstandard directory <lib dir>
1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056 headers in a nonstandard directory <include dir>
1058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1060 CXXCPP C++ preprocessor
1061 F77 Fortran 77 compiler command
1062 FFLAGS Fortran 77 compiler flags
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1067 Report bugs to <bug-libtool@gnu.org>.
1071 if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1078 if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 ac_dir_suffix= ac_top_builddir=
1087 .) # No --srcdir option. We are building in place.
1089 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1105 .) ac_abs_builddir="$ac_dir";;
1108 .) ac_abs_builddir=`pwd`;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1126 .) ac_abs_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142 # Check for guested configure; otherwise get Cygnus style configure.
1143 if test -f $ac_srcdir/configure.gnu; then
1145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
1148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
1150 test -f $ac_srcdir/configure.in; then
1152 $ac_configure --help
1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1163 libltdl configure 1.2
1164 generated by GNU Autoconf 2.59
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1177 It was created by libltdl $as_me 1.2, which was
1178 generated by GNU Autoconf 2.59. Invocation command line was
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1198 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1199 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1202 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1203 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1204 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 test -z "$as_dir" && as_dir=.
1213 echo "PATH: $as_dir"
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_must_keep_next=false
1243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254 if test $ac_must_keep_next = true; then
1255 ac_must_keep_next=false # Got value, back to normal.
1258 *=* | --config-cache | -C | -disable-* | --disable-* \
1259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261 | -with-* | --with-* | -without-* | --without-* | --x)
1262 case "$ac_configure_args0 " in
1263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266 -* ) ac_must_keep_next=true ;;
1269 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270 # Get rid of the leading space.
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log. We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285 # Save into config.log some information that might help in debugging.
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1295 # The following way of writing the cache mishandles newlines in values,
1298 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1318 for ac_var in $ac_subst_vars
1320 eval ac_val=$`echo $ac_var`
1321 echo "$ac_var='"'"'$ac_val'"'"'"
1325 if test -n "$ac_subst_files"; then
1332 for ac_var in $ac_subst_files
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1340 if test -s confdefs.h; then
1347 sed "/^$/d" confdefs.h | sort
1350 test "$ac_signal" != 0 &&
1351 echo "$as_me: caught signal $ac_signal"
1352 echo "$as_me: exit $exit_status"
1354 rm -f core *.core &&
1355 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358 for ac_signal in 1 2 13 15; do
1359 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368 # Predefined preprocessor variables.
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398 if test "x$prefix" != xNONE; then
1399 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404 for ac_site_file in $CONFIG_SITE; do
1405 if test -r "$ac_site_file"; then
1406 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408 sed 's/^/| /' "$ac_site_file" >&5
1413 if test -r "$cache_file"; then
1414 # Some versions of bash will fail to source /dev/null (special
1415 # files actually), so we avoid doing that.
1416 if test -f "$cache_file"; then
1417 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1420 [\\/]* | ?:[\\/]* ) . $cache_file;;
1421 *) . ./$cache_file;;
1425 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1430 # Check that the precious variables saved in the cache have kept the same
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436 eval ac_new_set=\$ac_env_${ac_var}_set
1437 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438 eval ac_new_val="\$ac_env_${ac_var}_value"
1439 case $ac_old_set,$ac_new_set in
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1450 if test "x$ac_old_val" != "x$ac_new_val"; then
1451 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1454 echo "$as_me: former value: $ac_old_val" >&2;}
1455 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1456 echo "$as_me: current value: $ac_new_val" >&2;}
1457 ac_cache_corrupted=:
1460 # Pass precious variables to config.status.
1461 if test "$ac_new_set" = set; then
1463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465 *) ac_arg=$ac_var=$ac_new_val ;;
1467 case " $ac_configure_args " in
1468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1469 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 if $ac_cache_corrupted; then
1474 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478 { (exit 1); exit 1; }; }
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516 ## ------------------------------- ##
1517 ## Libltdl specific configuration. ##
1518 ## ------------------------------- ##
1521 for ac_dir in . $srcdir/.; do
1522 if test -f $ac_dir/install-sh; then
1524 ac_install_sh="$ac_aux_dir/install-sh -c"
1526 elif test -f $ac_dir/install.sh; then
1528 ac_install_sh="$ac_aux_dir/install.sh -c"
1530 elif test -f $ac_dir/shtool; then
1532 ac_install_sh="$ac_aux_dir/shtool install -c"
1536 if test -z "$ac_aux_dir"; then
1537 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1538 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1539 { (exit 1); exit 1; }; }
1541 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1547 if test -f ${srcdir}/ltmain.sh; then
1548 # if libltdl is libtoolized, it is assumed to be stand-alone and
1549 # installed unless the command line overrides it (tested above)
1550 enable_ltdl_install=yes
1552 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1553 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1554 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1555 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1556 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1557 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1558 { (exit 1); exit 1; }; }
1563 ## ------------------------ ##
1564 ## Automake Initialisation. ##
1565 ## ------------------------ ##
1566 am__api_version="1.9"
1567 # Find a good install program. We prefer a C program (faster),
1568 # so one script is as good as another. But avoid the broken or
1569 # incompatible versions:
1570 # SysV /etc/install, /usr/sbin/install
1571 # SunOS /usr/etc/install
1572 # IRIX /sbin/install
1574 # AmigaOS /C/install, which installs bootblocks on floppy discs
1575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1578 # OS/2's system install, which has a completely different semantic
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 test -z "$as_dir" && as_dir=.
1591 # Account for people who put trailing slashes in PATH elements.
1593 ./ | .// | /cC/* | \
1594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1598 # OSF1 and SCO ODT 3.0 have their own names for install.
1599 # Don't use installbsd from OSF since it installs stuff as root
1601 for ac_prog in ginstall scoinst install; do
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1604 if test $ac_prog = install &&
1605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606 # AIX install. It has an incompatible calling convention.
1608 elif test $ac_prog = install &&
1609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610 # program-specific install script used by HP pwplus--don't use.
1613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1625 if test "${ac_cv_path_install+set}" = set; then
1626 INSTALL=$ac_cv_path_install
1628 # As a last resort, use the slow shell script. We don't cache a
1629 # path for INSTALL within a source directory, because that will
1630 # break other packages using the cache if that directory is
1631 # removed, or if the path is relative.
1632 INSTALL=$ac_install_sh
1635 echo "$as_me:$LINENO: result: $INSTALL" >&5
1636 echo "${ECHO_T}$INSTALL" >&6
1638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1639 # It thinks the first close brace ends the variable substitution.
1640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1646 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1647 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1650 echo timestamp > conftest.file
1651 # Do `set' in a subshell so we don't clobber the current shell's
1652 # arguments. Must try -L first in case configure is actually a
1653 # symlink; some systems play weird games with the mod time of symlinks
1654 # (eg FreeBSD returns the mod time of the symlink's containing
1657 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1658 if test "$*" = "X"; then
1660 set X `ls -t $srcdir/configure conftest.file`
1663 if test "$*" != "X $srcdir/configure conftest.file" \
1664 && test "$*" != "X conftest.file $srcdir/configure"; then
1666 # If neither matched, then we have a broken ls. This can happen
1667 # if, for instance, CONFIG_SHELL is bash and it inherits a
1668 # broken ls alias from the environment. This has actually
1669 # happened. Such a system could not be considered "sane".
1670 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1671 alias in your environment" >&5
1672 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1673 alias in your environment" >&2;}
1674 { (exit 1); exit 1; }; }
1677 test "$2" = conftest.file
1683 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1684 Check your system clock" >&5
1685 echo "$as_me: error: newly created file is older than distributed files!
1686 Check your system clock" >&2;}
1687 { (exit 1); exit 1; }; }
1689 echo "$as_me:$LINENO: result: yes" >&5
1690 echo "${ECHO_T}yes" >&6
1691 test "$program_prefix" != NONE &&
1692 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1693 # Use a double $ so make ignores it.
1694 test "$program_suffix" != NONE &&
1695 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1696 # Double any \ or $. echo might interpret backslashes.
1697 # By default was `s,x,x', remove it if useless.
1698 cat <<\_ACEOF >conftest.sed
1699 s/[\\$]/&&/g;s/;s,x,x,$//
1701 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1704 # expand $ac_aux_dir to an absolute path
1705 am_aux_dir=`cd $ac_aux_dir && pwd`
1707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708 # Use eval to expand $SHELL
1709 if eval "$MISSING --run true"; then
1710 am_missing_run="$MISSING --run "
1713 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1717 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1718 # We used to keeping the `.' as first argument, in order to
1719 # allow $(mkdir_p) to be used without argument. As in
1720 # $(mkdir_p) $(somedir)
1721 # where $(somedir) is conditionally defined. However this is wrong
1723 # 1. if the package is installed by a user who cannot write `.'
1724 # make install will fail,
1725 # 2. the above comment should most certainly read
1726 # $(mkdir_p) $(DESTDIR)$(somedir)
1727 # so it does not work when $(somedir) is undefined and
1728 # $(DESTDIR) is not.
1729 # To support the latter case, we have to write
1730 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1731 # so the `.' trick is pointless.
1732 mkdir_p='mkdir -p --'
1734 # On NextStep and OpenStep, the `mkdir' command does not
1735 # recognize any option. It will interpret all options as
1736 # directories to create, and then abort because `.' already
1738 for d in ./-p ./--version;
1740 test -d $d && rmdir $d
1742 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1743 if test -f "$ac_aux_dir/mkinstalldirs"; then
1744 mkdir_p='$(mkinstalldirs)'
1746 mkdir_p='$(install_sh) -d'
1750 for ac_prog in gawk mawk nawk awk
1752 # Extract the first word of "$ac_prog", so it can be a program name with args.
1753 set dummy $ac_prog; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_AWK+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 if test -n "$AWK"; then
1760 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 ac_cv_prog_AWK="$ac_prog"
1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 if test -n "$AWK"; then
1780 echo "$as_me:$LINENO: result: $AWK" >&5
1781 echo "${ECHO_T}$AWK" >&6
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1787 test -n "$AWK" && break
1790 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1791 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1792 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1793 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 cat >conftest.make <<\_ACEOF
1798 @echo 'ac_maketemp="$(MAKE)"'
1800 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1801 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1802 if test -n "$ac_maketemp"; then
1803 eval ac_cv_prog_make_${ac_make}_set=yes
1805 eval ac_cv_prog_make_${ac_make}_set=no
1809 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 SET_MAKE="MAKE=${MAKE-make}"
1819 rm -rf .tst 2>/dev/null
1820 mkdir .tst 2>/dev/null
1821 if test -d .tst; then
1826 rmdir .tst 2>/dev/null
1828 # test to see if srcdir already configured
1829 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1830 test -f $srcdir/config.status; then
1831 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1832 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1833 { (exit 1); exit 1; }; }
1836 # test whether we have cygpath
1837 if test -z "$CYGPATH_W"; then
1838 if (cygpath --version) >/dev/null 2>/dev/null; then
1839 CYGPATH_W='cygpath -w'
1846 # Define the identity of the package.
1851 # Some tools Automake needs.
1853 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1856 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1859 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1862 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1865 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1867 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1869 # Installed binaries are usually stripped using `strip' when the user
1870 # run `make install-strip'. However `strip' might not be the right
1871 # tool to use in cross-compilation environments, therefore Automake
1872 # will honor the `STRIP' environment variable to overrule this program.
1873 if test "$cross_compiling" != no; then
1874 if test -n "$ac_tool_prefix"; then
1875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1876 set dummy ${ac_tool_prefix}strip; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_STRIP+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 if test -n "$STRIP"; then
1883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 STRIP=$ac_cv_prog_STRIP
1902 if test -n "$STRIP"; then
1903 echo "$as_me:$LINENO: result: $STRIP" >&5
1904 echo "${ECHO_T}$STRIP" >&6
1906 echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1911 if test -z "$ac_cv_prog_STRIP"; then
1913 # Extract the first word of "strip", so it can be a program name with args.
1914 set dummy strip; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$ac_ct_STRIP"; then
1921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 ac_cv_prog_ac_ct_STRIP="strip"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1941 if test -n "$ac_ct_STRIP"; then
1942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1943 echo "${ECHO_T}$ac_ct_STRIP" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1951 STRIP="$ac_cv_prog_STRIP"
1955 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1957 # We need awk for the "check" target. The system "awk" is bad on
1959 # Always define AMTAR for backward compatibility.
1961 AMTAR=${AMTAR-"${am_missing_run}tar"}
1963 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1969 ac_config_headers="$ac_config_headers config.h:config-h.in"
1973 ## ------------------ ##
1974 ## C compiler checks. ##
1975 ## ------------------ ##
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test -n "$CC"; then
2010 echo "$as_me:$LINENO: result: $CC" >&5
2011 echo "${ECHO_T}$CC" >&6
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2018 if test -z "$ac_cv_prog_CC"; then
2020 # Extract the first word of "gcc", so it can be a program name with args.
2021 set dummy gcc; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$ac_ct_CC"; then
2028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_ac_ct_CC="gcc"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2060 if test -z "$CC"; then
2061 if test -n "$ac_tool_prefix"; then
2062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2063 set dummy ${ac_tool_prefix}cc; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 if test -n "$CC"; then
2070 ac_cv_prog_CC="$CC" # Let the user override the test.
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_CC="${ac_tool_prefix}cc"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 if test -n "$CC"; then
2090 echo "$as_me:$LINENO: result: $CC" >&5
2091 echo "${ECHO_T}$CC" >&6
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2098 if test -z "$ac_cv_prog_CC"; then
2100 # Extract the first word of "cc", so it can be a program name with args.
2101 set dummy cc; ac_word=$2
2102 echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 if test -n "$ac_ct_CC"; then
2108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 test -z "$as_dir" && as_dir=.
2115 for ac_exec_ext in '' $ac_executable_extensions; do
2116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2117 ac_cv_prog_ac_ct_CC="cc"
2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2127 if test -n "$ac_ct_CC"; then
2128 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2129 echo "${ECHO_T}$ac_ct_CC" >&6
2131 echo "$as_me:$LINENO: result: no" >&5
2132 echo "${ECHO_T}no" >&6
2141 if test -z "$CC"; then
2142 # Extract the first word of "cc", so it can be a program name with args.
2143 set dummy cc; ac_word=$2
2144 echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2146 if test "${ac_cv_prog_CC+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 if test -n "$CC"; then
2150 ac_cv_prog_CC="$CC" # Let the user override the test.
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2161 ac_prog_rejected=yes
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 if test $ac_prog_rejected = yes; then
2172 # We found a bogon in the path, so make sure we never use it.
2173 set dummy $ac_cv_prog_CC
2175 if test $# != 0; then
2176 # We chose a different compiler from the bogus one.
2177 # However, it has the same basename, so the bogon will be chosen
2178 # first if we set CC to just the basename; use the full file name.
2180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2186 if test -n "$CC"; then
2187 echo "$as_me:$LINENO: result: $CC" >&5
2188 echo "${ECHO_T}$CC" >&6
2190 echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2195 if test -z "$CC"; then
2196 if test -n "$ac_tool_prefix"; then
2199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2201 echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 if test -n "$CC"; then
2207 ac_cv_prog_CC="$CC" # Let the user override the test.
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 if test -n "$CC"; then
2227 echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6
2230 echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6
2234 test -n "$CC" && break
2237 if test -z "$CC"; then
2241 # Extract the first word of "$ac_prog", so it can be a program name with args.
2242 set dummy $ac_prog; ac_word=$2
2243 echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 if test -n "$ac_ct_CC"; then
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 ac_cv_prog_ac_ct_CC="$ac_prog"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268 if test -n "$ac_ct_CC"; then
2269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2270 echo "${ECHO_T}$ac_ct_CC" >&6
2272 echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2276 test -n "$ac_ct_CC" && break
2285 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: no acceptable C compiler found in \$PATH
2288 See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
2291 # Provide some information about the compiler.
2292 echo "$as_me:$LINENO:" \
2293 "checking for C compiler version" >&5
2294 ac_compiler=`set X $ac_compile; echo $2`
2295 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2296 (eval $ac_compiler --version </dev/null >&5) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }
2300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2301 (eval $ac_compiler -v </dev/null >&5) 2>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }
2305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2306 (eval $ac_compiler -V </dev/null >&5) 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }
2311 cat >conftest.$ac_ext <<_ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2326 ac_clean_files_save=$ac_clean_files
2327 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2328 # Try to create an executable without -o first, disregard a.out.
2329 # It will help us diagnose broken compilers, and finding out an intuition
2331 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2332 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2333 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2334 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2335 (eval $ac_link_default) 2>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; then
2339 # Find the output, starting from the most likely. This scheme is
2340 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2343 # Be careful to initialize this variable, since it used to be cached.
2344 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2346 # b.out is created by i960 compilers.
2347 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2349 test -f "$ac_file" || continue
2351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2354 # This is the source file.
2357 # We found the default executable, but exeext='' is most
2361 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362 # FIXME: I believe we export ac_cv_exeext for Libtool,
2363 # but it would be cool to find out if it's true. Does anybody
2364 # maintain Libtool? --akim.
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2375 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2376 See \`config.log' for more details." >&5
2377 echo "$as_me: error: C compiler cannot create executables
2378 See \`config.log' for more details." >&2;}
2379 { (exit 77); exit 77; }; }
2382 ac_exeext=$ac_cv_exeext
2383 echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6
2386 # Check the compiler produces executables we can run. If not, either
2387 # the compiler is broken, or we cross compile.
2388 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2389 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2390 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2391 # If not cross compiling, check that we can run a simple program.
2392 if test "$cross_compiling" != yes; then
2393 if { ac_try='./$ac_file'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2401 if test "$cross_compiling" = maybe; then
2404 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2405 If you meant to cross compile, use \`--host'.
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: cannot run C compiled programs.
2408 If you meant to cross compile, use \`--host'.
2409 See \`config.log' for more details." >&2;}
2410 { (exit 1); exit 1; }; }
2414 echo "$as_me:$LINENO: result: yes" >&5
2415 echo "${ECHO_T}yes" >&6
2417 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2418 ac_clean_files=$ac_clean_files_save
2419 # Check the compiler produces executables we can run. If not, either
2420 # the compiler is broken, or we cross compile.
2421 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2422 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2423 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2424 echo "${ECHO_T}$cross_compiling" >&6
2426 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2427 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429 (eval $ac_link) 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; then
2433 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2434 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2435 # work properly (i.e., refer to `conftest.exe'), while it won't with
2437 for ac_file in conftest.exe conftest conftest.*; do
2438 test -f "$ac_file" || continue
2440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2441 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2448 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2451 See \`config.log' for more details." >&2;}
2452 { (exit 1); exit 1; }; }
2455 rm -f conftest$ac_cv_exeext
2456 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2457 echo "${ECHO_T}$ac_cv_exeext" >&6
2459 rm -f conftest.$ac_ext
2460 EXEEXT=$ac_cv_exeext
2462 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2463 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2464 if test "${ac_cv_objext+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 cat >conftest.$ac_ext <<_ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2482 rm -f conftest.o conftest.obj
2483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484 (eval $ac_compile) 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; then
2488 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2491 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2499 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2502 See \`config.log' for more details." >&2;}
2503 { (exit 1); exit 1; }; }
2506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2508 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2509 echo "${ECHO_T}$ac_cv_objext" >&6
2510 OBJEXT=$ac_cv_objext
2512 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2513 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2514 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>conftest.er1
2539 grep -v '^ *+' conftest.er1 >conftest.err
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try='test -z "$ac_c_werror_flag"
2545 || test ! -s conftest.err'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2565 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2568 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2569 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2570 GCC=`test $ac_compiler_gnu = yes && echo yes`
2571 ac_test_CFLAGS=${CFLAGS+set}
2572 ac_save_CFLAGS=$CFLAGS
2574 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2575 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2576 if test "${ac_cv_prog_cc_g+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 cat >conftest.$ac_ext <<_ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2598 grep -v '^ *+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2625 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2627 if test "$ac_test_CFLAGS" = set; then
2628 CFLAGS=$ac_save_CFLAGS
2629 elif test $ac_cv_prog_cc_g = yes; then
2630 if test "$GCC" = yes; then
2636 if test "$GCC" = yes; then
2642 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2643 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2644 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 ac_cv_prog_cc_stdc=no
2649 cat >conftest.$ac_ext <<_ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2657 #include <sys/types.h>
2658 #include <sys/stat.h>
2659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2660 struct buf { int x; };
2661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662 static char *e (p, i)
2668 static char *f (char * (*g) (char **, int), char **p, ...)
2673 s = g (p, va_arg (v,int));
2678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2679 function prototypes and stuff, but not '\xHH' hex character constants.
2680 These don't provoke an error unfortunately, instead are silently treated
2681 as 'x'. The following induces an error, until -std1 is added to get
2682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2683 array size at least. It's necessary to write '\x00'==0 to get something
2684 that's true only with -std1. */
2685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2687 int test (int i, double x);
2688 struct s1 {int (*f) (int a);};
2689 struct s2 {int (*f) (double a);};
2690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2696 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2701 # Don't try gcc -ansi; that turns off useful extensions and
2702 # breaks some systems' header files.
2703 # AIX -qlanglvl=ansi
2704 # Ultrix and OSF/1 -std1
2705 # HP-UX 10.20 and later -Ae
2706 # HP-UX older versions -Aa -D_HPUX_SOURCE
2707 # SVR4 -Xc -D__EXTENSIONS__
2708 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2710 CC="$ac_save_CC $ac_arg"
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 ac_cv_prog_cc_stdc=$ac_arg
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2740 rm -f conftest.err conftest.$ac_objext
2742 rm -f conftest.$ac_ext conftest.$ac_objext
2747 case "x$ac_cv_prog_cc_stdc" in
2749 echo "$as_me:$LINENO: result: none needed" >&5
2750 echo "${ECHO_T}none needed" >&6 ;;
2752 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2753 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2754 CC="$CC $ac_cv_prog_cc_stdc" ;;
2757 # Some people use a C++ compiler to compile C. Since we use `exit',
2758 # in C++ we need to declare it. In case someone uses the same compiler
2759 # for both compiling C and C++ we need to have the C++ compiler decide
2760 # the declaration of exit, since it's the most demanding environment.
2761 cat >conftest.$ac_ext <<_ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2770 grep -v '^ *+' conftest.er1 >conftest.err
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag"
2776 || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 for ac_declaration in \
2790 'extern "C" void std::exit (int) throw (); using std::exit;' \
2791 'extern "C" void std::exit (int); using std::exit;' \
2792 'extern "C" void exit (int) throw ();' \
2793 'extern "C" void exit (int);' \
2796 cat >conftest.$ac_ext <<_ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h. */
2812 rm -f conftest.$ac_objext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2814 (eval $ac_compile) 2>conftest.er1
2816 grep -v '^ *+' conftest.er1 >conftest.err
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -z "$ac_c_werror_flag"
2822 || test ! -s conftest.err'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; } &&
2828 { ac_try='test -s conftest.$ac_objext'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2842 cat >conftest.$ac_ext <<_ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2857 rm -f conftest.$ac_objext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>conftest.er1
2861 grep -v '^ *+' conftest.er1 >conftest.err
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try='test -z "$ac_c_werror_flag"
2867 || test ! -s conftest.err'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; } &&
2873 { ac_try='test -s conftest.$ac_objext'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 if test -n "$ac_declaration"; then
2889 echo '#ifdef __cplusplus' >>confdefs.h
2890 echo $ac_declaration >>confdefs.h
2891 echo '#endif' >>confdefs.h
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901 ac_cpp='$CPP $CPPFLAGS'
2902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905 DEPDIR="${am__leading_dot}deps"
2907 ac_config_commands="$ac_config_commands depfiles"
2910 am_make=${MAKE-make}
2911 cat > confinc << 'END'
2916 # If we don't find an include directive, just comment out the code.
2917 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2918 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2922 # First try GNU make style include.
2923 echo "include confinc" > confmf
2924 # We grep out `Entering directory' and `Leaving directory'
2925 # messages which can occur if `w' ends up in MAKEFLAGS.
2926 # In particular we don't look at `^make:' because GNU make might
2927 # be invoked under some other name (usually "gmake"), in which
2928 # case it prints its new name instead of `make'.
2929 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2934 # Now try BSD make style include.
2935 if test "$am__include" = "#"; then
2936 echo '.include "confinc"' > confmf
2937 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2938 am__include=.include
2945 echo "$as_me:$LINENO: result: $_am_result" >&5
2946 echo "${ECHO_T}$_am_result" >&6
2947 rm -f confinc confmf
2949 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2950 if test "${enable_dependency_tracking+set}" = set; then
2951 enableval="$enable_dependency_tracking"
2954 if test "x$enable_dependency_tracking" != xno; then
2955 am_depcomp="$ac_aux_dir/depcomp"
2960 if test "x$enable_dependency_tracking" != xno; then
2971 depcc="$CC" am_compiler_list=
2973 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2974 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2979 # We make a subdir and do the tests there. Otherwise we can end up
2980 # making bogus files that we don't know about and never remove. For
2981 # instance it was reported that on HP-UX the gcc test will end up
2982 # making a dummy file named `D' -- because `-MD' means `put the output
2985 # Copy depcomp to subdir because otherwise we won't find it if we're
2986 # using a relative directory.
2987 cp "$am_depcomp" conftest.dir
2989 # We will build objects and dependencies in a subdirectory because
2990 # it helps to detect inapplicable dependency modes. For instance
2991 # both Tru64's cc and ICC support -MD to output dependencies as a
2992 # side effect of compilation, but ICC will put the dependencies in
2993 # the current directory while Tru64 will put them in the object
2997 am_cv_CC_dependencies_compiler_type=none
2998 if test "$am_compiler_list" = ""; then
2999 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3001 for depmode in $am_compiler_list; do
3002 # Setup a source with many dependencies, because some compilers
3003 # like to wrap large dependency lists on column 80 (with \), and
3004 # we should not choose a depcomp mode which is confused by this.
3006 # We need to recreate these files for each test, as the compiler may
3007 # overwrite some of them when testing with obscure command lines.
3008 # This happens at least with the AIX C compiler.
3010 for i in 1 2 3 4 5 6; do
3011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3012 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3013 # Solaris 8's {/usr,}/bin/sh.
3014 touch sub/conftst$i.h
3016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3020 # after this tag, mechanisms are not by side-effect, so they'll
3021 # only be used when explicitly requested
3022 if test "x$enable_dependency_tracking" = xyes; then
3030 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3031 # mode. It turns out that the SunPro C++ compiler does not properly
3032 # handle `-M -o', and we need to detect this.
3033 if depmode=$depmode \
3034 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3036 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3037 >/dev/null 2>conftest.err &&
3038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3039 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3041 # icc doesn't choke on unknown options, it will just issue warnings
3042 # or remarks (even with -Werror). So we grep stderr for any message
3043 # that says an option was ignored or not supported.
3044 # When given -MP, icc 7.0 and 7.1 complain thusly:
3045 # icc: Command line warning: ignoring option '-M'; no argument required
3046 # The diagnosis changed in icc 8.0:
3047 # icc: Command line remark: option '-MP' not supported
3048 if (grep 'ignoring option' conftest.err ||
3049 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3050 am_cv_CC_dependencies_compiler_type=$depmode
3059 am_cv_CC_dependencies_compiler_type=none
3063 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3064 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3065 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3070 test "x$enable_dependency_tracking" != xno \
3071 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3073 am__fastdepCC_FALSE='#'
3075 am__fastdepCC_TRUE='#'
3076 am__fastdepCC_FALSE=
3081 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3082 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3083 if test "${ac_cv_c_const+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3096 /* FIXME: Include the comments suggested by Paul. */
3098 /* Ultrix mips cc rejects this. */
3099 typedef int charset[2];
3101 /* SunOS 4.1.1 cc rejects this. */
3102 char const *const *ccp;
3104 /* NEC SVR4.0.2 mips cc rejects this. */
3105 struct point {int x, y;};
3106 static struct point const zero = {0,0};
3107 /* AIX XL C 1.02.0.0 rejects this.
3108 It does not let you subtract one const X* pointer from another in
3109 an arm of an if-expression whose if-part is not a constant
3111 const char *g = "string";
3112 ccp = &g + (g ? g-g : 0);
3113 /* HPUX 7.0 cc rejects these. */
3116 ccp = (char const *const *) p;
3117 { /* SCO 3.2v4 cc rejects this. */
3119 char const *s = 0 ? (char *) 0 : (char const *) 0;
3123 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3125 const int *foo = &x[0];
3128 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3129 typedef const int *iptr;
3133 { /* AIX XL C 1.02.0.0 rejects this saying
3134 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3135 struct s { int j; const int *ap[3]; };
3136 struct s *b; b->j = 5;
3138 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3147 rm -f conftest.$ac_objext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149 (eval $ac_compile) 2>conftest.er1
3151 grep -v '^ *+' conftest.er1 >conftest.err
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_c_werror_flag"
3157 || test ! -s conftest.err'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; } &&
3163 { ac_try='test -s conftest.$ac_objext'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3178 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3179 echo "${ECHO_T}$ac_cv_c_const" >&6
3180 if test $ac_cv_c_const = no; then
3182 cat >>confdefs.h <<\_ACEOF
3188 echo "$as_me:$LINENO: checking for inline" >&5
3189 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3190 if test "${ac_cv_c_inline+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 for ac_kw in inline __inline__ __inline; do
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3203 static $ac_kw foo_t static_foo () {return 0; }
3204 $ac_kw foo_t foo () {return 0; }
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>conftest.er1
3212 grep -v '^ *+' conftest.er1 >conftest.err
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try='test -z "$ac_c_werror_flag"
3218 || test ! -s conftest.err'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; } &&
3224 { ac_try='test -s conftest.$ac_objext'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; }; then
3230 ac_cv_c_inline=$ac_kw; break
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3240 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3241 echo "${ECHO_T}$ac_cv_c_inline" >&6
3244 case $ac_cv_c_inline in
3247 case $ac_cv_c_inline in
3249 *) ac_val=$ac_cv_c_inline;;
3251 cat >>confdefs.h <<_ACEOF
3253 #define inline $ac_val
3261 ## ----------------------- ##
3262 ## Libtool initialisation. ##
3263 ## ----------------------- ##
3266 # Check whether --enable-shared or --disable-shared was given.
3267 if test "${enable_shared+set}" = set; then
3268 enableval="$enable_shared"
3269 p=${PACKAGE-default}
3271 yes) enable_shared=yes ;;
3272 no) enable_shared=no ;;
3275 # Look at the argument we got. We use all the common list separators.
3276 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3277 for pkg in $enableval; do
3279 if test "X$pkg" = "X$p"; then
3290 # Check whether --enable-static or --disable-static was given.
3291 if test "${enable_static+set}" = set; then
3292 enableval="$enable_static"
3293 p=${PACKAGE-default}
3295 yes) enable_static=yes ;;
3296 no) enable_static=no ;;
3299 # Look at the argument we got. We use all the common list separators.
3300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3301 for pkg in $enableval; do
3303 if test "X$pkg" = "X$p"; then
3314 # Check whether --enable-fast-install or --disable-fast-install was given.
3315 if test "${enable_fast_install+set}" = set; then
3316 enableval="$enable_fast_install"
3317 p=${PACKAGE-default}
3319 yes) enable_fast_install=yes ;;
3320 no) enable_fast_install=no ;;
3322 enable_fast_install=no
3323 # Look at the argument we got. We use all the common list separators.
3324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3325 for pkg in $enableval; do
3327 if test "X$pkg" = "X$p"; then
3328 enable_fast_install=yes
3335 enable_fast_install=yes
3338 # Make sure we can run config.sub.
3339 $ac_config_sub sun4 >/dev/null 2>&1 ||
3340 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3341 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3342 { (exit 1); exit 1; }; }
3344 echo "$as_me:$LINENO: checking build system type" >&5
3345 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3346 if test "${ac_cv_build+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 ac_cv_build_alias=$build_alias
3350 test -z "$ac_cv_build_alias" &&
3351 ac_cv_build_alias=`$ac_config_guess`
3352 test -z "$ac_cv_build_alias" &&
3353 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3354 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3355 { (exit 1); exit 1; }; }
3356 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3357 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3358 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3359 { (exit 1); exit 1; }; }
3362 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3363 echo "${ECHO_T}$ac_cv_build" >&6
3365 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3366 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3367 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3370 echo "$as_me:$LINENO: checking host system type" >&5
3371 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3372 if test "${ac_cv_host+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 ac_cv_host_alias=$host_alias
3376 test -z "$ac_cv_host_alias" &&
3377 ac_cv_host_alias=$ac_cv_build_alias
3378 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3380 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3381 { (exit 1); exit 1; }; }
3384 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3385 echo "${ECHO_T}$ac_cv_host" >&6
3387 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3388 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3389 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3392 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3393 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3394 if test "${lt_cv_path_SED+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 # Loop through the user's path and test for sed and gsed.
3398 # Then use that list of sed's as ones to test for truncation.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for lt_ac_prog in sed gsed; do
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3407 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3414 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3415 # along with /bin/sed that truncates output.
3416 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3417 test ! -f $lt_ac_sed && break
3418 cat /dev/null > conftest.in
3420 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3421 # Check for GNU sed and select it if it is found.
3422 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3423 lt_cv_path_SED=$lt_ac_sed
3427 cat conftest.in conftest.in >conftest.tmp
3428 mv conftest.tmp conftest.in
3429 cp conftest.in conftest.nl
3431 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3432 cmp -s conftest.out conftest.nl || break
3433 # 10000 chars as input seems more than enough
3434 test $lt_ac_count -gt 10 && break
3435 lt_ac_count=`expr $lt_ac_count + 1`
3436 if test $lt_ac_count -gt $lt_ac_max; then
3437 lt_ac_max=$lt_ac_count
3438 lt_cv_path_SED=$lt_ac_sed
3446 echo "$as_me:$LINENO: result: $SED" >&5
3447 echo "${ECHO_T}$SED" >&6
3449 echo "$as_me:$LINENO: checking for egrep" >&5
3450 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3451 if test "${ac_cv_prog_egrep+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3455 then ac_cv_prog_egrep='grep -E'
3456 else ac_cv_prog_egrep='egrep'
3459 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3460 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3461 EGREP=$ac_cv_prog_egrep
3465 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3466 if test "${with_gnu_ld+set}" = set; then
3467 withval="$with_gnu_ld"
3468 test "$withval" = no || with_gnu_ld=yes
3473 if test "$GCC" = yes; then
3474 # Check if gcc -print-prog-name=ld gives a path.
3475 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3476 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3479 # gcc leaves a trailing carriage return which upsets mingw
3480 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3482 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3485 # Accept absolute paths.
3487 re_direlt='/[^/][^/]*/\.\./'
3488 # Canonicalize the pathname of ld
3489 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3490 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3491 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3493 test -z "$LD" && LD="$ac_prog"
3496 # If it fails, then pretend we aren't using GCC.
3500 # If it is relative, then search for the first ld in PATH.
3504 elif test "$with_gnu_ld" = yes; then
3505 echo "$as_me:$LINENO: checking for GNU ld" >&5
3506 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3508 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3509 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3511 if test "${lt_cv_path_LD+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 if test -z "$LD"; then
3515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3516 for ac_dir in $PATH; do
3518 test -z "$ac_dir" && ac_dir=.
3519 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3520 lt_cv_path_LD="$ac_dir/$ac_prog"
3521 # Check to see if the program is GNU ld. I'd rather use --version,
3522 # but apparently some GNU ld's only accept -v.
3523 # Break only if it was the GNU/non-GNU ld that we prefer.
3524 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3525 *GNU* | *'with BFD'*)
3526 test "$with_gnu_ld" != no && break
3529 test "$with_gnu_ld" != yes && break
3536 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3541 if test -n "$LD"; then
3542 echo "$as_me:$LINENO: result: $LD" >&5
3543 echo "${ECHO_T}$LD" >&6
3545 echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3548 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3549 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3550 { (exit 1); exit 1; }; }
3551 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3552 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3553 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3557 case `$LD -v 2>&1 </dev/null` in
3558 *GNU* | *'with BFD'*)
3559 lt_cv_prog_gnu_ld=yes
3562 lt_cv_prog_gnu_ld=no
3566 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3567 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3568 with_gnu_ld=$lt_cv_prog_gnu_ld
3571 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3572 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3573 if test "${lt_cv_ld_reload_flag+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 lt_cv_ld_reload_flag='-r'
3578 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3579 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3580 reload_flag=$lt_cv_ld_reload_flag
3581 case $reload_flag in
3583 *) reload_flag=" $reload_flag" ;;
3585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3588 if test "$GCC" = yes; then
3589 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3591 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3596 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3597 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3598 if test "${lt_cv_path_NM+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 if test -n "$NM"; then
3602 # Let the user override the test.
3605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3606 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3608 test -z "$ac_dir" && ac_dir=.
3609 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3610 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3611 # Check to see if the nm accepts a BSD-compat flag.
3612 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3613 # nm: unknown option "B" ignored
3614 # Tru64's nm complains that /dev/null is an invalid object file
3615 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3616 */dev/null* | *'Invalid file or object type'*)
3617 lt_cv_path_NM="$tmp_nm -B"
3621 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3623 lt_cv_path_NM="$tmp_nm -p"
3627 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3628 continue # so that we can try to find one that supports BSD flags
3635 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3638 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3639 echo "${ECHO_T}$lt_cv_path_NM" >&6
3642 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3643 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3645 if test "$LN_S" = "ln -s"; then
3646 echo "$as_me:$LINENO: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6
3649 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3650 echo "${ECHO_T}no, using $LN_S" >&6
3653 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3654 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3655 if test "${lt_cv_deplibs_check_method+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 lt_cv_file_magic_cmd='$MAGIC_CMD'
3659 lt_cv_file_magic_test_file=
3660 lt_cv_deplibs_check_method='unknown'
3661 # Need to set the preceding variable on all platforms that support
3662 # interlibrary dependencies.
3663 # 'none' -- dependencies not supported.
3664 # `unknown' -- same as none, but documents that we really don't know.
3665 # 'pass_all' -- all dependencies passed with no checks.
3666 # 'test_compile' -- check by making test program.
3667 # 'file_magic [[regex]]' -- check by looking for files in library path
3668 # which responds to the $file_magic_cmd with a given extended regex.
3669 # If you have `file' or equivalent on your system and you're not sure
3670 # whether `pass_all' will *always* work, you probably want this one.
3674 lt_cv_deplibs_check_method=pass_all
3678 lt_cv_deplibs_check_method=pass_all
3682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3683 lt_cv_file_magic_cmd='/usr/bin/file -L'
3684 lt_cv_file_magic_test_file=/shlib/libc.so
3688 # func_win32_libid is a shell function defined in ltmain.sh
3689 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3690 lt_cv_file_magic_cmd='func_win32_libid'
3694 # Base MSYS/MinGW do not provide the 'file' command needed by
3695 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3696 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3697 lt_cv_file_magic_cmd='$OBJDUMP -f'
3700 darwin* | rhapsody*)
3701 lt_cv_deplibs_check_method=pass_all
3704 freebsd* | kfreebsd*-gnu)
3705 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3708 # Not sure whether the presence of OpenBSD here was a mistake.
3709 # Let's accept both of them until this is cleared up.
3710 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3711 lt_cv_file_magic_cmd=/usr/bin/file
3712 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3716 lt_cv_deplibs_check_method=pass_all
3721 lt_cv_deplibs_check_method=pass_all
3724 hpux10.20* | hpux11*)
3725 lt_cv_file_magic_cmd=/usr/bin/file
3728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3729 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3732 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]'
3733 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3736 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3737 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3742 irix5* | irix6* | nonstopux*)
3744 *-32|*"-32 ") libmagic=32-bit;;
3745 *-n32|*"-n32 ") libmagic=N32;;
3746 *-64|*"-64 ") libmagic=64-bit;;
3747 *) libmagic=never-match;;
3749 lt_cv_deplibs_check_method=pass_all
3752 # This must be Linux ELF.
3754 lt_cv_deplibs_check_method=pass_all
3758 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3767 lt_cv_file_magic_cmd=/usr/bin/file
3768 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3772 lt_cv_deplibs_check_method=unknown
3776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3777 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3783 osf3* | osf4* | osf5*)
3784 lt_cv_deplibs_check_method=pass_all
3788 lt_cv_deplibs_check_method=pass_all
3792 lt_cv_deplibs_check_method=pass_all
3795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3796 case $host_vendor in
3798 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]'
3799 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3802 lt_cv_deplibs_check_method=pass_all
3805 lt_cv_file_magic_cmd='/bin/file'
3806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3809 lt_cv_file_magic_cmd='/bin/file'
3810 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3811 lt_cv_file_magic_test_file=/lib/libc.so
3814 lt_cv_deplibs_check_method=pass_all
3819 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3820 lt_cv_deplibs_check_method=pass_all
3825 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3826 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3827 file_magic_cmd=$lt_cv_file_magic_cmd
3828 deplibs_check_method=$lt_cv_deplibs_check_method
3829 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3834 # If no C compiler was specified, use CC.
3837 # Allow CC to be a program name with arguments.
3840 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3841 if test "${enable_libtool_lock+set}" = set; then
3842 enableval="$enable_libtool_lock"
3845 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3847 # Some flags need to be propagated to the compiler or linker for good
3851 # Find out which ABI we are using.
3852 echo 'int i;' > conftest.$ac_ext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; then
3858 case `/usr/bin/file conftest.$ac_objext` in
3870 # Find out which ABI we are using.
3871 echo '#line 3871 "configure"' > conftest.$ac_ext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; then
3877 if test "$lt_cv_prog_gnu_ld" = yes; then
3878 case `/usr/bin/file conftest.$ac_objext` in
3880 LD="${LD-ld} -melf32bsmip"
3883 LD="${LD-ld} -melf32bmipn32"
3886 LD="${LD-ld} -melf64bmip"
3890 case `/usr/bin/file conftest.$ac_objext` in
3906 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3907 # Find out which ABI we are using.
3908 echo 'int i;' > conftest.$ac_ext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; then
3914 case "`/usr/bin/file conftest.o`" in
3918 LD="${LD-ld} -m elf_i386"
3920 ppc64-*linux*|powerpc64-*linux*)
3921 LD="${LD-ld} -m elf32ppclinux"
3924 LD="${LD-ld} -m elf_s390"
3927 LD="${LD-ld} -m elf32_sparc"
3934 LD="${LD-ld} -m elf_x86_64"
3936 ppc*-*linux*|powerpc*-*linux*)
3937 LD="${LD-ld} -m elf64ppc"
3940 LD="${LD-ld} -m elf64_s390"
3943 LD="${LD-ld} -m elf64_sparc"
3953 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3954 SAVE_CFLAGS="$CFLAGS"
3955 CFLAGS="$CFLAGS -belf"
3956 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3957 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3958 if test "${lt_cv_cc_needs_belf+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967 cat >conftest.$ac_ext <<_ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3982 rm -f conftest.$ac_objext conftest$ac_exeext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3984 (eval $ac_link) 2>conftest.er1
3986 grep -v '^ *+' conftest.er1 >conftest.err
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -z "$ac_c_werror_flag"
3992 || test ! -s conftest.err'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; } &&
3998 { ac_try='test -s conftest$ac_exeext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 lt_cv_cc_needs_belf=yes
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 lt_cv_cc_needs_belf=no
4011 rm -f conftest.err conftest.$ac_objext \
4012 conftest$ac_exeext conftest.$ac_ext
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4021 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4022 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4023 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4024 CFLAGS="$SAVE_CFLAGS"
4027 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4028 if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if test -n "$DLLTOOL"; then
4037 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 DLLTOOL=$ac_cv_prog_DLLTOOL
4056 if test -n "$DLLTOOL"; then
4057 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4058 echo "${ECHO_T}$DLLTOOL" >&6
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4065 if test -z "$ac_cv_prog_DLLTOOL"; then
4066 ac_ct_DLLTOOL=$DLLTOOL
4067 # Extract the first word of "dlltool", so it can be a program name with args.
4068 set dummy dlltool; ac_word=$2
4069 echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 if test -n "$ac_ct_DLLTOOL"; then
4075 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4094 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4095 if test -n "$ac_ct_DLLTOOL"; then
4096 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4097 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4103 DLLTOOL=$ac_ct_DLLTOOL
4105 DLLTOOL="$ac_cv_prog_DLLTOOL"
4108 if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}as; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_prog_AS+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 if test -n "$AS"; then
4117 ac_cv_prog_AS="$AS" # Let the user override the test.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_AS="${ac_tool_prefix}as"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 if test -n "$AS"; then
4137 echo "$as_me:$LINENO: result: $AS" >&5
4138 echo "${ECHO_T}$AS" >&6
4140 echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4145 if test -z "$ac_cv_prog_AS"; then
4147 # Extract the first word of "as", so it can be a program name with args.
4148 set dummy as; ac_word=$2
4149 echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 if test -n "$ac_ct_AS"; then
4155 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_ac_ct_AS="as"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4174 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4175 if test -n "$ac_ct_AS"; then
4176 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4177 echo "${ECHO_T}$ac_ct_AS" >&6
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4188 if test -n "$ac_tool_prefix"; then
4189 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4190 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4191 echo "$as_me:$LINENO: checking for $ac_word" >&5
4192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4193 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 if test -n "$OBJDUMP"; then
4197 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 OBJDUMP=$ac_cv_prog_OBJDUMP
4216 if test -n "$OBJDUMP"; then
4217 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4218 echo "${ECHO_T}$OBJDUMP" >&6
4220 echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4225 if test -z "$ac_cv_prog_OBJDUMP"; then
4226 ac_ct_OBJDUMP=$OBJDUMP
4227 # Extract the first word of "objdump", so it can be a program name with args.
4228 set dummy objdump; ac_word=$2
4229 echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 if test -n "$ac_ct_OBJDUMP"; then
4235 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4254 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4255 if test -n "$ac_ct_OBJDUMP"; then
4256 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4257 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4259 echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4263 OBJDUMP=$ac_ct_OBJDUMP
4265 OBJDUMP="$ac_cv_prog_OBJDUMP"
4272 need_locks="$enable_libtool_lock"
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4281 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4282 # On Suns, sometimes $CPP names a directory.
4283 if test -n "$CPP" && test -d "$CPP"; then
4286 if test -z "$CPP"; then
4287 if test "${ac_cv_prog_CPP+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 # Double quotes because CPP needs to be expanded
4291 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4294 for ac_c_preproc_warn_flag in '' yes
4296 # Use a header file that comes with gcc, so configuring glibc
4297 # with a fresh cross-compiler works.
4298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4299 # <limits.h> exists even on freestanding compilers.
4300 # On the NeXT, cc -E runs the code through the compiler's parser,
4301 # not just through cpp. "Syntax error" is here to catch this case.
4302 cat >conftest.$ac_ext <<_ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4309 # include <limits.h>
4311 # include <assert.h>
4315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4318 grep -v '^ *+' conftest.er1 >conftest.err
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } >/dev/null; then
4323 if test -s conftest.err; then
4324 ac_cpp_err=$ac_c_preproc_warn_flag
4325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4332 if test -z "$ac_cpp_err"; then
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 # Broken: fails on valid input.
4341 rm -f conftest.err conftest.$ac_ext
4343 # OK, works on sane cases. Now check whether non-existent headers
4344 # can be detected and how.
4345 cat >conftest.$ac_ext <<_ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 #include <ac_nonexistent.h>
4353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4356 grep -v '^ *+' conftest.er1 >conftest.err
4358 cat conftest.err >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } >/dev/null; then
4361 if test -s conftest.err; then
4362 ac_cpp_err=$ac_c_preproc_warn_flag
4363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4370 if test -z "$ac_cpp_err"; then
4371 # Broken: success on invalid input.
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4377 # Passes both tests.
4381 rm -f conftest.err conftest.$ac_ext
4384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4385 rm -f conftest.err conftest.$ac_ext
4386 if $ac_preproc_ok; then
4398 echo "$as_me:$LINENO: result: $CPP" >&5
4399 echo "${ECHO_T}$CPP" >&6
4401 for ac_c_preproc_warn_flag in '' yes
4403 # Use a header file that comes with gcc, so configuring glibc
4404 # with a fresh cross-compiler works.
4405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406 # <limits.h> exists even on freestanding compilers.
4407 # On the NeXT, cc -E runs the code through the compiler's parser,
4408 # not just through cpp. "Syntax error" is here to catch this case.
4409 cat >conftest.$ac_ext <<_ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4416 # include <limits.h>
4418 # include <assert.h>
4422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4425 grep -v '^ *+' conftest.er1 >conftest.err
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } >/dev/null; then
4430 if test -s conftest.err; then
4431 ac_cpp_err=$ac_c_preproc_warn_flag
4432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4439 if test -z "$ac_cpp_err"; then
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 # Broken: fails on valid input.
4448 rm -f conftest.err conftest.$ac_ext
4450 # OK, works on sane cases. Now check whether non-existent headers
4451 # can be detected and how.
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <ac_nonexistent.h>
4460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4463 grep -v '^ *+' conftest.er1 >conftest.err
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev/null; then
4468 if test -s conftest.err; then
4469 ac_cpp_err=$ac_c_preproc_warn_flag
4470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4477 if test -z "$ac_cpp_err"; then
4478 # Broken: success on invalid input.
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 # Passes both tests.
4488 rm -f conftest.err conftest.$ac_ext
4491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492 rm -f conftest.err conftest.$ac_ext
4493 if $ac_preproc_ok; then
4496 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4497 See \`config.log' for more details." >&5
4498 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4499 See \`config.log' for more details." >&2;}
4500 { (exit 1); exit 1; }; }
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4511 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4512 if test "${ac_cv_header_stdc+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 cat >conftest.$ac_ext <<_ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>conftest.er1
4538 grep -v '^ *+' conftest.er1 >conftest.err
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try='test -z "$ac_c_werror_flag"
4544 || test ! -s conftest.err'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 ac_cv_header_stdc=yes
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4561 ac_cv_header_stdc=no
4563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4565 if test $ac_cv_header_stdc = yes; then
4566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4567 cat >conftest.$ac_ext <<_ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4577 $EGREP "memchr" >/dev/null 2>&1; then
4580 ac_cv_header_stdc=no
4586 if test $ac_cv_header_stdc = yes; then
4587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4588 cat >conftest.$ac_ext <<_ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 $EGREP "free" >/dev/null 2>&1; then
4601 ac_cv_header_stdc=no
4607 if test $ac_cv_header_stdc = yes; then
4608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4609 if test "$cross_compiling" = yes; then
4612 cat >conftest.$ac_ext <<_ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4619 #if ((' ' & 0x0FF) == 0x020)
4620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4623 # define ISLOWER(c) \
4624 (('a' <= (c) && (c) <= 'i') \
4625 || ('j' <= (c) && (c) <= 'r') \
4626 || ('s' <= (c) && (c) <= 'z'))
4627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4635 for (i = 0; i < 256; i++)
4636 if (XOR (islower (i), ISLOWER (i))
4637 || toupper (i) != TOUPPER (i))
4642 rm -f conftest$ac_exeext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644 (eval $ac_link) 2>&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4655 echo "$as_me: program exited with status $ac_status" >&5
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4660 ac_cv_header_stdc=no
4662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4666 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4667 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4668 if test $ac_cv_header_stdc = yes; then
4670 cat >>confdefs.h <<\_ACEOF
4671 #define STDC_HEADERS 1
4676 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4686 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4687 inttypes.h stdint.h unistd.h
4689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4690 echo "$as_me:$LINENO: checking for $ac_header" >&5
4691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 cat >conftest.$ac_ext <<_ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 $ac_includes_default
4703 #include <$ac_header>
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_c_werror_flag"
4715 || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 eval "$as_ac_Header=yes"
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 eval "$as_ac_Header=no"
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4739 cat >>confdefs.h <<_ACEOF
4740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 for ac_header in dlfcn.h
4751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4753 echo "$as_me:$LINENO: checking for $ac_header" >&5
4754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4761 # Is the header compilable?
4762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 $ac_includes_default
4771 #include <$ac_header>
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -z "$ac_c_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 ac_header_compiler=yes
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4800 ac_header_compiler=no
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4804 echo "${ECHO_T}$ac_header_compiler" >&6
4806 # Is the header present?
4807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4815 #include <$ac_header>
4817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4818 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4825 if test -s conftest.err; then
4826 ac_cpp_err=$ac_c_preproc_warn_flag
4827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4834 if test -z "$ac_cpp_err"; then
4835 ac_header_preproc=yes
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 ac_header_preproc=no
4842 rm -f conftest.err conftest.$ac_ext
4843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4844 echo "${ECHO_T}$ac_header_preproc" >&6
4846 # So? What about this header?
4847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4853 ac_header_preproc=yes
4856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4870 ## ---------------------------------- ##
4871 ## Report this to bug-libtool@gnu.org ##
4872 ## ---------------------------------- ##
4875 sed "s/^/$as_me: WARNING: /" >&2
4878 echo "$as_me:$LINENO: checking for $ac_header" >&5
4879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 eval "$as_ac_Header=\$ac_header_preproc"
4885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4890 cat >>confdefs.h <<_ACEOF
4891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4899 ac_cpp='$CXXCPP $CPPFLAGS'
4900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4903 if test -n "$ac_tool_prefix"; then
4904 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4908 echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4910 if test "${ac_cv_prog_CXX+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 if test -n "$CXX"; then
4914 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 if test -n "$CXX"; then
4934 echo "$as_me:$LINENO: result: $CXX" >&5
4935 echo "${ECHO_T}$CXX" >&6
4937 echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6
4941 test -n "$CXX" && break
4944 if test -z "$CXX"; 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_prog", so it can be a program name with args.
4949 set dummy $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_ac_ct_CXX+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 if test -n "$ac_ct_CXX"; then
4956 ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$ac_prog"
4966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4975 if test -n "$ac_ct_CXX"; then
4976 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4977 echo "${ECHO_T}$ac_ct_CXX" >&6
4979 echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6
4983 test -n "$ac_ct_CXX" && break
4985 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4991 # Provide some information about the compiler.
4992 echo "$as_me:$LINENO:" \
4993 "checking for C++ compiler version" >&5
4994 ac_compiler=`set X $ac_compile; echo $2`
4995 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4996 (eval $ac_compiler --version </dev/null >&5) 2>&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }
5000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5001 (eval $ac_compiler -v </dev/null >&5) 2>&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }
5005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5006 (eval $ac_compiler -V </dev/null >&5) 2>&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }
5011 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5012 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5013 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 cat >conftest.$ac_ext <<_ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5034 rm -f conftest.$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036 (eval $ac_compile) 2>conftest.er1
5038 grep -v '^ *+' conftest.er1 >conftest.err
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -z "$ac_cxx_werror_flag"
5044 || test ! -s conftest.err'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; } &&
5050 { ac_try='test -s conftest.$ac_objext'
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; }; then
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5064 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5067 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5068 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5069 GXX=`test $ac_compiler_gnu = yes && echo yes`
5070 ac_test_CXXFLAGS=${CXXFLAGS+set}
5071 ac_save_CXXFLAGS=$CXXFLAGS
5073 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5074 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5075 if test "${ac_cv_prog_cxx_g+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 cat >conftest.$ac_ext <<_ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>conftest.er1
5097 grep -v '^ *+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_cxx_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_cv_prog_cxx_g=yes
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5124 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5125 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5126 if test "$ac_test_CXXFLAGS" = set; then
5127 CXXFLAGS=$ac_save_CXXFLAGS
5128 elif test $ac_cv_prog_cxx_g = yes; then
5129 if test "$GXX" = yes; then
5135 if test "$GXX" = yes; then
5141 for ac_declaration in \
5143 'extern "C" void std::exit (int) throw (); using std::exit;' \
5144 'extern "C" void std::exit (int); using std::exit;' \
5145 'extern "C" void exit (int) throw ();' \
5146 'extern "C" void exit (int);' \
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5165 rm -f conftest.$ac_objext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167 (eval $ac_compile) 2>conftest.er1
5169 grep -v '^ *+' conftest.er1 >conftest.err
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -z "$ac_cxx_werror_flag"
5175 || test ! -s conftest.err'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; } &&
5181 { ac_try='test -s conftest.$ac_objext'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5195 cat >conftest.$ac_ext <<_ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h. */
5210 rm -f conftest.$ac_objext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5212 (eval $ac_compile) 2>conftest.er1
5214 grep -v '^ *+' conftest.er1 >conftest.err
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -z "$ac_cxx_werror_flag"
5220 || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try='test -s conftest.$ac_objext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5241 if test -n "$ac_declaration"; then
5242 echo '#ifdef __cplusplus' >>confdefs.h
5243 echo $ac_declaration >>confdefs.h
5244 echo '#endif' >>confdefs.h
5248 ac_cpp='$CXXCPP $CPPFLAGS'
5249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5253 depcc="$CXX" am_compiler_list=
5255 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5256 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5257 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5261 # We make a subdir and do the tests there. Otherwise we can end up
5262 # making bogus files that we don't know about and never remove. For
5263 # instance it was reported that on HP-UX the gcc test will end up
5264 # making a dummy file named `D' -- because `-MD' means `put the output
5267 # Copy depcomp to subdir because otherwise we won't find it if we're
5268 # using a relative directory.
5269 cp "$am_depcomp" conftest.dir
5271 # We will build objects and dependencies in a subdirectory because
5272 # it helps to detect inapplicable dependency modes. For instance
5273 # both Tru64's cc and ICC support -MD to output dependencies as a
5274 # side effect of compilation, but ICC will put the dependencies in
5275 # the current directory while Tru64 will put them in the object
5279 am_cv_CXX_dependencies_compiler_type=none
5280 if test "$am_compiler_list" = ""; then
5281 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5283 for depmode in $am_compiler_list; do
5284 # Setup a source with many dependencies, because some compilers
5285 # like to wrap large dependency lists on column 80 (with \), and
5286 # we should not choose a depcomp mode which is confused by this.
5288 # We need to recreate these files for each test, as the compiler may
5289 # overwrite some of them when testing with obscure command lines.
5290 # This happens at least with the AIX C compiler.
5292 for i in 1 2 3 4 5 6; do
5293 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5294 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5295 # Solaris 8's {/usr,}/bin/sh.
5296 touch sub/conftst$i.h
5298 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5302 # after this tag, mechanisms are not by side-effect, so they'll
5303 # only be used when explicitly requested
5304 if test "x$enable_dependency_tracking" = xyes; then
5312 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5313 # mode. It turns out that the SunPro C++ compiler does not properly
5314 # handle `-M -o', and we need to detect this.
5315 if depmode=$depmode \
5316 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5318 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5319 >/dev/null 2>conftest.err &&
5320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5321 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5323 # icc doesn't choke on unknown options, it will just issue warnings
5324 # or remarks (even with -Werror). So we grep stderr for any message
5325 # that says an option was ignored or not supported.
5326 # When given -MP, icc 7.0 and 7.1 complain thusly:
5327 # icc: Command line warning: ignoring option '-M'; no argument required
5328 # The diagnosis changed in icc 8.0:
5329 # icc: Command line remark: option '-MP' not supported
5330 if (grep 'ignoring option' conftest.err ||
5331 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5332 am_cv_CXX_dependencies_compiler_type=$depmode
5341 am_cv_CXX_dependencies_compiler_type=none
5345 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5346 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5347 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5352 test "x$enable_dependency_tracking" != xno \
5353 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5354 am__fastdepCXX_TRUE=
5355 am__fastdepCXX_FALSE='#'
5357 am__fastdepCXX_TRUE='#'
5358 am__fastdepCXX_FALSE=
5364 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5365 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5366 (test "X$CXX" != "Xg++"))) ; then
5368 ac_cpp='$CXXCPP $CPPFLAGS'
5369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5372 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5373 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5374 if test -z "$CXXCPP"; then
5375 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 # Double quotes because CXXCPP needs to be expanded
5379 for CXXCPP in "$CXX -E" "/lib/cpp"
5382 for ac_cxx_preproc_warn_flag in '' yes
5384 # Use a header file that comes with gcc, so configuring glibc
5385 # with a fresh cross-compiler works.
5386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387 # <limits.h> exists even on freestanding compilers.
5388 # On the NeXT, cc -E runs the code through the compiler's parser,
5389 # not just through cpp. "Syntax error" is here to catch this case.
5390 cat >conftest.$ac_ext <<_ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5397 # include <limits.h>
5399 # include <assert.h>
5403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5406 grep -v '^ *+' conftest.er1 >conftest.err
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } >/dev/null; then
5411 if test -s conftest.err; then
5412 ac_cpp_err=$ac_cxx_preproc_warn_flag
5413 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5420 if test -z "$ac_cpp_err"; then
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 # Broken: fails on valid input.
5429 rm -f conftest.err conftest.$ac_ext
5431 # OK, works on sane cases. Now check whether non-existent headers
5432 # can be detected and how.
5433 cat >conftest.$ac_ext <<_ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5439 #include <ac_nonexistent.h>
5441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5444 grep -v '^ *+' conftest.er1 >conftest.err
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } >/dev/null; then
5449 if test -s conftest.err; then
5450 ac_cpp_err=$ac_cxx_preproc_warn_flag
5451 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5458 if test -z "$ac_cpp_err"; then
5459 # Broken: success on invalid input.
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 # Passes both tests.
5469 rm -f conftest.err conftest.$ac_ext
5472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5473 rm -f conftest.err conftest.$ac_ext
5474 if $ac_preproc_ok; then
5479 ac_cv_prog_CXXCPP=$CXXCPP
5482 CXXCPP=$ac_cv_prog_CXXCPP
5484 ac_cv_prog_CXXCPP=$CXXCPP
5486 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5487 echo "${ECHO_T}$CXXCPP" >&6
5489 for ac_cxx_preproc_warn_flag in '' yes
5491 # Use a header file that comes with gcc, so configuring glibc
5492 # with a fresh cross-compiler works.
5493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5494 # <limits.h> exists even on freestanding compilers.
5495 # On the NeXT, cc -E runs the code through the compiler's parser,
5496 # not just through cpp. "Syntax error" is here to catch this case.
5497 cat >conftest.$ac_ext <<_ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5504 # include <limits.h>
5506 # include <assert.h>
5510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5513 grep -v '^ *+' conftest.er1 >conftest.err
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } >/dev/null; then
5518 if test -s conftest.err; then
5519 ac_cpp_err=$ac_cxx_preproc_warn_flag
5520 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5527 if test -z "$ac_cpp_err"; then
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 # Broken: fails on valid input.
5536 rm -f conftest.err conftest.$ac_ext
5538 # OK, works on sane cases. Now check whether non-existent headers
5539 # can be detected and how.
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <ac_nonexistent.h>
5548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5551 grep -v '^ *+' conftest.er1 >conftest.err
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev/null; then
5556 if test -s conftest.err; then
5557 ac_cpp_err=$ac_cxx_preproc_warn_flag
5558 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5565 if test -z "$ac_cpp_err"; then
5566 # Broken: success on invalid input.
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 # Passes both tests.
5576 rm -f conftest.err conftest.$ac_ext
5579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5580 rm -f conftest.err conftest.$ac_ext
5581 if $ac_preproc_ok; then
5584 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5585 See \`config.log' for more details." >&5
5586 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5587 See \`config.log' for more details." >&2;}
5588 { (exit 1); exit 1; }; }
5592 ac_cpp='$CXXCPP $CPPFLAGS'
5593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5601 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5602 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5604 if test -n "$ac_tool_prefix"; then
5605 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5609 echo "$as_me:$LINENO: checking for $ac_word" >&5
5610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5611 if test "${ac_cv_prog_F77+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 if test -n "$F77"; then
5615 ac_cv_prog_F77="$F77" # Let the user override the test.
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 if test -n "$F77"; then
5635 echo "$as_me:$LINENO: result: $F77" >&5
5636 echo "${ECHO_T}$F77" >&6
5638 echo "$as_me:$LINENO: result: no" >&5
5639 echo "${ECHO_T}no" >&6
5642 test -n "$F77" && break
5645 if test -z "$F77"; then
5647 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5649 # Extract the first word of "$ac_prog", so it can be a program name with args.
5650 set dummy $ac_prog; ac_word=$2
5651 echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5653 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 if test -n "$ac_ct_F77"; then
5657 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666 ac_cv_prog_ac_ct_F77="$ac_prog"
5667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5676 if test -n "$ac_ct_F77"; then
5677 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5678 echo "${ECHO_T}$ac_ct_F77" >&6
5680 echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6
5684 test -n "$ac_ct_F77" && break
5691 # Provide some information about the compiler.
5692 echo "$as_me:5692:" \
5693 "checking for Fortran 77 compiler version" >&5
5694 ac_compiler=`set X $ac_compile; echo $2`
5695 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5696 (eval $ac_compiler --version </dev/null >&5) 2>&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }
5700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5701 (eval $ac_compiler -v </dev/null >&5) 2>&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }
5705 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5706 (eval $ac_compiler -V </dev/null >&5) 2>&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }
5712 # If we don't use `.F' as extension, the preprocessor is not run on the
5713 # input file. (Note that this only needs to work for GNU compilers.)
5716 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5717 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5718 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 cat >conftest.$ac_ext <<_ACEOF
5729 rm -f conftest.$ac_objext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731 (eval $ac_compile) 2>conftest.er1
5733 grep -v '^ *+' conftest.er1 >conftest.err
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -z "$ac_f77_werror_flag"
5739 || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5759 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5762 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5763 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5765 ac_test_FFLAGS=${FFLAGS+set}
5766 ac_save_FFLAGS=$FFLAGS
5768 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5769 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5770 if test "${ac_cv_prog_f77_g+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5779 rm -f conftest.$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>conftest.er1
5783 grep -v '^ *+' conftest.er1 >conftest.err
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -z "$ac_f77_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest.$ac_objext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_prog_f77_g=yes
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5812 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5813 if test "$ac_test_FFLAGS" = set; then
5814 FFLAGS=$ac_save_FFLAGS
5815 elif test $ac_cv_prog_f77_g = yes; then
5816 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5822 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5829 G77=`test $ac_compiler_gnu = yes && echo yes`
5831 ac_cpp='$CPP $CPPFLAGS'
5832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5838 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5840 # find the maximum length of command line arguments
5841 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5842 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5843 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 # On DJGPP, this test can blow up pretty badly due to problems in libc
5852 # (any single argument exceeding 2000 bytes causes a buffer overrun
5853 # during glob expansion). Even if it were fixed, the result of this
5854 # check would be larger than it should be.
5855 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5859 # Under GNU Hurd, this test is not required because there is
5860 # no limit to the length of command line arguments.
5861 # Libtool will interpret -1 as no limit whatsoever
5862 lt_cv_sys_max_cmd_len=-1;
5866 # On Win9x/ME, this test blows up -- it succeeds, but takes
5867 # about 5 minutes as the teststring grows exponentially.
5868 # Worse, since 9x/ME are not pre-emptively multitasking,
5869 # you end up with a "frozen" computer, even though with patience
5870 # the test eventually succeeds (with a max line length of 256k).
5871 # Instead, let's just punt: use the minimum linelength reported by
5872 # all of the supported platforms: 8192 (on NT/2K/XP).
5873 lt_cv_sys_max_cmd_len=8192;
5877 # On AmigaOS with pdksh, this test takes hours, literally.
5878 # So we just punt and use a minimum line length of 8192.
5879 lt_cv_sys_max_cmd_len=8192;
5882 netbsd* | freebsd* | openbsd* | darwin* )
5883 # This has been around since 386BSD, at least. Likely further.
5884 if test -x /sbin/sysctl; then
5885 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5886 elif test -x /usr/sbin/sysctl; then
5887 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5889 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5891 # And add a safety zone
5892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5896 # If test is not a shell built-in, we'll probably end up computing a
5897 # maximum length that is only half of the actual maximum length, but
5899 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5900 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5901 = "XX$teststring") >/dev/null 2>&1 &&
5902 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5903 lt_cv_sys_max_cmd_len=$new_result &&
5904 test $i != 17 # 1/2 MB should be enough
5907 teststring=$teststring$teststring
5910 # Add a significant safety factor because C++ compilers can tack on massive
5911 # amounts of additional arguments before passing them to the linker.
5912 # It appears as though 1/2 is a usable value.
5913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5919 if test -n $lt_cv_sys_max_cmd_len ; then
5920 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5921 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5923 echo "$as_me:$LINENO: result: none" >&5
5924 echo "${ECHO_T}none" >&6
5930 # Check for command to grab the raw symbol name followed by C symbol from nm.
5931 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5932 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5933 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 # These are sane defaults that work on at least a few old systems.
5938 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5940 # Character class describing NM global symbol codes.
5941 symcode='[BCDEGRST]'
5943 # Regexp to match symbols that can be accessed directly from C.
5944 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5946 # Transform the above into a raw symbol and a C symbol.
5947 symxfrm='\1 \2\3 \3'
5949 # Transform an extracted symbol line into a proper C declaration
5950 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5952 # Transform an extracted symbol line into symbol name and symbol address
5953 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'"
5955 # Define system-specific variables.
5960 cygwin* | mingw* | pw32*)
5961 symcode='[ABCDGISTW]'
5963 hpux*) # Its linker distinguishes data from code symbols
5964 if test "$host_cpu" = ia64; then
5965 symcode='[ABCDEGRST]'
5967 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5968 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'"
5971 if test "$host_cpu" = ia64; then
5972 symcode='[ABCDGIRSTW]'
5973 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5974 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'"
5978 symcode='[BCDEGRST]'
5981 symcode='[BCDEGQRST]'
5991 # Handle CRLF in mingw tool chain
5995 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5999 # If we're using GNU nm, then use its standard symbol codes.
6000 case `$NM -V 2>&1` in
6001 *GNU* | *'with BFD'*)
6002 symcode='[ABCDGIRSTW]' ;;
6005 # Try without a prefix undercore, then with it.
6006 for ac_symprfx in "" "_"; do
6008 # Write the raw and C identifiers.
6009 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6011 # Check to see that the pipe works correctly.
6015 cat > conftest.$ac_ext <<EOF
6020 void nm_test_func(){}
6024 int main(){nm_test_var='a';nm_test_func();return(0);}
6027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028 (eval $ac_compile) 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; then
6032 # Now try to grab the symbols.
6034 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6035 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && test -s "$nlist"; then
6039 # Try sorting and uniquifying the output.
6040 if sort "$nlist" | uniq > "$nlist"T; then
6041 mv -f "$nlist"T "$nlist"
6046 # Make sure that we snagged all the symbols we need.
6047 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6048 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6049 cat <<EOF > conftest.$ac_ext
6055 # Now generate the symbol file.
6056 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6058 cat <<EOF >> conftest.$ac_ext
6059 #if defined (__STDC__) && __STDC__
6060 # define lt_ptr_t void *
6062 # define lt_ptr_t char *
6066 /* The mapping between symbol names and symbols. */
6071 lt_preloaded_symbols[] =
6074 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6075 cat <<\EOF >> conftest.$ac_ext
6083 # Now try linking the two files.
6084 mv conftest.$ac_objext conftstm.$ac_objext
6085 lt_save_LIBS="$LIBS"
6086 lt_save_CFLAGS="$CFLAGS"
6087 LIBS="conftstm.$ac_objext"
6088 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6090 (eval $ac_link) 2>&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6096 LIBS="$lt_save_LIBS"
6097 CFLAGS="$lt_save_CFLAGS"
6099 echo "cannot find nm_test_func in $nlist" >&5
6102 echo "cannot find nm_test_var in $nlist" >&5
6105 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6108 echo "$progname: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6111 rm -f conftest* conftst*
6113 # Do not use the global_symbol_pipe unless it works.
6114 if test "$pipe_works" = yes; then
6117 lt_cv_sys_global_symbol_pipe=
6123 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6124 lt_cv_sys_global_symbol_to_cdecl=
6126 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6127 echo "$as_me:$LINENO: result: failed" >&5
6128 echo "${ECHO_T}failed" >&6
6130 echo "$as_me:$LINENO: result: ok" >&5
6131 echo "${ECHO_T}ok" >&6
6134 echo "$as_me:$LINENO: checking for objdir" >&5
6135 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6136 if test "${lt_cv_objdir+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 rm -f .libs 2>/dev/null
6140 mkdir .libs 2>/dev/null
6141 if test -d .libs; then
6144 # MS-DOS does not allow filenames that begin with a dot.
6147 rmdir .libs 2>/dev/null
6149 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6150 echo "${ECHO_T}$lt_cv_objdir" >&6
6151 objdir=$lt_cv_objdir
6159 # AIX sometimes has problems with the GCC collect2 program. For some
6160 # reason, if we set the COLLECT_NAMES environment variable, the problems
6161 # vanish in a puff of smoke.
6162 if test "X${COLLECT_NAMES+set}" != Xset; then
6164 export COLLECT_NAMES
6169 # Sed substitution that helps us do robust quoting. It backslashifies
6170 # metacharacters that are still active within double-quoted strings.
6171 Xsed='sed -e s/^X//'
6172 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6174 # Same as above, but do not quote variable references.
6175 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6177 # Sed substitution to delay expansion of an escaped shell variable in a
6178 # double_quote_subst'ed string.
6179 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6181 # Sed substitution to avoid accidental globbing in evaled expressions
6182 no_glob_subst='s/\*/\\\*/g'
6188 default_ofile=libtool
6189 can_build_shared=yes
6191 # All known linkers require a `.a' archive for static linking (except M$VC,
6192 # which needs '.lib').
6194 ltmain="$ac_aux_dir/ltmain.sh"
6195 ofile="$default_ofile"
6196 with_gnu_ld="$lt_cv_prog_gnu_ld"
6198 if test -n "$ac_tool_prefix"; then
6199 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6200 set dummy ${ac_tool_prefix}ar; ac_word=$2
6201 echo "$as_me:$LINENO: checking for $ac_word" >&5
6202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6203 if test "${ac_cv_prog_AR+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 if test -n "$AR"; then
6207 ac_cv_prog_AR="$AR" # Let the user override the test.
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216 ac_cv_prog_AR="${ac_tool_prefix}ar"
6217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 if test -n "$AR"; then
6227 echo "$as_me:$LINENO: result: $AR" >&5
6228 echo "${ECHO_T}$AR" >&6
6230 echo "$as_me:$LINENO: result: no" >&5
6231 echo "${ECHO_T}no" >&6
6235 if test -z "$ac_cv_prog_AR"; then
6237 # Extract the first word of "ar", so it can be a program name with args.
6238 set dummy ar; ac_word=$2
6239 echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6241 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 if test -n "$ac_ct_AR"; then
6245 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_ac_ct_AR="ar"
6255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6264 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6265 if test -n "$ac_ct_AR"; then
6266 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6267 echo "${ECHO_T}$ac_ct_AR" >&6
6269 echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6
6278 if test -n "$ac_tool_prefix"; then
6279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6281 echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6283 if test "${ac_cv_prog_RANLIB+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 if test -n "$RANLIB"; then
6287 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 RANLIB=$ac_cv_prog_RANLIB
6306 if test -n "$RANLIB"; then
6307 echo "$as_me:$LINENO: result: $RANLIB" >&5
6308 echo "${ECHO_T}$RANLIB" >&6
6310 echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6
6315 if test -z "$ac_cv_prog_RANLIB"; then
6316 ac_ct_RANLIB=$RANLIB
6317 # Extract the first word of "ranlib", so it can be a program name with args.
6318 set dummy ranlib; ac_word=$2
6319 echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6321 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 if test -n "$ac_ct_RANLIB"; then
6325 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_ac_ct_RANLIB="ranlib"
6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6344 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6345 if test -n "$ac_ct_RANLIB"; then
6346 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6347 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6349 echo "$as_me:$LINENO: result: no" >&5
6350 echo "${ECHO_T}no" >&6
6353 RANLIB=$ac_ct_RANLIB
6355 RANLIB="$ac_cv_prog_RANLIB"
6358 if test -n "$ac_tool_prefix"; then
6359 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}strip; ac_word=$2
6361 echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6363 if test "${ac_cv_prog_STRIP+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 if test -n "$STRIP"; then
6367 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 STRIP=$ac_cv_prog_STRIP
6386 if test -n "$STRIP"; then
6387 echo "$as_me:$LINENO: result: $STRIP" >&5
6388 echo "${ECHO_T}$STRIP" >&6
6390 echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6
6395 if test -z "$ac_cv_prog_STRIP"; then
6397 # Extract the first word of "strip", so it can be a program name with args.
6398 set dummy strip; ac_word=$2
6399 echo "$as_me:$LINENO: checking for $ac_word" >&5
6400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 if test -n "$ac_ct_STRIP"; then
6405 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_ac_ct_STRIP="strip"
6415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6425 if test -n "$ac_ct_STRIP"; then
6426 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6427 echo "${ECHO_T}$ac_ct_STRIP" >&6
6429 echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6
6435 STRIP="$ac_cv_prog_STRIP"
6440 old_CFLAGS="$CFLAGS"
6442 # Set sane defaults for various variables
6443 test -z "$AR" && AR=ar
6444 test -z "$AR_FLAGS" && AR_FLAGS=cru
6445 test -z "$AS" && AS=as
6446 test -z "$CC" && CC=cc
6447 test -z "$LTCC" && LTCC=$CC
6448 test -z "$DLLTOOL" && DLLTOOL=dlltool
6449 test -z "$LD" && LD=ld
6450 test -z "$LN_S" && LN_S="ln -s"
6451 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6452 test -z "$NM" && NM=nm
6453 test -z "$SED" && SED=sed
6454 test -z "$OBJDUMP" && OBJDUMP=objdump
6455 test -z "$RANLIB" && RANLIB=:
6456 test -z "$STRIP" && STRIP=:
6457 test -z "$ac_objext" && ac_objext=o
6459 # Determine commands to create old-style static archives.
6460 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6461 old_postinstall_cmds='chmod 644 $oldlib'
6462 old_postuninstall_cmds=
6464 if test -n "$RANLIB"; then
6467 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6470 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6473 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6476 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
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'
6735 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6736 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6737 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 lt_cv_prog_compiler_rtti_exceptions=no
6741 ac_outfile=conftest.$ac_objext
6742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6743 lt_compiler_flag="-fno-rtti -fno-exceptions"
6744 # Insert the option either (1) after the last *FLAGS variable, or
6745 # (2) before a word containing "conftest.", or (3) at the end.
6746 # Note that $ac_compile itself does not contain backslashes and begins
6747 # with a dollar sign (not a hyphen), so the echo should work correctly.
6748 # The option is referenced via a variable to avoid confusing sed.
6749 lt_compile=`echo "$ac_compile" | $SED \
6750 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6752 -e 's:$: $lt_compiler_flag:'`
6753 (eval echo "\"\$as_me:6753: $lt_compile\"" >&5)
6754 (eval "$lt_compile" 2>conftest.err)
6756 cat conftest.err >&5
6757 echo "$as_me:6757: \$? = $ac_status" >&5
6758 if (exit $ac_status) && test -s "$ac_outfile"; then
6759 # The compiler can only warn and ignore the option if not recognized
6760 # So say no if there are warnings
6761 if test ! -s conftest.err; then
6762 lt_cv_prog_compiler_rtti_exceptions=yes
6768 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6769 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6771 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6772 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6779 lt_prog_compiler_wl=
6780 lt_prog_compiler_pic=
6781 lt_prog_compiler_static=
6783 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6784 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6786 if test "$GCC" = yes; then
6787 lt_prog_compiler_wl='-Wl,'
6788 lt_prog_compiler_static='-static'
6792 # All AIX code is PIC.
6793 if test "$host_cpu" = ia64; then
6794 # AIX 5 now supports IA64 processor
6795 lt_prog_compiler_static='-Bstatic'
6800 # FIXME: we need at least 68020 code to build shared libraries, but
6801 # adding the `-m68020' flag to GCC prevents building anything better,
6803 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6806 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6807 # PIC is the default for these OSes.
6810 mingw* | pw32* | os2*)
6811 # This hack is so that the source file can tell whether it is being
6812 # built for inclusion in a dll (and should export symbols for example).
6813 lt_prog_compiler_pic='-DDLL_EXPORT'
6816 darwin* | rhapsody*)
6817 # PIC is the default on this platform
6818 # Common symbols not allowed in MH_DYLIB files
6819 lt_prog_compiler_pic='-fno-common'
6823 # Just because we use GCC doesn't mean we suddenly get shared libraries
6824 # on systems that don't support them.
6825 lt_prog_compiler_can_build_shared=no
6830 if test -d /usr/nec; then
6831 lt_prog_compiler_pic=-Kconform_pic
6836 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6843 lt_prog_compiler_pic='-fPIC'
6849 lt_prog_compiler_pic='-fPIC'
6853 # PORTME Check for flag to pass linker flags through the system compiler.
6856 lt_prog_compiler_wl='-Wl,'
6857 if test "$host_cpu" = ia64; then
6858 # AIX 5 now supports IA64 processor
6859 lt_prog_compiler_static='-Bstatic'
6861 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6865 # PIC is the default on this platform
6866 # Common symbols not allowed in MH_DYLIB files
6867 case "$cc_basename" in
6869 lt_prog_compiler_pic='-qnocommon'
6870 lt_prog_compiler_wl='-Wl,'
6875 mingw* | pw32* | os2*)
6876 # This hack is so that the source file can tell whether it is being
6877 # built for inclusion in a dll (and should export symbols for example).
6878 lt_prog_compiler_pic='-DDLL_EXPORT'
6881 hpux9* | hpux10* | hpux11*)
6882 lt_prog_compiler_wl='-Wl,'
6883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6890 lt_prog_compiler_pic='+Z'
6893 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6894 lt_prog_compiler_static='${wl}-a ${wl}archive'
6897 irix5* | irix6* | nonstopux*)
6898 lt_prog_compiler_wl='-Wl,'
6899 # PIC (with -KPIC) is the default.
6900 lt_prog_compiler_static='-non_shared'
6904 lt_prog_compiler_pic='-KPIC'
6905 lt_prog_compiler_static='-Bstatic'
6911 lt_prog_compiler_wl='-Wl,'
6912 lt_prog_compiler_pic='-KPIC'
6913 lt_prog_compiler_static='-static'
6916 lt_prog_compiler_wl='-Wl,'
6917 # All Alpha code is PIC.
6918 lt_prog_compiler_static='-non_shared'
6923 osf3* | osf4* | osf5*)
6924 lt_prog_compiler_wl='-Wl,'
6925 # All OSF/1 code is PIC.
6926 lt_prog_compiler_static='-non_shared'
6930 lt_prog_compiler_pic='-Kpic'
6931 lt_prog_compiler_static='-dn'
6935 lt_prog_compiler_wl='-Wl,'
6936 lt_prog_compiler_pic='-KPIC'
6937 lt_prog_compiler_static='-Bstatic'
6941 lt_prog_compiler_wl='-Qoption ld '
6942 lt_prog_compiler_pic='-PIC'
6943 lt_prog_compiler_static='-Bstatic'
6946 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6947 lt_prog_compiler_wl='-Wl,'
6948 lt_prog_compiler_pic='-KPIC'
6949 lt_prog_compiler_static='-Bstatic'
6953 if test -d /usr/nec ;then
6954 lt_prog_compiler_pic='-Kconform_pic'
6955 lt_prog_compiler_static='-Bstatic'
6960 lt_prog_compiler_pic='-pic'
6961 lt_prog_compiler_static='-Bstatic'
6965 lt_prog_compiler_can_build_shared=no
6970 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6971 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6974 # Check to make sure the PIC flag actually works.
6976 if test -n "$lt_prog_compiler_pic"; then
6978 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6979 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6980 if test "${lt_prog_compiler_pic_works+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 lt_prog_compiler_pic_works=no
6984 ac_outfile=conftest.$ac_objext
6985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6986 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6987 # Insert the option either (1) after the last *FLAGS variable, or
6988 # (2) before a word containing "conftest.", or (3) at the end.
6989 # Note that $ac_compile itself does not contain backslashes and begins
6990 # with a dollar sign (not a hyphen), so the echo should work correctly.
6991 # The option is referenced via a variable to avoid confusing sed.
6992 lt_compile=`echo "$ac_compile" | $SED \
6993 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6995 -e 's:$: $lt_compiler_flag:'`
6996 (eval echo "\"\$as_me:6996: $lt_compile\"" >&5)
6997 (eval "$lt_compile" 2>conftest.err)
6999 cat conftest.err >&5
7000 echo "$as_me:7000: \$? = $ac_status" >&5
7001 if (exit $ac_status) && test -s "$ac_outfile"; then
7002 # The compiler can only warn and ignore the option if not recognized
7003 # So say no if there are warnings
7004 if test ! -s conftest.err; then
7005 lt_prog_compiler_pic_works=yes
7011 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7012 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7014 if test x"$lt_prog_compiler_pic_works" = xyes; then
7015 case $lt_prog_compiler_pic in
7017 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7020 lt_prog_compiler_pic=
7021 lt_prog_compiler_can_build_shared=no
7026 # For platforms which do not support PIC, -DPIC is meaningless:
7028 lt_prog_compiler_pic=
7031 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7035 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7036 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7037 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 lt_cv_prog_compiler_c_o=no
7041 $rm -r conftest 2>/dev/null
7045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7047 lt_compiler_flag="-o out/conftest2.$ac_objext"
7048 # Insert the option either (1) after the last *FLAGS variable, or
7049 # (2) before a word containing "conftest.", or (3) at the end.
7050 # Note that $ac_compile itself does not contain backslashes and begins
7051 # with a dollar sign (not a hyphen), so the echo should work correctly.
7052 lt_compile=`echo "$ac_compile" | $SED \
7053 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7055 -e 's:$: $lt_compiler_flag:'`
7056 (eval echo "\"\$as_me:7056: $lt_compile\"" >&5)
7057 (eval "$lt_compile" 2>out/conftest.err)
7059 cat out/conftest.err >&5
7060 echo "$as_me:7060: \$? = $ac_status" >&5
7061 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7063 # The compiler can only warn and ignore the option if not recognized
7064 # So say no if there are warnings
7065 if test ! -s out/conftest.err; then
7066 lt_cv_prog_compiler_c_o=yes
7071 # SGI C++ compiler will create directory out/ii_files/ for
7072 # template instantiation
7073 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7074 $rm out/* && rmdir out
7080 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7081 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7084 hard_links="nottested"
7085 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7086 # do not overwrite the value of need_locks provided by the user
7087 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7088 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7093 ln conftest.a conftest.b 2>&5 || hard_links=no
7094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7095 echo "$as_me:$LINENO: result: $hard_links" >&5
7096 echo "${ECHO_T}$hard_links" >&6
7097 if test "$hard_links" = no; then
7098 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7099 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7106 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7107 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7110 allow_undefined_flag=
7111 enable_shared_with_static_runtimes=no
7113 archive_expsym_cmds=
7114 old_archive_From_new_cmds=
7115 old_archive_from_expsyms_cmds=
7116 export_dynamic_flag_spec=
7117 whole_archive_flag_spec=
7118 thread_safe_flag_spec=
7119 hardcode_libdir_flag_spec=
7120 hardcode_libdir_flag_spec_ld=
7121 hardcode_libdir_separator=
7124 hardcode_shlibpath_var=unsupported
7125 link_all_deplibs=unknown
7126 hardcode_automatic=no
7129 always_export_symbols=no
7130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7131 # include_expsyms should be a list of space-separated symbols to be *always*
7132 # included in the symbol list
7134 # exclude_expsyms can be an extended regexp of symbols to exclude
7135 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7136 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7137 # as well as any symbol that contains `d'.
7138 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7139 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7140 # platforms (ab)use it in PIC code, but their linkers get confused if
7141 # the symbol is explicitly referenced. Since portable code cannot
7142 # rely on this symbol name, it's probably fine to never include it in
7143 # preloaded symbol tables.
7144 extract_expsyms_cmds=
7147 cygwin* | mingw* | pw32*)
7148 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7149 # When not using gcc, we currently assume that we are using
7150 # Microsoft Visual C++.
7151 if test "$GCC" != yes; then
7161 if test "$with_gnu_ld" = yes; then
7162 # If archive_cmds runs LD, not CC, wlarc should be empty
7165 # See if GNU ld supports shared libraries.
7167 aix3* | aix4* | aix5*)
7168 # On AIX/PPC, the GNU linker is very broken
7169 if test "$host_cpu" != ia64; then
7173 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7174 *** to be unable to reliably create shared libraries on AIX.
7175 *** Therefore, libtool is disabling shared libraries support. If you
7176 *** really care for shared libraries, you may want to modify your PATH
7177 *** so that a non-GNU linker is found, and then restart.
7184 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)'
7185 hardcode_libdir_flag_spec='-L$libdir'
7186 hardcode_minus_L=yes
7188 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7189 # that the semantics of dynamic libraries on AmigaOS, at least up
7190 # to version 4, is to share data among multiple programs linked
7191 # with the same dynamic library. Since this doesn't match the
7192 # behavior of shared libraries on other platforms, we can't use
7198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7199 allow_undefined_flag=unsupported
7200 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7201 # support --undefined. This deserves some investigation. FIXME
7202 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7208 cygwin* | mingw* | pw32*)
7209 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7210 # as there is no search path for DLLs.
7211 hardcode_libdir_flag_spec='-L$libdir'
7212 allow_undefined_flag=unsupported
7213 always_export_symbols=no
7214 enable_shared_with_static_runtimes=yes
7215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7217 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7219 # If the export-symbols file already is a .def file (1st line
7220 # is EXPORTS), use it as is; otherwise, prepend...
7221 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7222 cp $export_symbols $output_objdir/$soname.def;
7224 echo EXPORTS > $output_objdir/$soname.def;
7225 cat $export_symbols >> $output_objdir/$soname.def;
7227 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7235 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7244 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7249 *** create shared libraries on Solaris systems. Therefore, libtool
7250 *** is disabling shared libraries support. We urge you to upgrade GNU
7251 *** binutils to release 2.9.1 or newer. Another option is to modify
7252 *** your PATH or compiler configuration so that the native linker is
7253 *** used, and then restart.
7256 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7265 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7268 hardcode_shlibpath_var=no
7272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7273 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7274 archive_cmds="$tmp_archive_cmds"
7275 supports_anon_versioning=no
7276 case `$LD -v 2>/dev/null` in
7277 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7278 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7279 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7280 *\ 2.11.*) ;; # other 2.11 versions
7281 *) supports_anon_versioning=yes ;;
7283 if test $supports_anon_versioning = yes; then
7284 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7285 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7286 $echo "local: *; };" >> $output_objdir/$libname.ver~
7287 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7289 archive_expsym_cmds="$tmp_archive_cmds"
7297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7306 if test "$ld_shlibs" = yes; then
7307 runpath_var=LD_RUN_PATH
7308 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7309 export_dynamic_flag_spec='${wl}--export-dynamic'
7310 # ancient GNU ld didn't support --whole-archive et. al.
7311 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7312 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7314 whole_archive_flag_spec=
7318 # PORTME fill in a description of your system's linker (not GNU ld)
7321 allow_undefined_flag=unsupported
7322 always_export_symbols=yes
7323 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'
7324 # Note: this linker hardcodes the directories in LIBPATH if there
7325 # are no directories specified by -L.
7326 hardcode_minus_L=yes
7327 if test "$GCC" = yes && test -z "$link_static_flag"; then
7328 # Neither direct hardcoding nor static linking is supported with a
7330 hardcode_direct=unsupported
7335 if test "$host_cpu" = ia64; then
7336 # On IA64, the linker does run time linking by default, so we don't
7337 # have to do anything special.
7338 aix_use_runtimelinking=no
7339 exp_sym_flag='-Bexport'
7342 # If we're using GNU nm, then we don't want the "-C" option.
7343 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7344 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7345 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'
7347 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'
7349 aix_use_runtimelinking=no
7351 # Test if we are trying to use run time linking or normal
7352 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7353 # need to do runtime linking.
7354 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7355 for ld_flag in $LDFLAGS; do
7356 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7357 aix_use_runtimelinking=yes
7363 exp_sym_flag='-bexport'
7364 no_entry_flag='-bnoentry'
7367 # When large executables or shared objects are built, AIX ld can
7368 # have problems creating the table of contents. If linking a library
7369 # or program results in "error TOC overflow" add -mminimal-toc to
7370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7375 hardcode_libdir_separator=':'
7376 link_all_deplibs=yes
7378 if test "$GCC" = yes; then
7379 case $host_os in aix4.012|aix4.012.*)
7380 # We only want to do this on AIX 4.2 and lower, the check
7381 # below for broken collect2 doesn't work under 4.3+
7382 collect2name=`${CC} -print-prog-name=collect2`
7383 if test -f "$collect2name" && \
7384 strings "$collect2name" | grep resolve_lib_name >/dev/null
7386 # We have reworked collect2
7389 # We have old collect2
7390 hardcode_direct=unsupported
7391 # It fails to find uninstalled libraries when the uninstalled
7392 # path is not listed in the libpath. Setting hardcode_minus_L
7393 # to unsupported forces relinking
7394 hardcode_minus_L=yes
7395 hardcode_libdir_flag_spec='-L$libdir'
7396 hardcode_libdir_separator=
7399 shared_flag='-shared'
7402 if test "$host_cpu" = ia64; then
7403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7404 # chokes on -Wl,-G. The following line is correct:
7407 if test "$aix_use_runtimelinking" = yes; then
7408 shared_flag='${wl}-G'
7410 shared_flag='${wl}-bM:SRE'
7415 # It seems that -bexpall does not export symbols beginning with
7416 # underscore (_), so it is better to generate a list of symbols to export.
7417 always_export_symbols=yes
7418 if test "$aix_use_runtimelinking" = yes; then
7419 # Warning - without using the other runtime loading flags (-brtl),
7420 # -berok will link without error, but may produce a broken library.
7421 allow_undefined_flag='-berok'
7422 # Determine the default libpath from the value encoded in an empty executable.
7423 cat >conftest.$ac_ext <<_ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7440 (eval $ac_link) 2>conftest.er1
7442 grep -v '^ *+' conftest.er1 >conftest.err
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } &&
7447 { ac_try='test -z "$ac_c_werror_flag"
7448 || test ! -s conftest.err'
7449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; } &&
7454 { ac_try='test -s conftest$ac_exeext'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7463 # Check for a 64-bit object if we didn't find anything.
7464 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; }
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7471 rm -f conftest.err conftest.$ac_objext \
7472 conftest$ac_exeext conftest.$ac_ext
7473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7475 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7476 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"
7478 if test "$host_cpu" = ia64; then
7479 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7480 allow_undefined_flag="-z nodefs"
7481 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"
7483 # Determine the default libpath from the value encoded in an empty executable.
7484 cat >conftest.$ac_ext <<_ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7501 (eval $ac_link) 2>conftest.er1
7503 grep -v '^ *+' conftest.er1 >conftest.err
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -z "$ac_c_werror_flag"
7509 || test ! -s conftest.err'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; } &&
7515 { ac_try='test -s conftest$ac_exeext'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7524 # Check for a 64-bit object if we didn't find anything.
7525 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; }
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7532 rm -f conftest.err conftest.$ac_objext \
7533 conftest$ac_exeext conftest.$ac_ext
7534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7536 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7537 # Warning - without using the other run time loading flags,
7538 # -berok will link without error, but may produce a broken library.
7539 no_undefined_flag=' ${wl}-bernotok'
7540 allow_undefined_flag=' ${wl}-berok'
7541 # -bexpall does not export symbols beginning with underscore (_)
7542 always_export_symbols=yes
7543 # Exported symbols can be pulled into shared objects from archives
7544 whole_archive_flag_spec=' '
7545 archive_cmds_need_lc=yes
7546 # This is similar to how AIX traditionally builds it's shared libraries.
7547 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'
7553 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)'
7554 hardcode_libdir_flag_spec='-L$libdir'
7555 hardcode_minus_L=yes
7556 # see comment about different semantics on the GNU ld section
7561 export_dynamic_flag_spec=-rdynamic
7564 cygwin* | mingw* | pw32*)
7565 # When not using gcc, we currently assume that we are using
7566 # Microsoft Visual C++.
7567 # hardcode_libdir_flag_spec is actually meaningless, as there is
7568 # no search path for DLLs.
7569 hardcode_libdir_flag_spec=' '
7570 allow_undefined_flag=unsupported
7571 # Tell ltmain to make .lib files, not .a files.
7573 # Tell ltmain to make .dll files, not .so files.
7575 # FIXME: Setting linknames here is a bad hack.
7576 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7577 # The linker will automatically build a .lib file if we build a DLL.
7578 old_archive_From_new_cmds='true'
7579 # FIXME: Should let the user specify the lib program.
7580 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7581 fix_srcfile_path='`cygpath -w "$srcfile"`'
7582 enable_shared_with_static_runtimes=yes
7585 darwin* | rhapsody*)
7587 rhapsody* | darwin1.[012])
7588 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7591 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7592 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7594 case ${MACOSX_DEPLOYMENT_TARGET} in
7596 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7599 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7605 archive_cmds_need_lc=no
7607 hardcode_automatic=yes
7608 hardcode_shlibpath_var=unsupported
7609 whole_archive_flag_spec=''
7610 link_all_deplibs=yes
7611 if test "$GCC" = yes ; then
7612 output_verbose_link_cmd='echo'
7613 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7614 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7616 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}'
7617 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7619 case "$cc_basename" in
7621 output_verbose_link_cmd='echo'
7622 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7623 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7624 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7625 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7626 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7637 hardcode_libdir_flag_spec='-L$libdir'
7638 hardcode_shlibpath_var=no
7645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7646 # support. Future versions do this automatically, but an explicit c++rt0.o
7647 # does not break anything, and helps significantly (at the cost of a little
7650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7651 hardcode_libdir_flag_spec='-R$libdir'
7653 hardcode_shlibpath_var=no
7656 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7660 hardcode_minus_L=yes
7661 hardcode_shlibpath_var=no
7664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7665 freebsd* | kfreebsd*-gnu)
7666 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7667 hardcode_libdir_flag_spec='-R$libdir'
7669 hardcode_shlibpath_var=no
7673 if test "$GCC" = yes; then
7674 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'
7676 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'
7678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7679 hardcode_libdir_separator=:
7682 # hardcode_minus_L: Not really in the search PATH,
7683 # but as the default location of the library.
7684 hardcode_minus_L=yes
7685 export_dynamic_flag_spec='${wl}-E'
7689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7692 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7701 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7704 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7708 if test "$with_gnu_ld" = no; then
7711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7712 hardcode_libdir_flag_spec_ld='+b $libdir'
7713 hardcode_libdir_separator=:
7715 hardcode_shlibpath_var=no
7718 hardcode_libdir_flag_spec='-L$libdir'
7720 hardcode_shlibpath_var=no
7722 # hardcode_minus_L: Not really in the search PATH,
7723 # but as the default location of the library.
7724 hardcode_minus_L=yes
7727 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7728 hardcode_libdir_separator=:
7730 export_dynamic_flag_spec='${wl}-E'
7732 # hardcode_minus_L: Not really in the search PATH,
7733 # but as the default location of the library.
7734 hardcode_minus_L=yes
7740 irix5* | irix6* | nonstopux*)
7741 if test "$GCC" = yes; then
7742 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'
7744 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'
7745 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7748 hardcode_libdir_separator=:
7749 link_all_deplibs=yes
7753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7756 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7758 hardcode_libdir_flag_spec='-R$libdir'
7760 hardcode_shlibpath_var=no
7764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7767 hardcode_libdir_separator=:
7768 hardcode_shlibpath_var=no
7773 hardcode_shlibpath_var=no
7774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7776 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7778 export_dynamic_flag_spec='${wl}-E'
7781 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7783 hardcode_libdir_flag_spec='-R$libdir'
7786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7794 hardcode_libdir_flag_spec='-L$libdir'
7795 hardcode_minus_L=yes
7796 allow_undefined_flag=unsupported
7797 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'
7798 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7802 if test "$GCC" = yes; then
7803 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7804 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'
7806 allow_undefined_flag=' -expect_unresolved \*'
7807 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'
7809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7810 hardcode_libdir_separator=:
7813 osf4* | osf5*) # as osf3* with the addition of -msym flag
7814 if test "$GCC" = yes; then
7815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7816 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'
7817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7819 allow_undefined_flag=' -expect_unresolved \*'
7820 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'
7821 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7822 $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'
7824 # Both c and cxx compiler support -rpath directly
7825 hardcode_libdir_flag_spec='-rpath $libdir'
7827 hardcode_libdir_separator=:
7831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832 hardcode_shlibpath_var=no
7833 export_dynamic_flag_spec='${wl}-Bexport'
7834 runpath_var=LD_RUN_PATH
7835 hardcode_runpath_var=yes
7839 no_undefined_flag=' -z text'
7840 if test "$GCC" = yes; then
7841 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7842 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7843 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7845 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7846 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7847 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7849 hardcode_libdir_flag_spec='-R$libdir'
7850 hardcode_shlibpath_var=no
7852 solaris2.[0-5] | solaris2.[0-5].*) ;;
7853 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7854 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7856 link_all_deplibs=yes
7860 if test "x$host_vendor" = xsequent; then
7861 # Use $CC to link under sequent, because it throws in some extra .o
7862 # files that make .init and .fini sections work.
7863 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7865 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7867 hardcode_libdir_flag_spec='-L$libdir'
7869 hardcode_minus_L=yes
7870 hardcode_shlibpath_var=no
7874 case $host_vendor in
7876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7877 hardcode_direct=yes # is this really true???
7880 ## LD is ld it makes a PLAMLIB
7881 ## CC just makes a GrossModule.
7882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7883 reload_cmds='$CC -r -o $output$reload_objs'
7887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7891 runpath_var='LD_RUN_PATH'
7892 hardcode_shlibpath_var=no
7896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7897 hardcode_shlibpath_var=no
7898 export_dynamic_flag_spec='-Bexport'
7902 if test -d /usr/nec; then
7903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7904 hardcode_shlibpath_var=no
7905 runpath_var=LD_RUN_PATH
7906 hardcode_runpath_var=yes
7912 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7915 hardcode_shlibpath_var=no
7916 hardcode_runpath_var=yes
7917 runpath_var=LD_RUN_PATH
7920 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7921 no_undefined_flag='${wl}-z ${wl}text'
7922 if test "$GCC" = yes; then
7923 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7925 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7927 runpath_var='LD_RUN_PATH'
7928 hardcode_shlibpath_var=no
7932 no_undefined_flag=' -z text'
7933 # $CC -shared without GNU ld will not create a library from C++
7934 # object files and a static libstdc++, better avoid it by now
7935 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7936 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7937 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7938 hardcode_libdir_flag_spec=
7939 hardcode_shlibpath_var=no
7940 runpath_var='LD_RUN_PATH'
7944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7945 hardcode_libdir_flag_spec='-L$libdir'
7946 hardcode_shlibpath_var=no
7955 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7956 echo "${ECHO_T}$ld_shlibs" >&6
7957 test "$ld_shlibs" = no && can_build_shared=no
7959 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7960 if test "$GCC" = yes; then
7961 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7965 # Do we need to explicitly link libc?
7967 case "x$archive_cmds_need_lc" in
7969 # Assume -lc should be added
7970 archive_cmds_need_lc=yes
7972 if test "$enable_shared" = yes && test "$GCC" = yes; then
7973 case $archive_cmds in
7975 # FIXME: we may have to deal with multi-command sequences.
7978 # Test whether the compiler implicitly links with -lc since on some
7979 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7980 # to ld, don't add -lc before -lgcc.
7981 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7982 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987 (eval $ac_compile) 2>&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } 2>conftest.err; then
7993 libobjs=conftest.$ac_objext
7995 wl=$lt_prog_compiler_wl
8001 lt_save_allow_undefined_flag=$allow_undefined_flag
8002 allow_undefined_flag=
8003 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8004 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }
8009 archive_cmds_need_lc=no
8011 archive_cmds_need_lc=yes
8013 allow_undefined_flag=$lt_save_allow_undefined_flag
8015 cat conftest.err 1>&5
8018 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8019 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8026 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8029 libname_spec='lib$name'
8037 shlibpath_overrides_runpath=unknown
8039 dynamic_linker="$host_os ld.so"
8040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8041 if test "$GCC" = yes; then
8042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8043 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8044 # if the path contains ";" then we assume it to be the separator
8045 # otherwise default to the standard path separator (i.e. ":") - it is
8046 # assumed that no part of a normal pathname contains ";" but that should
8047 # okay in the real world where ";" in dirpaths is itself problematic.
8048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8055 need_lib_prefix=unknown
8056 hardcode_into_libs=no
8058 # when you set need_version to no, make sure it does not cause -set_version
8059 # flags to be left without arguments
8060 need_version=unknown
8065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8066 shlibpath_var=LIBPATH
8068 # AIX 3 has no versioning support, so we append a major version to the name.
8069 soname_spec='${libname}${release}${shared_ext}$major'
8076 hardcode_into_libs=yes
8077 if test "$host_cpu" = ia64; then
8078 # AIX 5 supports IA64
8079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8080 shlibpath_var=LD_LIBRARY_PATH
8082 # With GCC up to 2.95.x, collect2 would create an import file
8083 # for dependence libraries. The import file would start with
8084 # the line `#! .'. This would cause the generated library to
8085 # depend on `.', always an invalid library. This was fixed in
8086 # development snapshots of GCC prior to 3.0.
8088 aix4 | aix4.[01] | aix4.[01].*)
8089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8091 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8099 # soname into executable. Probably we can add versioning support to
8100 # collect2, so additional links can be useful in future.
8101 if test "$aix_use_runtimelinking" = yes; then
8102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8103 # instead of lib<name>.a to let people know that these are not
8104 # typical AIX shared libraries.
8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8107 # We preserve .a as extension for shared libraries through AIX4.2
8108 # and later when we are not doing run time linking.
8109 library_names_spec='${libname}${release}.a $libname.a'
8110 soname_spec='${libname}${release}${shared_ext}$major'
8112 shlibpath_var=LIBPATH
8117 library_names_spec='$libname.ixlibrary $libname.a'
8118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8119 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'
8123 library_names_spec='${libname}${shared_ext}'
8124 dynamic_linker="$host_os ld.so"
8125 shlibpath_var=LIBRARY_PATH
8131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8132 soname_spec='${libname}${release}${shared_ext}$major'
8133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8134 shlibpath_var=LD_LIBRARY_PATH
8135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8137 # the default ld.so.conf also contains /usr/contrib/lib and
8138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8139 # libtool to hard-code these into programs
8142 cygwin* | mingw* | pw32*)
8143 version_type=windows
8148 case $GCC,$host_os in
8149 yes,cygwin* | yes,mingw* | yes,pw32*)
8150 library_names_spec='$libname.dll.a'
8151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8152 postinstall_cmds='base_file=`basename \${file}`~
8153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8154 dldir=$destdir/`dirname \$dlpath`~
8155 test -d \$dldir || mkdir -p \$dldir~
8156 $install_prog $dir/$dlname \$dldir/$dlname'
8157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8158 dlpath=$dir/\$dldll~
8160 shlibpath_overrides_runpath=yes
8164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8166 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8169 # MinGW DLLs use traditional 'lib' prefix
8170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8171 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8172 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8173 # It is most probably a Windows format PATH printed by
8174 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8175 # path with ; separators, and with drive letters. We can handle the
8176 # drive letters (cygwin fileutils understands them), so leave them,
8177 # especially as we might pass files found there to a mingw objdump,
8178 # which wouldn't understand a cygwinified path. Ahh.
8179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8185 # pw32 DLLs use 'pw' prefix rather than 'lib'
8186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8195 dynamic_linker='Win32 ld.exe'
8196 # FIXME: first we should search . and the directory the executable is in
8200 darwin* | rhapsody*)
8201 dynamic_linker="$host_os dyld"
8205 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8206 soname_spec='${libname}${release}${major}$shared_ext'
8207 shlibpath_overrides_runpath=yes
8208 shlibpath_var=DYLD_LIBRARY_PATH
8209 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8210 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8211 if test "$GCC" = yes; then
8212 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"`
8214 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8216 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8224 soname_spec='${libname}${release}${shared_ext}$major'
8225 shlibpath_var=LD_LIBRARY_PATH
8236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8237 soname_spec='${libname}${release}${shared_ext}$major'
8238 shlibpath_var=LD_LIBRARY_PATH
8239 shlibpath_overrides_runpath=no
8240 hardcode_into_libs=yes
8241 dynamic_linker='GNU ld.so'
8245 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8246 version_type=freebsd-$objformat
8247 case $version_type in
8249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8258 shlibpath_var=LD_LIBRARY_PATH
8261 shlibpath_overrides_runpath=yes
8263 freebsd3.01* | freebsdelf3.01*)
8264 shlibpath_overrides_runpath=yes
8265 hardcode_into_libs=yes
8268 shlibpath_overrides_runpath=no
8269 hardcode_into_libs=yes
8278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8279 soname_spec='${libname}${release}${shared_ext}$major'
8280 shlibpath_var=LD_LIBRARY_PATH
8281 hardcode_into_libs=yes
8284 hpux9* | hpux10* | hpux11*)
8285 # Give a soname corresponding to the major version so that dld.sl refuses to
8286 # link against other versions.
8293 hardcode_into_libs=yes
8294 dynamic_linker="$host_os dld.so"
8295 shlibpath_var=LD_LIBRARY_PATH
8296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8299 if test "X$HPUX_IA64_MODE" = X32; then
8300 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8302 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8308 hardcode_into_libs=yes
8309 dynamic_linker="$host_os dld.sl"
8310 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8313 soname_spec='${libname}${release}${shared_ext}$major'
8314 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8319 dynamic_linker="$host_os dld.sl"
8320 shlibpath_var=SHLIB_PATH
8321 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
8326 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8327 postinstall_cmds='chmod 555 $lib'
8330 irix5* | irix6* | nonstopux*)
8332 nonstopux*) version_type=nonstopux ;;
8334 if test "$lt_cv_prog_gnu_ld" = yes; then
8342 soname_spec='${libname}${release}${shared_ext}$major'
8343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8345 irix5* | nonstopux*)
8349 case $LD in # libtool.m4 will add one of these switches to LD
8350 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8351 libsuff= shlibsuff= libmagic=32-bit;;
8352 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8353 libsuff=32 shlibsuff=N32 libmagic=N32;;
8354 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8355 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8356 *) libsuff= shlibsuff= libmagic=never-match;;
8360 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8361 shlibpath_overrides_runpath=no
8362 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8363 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8364 hardcode_into_libs=yes
8367 # No shared lib support for Linux oldld, aout, or coff.
8368 linux*oldld* | linux*aout* | linux*coff*)
8372 # This must be Linux ELF.
8377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8378 soname_spec='${libname}${release}${shared_ext}$major'
8379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8380 shlibpath_var=LD_LIBRARY_PATH
8381 shlibpath_overrides_runpath=no
8382 # This implies no fast_install, which is unacceptable.
8383 # Some rework will be needed to allow for fast_install
8384 # before this can be enabled.
8385 hardcode_into_libs=yes
8387 # Append ld.so.conf contents to the search path
8388 if test -f /etc/ld.so.conf; then
8389 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8390 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8393 # We used to test for /lib/ld.so.1 and disable shared libraries on
8394 # powerpc, because MkLinux only supported shared libraries with the
8395 # GNU dynamic linker. Since this was broken with cross compilers,
8396 # most powerpc-linux boxes support dynamic linking these days and
8397 # people can always --disable-shared, the test was removed, and we
8398 # assume the GNU/Linux dynamic linker is in use.
8399 dynamic_linker='GNU/Linux ld.so'
8406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8407 soname_spec='${libname}${release}${shared_ext}$major'
8408 shlibpath_var=LD_LIBRARY_PATH
8409 shlibpath_overrides_runpath=no
8410 hardcode_into_libs=yes
8411 dynamic_linker='GNU ld.so'
8418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8421 dynamic_linker='NetBSD (a.out) ld.so'
8423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8424 soname_spec='${libname}${release}${shared_ext}$major'
8425 dynamic_linker='NetBSD ld.elf_so'
8427 shlibpath_var=LD_LIBRARY_PATH
8428 shlibpath_overrides_runpath=yes
8429 hardcode_into_libs=yes
8434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8435 shlibpath_var=LD_LIBRARY_PATH
8436 shlibpath_overrides_runpath=yes
8443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8444 soname_spec='${libname}${release}${shared_ext}$major'
8445 shlibpath_var=LD_LIBRARY_PATH
8446 shlibpath_overrides_runpath=yes
8453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8455 shlibpath_var=LD_LIBRARY_PATH
8456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8458 openbsd2.[89] | openbsd2.[89].*)
8459 shlibpath_overrides_runpath=no
8462 shlibpath_overrides_runpath=yes
8466 shlibpath_overrides_runpath=yes
8471 libname_spec='$name'
8474 library_names_spec='$libname${shared_ext} $libname.a'
8475 dynamic_linker='OS/2 ld.exe'
8476 shlibpath_var=LIBPATH
8479 osf3* | osf4* | osf5*)
8483 soname_spec='${libname}${release}${shared_ext}$major'
8484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8485 shlibpath_var=LD_LIBRARY_PATH
8486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8492 soname_spec='${libname}${release}${shared_ext}$major'
8493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8494 shlibpath_var=LD_LIBRARY_PATH
8501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8502 soname_spec='${libname}${release}${shared_ext}$major'
8503 shlibpath_var=LD_LIBRARY_PATH
8504 shlibpath_overrides_runpath=yes
8505 hardcode_into_libs=yes
8506 # ldd complains unless libraries are executable
8507 postinstall_cmds='chmod +x $lib'
8512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8514 shlibpath_var=LD_LIBRARY_PATH
8515 shlibpath_overrides_runpath=yes
8516 if test "$with_gnu_ld" = yes; then
8522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525 soname_spec='${libname}${release}${shared_ext}$major'
8526 shlibpath_var=LD_LIBRARY_PATH
8527 case $host_vendor in
8529 shlibpath_overrides_runpath=no
8531 export_dynamic_flag_spec='${wl}-Blargedynsym'
8532 runpath_var=LD_RUN_PATH
8540 shlibpath_overrides_runpath=no
8541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8547 if test -d /usr/nec ;then
8549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8550 soname_spec='$libname${shared_ext}.$major'
8551 shlibpath_var=LD_LIBRARY_PATH
8557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558 soname_spec='${libname}${release}${shared_ext}$major'
8559 shlibpath_var=LD_LIBRARY_PATH
8566 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8567 echo "${ECHO_T}$dynamic_linker" >&6
8568 test "$dynamic_linker" = no && can_build_shared=no
8570 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8573 if test -n "$hardcode_libdir_flag_spec" || \
8574 test -n "$runpath_var" || \
8575 test "X$hardcode_automatic" = "Xyes" ; then
8577 # We can hardcode non-existant directories.
8578 if test "$hardcode_direct" != no &&
8579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8580 # have to relink, otherwise we might link with an installed library
8581 # when we should be linking with a yet-to-be-installed one
8582 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8583 test "$hardcode_minus_L" != no; then
8584 # Linking always hardcodes the temporary library directory.
8585 hardcode_action=relink
8587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8588 hardcode_action=immediate
8591 # We cannot hardcode anything, or else we can only hardcode existing
8593 hardcode_action=unsupported
8595 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8596 echo "${ECHO_T}$hardcode_action" >&6
8598 if test "$hardcode_action" = relink; then
8599 # Fast installation is not supported
8600 enable_fast_install=no
8601 elif test "$shlibpath_overrides_runpath" = yes ||
8602 test "$enable_shared" = no; then
8603 # Fast installation is not necessary
8604 enable_fast_install=needless
8609 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8612 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8613 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8614 echo "$as_me:$LINENO: result: yes" >&5
8615 echo "${ECHO_T}yes" >&6
8617 # FIXME - insert some real tests, host_os isn't really good enough
8620 if test -n "$STRIP" ; then
8621 striplib="$STRIP -x"
8622 echo "$as_me:$LINENO: result: yes" >&5
8623 echo "${ECHO_T}yes" >&6
8625 echo "$as_me:$LINENO: result: no" >&5
8626 echo "${ECHO_T}no" >&6
8630 echo "$as_me:$LINENO: result: no" >&5
8631 echo "${ECHO_T}no" >&6
8636 if test "x$enable_dlopen" != xyes; then
8637 enable_dlopen=unknown
8638 enable_dlopen_self=unknown
8639 enable_dlopen_self_static=unknown
8646 lt_cv_dlopen="load_add_on"
8648 lt_cv_dlopen_self=yes
8652 lt_cv_dlopen="LoadLibrary"
8657 lt_cv_dlopen="dlopen"
8662 # if libdl is installed we need to link against it
8663 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 ac_check_lib_save_LIBS=$LIBS
8670 cat >conftest.$ac_ext <<_ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8677 /* Override any gcc2 internal prototype to avoid an error. */
8681 /* We use char because int might match the return type of a gcc2
8682 builtin and then its argument prototype would still apply. */
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694 (eval $ac_link) 2>conftest.er1
8696 grep -v '^ *+' conftest.er1 >conftest.err
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } &&
8701 { ac_try='test -z "$ac_c_werror_flag"
8702 || test ! -s conftest.err'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest$ac_exeext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_cv_lib_dl_dlopen=yes
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_lib_dl_dlopen=no
8721 rm -f conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8723 LIBS=$ac_check_lib_save_LIBS
8725 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8726 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8727 if test $ac_cv_lib_dl_dlopen = yes; then
8728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8733 lt_cv_dlopen_self=yes
8740 echo "$as_me:$LINENO: checking for shl_load" >&5
8741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8742 if test "${ac_cv_func_shl_load+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 cat >conftest.$ac_ext <<_ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8753 #define shl_load innocuous_shl_load
8755 /* System header to define __stub macros and hopefully few prototypes,
8756 which can conflict with char shl_load (); below.
8757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8758 <limits.h> exists even on freestanding compilers. */
8761 # include <limits.h>
8763 # include <assert.h>
8768 /* Override any gcc2 internal prototype to avoid an error. */
8773 /* We use char because int might match the return type of a gcc2
8774 builtin and then its argument prototype would still apply. */
8776 /* The GNU C library defines this for functions which it implements
8777 to always fail with ENOSYS. Some functions are actually named
8778 something starting with __ and the normal name is an alias. */
8779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8782 char (*f) () = shl_load;
8791 return f != shl_load;
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8798 (eval $ac_link) 2>conftest.er1
8800 grep -v '^ *+' conftest.er1 >conftest.err
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag"
8806 || test ! -s conftest.err'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest$ac_exeext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_cv_func_shl_load=yes
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ac_cv_func_shl_load=no
8825 rm -f conftest.err conftest.$ac_objext \
8826 conftest$ac_exeext conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8830 if test $ac_cv_func_shl_load = yes; then
8831 lt_cv_dlopen="shl_load"
8833 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8834 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8835 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 ac_check_lib_save_LIBS=$LIBS
8840 cat >conftest.$ac_ext <<_ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8847 /* Override any gcc2 internal prototype to avoid an error. */
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>conftest.er1
8866 grep -v '^ *+' conftest.er1 >conftest.err
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_lib_dld_shl_load=yes
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_cv_lib_dld_shl_load=no
8891 rm -f conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8896 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8897 if test $ac_cv_lib_dld_shl_load = yes; then
8898 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8900 echo "$as_me:$LINENO: checking for dlopen" >&5
8901 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8902 if test "${ac_cv_func_dlopen+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 cat >conftest.$ac_ext <<_ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8911 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8913 #define dlopen innocuous_dlopen
8915 /* System header to define __stub macros and hopefully few prototypes,
8916 which can conflict with char dlopen (); below.
8917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8918 <limits.h> exists even on freestanding compilers. */
8921 # include <limits.h>
8923 # include <assert.h>
8928 /* 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. */
8936 /* The GNU C library defines this for functions which it implements
8937 to always fail with ENOSYS. Some functions are actually named
8938 something starting with __ and the normal name is an alias. */
8939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8942 char (*f) () = dlopen;
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958 (eval $ac_link) 2>conftest.er1
8960 grep -v '^ *+' conftest.er1 >conftest.err
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -z "$ac_c_werror_flag"
8966 || test ! -s conftest.err'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; } &&
8972 { ac_try='test -s conftest$ac_exeext'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 ac_cv_func_dlopen=yes
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8983 ac_cv_func_dlopen=no
8985 rm -f conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext conftest.$ac_ext
8988 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8989 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8990 if test $ac_cv_func_dlopen = yes; then
8991 lt_cv_dlopen="dlopen"
8993 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 ac_check_lib_save_LIBS=$LIBS
9000 cat >conftest.$ac_ext <<_ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9007 /* Override any gcc2 internal prototype to avoid an error. */
9011 /* We use char because int might match the return type of a gcc2
9012 builtin and then its argument prototype would still apply. */
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>conftest.er1
9026 grep -v '^ *+' conftest.er1 >conftest.err
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -z "$ac_c_werror_flag"
9032 || test ! -s conftest.err'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; } &&
9038 { ac_try='test -s conftest$ac_exeext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_cv_lib_dl_dlopen=yes
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 ac_cv_lib_dl_dlopen=no
9051 rm -f conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_lib_save_LIBS
9055 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9056 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9057 if test $ac_cv_lib_dl_dlopen = yes; then
9058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9060 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9061 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9062 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 ac_check_lib_save_LIBS=$LIBS
9067 cat >conftest.$ac_ext <<_ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9074 /* Override any gcc2 internal prototype to avoid an error. */
9078 /* We use char because int might match the return type of a gcc2
9079 builtin and then its argument prototype would still apply. */
9089 rm -f conftest.$ac_objext conftest$ac_exeext
9090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9091 (eval $ac_link) 2>conftest.er1
9093 grep -v '^ *+' conftest.er1 >conftest.err
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } &&
9098 { ac_try='test -z "$ac_c_werror_flag"
9099 || test ! -s conftest.err'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; } &&
9105 { ac_try='test -s conftest$ac_exeext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_lib_svld_dlopen=yes
9113 echo "$as_me: failed program was:" >&5
9114 sed 's/^/| /' conftest.$ac_ext >&5
9116 ac_cv_lib_svld_dlopen=no
9118 rm -f conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 LIBS=$ac_check_lib_save_LIBS
9122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9124 if test $ac_cv_lib_svld_dlopen = yes; then
9125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9127 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 ac_check_lib_save_LIBS=$LIBS
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9141 /* Override any gcc2 internal prototype to avoid an error. */
9145 /* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */
9156 rm -f conftest.$ac_objext conftest$ac_exeext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>conftest.er1
9160 grep -v '^ *+' conftest.er1 >conftest.err
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -z "$ac_c_werror_flag"
9166 || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest$ac_exeext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_cv_lib_dld_dld_link=yes
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 ac_cv_lib_dld_dld_link=no
9185 rm -f conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 LIBS=$ac_check_lib_save_LIBS
9189 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9190 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9191 if test $ac_cv_lib_dld_dld_link = yes; then
9192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9213 if test "x$lt_cv_dlopen" != xno; then
9219 case $lt_cv_dlopen in
9221 save_CPPFLAGS="$CPPFLAGS"
9222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9224 save_LDFLAGS="$LDFLAGS"
9225 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9228 LIBS="$lt_cv_dlopen_libs $LIBS"
9230 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9231 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9232 if test "${lt_cv_dlopen_self+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 if test "$cross_compiling" = yes; then :
9236 lt_cv_dlopen_self=cross
9238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9239 lt_status=$lt_dlunknown
9240 cat > conftest.$ac_ext <<EOF
9241 #line 9241 "configure"
9242 #include "confdefs.h"
9251 # define LT_DLGLOBAL RTLD_GLOBAL
9254 # define LT_DLGLOBAL DL_GLOBAL
9256 # define LT_DLGLOBAL 0
9260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9261 find out it does not work in some platform. */
9262 #ifndef LT_DLLAZY_OR_NOW
9264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9267 # define LT_DLLAZY_OR_NOW DL_LAZY
9270 # define LT_DLLAZY_OR_NOW RTLD_NOW
9273 # define LT_DLLAZY_OR_NOW DL_NOW
9275 # define LT_DLLAZY_OR_NOW 0
9283 extern "C" void exit (int);
9286 void fnord() { int i=42;}
9289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9290 int status = $lt_dlunknown;
9294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9295 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9296 /* dlclose (self); */
9302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9307 (./conftest; exit; ) 2>/dev/null
9310 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9311 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9312 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9315 # compilation failed
9316 lt_cv_dlopen_self=no
9323 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9324 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9326 if test "x$lt_cv_dlopen_self" = xyes; then
9327 LDFLAGS="$LDFLAGS $link_static_flag"
9328 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9329 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9330 if test "${lt_cv_dlopen_self_static+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 if test "$cross_compiling" = yes; then :
9334 lt_cv_dlopen_self_static=cross
9336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9337 lt_status=$lt_dlunknown
9338 cat > conftest.$ac_ext <<EOF
9339 #line 9339 "configure"
9340 #include "confdefs.h"
9349 # define LT_DLGLOBAL RTLD_GLOBAL
9352 # define LT_DLGLOBAL DL_GLOBAL
9354 # define LT_DLGLOBAL 0
9358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9359 find out it does not work in some platform. */
9360 #ifndef LT_DLLAZY_OR_NOW
9362 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9365 # define LT_DLLAZY_OR_NOW DL_LAZY
9368 # define LT_DLLAZY_OR_NOW RTLD_NOW
9371 # define LT_DLLAZY_OR_NOW DL_NOW
9373 # define LT_DLLAZY_OR_NOW 0
9381 extern "C" void exit (int);
9384 void fnord() { int i=42;}
9387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9388 int status = $lt_dlunknown;
9392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9393 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9394 /* dlclose (self); */
9400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401 (eval $ac_link) 2>&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9405 (./conftest; exit; ) 2>/dev/null
9408 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9409 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9410 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9413 # compilation failed
9414 lt_cv_dlopen_self_static=no
9421 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9422 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9425 CPPFLAGS="$save_CPPFLAGS"
9426 LDFLAGS="$save_LDFLAGS"
9431 case $lt_cv_dlopen_self in
9432 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9433 *) enable_dlopen_self=unknown ;;
9436 case $lt_cv_dlopen_self_static in
9437 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9438 *) enable_dlopen_self_static=unknown ;;
9443 # Report which librarie types wil actually be built
9444 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9445 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9446 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9447 echo "${ECHO_T}$can_build_shared" >&6
9449 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9450 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9451 test "$can_build_shared" = "no" && enable_shared=no
9453 # On AIX, shared libraries and static libraries use the same namespace, and
9454 # are all built from PIC.
9457 test "$enable_shared" = yes && enable_static=no
9458 if test -n "$RANLIB"; then
9459 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9460 postinstall_cmds='$RANLIB $lib'
9465 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9466 test "$enable_shared" = yes && enable_static=no
9470 echo "$as_me:$LINENO: result: $enable_shared" >&5
9471 echo "${ECHO_T}$enable_shared" >&6
9473 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9475 # Make sure either enable_shared or enable_static is yes.
9476 test "$enable_shared" = yes || enable_static=yes
9477 echo "$as_me:$LINENO: result: $enable_static" >&5
9478 echo "${ECHO_T}$enable_static" >&6
9480 # The else clause should only fire when bootstrapping the
9481 # libtool distribution, otherwise you forgot to ship ltmain.sh
9482 # with your package, and you will get complaints that there are
9483 # no rules to generate ltmain.sh.
9484 if test -f "$ltmain"; then
9485 # See if we are running on zsh, and set the options which allow our commands through
9486 # without removal of \ escapes.
9487 if test -n "${ZSH_VERSION+set}" ; then
9488 setopt NO_GLOB_SUBST
9490 # Now quote all the things that may contain metacharacters while being
9491 # careful not to overquote the AC_SUBSTed values. We take copies of the
9492 # variables and quote the copies for generation of the libtool script.
9493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9497 deplibs_check_method reload_flag reload_cmds need_locks \
9498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9499 lt_cv_sys_global_symbol_to_c_name_address \
9500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9501 old_postinstall_cmds old_postuninstall_cmds \
9505 lt_prog_compiler_wl \
9506 lt_prog_compiler_pic \
9507 lt_prog_compiler_static \
9508 lt_prog_compiler_no_builtin_flag \
9509 export_dynamic_flag_spec \
9510 thread_safe_flag_spec \
9511 whole_archive_flag_spec \
9512 enable_shared_with_static_runtimes \
9514 old_archive_from_new_cmds \
9519 compiler_lib_search_path \
9521 archive_expsym_cmds \
9523 postuninstall_cmds \
9524 old_archive_from_expsyms_cmds \
9525 allow_undefined_flag \
9527 export_symbols_cmds \
9528 hardcode_libdir_flag_spec \
9529 hardcode_libdir_flag_spec_ld \
9530 hardcode_libdir_separator \
9531 hardcode_automatic \
9533 module_expsym_cmds \
9534 lt_cv_prog_compiler_c_o \
9539 old_archive_cmds | \
9540 old_archive_from_new_cmds | \
9542 archive_expsym_cmds | \
9544 module_expsym_cmds | \
9545 old_archive_from_expsyms_cmds | \
9546 export_symbols_cmds | \
9547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9548 postinstall_cmds | postuninstall_cmds | \
9549 old_postinstall_cmds | old_postuninstall_cmds | \
9550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9551 # Double-quote double-evaled strings.
9552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9561 *'\$0 --fallback-echo"')
9562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9567 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9569 { echo "$as_me:$LINENO: creating $ofile" >&5
9570 echo "$as_me: creating $ofile" >&6;}
9572 cat <<__EOF__ >> "$cfgfile"
9575 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9580 # Free Software Foundation, Inc.
9582 # This file is part of GNU Libtool:
9583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9585 # This program is free software; you can redistribute it and/or modify
9586 # it under the terms of the GNU General Public License as published by
9587 # the Free Software Foundation; either version 2 of the License, or
9588 # (at your option) any later version.
9590 # This program is distributed in the hope that it will be useful, but
9591 # WITHOUT ANY WARRANTY; without even the implied warranty of
9592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9593 # General Public License for more details.
9595 # You should have received a copy of the GNU General Public License
9596 # along with this program; if not, write to the Free Software
9597 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9599 # As a special exception to the GNU General Public License, if you
9600 # distribute this file as part of a program that contains a
9601 # configuration script generated by Autoconf, you may include it under
9602 # the same distribution terms that you use for the rest of that program.
9604 # A sed program that does not truncate output.
9607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9608 Xsed="$SED -e s/^X//"
9610 # The HP-UX ksh and POSIX shell print the target directory to stdout
9612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9614 # The names of the tagged configurations supported by this script.
9617 # ### BEGIN LIBTOOL CONFIG
9619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9621 # Shell to use when invoking shell scripts.
9624 # Whether or not to build shared libraries.
9625 build_libtool_libs=$enable_shared
9627 # Whether or not to build static libraries.
9628 build_old_libs=$enable_static
9630 # Whether or not to add -lc for building shared libraries.
9631 build_libtool_need_lc=$archive_cmds_need_lc
9633 # Whether or not to disallow shared libs when runtime libs are static
9634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9636 # Whether or not to optimize for fast installation.
9637 fast_install=$enable_fast_install
9640 host_alias=$host_alias
9643 # An echo program that does not interpret backslashes.
9648 AR_FLAGS=$lt_AR_FLAGS
9653 # A language-specific compiler.
9656 # Is the compiler the GNU C compiler?
9662 # The linker used to build libraries.
9665 # Whether we need hard or soft links.
9668 # A BSD-compatible nm program.
9671 # A symbol stripping program
9674 # Used to examine libraries when file_magic_cmd begins "file"
9675 MAGIC_CMD=$MAGIC_CMD
9677 # Used on cygwin: DLL creation program.
9680 # Used on cygwin: object dumper.
9683 # Used on cygwin: assembler.
9686 # The name of the directory that contains temporary libtool files.
9689 # How to create reloadable object files.
9690 reload_flag=$lt_reload_flag
9691 reload_cmds=$lt_reload_cmds
9693 # How to pass a linker flag through the compiler.
9694 wl=$lt_lt_prog_compiler_wl
9696 # Object file suffix (normally "o").
9699 # Old archive suffix (normally "a").
9702 # Shared library suffix (normally ".so").
9703 shrext_cmds='$shrext_cmds'
9705 # Executable file suffix (normally "").
9708 # Additional compiler flags for building library objects.
9709 pic_flag=$lt_lt_prog_compiler_pic
9712 # What is the maximum length of a command?
9713 max_cmd_len=$lt_cv_sys_max_cmd_len
9715 # Does compiler simultaneously support -c and -o options?
9716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9718 # Must we lock files when doing compilation ?
9719 need_locks=$lt_need_locks
9721 # Do we need the lib prefix for modules?
9722 need_lib_prefix=$need_lib_prefix
9724 # Do we need a version for libraries?
9725 need_version=$need_version
9727 # Whether dlopen is supported.
9728 dlopen_support=$enable_dlopen
9730 # Whether dlopen of programs is supported.
9731 dlopen_self=$enable_dlopen_self
9733 # Whether dlopen of statically linked programs is supported.
9734 dlopen_self_static=$enable_dlopen_self_static
9736 # Compiler flag to prevent dynamic linking.
9737 link_static_flag=$lt_lt_prog_compiler_static
9739 # Compiler flag to turn off builtin functions.
9740 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9742 # Compiler flag to allow reflexive dlopens.
9743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9745 # Compiler flag to generate shared objects directly from archives.
9746 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9748 # Compiler flag to generate thread-safe objects.
9749 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9751 # Library versioning type.
9752 version_type=$version_type
9754 # Format of library name prefix.
9755 libname_spec=$lt_libname_spec
9757 # List of archive names. First name is the real one, the rest are links.
9758 # The last name is the one that the linker finds with -lNAME.
9759 library_names_spec=$lt_library_names_spec
9761 # The coded name of the library, if different from the real name.
9762 soname_spec=$lt_soname_spec
9764 # Commands used to build and install an old-style archive.
9766 old_archive_cmds=$lt_old_archive_cmds
9767 old_postinstall_cmds=$lt_old_postinstall_cmds
9768 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9770 # Create an old-style archive from a shared archive.
9771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9773 # Create a temporary old-style archive to link instead of a shared archive.
9774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9776 # Commands used to build and install a shared archive.
9777 archive_cmds=$lt_archive_cmds
9778 archive_expsym_cmds=$lt_archive_expsym_cmds
9779 postinstall_cmds=$lt_postinstall_cmds
9780 postuninstall_cmds=$lt_postuninstall_cmds
9782 # Commands used to build a loadable module (assumed same as above if empty)
9783 module_cmds=$lt_module_cmds
9784 module_expsym_cmds=$lt_module_expsym_cmds
9786 # Commands to strip libraries.
9787 old_striplib=$lt_old_striplib
9788 striplib=$lt_striplib
9790 # Dependencies to place before the objects being linked to create a
9792 predep_objects=$lt_predep_objects
9794 # Dependencies to place after the objects being linked to create a
9796 postdep_objects=$lt_postdep_objects
9798 # Dependencies to place before the objects being linked to create a
9802 # Dependencies to place after the objects being linked to create a
9804 postdeps=$lt_postdeps
9806 # The library search path used internally by the compiler when linking
9808 compiler_lib_search_path=$lt_compiler_lib_search_path
9810 # Method to check whether dependent libraries are shared objects.
9811 deplibs_check_method=$lt_deplibs_check_method
9813 # Command to use when deplibs_check_method == file_magic.
9814 file_magic_cmd=$lt_file_magic_cmd
9816 # Flag that allows shared libraries with undefined symbols to be built.
9817 allow_undefined_flag=$lt_allow_undefined_flag
9819 # Flag that forces no undefined symbols.
9820 no_undefined_flag=$lt_no_undefined_flag
9822 # Commands used to finish a libtool library installation in a directory.
9823 finish_cmds=$lt_finish_cmds
9825 # Same as above, but a single script fragment to be evaled but not shown.
9826 finish_eval=$lt_finish_eval
9828 # Take the output of nm and produce a listing of raw symbols and C names.
9829 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9831 # Transform the output of nm in a proper C declaration
9832 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9834 # Transform the output of nm in a C name address pair
9835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9837 # This is the shared library runtime path variable.
9838 runpath_var=$runpath_var
9840 # This is the shared library path variable.
9841 shlibpath_var=$shlibpath_var
9843 # Is shlibpath searched before the hard-coded library search path?
9844 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9846 # How to hardcode a shared library path into an executable.
9847 hardcode_action=$hardcode_action
9849 # Whether we should hardcode library paths into libraries.
9850 hardcode_into_libs=$hardcode_into_libs
9852 # Flag to hardcode \$libdir into a binary during linking.
9853 # This must work even if \$libdir does not exist.
9854 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9856 # If ld is used when linking, flag to hardcode \$libdir into
9857 # a binary during linking. This must work even if \$libdir does
9859 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9861 # Whether we need a single -rpath flag with a separated argument.
9862 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9864 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9866 hardcode_direct=$hardcode_direct
9868 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9870 hardcode_minus_L=$hardcode_minus_L
9872 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9873 # the resulting binary.
9874 hardcode_shlibpath_var=$hardcode_shlibpath_var
9876 # Set to yes if building a shared library automatically hardcodes DIR into the library
9877 # and all subsequent libraries and executables linked against it.
9878 hardcode_automatic=$hardcode_automatic
9880 # Variables whose values should be saved in libtool wrapper scripts and
9881 # restored at relink time.
9882 variables_saved_for_relink="$variables_saved_for_relink"
9884 # Whether libtool must link a program against all its dependency libraries.
9885 link_all_deplibs=$link_all_deplibs
9887 # Compile-time system search path for libraries
9888 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9890 # Run-time system search path for libraries
9891 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9893 # Fix the shell variable \$srcfile for the compiler.
9894 fix_srcfile_path="$fix_srcfile_path"
9896 # Set to yes if exported symbols are required.
9897 always_export_symbols=$always_export_symbols
9899 # The commands to list exported symbols.
9900 export_symbols_cmds=$lt_export_symbols_cmds
9902 # The commands to extract the exported symbol list from a shared archive.
9903 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9905 # Symbols that should not be listed in the preloaded symbols.
9906 exclude_expsyms=$lt_exclude_expsyms
9908 # Symbols that must always be exported.
9909 include_expsyms=$lt_include_expsyms
9911 # ### END LIBTOOL CONFIG
9918 cat <<\EOF >> "$cfgfile"
9920 # AIX sometimes has problems with the GCC collect2 program. For some
9921 # reason, if we set the COLLECT_NAMES environment variable, the problems
9922 # vanish in a puff of smoke.
9923 if test "X${COLLECT_NAMES+set}" != Xset; then
9925 export COLLECT_NAMES
9931 # We use sed instead of cat because bash on DJGPP gets confused if
9932 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9933 # text mode, it properly converts lines to CR/LF. This bash problem
9934 # is reportedly fixed, but why not run on old versions too?
9935 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9937 mv -f "$cfgfile" "$ofile" || \
9938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9942 # If there is no Makefile yet, we rely on a make rule to execute
9943 # `config.status --recheck' to rerun these tests and create the
9944 # libtool script then.
9945 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9946 if test -f "$ltmain_in"; then
9947 test -f Makefile && make "$ltmain"
9953 ac_cpp='$CPP $CPPFLAGS'
9954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9961 # Check whether --with-tags or --without-tags was given.
9962 if test "${with_tags+set}" = set; then
9963 withval="$with_tags"
9967 if test -f "$ltmain" && test -n "$tagnames"; then
9968 if test ! -f "${ofile}"; then
9969 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9970 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9973 if test -z "$LTCC"; then
9974 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9975 if test -z "$LTCC"; then
9976 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9977 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9980 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9984 # Extract list of available tagged configurations in $ofile.
9985 # Note that this assumes the entire list is on one line.
9986 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9989 for tagname in $tagnames; do
9991 # Check whether tagname contains only valid characters
9992 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9994 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9995 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9996 { (exit 1); exit 1; }; }
10000 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10002 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10003 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10004 { (exit 1); exit 1; }; }
10007 # Update the list of available tags.
10008 if test -n "$tagname"; then
10009 echo appending configuration tag \"$tagname\" to $ofile
10013 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10014 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10015 (test "X$CXX" != "Xg++"))) ; then
10017 ac_cpp='$CXXCPP $CPPFLAGS'
10018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10025 archive_cmds_need_lc_CXX=no
10026 allow_undefined_flag_CXX=
10027 always_export_symbols_CXX=no
10028 archive_expsym_cmds_CXX=
10029 export_dynamic_flag_spec_CXX=
10030 hardcode_direct_CXX=no
10031 hardcode_libdir_flag_spec_CXX=
10032 hardcode_libdir_flag_spec_ld_CXX=
10033 hardcode_libdir_separator_CXX=
10034 hardcode_minus_L_CXX=no
10035 hardcode_automatic_CXX=no
10037 module_expsym_cmds_CXX=
10038 link_all_deplibs_CXX=unknown
10039 old_archive_cmds_CXX=$old_archive_cmds
10040 no_undefined_flag_CXX=
10041 whole_archive_flag_spec_CXX=
10042 enable_shared_with_static_runtimes_CXX=no
10044 # Dependencies to place before and after the object being linked:
10045 predep_objects_CXX=
10046 postdep_objects_CXX=
10049 compiler_lib_search_path_CXX=
10051 # Source file extension for C++ test sources.
10054 # Object file extension for compiled C++ test sources.
10058 # Code to be used in simple compile tests
10059 lt_simple_compile_test_code="int some_variable = 0;\n"
10061 # Code to be used in simple link tests
10062 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10066 # If no C compiler was specified, use CC.
10069 # Allow CC to be a program name with arguments.
10073 # Allow CC to be a program name with arguments.
10078 lt_save_with_gnu_ld=$with_gnu_ld
10079 lt_save_path_LD=$lt_cv_path_LD
10080 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10081 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10083 unset lt_cv_prog_gnu_ld
10085 if test -n "${lt_cv_path_LDCXX+set}"; then
10086 lt_cv_path_LD=$lt_cv_path_LDCXX
10088 unset lt_cv_path_LD
10090 test -z "${LDCXX+set}" || LD=$LDCXX
10094 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10096 # We don't want -fno-exception wen compiling C++ code, so set the
10097 # no_builtin_flag separately
10098 if test "$GXX" = yes; then
10099 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10101 lt_prog_compiler_no_builtin_flag_CXX=
10104 if test "$GXX" = yes; then
10105 # Set up default GNU C++ configuration
10108 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10109 if test "${with_gnu_ld+set}" = set; then
10110 withval="$with_gnu_ld"
10111 test "$withval" = no || with_gnu_ld=yes
10116 if test "$GCC" = yes; then
10117 # Check if gcc -print-prog-name=ld gives a path.
10118 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10119 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10122 # gcc leaves a trailing carriage return which upsets mingw
10123 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10125 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10128 # Accept absolute paths.
10130 re_direlt='/[^/][^/]*/\.\./'
10131 # Canonicalize the pathname of ld
10132 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10133 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10134 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10136 test -z "$LD" && LD="$ac_prog"
10139 # If it fails, then pretend we aren't using GCC.
10143 # If it is relative, then search for the first ld in PATH.
10144 with_gnu_ld=unknown
10147 elif test "$with_gnu_ld" = yes; then
10148 echo "$as_me:$LINENO: checking for GNU ld" >&5
10149 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10151 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10152 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10154 if test "${lt_cv_path_LD+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 if test -z "$LD"; then
10158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10159 for ac_dir in $PATH; do
10161 test -z "$ac_dir" && ac_dir=.
10162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10163 lt_cv_path_LD="$ac_dir/$ac_prog"
10164 # Check to see if the program is GNU ld. I'd rather use --version,
10165 # but apparently some GNU ld's only accept -v.
10166 # Break only if it was the GNU/non-GNU ld that we prefer.
10167 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10168 *GNU* | *'with BFD'*)
10169 test "$with_gnu_ld" != no && break
10172 test "$with_gnu_ld" != yes && break
10179 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10183 LD="$lt_cv_path_LD"
10184 if test -n "$LD"; then
10185 echo "$as_me:$LINENO: result: $LD" >&5
10186 echo "${ECHO_T}$LD" >&6
10188 echo "$as_me:$LINENO: result: no" >&5
10189 echo "${ECHO_T}no" >&6
10191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10193 { (exit 1); exit 1; }; }
10194 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10200 case `$LD -v 2>&1 </dev/null` in
10201 *GNU* | *'with BFD'*)
10202 lt_cv_prog_gnu_ld=yes
10205 lt_cv_prog_gnu_ld=no
10209 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10211 with_gnu_ld=$lt_cv_prog_gnu_ld
10215 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10216 # archiving commands below assume that GNU ld is being used.
10217 if test "$with_gnu_ld" = yes; then
10218 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219 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'
10221 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10224 # If archive_cmds runs LD, not CC, wlarc should be empty
10225 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10226 # investigate it a little bit more. (MM)
10229 # ancient GNU ld didn't support --whole-archive et. al.
10230 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10231 grep 'no-whole-archive' > /dev/null; then
10232 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10234 whole_archive_flag_spec_CXX=
10240 # A generic and very simple default shared library creation
10241 # command for GNU C++ for the case where it uses the native
10242 # linker, instead of GNU ld. If possible, this setting should
10243 # overridden to take advantage of the native linker features on
10244 # the platform it is being used on.
10245 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10248 # Commands to make compiler produce verbose output that lists
10249 # what "hidden" libraries, object files and flags are used when
10250 # linking a shared library.
10251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10259 # PORTME: fill in a description of your system's C++ link characteristics
10260 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10261 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10265 # FIXME: insert proper C++ library support
10269 if test "$host_cpu" = ia64; then
10270 # On IA64, the linker does run time linking by default, so we don't
10271 # have to do anything special.
10272 aix_use_runtimelinking=no
10273 exp_sym_flag='-Bexport'
10276 aix_use_runtimelinking=no
10278 # Test if we are trying to use run time linking or normal
10279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10280 # need to do runtime linking.
10281 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10282 for ld_flag in $LDFLAGS; do
10285 aix_use_runtimelinking=yes
10292 exp_sym_flag='-bexport'
10293 no_entry_flag='-bnoentry'
10296 # When large executables or shared objects are built, AIX ld can
10297 # have problems creating the table of contents. If linking a library
10298 # or program results in "error TOC overflow" add -mminimal-toc to
10299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10302 archive_cmds_CXX=''
10303 hardcode_direct_CXX=yes
10304 hardcode_libdir_separator_CXX=':'
10305 link_all_deplibs_CXX=yes
10307 if test "$GXX" = yes; then
10308 case $host_os in aix4.012|aix4.012.*)
10309 # We only want to do this on AIX 4.2 and lower, the check
10310 # below for broken collect2 doesn't work under 4.3+
10311 collect2name=`${CC} -print-prog-name=collect2`
10312 if test -f "$collect2name" && \
10313 strings "$collect2name" | grep resolve_lib_name >/dev/null
10315 # We have reworked collect2
10316 hardcode_direct_CXX=yes
10318 # We have old collect2
10319 hardcode_direct_CXX=unsupported
10320 # It fails to find uninstalled libraries when the uninstalled
10321 # path is not listed in the libpath. Setting hardcode_minus_L
10322 # to unsupported forces relinking
10323 hardcode_minus_L_CXX=yes
10324 hardcode_libdir_flag_spec_CXX='-L$libdir'
10325 hardcode_libdir_separator_CXX=
10328 shared_flag='-shared'
10331 if test "$host_cpu" = ia64; then
10332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10333 # chokes on -Wl,-G. The following line is correct:
10336 if test "$aix_use_runtimelinking" = yes; then
10337 shared_flag='${wl}-G'
10339 shared_flag='${wl}-bM:SRE'
10344 # It seems that -bexpall does not export symbols beginning with
10345 # underscore (_), so it is better to generate a list of symbols to export.
10346 always_export_symbols_CXX=yes
10347 if test "$aix_use_runtimelinking" = yes; then
10348 # Warning - without using the other runtime loading flags (-brtl),
10349 # -berok will link without error, but may produce a broken library.
10350 allow_undefined_flag_CXX='-berok'
10351 # Determine the default libpath from the value encoded in an empty executable.
10352 cat >conftest.$ac_ext <<_ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10369 (eval $ac_link) 2>conftest.er1
10371 grep -v '^ *+' conftest.er1 >conftest.err
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } &&
10376 { ac_try='test -z "$ac_cxx_werror_flag"
10377 || test ! -s conftest.err'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; } &&
10383 { ac_try='test -s conftest$ac_exeext'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10392 # Check for a 64-bit object if we didn't find anything.
10393 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; }
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10400 rm -f conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10404 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10406 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"
10408 if test "$host_cpu" = ia64; then
10409 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10410 allow_undefined_flag_CXX="-z nodefs"
10411 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"
10413 # Determine the default libpath from the value encoded in an empty executable.
10414 cat >conftest.$ac_ext <<_ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10429 rm -f conftest.$ac_objext conftest$ac_exeext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10431 (eval $ac_link) 2>conftest.er1
10433 grep -v '^ *+' conftest.er1 >conftest.err
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -z "$ac_cxx_werror_flag"
10439 || test ! -s conftest.err'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; } &&
10445 { ac_try='test -s conftest$ac_exeext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10454 # Check for a 64-bit object if we didn't find anything.
10455 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; }
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10462 rm -f conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext conftest.$ac_ext
10464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10466 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10467 # Warning - without using the other run time loading flags,
10468 # -berok will link without error, but may produce a broken library.
10469 no_undefined_flag_CXX=' ${wl}-bernotok'
10470 allow_undefined_flag_CXX=' ${wl}-berok'
10471 # -bexpall does not export symbols beginning with underscore (_)
10472 always_export_symbols_CXX=yes
10473 # Exported symbols can be pulled into shared objects from archives
10474 whole_archive_flag_spec_CXX=' '
10475 archive_cmds_need_lc_CXX=yes
10476 # This is similar to how AIX traditionally builds it's shared libraries.
10477 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'
10482 case $cc_basename in
10484 # FIXME: insert proper C++ library support
10491 cygwin* | mingw* | pw32*)
10492 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10493 # as there is no search path for DLLs.
10494 hardcode_libdir_flag_spec_CXX='-L$libdir'
10495 allow_undefined_flag_CXX=unsupported
10496 always_export_symbols_CXX=no
10497 enable_shared_with_static_runtimes_CXX=yes
10499 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10500 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'
10501 # If the export-symbols file already is a .def file (1st line
10502 # is EXPORTS), use it as is; otherwise, prepend...
10503 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10504 cp $export_symbols $output_objdir/$soname.def;
10506 echo EXPORTS > $output_objdir/$soname.def;
10507 cat $export_symbols >> $output_objdir/$soname.def;
10509 $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'
10514 darwin* | rhapsody*)
10516 rhapsody* | darwin1.[012])
10517 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10520 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10521 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10523 case ${MACOSX_DEPLOYMENT_TARGET} in
10525 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10528 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10534 archive_cmds_need_lc_CXX=no
10535 hardcode_direct_CXX=no
10536 hardcode_automatic_CXX=yes
10537 hardcode_shlibpath_var_CXX=unsupported
10538 whole_archive_flag_spec_CXX=''
10539 link_all_deplibs_CXX=yes
10541 if test "$GXX" = yes ; then
10542 lt_int_apple_cc_single_mod=no
10543 output_verbose_link_cmd='echo'
10544 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10545 lt_int_apple_cc_single_mod=yes
10547 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10548 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10550 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10552 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10554 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10555 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}'
10557 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10559 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10561 case "$cc_basename" in
10563 output_verbose_link_cmd='echo'
10564 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10565 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10566 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10567 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10568 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10578 case $cc_basename in
10580 # FIXME: insert proper C++ library support
10584 # Green Hills C++ Compiler
10585 # FIXME: insert proper C++ library support
10589 # FIXME: insert proper C++ library support
10595 # C++ shared libraries reported to be fairly broken before switch to ELF
10599 archive_cmds_need_lc_CXX=no
10601 freebsd* | kfreebsd*-gnu)
10602 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10609 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10610 hardcode_libdir_separator_CXX=:
10611 export_dynamic_flag_spec_CXX='${wl}-E'
10612 hardcode_direct_CXX=yes
10613 hardcode_minus_L_CXX=yes # Not in the search PATH,
10614 # but as the default
10615 # location of the library.
10617 case $cc_basename in
10619 # FIXME: insert proper C++ library support
10623 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'
10624 # Commands to make compiler produce verbose output that lists
10625 # what "hidden" libraries, object files and flags are used when
10626 # linking a shared library.
10628 # There doesn't appear to be a way to prevent this compiler from
10629 # explicitly linking system object files so we need to strip them
10630 # from the output so that they don't get included in the library
10632 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'
10635 if test "$GXX" = yes; then
10636 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'
10638 # FIXME: insert proper C++ library support
10645 if test $with_gnu_ld = no; then
10646 case "$host_cpu" in
10648 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10649 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10650 hardcode_libdir_separator_CXX=:
10653 hardcode_libdir_flag_spec_CXX='-L$libdir'
10656 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10657 hardcode_libdir_separator_CXX=:
10658 export_dynamic_flag_spec_CXX='${wl}-E'
10662 case "$host_cpu" in
10664 hardcode_direct_CXX=no
10665 hardcode_shlibpath_var_CXX=no
10668 hardcode_direct_CXX=no
10669 hardcode_shlibpath_var_CXX=no
10670 hardcode_minus_L_CXX=yes # Not in the search PATH,
10671 # but as the default
10672 # location of the library.
10675 hardcode_direct_CXX=yes
10676 hardcode_minus_L_CXX=yes # Not in the search PATH,
10677 # but as the default
10678 # location of the library.
10682 case $cc_basename in
10684 # FIXME: insert proper C++ library support
10688 case "$host_cpu" in
10690 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10693 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10696 # Commands to make compiler produce verbose output that lists
10697 # what "hidden" libraries, object files and flags are used when
10698 # linking a shared library.
10700 # There doesn't appear to be a way to prevent this compiler from
10701 # explicitly linking system object files so we need to strip them
10702 # from the output so that they don't get included in the library
10704 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'
10707 if test "$GXX" = yes; then
10708 if test $with_gnu_ld = no; then
10709 case "$host_cpu" in
10711 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10714 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'
10719 # FIXME: insert proper C++ library support
10726 case $cc_basename in
10729 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'
10731 # Archives containing C++ object files must be created using
10732 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10733 # necessary to make sure instantiated templates are included
10735 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10738 if test "$GXX" = yes; then
10739 if test "$with_gnu_ld" = no; then
10740 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'
10742 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'
10745 link_all_deplibs_CXX=yes
10748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10749 hardcode_libdir_separator_CXX=:
10752 case $cc_basename in
10754 # Kuck and Associates, Inc. (KAI) C++ Compiler
10756 # KCC will only create a shared library if the output file
10757 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10758 # to its proper name (with version) after linking.
10759 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'
10760 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'
10761 # Commands to make compiler produce verbose output that lists
10762 # what "hidden" libraries, object files and flags are used when
10763 # linking a shared library.
10765 # There doesn't appear to be a way to prevent this compiler from
10766 # explicitly linking system object files so we need to strip them
10767 # from the output so that they don't get included in the library
10769 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'
10771 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10774 # Archives containing C++ object files must be created using
10775 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10776 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10781 # version 8.0 and above of icpc choke on multiply defined symbols
10782 # if we add $predep_objects and $postdep_objects, however 7.1 and
10783 # earlier do not add the objects themselves.
10784 case `$CC -V 2>&1` in
10786 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10787 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'
10789 *) # Version 8.0 or newer
10790 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10791 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10794 archive_cmds_need_lc_CXX=no
10795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10797 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10802 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'
10804 runpath_var=LD_RUN_PATH
10805 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10806 hardcode_libdir_separator_CXX=:
10808 # Commands to make compiler produce verbose output that lists
10809 # what "hidden" libraries, object files and flags are used when
10810 # linking a shared library.
10812 # There doesn't appear to be a way to prevent this compiler from
10813 # explicitly linking system object files so we need to strip them
10814 # from the output so that they don't get included in the library
10816 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'
10821 # FIXME: insert proper C++ library support
10825 # FIXME: insert proper C++ library support
10829 case $cc_basename in
10831 # FIXME: insert proper C++ library support
10835 # FIXME: insert proper C++ library support
10841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10842 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10844 hardcode_libdir_flag_spec_CXX='-R$libdir'
10845 hardcode_direct_CXX=yes
10846 hardcode_shlibpath_var_CXX=no
10848 # Workaround some broken pre-1.5 toolchains
10849 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10852 # C++ shared libraries are fairly broken
10856 hardcode_direct_CXX=yes
10857 hardcode_shlibpath_var_CXX=no
10858 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10861 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10862 export_dynamic_flag_spec_CXX='${wl}-E'
10863 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10865 output_verbose_link_cmd='echo'
10868 case $cc_basename in
10870 # Kuck and Associates, Inc. (KAI) C++ Compiler
10872 # KCC will only create a shared library if the output file
10873 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10874 # to its proper name (with version) after linking.
10875 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'
10877 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10878 hardcode_libdir_separator_CXX=:
10880 # Archives containing C++ object files must be created using
10881 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10882 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10886 # Rational C++ 2.4.1
10887 # FIXME: insert proper C++ library support
10891 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10892 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'
10894 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10895 hardcode_libdir_separator_CXX=:
10897 # Commands to make compiler produce verbose output that lists
10898 # what "hidden" libraries, object files and flags are used when
10899 # linking a shared library.
10901 # There doesn't appear to be a way to prevent this compiler from
10902 # explicitly linking system object files so we need to strip them
10903 # from the output so that they don't get included in the library
10905 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'
10908 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10909 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10910 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'
10912 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10913 hardcode_libdir_separator_CXX=:
10915 # Commands to make compiler produce verbose output that lists
10916 # what "hidden" libraries, object files and flags are used when
10917 # linking a shared library.
10918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10921 # FIXME: insert proper C++ library support
10928 case $cc_basename in
10930 # Kuck and Associates, Inc. (KAI) C++ Compiler
10932 # KCC will only create a shared library if the output file
10933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10934 # to its proper name (with version) after linking.
10935 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'
10937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10938 hardcode_libdir_separator_CXX=:
10940 # Archives containing C++ object files must be created using
10941 # the KAI C++ compiler.
10942 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10945 # Rational C++ 2.4.1
10946 # FIXME: insert proper C++ library support
10950 allow_undefined_flag_CXX=' -expect_unresolved \*'
10951 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'
10952 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10953 echo "-hidden">> $lib.exp~
10954 $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~
10957 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10958 hardcode_libdir_separator_CXX=:
10960 # Commands to make compiler produce verbose output that lists
10961 # what "hidden" libraries, object files and flags are used when
10962 # linking a shared library.
10964 # There doesn't appear to be a way to prevent this compiler from
10965 # explicitly linking system object files so we need to strip them
10966 # from the output so that they don't get included in the library
10968 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'
10971 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10972 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10973 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'
10975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10976 hardcode_libdir_separator_CXX=:
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 -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10984 # FIXME: insert proper C++ library support
10991 # FIXME: insert proper C++ library support
10995 archive_cmds_need_lc_CXX=no
10996 case $cc_basename in
10998 # FIXME: insert proper C++ library support
11002 # FIXME: insert proper C++ library support
11008 case $cc_basename in
11011 # FIXME: insert proper C++ library support
11016 # FIXME: insert proper C++ library support
11020 # FIXME: insert proper C++ library support
11026 case $cc_basename in
11028 # Sun C++ 4.2, 5.x and Centerline C++
11029 no_undefined_flag_CXX=' -zdefs'
11030 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11031 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11032 $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'
11034 hardcode_libdir_flag_spec_CXX='-R$libdir'
11035 hardcode_shlibpath_var_CXX=no
11037 solaris2.0-5 | solaris2.0-5.*) ;;
11039 # The C++ compiler is used as linker so we must use $wl
11040 # flag to pass the commands to the underlying system
11042 # Supported since Solaris 2.6 (maybe 2.5.1?)
11043 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11046 link_all_deplibs_CXX=yes
11048 # Commands to make compiler produce verbose output that lists
11049 # what "hidden" libraries, object files and flags are used when
11050 # linking a shared library.
11052 # There doesn't appear to be a way to prevent this compiler from
11053 # explicitly linking system object files so we need to strip them
11054 # from the output so that they don't get included in the library
11056 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'
11058 # Archives containing C++ object files must be created using
11059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11060 # necessary to make sure instantiated templates are included
11062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11065 # Green Hills C++ Compiler
11066 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11068 # The C++ compiler must be used to create the archive.
11069 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11072 # GNU C++ compiler with Solaris linker
11073 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11074 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11075 if $CC --version | grep -v '^2\.7' > /dev/null; then
11076 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11077 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11078 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11080 # Commands to make compiler produce verbose output that lists
11081 # what "hidden" libraries, object files and flags are used when
11082 # linking a shared library.
11083 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11085 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11087 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11088 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11089 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11091 # Commands to make compiler produce verbose output that lists
11092 # what "hidden" libraries, object files and flags are used when
11093 # linking a shared library.
11094 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11097 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11102 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11103 archive_cmds_need_lc_CXX=no
11106 case $cc_basename in
11108 # NonStop-UX NCC 3.20
11109 # FIXME: insert proper C++ library support
11113 # FIXME: insert proper C++ library support
11119 # FIXME: insert proper C++ library support
11123 # FIXME: insert proper C++ library support
11127 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11128 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11129 test "$ld_shlibs_CXX" = no && can_build_shared=no
11135 ## There is no encapsulation within the following macros, do not change
11136 ## the running order or otherwise move them around unless you know exactly
11137 ## what you are doing...
11139 cat > conftest.$ac_ext <<EOF
11143 Foo (void) { a = 0; }
11149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11150 (eval $ac_compile) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; then
11154 # Parse the compiler output and extract the necessary
11155 # objects, libraries and library flags.
11157 # Sentinel used to keep track of whether or not we are before
11158 # the conftest object file.
11159 pre_test_object_deps_done=no
11161 # The `*' in the case matches for architectures that use `case' in
11162 # $output_verbose_cmd can trigger glob expansion during the loop
11163 # eval without this substitution.
11164 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11166 for p in `eval $output_verbose_link_cmd`; do
11170 # Some compilers place space between "-{L,R}" and the path.
11171 # Remove the space.
11172 if test $p = "-L" \
11173 || test $p = "-R"; then
11180 if test "$pre_test_object_deps_done" = no; then
11183 # Internal compiler library paths should come after those
11184 # provided the user. The postdeps already come after the
11185 # user supplied libs so there is no need to process them.
11186 if test -z "$compiler_lib_search_path_CXX"; then
11187 compiler_lib_search_path_CXX="${prev}${p}"
11189 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11192 # The "-l" case would never come before the object being
11193 # linked, so don't bother handling this case.
11196 if test -z "$postdeps_CXX"; then
11197 postdeps_CXX="${prev}${p}"
11199 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11205 # This assumes that the test object file only shows up
11206 # once in the compiler output.
11207 if test "$p" = "conftest.$objext"; then
11208 pre_test_object_deps_done=yes
11212 if test "$pre_test_object_deps_done" = no; then
11213 if test -z "$predep_objects_CXX"; then
11214 predep_objects_CXX="$p"
11216 predep_objects_CXX="$predep_objects_CXX $p"
11219 if test -z "$postdep_objects_CXX"; then
11220 postdep_objects_CXX="$p"
11222 postdep_objects_CXX="$postdep_objects_CXX $p"
11227 *) ;; # Ignore the rest.
11235 echo "libtool.m4: error: problem compiling CXX test program"
11238 $rm -f confest.$objext
11240 case " $postdeps_CXX " in
11241 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11244 lt_prog_compiler_wl_CXX=
11245 lt_prog_compiler_pic_CXX=
11246 lt_prog_compiler_static_CXX=
11248 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11249 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11251 # C++ specific cases for pic, static, wl, etc.
11252 if test "$GXX" = yes; then
11253 lt_prog_compiler_wl_CXX='-Wl,'
11254 lt_prog_compiler_static_CXX='-static'
11258 # All AIX code is PIC.
11259 if test "$host_cpu" = ia64; then
11260 # AIX 5 now supports IA64 processor
11261 lt_prog_compiler_static_CXX='-Bstatic'
11265 # FIXME: we need at least 68020 code to build shared libraries, but
11266 # adding the `-m68020' flag to GCC prevents building anything better,
11268 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11270 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11271 # PIC is the default for these OSes.
11273 mingw* | os2* | pw32*)
11274 # This hack is so that the source file can tell whether it is being
11275 # built for inclusion in a dll (and should export symbols for example).
11276 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11278 darwin* | rhapsody*)
11279 # PIC is the default on this platform
11280 # Common symbols not allowed in MH_DYLIB files
11281 lt_prog_compiler_pic_CXX='-fno-common'
11284 # DJGPP does not support shared libraries at all
11285 lt_prog_compiler_pic_CXX=
11288 if test -d /usr/nec; then
11289 lt_prog_compiler_pic_CXX=-Kconform_pic
11293 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11294 # not for PA HP-UX.
11295 case "$host_cpu" in
11299 lt_prog_compiler_pic_CXX='-fPIC'
11304 lt_prog_compiler_pic_CXX='-fPIC'
11310 # All AIX code is PIC.
11311 if test "$host_cpu" = ia64; then
11312 # AIX 5 now supports IA64 processor
11313 lt_prog_compiler_static_CXX='-Bstatic'
11315 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11319 case $cc_basename in
11321 # Green Hills C++ Compiler
11322 # _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"
11327 # PIC is the default on this platform
11328 # Common symbols not allowed in MH_DYLIB files
11329 case "$cc_basename" in
11331 lt_prog_compiler_pic_CXX='-qnocommon'
11332 lt_prog_compiler_wl_CXX='-Wl,'
11337 case $cc_basename in
11339 lt_prog_compiler_pic_CXX='-KPIC'
11342 # Green Hills C++ Compiler
11343 lt_prog_compiler_pic_CXX='-pic'
11349 freebsd* | kfreebsd*-gnu)
11350 # FreeBSD uses GNU C++
11352 hpux9* | hpux10* | hpux11*)
11353 case $cc_basename in
11355 lt_prog_compiler_wl_CXX='-Wl,'
11356 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11357 if test "$host_cpu" != ia64; then
11358 lt_prog_compiler_pic_CXX='+Z'
11362 lt_prog_compiler_wl_CXX='-Wl,'
11363 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11364 case "$host_cpu" in
11369 lt_prog_compiler_pic_CXX='+Z'
11377 irix5* | irix6* | nonstopux*)
11378 case $cc_basename in
11380 lt_prog_compiler_wl_CXX='-Wl,'
11381 lt_prog_compiler_static_CXX='-non_shared'
11382 # CC pic flag -KPIC is the default.
11389 case $cc_basename in
11392 lt_prog_compiler_wl_CXX='--backend -Wl,'
11393 lt_prog_compiler_pic_CXX='-fPIC'
11397 lt_prog_compiler_wl_CXX='-Wl,'
11398 lt_prog_compiler_pic_CXX='-KPIC'
11399 lt_prog_compiler_static_CXX='-static'
11403 # Make sure the PIC flag is empty. It appears that all Alpha
11404 # Linux and Compaq Tru64 Unix objects are PIC.
11405 lt_prog_compiler_pic_CXX=
11406 lt_prog_compiler_static_CXX='-non_shared'
11417 case $cc_basename in
11419 lt_prog_compiler_pic_CXX='-W c,exportall'
11427 osf3* | osf4* | osf5*)
11428 case $cc_basename in
11430 lt_prog_compiler_wl_CXX='--backend -Wl,'
11433 # Rational C++ 2.4.1
11434 lt_prog_compiler_pic_CXX='-pic'
11437 # Digital/Compaq C++
11438 lt_prog_compiler_wl_CXX='-Wl,'
11439 # Make sure the PIC flag is empty. It appears that all Alpha
11440 # Linux and Compaq Tru64 Unix objects are PIC.
11441 lt_prog_compiler_pic_CXX=
11442 lt_prog_compiler_static_CXX='-non_shared'
11451 case $cc_basename in
11453 lt_prog_compiler_pic_CXX='-fPIC'
11460 case $cc_basename in
11462 # Sun C++ 4.2, 5.x and Centerline C++
11463 lt_prog_compiler_pic_CXX='-KPIC'
11464 lt_prog_compiler_static_CXX='-Bstatic'
11465 lt_prog_compiler_wl_CXX='-Qoption ld '
11468 # Green Hills C++ Compiler
11469 lt_prog_compiler_pic_CXX='-PIC'
11476 case $cc_basename in
11479 lt_prog_compiler_pic_CXX='-pic'
11480 lt_prog_compiler_static_CXX='-Bstatic'
11484 lt_prog_compiler_pic_CXX='-pic'
11491 case $cc_basename in
11493 # NonStop-UX NCC 3.20
11494 lt_prog_compiler_pic_CXX='-KPIC'
11505 lt_prog_compiler_can_build_shared_CXX=no
11510 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11511 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11514 # Check to make sure the PIC flag actually works.
11516 if test -n "$lt_prog_compiler_pic_CXX"; then
11518 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11519 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11520 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 lt_prog_compiler_pic_works_CXX=no
11524 ac_outfile=conftest.$ac_objext
11525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11526 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11527 # Insert the option either (1) after the last *FLAGS variable, or
11528 # (2) before a word containing "conftest.", or (3) at the end.
11529 # Note that $ac_compile itself does not contain backslashes and begins
11530 # with a dollar sign (not a hyphen), so the echo should work correctly.
11531 # The option is referenced via a variable to avoid confusing sed.
11532 lt_compile=`echo "$ac_compile" | $SED \
11533 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11535 -e 's:$: $lt_compiler_flag:'`
11536 (eval echo "\"\$as_me:11536: $lt_compile\"" >&5)
11537 (eval "$lt_compile" 2>conftest.err)
11539 cat conftest.err >&5
11540 echo "$as_me:11540: \$? = $ac_status" >&5
11541 if (exit $ac_status) && test -s "$ac_outfile"; then
11542 # The compiler can only warn and ignore the option if not recognized
11543 # So say no if there are warnings
11544 if test ! -s conftest.err; then
11545 lt_prog_compiler_pic_works_CXX=yes
11551 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11552 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11554 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11555 case $lt_prog_compiler_pic_CXX in
11557 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11560 lt_prog_compiler_pic_CXX=
11561 lt_prog_compiler_can_build_shared_CXX=no
11566 # For platforms which do not support PIC, -DPIC is meaningless:
11568 lt_prog_compiler_pic_CXX=
11571 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11575 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11576 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11577 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 lt_cv_prog_compiler_c_o_CXX=no
11581 $rm -r conftest 2>/dev/null
11585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11587 lt_compiler_flag="-o out/conftest2.$ac_objext"
11588 # Insert the option either (1) after the last *FLAGS variable, or
11589 # (2) before a word containing "conftest.", or (3) at the end.
11590 # Note that $ac_compile itself does not contain backslashes and begins
11591 # with a dollar sign (not a hyphen), so the echo should work correctly.
11592 lt_compile=`echo "$ac_compile" | $SED \
11593 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11595 -e 's:$: $lt_compiler_flag:'`
11596 (eval echo "\"\$as_me:11596: $lt_compile\"" >&5)
11597 (eval "$lt_compile" 2>out/conftest.err)
11599 cat out/conftest.err >&5
11600 echo "$as_me:11600: \$? = $ac_status" >&5
11601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11603 # The compiler can only warn and ignore the option if not recognized
11604 # So say no if there are warnings
11605 if test ! -s out/conftest.err; then
11606 lt_cv_prog_compiler_c_o_CXX=yes
11611 # SGI C++ compiler will create directory out/ii_files/ for
11612 # template instantiation
11613 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11614 $rm out/* && rmdir out
11620 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11624 hard_links="nottested"
11625 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11626 # do not overwrite the value of need_locks provided by the user
11627 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11633 ln conftest.a conftest.b 2>&5 || hard_links=no
11634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11635 echo "$as_me:$LINENO: result: $hard_links" >&5
11636 echo "${ECHO_T}$hard_links" >&6
11637 if test "$hard_links" = no; then
11638 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11646 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11649 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11652 # If we're using GNU nm, then we don't want the "-C" option.
11653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11654 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11655 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'
11657 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'
11661 export_symbols_cmds_CXX="$ltdll_cmds"
11664 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11667 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11671 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11672 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11673 test "$ld_shlibs_CXX" = no && can_build_shared=no
11675 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11676 if test "$GCC" = yes; then
11677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11681 # Do we need to explicitly link libc?
11683 case "x$archive_cmds_need_lc_CXX" in
11685 # Assume -lc should be added
11686 archive_cmds_need_lc_CXX=yes
11688 if test "$enable_shared" = yes && test "$GCC" = yes; then
11689 case $archive_cmds_CXX in
11691 # FIXME: we may have to deal with multi-command sequences.
11694 # Test whether the compiler implicitly links with -lc since on some
11695 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11696 # to ld, don't add -lc before -lgcc.
11697 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11698 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703 (eval $ac_compile) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } 2>conftest.err; then
11709 libobjs=conftest.$ac_objext
11711 wl=$lt_prog_compiler_wl_CXX
11717 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11718 allow_undefined_flag_CXX=
11719 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11720 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }
11725 archive_cmds_need_lc_CXX=no
11727 archive_cmds_need_lc_CXX=yes
11729 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11731 cat conftest.err 1>&5
11734 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11735 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11742 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11744 library_names_spec=
11745 libname_spec='lib$name'
11749 postuninstall_cmds=
11753 shlibpath_overrides_runpath=unknown
11755 dynamic_linker="$host_os ld.so"
11756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11757 if test "$GCC" = yes; then
11758 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11759 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11760 # if the path contains ";" then we assume it to be the separator
11761 # otherwise default to the standard path separator (i.e. ":") - it is
11762 # assumed that no part of a normal pathname contains ";" but that should
11763 # okay in the real world where ";" in dirpaths is itself problematic.
11764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11771 need_lib_prefix=unknown
11772 hardcode_into_libs=no
11774 # when you set need_version to no, make sure it does not cause -set_version
11775 # flags to be left without arguments
11776 need_version=unknown
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11782 shlibpath_var=LIBPATH
11784 # AIX 3 has no versioning support, so we append a major version to the name.
11785 soname_spec='${libname}${release}${shared_ext}$major'
11792 hardcode_into_libs=yes
11793 if test "$host_cpu" = ia64; then
11794 # AIX 5 supports IA64
11795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11796 shlibpath_var=LD_LIBRARY_PATH
11798 # With GCC up to 2.95.x, collect2 would create an import file
11799 # for dependence libraries. The import file would start with
11800 # the line `#! .'. This would cause the generated library to
11801 # depend on `.', always an invalid library. This was fixed in
11802 # development snapshots of GCC prior to 3.0.
11804 aix4 | aix4.[01] | aix4.[01].*)
11805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11807 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11810 can_build_shared=no
11814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11815 # soname into executable. Probably we can add versioning support to
11816 # collect2, so additional links can be useful in future.
11817 if test "$aix_use_runtimelinking" = yes; then
11818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11819 # instead of lib<name>.a to let people know that these are not
11820 # typical AIX shared libraries.
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823 # We preserve .a as extension for shared libraries through AIX4.2
11824 # and later when we are not doing run time linking.
11825 library_names_spec='${libname}${release}.a $libname.a'
11826 soname_spec='${libname}${release}${shared_ext}$major'
11828 shlibpath_var=LIBPATH
11833 library_names_spec='$libname.ixlibrary $libname.a'
11834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11835 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'
11839 library_names_spec='${libname}${shared_ext}'
11840 dynamic_linker="$host_os ld.so"
11841 shlibpath_var=LIBRARY_PATH
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848 soname_spec='${libname}${release}${shared_ext}$major'
11849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11853 # the default ld.so.conf also contains /usr/contrib/lib and
11854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11855 # libtool to hard-code these into programs
11858 cygwin* | mingw* | pw32*)
11859 version_type=windows
11864 case $GCC,$host_os in
11865 yes,cygwin* | yes,mingw* | yes,pw32*)
11866 library_names_spec='$libname.dll.a'
11867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11868 postinstall_cmds='base_file=`basename \${file}`~
11869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11870 dldir=$destdir/`dirname \$dlpath`~
11871 test -d \$dldir || mkdir -p \$dldir~
11872 $install_prog $dir/$dlname \$dldir/$dlname'
11873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11874 dlpath=$dir/\$dldll~
11876 shlibpath_overrides_runpath=yes
11880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11882 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11885 # MinGW DLLs use traditional 'lib' prefix
11886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11887 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11888 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11889 # It is most probably a Windows format PATH printed by
11890 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11891 # path with ; separators, and with drive letters. We can handle the
11892 # drive letters (cygwin fileutils understands them), so leave them,
11893 # especially as we might pass files found there to a mingw objdump,
11894 # which wouldn't understand a cygwinified path. Ahh.
11895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11901 # pw32 DLLs use 'pw' prefix rather than 'lib'
11902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11911 dynamic_linker='Win32 ld.exe'
11912 # FIXME: first we should search . and the directory the executable is in
11916 darwin* | rhapsody*)
11917 dynamic_linker="$host_os dyld"
11918 version_type=darwin
11921 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11922 soname_spec='${libname}${release}${major}$shared_ext'
11923 shlibpath_overrides_runpath=yes
11924 shlibpath_var=DYLD_LIBRARY_PATH
11925 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11926 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11927 if test "$GCC" = yes; then
11928 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"`
11930 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11932 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11940 soname_spec='${libname}${release}${shared_ext}$major'
11941 shlibpath_var=LD_LIBRARY_PATH
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11953 soname_spec='${libname}${release}${shared_ext}$major'
11954 shlibpath_var=LD_LIBRARY_PATH
11955 shlibpath_overrides_runpath=no
11956 hardcode_into_libs=yes
11957 dynamic_linker='GNU ld.so'
11961 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11962 version_type=freebsd-$objformat
11963 case $version_type in
11965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11974 shlibpath_var=LD_LIBRARY_PATH
11977 shlibpath_overrides_runpath=yes
11979 freebsd3.01* | freebsdelf3.01*)
11980 shlibpath_overrides_runpath=yes
11981 hardcode_into_libs=yes
11984 shlibpath_overrides_runpath=no
11985 hardcode_into_libs=yes
11994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11995 soname_spec='${libname}${release}${shared_ext}$major'
11996 shlibpath_var=LD_LIBRARY_PATH
11997 hardcode_into_libs=yes
12000 hpux9* | hpux10* | hpux11*)
12001 # Give a soname corresponding to the major version so that dld.sl refuses to
12002 # link against other versions.
12006 case "$host_cpu" in
12009 hardcode_into_libs=yes
12010 dynamic_linker="$host_os dld.so"
12011 shlibpath_var=LD_LIBRARY_PATH
12012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12014 soname_spec='${libname}${release}${shared_ext}$major'
12015 if test "X$HPUX_IA64_MODE" = X32; then
12016 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12018 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12024 hardcode_into_libs=yes
12025 dynamic_linker="$host_os dld.sl"
12026 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12035 dynamic_linker="$host_os dld.sl"
12036 shlibpath_var=SHLIB_PATH
12037 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12039 soname_spec='${libname}${release}${shared_ext}$major'
12042 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12043 postinstall_cmds='chmod 555 $lib'
12046 irix5* | irix6* | nonstopux*)
12048 nonstopux*) version_type=nonstopux ;;
12050 if test "$lt_cv_prog_gnu_ld" = yes; then
12058 soname_spec='${libname}${release}${shared_ext}$major'
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12061 irix5* | nonstopux*)
12062 libsuff= shlibsuff=
12065 case $LD in # libtool.m4 will add one of these switches to LD
12066 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12067 libsuff= shlibsuff= libmagic=32-bit;;
12068 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12069 libsuff=32 shlibsuff=N32 libmagic=N32;;
12070 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12071 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12072 *) libsuff= shlibsuff= libmagic=never-match;;
12076 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12077 shlibpath_overrides_runpath=no
12078 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12079 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12080 hardcode_into_libs=yes
12083 # No shared lib support for Linux oldld, aout, or coff.
12084 linux*oldld* | linux*aout* | linux*coff*)
12088 # This must be Linux ELF.
12093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12094 soname_spec='${libname}${release}${shared_ext}$major'
12095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 shlibpath_overrides_runpath=no
12098 # This implies no fast_install, which is unacceptable.
12099 # Some rework will be needed to allow for fast_install
12100 # before this can be enabled.
12101 hardcode_into_libs=yes
12103 # Append ld.so.conf contents to the search path
12104 if test -f /etc/ld.so.conf; then
12105 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12106 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12109 # We used to test for /lib/ld.so.1 and disable shared libraries on
12110 # powerpc, because MkLinux only supported shared libraries with the
12111 # GNU dynamic linker. Since this was broken with cross compilers,
12112 # most powerpc-linux boxes support dynamic linking these days and
12113 # people can always --disable-shared, the test was removed, and we
12114 # assume the GNU/Linux dynamic linker is in use.
12115 dynamic_linker='GNU/Linux ld.so'
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 shlibpath_var=LD_LIBRARY_PATH
12125 shlibpath_overrides_runpath=no
12126 hardcode_into_libs=yes
12127 dynamic_linker='GNU ld.so'
12134 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12137 dynamic_linker='NetBSD (a.out) ld.so'
12139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12140 soname_spec='${libname}${release}${shared_ext}$major'
12141 dynamic_linker='NetBSD ld.elf_so'
12143 shlibpath_var=LD_LIBRARY_PATH
12144 shlibpath_overrides_runpath=yes
12145 hardcode_into_libs=yes
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 shlibpath_overrides_runpath=yes
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 soname_spec='${libname}${release}${shared_ext}$major'
12161 shlibpath_var=LD_LIBRARY_PATH
12162 shlibpath_overrides_runpath=yes
12169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12171 shlibpath_var=LD_LIBRARY_PATH
12172 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12174 openbsd2.[89] | openbsd2.[89].*)
12175 shlibpath_overrides_runpath=no
12178 shlibpath_overrides_runpath=yes
12182 shlibpath_overrides_runpath=yes
12187 libname_spec='$name'
12190 library_names_spec='$libname${shared_ext} $libname.a'
12191 dynamic_linker='OS/2 ld.exe'
12192 shlibpath_var=LIBPATH
12195 osf3* | osf4* | osf5*)
12199 soname_spec='${libname}${release}${shared_ext}$major'
12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12201 shlibpath_var=LD_LIBRARY_PATH
12202 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12203 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12208 soname_spec='${libname}${release}${shared_ext}$major'
12209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12210 shlibpath_var=LD_LIBRARY_PATH
12217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12218 soname_spec='${libname}${release}${shared_ext}$major'
12219 shlibpath_var=LD_LIBRARY_PATH
12220 shlibpath_overrides_runpath=yes
12221 hardcode_into_libs=yes
12222 # ldd complains unless libraries are executable
12223 postinstall_cmds='chmod +x $lib'
12228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12229 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 shlibpath_overrides_runpath=yes
12232 if test "$with_gnu_ld" = yes; then
12238 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12241 soname_spec='${libname}${release}${shared_ext}$major'
12242 shlibpath_var=LD_LIBRARY_PATH
12243 case $host_vendor in
12245 shlibpath_overrides_runpath=no
12247 export_dynamic_flag_spec='${wl}-Blargedynsym'
12248 runpath_var=LD_RUN_PATH
12256 shlibpath_overrides_runpath=no
12257 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12263 if test -d /usr/nec ;then
12265 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12266 soname_spec='$libname${shared_ext}.$major'
12267 shlibpath_var=LD_LIBRARY_PATH
12273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12274 soname_spec='${libname}${release}${shared_ext}$major'
12275 shlibpath_var=LD_LIBRARY_PATH
12282 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12283 echo "${ECHO_T}$dynamic_linker" >&6
12284 test "$dynamic_linker" = no && can_build_shared=no
12286 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12287 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12288 hardcode_action_CXX=
12289 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12290 test -n "$runpath_var_CXX" || \
12291 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12293 # We can hardcode non-existant directories.
12294 if test "$hardcode_direct_CXX" != no &&
12295 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12296 # have to relink, otherwise we might link with an installed library
12297 # when we should be linking with a yet-to-be-installed one
12298 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12299 test "$hardcode_minus_L_CXX" != no; then
12300 # Linking always hardcodes the temporary library directory.
12301 hardcode_action_CXX=relink
12303 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12304 hardcode_action_CXX=immediate
12307 # We cannot hardcode anything, or else we can only hardcode existing
12309 hardcode_action_CXX=unsupported
12311 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12312 echo "${ECHO_T}$hardcode_action_CXX" >&6
12314 if test "$hardcode_action_CXX" = relink; then
12315 # Fast installation is not supported
12316 enable_fast_install=no
12317 elif test "$shlibpath_overrides_runpath" = yes ||
12318 test "$enable_shared" = no; then
12319 # Fast installation is not necessary
12320 enable_fast_install=needless
12325 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12326 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12327 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12328 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12329 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12330 echo "$as_me:$LINENO: result: yes" >&5
12331 echo "${ECHO_T}yes" >&6
12333 # FIXME - insert some real tests, host_os isn't really good enough
12336 if test -n "$STRIP" ; then
12337 striplib="$STRIP -x"
12338 echo "$as_me:$LINENO: result: yes" >&5
12339 echo "${ECHO_T}yes" >&6
12341 echo "$as_me:$LINENO: result: no" >&5
12342 echo "${ECHO_T}no" >&6
12346 echo "$as_me:$LINENO: result: no" >&5
12347 echo "${ECHO_T}no" >&6
12352 if test "x$enable_dlopen" != xyes; then
12353 enable_dlopen=unknown
12354 enable_dlopen_self=unknown
12355 enable_dlopen_self_static=unknown
12362 lt_cv_dlopen="load_add_on"
12364 lt_cv_dlopen_self=yes
12368 lt_cv_dlopen="LoadLibrary"
12373 lt_cv_dlopen="dlopen"
12378 # if libdl is installed we need to link against it
12379 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12380 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12381 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 ac_check_lib_save_LIBS=$LIBS
12386 cat >conftest.$ac_ext <<_ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12393 /* Override any gcc2 internal prototype to avoid an error. */
12397 /* We use char because int might match the return type of a gcc2
12398 builtin and then its argument prototype would still apply. */
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410 (eval $ac_link) 2>conftest.er1
12412 grep -v '^ *+' conftest.er1 >conftest.err
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_cxx_werror_flag"
12418 || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 ac_cv_lib_dl_dlopen=yes
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ac_cv_lib_dl_dlopen=no
12437 rm -f conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12441 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12442 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12443 if test $ac_cv_lib_dl_dlopen = yes; then
12444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12447 lt_cv_dlopen="dyld"
12449 lt_cv_dlopen_self=yes
12456 echo "$as_me:$LINENO: checking for shl_load" >&5
12457 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12458 if test "${ac_cv_func_shl_load+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 cat >conftest.$ac_ext <<_ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12469 #define shl_load innocuous_shl_load
12471 /* System header to define __stub macros and hopefully few prototypes,
12472 which can conflict with char shl_load (); below.
12473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12474 <limits.h> exists even on freestanding compilers. */
12477 # include <limits.h>
12479 # include <assert.h>
12484 /* Override any gcc2 internal prototype to avoid an error. */
12489 /* We use char because int might match the return type of a gcc2
12490 builtin and then its argument prototype would still apply. */
12492 /* The GNU C library defines this for functions which it implements
12493 to always fail with ENOSYS. Some functions are actually named
12494 something starting with __ and the normal name is an alias. */
12495 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12498 char (*f) () = shl_load;
12507 return f != shl_load;
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>conftest.er1
12516 grep -v '^ *+' conftest.er1 >conftest.err
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try='test -z "$ac_cxx_werror_flag"
12522 || test ! -s conftest.err'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try='test -s conftest$ac_exeext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_cv_func_shl_load=yes
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12539 ac_cv_func_shl_load=no
12541 rm -f conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12544 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12545 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12546 if test $ac_cv_func_shl_load = yes; then
12547 lt_cv_dlopen="shl_load"
12549 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12550 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12551 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 ac_check_lib_save_LIBS=$LIBS
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12563 /* Override any gcc2 internal prototype to avoid an error. */
12567 /* We use char because int might match the return type of a gcc2
12568 builtin and then its argument prototype would still apply. */
12578 rm -f conftest.$ac_objext conftest$ac_exeext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12580 (eval $ac_link) 2>conftest.er1
12582 grep -v '^ *+' conftest.er1 >conftest.err
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -z "$ac_cxx_werror_flag"
12588 || test ! -s conftest.err'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12600 ac_cv_lib_dld_shl_load=yes
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 ac_cv_lib_dld_shl_load=no
12607 rm -f conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12611 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12612 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12613 if test $ac_cv_lib_dld_shl_load = yes; then
12614 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12616 echo "$as_me:$LINENO: checking for dlopen" >&5
12617 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12618 if test "${ac_cv_func_dlopen+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 cat >conftest.$ac_ext <<_ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12629 #define dlopen innocuous_dlopen
12631 /* System header to define __stub macros and hopefully few prototypes,
12632 which can conflict with char dlopen (); below.
12633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12634 <limits.h> exists even on freestanding compilers. */
12637 # include <limits.h>
12639 # include <assert.h>
12644 /* Override any gcc2 internal prototype to avoid an error. */
12649 /* We use char because int might match the return type of a gcc2
12650 builtin and then its argument prototype would still apply. */
12652 /* The GNU C library defines this for functions which it implements
12653 to always fail with ENOSYS. Some functions are actually named
12654 something starting with __ and the normal name is an alias. */
12655 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12658 char (*f) () = dlopen;
12667 return f != dlopen;
12672 rm -f conftest.$ac_objext conftest$ac_exeext
12673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12674 (eval $ac_link) 2>conftest.er1
12676 grep -v '^ *+' conftest.er1 >conftest.err
12678 cat conftest.err >&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } &&
12681 { ac_try='test -z "$ac_cxx_werror_flag"
12682 || test ! -s conftest.err'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; } &&
12688 { ac_try='test -s conftest$ac_exeext'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 ac_cv_func_dlopen=yes
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 ac_cv_func_dlopen=no
12701 rm -f conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12704 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12705 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12706 if test $ac_cv_func_dlopen = yes; then
12707 lt_cv_dlopen="dlopen"
12709 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12710 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 ac_check_lib_save_LIBS=$LIBS
12716 cat >conftest.$ac_ext <<_ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12723 /* Override any gcc2 internal prototype to avoid an error. */
12727 /* We use char because int might match the return type of a gcc2
12728 builtin and then its argument prototype would still apply. */
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740 (eval $ac_link) 2>conftest.er1
12742 grep -v '^ *+' conftest.er1 >conftest.err
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try='test -z "$ac_cxx_werror_flag"
12748 || test ! -s conftest.err'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; } &&
12754 { ac_try='test -s conftest$ac_exeext'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 ac_cv_lib_dl_dlopen=yes
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 ac_cv_lib_dl_dlopen=no
12767 rm -f conftest.err conftest.$ac_objext \
12768 conftest$ac_exeext conftest.$ac_ext
12769 LIBS=$ac_check_lib_save_LIBS
12771 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12772 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12773 if test $ac_cv_lib_dl_dlopen = yes; then
12774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12776 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12777 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12778 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 ac_check_lib_save_LIBS=$LIBS
12782 LIBS="-lsvld $LIBS"
12783 cat >conftest.$ac_ext <<_ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12790 /* Override any gcc2 internal prototype to avoid an error. */
12794 /* We use char because int might match the return type of a gcc2
12795 builtin and then its argument prototype would still apply. */
12805 rm -f conftest.$ac_objext conftest$ac_exeext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12807 (eval $ac_link) 2>conftest.er1
12809 grep -v '^ *+' conftest.er1 >conftest.err
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -z "$ac_cxx_werror_flag"
12815 || test ! -s conftest.err'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; } &&
12821 { ac_try='test -s conftest$ac_exeext'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12827 ac_cv_lib_svld_dlopen=yes
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12832 ac_cv_lib_svld_dlopen=no
12834 rm -f conftest.err conftest.$ac_objext \
12835 conftest$ac_exeext conftest.$ac_ext
12836 LIBS=$ac_check_lib_save_LIBS
12838 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12839 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12840 if test $ac_cv_lib_svld_dlopen = yes; then
12841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12843 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12844 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12845 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 ac_check_lib_save_LIBS=$LIBS
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12857 /* Override any gcc2 internal prototype to avoid an error. */
12861 /* We use char because int might match the return type of a gcc2
12862 builtin and then its argument prototype would still apply. */
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12874 (eval $ac_link) 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_cxx_werror_flag"
12882 || test ! -s conftest.err'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_cv_lib_dld_dld_link=yes
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ac_cv_lib_dld_dld_link=no
12901 rm -f conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12905 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12906 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12907 if test $ac_cv_lib_dld_dld_link = yes; then
12908 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12929 if test "x$lt_cv_dlopen" != xno; then
12935 case $lt_cv_dlopen in
12937 save_CPPFLAGS="$CPPFLAGS"
12938 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12940 save_LDFLAGS="$LDFLAGS"
12941 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12944 LIBS="$lt_cv_dlopen_libs $LIBS"
12946 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12947 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12948 if test "${lt_cv_dlopen_self+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 if test "$cross_compiling" = yes; then :
12952 lt_cv_dlopen_self=cross
12954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12955 lt_status=$lt_dlunknown
12956 cat > conftest.$ac_ext <<EOF
12957 #line 12957 "configure"
12958 #include "confdefs.h"
12967 # define LT_DLGLOBAL RTLD_GLOBAL
12970 # define LT_DLGLOBAL DL_GLOBAL
12972 # define LT_DLGLOBAL 0
12976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12977 find out it does not work in some platform. */
12978 #ifndef LT_DLLAZY_OR_NOW
12980 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12983 # define LT_DLLAZY_OR_NOW DL_LAZY
12986 # define LT_DLLAZY_OR_NOW RTLD_NOW
12989 # define LT_DLLAZY_OR_NOW DL_NOW
12991 # define LT_DLLAZY_OR_NOW 0
12999 extern "C" void exit (int);
13002 void fnord() { int i=42;}
13005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13006 int status = $lt_dlunknown;
13010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13011 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13012 /* dlclose (self); */
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13023 (./conftest; exit; ) 2>/dev/null
13025 case x$lt_status in
13026 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13027 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13028 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13031 # compilation failed
13032 lt_cv_dlopen_self=no
13039 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13040 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13042 if test "x$lt_cv_dlopen_self" = xyes; then
13043 LDFLAGS="$LDFLAGS $link_static_flag"
13044 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13045 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13046 if test "${lt_cv_dlopen_self_static+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 if test "$cross_compiling" = yes; then :
13050 lt_cv_dlopen_self_static=cross
13052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13053 lt_status=$lt_dlunknown
13054 cat > conftest.$ac_ext <<EOF
13055 #line 13055 "configure"
13056 #include "confdefs.h"
13065 # define LT_DLGLOBAL RTLD_GLOBAL
13068 # define LT_DLGLOBAL DL_GLOBAL
13070 # define LT_DLGLOBAL 0
13074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13075 find out it does not work in some platform. */
13076 #ifndef LT_DLLAZY_OR_NOW
13078 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13081 # define LT_DLLAZY_OR_NOW DL_LAZY
13084 # define LT_DLLAZY_OR_NOW RTLD_NOW
13087 # define LT_DLLAZY_OR_NOW DL_NOW
13089 # define LT_DLLAZY_OR_NOW 0
13097 extern "C" void exit (int);
13100 void fnord() { int i=42;}
13103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13104 int status = $lt_dlunknown;
13108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13110 /* dlclose (self); */
13116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117 (eval $ac_link) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13121 (./conftest; exit; ) 2>/dev/null
13123 case x$lt_status in
13124 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13125 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13126 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13129 # compilation failed
13130 lt_cv_dlopen_self_static=no
13137 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13138 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13141 CPPFLAGS="$save_CPPFLAGS"
13142 LDFLAGS="$save_LDFLAGS"
13147 case $lt_cv_dlopen_self in
13148 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13149 *) enable_dlopen_self=unknown ;;
13152 case $lt_cv_dlopen_self_static in
13153 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13154 *) enable_dlopen_self_static=unknown ;;
13159 # The else clause should only fire when bootstrapping the
13160 # libtool distribution, otherwise you forgot to ship ltmain.sh
13161 # with your package, and you will get complaints that there are
13162 # no rules to generate ltmain.sh.
13163 if test -f "$ltmain"; then
13164 # See if we are running on zsh, and set the options which allow our commands through
13165 # without removal of \ escapes.
13166 if test -n "${ZSH_VERSION+set}" ; then
13167 setopt NO_GLOB_SUBST
13169 # Now quote all the things that may contain metacharacters while being
13170 # careful not to overquote the AC_SUBSTed values. We take copies of the
13171 # variables and quote the copies for generation of the libtool script.
13172 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13174 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13175 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13176 deplibs_check_method reload_flag reload_cmds need_locks \
13177 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13178 lt_cv_sys_global_symbol_to_c_name_address \
13179 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13180 old_postinstall_cmds old_postuninstall_cmds \
13184 lt_prog_compiler_wl_CXX \
13185 lt_prog_compiler_pic_CXX \
13186 lt_prog_compiler_static_CXX \
13187 lt_prog_compiler_no_builtin_flag_CXX \
13188 export_dynamic_flag_spec_CXX \
13189 thread_safe_flag_spec_CXX \
13190 whole_archive_flag_spec_CXX \
13191 enable_shared_with_static_runtimes_CXX \
13192 old_archive_cmds_CXX \
13193 old_archive_from_new_cmds_CXX \
13194 predep_objects_CXX \
13195 postdep_objects_CXX \
13198 compiler_lib_search_path_CXX \
13200 archive_expsym_cmds_CXX \
13201 postinstall_cmds_CXX \
13202 postuninstall_cmds_CXX \
13203 old_archive_from_expsyms_cmds_CXX \
13204 allow_undefined_flag_CXX \
13205 no_undefined_flag_CXX \
13206 export_symbols_cmds_CXX \
13207 hardcode_libdir_flag_spec_CXX \
13208 hardcode_libdir_flag_spec_ld_CXX \
13209 hardcode_libdir_separator_CXX \
13210 hardcode_automatic_CXX \
13212 module_expsym_cmds_CXX \
13213 lt_cv_prog_compiler_c_o_CXX \
13214 exclude_expsyms_CXX \
13215 include_expsyms_CXX; do
13218 old_archive_cmds_CXX | \
13219 old_archive_from_new_cmds_CXX | \
13220 archive_cmds_CXX | \
13221 archive_expsym_cmds_CXX | \
13222 module_cmds_CXX | \
13223 module_expsym_cmds_CXX | \
13224 old_archive_from_expsyms_cmds_CXX | \
13225 export_symbols_cmds_CXX | \
13226 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13227 postinstall_cmds | postuninstall_cmds | \
13228 old_postinstall_cmds | old_postuninstall_cmds | \
13229 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13230 # Double-quote double-evaled strings.
13231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13240 *'\$0 --fallback-echo"')
13241 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13247 cat <<__EOF__ >> "$cfgfile"
13248 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13252 # Shell to use when invoking shell scripts.
13255 # Whether or not to build shared libraries.
13256 build_libtool_libs=$enable_shared
13258 # Whether or not to build static libraries.
13259 build_old_libs=$enable_static
13261 # Whether or not to add -lc for building shared libraries.
13262 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13264 # Whether or not to disallow shared libs when runtime libs are static
13265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13267 # Whether or not to optimize for fast installation.
13268 fast_install=$enable_fast_install
13271 host_alias=$host_alias
13274 # An echo program that does not interpret backslashes.
13279 AR_FLAGS=$lt_AR_FLAGS
13284 # A language-specific compiler.
13285 CC=$lt_compiler_CXX
13287 # Is the compiler the GNU C compiler?
13293 # The linker used to build libraries.
13296 # Whether we need hard or soft links.
13299 # A BSD-compatible nm program.
13302 # A symbol stripping program
13305 # Used to examine libraries when file_magic_cmd begins "file"
13306 MAGIC_CMD=$MAGIC_CMD
13308 # Used on cygwin: DLL creation program.
13311 # Used on cygwin: object dumper.
13314 # Used on cygwin: assembler.
13317 # The name of the directory that contains temporary libtool files.
13320 # How to create reloadable object files.
13321 reload_flag=$lt_reload_flag
13322 reload_cmds=$lt_reload_cmds
13324 # How to pass a linker flag through the compiler.
13325 wl=$lt_lt_prog_compiler_wl_CXX
13327 # Object file suffix (normally "o").
13328 objext="$ac_objext"
13330 # Old archive suffix (normally "a").
13333 # Shared library suffix (normally ".so").
13334 shrext_cmds='$shrext_cmds'
13336 # Executable file suffix (normally "").
13339 # Additional compiler flags for building library objects.
13340 pic_flag=$lt_lt_prog_compiler_pic_CXX
13343 # What is the maximum length of a command?
13344 max_cmd_len=$lt_cv_sys_max_cmd_len
13346 # Does compiler simultaneously support -c and -o options?
13347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13349 # Must we lock files when doing compilation ?
13350 need_locks=$lt_need_locks
13352 # Do we need the lib prefix for modules?
13353 need_lib_prefix=$need_lib_prefix
13355 # Do we need a version for libraries?
13356 need_version=$need_version
13358 # Whether dlopen is supported.
13359 dlopen_support=$enable_dlopen
13361 # Whether dlopen of programs is supported.
13362 dlopen_self=$enable_dlopen_self
13364 # Whether dlopen of statically linked programs is supported.
13365 dlopen_self_static=$enable_dlopen_self_static
13367 # Compiler flag to prevent dynamic linking.
13368 link_static_flag=$lt_lt_prog_compiler_static_CXX
13370 # Compiler flag to turn off builtin functions.
13371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13373 # Compiler flag to allow reflexive dlopens.
13374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13376 # Compiler flag to generate shared objects directly from archives.
13377 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13379 # Compiler flag to generate thread-safe objects.
13380 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13382 # Library versioning type.
13383 version_type=$version_type
13385 # Format of library name prefix.
13386 libname_spec=$lt_libname_spec
13388 # List of archive names. First name is the real one, the rest are links.
13389 # The last name is the one that the linker finds with -lNAME.
13390 library_names_spec=$lt_library_names_spec
13392 # The coded name of the library, if different from the real name.
13393 soname_spec=$lt_soname_spec
13395 # Commands used to build and install an old-style archive.
13397 old_archive_cmds=$lt_old_archive_cmds_CXX
13398 old_postinstall_cmds=$lt_old_postinstall_cmds
13399 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13401 # Create an old-style archive from a shared archive.
13402 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13404 # Create a temporary old-style archive to link instead of a shared archive.
13405 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13407 # Commands used to build and install a shared archive.
13408 archive_cmds=$lt_archive_cmds_CXX
13409 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13410 postinstall_cmds=$lt_postinstall_cmds
13411 postuninstall_cmds=$lt_postuninstall_cmds
13413 # Commands used to build a loadable module (assumed same as above if empty)
13414 module_cmds=$lt_module_cmds_CXX
13415 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13417 # Commands to strip libraries.
13418 old_striplib=$lt_old_striplib
13419 striplib=$lt_striplib
13421 # Dependencies to place before the objects being linked to create a
13423 predep_objects=$lt_predep_objects_CXX
13425 # Dependencies to place after the objects being linked to create a
13427 postdep_objects=$lt_postdep_objects_CXX
13429 # Dependencies to place before the objects being linked to create a
13431 predeps=$lt_predeps_CXX
13433 # Dependencies to place after the objects being linked to create a
13435 postdeps=$lt_postdeps_CXX
13437 # The library search path used internally by the compiler when linking
13438 # a shared library.
13439 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13441 # Method to check whether dependent libraries are shared objects.
13442 deplibs_check_method=$lt_deplibs_check_method
13444 # Command to use when deplibs_check_method == file_magic.
13445 file_magic_cmd=$lt_file_magic_cmd
13447 # Flag that allows shared libraries with undefined symbols to be built.
13448 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13450 # Flag that forces no undefined symbols.
13451 no_undefined_flag=$lt_no_undefined_flag_CXX
13453 # Commands used to finish a libtool library installation in a directory.
13454 finish_cmds=$lt_finish_cmds
13456 # Same as above, but a single script fragment to be evaled but not shown.
13457 finish_eval=$lt_finish_eval
13459 # Take the output of nm and produce a listing of raw symbols and C names.
13460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13462 # Transform the output of nm in a proper C declaration
13463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13465 # Transform the output of nm in a C name address pair
13466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13468 # This is the shared library runtime path variable.
13469 runpath_var=$runpath_var
13471 # This is the shared library path variable.
13472 shlibpath_var=$shlibpath_var
13474 # Is shlibpath searched before the hard-coded library search path?
13475 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13477 # How to hardcode a shared library path into an executable.
13478 hardcode_action=$hardcode_action_CXX
13480 # Whether we should hardcode library paths into libraries.
13481 hardcode_into_libs=$hardcode_into_libs
13483 # Flag to hardcode \$libdir into a binary during linking.
13484 # This must work even if \$libdir does not exist.
13485 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13487 # If ld is used when linking, flag to hardcode \$libdir into
13488 # a binary during linking. This must work even if \$libdir does
13490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13492 # Whether we need a single -rpath flag with a separated argument.
13493 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13495 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13496 # resulting binary.
13497 hardcode_direct=$hardcode_direct_CXX
13499 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13500 # resulting binary.
13501 hardcode_minus_L=$hardcode_minus_L_CXX
13503 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13504 # the resulting binary.
13505 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13507 # Set to yes if building a shared library automatically hardcodes DIR into the library
13508 # and all subsequent libraries and executables linked against it.
13509 hardcode_automatic=$hardcode_automatic_CXX
13511 # Variables whose values should be saved in libtool wrapper scripts and
13512 # restored at relink time.
13513 variables_saved_for_relink="$variables_saved_for_relink"
13515 # Whether libtool must link a program against all its dependency libraries.
13516 link_all_deplibs=$link_all_deplibs_CXX
13518 # Compile-time system search path for libraries
13519 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13521 # Run-time system search path for libraries
13522 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13524 # Fix the shell variable \$srcfile for the compiler.
13525 fix_srcfile_path="$fix_srcfile_path_CXX"
13527 # Set to yes if exported symbols are required.
13528 always_export_symbols=$always_export_symbols_CXX
13530 # The commands to list exported symbols.
13531 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13533 # The commands to extract the exported symbol list from a shared archive.
13534 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13536 # Symbols that should not be listed in the preloaded symbols.
13537 exclude_expsyms=$lt_exclude_expsyms_CXX
13539 # Symbols that must always be exported.
13540 include_expsyms=$lt_include_expsyms_CXX
13542 # ### END LIBTOOL TAG CONFIG: $tagname
13548 # If there is no Makefile yet, we rely on a make rule to execute
13549 # `config.status --recheck' to rerun these tests and create the
13550 # libtool script then.
13551 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13552 if test -f "$ltmain_in"; then
13553 test -f Makefile && make "$ltmain"
13559 ac_cpp='$CPP $CPPFLAGS'
13560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13568 with_gnu_ldcxx=$with_gnu_ld
13569 with_gnu_ld=$lt_save_with_gnu_ld
13570 lt_cv_path_LDCXX=$lt_cv_path_LD
13571 lt_cv_path_LD=$lt_save_path_LD
13572 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13573 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13581 if test -n "$F77" && test "X$F77" != "Xno"; then
13584 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13585 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13586 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13589 archive_cmds_need_lc_F77=no
13590 allow_undefined_flag_F77=
13591 always_export_symbols_F77=no
13592 archive_expsym_cmds_F77=
13593 export_dynamic_flag_spec_F77=
13594 hardcode_direct_F77=no
13595 hardcode_libdir_flag_spec_F77=
13596 hardcode_libdir_flag_spec_ld_F77=
13597 hardcode_libdir_separator_F77=
13598 hardcode_minus_L_F77=no
13599 hardcode_automatic_F77=no
13601 module_expsym_cmds_F77=
13602 link_all_deplibs_F77=unknown
13603 old_archive_cmds_F77=$old_archive_cmds
13604 no_undefined_flag_F77=
13605 whole_archive_flag_spec_F77=
13606 enable_shared_with_static_runtimes_F77=no
13608 # Source file extension for f77 test sources.
13611 # Object file extension for compiled f77 test sources.
13615 # Code to be used in simple compile tests
13616 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13618 # Code to be used in simple link tests
13619 lt_simple_link_test_code=" program t\n end\n"
13621 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13623 # If no C compiler was specified, use CC.
13626 # Allow CC to be a program name with arguments.
13630 # Allow CC to be a program name with arguments.
13635 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13637 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13638 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13639 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13640 echo "${ECHO_T}$can_build_shared" >&6
13642 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13643 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13644 test "$can_build_shared" = "no" && enable_shared=no
13646 # On AIX, shared libraries and static libraries use the same namespace, and
13647 # are all built from PIC.
13650 test "$enable_shared" = yes && enable_static=no
13651 if test -n "$RANLIB"; then
13652 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13653 postinstall_cmds='$RANLIB $lib'
13657 test "$enable_shared" = yes && enable_static=no
13660 echo "$as_me:$LINENO: result: $enable_shared" >&5
13661 echo "${ECHO_T}$enable_shared" >&6
13663 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13664 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13665 # Make sure either enable_shared or enable_static is yes.
13666 test "$enable_shared" = yes || enable_static=yes
13667 echo "$as_me:$LINENO: result: $enable_static" >&5
13668 echo "${ECHO_T}$enable_static" >&6
13670 test "$ld_shlibs_F77" = no && can_build_shared=no
13675 lt_prog_compiler_wl_F77=
13676 lt_prog_compiler_pic_F77=
13677 lt_prog_compiler_static_F77=
13679 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13680 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13682 if test "$GCC" = yes; then
13683 lt_prog_compiler_wl_F77='-Wl,'
13684 lt_prog_compiler_static_F77='-static'
13688 # All AIX code is PIC.
13689 if test "$host_cpu" = ia64; then
13690 # AIX 5 now supports IA64 processor
13691 lt_prog_compiler_static_F77='-Bstatic'
13696 # FIXME: we need at least 68020 code to build shared libraries, but
13697 # adding the `-m68020' flag to GCC prevents building anything better,
13699 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13702 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13703 # PIC is the default for these OSes.
13706 mingw* | pw32* | os2*)
13707 # This hack is so that the source file can tell whether it is being
13708 # built for inclusion in a dll (and should export symbols for example).
13709 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13712 darwin* | rhapsody*)
13713 # PIC is the default on this platform
13714 # Common symbols not allowed in MH_DYLIB files
13715 lt_prog_compiler_pic_F77='-fno-common'
13719 # Just because we use GCC doesn't mean we suddenly get shared libraries
13720 # on systems that don't support them.
13721 lt_prog_compiler_can_build_shared_F77=no
13726 if test -d /usr/nec; then
13727 lt_prog_compiler_pic_F77=-Kconform_pic
13732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13733 # not for PA HP-UX.
13734 case "$host_cpu" in
13739 lt_prog_compiler_pic_F77='-fPIC'
13745 lt_prog_compiler_pic_F77='-fPIC'
13749 # PORTME Check for flag to pass linker flags through the system compiler.
13752 lt_prog_compiler_wl_F77='-Wl,'
13753 if test "$host_cpu" = ia64; then
13754 # AIX 5 now supports IA64 processor
13755 lt_prog_compiler_static_F77='-Bstatic'
13757 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13761 # PIC is the default on this platform
13762 # Common symbols not allowed in MH_DYLIB files
13763 case "$cc_basename" in
13765 lt_prog_compiler_pic_F77='-qnocommon'
13766 lt_prog_compiler_wl_F77='-Wl,'
13771 mingw* | pw32* | os2*)
13772 # This hack is so that the source file can tell whether it is being
13773 # built for inclusion in a dll (and should export symbols for example).
13774 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13777 hpux9* | hpux10* | hpux11*)
13778 lt_prog_compiler_wl_F77='-Wl,'
13779 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13780 # not for PA HP-UX.
13781 case "$host_cpu" in
13786 lt_prog_compiler_pic_F77='+Z'
13789 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13790 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13793 irix5* | irix6* | nonstopux*)
13794 lt_prog_compiler_wl_F77='-Wl,'
13795 # PIC (with -KPIC) is the default.
13796 lt_prog_compiler_static_F77='-non_shared'
13800 lt_prog_compiler_pic_F77='-KPIC'
13801 lt_prog_compiler_static_F77='-Bstatic'
13807 lt_prog_compiler_wl_F77='-Wl,'
13808 lt_prog_compiler_pic_F77='-KPIC'
13809 lt_prog_compiler_static_F77='-static'
13812 lt_prog_compiler_wl_F77='-Wl,'
13813 # All Alpha code is PIC.
13814 lt_prog_compiler_static_F77='-non_shared'
13819 osf3* | osf4* | osf5*)
13820 lt_prog_compiler_wl_F77='-Wl,'
13821 # All OSF/1 code is PIC.
13822 lt_prog_compiler_static_F77='-non_shared'
13826 lt_prog_compiler_pic_F77='-Kpic'
13827 lt_prog_compiler_static_F77='-dn'
13831 lt_prog_compiler_wl_F77='-Wl,'
13832 lt_prog_compiler_pic_F77='-KPIC'
13833 lt_prog_compiler_static_F77='-Bstatic'
13837 lt_prog_compiler_wl_F77='-Qoption ld '
13838 lt_prog_compiler_pic_F77='-PIC'
13839 lt_prog_compiler_static_F77='-Bstatic'
13842 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13843 lt_prog_compiler_wl_F77='-Wl,'
13844 lt_prog_compiler_pic_F77='-KPIC'
13845 lt_prog_compiler_static_F77='-Bstatic'
13849 if test -d /usr/nec ;then
13850 lt_prog_compiler_pic_F77='-Kconform_pic'
13851 lt_prog_compiler_static_F77='-Bstatic'
13856 lt_prog_compiler_pic_F77='-pic'
13857 lt_prog_compiler_static_F77='-Bstatic'
13861 lt_prog_compiler_can_build_shared_F77=no
13866 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13867 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13870 # Check to make sure the PIC flag actually works.
13872 if test -n "$lt_prog_compiler_pic_F77"; then
13874 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13875 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13876 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 lt_prog_compiler_pic_works_F77=no
13880 ac_outfile=conftest.$ac_objext
13881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13882 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13883 # Insert the option either (1) after the last *FLAGS variable, or
13884 # (2) before a word containing "conftest.", or (3) at the end.
13885 # Note that $ac_compile itself does not contain backslashes and begins
13886 # with a dollar sign (not a hyphen), so the echo should work correctly.
13887 # The option is referenced via a variable to avoid confusing sed.
13888 lt_compile=`echo "$ac_compile" | $SED \
13889 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13891 -e 's:$: $lt_compiler_flag:'`
13892 (eval echo "\"\$as_me:13892: $lt_compile\"" >&5)
13893 (eval "$lt_compile" 2>conftest.err)
13895 cat conftest.err >&5
13896 echo "$as_me:13896: \$? = $ac_status" >&5
13897 if (exit $ac_status) && test -s "$ac_outfile"; then
13898 # The compiler can only warn and ignore the option if not recognized
13899 # So say no if there are warnings
13900 if test ! -s conftest.err; then
13901 lt_prog_compiler_pic_works_F77=yes
13907 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13908 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13910 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13911 case $lt_prog_compiler_pic_F77 in
13913 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13916 lt_prog_compiler_pic_F77=
13917 lt_prog_compiler_can_build_shared_F77=no
13922 # For platforms which do not support PIC, -DPIC is meaningless:
13924 lt_prog_compiler_pic_F77=
13927 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13931 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13932 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13933 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 lt_cv_prog_compiler_c_o_F77=no
13937 $rm -r conftest 2>/dev/null
13941 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13943 lt_compiler_flag="-o out/conftest2.$ac_objext"
13944 # Insert the option either (1) after the last *FLAGS variable, or
13945 # (2) before a word containing "conftest.", or (3) at the end.
13946 # Note that $ac_compile itself does not contain backslashes and begins
13947 # with a dollar sign (not a hyphen), so the echo should work correctly.
13948 lt_compile=`echo "$ac_compile" | $SED \
13949 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13951 -e 's:$: $lt_compiler_flag:'`
13952 (eval echo "\"\$as_me:13952: $lt_compile\"" >&5)
13953 (eval "$lt_compile" 2>out/conftest.err)
13955 cat out/conftest.err >&5
13956 echo "$as_me:13956: \$? = $ac_status" >&5
13957 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13959 # The compiler can only warn and ignore the option if not recognized
13960 # So say no if there are warnings
13961 if test ! -s out/conftest.err; then
13962 lt_cv_prog_compiler_c_o_F77=yes
13967 # SGI C++ compiler will create directory out/ii_files/ for
13968 # template instantiation
13969 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13970 $rm out/* && rmdir out
13976 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13977 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13980 hard_links="nottested"
13981 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13982 # do not overwrite the value of need_locks provided by the user
13983 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13984 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13989 ln conftest.a conftest.b 2>&5 || hard_links=no
13990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13991 echo "$as_me:$LINENO: result: $hard_links" >&5
13992 echo "${ECHO_T}$hard_links" >&6
13993 if test "$hard_links" = no; then
13994 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13995 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14002 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14003 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14006 allow_undefined_flag_F77=
14007 enable_shared_with_static_runtimes_F77=no
14009 archive_expsym_cmds_F77=
14010 old_archive_From_new_cmds_F77=
14011 old_archive_from_expsyms_cmds_F77=
14012 export_dynamic_flag_spec_F77=
14013 whole_archive_flag_spec_F77=
14014 thread_safe_flag_spec_F77=
14015 hardcode_libdir_flag_spec_F77=
14016 hardcode_libdir_flag_spec_ld_F77=
14017 hardcode_libdir_separator_F77=
14018 hardcode_direct_F77=no
14019 hardcode_minus_L_F77=no
14020 hardcode_shlibpath_var_F77=unsupported
14021 link_all_deplibs_F77=unknown
14022 hardcode_automatic_F77=no
14024 module_expsym_cmds_F77=
14025 always_export_symbols_F77=no
14026 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14027 # include_expsyms should be a list of space-separated symbols to be *always*
14028 # included in the symbol list
14029 include_expsyms_F77=
14030 # exclude_expsyms can be an extended regexp of symbols to exclude
14031 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14032 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14033 # as well as any symbol that contains `d'.
14034 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14035 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14036 # platforms (ab)use it in PIC code, but their linkers get confused if
14037 # the symbol is explicitly referenced. Since portable code cannot
14038 # rely on this symbol name, it's probably fine to never include it in
14039 # preloaded symbol tables.
14040 extract_expsyms_cmds=
14043 cygwin* | mingw* | pw32*)
14044 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14045 # When not using gcc, we currently assume that we are using
14046 # Microsoft Visual C++.
14047 if test "$GCC" != yes; then
14057 if test "$with_gnu_ld" = yes; then
14058 # If archive_cmds runs LD, not CC, wlarc should be empty
14061 # See if GNU ld supports shared libraries.
14063 aix3* | aix4* | aix5*)
14064 # On AIX/PPC, the GNU linker is very broken
14065 if test "$host_cpu" != ia64; then
14069 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14070 *** to be unable to reliably create shared libraries on AIX.
14071 *** Therefore, libtool is disabling shared libraries support. If you
14072 *** really care for shared libraries, you may want to modify your PATH
14073 *** so that a non-GNU linker is found, and then restart.
14080 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)'
14081 hardcode_libdir_flag_spec_F77='-L$libdir'
14082 hardcode_minus_L_F77=yes
14084 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14085 # that the semantics of dynamic libraries on AmigaOS, at least up
14086 # to version 4, is to share data among multiple programs linked
14087 # with the same dynamic library. Since this doesn't match the
14088 # behavior of shared libraries on other platforms, we can't use
14094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14095 allow_undefined_flag_F77=unsupported
14096 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14097 # support --undefined. This deserves some investigation. FIXME
14098 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14104 cygwin* | mingw* | pw32*)
14105 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14106 # as there is no search path for DLLs.
14107 hardcode_libdir_flag_spec_F77='-L$libdir'
14108 allow_undefined_flag_F77=unsupported
14109 always_export_symbols_F77=no
14110 enable_shared_with_static_runtimes_F77=yes
14111 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14113 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14114 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14115 # If the export-symbols file already is a .def file (1st line
14116 # is EXPORTS), use it as is; otherwise, prepend...
14117 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14118 cp $export_symbols $output_objdir/$soname.def;
14120 echo EXPORTS > $output_objdir/$soname.def;
14121 cat $export_symbols >> $output_objdir/$soname.def;
14123 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14131 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14134 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14135 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14140 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14145 *** create shared libraries on Solaris systems. Therefore, libtool
14146 *** is disabling shared libraries support. We urge you to upgrade GNU
14147 *** binutils to release 2.9.1 or newer. Another option is to modify
14148 *** your PATH or compiler configuration so that the native linker is
14149 *** used, and then restart.
14152 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14153 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14161 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14163 hardcode_direct_F77=yes
14164 hardcode_shlibpath_var_F77=no
14168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14169 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14170 archive_cmds_F77="$tmp_archive_cmds"
14171 supports_anon_versioning=no
14172 case `$LD -v 2>/dev/null` in
14173 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14174 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14175 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14176 *\ 2.11.*) ;; # other 2.11 versions
14177 *) supports_anon_versioning=yes ;;
14179 if test $supports_anon_versioning = yes; then
14180 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14181 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14182 $echo "local: *; };" >> $output_objdir/$libname.ver~
14183 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14185 archive_expsym_cmds_F77="$tmp_archive_cmds"
14193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14194 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14195 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14202 if test "$ld_shlibs_F77" = yes; then
14203 runpath_var=LD_RUN_PATH
14204 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14205 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14206 # ancient GNU ld didn't support --whole-archive et. al.
14207 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14208 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14210 whole_archive_flag_spec_F77=
14214 # PORTME fill in a description of your system's linker (not GNU ld)
14217 allow_undefined_flag_F77=unsupported
14218 always_export_symbols_F77=yes
14219 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'
14220 # Note: this linker hardcodes the directories in LIBPATH if there
14221 # are no directories specified by -L.
14222 hardcode_minus_L_F77=yes
14223 if test "$GCC" = yes && test -z "$link_static_flag"; then
14224 # Neither direct hardcoding nor static linking is supported with a
14226 hardcode_direct_F77=unsupported
14231 if test "$host_cpu" = ia64; then
14232 # On IA64, the linker does run time linking by default, so we don't
14233 # have to do anything special.
14234 aix_use_runtimelinking=no
14235 exp_sym_flag='-Bexport'
14238 # If we're using GNU nm, then we don't want the "-C" option.
14239 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14240 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14241 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'
14243 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'
14245 aix_use_runtimelinking=no
14247 # Test if we are trying to use run time linking or normal
14248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14249 # need to do runtime linking.
14250 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14251 for ld_flag in $LDFLAGS; do
14252 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14253 aix_use_runtimelinking=yes
14259 exp_sym_flag='-bexport'
14260 no_entry_flag='-bnoentry'
14263 # When large executables or shared objects are built, AIX ld can
14264 # have problems creating the table of contents. If linking a library
14265 # or program results in "error TOC overflow" add -mminimal-toc to
14266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14269 archive_cmds_F77=''
14270 hardcode_direct_F77=yes
14271 hardcode_libdir_separator_F77=':'
14272 link_all_deplibs_F77=yes
14274 if test "$GCC" = yes; then
14275 case $host_os in aix4.012|aix4.012.*)
14276 # We only want to do this on AIX 4.2 and lower, the check
14277 # below for broken collect2 doesn't work under 4.3+
14278 collect2name=`${CC} -print-prog-name=collect2`
14279 if test -f "$collect2name" && \
14280 strings "$collect2name" | grep resolve_lib_name >/dev/null
14282 # We have reworked collect2
14283 hardcode_direct_F77=yes
14285 # We have old collect2
14286 hardcode_direct_F77=unsupported
14287 # It fails to find uninstalled libraries when the uninstalled
14288 # path is not listed in the libpath. Setting hardcode_minus_L
14289 # to unsupported forces relinking
14290 hardcode_minus_L_F77=yes
14291 hardcode_libdir_flag_spec_F77='-L$libdir'
14292 hardcode_libdir_separator_F77=
14295 shared_flag='-shared'
14298 if test "$host_cpu" = ia64; then
14299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14300 # chokes on -Wl,-G. The following line is correct:
14303 if test "$aix_use_runtimelinking" = yes; then
14304 shared_flag='${wl}-G'
14306 shared_flag='${wl}-bM:SRE'
14311 # It seems that -bexpall does not export symbols beginning with
14312 # underscore (_), so it is better to generate a list of symbols to export.
14313 always_export_symbols_F77=yes
14314 if test "$aix_use_runtimelinking" = yes; then
14315 # Warning - without using the other runtime loading flags (-brtl),
14316 # -berok will link without error, but may produce a broken library.
14317 allow_undefined_flag_F77='-berok'
14318 # Determine the default libpath from the value encoded in an empty executable.
14319 cat >conftest.$ac_ext <<_ACEOF
14324 rm -f conftest.$ac_objext conftest$ac_exeext
14325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14326 (eval $ac_link) 2>conftest.er1
14328 grep -v '^ *+' conftest.er1 >conftest.err
14330 cat conftest.err >&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
14333 { ac_try='test -z "$ac_f77_werror_flag"
14334 || test ! -s conftest.err'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; } &&
14340 { ac_try='test -s conftest$ac_exeext'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14349 # Check for a 64-bit object if we didn't find anything.
14350 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; }
14353 echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14357 rm -f conftest.err conftest.$ac_objext \
14358 conftest$ac_exeext conftest.$ac_ext
14359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14361 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14362 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"
14364 if test "$host_cpu" = ia64; then
14365 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14366 allow_undefined_flag_F77="-z nodefs"
14367 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"
14369 # Determine the default libpath from the value encoded in an empty executable.
14370 cat >conftest.$ac_ext <<_ACEOF
14375 rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14377 (eval $ac_link) 2>conftest.er1
14379 grep -v '^ *+' conftest.er1 >conftest.err
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_f77_werror_flag"
14385 || test ! -s conftest.err'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } &&
14391 { ac_try='test -s conftest$ac_exeext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14400 # Check for a 64-bit object if we didn't find anything.
14401 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; }
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14408 rm -f conftest.err conftest.$ac_objext \
14409 conftest$ac_exeext conftest.$ac_ext
14410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14412 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14413 # Warning - without using the other run time loading flags,
14414 # -berok will link without error, but may produce a broken library.
14415 no_undefined_flag_F77=' ${wl}-bernotok'
14416 allow_undefined_flag_F77=' ${wl}-berok'
14417 # -bexpall does not export symbols beginning with underscore (_)
14418 always_export_symbols_F77=yes
14419 # Exported symbols can be pulled into shared objects from archives
14420 whole_archive_flag_spec_F77=' '
14421 archive_cmds_need_lc_F77=yes
14422 # This is similar to how AIX traditionally builds it's shared libraries.
14423 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'
14429 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)'
14430 hardcode_libdir_flag_spec_F77='-L$libdir'
14431 hardcode_minus_L_F77=yes
14432 # see comment about different semantics on the GNU ld section
14437 export_dynamic_flag_spec_F77=-rdynamic
14440 cygwin* | mingw* | pw32*)
14441 # When not using gcc, we currently assume that we are using
14442 # Microsoft Visual C++.
14443 # hardcode_libdir_flag_spec is actually meaningless, as there is
14444 # no search path for DLLs.
14445 hardcode_libdir_flag_spec_F77=' '
14446 allow_undefined_flag_F77=unsupported
14447 # Tell ltmain to make .lib files, not .a files.
14449 # Tell ltmain to make .dll files, not .so files.
14451 # FIXME: Setting linknames here is a bad hack.
14452 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14453 # The linker will automatically build a .lib file if we build a DLL.
14454 old_archive_From_new_cmds_F77='true'
14455 # FIXME: Should let the user specify the lib program.
14456 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14457 fix_srcfile_path='`cygpath -w "$srcfile"`'
14458 enable_shared_with_static_runtimes_F77=yes
14461 darwin* | rhapsody*)
14463 rhapsody* | darwin1.[012])
14464 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14467 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14468 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14470 case ${MACOSX_DEPLOYMENT_TARGET} in
14472 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14475 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14481 archive_cmds_need_lc_F77=no
14482 hardcode_direct_F77=no
14483 hardcode_automatic_F77=yes
14484 hardcode_shlibpath_var_F77=unsupported
14485 whole_archive_flag_spec_F77=''
14486 link_all_deplibs_F77=yes
14487 if test "$GCC" = yes ; then
14488 output_verbose_link_cmd='echo'
14489 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14490 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14491 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14492 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14493 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14495 case "$cc_basename" in
14497 output_verbose_link_cmd='echo'
14498 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14499 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14501 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14502 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14513 hardcode_libdir_flag_spec_F77='-L$libdir'
14514 hardcode_shlibpath_var_F77=no
14521 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14522 # support. Future versions do this automatically, but an explicit c++rt0.o
14523 # does not break anything, and helps significantly (at the cost of a little
14526 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14527 hardcode_libdir_flag_spec_F77='-R$libdir'
14528 hardcode_direct_F77=yes
14529 hardcode_shlibpath_var_F77=no
14532 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14534 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14535 hardcode_direct_F77=yes
14536 hardcode_minus_L_F77=yes
14537 hardcode_shlibpath_var_F77=no
14540 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14541 freebsd* | kfreebsd*-gnu)
14542 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14543 hardcode_libdir_flag_spec_F77='-R$libdir'
14544 hardcode_direct_F77=yes
14545 hardcode_shlibpath_var_F77=no
14549 if test "$GCC" = yes; then
14550 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'
14552 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'
14554 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14555 hardcode_libdir_separator_F77=:
14556 hardcode_direct_F77=yes
14558 # hardcode_minus_L: Not really in the search PATH,
14559 # but as the default location of the library.
14560 hardcode_minus_L_F77=yes
14561 export_dynamic_flag_spec_F77='${wl}-E'
14565 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14566 case "$host_cpu" in
14568 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14571 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14575 case "$host_cpu" in
14577 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14580 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14584 if test "$with_gnu_ld" = no; then
14585 case "$host_cpu" in
14587 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14588 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14589 hardcode_libdir_separator_F77=:
14590 hardcode_direct_F77=no
14591 hardcode_shlibpath_var_F77=no
14594 hardcode_libdir_flag_spec_F77='-L$libdir'
14595 hardcode_direct_F77=no
14596 hardcode_shlibpath_var_F77=no
14598 # hardcode_minus_L: Not really in the search PATH,
14599 # but as the default location of the library.
14600 hardcode_minus_L_F77=yes
14603 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14604 hardcode_libdir_separator_F77=:
14605 hardcode_direct_F77=yes
14606 export_dynamic_flag_spec_F77='${wl}-E'
14608 # hardcode_minus_L: Not really in the search PATH,
14609 # but as the default location of the library.
14610 hardcode_minus_L_F77=yes
14616 irix5* | irix6* | nonstopux*)
14617 if test "$GCC" = yes; then
14618 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'
14620 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'
14621 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14623 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14624 hardcode_libdir_separator_F77=:
14625 link_all_deplibs_F77=yes
14629 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14630 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14632 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14634 hardcode_libdir_flag_spec_F77='-R$libdir'
14635 hardcode_direct_F77=yes
14636 hardcode_shlibpath_var_F77=no
14640 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14641 hardcode_direct_F77=yes
14642 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14643 hardcode_libdir_separator_F77=:
14644 hardcode_shlibpath_var_F77=no
14648 hardcode_direct_F77=yes
14649 hardcode_shlibpath_var_F77=no
14650 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14651 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14652 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14653 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14654 export_dynamic_flag_spec_F77='${wl}-E'
14657 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14658 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14659 hardcode_libdir_flag_spec_F77='-R$libdir'
14662 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14663 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14670 hardcode_libdir_flag_spec_F77='-L$libdir'
14671 hardcode_minus_L_F77=yes
14672 allow_undefined_flag_F77=unsupported
14673 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'
14674 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14678 if test "$GCC" = yes; then
14679 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14680 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'
14682 allow_undefined_flag_F77=' -expect_unresolved \*'
14683 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'
14685 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14686 hardcode_libdir_separator_F77=:
14689 osf4* | osf5*) # as osf3* with the addition of -msym flag
14690 if test "$GCC" = yes; then
14691 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14692 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'
14693 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14695 allow_undefined_flag_F77=' -expect_unresolved \*'
14696 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'
14697 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~
14698 $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'
14700 # Both c and cxx compiler support -rpath directly
14701 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14703 hardcode_libdir_separator_F77=:
14707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14708 hardcode_shlibpath_var_F77=no
14709 export_dynamic_flag_spec_F77='${wl}-Bexport'
14710 runpath_var=LD_RUN_PATH
14711 hardcode_runpath_var=yes
14715 no_undefined_flag_F77=' -z text'
14716 if test "$GCC" = yes; then
14717 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14718 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14719 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14721 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14722 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14723 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14725 hardcode_libdir_flag_spec_F77='-R$libdir'
14726 hardcode_shlibpath_var_F77=no
14728 solaris2.[0-5] | solaris2.[0-5].*) ;;
14729 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14730 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14732 link_all_deplibs_F77=yes
14736 if test "x$host_vendor" = xsequent; then
14737 # Use $CC to link under sequent, because it throws in some extra .o
14738 # files that make .init and .fini sections work.
14739 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14741 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14743 hardcode_libdir_flag_spec_F77='-L$libdir'
14744 hardcode_direct_F77=yes
14745 hardcode_minus_L_F77=yes
14746 hardcode_shlibpath_var_F77=no
14750 case $host_vendor in
14752 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14753 hardcode_direct_F77=yes # is this really true???
14756 ## LD is ld it makes a PLAMLIB
14757 ## CC just makes a GrossModule.
14758 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14759 reload_cmds_F77='$CC -r -o $output$reload_objs'
14760 hardcode_direct_F77=no
14763 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14764 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14767 runpath_var='LD_RUN_PATH'
14768 hardcode_shlibpath_var_F77=no
14772 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773 hardcode_shlibpath_var_F77=no
14774 export_dynamic_flag_spec_F77='-Bexport'
14778 if test -d /usr/nec; then
14779 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14780 hardcode_shlibpath_var_F77=no
14781 runpath_var=LD_RUN_PATH
14782 hardcode_runpath_var=yes
14788 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14789 hardcode_direct_F77=yes
14790 hardcode_minus_L_F77=no
14791 hardcode_shlibpath_var_F77=no
14792 hardcode_runpath_var=yes
14793 runpath_var=LD_RUN_PATH
14796 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14797 no_undefined_flag_F77='${wl}-z ${wl}text'
14798 if test "$GCC" = yes; then
14799 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14801 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14803 runpath_var='LD_RUN_PATH'
14804 hardcode_shlibpath_var_F77=no
14808 no_undefined_flag_F77=' -z text'
14809 # $CC -shared without GNU ld will not create a library from C++
14810 # object files and a static libstdc++, better avoid it by now
14811 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14812 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14813 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14814 hardcode_libdir_flag_spec_F77=
14815 hardcode_shlibpath_var_F77=no
14816 runpath_var='LD_RUN_PATH'
14820 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14821 hardcode_libdir_flag_spec_F77='-L$libdir'
14822 hardcode_shlibpath_var_F77=no
14831 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14832 echo "${ECHO_T}$ld_shlibs_F77" >&6
14833 test "$ld_shlibs_F77" = no && can_build_shared=no
14835 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14836 if test "$GCC" = yes; then
14837 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14841 # Do we need to explicitly link libc?
14843 case "x$archive_cmds_need_lc_F77" in
14845 # Assume -lc should be added
14846 archive_cmds_need_lc_F77=yes
14848 if test "$enable_shared" = yes && test "$GCC" = yes; then
14849 case $archive_cmds_F77 in
14851 # FIXME: we may have to deal with multi-command sequences.
14854 # Test whether the compiler implicitly links with -lc since on some
14855 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14856 # to ld, don't add -lc before -lgcc.
14857 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14858 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14863 (eval $ac_compile) 2>&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } 2>conftest.err; then
14869 libobjs=conftest.$ac_objext
14871 wl=$lt_prog_compiler_wl_F77
14877 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14878 allow_undefined_flag_F77=
14879 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14880 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }
14885 archive_cmds_need_lc_F77=no
14887 archive_cmds_need_lc_F77=yes
14889 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14891 cat conftest.err 1>&5
14894 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14895 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14902 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14903 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14904 library_names_spec=
14905 libname_spec='lib$name'
14909 postuninstall_cmds=
14913 shlibpath_overrides_runpath=unknown
14915 dynamic_linker="$host_os ld.so"
14916 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14917 if test "$GCC" = yes; then
14918 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14919 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14920 # if the path contains ";" then we assume it to be the separator
14921 # otherwise default to the standard path separator (i.e. ":") - it is
14922 # assumed that no part of a normal pathname contains ";" but that should
14923 # okay in the real world where ";" in dirpaths is itself problematic.
14924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14929 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14931 need_lib_prefix=unknown
14932 hardcode_into_libs=no
14934 # when you set need_version to no, make sure it does not cause -set_version
14935 # flags to be left without arguments
14936 need_version=unknown
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14942 shlibpath_var=LIBPATH
14944 # AIX 3 has no versioning support, so we append a major version to the name.
14945 soname_spec='${libname}${release}${shared_ext}$major'
14952 hardcode_into_libs=yes
14953 if test "$host_cpu" = ia64; then
14954 # AIX 5 supports IA64
14955 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14956 shlibpath_var=LD_LIBRARY_PATH
14958 # With GCC up to 2.95.x, collect2 would create an import file
14959 # for dependence libraries. The import file would start with
14960 # the line `#! .'. This would cause the generated library to
14961 # depend on `.', always an invalid library. This was fixed in
14962 # development snapshots of GCC prior to 3.0.
14964 aix4 | aix4.[01] | aix4.[01].*)
14965 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14967 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14970 can_build_shared=no
14974 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14975 # soname into executable. Probably we can add versioning support to
14976 # collect2, so additional links can be useful in future.
14977 if test "$aix_use_runtimelinking" = yes; then
14978 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14979 # instead of lib<name>.a to let people know that these are not
14980 # typical AIX shared libraries.
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14983 # We preserve .a as extension for shared libraries through AIX4.2
14984 # and later when we are not doing run time linking.
14985 library_names_spec='${libname}${release}.a $libname.a'
14986 soname_spec='${libname}${release}${shared_ext}$major'
14988 shlibpath_var=LIBPATH
14993 library_names_spec='$libname.ixlibrary $libname.a'
14994 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14995 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'
14999 library_names_spec='${libname}${shared_ext}'
15000 dynamic_linker="$host_os ld.so"
15001 shlibpath_var=LIBRARY_PATH
15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15008 soname_spec='${libname}${release}${shared_ext}$major'
15009 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15010 shlibpath_var=LD_LIBRARY_PATH
15011 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15012 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15013 # the default ld.so.conf also contains /usr/contrib/lib and
15014 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15015 # libtool to hard-code these into programs
15018 cygwin* | mingw* | pw32*)
15019 version_type=windows
15024 case $GCC,$host_os in
15025 yes,cygwin* | yes,mingw* | yes,pw32*)
15026 library_names_spec='$libname.dll.a'
15027 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15028 postinstall_cmds='base_file=`basename \${file}`~
15029 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15030 dldir=$destdir/`dirname \$dlpath`~
15031 test -d \$dldir || mkdir -p \$dldir~
15032 $install_prog $dir/$dlname \$dldir/$dlname'
15033 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15034 dlpath=$dir/\$dldll~
15036 shlibpath_overrides_runpath=yes
15040 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15041 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15042 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15045 # MinGW DLLs use traditional 'lib' prefix
15046 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15047 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15048 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15049 # It is most probably a Windows format PATH printed by
15050 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15051 # path with ; separators, and with drive letters. We can handle the
15052 # drive letters (cygwin fileutils understands them), so leave them,
15053 # especially as we might pass files found there to a mingw objdump,
15054 # which wouldn't understand a cygwinified path. Ahh.
15055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15061 # pw32 DLLs use 'pw' prefix rather than 'lib'
15062 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15068 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15071 dynamic_linker='Win32 ld.exe'
15072 # FIXME: first we should search . and the directory the executable is in
15076 darwin* | rhapsody*)
15077 dynamic_linker="$host_os dyld"
15078 version_type=darwin
15081 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15082 soname_spec='${libname}${release}${major}$shared_ext'
15083 shlibpath_overrides_runpath=yes
15084 shlibpath_var=DYLD_LIBRARY_PATH
15085 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15086 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15087 if test "$GCC" = yes; then
15088 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"`
15090 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15092 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 shlibpath_var=LD_LIBRARY_PATH
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15113 soname_spec='${libname}${release}${shared_ext}$major'
15114 shlibpath_var=LD_LIBRARY_PATH
15115 shlibpath_overrides_runpath=no
15116 hardcode_into_libs=yes
15117 dynamic_linker='GNU ld.so'
15121 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15122 version_type=freebsd-$objformat
15123 case $version_type in
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15134 shlibpath_var=LD_LIBRARY_PATH
15137 shlibpath_overrides_runpath=yes
15139 freebsd3.01* | freebsdelf3.01*)
15140 shlibpath_overrides_runpath=yes
15141 hardcode_into_libs=yes
15144 shlibpath_overrides_runpath=no
15145 hardcode_into_libs=yes
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15155 soname_spec='${libname}${release}${shared_ext}$major'
15156 shlibpath_var=LD_LIBRARY_PATH
15157 hardcode_into_libs=yes
15160 hpux9* | hpux10* | hpux11*)
15161 # Give a soname corresponding to the major version so that dld.sl refuses to
15162 # link against other versions.
15166 case "$host_cpu" in
15169 hardcode_into_libs=yes
15170 dynamic_linker="$host_os dld.so"
15171 shlibpath_var=LD_LIBRARY_PATH
15172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 if test "X$HPUX_IA64_MODE" = X32; then
15176 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15178 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15184 hardcode_into_libs=yes
15185 dynamic_linker="$host_os dld.sl"
15186 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 soname_spec='${libname}${release}${shared_ext}$major'
15190 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15195 dynamic_linker="$host_os dld.sl"
15196 shlibpath_var=SHLIB_PATH
15197 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15202 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15203 postinstall_cmds='chmod 555 $lib'
15206 irix5* | irix6* | nonstopux*)
15208 nonstopux*) version_type=nonstopux ;;
15210 if test "$lt_cv_prog_gnu_ld" = yes; then
15218 soname_spec='${libname}${release}${shared_ext}$major'
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15221 irix5* | nonstopux*)
15222 libsuff= shlibsuff=
15225 case $LD in # libtool.m4 will add one of these switches to LD
15226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15227 libsuff= shlibsuff= libmagic=32-bit;;
15228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15229 libsuff=32 shlibsuff=N32 libmagic=N32;;
15230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15232 *) libsuff= shlibsuff= libmagic=never-match;;
15236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15237 shlibpath_overrides_runpath=no
15238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15240 hardcode_into_libs=yes
15243 # No shared lib support for Linux oldld, aout, or coff.
15244 linux*oldld* | linux*aout* | linux*coff*)
15248 # This must be Linux ELF.
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 soname_spec='${libname}${release}${shared_ext}$major'
15255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=no
15258 # This implies no fast_install, which is unacceptable.
15259 # Some rework will be needed to allow for fast_install
15260 # before this can be enabled.
15261 hardcode_into_libs=yes
15263 # Append ld.so.conf contents to the search path
15264 if test -f /etc/ld.so.conf; then
15265 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15266 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15269 # We used to test for /lib/ld.so.1 and disable shared libraries on
15270 # powerpc, because MkLinux only supported shared libraries with the
15271 # GNU dynamic linker. Since this was broken with cross compilers,
15272 # most powerpc-linux boxes support dynamic linking these days and
15273 # people can always --disable-shared, the test was removed, and we
15274 # assume the GNU/Linux dynamic linker is in use.
15275 dynamic_linker='GNU/Linux ld.so'
15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15283 soname_spec='${libname}${release}${shared_ext}$major'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 shlibpath_overrides_runpath=no
15286 hardcode_into_libs=yes
15287 dynamic_linker='GNU ld.so'
15294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15297 dynamic_linker='NetBSD (a.out) ld.so'
15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15300 soname_spec='${libname}${release}${shared_ext}$major'
15301 dynamic_linker='NetBSD ld.elf_so'
15303 shlibpath_var=LD_LIBRARY_PATH
15304 shlibpath_overrides_runpath=yes
15305 hardcode_into_libs=yes
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311 shlibpath_var=LD_LIBRARY_PATH
15312 shlibpath_overrides_runpath=yes
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15320 soname_spec='${libname}${release}${shared_ext}$major'
15321 shlibpath_var=LD_LIBRARY_PATH
15322 shlibpath_overrides_runpath=yes
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15331 shlibpath_var=LD_LIBRARY_PATH
15332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15334 openbsd2.[89] | openbsd2.[89].*)
15335 shlibpath_overrides_runpath=no
15338 shlibpath_overrides_runpath=yes
15342 shlibpath_overrides_runpath=yes
15347 libname_spec='$name'
15350 library_names_spec='$libname${shared_ext} $libname.a'
15351 dynamic_linker='OS/2 ld.exe'
15352 shlibpath_var=LIBPATH
15355 osf3* | osf4* | osf5*)
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361 shlibpath_var=LD_LIBRARY_PATH
15362 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15363 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15368 soname_spec='${libname}${release}${shared_ext}$major'
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370 shlibpath_var=LD_LIBRARY_PATH
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 shlibpath_var=LD_LIBRARY_PATH
15380 shlibpath_overrides_runpath=yes
15381 hardcode_into_libs=yes
15382 # ldd complains unless libraries are executable
15383 postinstall_cmds='chmod +x $lib'
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15389 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15390 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=yes
15392 if test "$with_gnu_ld" = yes; then
15398 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 case $host_vendor in
15405 shlibpath_overrides_runpath=no
15407 export_dynamic_flag_spec='${wl}-Blargedynsym'
15408 runpath_var=LD_RUN_PATH
15416 shlibpath_overrides_runpath=no
15417 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15423 if test -d /usr/nec ;then
15425 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15426 soname_spec='$libname${shared_ext}.$major'
15427 shlibpath_var=LD_LIBRARY_PATH
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 shlibpath_var=LD_LIBRARY_PATH
15442 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15443 echo "${ECHO_T}$dynamic_linker" >&6
15444 test "$dynamic_linker" = no && can_build_shared=no
15446 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15447 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15448 hardcode_action_F77=
15449 if test -n "$hardcode_libdir_flag_spec_F77" || \
15450 test -n "$runpath_var_F77" || \
15451 test "X$hardcode_automatic_F77" = "Xyes" ; then
15453 # We can hardcode non-existant directories.
15454 if test "$hardcode_direct_F77" != no &&
15455 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15456 # have to relink, otherwise we might link with an installed library
15457 # when we should be linking with a yet-to-be-installed one
15458 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15459 test "$hardcode_minus_L_F77" != no; then
15460 # Linking always hardcodes the temporary library directory.
15461 hardcode_action_F77=relink
15463 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15464 hardcode_action_F77=immediate
15467 # We cannot hardcode anything, or else we can only hardcode existing
15469 hardcode_action_F77=unsupported
15471 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15472 echo "${ECHO_T}$hardcode_action_F77" >&6
15474 if test "$hardcode_action_F77" = relink; then
15475 # Fast installation is not supported
15476 enable_fast_install=no
15477 elif test "$shlibpath_overrides_runpath" = yes ||
15478 test "$enable_shared" = no; then
15479 # Fast installation is not necessary
15480 enable_fast_install=needless
15485 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15486 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15487 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15488 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15489 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15490 echo "$as_me:$LINENO: result: yes" >&5
15491 echo "${ECHO_T}yes" >&6
15493 # FIXME - insert some real tests, host_os isn't really good enough
15496 if test -n "$STRIP" ; then
15497 striplib="$STRIP -x"
15498 echo "$as_me:$LINENO: result: yes" >&5
15499 echo "${ECHO_T}yes" >&6
15501 echo "$as_me:$LINENO: result: no" >&5
15502 echo "${ECHO_T}no" >&6
15506 echo "$as_me:$LINENO: result: no" >&5
15507 echo "${ECHO_T}no" >&6
15514 # The else clause should only fire when bootstrapping the
15515 # libtool distribution, otherwise you forgot to ship ltmain.sh
15516 # with your package, and you will get complaints that there are
15517 # no rules to generate ltmain.sh.
15518 if test -f "$ltmain"; then
15519 # See if we are running on zsh, and set the options which allow our commands through
15520 # without removal of \ escapes.
15521 if test -n "${ZSH_VERSION+set}" ; then
15522 setopt NO_GLOB_SUBST
15524 # Now quote all the things that may contain metacharacters while being
15525 # careful not to overquote the AC_SUBSTed values. We take copies of the
15526 # variables and quote the copies for generation of the libtool script.
15527 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15529 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15530 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15531 deplibs_check_method reload_flag reload_cmds need_locks \
15532 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15533 lt_cv_sys_global_symbol_to_c_name_address \
15534 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15535 old_postinstall_cmds old_postuninstall_cmds \
15539 lt_prog_compiler_wl_F77 \
15540 lt_prog_compiler_pic_F77 \
15541 lt_prog_compiler_static_F77 \
15542 lt_prog_compiler_no_builtin_flag_F77 \
15543 export_dynamic_flag_spec_F77 \
15544 thread_safe_flag_spec_F77 \
15545 whole_archive_flag_spec_F77 \
15546 enable_shared_with_static_runtimes_F77 \
15547 old_archive_cmds_F77 \
15548 old_archive_from_new_cmds_F77 \
15549 predep_objects_F77 \
15550 postdep_objects_F77 \
15553 compiler_lib_search_path_F77 \
15555 archive_expsym_cmds_F77 \
15556 postinstall_cmds_F77 \
15557 postuninstall_cmds_F77 \
15558 old_archive_from_expsyms_cmds_F77 \
15559 allow_undefined_flag_F77 \
15560 no_undefined_flag_F77 \
15561 export_symbols_cmds_F77 \
15562 hardcode_libdir_flag_spec_F77 \
15563 hardcode_libdir_flag_spec_ld_F77 \
15564 hardcode_libdir_separator_F77 \
15565 hardcode_automatic_F77 \
15567 module_expsym_cmds_F77 \
15568 lt_cv_prog_compiler_c_o_F77 \
15569 exclude_expsyms_F77 \
15570 include_expsyms_F77; do
15573 old_archive_cmds_F77 | \
15574 old_archive_from_new_cmds_F77 | \
15575 archive_cmds_F77 | \
15576 archive_expsym_cmds_F77 | \
15577 module_cmds_F77 | \
15578 module_expsym_cmds_F77 | \
15579 old_archive_from_expsyms_cmds_F77 | \
15580 export_symbols_cmds_F77 | \
15581 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15582 postinstall_cmds | postuninstall_cmds | \
15583 old_postinstall_cmds | old_postuninstall_cmds | \
15584 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15585 # Double-quote double-evaled strings.
15586 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15595 *'\$0 --fallback-echo"')
15596 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15602 cat <<__EOF__ >> "$cfgfile"
15603 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15607 # Shell to use when invoking shell scripts.
15610 # Whether or not to build shared libraries.
15611 build_libtool_libs=$enable_shared
15613 # Whether or not to build static libraries.
15614 build_old_libs=$enable_static
15616 # Whether or not to add -lc for building shared libraries.
15617 build_libtool_need_lc=$archive_cmds_need_lc_F77
15619 # Whether or not to disallow shared libs when runtime libs are static
15620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15622 # Whether or not to optimize for fast installation.
15623 fast_install=$enable_fast_install
15626 host_alias=$host_alias
15629 # An echo program that does not interpret backslashes.
15634 AR_FLAGS=$lt_AR_FLAGS
15639 # A language-specific compiler.
15640 CC=$lt_compiler_F77
15642 # Is the compiler the GNU C compiler?
15648 # The linker used to build libraries.
15651 # Whether we need hard or soft links.
15654 # A BSD-compatible nm program.
15657 # A symbol stripping program
15660 # Used to examine libraries when file_magic_cmd begins "file"
15661 MAGIC_CMD=$MAGIC_CMD
15663 # Used on cygwin: DLL creation program.
15666 # Used on cygwin: object dumper.
15669 # Used on cygwin: assembler.
15672 # The name of the directory that contains temporary libtool files.
15675 # How to create reloadable object files.
15676 reload_flag=$lt_reload_flag
15677 reload_cmds=$lt_reload_cmds
15679 # How to pass a linker flag through the compiler.
15680 wl=$lt_lt_prog_compiler_wl_F77
15682 # Object file suffix (normally "o").
15683 objext="$ac_objext"
15685 # Old archive suffix (normally "a").
15688 # Shared library suffix (normally ".so").
15689 shrext_cmds='$shrext_cmds'
15691 # Executable file suffix (normally "").
15694 # Additional compiler flags for building library objects.
15695 pic_flag=$lt_lt_prog_compiler_pic_F77
15698 # What is the maximum length of a command?
15699 max_cmd_len=$lt_cv_sys_max_cmd_len
15701 # Does compiler simultaneously support -c and -o options?
15702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15704 # Must we lock files when doing compilation ?
15705 need_locks=$lt_need_locks
15707 # Do we need the lib prefix for modules?
15708 need_lib_prefix=$need_lib_prefix
15710 # Do we need a version for libraries?
15711 need_version=$need_version
15713 # Whether dlopen is supported.
15714 dlopen_support=$enable_dlopen
15716 # Whether dlopen of programs is supported.
15717 dlopen_self=$enable_dlopen_self
15719 # Whether dlopen of statically linked programs is supported.
15720 dlopen_self_static=$enable_dlopen_self_static
15722 # Compiler flag to prevent dynamic linking.
15723 link_static_flag=$lt_lt_prog_compiler_static_F77
15725 # Compiler flag to turn off builtin functions.
15726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15728 # Compiler flag to allow reflexive dlopens.
15729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15731 # Compiler flag to generate shared objects directly from archives.
15732 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15734 # Compiler flag to generate thread-safe objects.
15735 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15737 # Library versioning type.
15738 version_type=$version_type
15740 # Format of library name prefix.
15741 libname_spec=$lt_libname_spec
15743 # List of archive names. First name is the real one, the rest are links.
15744 # The last name is the one that the linker finds with -lNAME.
15745 library_names_spec=$lt_library_names_spec
15747 # The coded name of the library, if different from the real name.
15748 soname_spec=$lt_soname_spec
15750 # Commands used to build and install an old-style archive.
15752 old_archive_cmds=$lt_old_archive_cmds_F77
15753 old_postinstall_cmds=$lt_old_postinstall_cmds
15754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15756 # Create an old-style archive from a shared archive.
15757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15759 # Create a temporary old-style archive to link instead of a shared archive.
15760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15762 # Commands used to build and install a shared archive.
15763 archive_cmds=$lt_archive_cmds_F77
15764 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15765 postinstall_cmds=$lt_postinstall_cmds
15766 postuninstall_cmds=$lt_postuninstall_cmds
15768 # Commands used to build a loadable module (assumed same as above if empty)
15769 module_cmds=$lt_module_cmds_F77
15770 module_expsym_cmds=$lt_module_expsym_cmds_F77
15772 # Commands to strip libraries.
15773 old_striplib=$lt_old_striplib
15774 striplib=$lt_striplib
15776 # Dependencies to place before the objects being linked to create a
15778 predep_objects=$lt_predep_objects_F77
15780 # Dependencies to place after the objects being linked to create a
15782 postdep_objects=$lt_postdep_objects_F77
15784 # Dependencies to place before the objects being linked to create a
15786 predeps=$lt_predeps_F77
15788 # Dependencies to place after the objects being linked to create a
15790 postdeps=$lt_postdeps_F77
15792 # The library search path used internally by the compiler when linking
15793 # a shared library.
15794 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15796 # Method to check whether dependent libraries are shared objects.
15797 deplibs_check_method=$lt_deplibs_check_method
15799 # Command to use when deplibs_check_method == file_magic.
15800 file_magic_cmd=$lt_file_magic_cmd
15802 # Flag that allows shared libraries with undefined symbols to be built.
15803 allow_undefined_flag=$lt_allow_undefined_flag_F77
15805 # Flag that forces no undefined symbols.
15806 no_undefined_flag=$lt_no_undefined_flag_F77
15808 # Commands used to finish a libtool library installation in a directory.
15809 finish_cmds=$lt_finish_cmds
15811 # Same as above, but a single script fragment to be evaled but not shown.
15812 finish_eval=$lt_finish_eval
15814 # Take the output of nm and produce a listing of raw symbols and C names.
15815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15817 # Transform the output of nm in a proper C declaration
15818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15820 # Transform the output of nm in a C name address pair
15821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15823 # This is the shared library runtime path variable.
15824 runpath_var=$runpath_var
15826 # This is the shared library path variable.
15827 shlibpath_var=$shlibpath_var
15829 # Is shlibpath searched before the hard-coded library search path?
15830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15832 # How to hardcode a shared library path into an executable.
15833 hardcode_action=$hardcode_action_F77
15835 # Whether we should hardcode library paths into libraries.
15836 hardcode_into_libs=$hardcode_into_libs
15838 # Flag to hardcode \$libdir into a binary during linking.
15839 # This must work even if \$libdir does not exist.
15840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15842 # If ld is used when linking, flag to hardcode \$libdir into
15843 # a binary during linking. This must work even if \$libdir does
15845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15847 # Whether we need a single -rpath flag with a separated argument.
15848 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15851 # resulting binary.
15852 hardcode_direct=$hardcode_direct_F77
15854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15855 # resulting binary.
15856 hardcode_minus_L=$hardcode_minus_L_F77
15858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15859 # the resulting binary.
15860 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15862 # Set to yes if building a shared library automatically hardcodes DIR into the library
15863 # and all subsequent libraries and executables linked against it.
15864 hardcode_automatic=$hardcode_automatic_F77
15866 # Variables whose values should be saved in libtool wrapper scripts and
15867 # restored at relink time.
15868 variables_saved_for_relink="$variables_saved_for_relink"
15870 # Whether libtool must link a program against all its dependency libraries.
15871 link_all_deplibs=$link_all_deplibs_F77
15873 # Compile-time system search path for libraries
15874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15876 # Run-time system search path for libraries
15877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15879 # Fix the shell variable \$srcfile for the compiler.
15880 fix_srcfile_path="$fix_srcfile_path_F77"
15882 # Set to yes if exported symbols are required.
15883 always_export_symbols=$always_export_symbols_F77
15885 # The commands to list exported symbols.
15886 export_symbols_cmds=$lt_export_symbols_cmds_F77
15888 # The commands to extract the exported symbol list from a shared archive.
15889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15891 # Symbols that should not be listed in the preloaded symbols.
15892 exclude_expsyms=$lt_exclude_expsyms_F77
15894 # Symbols that must always be exported.
15895 include_expsyms=$lt_include_expsyms_F77
15897 # ### END LIBTOOL TAG CONFIG: $tagname
15903 # If there is no Makefile yet, we rely on a make rule to execute
15904 # `config.status --recheck' to rerun these tests and create the
15905 # libtool script then.
15906 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15907 if test -f "$ltmain_in"; then
15908 test -f Makefile && make "$ltmain"
15914 ac_cpp='$CPP $CPPFLAGS'
15915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15927 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15931 # Source file extension for Java test sources.
15934 # Object file extension for compiled Java test sources.
15938 # Code to be used in simple compile tests
15939 lt_simple_compile_test_code="class foo {}\n"
15941 # Code to be used in simple link tests
15942 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15946 # If no C compiler was specified, use CC.
15949 # Allow CC to be a program name with arguments.
15953 # Allow CC to be a program name with arguments.
15959 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15960 archive_cmds_need_lc_GCJ=no
15963 ## There is no encapsulation within the following macros, do not change
15964 ## the running order or otherwise move them around unless you know exactly
15965 ## what you are doing...
15967 lt_prog_compiler_no_builtin_flag_GCJ=
15969 if test "$GCC" = yes; then
15970 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15973 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15974 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15975 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 lt_cv_prog_compiler_rtti_exceptions=no
15979 ac_outfile=conftest.$ac_objext
15980 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15981 lt_compiler_flag="-fno-rtti -fno-exceptions"
15982 # Insert the option either (1) after the last *FLAGS variable, or
15983 # (2) before a word containing "conftest.", or (3) at the end.
15984 # Note that $ac_compile itself does not contain backslashes and begins
15985 # with a dollar sign (not a hyphen), so the echo should work correctly.
15986 # The option is referenced via a variable to avoid confusing sed.
15987 lt_compile=`echo "$ac_compile" | $SED \
15988 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15990 -e 's:$: $lt_compiler_flag:'`
15991 (eval echo "\"\$as_me:15991: $lt_compile\"" >&5)
15992 (eval "$lt_compile" 2>conftest.err)
15994 cat conftest.err >&5
15995 echo "$as_me:15995: \$? = $ac_status" >&5
15996 if (exit $ac_status) && test -s "$ac_outfile"; then
15997 # The compiler can only warn and ignore the option if not recognized
15998 # So say no if there are warnings
15999 if test ! -s conftest.err; then
16000 lt_cv_prog_compiler_rtti_exceptions=yes
16006 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16007 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16009 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16010 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16017 lt_prog_compiler_wl_GCJ=
16018 lt_prog_compiler_pic_GCJ=
16019 lt_prog_compiler_static_GCJ=
16021 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16022 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16024 if test "$GCC" = yes; then
16025 lt_prog_compiler_wl_GCJ='-Wl,'
16026 lt_prog_compiler_static_GCJ='-static'
16030 # All AIX code is PIC.
16031 if test "$host_cpu" = ia64; then
16032 # AIX 5 now supports IA64 processor
16033 lt_prog_compiler_static_GCJ='-Bstatic'
16038 # FIXME: we need at least 68020 code to build shared libraries, but
16039 # adding the `-m68020' flag to GCC prevents building anything better,
16041 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16044 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16045 # PIC is the default for these OSes.
16048 mingw* | pw32* | os2*)
16049 # This hack is so that the source file can tell whether it is being
16050 # built for inclusion in a dll (and should export symbols for example).
16051 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16054 darwin* | rhapsody*)
16055 # PIC is the default on this platform
16056 # Common symbols not allowed in MH_DYLIB files
16057 lt_prog_compiler_pic_GCJ='-fno-common'
16061 # Just because we use GCC doesn't mean we suddenly get shared libraries
16062 # on systems that don't support them.
16063 lt_prog_compiler_can_build_shared_GCJ=no
16068 if test -d /usr/nec; then
16069 lt_prog_compiler_pic_GCJ=-Kconform_pic
16074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16075 # not for PA HP-UX.
16076 case "$host_cpu" in
16081 lt_prog_compiler_pic_GCJ='-fPIC'
16087 lt_prog_compiler_pic_GCJ='-fPIC'
16091 # PORTME Check for flag to pass linker flags through the system compiler.
16094 lt_prog_compiler_wl_GCJ='-Wl,'
16095 if test "$host_cpu" = ia64; then
16096 # AIX 5 now supports IA64 processor
16097 lt_prog_compiler_static_GCJ='-Bstatic'
16099 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16103 # PIC is the default on this platform
16104 # Common symbols not allowed in MH_DYLIB files
16105 case "$cc_basename" in
16107 lt_prog_compiler_pic_GCJ='-qnocommon'
16108 lt_prog_compiler_wl_GCJ='-Wl,'
16113 mingw* | pw32* | os2*)
16114 # This hack is so that the source file can tell whether it is being
16115 # built for inclusion in a dll (and should export symbols for example).
16116 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16119 hpux9* | hpux10* | hpux11*)
16120 lt_prog_compiler_wl_GCJ='-Wl,'
16121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16122 # not for PA HP-UX.
16123 case "$host_cpu" in
16128 lt_prog_compiler_pic_GCJ='+Z'
16131 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16132 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16135 irix5* | irix6* | nonstopux*)
16136 lt_prog_compiler_wl_GCJ='-Wl,'
16137 # PIC (with -KPIC) is the default.
16138 lt_prog_compiler_static_GCJ='-non_shared'
16142 lt_prog_compiler_pic_GCJ='-KPIC'
16143 lt_prog_compiler_static_GCJ='-Bstatic'
16149 lt_prog_compiler_wl_GCJ='-Wl,'
16150 lt_prog_compiler_pic_GCJ='-KPIC'
16151 lt_prog_compiler_static_GCJ='-static'
16154 lt_prog_compiler_wl_GCJ='-Wl,'
16155 # All Alpha code is PIC.
16156 lt_prog_compiler_static_GCJ='-non_shared'
16161 osf3* | osf4* | osf5*)
16162 lt_prog_compiler_wl_GCJ='-Wl,'
16163 # All OSF/1 code is PIC.
16164 lt_prog_compiler_static_GCJ='-non_shared'
16168 lt_prog_compiler_pic_GCJ='-Kpic'
16169 lt_prog_compiler_static_GCJ='-dn'
16173 lt_prog_compiler_wl_GCJ='-Wl,'
16174 lt_prog_compiler_pic_GCJ='-KPIC'
16175 lt_prog_compiler_static_GCJ='-Bstatic'
16179 lt_prog_compiler_wl_GCJ='-Qoption ld '
16180 lt_prog_compiler_pic_GCJ='-PIC'
16181 lt_prog_compiler_static_GCJ='-Bstatic'
16184 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16185 lt_prog_compiler_wl_GCJ='-Wl,'
16186 lt_prog_compiler_pic_GCJ='-KPIC'
16187 lt_prog_compiler_static_GCJ='-Bstatic'
16191 if test -d /usr/nec ;then
16192 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16193 lt_prog_compiler_static_GCJ='-Bstatic'
16198 lt_prog_compiler_pic_GCJ='-pic'
16199 lt_prog_compiler_static_GCJ='-Bstatic'
16203 lt_prog_compiler_can_build_shared_GCJ=no
16208 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16209 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16212 # Check to make sure the PIC flag actually works.
16214 if test -n "$lt_prog_compiler_pic_GCJ"; then
16216 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16217 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16218 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 lt_prog_compiler_pic_works_GCJ=no
16222 ac_outfile=conftest.$ac_objext
16223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16224 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16225 # Insert the option either (1) after the last *FLAGS variable, or
16226 # (2) before a word containing "conftest.", or (3) at the end.
16227 # Note that $ac_compile itself does not contain backslashes and begins
16228 # with a dollar sign (not a hyphen), so the echo should work correctly.
16229 # The option is referenced via a variable to avoid confusing sed.
16230 lt_compile=`echo "$ac_compile" | $SED \
16231 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16233 -e 's:$: $lt_compiler_flag:'`
16234 (eval echo "\"\$as_me:16234: $lt_compile\"" >&5)
16235 (eval "$lt_compile" 2>conftest.err)
16237 cat conftest.err >&5
16238 echo "$as_me:16238: \$? = $ac_status" >&5
16239 if (exit $ac_status) && test -s "$ac_outfile"; then
16240 # The compiler can only warn and ignore the option if not recognized
16241 # So say no if there are warnings
16242 if test ! -s conftest.err; then
16243 lt_prog_compiler_pic_works_GCJ=yes
16249 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16250 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16252 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16253 case $lt_prog_compiler_pic_GCJ in
16255 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16258 lt_prog_compiler_pic_GCJ=
16259 lt_prog_compiler_can_build_shared_GCJ=no
16264 # For platforms which do not support PIC, -DPIC is meaningless:
16266 lt_prog_compiler_pic_GCJ=
16269 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16273 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16274 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16275 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16278 lt_cv_prog_compiler_c_o_GCJ=no
16279 $rm -r conftest 2>/dev/null
16283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16285 lt_compiler_flag="-o out/conftest2.$ac_objext"
16286 # Insert the option either (1) after the last *FLAGS variable, or
16287 # (2) before a word containing "conftest.", or (3) at the end.
16288 # Note that $ac_compile itself does not contain backslashes and begins
16289 # with a dollar sign (not a hyphen), so the echo should work correctly.
16290 lt_compile=`echo "$ac_compile" | $SED \
16291 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16293 -e 's:$: $lt_compiler_flag:'`
16294 (eval echo "\"\$as_me:16294: $lt_compile\"" >&5)
16295 (eval "$lt_compile" 2>out/conftest.err)
16297 cat out/conftest.err >&5
16298 echo "$as_me:16298: \$? = $ac_status" >&5
16299 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16301 # The compiler can only warn and ignore the option if not recognized
16302 # So say no if there are warnings
16303 if test ! -s out/conftest.err; then
16304 lt_cv_prog_compiler_c_o_GCJ=yes
16309 # SGI C++ compiler will create directory out/ii_files/ for
16310 # template instantiation
16311 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16312 $rm out/* && rmdir out
16318 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16319 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16322 hard_links="nottested"
16323 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16324 # do not overwrite the value of need_locks provided by the user
16325 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16326 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16331 ln conftest.a conftest.b 2>&5 || hard_links=no
16332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16333 echo "$as_me:$LINENO: result: $hard_links" >&5
16334 echo "${ECHO_T}$hard_links" >&6
16335 if test "$hard_links" = no; then
16336 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16337 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16344 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16345 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16348 allow_undefined_flag_GCJ=
16349 enable_shared_with_static_runtimes_GCJ=no
16351 archive_expsym_cmds_GCJ=
16352 old_archive_From_new_cmds_GCJ=
16353 old_archive_from_expsyms_cmds_GCJ=
16354 export_dynamic_flag_spec_GCJ=
16355 whole_archive_flag_spec_GCJ=
16356 thread_safe_flag_spec_GCJ=
16357 hardcode_libdir_flag_spec_GCJ=
16358 hardcode_libdir_flag_spec_ld_GCJ=
16359 hardcode_libdir_separator_GCJ=
16360 hardcode_direct_GCJ=no
16361 hardcode_minus_L_GCJ=no
16362 hardcode_shlibpath_var_GCJ=unsupported
16363 link_all_deplibs_GCJ=unknown
16364 hardcode_automatic_GCJ=no
16366 module_expsym_cmds_GCJ=
16367 always_export_symbols_GCJ=no
16368 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16369 # include_expsyms should be a list of space-separated symbols to be *always*
16370 # included in the symbol list
16371 include_expsyms_GCJ=
16372 # exclude_expsyms can be an extended regexp of symbols to exclude
16373 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16374 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16375 # as well as any symbol that contains `d'.
16376 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16377 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16378 # platforms (ab)use it in PIC code, but their linkers get confused if
16379 # the symbol is explicitly referenced. Since portable code cannot
16380 # rely on this symbol name, it's probably fine to never include it in
16381 # preloaded symbol tables.
16382 extract_expsyms_cmds=
16385 cygwin* | mingw* | pw32*)
16386 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16387 # When not using gcc, we currently assume that we are using
16388 # Microsoft Visual C++.
16389 if test "$GCC" != yes; then
16399 if test "$with_gnu_ld" = yes; then
16400 # If archive_cmds runs LD, not CC, wlarc should be empty
16403 # See if GNU ld supports shared libraries.
16405 aix3* | aix4* | aix5*)
16406 # On AIX/PPC, the GNU linker is very broken
16407 if test "$host_cpu" != ia64; then
16411 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16412 *** to be unable to reliably create shared libraries on AIX.
16413 *** Therefore, libtool is disabling shared libraries support. If you
16414 *** really care for shared libraries, you may want to modify your PATH
16415 *** so that a non-GNU linker is found, and then restart.
16422 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)'
16423 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16424 hardcode_minus_L_GCJ=yes
16426 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16427 # that the semantics of dynamic libraries on AmigaOS, at least up
16428 # to version 4, is to share data among multiple programs linked
16429 # with the same dynamic library. Since this doesn't match the
16430 # behavior of shared libraries on other platforms, we can't use
16436 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16437 allow_undefined_flag_GCJ=unsupported
16438 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16439 # support --undefined. This deserves some investigation. FIXME
16440 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16446 cygwin* | mingw* | pw32*)
16447 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16448 # as there is no search path for DLLs.
16449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16450 allow_undefined_flag_GCJ=unsupported
16451 always_export_symbols_GCJ=no
16452 enable_shared_with_static_runtimes_GCJ=yes
16453 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16455 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16456 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16457 # If the export-symbols file already is a .def file (1st line
16458 # is EXPORTS), use it as is; otherwise, prepend...
16459 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16460 cp $export_symbols $output_objdir/$soname.def;
16462 echo EXPORTS > $output_objdir/$soname.def;
16463 cat $export_symbols >> $output_objdir/$soname.def;
16465 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16472 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16473 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16476 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16477 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16482 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16486 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16487 *** create shared libraries on Solaris systems. Therefore, libtool
16488 *** is disabling shared libraries support. We urge you to upgrade GNU
16489 *** binutils to release 2.9.1 or newer. Another option is to modify
16490 *** your PATH or compiler configuration so that the native linker is
16491 *** used, and then restart.
16494 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16495 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16496 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16503 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16505 hardcode_direct_GCJ=yes
16506 hardcode_shlibpath_var_GCJ=no
16510 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16511 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16512 archive_cmds_GCJ="$tmp_archive_cmds"
16513 supports_anon_versioning=no
16514 case `$LD -v 2>/dev/null` in
16515 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16516 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16517 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16518 *\ 2.11.*) ;; # other 2.11 versions
16519 *) supports_anon_versioning=yes ;;
16521 if test $supports_anon_versioning = yes; then
16522 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16523 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16524 $echo "local: *; };" >> $output_objdir/$libname.ver~
16525 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16527 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16536 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16537 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16544 if test "$ld_shlibs_GCJ" = yes; then
16545 runpath_var=LD_RUN_PATH
16546 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16547 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16548 # ancient GNU ld didn't support --whole-archive et. al.
16549 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16550 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16552 whole_archive_flag_spec_GCJ=
16556 # PORTME fill in a description of your system's linker (not GNU ld)
16559 allow_undefined_flag_GCJ=unsupported
16560 always_export_symbols_GCJ=yes
16561 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'
16562 # Note: this linker hardcodes the directories in LIBPATH if there
16563 # are no directories specified by -L.
16564 hardcode_minus_L_GCJ=yes
16565 if test "$GCC" = yes && test -z "$link_static_flag"; then
16566 # Neither direct hardcoding nor static linking is supported with a
16568 hardcode_direct_GCJ=unsupported
16573 if test "$host_cpu" = ia64; then
16574 # On IA64, the linker does run time linking by default, so we don't
16575 # have to do anything special.
16576 aix_use_runtimelinking=no
16577 exp_sym_flag='-Bexport'
16580 # If we're using GNU nm, then we don't want the "-C" option.
16581 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16582 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16583 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'
16585 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'
16587 aix_use_runtimelinking=no
16589 # Test if we are trying to use run time linking or normal
16590 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16591 # need to do runtime linking.
16592 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16593 for ld_flag in $LDFLAGS; do
16594 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16595 aix_use_runtimelinking=yes
16601 exp_sym_flag='-bexport'
16602 no_entry_flag='-bnoentry'
16605 # When large executables or shared objects are built, AIX ld can
16606 # have problems creating the table of contents. If linking a library
16607 # or program results in "error TOC overflow" add -mminimal-toc to
16608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16611 archive_cmds_GCJ=''
16612 hardcode_direct_GCJ=yes
16613 hardcode_libdir_separator_GCJ=':'
16614 link_all_deplibs_GCJ=yes
16616 if test "$GCC" = yes; then
16617 case $host_os in aix4.012|aix4.012.*)
16618 # We only want to do this on AIX 4.2 and lower, the check
16619 # below for broken collect2 doesn't work under 4.3+
16620 collect2name=`${CC} -print-prog-name=collect2`
16621 if test -f "$collect2name" && \
16622 strings "$collect2name" | grep resolve_lib_name >/dev/null
16624 # We have reworked collect2
16625 hardcode_direct_GCJ=yes
16627 # We have old collect2
16628 hardcode_direct_GCJ=unsupported
16629 # It fails to find uninstalled libraries when the uninstalled
16630 # path is not listed in the libpath. Setting hardcode_minus_L
16631 # to unsupported forces relinking
16632 hardcode_minus_L_GCJ=yes
16633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16634 hardcode_libdir_separator_GCJ=
16637 shared_flag='-shared'
16640 if test "$host_cpu" = ia64; then
16641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16642 # chokes on -Wl,-G. The following line is correct:
16645 if test "$aix_use_runtimelinking" = yes; then
16646 shared_flag='${wl}-G'
16648 shared_flag='${wl}-bM:SRE'
16653 # It seems that -bexpall does not export symbols beginning with
16654 # underscore (_), so it is better to generate a list of symbols to export.
16655 always_export_symbols_GCJ=yes
16656 if test "$aix_use_runtimelinking" = yes; then
16657 # Warning - without using the other runtime loading flags (-brtl),
16658 # -berok will link without error, but may produce a broken library.
16659 allow_undefined_flag_GCJ='-berok'
16660 # Determine the default libpath from the value encoded in an empty executable.
16661 cat >conftest.$ac_ext <<_ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h. */
16676 rm -f conftest.$ac_objext conftest$ac_exeext
16677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16678 (eval $ac_link) 2>conftest.er1
16680 grep -v '^ *+' conftest.er1 >conftest.err
16682 cat conftest.err >&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try='test -z "$ac_c_werror_flag"
16686 || test ! -s conftest.err'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest$ac_exeext'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16701 # Check for a 64-bit object if we didn't find anything.
16702 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; }
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16709 rm -f conftest.err conftest.$ac_objext \
16710 conftest$ac_exeext conftest.$ac_ext
16711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16713 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16714 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"
16716 if test "$host_cpu" = ia64; then
16717 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16718 allow_undefined_flag_GCJ="-z nodefs"
16719 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"
16721 # Determine the default libpath from the value encoded in an empty executable.
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16737 rm -f conftest.$ac_objext conftest$ac_exeext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16739 (eval $ac_link) 2>conftest.er1
16741 grep -v '^ *+' conftest.er1 >conftest.err
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag"
16747 || test ! -s conftest.err'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest$ac_exeext'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16762 # Check for a 64-bit object if we didn't find anything.
16763 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; }
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16770 rm -f conftest.err conftest.$ac_objext \
16771 conftest$ac_exeext conftest.$ac_ext
16772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16774 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16775 # Warning - without using the other run time loading flags,
16776 # -berok will link without error, but may produce a broken library.
16777 no_undefined_flag_GCJ=' ${wl}-bernotok'
16778 allow_undefined_flag_GCJ=' ${wl}-berok'
16779 # -bexpall does not export symbols beginning with underscore (_)
16780 always_export_symbols_GCJ=yes
16781 # Exported symbols can be pulled into shared objects from archives
16782 whole_archive_flag_spec_GCJ=' '
16783 archive_cmds_need_lc_GCJ=yes
16784 # This is similar to how AIX traditionally builds it's shared libraries.
16785 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'
16791 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)'
16792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16793 hardcode_minus_L_GCJ=yes
16794 # see comment about different semantics on the GNU ld section
16799 export_dynamic_flag_spec_GCJ=-rdynamic
16802 cygwin* | mingw* | pw32*)
16803 # When not using gcc, we currently assume that we are using
16804 # Microsoft Visual C++.
16805 # hardcode_libdir_flag_spec is actually meaningless, as there is
16806 # no search path for DLLs.
16807 hardcode_libdir_flag_spec_GCJ=' '
16808 allow_undefined_flag_GCJ=unsupported
16809 # Tell ltmain to make .lib files, not .a files.
16811 # Tell ltmain to make .dll files, not .so files.
16813 # FIXME: Setting linknames here is a bad hack.
16814 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16815 # The linker will automatically build a .lib file if we build a DLL.
16816 old_archive_From_new_cmds_GCJ='true'
16817 # FIXME: Should let the user specify the lib program.
16818 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16819 fix_srcfile_path='`cygpath -w "$srcfile"`'
16820 enable_shared_with_static_runtimes_GCJ=yes
16823 darwin* | rhapsody*)
16825 rhapsody* | darwin1.[012])
16826 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16829 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16830 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16832 case ${MACOSX_DEPLOYMENT_TARGET} in
16834 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16837 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16843 archive_cmds_need_lc_GCJ=no
16844 hardcode_direct_GCJ=no
16845 hardcode_automatic_GCJ=yes
16846 hardcode_shlibpath_var_GCJ=unsupported
16847 whole_archive_flag_spec_GCJ=''
16848 link_all_deplibs_GCJ=yes
16849 if test "$GCC" = yes ; then
16850 output_verbose_link_cmd='echo'
16851 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16852 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16853 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16854 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16855 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16857 case "$cc_basename" in
16859 output_verbose_link_cmd='echo'
16860 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16861 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16862 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16863 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16864 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16874 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16875 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16876 hardcode_shlibpath_var_GCJ=no
16883 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16884 # support. Future versions do this automatically, but an explicit c++rt0.o
16885 # does not break anything, and helps significantly (at the cost of a little
16888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16889 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16890 hardcode_direct_GCJ=yes
16891 hardcode_shlibpath_var_GCJ=no
16894 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_direct_GCJ=yes
16898 hardcode_minus_L_GCJ=yes
16899 hardcode_shlibpath_var_GCJ=no
16902 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16903 freebsd* | kfreebsd*-gnu)
16904 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16905 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16906 hardcode_direct_GCJ=yes
16907 hardcode_shlibpath_var_GCJ=no
16911 if test "$GCC" = yes; then
16912 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'
16914 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'
16916 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16917 hardcode_libdir_separator_GCJ=:
16918 hardcode_direct_GCJ=yes
16920 # hardcode_minus_L: Not really in the search PATH,
16921 # but as the default location of the library.
16922 hardcode_minus_L_GCJ=yes
16923 export_dynamic_flag_spec_GCJ='${wl}-E'
16927 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16928 case "$host_cpu" in
16930 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16933 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16937 case "$host_cpu" in
16939 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16942 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16946 if test "$with_gnu_ld" = no; then
16947 case "$host_cpu" in
16949 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16950 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16951 hardcode_libdir_separator_GCJ=:
16952 hardcode_direct_GCJ=no
16953 hardcode_shlibpath_var_GCJ=no
16956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16957 hardcode_direct_GCJ=no
16958 hardcode_shlibpath_var_GCJ=no
16960 # hardcode_minus_L: Not really in the search PATH,
16961 # but as the default location of the library.
16962 hardcode_minus_L_GCJ=yes
16965 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16966 hardcode_libdir_separator_GCJ=:
16967 hardcode_direct_GCJ=yes
16968 export_dynamic_flag_spec_GCJ='${wl}-E'
16970 # hardcode_minus_L: Not really in the search PATH,
16971 # but as the default location of the library.
16972 hardcode_minus_L_GCJ=yes
16978 irix5* | irix6* | nonstopux*)
16979 if test "$GCC" = yes; then
16980 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'
16982 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'
16983 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16985 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16986 hardcode_libdir_separator_GCJ=:
16987 link_all_deplibs_GCJ=yes
16991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16992 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16994 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16996 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16997 hardcode_direct_GCJ=yes
16998 hardcode_shlibpath_var_GCJ=no
17002 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17003 hardcode_direct_GCJ=yes
17004 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17005 hardcode_libdir_separator_GCJ=:
17006 hardcode_shlibpath_var_GCJ=no
17010 hardcode_direct_GCJ=yes
17011 hardcode_shlibpath_var_GCJ=no
17012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17013 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17014 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17016 export_dynamic_flag_spec_GCJ='${wl}-E'
17019 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17020 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17021 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17024 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17032 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17033 hardcode_minus_L_GCJ=yes
17034 allow_undefined_flag_GCJ=unsupported
17035 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'
17036 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17040 if test "$GCC" = yes; then
17041 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17042 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'
17044 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17045 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'
17047 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17048 hardcode_libdir_separator_GCJ=:
17051 osf4* | osf5*) # as osf3* with the addition of -msym flag
17052 if test "$GCC" = yes; then
17053 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17054 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'
17055 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17057 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17058 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'
17059 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~
17060 $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'
17062 # Both c and cxx compiler support -rpath directly
17063 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17065 hardcode_libdir_separator_GCJ=:
17069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17070 hardcode_shlibpath_var_GCJ=no
17071 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17072 runpath_var=LD_RUN_PATH
17073 hardcode_runpath_var=yes
17077 no_undefined_flag_GCJ=' -z text'
17078 if test "$GCC" = yes; then
17079 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17080 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17081 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17083 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17084 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17085 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17087 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17088 hardcode_shlibpath_var_GCJ=no
17090 solaris2.[0-5] | solaris2.[0-5].*) ;;
17091 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17092 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17094 link_all_deplibs_GCJ=yes
17098 if test "x$host_vendor" = xsequent; then
17099 # Use $CC to link under sequent, because it throws in some extra .o
17100 # files that make .init and .fini sections work.
17101 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17103 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17105 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17106 hardcode_direct_GCJ=yes
17107 hardcode_minus_L_GCJ=yes
17108 hardcode_shlibpath_var_GCJ=no
17112 case $host_vendor in
17114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17115 hardcode_direct_GCJ=yes # is this really true???
17118 ## LD is ld it makes a PLAMLIB
17119 ## CC just makes a GrossModule.
17120 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17121 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17122 hardcode_direct_GCJ=no
17125 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17126 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17129 runpath_var='LD_RUN_PATH'
17130 hardcode_shlibpath_var_GCJ=no
17134 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17135 hardcode_shlibpath_var_GCJ=no
17136 export_dynamic_flag_spec_GCJ='-Bexport'
17140 if test -d /usr/nec; then
17141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17142 hardcode_shlibpath_var_GCJ=no
17143 runpath_var=LD_RUN_PATH
17144 hardcode_runpath_var=yes
17150 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17151 hardcode_direct_GCJ=yes
17152 hardcode_minus_L_GCJ=no
17153 hardcode_shlibpath_var_GCJ=no
17154 hardcode_runpath_var=yes
17155 runpath_var=LD_RUN_PATH
17158 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17159 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17160 if test "$GCC" = yes; then
17161 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17163 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17165 runpath_var='LD_RUN_PATH'
17166 hardcode_shlibpath_var_GCJ=no
17170 no_undefined_flag_GCJ=' -z text'
17171 # $CC -shared without GNU ld will not create a library from C++
17172 # object files and a static libstdc++, better avoid it by now
17173 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17175 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17176 hardcode_libdir_flag_spec_GCJ=
17177 hardcode_shlibpath_var_GCJ=no
17178 runpath_var='LD_RUN_PATH'
17182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17183 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17184 hardcode_shlibpath_var_GCJ=no
17193 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17194 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17195 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17197 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17198 if test "$GCC" = yes; then
17199 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17203 # Do we need to explicitly link libc?
17205 case "x$archive_cmds_need_lc_GCJ" in
17207 # Assume -lc should be added
17208 archive_cmds_need_lc_GCJ=yes
17210 if test "$enable_shared" = yes && test "$GCC" = yes; then
17211 case $archive_cmds_GCJ in
17213 # FIXME: we may have to deal with multi-command sequences.
17216 # Test whether the compiler implicitly links with -lc since on some
17217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17218 # to ld, don't add -lc before -lgcc.
17219 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17220 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17225 (eval $ac_compile) 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } 2>conftest.err; then
17231 libobjs=conftest.$ac_objext
17233 wl=$lt_prog_compiler_wl_GCJ
17239 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17240 allow_undefined_flag_GCJ=
17241 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17242 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }
17247 archive_cmds_need_lc_GCJ=no
17249 archive_cmds_need_lc_GCJ=yes
17251 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17253 cat conftest.err 1>&5
17256 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17257 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17264 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17265 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17266 library_names_spec=
17267 libname_spec='lib$name'
17271 postuninstall_cmds=
17275 shlibpath_overrides_runpath=unknown
17277 dynamic_linker="$host_os ld.so"
17278 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17279 if test "$GCC" = yes; then
17280 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17281 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17282 # if the path contains ";" then we assume it to be the separator
17283 # otherwise default to the standard path separator (i.e. ":") - it is
17284 # assumed that no part of a normal pathname contains ";" but that should
17285 # okay in the real world where ";" in dirpaths is itself problematic.
17286 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17288 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17291 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17293 need_lib_prefix=unknown
17294 hardcode_into_libs=no
17296 # when you set need_version to no, make sure it does not cause -set_version
17297 # flags to be left without arguments
17298 need_version=unknown
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17304 shlibpath_var=LIBPATH
17306 # AIX 3 has no versioning support, so we append a major version to the name.
17307 soname_spec='${libname}${release}${shared_ext}$major'
17314 hardcode_into_libs=yes
17315 if test "$host_cpu" = ia64; then
17316 # AIX 5 supports IA64
17317 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17318 shlibpath_var=LD_LIBRARY_PATH
17320 # With GCC up to 2.95.x, collect2 would create an import file
17321 # for dependence libraries. The import file would start with
17322 # the line `#! .'. This would cause the generated library to
17323 # depend on `.', always an invalid library. This was fixed in
17324 # development snapshots of GCC prior to 3.0.
17326 aix4 | aix4.[01] | aix4.[01].*)
17327 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17329 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17332 can_build_shared=no
17336 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17337 # soname into executable. Probably we can add versioning support to
17338 # collect2, so additional links can be useful in future.
17339 if test "$aix_use_runtimelinking" = yes; then
17340 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17341 # instead of lib<name>.a to let people know that these are not
17342 # typical AIX shared libraries.
17343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345 # We preserve .a as extension for shared libraries through AIX4.2
17346 # and later when we are not doing run time linking.
17347 library_names_spec='${libname}${release}.a $libname.a'
17348 soname_spec='${libname}${release}${shared_ext}$major'
17350 shlibpath_var=LIBPATH
17355 library_names_spec='$libname.ixlibrary $libname.a'
17356 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17357 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'
17361 library_names_spec='${libname}${shared_ext}'
17362 dynamic_linker="$host_os ld.so"
17363 shlibpath_var=LIBRARY_PATH
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17374 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17375 # the default ld.so.conf also contains /usr/contrib/lib and
17376 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17377 # libtool to hard-code these into programs
17380 cygwin* | mingw* | pw32*)
17381 version_type=windows
17386 case $GCC,$host_os in
17387 yes,cygwin* | yes,mingw* | yes,pw32*)
17388 library_names_spec='$libname.dll.a'
17389 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17390 postinstall_cmds='base_file=`basename \${file}`~
17391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17392 dldir=$destdir/`dirname \$dlpath`~
17393 test -d \$dldir || mkdir -p \$dldir~
17394 $install_prog $dir/$dlname \$dldir/$dlname'
17395 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17396 dlpath=$dir/\$dldll~
17398 shlibpath_overrides_runpath=yes
17402 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17403 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17404 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17407 # MinGW DLLs use traditional 'lib' prefix
17408 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17409 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17410 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17411 # It is most probably a Windows format PATH printed by
17412 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17413 # path with ; separators, and with drive letters. We can handle the
17414 # drive letters (cygwin fileutils understands them), so leave them,
17415 # especially as we might pass files found there to a mingw objdump,
17416 # which wouldn't understand a cygwinified path. Ahh.
17417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17423 # pw32 DLLs use 'pw' prefix rather than 'lib'
17424 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17430 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17433 dynamic_linker='Win32 ld.exe'
17434 # FIXME: first we should search . and the directory the executable is in
17438 darwin* | rhapsody*)
17439 dynamic_linker="$host_os dyld"
17440 version_type=darwin
17443 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17444 soname_spec='${libname}${release}${major}$shared_ext'
17445 shlibpath_overrides_runpath=yes
17446 shlibpath_var=DYLD_LIBRARY_PATH
17447 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17448 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17449 if test "$GCC" = yes; then
17450 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"`
17452 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17462 soname_spec='${libname}${release}${shared_ext}$major'
17463 shlibpath_var=LD_LIBRARY_PATH
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17475 soname_spec='${libname}${release}${shared_ext}$major'
17476 shlibpath_var=LD_LIBRARY_PATH
17477 shlibpath_overrides_runpath=no
17478 hardcode_into_libs=yes
17479 dynamic_linker='GNU ld.so'
17483 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17484 version_type=freebsd-$objformat
17485 case $version_type in
17487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17496 shlibpath_var=LD_LIBRARY_PATH
17499 shlibpath_overrides_runpath=yes
17501 freebsd3.01* | freebsdelf3.01*)
17502 shlibpath_overrides_runpath=yes
17503 hardcode_into_libs=yes
17506 shlibpath_overrides_runpath=no
17507 hardcode_into_libs=yes
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 hardcode_into_libs=yes
17522 hpux9* | hpux10* | hpux11*)
17523 # Give a soname corresponding to the major version so that dld.sl refuses to
17524 # link against other versions.
17528 case "$host_cpu" in
17531 hardcode_into_libs=yes
17532 dynamic_linker="$host_os dld.so"
17533 shlibpath_var=LD_LIBRARY_PATH
17534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17536 soname_spec='${libname}${release}${shared_ext}$major'
17537 if test "X$HPUX_IA64_MODE" = X32; then
17538 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17540 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17546 hardcode_into_libs=yes
17547 dynamic_linker="$host_os dld.sl"
17548 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551 soname_spec='${libname}${release}${shared_ext}$major'
17552 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17557 dynamic_linker="$host_os dld.sl"
17558 shlibpath_var=SHLIB_PATH
17559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561 soname_spec='${libname}${release}${shared_ext}$major'
17564 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17565 postinstall_cmds='chmod 555 $lib'
17568 irix5* | irix6* | nonstopux*)
17570 nonstopux*) version_type=nonstopux ;;
17572 if test "$lt_cv_prog_gnu_ld" = yes; then
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17583 irix5* | nonstopux*)
17584 libsuff= shlibsuff=
17587 case $LD in # libtool.m4 will add one of these switches to LD
17588 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17589 libsuff= shlibsuff= libmagic=32-bit;;
17590 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17591 libsuff=32 shlibsuff=N32 libmagic=N32;;
17592 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17593 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17594 *) libsuff= shlibsuff= libmagic=never-match;;
17598 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17599 shlibpath_overrides_runpath=no
17600 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17601 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17602 hardcode_into_libs=yes
17605 # No shared lib support for Linux oldld, aout, or coff.
17606 linux*oldld* | linux*aout* | linux*coff*)
17610 # This must be Linux ELF.
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17618 shlibpath_var=LD_LIBRARY_PATH
17619 shlibpath_overrides_runpath=no
17620 # This implies no fast_install, which is unacceptable.
17621 # Some rework will be needed to allow for fast_install
17622 # before this can be enabled.
17623 hardcode_into_libs=yes
17625 # Append ld.so.conf contents to the search path
17626 if test -f /etc/ld.so.conf; then
17627 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17628 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17631 # We used to test for /lib/ld.so.1 and disable shared libraries on
17632 # powerpc, because MkLinux only supported shared libraries with the
17633 # GNU dynamic linker. Since this was broken with cross compilers,
17634 # most powerpc-linux boxes support dynamic linking these days and
17635 # people can always --disable-shared, the test was removed, and we
17636 # assume the GNU/Linux dynamic linker is in use.
17637 dynamic_linker='GNU/Linux ld.so'
17644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17645 soname_spec='${libname}${release}${shared_ext}$major'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 shlibpath_overrides_runpath=no
17648 hardcode_into_libs=yes
17649 dynamic_linker='GNU ld.so'
17656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17659 dynamic_linker='NetBSD (a.out) ld.so'
17661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17662 soname_spec='${libname}${release}${shared_ext}$major'
17663 dynamic_linker='NetBSD ld.elf_so'
17665 shlibpath_var=LD_LIBRARY_PATH
17666 shlibpath_overrides_runpath=yes
17667 hardcode_into_libs=yes
17672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673 shlibpath_var=LD_LIBRARY_PATH
17674 shlibpath_overrides_runpath=yes
17681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17682 soname_spec='${libname}${release}${shared_ext}$major'
17683 shlibpath_var=LD_LIBRARY_PATH
17684 shlibpath_overrides_runpath=yes
17691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17693 shlibpath_var=LD_LIBRARY_PATH
17694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17696 openbsd2.[89] | openbsd2.[89].*)
17697 shlibpath_overrides_runpath=no
17700 shlibpath_overrides_runpath=yes
17704 shlibpath_overrides_runpath=yes
17709 libname_spec='$name'
17712 library_names_spec='$libname${shared_ext} $libname.a'
17713 dynamic_linker='OS/2 ld.exe'
17714 shlibpath_var=LIBPATH
17717 osf3* | osf4* | osf5*)
17721 soname_spec='${libname}${release}${shared_ext}$major'
17722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723 shlibpath_var=LD_LIBRARY_PATH
17724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17730 soname_spec='${libname}${release}${shared_ext}$major'
17731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732 shlibpath_var=LD_LIBRARY_PATH
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740 soname_spec='${libname}${release}${shared_ext}$major'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 shlibpath_overrides_runpath=yes
17743 hardcode_into_libs=yes
17744 # ldd complains unless libraries are executable
17745 postinstall_cmds='chmod +x $lib'
17750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17752 shlibpath_var=LD_LIBRARY_PATH
17753 shlibpath_overrides_runpath=yes
17754 if test "$with_gnu_ld" = yes; then
17760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17763 soname_spec='${libname}${release}${shared_ext}$major'
17764 shlibpath_var=LD_LIBRARY_PATH
17765 case $host_vendor in
17767 shlibpath_overrides_runpath=no
17769 export_dynamic_flag_spec='${wl}-Blargedynsym'
17770 runpath_var=LD_RUN_PATH
17778 shlibpath_overrides_runpath=no
17779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17785 if test -d /usr/nec ;then
17787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17788 soname_spec='$libname${shared_ext}.$major'
17789 shlibpath_var=LD_LIBRARY_PATH
17795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17796 soname_spec='${libname}${release}${shared_ext}$major'
17797 shlibpath_var=LD_LIBRARY_PATH
17804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17805 echo "${ECHO_T}$dynamic_linker" >&6
17806 test "$dynamic_linker" = no && can_build_shared=no
17808 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17810 hardcode_action_GCJ=
17811 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17812 test -n "$runpath_var_GCJ" || \
17813 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17815 # We can hardcode non-existant directories.
17816 if test "$hardcode_direct_GCJ" != no &&
17817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17818 # have to relink, otherwise we might link with an installed library
17819 # when we should be linking with a yet-to-be-installed one
17820 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17821 test "$hardcode_minus_L_GCJ" != no; then
17822 # Linking always hardcodes the temporary library directory.
17823 hardcode_action_GCJ=relink
17825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17826 hardcode_action_GCJ=immediate
17829 # We cannot hardcode anything, or else we can only hardcode existing
17831 hardcode_action_GCJ=unsupported
17833 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17834 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17836 if test "$hardcode_action_GCJ" = relink; then
17837 # Fast installation is not supported
17838 enable_fast_install=no
17839 elif test "$shlibpath_overrides_runpath" = yes ||
17840 test "$enable_shared" = no; then
17841 # Fast installation is not necessary
17842 enable_fast_install=needless
17847 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17848 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17849 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17850 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17851 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17852 echo "$as_me:$LINENO: result: yes" >&5
17853 echo "${ECHO_T}yes" >&6
17855 # FIXME - insert some real tests, host_os isn't really good enough
17858 if test -n "$STRIP" ; then
17859 striplib="$STRIP -x"
17860 echo "$as_me:$LINENO: result: yes" >&5
17861 echo "${ECHO_T}yes" >&6
17863 echo "$as_me:$LINENO: result: no" >&5
17864 echo "${ECHO_T}no" >&6
17868 echo "$as_me:$LINENO: result: no" >&5
17869 echo "${ECHO_T}no" >&6
17874 if test "x$enable_dlopen" != xyes; then
17875 enable_dlopen=unknown
17876 enable_dlopen_self=unknown
17877 enable_dlopen_self_static=unknown
17884 lt_cv_dlopen="load_add_on"
17886 lt_cv_dlopen_self=yes
17890 lt_cv_dlopen="LoadLibrary"
17895 lt_cv_dlopen="dlopen"
17900 # if libdl is installed we need to link against it
17901 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17904 echo $ECHO_N "(cached) $ECHO_C" >&6
17906 ac_check_lib_save_LIBS=$LIBS
17908 cat >conftest.$ac_ext <<_ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17915 /* Override any gcc2 internal prototype to avoid an error. */
17919 /* We use char because int might match the return type of a gcc2
17920 builtin and then its argument prototype would still apply. */
17930 rm -f conftest.$ac_objext conftest$ac_exeext
17931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17932 (eval $ac_link) 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -z "$ac_c_werror_flag"
17940 || test ! -s conftest.err'
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest$ac_exeext'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 ac_cv_lib_dl_dlopen=yes
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 ac_cv_lib_dl_dlopen=no
17959 rm -f conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17963 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17964 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17965 if test $ac_cv_lib_dl_dlopen = yes; then
17966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17969 lt_cv_dlopen="dyld"
17971 lt_cv_dlopen_self=yes
17978 echo "$as_me:$LINENO: checking for shl_load" >&5
17979 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17980 if test "${ac_cv_func_shl_load+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 cat >conftest.$ac_ext <<_ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17991 #define shl_load innocuous_shl_load
17993 /* System header to define __stub macros and hopefully few prototypes,
17994 which can conflict with char shl_load (); below.
17995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17996 <limits.h> exists even on freestanding compilers. */
17999 # include <limits.h>
18001 # include <assert.h>
18006 /* Override any gcc2 internal prototype to avoid an error. */
18011 /* We use char because int might match the return type of a gcc2
18012 builtin and then its argument prototype would still apply. */
18014 /* The GNU C library defines this for functions which it implements
18015 to always fail with ENOSYS. Some functions are actually named
18016 something starting with __ and the normal name is an alias. */
18017 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18020 char (*f) () = shl_load;
18029 return f != shl_load;
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18036 (eval $ac_link) 2>conftest.er1
18038 grep -v '^ *+' conftest.er1 >conftest.err
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
18043 { ac_try='test -z "$ac_c_werror_flag"
18044 || test ! -s conftest.err'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest$ac_exeext'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 ac_cv_func_shl_load=yes
18058 echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18061 ac_cv_func_shl_load=no
18063 rm -f conftest.err conftest.$ac_objext \
18064 conftest$ac_exeext conftest.$ac_ext
18066 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18067 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18068 if test $ac_cv_func_shl_load = yes; then
18069 lt_cv_dlopen="shl_load"
18071 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18072 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18073 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 ac_check_lib_save_LIBS=$LIBS
18078 cat >conftest.$ac_ext <<_ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18085 /* Override any gcc2 internal prototype to avoid an error. */
18089 /* We use char because int might match the return type of a gcc2
18090 builtin and then its argument prototype would still apply. */
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102 (eval $ac_link) 2>conftest.er1
18104 grep -v '^ *+' conftest.er1 >conftest.err
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
18109 { ac_try='test -z "$ac_c_werror_flag"
18110 || test ! -s conftest.err'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest$ac_exeext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 ac_cv_lib_dld_shl_load=yes
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18127 ac_cv_lib_dld_shl_load=no
18129 rm -f conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext conftest.$ac_ext
18131 LIBS=$ac_check_lib_save_LIBS
18133 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18134 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18135 if test $ac_cv_lib_dld_shl_load = yes; then
18136 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18138 echo "$as_me:$LINENO: checking for dlopen" >&5
18139 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18140 if test "${ac_cv_func_dlopen+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 cat >conftest.$ac_ext <<_ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18151 #define dlopen innocuous_dlopen
18153 /* System header to define __stub macros and hopefully few prototypes,
18154 which can conflict with char dlopen (); below.
18155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18156 <limits.h> exists even on freestanding compilers. */
18159 # include <limits.h>
18161 # include <assert.h>
18166 /* Override any gcc2 internal prototype to avoid an error. */
18171 /* We use char because int might match the return type of a gcc2
18172 builtin and then its argument prototype would still apply. */
18174 /* The GNU C library defines this for functions which it implements
18175 to always fail with ENOSYS. Some functions are actually named
18176 something starting with __ and the normal name is an alias. */
18177 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18180 char (*f) () = dlopen;
18189 return f != dlopen;
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18196 (eval $ac_link) 2>conftest.er1
18198 grep -v '^ *+' conftest.er1 >conftest.err
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest$ac_exeext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_func_dlopen=yes
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 ac_cv_func_dlopen=no
18223 rm -f conftest.err conftest.$ac_objext \
18224 conftest$ac_exeext conftest.$ac_ext
18226 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18227 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18228 if test $ac_cv_func_dlopen = yes; then
18229 lt_cv_dlopen="dlopen"
18231 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18232 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18233 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 ac_check_lib_save_LIBS=$LIBS
18238 cat >conftest.$ac_ext <<_ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18245 /* Override any gcc2 internal prototype to avoid an error. */
18249 /* We use char because int might match the return type of a gcc2
18250 builtin and then its argument prototype would still apply. */
18260 rm -f conftest.$ac_objext conftest$ac_exeext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18262 (eval $ac_link) 2>conftest.er1
18264 grep -v '^ *+' conftest.er1 >conftest.err
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try='test -z "$ac_c_werror_flag"
18270 || test ! -s conftest.err'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest$ac_exeext'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; }; then
18282 ac_cv_lib_dl_dlopen=yes
18284 echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18287 ac_cv_lib_dl_dlopen=no
18289 rm -f conftest.err conftest.$ac_objext \
18290 conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18293 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18295 if test $ac_cv_lib_dl_dlopen = yes; then
18296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18298 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18299 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18300 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 ac_check_lib_save_LIBS=$LIBS
18304 LIBS="-lsvld $LIBS"
18305 cat >conftest.$ac_ext <<_ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18312 /* Override any gcc2 internal prototype to avoid an error. */
18316 /* We use char because int might match the return type of a gcc2
18317 builtin and then its argument prototype would still apply. */
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18329 (eval $ac_link) 2>conftest.er1
18331 grep -v '^ *+' conftest.er1 >conftest.err
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag"
18337 || test ! -s conftest.err'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest$ac_exeext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349 ac_cv_lib_svld_dlopen=yes
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18354 ac_cv_lib_svld_dlopen=no
18356 rm -f conftest.err conftest.$ac_objext \
18357 conftest$ac_exeext conftest.$ac_ext
18358 LIBS=$ac_check_lib_save_LIBS
18360 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18361 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18362 if test $ac_cv_lib_svld_dlopen = yes; then
18363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18365 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18366 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18367 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 ac_check_lib_save_LIBS=$LIBS
18372 cat >conftest.$ac_ext <<_ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18379 /* Override any gcc2 internal prototype to avoid an error. */
18383 /* We use char because int might match the return type of a gcc2
18384 builtin and then its argument prototype would still apply. */
18394 rm -f conftest.$ac_objext conftest$ac_exeext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18396 (eval $ac_link) 2>conftest.er1
18398 grep -v '^ *+' conftest.er1 >conftest.err
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
18403 { ac_try='test -z "$ac_c_werror_flag"
18404 || test ! -s conftest.err'
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; } &&
18410 { ac_try='test -s conftest$ac_exeext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 ac_cv_lib_dld_dld_link=yes
18418 echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18421 ac_cv_lib_dld_dld_link=no
18423 rm -f conftest.err conftest.$ac_objext \
18424 conftest$ac_exeext conftest.$ac_ext
18425 LIBS=$ac_check_lib_save_LIBS
18427 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18428 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18429 if test $ac_cv_lib_dld_dld_link = yes; then
18430 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18451 if test "x$lt_cv_dlopen" != xno; then
18457 case $lt_cv_dlopen in
18459 save_CPPFLAGS="$CPPFLAGS"
18460 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18462 save_LDFLAGS="$LDFLAGS"
18463 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18466 LIBS="$lt_cv_dlopen_libs $LIBS"
18468 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18469 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18470 if test "${lt_cv_dlopen_self+set}" = set; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18473 if test "$cross_compiling" = yes; then :
18474 lt_cv_dlopen_self=cross
18476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18477 lt_status=$lt_dlunknown
18478 cat > conftest.$ac_ext <<EOF
18479 #line 18479 "configure"
18480 #include "confdefs.h"
18489 # define LT_DLGLOBAL RTLD_GLOBAL
18492 # define LT_DLGLOBAL DL_GLOBAL
18494 # define LT_DLGLOBAL 0
18498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18499 find out it does not work in some platform. */
18500 #ifndef LT_DLLAZY_OR_NOW
18502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18505 # define LT_DLLAZY_OR_NOW DL_LAZY
18508 # define LT_DLLAZY_OR_NOW RTLD_NOW
18511 # define LT_DLLAZY_OR_NOW DL_NOW
18513 # define LT_DLLAZY_OR_NOW 0
18521 extern "C" void exit (int);
18524 void fnord() { int i=42;}
18527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18528 int status = $lt_dlunknown;
18532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18533 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18534 /* dlclose (self); */
18540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18541 (eval $ac_link) 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18545 (./conftest; exit; ) 2>/dev/null
18547 case x$lt_status in
18548 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18549 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18550 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18553 # compilation failed
18554 lt_cv_dlopen_self=no
18561 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18562 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18564 if test "x$lt_cv_dlopen_self" = xyes; then
18565 LDFLAGS="$LDFLAGS $link_static_flag"
18566 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18567 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18568 if test "${lt_cv_dlopen_self_static+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 if test "$cross_compiling" = yes; then :
18572 lt_cv_dlopen_self_static=cross
18574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18575 lt_status=$lt_dlunknown
18576 cat > conftest.$ac_ext <<EOF
18577 #line 18577 "configure"
18578 #include "confdefs.h"
18587 # define LT_DLGLOBAL RTLD_GLOBAL
18590 # define LT_DLGLOBAL DL_GLOBAL
18592 # define LT_DLGLOBAL 0
18596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18597 find out it does not work in some platform. */
18598 #ifndef LT_DLLAZY_OR_NOW
18600 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18603 # define LT_DLLAZY_OR_NOW DL_LAZY
18606 # define LT_DLLAZY_OR_NOW RTLD_NOW
18609 # define LT_DLLAZY_OR_NOW DL_NOW
18611 # define LT_DLLAZY_OR_NOW 0
18619 extern "C" void exit (int);
18622 void fnord() { int i=42;}
18625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18626 int status = $lt_dlunknown;
18630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18631 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18632 /* dlclose (self); */
18638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18639 (eval $ac_link) 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18643 (./conftest; exit; ) 2>/dev/null
18645 case x$lt_status in
18646 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18647 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18648 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18651 # compilation failed
18652 lt_cv_dlopen_self_static=no
18659 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18660 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18663 CPPFLAGS="$save_CPPFLAGS"
18664 LDFLAGS="$save_LDFLAGS"
18669 case $lt_cv_dlopen_self in
18670 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18671 *) enable_dlopen_self=unknown ;;
18674 case $lt_cv_dlopen_self_static in
18675 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18676 *) enable_dlopen_self_static=unknown ;;
18681 # The else clause should only fire when bootstrapping the
18682 # libtool distribution, otherwise you forgot to ship ltmain.sh
18683 # with your package, and you will get complaints that there are
18684 # no rules to generate ltmain.sh.
18685 if test -f "$ltmain"; then
18686 # See if we are running on zsh, and set the options which allow our commands through
18687 # without removal of \ escapes.
18688 if test -n "${ZSH_VERSION+set}" ; then
18689 setopt NO_GLOB_SUBST
18691 # Now quote all the things that may contain metacharacters while being
18692 # careful not to overquote the AC_SUBSTed values. We take copies of the
18693 # variables and quote the copies for generation of the libtool script.
18694 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18696 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18697 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18698 deplibs_check_method reload_flag reload_cmds need_locks \
18699 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18700 lt_cv_sys_global_symbol_to_c_name_address \
18701 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18702 old_postinstall_cmds old_postuninstall_cmds \
18706 lt_prog_compiler_wl_GCJ \
18707 lt_prog_compiler_pic_GCJ \
18708 lt_prog_compiler_static_GCJ \
18709 lt_prog_compiler_no_builtin_flag_GCJ \
18710 export_dynamic_flag_spec_GCJ \
18711 thread_safe_flag_spec_GCJ \
18712 whole_archive_flag_spec_GCJ \
18713 enable_shared_with_static_runtimes_GCJ \
18714 old_archive_cmds_GCJ \
18715 old_archive_from_new_cmds_GCJ \
18716 predep_objects_GCJ \
18717 postdep_objects_GCJ \
18720 compiler_lib_search_path_GCJ \
18722 archive_expsym_cmds_GCJ \
18723 postinstall_cmds_GCJ \
18724 postuninstall_cmds_GCJ \
18725 old_archive_from_expsyms_cmds_GCJ \
18726 allow_undefined_flag_GCJ \
18727 no_undefined_flag_GCJ \
18728 export_symbols_cmds_GCJ \
18729 hardcode_libdir_flag_spec_GCJ \
18730 hardcode_libdir_flag_spec_ld_GCJ \
18731 hardcode_libdir_separator_GCJ \
18732 hardcode_automatic_GCJ \
18734 module_expsym_cmds_GCJ \
18735 lt_cv_prog_compiler_c_o_GCJ \
18736 exclude_expsyms_GCJ \
18737 include_expsyms_GCJ; do
18740 old_archive_cmds_GCJ | \
18741 old_archive_from_new_cmds_GCJ | \
18742 archive_cmds_GCJ | \
18743 archive_expsym_cmds_GCJ | \
18744 module_cmds_GCJ | \
18745 module_expsym_cmds_GCJ | \
18746 old_archive_from_expsyms_cmds_GCJ | \
18747 export_symbols_cmds_GCJ | \
18748 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18749 postinstall_cmds | postuninstall_cmds | \
18750 old_postinstall_cmds | old_postuninstall_cmds | \
18751 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18752 # Double-quote double-evaled strings.
18753 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18762 *'\$0 --fallback-echo"')
18763 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18769 cat <<__EOF__ >> "$cfgfile"
18770 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18772 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18774 # Shell to use when invoking shell scripts.
18777 # Whether or not to build shared libraries.
18778 build_libtool_libs=$enable_shared
18780 # Whether or not to build static libraries.
18781 build_old_libs=$enable_static
18783 # Whether or not to add -lc for building shared libraries.
18784 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18786 # Whether or not to disallow shared libs when runtime libs are static
18787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18789 # Whether or not to optimize for fast installation.
18790 fast_install=$enable_fast_install
18793 host_alias=$host_alias
18796 # An echo program that does not interpret backslashes.
18801 AR_FLAGS=$lt_AR_FLAGS
18806 # A language-specific compiler.
18807 CC=$lt_compiler_GCJ
18809 # Is the compiler the GNU C compiler?
18815 # The linker used to build libraries.
18818 # Whether we need hard or soft links.
18821 # A BSD-compatible nm program.
18824 # A symbol stripping program
18827 # Used to examine libraries when file_magic_cmd begins "file"
18828 MAGIC_CMD=$MAGIC_CMD
18830 # Used on cygwin: DLL creation program.
18833 # Used on cygwin: object dumper.
18836 # Used on cygwin: assembler.
18839 # The name of the directory that contains temporary libtool files.
18842 # How to create reloadable object files.
18843 reload_flag=$lt_reload_flag
18844 reload_cmds=$lt_reload_cmds
18846 # How to pass a linker flag through the compiler.
18847 wl=$lt_lt_prog_compiler_wl_GCJ
18849 # Object file suffix (normally "o").
18850 objext="$ac_objext"
18852 # Old archive suffix (normally "a").
18855 # Shared library suffix (normally ".so").
18856 shrext_cmds='$shrext_cmds'
18858 # Executable file suffix (normally "").
18861 # Additional compiler flags for building library objects.
18862 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18865 # What is the maximum length of a command?
18866 max_cmd_len=$lt_cv_sys_max_cmd_len
18868 # Does compiler simultaneously support -c and -o options?
18869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18871 # Must we lock files when doing compilation ?
18872 need_locks=$lt_need_locks
18874 # Do we need the lib prefix for modules?
18875 need_lib_prefix=$need_lib_prefix
18877 # Do we need a version for libraries?
18878 need_version=$need_version
18880 # Whether dlopen is supported.
18881 dlopen_support=$enable_dlopen
18883 # Whether dlopen of programs is supported.
18884 dlopen_self=$enable_dlopen_self
18886 # Whether dlopen of statically linked programs is supported.
18887 dlopen_self_static=$enable_dlopen_self_static
18889 # Compiler flag to prevent dynamic linking.
18890 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18892 # Compiler flag to turn off builtin functions.
18893 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18895 # Compiler flag to allow reflexive dlopens.
18896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18898 # Compiler flag to generate shared objects directly from archives.
18899 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18901 # Compiler flag to generate thread-safe objects.
18902 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18904 # Library versioning type.
18905 version_type=$version_type
18907 # Format of library name prefix.
18908 libname_spec=$lt_libname_spec
18910 # List of archive names. First name is the real one, the rest are links.
18911 # The last name is the one that the linker finds with -lNAME.
18912 library_names_spec=$lt_library_names_spec
18914 # The coded name of the library, if different from the real name.
18915 soname_spec=$lt_soname_spec
18917 # Commands used to build and install an old-style archive.
18919 old_archive_cmds=$lt_old_archive_cmds_GCJ
18920 old_postinstall_cmds=$lt_old_postinstall_cmds
18921 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18923 # Create an old-style archive from a shared archive.
18924 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18926 # Create a temporary old-style archive to link instead of a shared archive.
18927 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18929 # Commands used to build and install a shared archive.
18930 archive_cmds=$lt_archive_cmds_GCJ
18931 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18932 postinstall_cmds=$lt_postinstall_cmds
18933 postuninstall_cmds=$lt_postuninstall_cmds
18935 # Commands used to build a loadable module (assumed same as above if empty)
18936 module_cmds=$lt_module_cmds_GCJ
18937 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18939 # Commands to strip libraries.
18940 old_striplib=$lt_old_striplib
18941 striplib=$lt_striplib
18943 # Dependencies to place before the objects being linked to create a
18945 predep_objects=$lt_predep_objects_GCJ
18947 # Dependencies to place after the objects being linked to create a
18949 postdep_objects=$lt_postdep_objects_GCJ
18951 # Dependencies to place before the objects being linked to create a
18953 predeps=$lt_predeps_GCJ
18955 # Dependencies to place after the objects being linked to create a
18957 postdeps=$lt_postdeps_GCJ
18959 # The library search path used internally by the compiler when linking
18960 # a shared library.
18961 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18963 # Method to check whether dependent libraries are shared objects.
18964 deplibs_check_method=$lt_deplibs_check_method
18966 # Command to use when deplibs_check_method == file_magic.
18967 file_magic_cmd=$lt_file_magic_cmd
18969 # Flag that allows shared libraries with undefined symbols to be built.
18970 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18972 # Flag that forces no undefined symbols.
18973 no_undefined_flag=$lt_no_undefined_flag_GCJ
18975 # Commands used to finish a libtool library installation in a directory.
18976 finish_cmds=$lt_finish_cmds
18978 # Same as above, but a single script fragment to be evaled but not shown.
18979 finish_eval=$lt_finish_eval
18981 # Take the output of nm and produce a listing of raw symbols and C names.
18982 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18984 # Transform the output of nm in a proper C declaration
18985 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18987 # Transform the output of nm in a C name address pair
18988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18990 # This is the shared library runtime path variable.
18991 runpath_var=$runpath_var
18993 # This is the shared library path variable.
18994 shlibpath_var=$shlibpath_var
18996 # Is shlibpath searched before the hard-coded library search path?
18997 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18999 # How to hardcode a shared library path into an executable.
19000 hardcode_action=$hardcode_action_GCJ
19002 # Whether we should hardcode library paths into libraries.
19003 hardcode_into_libs=$hardcode_into_libs
19005 # Flag to hardcode \$libdir into a binary during linking.
19006 # This must work even if \$libdir does not exist.
19007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19009 # If ld is used when linking, flag to hardcode \$libdir into
19010 # a binary during linking. This must work even if \$libdir does
19012 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19014 # Whether we need a single -rpath flag with a separated argument.
19015 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19017 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19018 # resulting binary.
19019 hardcode_direct=$hardcode_direct_GCJ
19021 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19022 # resulting binary.
19023 hardcode_minus_L=$hardcode_minus_L_GCJ
19025 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19026 # the resulting binary.
19027 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19029 # Set to yes if building a shared library automatically hardcodes DIR into the library
19030 # and all subsequent libraries and executables linked against it.
19031 hardcode_automatic=$hardcode_automatic_GCJ
19033 # Variables whose values should be saved in libtool wrapper scripts and
19034 # restored at relink time.
19035 variables_saved_for_relink="$variables_saved_for_relink"
19037 # Whether libtool must link a program against all its dependency libraries.
19038 link_all_deplibs=$link_all_deplibs_GCJ
19040 # Compile-time system search path for libraries
19041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19043 # Run-time system search path for libraries
19044 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19046 # Fix the shell variable \$srcfile for the compiler.
19047 fix_srcfile_path="$fix_srcfile_path_GCJ"
19049 # Set to yes if exported symbols are required.
19050 always_export_symbols=$always_export_symbols_GCJ
19052 # The commands to list exported symbols.
19053 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19055 # The commands to extract the exported symbol list from a shared archive.
19056 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19058 # Symbols that should not be listed in the preloaded symbols.
19059 exclude_expsyms=$lt_exclude_expsyms_GCJ
19061 # Symbols that must always be exported.
19062 include_expsyms=$lt_include_expsyms_GCJ
19064 # ### END LIBTOOL TAG CONFIG: $tagname
19070 # If there is no Makefile yet, we rely on a make rule to execute
19071 # `config.status --recheck' to rerun these tests and create the
19072 # libtool script then.
19073 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19074 if test -f "$ltmain_in"; then
19075 test -f Makefile && make "$ltmain"
19081 ac_cpp='$CPP $CPPFLAGS'
19082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19097 # Source file extension for RC test sources.
19100 # Object file extension for compiled RC test sources.
19104 # Code to be used in simple compile tests
19105 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19107 # Code to be used in simple link tests
19108 lt_simple_link_test_code="$lt_simple_compile_test_code"
19110 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19112 # If no C compiler was specified, use CC.
19115 # Allow CC to be a program name with arguments.
19119 # Allow CC to be a program name with arguments.
19124 lt_cv_prog_compiler_c_o_RC=yes
19126 # The else clause should only fire when bootstrapping the
19127 # libtool distribution, otherwise you forgot to ship ltmain.sh
19128 # with your package, and you will get complaints that there are
19129 # no rules to generate ltmain.sh.
19130 if test -f "$ltmain"; then
19131 # See if we are running on zsh, and set the options which allow our commands through
19132 # without removal of \ escapes.
19133 if test -n "${ZSH_VERSION+set}" ; then
19134 setopt NO_GLOB_SUBST
19136 # Now quote all the things that may contain metacharacters while being
19137 # careful not to overquote the AC_SUBSTed values. We take copies of the
19138 # variables and quote the copies for generation of the libtool script.
19139 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19141 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19142 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19143 deplibs_check_method reload_flag reload_cmds need_locks \
19144 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19145 lt_cv_sys_global_symbol_to_c_name_address \
19146 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19147 old_postinstall_cmds old_postuninstall_cmds \
19151 lt_prog_compiler_wl_RC \
19152 lt_prog_compiler_pic_RC \
19153 lt_prog_compiler_static_RC \
19154 lt_prog_compiler_no_builtin_flag_RC \
19155 export_dynamic_flag_spec_RC \
19156 thread_safe_flag_spec_RC \
19157 whole_archive_flag_spec_RC \
19158 enable_shared_with_static_runtimes_RC \
19159 old_archive_cmds_RC \
19160 old_archive_from_new_cmds_RC \
19161 predep_objects_RC \
19162 postdep_objects_RC \
19165 compiler_lib_search_path_RC \
19167 archive_expsym_cmds_RC \
19168 postinstall_cmds_RC \
19169 postuninstall_cmds_RC \
19170 old_archive_from_expsyms_cmds_RC \
19171 allow_undefined_flag_RC \
19172 no_undefined_flag_RC \
19173 export_symbols_cmds_RC \
19174 hardcode_libdir_flag_spec_RC \
19175 hardcode_libdir_flag_spec_ld_RC \
19176 hardcode_libdir_separator_RC \
19177 hardcode_automatic_RC \
19179 module_expsym_cmds_RC \
19180 lt_cv_prog_compiler_c_o_RC \
19181 exclude_expsyms_RC \
19182 include_expsyms_RC; do
19185 old_archive_cmds_RC | \
19186 old_archive_from_new_cmds_RC | \
19187 archive_cmds_RC | \
19188 archive_expsym_cmds_RC | \
19190 module_expsym_cmds_RC | \
19191 old_archive_from_expsyms_cmds_RC | \
19192 export_symbols_cmds_RC | \
19193 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19194 postinstall_cmds | postuninstall_cmds | \
19195 old_postinstall_cmds | old_postuninstall_cmds | \
19196 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19197 # Double-quote double-evaled strings.
19198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19207 *'\$0 --fallback-echo"')
19208 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19214 cat <<__EOF__ >> "$cfgfile"
19215 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19217 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19219 # Shell to use when invoking shell scripts.
19222 # Whether or not to build shared libraries.
19223 build_libtool_libs=$enable_shared
19225 # Whether or not to build static libraries.
19226 build_old_libs=$enable_static
19228 # Whether or not to add -lc for building shared libraries.
19229 build_libtool_need_lc=$archive_cmds_need_lc_RC
19231 # Whether or not to disallow shared libs when runtime libs are static
19232 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19234 # Whether or not to optimize for fast installation.
19235 fast_install=$enable_fast_install
19238 host_alias=$host_alias
19241 # An echo program that does not interpret backslashes.
19246 AR_FLAGS=$lt_AR_FLAGS
19251 # A language-specific compiler.
19254 # Is the compiler the GNU C compiler?
19260 # The linker used to build libraries.
19263 # Whether we need hard or soft links.
19266 # A BSD-compatible nm program.
19269 # A symbol stripping program
19272 # Used to examine libraries when file_magic_cmd begins "file"
19273 MAGIC_CMD=$MAGIC_CMD
19275 # Used on cygwin: DLL creation program.
19278 # Used on cygwin: object dumper.
19281 # Used on cygwin: assembler.
19284 # The name of the directory that contains temporary libtool files.
19287 # How to create reloadable object files.
19288 reload_flag=$lt_reload_flag
19289 reload_cmds=$lt_reload_cmds
19291 # How to pass a linker flag through the compiler.
19292 wl=$lt_lt_prog_compiler_wl_RC
19294 # Object file suffix (normally "o").
19295 objext="$ac_objext"
19297 # Old archive suffix (normally "a").
19300 # Shared library suffix (normally ".so").
19301 shrext_cmds='$shrext_cmds'
19303 # Executable file suffix (normally "").
19306 # Additional compiler flags for building library objects.
19307 pic_flag=$lt_lt_prog_compiler_pic_RC
19310 # What is the maximum length of a command?
19311 max_cmd_len=$lt_cv_sys_max_cmd_len
19313 # Does compiler simultaneously support -c and -o options?
19314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19316 # Must we lock files when doing compilation ?
19317 need_locks=$lt_need_locks
19319 # Do we need the lib prefix for modules?
19320 need_lib_prefix=$need_lib_prefix
19322 # Do we need a version for libraries?
19323 need_version=$need_version
19325 # Whether dlopen is supported.
19326 dlopen_support=$enable_dlopen
19328 # Whether dlopen of programs is supported.
19329 dlopen_self=$enable_dlopen_self
19331 # Whether dlopen of statically linked programs is supported.
19332 dlopen_self_static=$enable_dlopen_self_static
19334 # Compiler flag to prevent dynamic linking.
19335 link_static_flag=$lt_lt_prog_compiler_static_RC
19337 # Compiler flag to turn off builtin functions.
19338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19340 # Compiler flag to allow reflexive dlopens.
19341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19343 # Compiler flag to generate shared objects directly from archives.
19344 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19346 # Compiler flag to generate thread-safe objects.
19347 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19349 # Library versioning type.
19350 version_type=$version_type
19352 # Format of library name prefix.
19353 libname_spec=$lt_libname_spec
19355 # List of archive names. First name is the real one, the rest are links.
19356 # The last name is the one that the linker finds with -lNAME.
19357 library_names_spec=$lt_library_names_spec
19359 # The coded name of the library, if different from the real name.
19360 soname_spec=$lt_soname_spec
19362 # Commands used to build and install an old-style archive.
19364 old_archive_cmds=$lt_old_archive_cmds_RC
19365 old_postinstall_cmds=$lt_old_postinstall_cmds
19366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19368 # Create an old-style archive from a shared archive.
19369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19371 # Create a temporary old-style archive to link instead of a shared archive.
19372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19374 # Commands used to build and install a shared archive.
19375 archive_cmds=$lt_archive_cmds_RC
19376 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19377 postinstall_cmds=$lt_postinstall_cmds
19378 postuninstall_cmds=$lt_postuninstall_cmds
19380 # Commands used to build a loadable module (assumed same as above if empty)
19381 module_cmds=$lt_module_cmds_RC
19382 module_expsym_cmds=$lt_module_expsym_cmds_RC
19384 # Commands to strip libraries.
19385 old_striplib=$lt_old_striplib
19386 striplib=$lt_striplib
19388 # Dependencies to place before the objects being linked to create a
19390 predep_objects=$lt_predep_objects_RC
19392 # Dependencies to place after the objects being linked to create a
19394 postdep_objects=$lt_postdep_objects_RC
19396 # Dependencies to place before the objects being linked to create a
19398 predeps=$lt_predeps_RC
19400 # Dependencies to place after the objects being linked to create a
19402 postdeps=$lt_postdeps_RC
19404 # The library search path used internally by the compiler when linking
19405 # a shared library.
19406 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19408 # Method to check whether dependent libraries are shared objects.
19409 deplibs_check_method=$lt_deplibs_check_method
19411 # Command to use when deplibs_check_method == file_magic.
19412 file_magic_cmd=$lt_file_magic_cmd
19414 # Flag that allows shared libraries with undefined symbols to be built.
19415 allow_undefined_flag=$lt_allow_undefined_flag_RC
19417 # Flag that forces no undefined symbols.
19418 no_undefined_flag=$lt_no_undefined_flag_RC
19420 # Commands used to finish a libtool library installation in a directory.
19421 finish_cmds=$lt_finish_cmds
19423 # Same as above, but a single script fragment to be evaled but not shown.
19424 finish_eval=$lt_finish_eval
19426 # Take the output of nm and produce a listing of raw symbols and C names.
19427 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19429 # Transform the output of nm in a proper C declaration
19430 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19432 # Transform the output of nm in a C name address pair
19433 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19435 # This is the shared library runtime path variable.
19436 runpath_var=$runpath_var
19438 # This is the shared library path variable.
19439 shlibpath_var=$shlibpath_var
19441 # Is shlibpath searched before the hard-coded library search path?
19442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19444 # How to hardcode a shared library path into an executable.
19445 hardcode_action=$hardcode_action_RC
19447 # Whether we should hardcode library paths into libraries.
19448 hardcode_into_libs=$hardcode_into_libs
19450 # Flag to hardcode \$libdir into a binary during linking.
19451 # This must work even if \$libdir does not exist.
19452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19454 # If ld is used when linking, flag to hardcode \$libdir into
19455 # a binary during linking. This must work even if \$libdir does
19457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19459 # Whether we need a single -rpath flag with a separated argument.
19460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19462 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19463 # resulting binary.
19464 hardcode_direct=$hardcode_direct_RC
19466 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19467 # resulting binary.
19468 hardcode_minus_L=$hardcode_minus_L_RC
19470 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19471 # the resulting binary.
19472 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19474 # Set to yes if building a shared library automatically hardcodes DIR into the library
19475 # and all subsequent libraries and executables linked against it.
19476 hardcode_automatic=$hardcode_automatic_RC
19478 # Variables whose values should be saved in libtool wrapper scripts and
19479 # restored at relink time.
19480 variables_saved_for_relink="$variables_saved_for_relink"
19482 # Whether libtool must link a program against all its dependency libraries.
19483 link_all_deplibs=$link_all_deplibs_RC
19485 # Compile-time system search path for libraries
19486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19488 # Run-time system search path for libraries
19489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19491 # Fix the shell variable \$srcfile for the compiler.
19492 fix_srcfile_path="$fix_srcfile_path_RC"
19494 # Set to yes if exported symbols are required.
19495 always_export_symbols=$always_export_symbols_RC
19497 # The commands to list exported symbols.
19498 export_symbols_cmds=$lt_export_symbols_cmds_RC
19500 # The commands to extract the exported symbol list from a shared archive.
19501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19503 # Symbols that should not be listed in the preloaded symbols.
19504 exclude_expsyms=$lt_exclude_expsyms_RC
19506 # Symbols that must always be exported.
19507 include_expsyms=$lt_include_expsyms_RC
19509 # ### END LIBTOOL TAG CONFIG: $tagname
19515 # If there is no Makefile yet, we rely on a make rule to execute
19516 # `config.status --recheck' to rerun these tests and create the
19517 # libtool script then.
19518 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19519 if test -f "$ltmain_in"; then
19520 test -f Makefile && make "$ltmain"
19526 ac_cpp='$CPP $CPPFLAGS'
19527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19536 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19537 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19538 { (exit 1); exit 1; }; }
19542 # Append the new tag name to the list of available tags.
19543 if test -n "$tagname" ; then
19544 available_tags="$available_tags $tagname"
19550 # Now substitute the updated list of available tags.
19551 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19552 mv "${ofile}T" "$ofile"
19556 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19557 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19558 { (exit 1); exit 1; }; }
19564 # This can be used to rebuild libtool when needed
19565 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19567 # Always use our own libtool.
19568 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19570 # Prevent multiple expansion
19598 ac_header_dirent=no
19599 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19600 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19601 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19602 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 #include <sys/types.h>
19624 rm -f conftest.$ac_objext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626 (eval $ac_compile) 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_c_werror_flag"
19634 || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646 eval "$as_ac_Header=yes"
19648 echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19651 eval "$as_ac_Header=no"
19653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19658 cat >>confdefs.h <<_ACEOF
19659 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19662 ac_header_dirent=$ac_hdr; break
19666 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19667 if test $ac_header_dirent = dirent.h; then
19668 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19669 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19670 if test "${ac_cv_search_opendir+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 ac_func_search_save_LIBS=$LIBS
19674 ac_cv_search_opendir=no
19675 cat >conftest.$ac_ext <<_ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19682 /* Override any gcc2 internal prototype to avoid an error. */
19686 /* We use char because int might match the return type of a gcc2
19687 builtin and then its argument prototype would still apply. */
19697 rm -f conftest.$ac_objext conftest$ac_exeext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19699 (eval $ac_link) 2>conftest.er1
19701 grep -v '^ *+' conftest.er1 >conftest.err
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } &&
19706 { ac_try='test -z "$ac_c_werror_flag"
19707 || test ! -s conftest.err'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try='test -s conftest$ac_exeext'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719 ac_cv_search_opendir="none required"
19721 echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19725 rm -f conftest.err conftest.$ac_objext \
19726 conftest$ac_exeext conftest.$ac_ext
19727 if test "$ac_cv_search_opendir" = no; then
19728 for ac_lib in dir; do
19729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19730 cat >conftest.$ac_ext <<_ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19737 /* Override any gcc2 internal prototype to avoid an error. */
19741 /* We use char because int might match the return type of a gcc2
19742 builtin and then its argument prototype would still apply. */
19752 rm -f conftest.$ac_objext conftest$ac_exeext
19753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19754 (eval $ac_link) 2>conftest.er1
19756 grep -v '^ *+' conftest.er1 >conftest.err
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } &&
19761 { ac_try='test -z "$ac_c_werror_flag"
19762 || test ! -s conftest.err'
19763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764 (eval $ac_try) 2>&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; } &&
19768 { ac_try='test -s conftest$ac_exeext'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; }; then
19774 ac_cv_search_opendir="-l$ac_lib"
19777 echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19781 rm -f conftest.err conftest.$ac_objext \
19782 conftest$ac_exeext conftest.$ac_ext
19785 LIBS=$ac_func_search_save_LIBS
19787 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19788 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19789 if test "$ac_cv_search_opendir" != no; then
19790 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19795 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19796 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19797 if test "${ac_cv_search_opendir+set}" = set; then
19798 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 ac_func_search_save_LIBS=$LIBS
19801 ac_cv_search_opendir=no
19802 cat >conftest.$ac_ext <<_ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h. */
19809 /* Override any gcc2 internal prototype to avoid an error. */
19813 /* We use char because int might match the return type of a gcc2
19814 builtin and then its argument prototype would still apply. */
19824 rm -f conftest.$ac_objext conftest$ac_exeext
19825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19826 (eval $ac_link) 2>conftest.er1
19828 grep -v '^ *+' conftest.er1 >conftest.err
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
19833 { ac_try='test -z "$ac_c_werror_flag"
19834 || test ! -s conftest.err'
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; } &&
19840 { ac_try='test -s conftest$ac_exeext'
19841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; }; then
19846 ac_cv_search_opendir="none required"
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19852 rm -f conftest.err conftest.$ac_objext \
19853 conftest$ac_exeext conftest.$ac_ext
19854 if test "$ac_cv_search_opendir" = no; then
19855 for ac_lib in x; do
19856 LIBS="-l$ac_lib $ac_func_search_save_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"
19889 || test ! -s conftest.err'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; } &&
19895 { ac_try='test -s conftest$ac_exeext'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; }; then
19901 ac_cv_search_opendir="-l$ac_lib"
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19908 rm -f conftest.err conftest.$ac_objext \
19909 conftest$ac_exeext conftest.$ac_ext
19912 LIBS=$ac_func_search_save_LIBS
19914 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19915 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19916 if test "$ac_cv_search_opendir" != no; then
19917 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19923 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
19924 if test "${enable_ltdl_install+set}" = set; then
19925 enableval="$enable_ltdl_install"
19931 if test x"${enable_ltdl_install-no}" != xno; then
19933 INSTALL_LTDL_FALSE='#'
19935 INSTALL_LTDL_TRUE='#'
19936 INSTALL_LTDL_FALSE=
19941 if test x"${enable_ltdl_convenience-no}" != xno; then
19942 CONVENIENCE_LTDL_TRUE=
19943 CONVENIENCE_LTDL_FALSE='#'
19945 CONVENIENCE_LTDL_TRUE='#'
19946 CONVENIENCE_LTDL_FALSE=
19951 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19952 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
19953 if test "${libltdl_cv_shlibext+set}" = set; then
19954 echo $ECHO_N "(cached) $ECHO_C" >&6
19958 eval libltdl_cv_shlibext=$shrext_cmds
19961 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19962 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
19963 if test -n "$libltdl_cv_shlibext"; then
19965 cat >>confdefs.h <<_ACEOF
19966 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19972 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19973 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
19974 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19977 libltdl_cv_shlibpath_var="$shlibpath_var"
19979 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19980 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
19981 if test -n "$libltdl_cv_shlibpath_var"; then
19983 cat >>confdefs.h <<_ACEOF
19984 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19990 echo "$as_me:$LINENO: checking for the default library search path" >&5
19991 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
19992 if test "${libltdl_cv_sys_search_path+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19997 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19998 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
19999 if test -n "$libltdl_cv_sys_search_path"; then
20001 for dir in $libltdl_cv_sys_search_path; do
20002 if test -z "$sys_search_path"; then
20003 sys_search_path="$dir"
20005 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20009 cat >>confdefs.h <<_ACEOF
20010 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20015 echo "$as_me:$LINENO: checking for objdir" >&5
20016 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20017 if test "${libltdl_cv_objdir+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 libltdl_cv_objdir="$objdir"
20021 if test -n "$objdir"; then
20024 rm -f .libs 2>/dev/null
20025 mkdir .libs 2>/dev/null
20026 if test -d .libs; then
20027 libltdl_cv_objdir=.libs
20029 # MS-DOS does not allow filenames that begin with a dot.
20030 libltdl_cv_objdir=_libs
20032 rmdir .libs 2>/dev/null
20036 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20037 echo "${ECHO_T}$libltdl_cv_objdir" >&6
20039 cat >>confdefs.h <<_ACEOF
20040 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20045 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20046 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
20047 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20051 libltdl_cv_preloaded_symbols=yes
20053 libltdl_cv_preloaded_symbols=no
20057 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20058 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
20059 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20061 cat >>confdefs.h <<\_ACEOF
20062 #define HAVE_PRELOADED_SYMBOLS 1
20070 ac_cpp='$CPP $CPPFLAGS'
20071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20076 echo "$as_me:$LINENO: checking for shl_load" >&5
20077 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20078 if test "${ac_cv_func_shl_load+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 cat >conftest.$ac_ext <<_ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h. */
20087 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20089 #define shl_load innocuous_shl_load
20091 /* System header to define __stub macros and hopefully few prototypes,
20092 which can conflict with char shl_load (); below.
20093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20094 <limits.h> exists even on freestanding compilers. */
20097 # include <limits.h>
20099 # include <assert.h>
20104 /* Override any gcc2 internal prototype to avoid an error. */
20109 /* We use char because int might match the return type of a gcc2
20110 builtin and then its argument prototype would still apply. */
20112 /* The GNU C library defines this for functions which it implements
20113 to always fail with ENOSYS. Some functions are actually named
20114 something starting with __ and the normal name is an alias. */
20115 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20118 char (*f) () = shl_load;
20127 return f != shl_load;
20132 rm -f conftest.$ac_objext conftest$ac_exeext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20134 (eval $ac_link) 2>conftest.er1
20136 grep -v '^ *+' conftest.er1 >conftest.err
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
20141 { ac_try='test -z "$ac_c_werror_flag"
20142 || test ! -s conftest.err'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest$ac_exeext'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 ac_cv_func_shl_load=yes
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 ac_cv_func_shl_load=no
20161 rm -f conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20164 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20165 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20166 if test $ac_cv_func_shl_load = yes; then
20168 cat >>confdefs.h <<\_ACEOF
20169 #define HAVE_SHL_LOAD 1
20173 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20174 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20175 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20176 echo $ECHO_N "(cached) $ECHO_C" >&6
20178 ac_check_lib_save_LIBS=$LIBS
20180 cat >conftest.$ac_ext <<_ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h. */
20187 /* Override any gcc2 internal prototype to avoid an error. */
20191 /* We use char because int might match the return type of a gcc2
20192 builtin and then its argument prototype would still apply. */
20202 rm -f conftest.$ac_objext conftest$ac_exeext
20203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20204 (eval $ac_link) 2>conftest.er1
20206 grep -v '^ *+' conftest.er1 >conftest.err
20208 cat conftest.err >&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } &&
20211 { ac_try='test -z "$ac_c_werror_flag"
20212 || test ! -s conftest.err'
20213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20214 (eval $ac_try) 2>&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }; } &&
20218 { ac_try='test -s conftest$ac_exeext'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; }; then
20224 ac_cv_lib_dld_shl_load=yes
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20229 ac_cv_lib_dld_shl_load=no
20231 rm -f conftest.err conftest.$ac_objext \
20232 conftest$ac_exeext conftest.$ac_ext
20233 LIBS=$ac_check_lib_save_LIBS
20235 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20236 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20237 if test $ac_cv_lib_dld_shl_load = yes; then
20239 cat >>confdefs.h <<\_ACEOF
20240 #define HAVE_SHL_LOAD 1
20243 LIBADD_DL="$LIBADD_DL -ldld"
20245 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20246 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20247 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20250 ac_check_lib_save_LIBS=$LIBS
20252 cat >conftest.$ac_ext <<_ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20259 /* Override any gcc2 internal prototype to avoid an error. */
20263 /* We use char because int might match the return type of a gcc2
20264 builtin and then its argument prototype would still apply. */
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20276 (eval $ac_link) 2>conftest.er1
20278 grep -v '^ *+' conftest.er1 >conftest.err
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } &&
20283 { ac_try='test -z "$ac_c_werror_flag"
20284 || test ! -s conftest.err'
20285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20286 (eval $ac_try) 2>&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); }; } &&
20290 { ac_try='test -s conftest$ac_exeext'
20291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292 (eval $ac_try) 2>&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; }; then
20296 ac_cv_lib_dl_dlopen=yes
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 ac_cv_lib_dl_dlopen=no
20303 rm -f conftest.err conftest.$ac_objext \
20304 conftest$ac_exeext conftest.$ac_ext
20305 LIBS=$ac_check_lib_save_LIBS
20307 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20308 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20309 if test $ac_cv_lib_dl_dlopen = yes; then
20311 cat >>confdefs.h <<\_ACEOF
20312 #define HAVE_LIBDL 1
20315 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20317 cat >conftest.$ac_ext <<_ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20324 # include <dlfcn.h>
20335 rm -f conftest.$ac_objext conftest$ac_exeext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337 (eval $ac_link) 2>conftest.er1
20339 grep -v '^ *+' conftest.er1 >conftest.err
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } &&
20344 { ac_try='test -z "$ac_c_werror_flag"
20345 || test ! -s conftest.err'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; } &&
20351 { ac_try='test -s conftest$ac_exeext'
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20358 cat >>confdefs.h <<\_ACEOF
20359 #define HAVE_LIBDL 1
20361 libltdl_cv_func_dlopen="yes"
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20367 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20368 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 ac_check_lib_save_LIBS=$LIBS
20372 LIBS="-lsvld $LIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20380 /* Override any gcc2 internal prototype to avoid an error. */
20384 /* We use char because int might match the return type of a gcc2
20385 builtin and then its argument prototype would still apply. */
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20397 (eval $ac_link) 2>conftest.er1
20399 grep -v '^ *+' conftest.er1 >conftest.err
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -z "$ac_c_werror_flag"
20405 || test ! -s conftest.err'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } &&
20411 { ac_try='test -s conftest$ac_exeext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_cv_lib_svld_dlopen=yes
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 ac_cv_lib_svld_dlopen=no
20424 rm -f conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20426 LIBS=$ac_check_lib_save_LIBS
20428 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20429 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20430 if test $ac_cv_lib_svld_dlopen = yes; then
20432 cat >>confdefs.h <<\_ACEOF
20433 #define HAVE_LIBDL 1
20436 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20438 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20439 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20440 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 ac_check_lib_save_LIBS=$LIBS
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20452 /* Override any gcc2 internal prototype to avoid an error. */
20456 /* We use char because int might match the return type of a gcc2
20457 builtin and then its argument prototype would still apply. */
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20469 (eval $ac_link) 2>conftest.er1
20471 grep -v '^ *+' conftest.er1 >conftest.err
20473 cat conftest.err >&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } &&
20476 { ac_try='test -z "$ac_c_werror_flag"
20477 || test ! -s conftest.err'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest$ac_exeext'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 ac_cv_lib_dld_dld_link=yes
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ac_cv_lib_dld_dld_link=no
20496 rm -f conftest.err conftest.$ac_objext \
20497 conftest$ac_exeext conftest.$ac_ext
20498 LIBS=$ac_check_lib_save_LIBS
20500 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20501 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20502 if test $ac_cv_lib_dld_dld_link = yes; then
20504 cat >>confdefs.h <<\_ACEOF
20508 LIBADD_DL="$LIBADD_DL -ldld"
20510 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20511 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
20512 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 cat >conftest.$ac_ext <<_ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20521 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20523 #define _dyld_func_lookup innocuous__dyld_func_lookup
20525 /* System header to define __stub macros and hopefully few prototypes,
20526 which can conflict with char _dyld_func_lookup (); below.
20527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20528 <limits.h> exists even on freestanding compilers. */
20531 # include <limits.h>
20533 # include <assert.h>
20536 #undef _dyld_func_lookup
20538 /* Override any gcc2 internal prototype to avoid an error. */
20543 /* We use char because int might match the return type of a gcc2
20544 builtin and then its argument prototype would still apply. */
20545 char _dyld_func_lookup ();
20546 /* The GNU C library defines this for functions which it implements
20547 to always fail with ENOSYS. Some functions are actually named
20548 something starting with __ and the normal name is an alias. */
20549 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
20552 char (*f) () = _dyld_func_lookup;
20561 return f != _dyld_func_lookup;
20566 rm -f conftest.$ac_objext conftest$ac_exeext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20568 (eval $ac_link) 2>conftest.er1
20570 grep -v '^ *+' conftest.er1 >conftest.err
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
20575 { ac_try='test -z "$ac_c_werror_flag"
20576 || test ! -s conftest.err'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; } &&
20582 { ac_try='test -s conftest$ac_exeext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_func__dyld_func_lookup=yes
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_cv_func__dyld_func_lookup=no
20595 rm -f conftest.err conftest.$ac_objext \
20596 conftest$ac_exeext conftest.$ac_ext
20598 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20599 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
20600 if test $ac_cv_func__dyld_func_lookup = yes; then
20602 cat >>confdefs.h <<\_ACEOF
20603 #define HAVE_DYLD 1
20616 rm -f conftest.err conftest.$ac_objext \
20617 conftest$ac_exeext conftest.$ac_ext
20628 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20630 lt_save_LIBS="$LIBS"
20631 LIBS="$LIBS $LIBADD_DL"
20633 for ac_func in dlerror
20635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20636 echo "$as_me:$LINENO: checking for $ac_func" >&5
20637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20638 if eval "test \"\${$as_ac_var+set}\" = set"; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20641 cat >conftest.$ac_ext <<_ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20649 #define $ac_func innocuous_$ac_func
20651 /* System header to define __stub macros and hopefully few prototypes,
20652 which can conflict with char $ac_func (); below.
20653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20654 <limits.h> exists even on freestanding compilers. */
20657 # include <limits.h>
20659 # include <assert.h>
20664 /* Override any gcc2 internal prototype to avoid an error. */
20669 /* We use char because int might match the return type of a gcc2
20670 builtin and then its argument prototype would still apply. */
20672 /* The GNU C library defines this for functions which it implements
20673 to always fail with ENOSYS. Some functions are actually named
20674 something starting with __ and the normal name is an alias. */
20675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20678 char (*f) () = $ac_func;
20687 return f != $ac_func;
20692 rm -f conftest.$ac_objext conftest$ac_exeext
20693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20694 (eval $ac_link) 2>conftest.er1
20696 grep -v '^ *+' conftest.er1 >conftest.err
20698 cat conftest.err >&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } &&
20701 { ac_try='test -z "$ac_c_werror_flag"
20702 || test ! -s conftest.err'
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; } &&
20708 { ac_try='test -s conftest$ac_exeext'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; }; then
20714 eval "$as_ac_var=yes"
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 eval "$as_ac_var=no"
20721 rm -f conftest.err conftest.$ac_objext \
20722 conftest$ac_exeext conftest.$ac_ext
20724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20726 if test `eval echo '${'$as_ac_var'}'` = yes; then
20727 cat >>confdefs.h <<_ACEOF
20728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20734 LIBS="$lt_save_LIBS"
20737 ac_cpp='$CPP $CPPFLAGS'
20738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20744 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20745 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
20746 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 ac_cv_sys_symbol_underscore=no
20750 cat > conftest.$ac_ext <<EOF
20751 void nm_test_func(){}
20752 int main(){nm_test_func;return 0;}
20754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20755 (eval $ac_compile) 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; then
20759 # Now try to grab the symbols.
20760 ac_nlist=conftest.nm
20761 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20762 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } && test -s "$ac_nlist"; then
20766 # See whether the symbols have a leading underscore.
20767 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20768 ac_cv_sys_symbol_underscore=yes
20770 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20773 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20777 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20780 echo "configure: failed program was:" >&5
20786 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20787 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
20790 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20791 if test x"$libltdl_cv_func_dlopen" = xyes ||
20792 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20793 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20794 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
20795 if test "${libltdl_cv_need_uscore+set}" = set; then
20796 echo $ECHO_N "(cached) $ECHO_C" >&6
20798 libltdl_cv_need_uscore=unknown
20800 LIBS="$LIBS $LIBADD_DL"
20801 if test "$cross_compiling" = yes; then :
20802 libltdl_cv_need_uscore=cross
20804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20805 lt_status=$lt_dlunknown
20806 cat > conftest.$ac_ext <<EOF
20807 #line 20807 "configure"
20808 #include "confdefs.h"
20817 # define LT_DLGLOBAL RTLD_GLOBAL
20820 # define LT_DLGLOBAL DL_GLOBAL
20822 # define LT_DLGLOBAL 0
20826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20827 find out it does not work in some platform. */
20828 #ifndef LT_DLLAZY_OR_NOW
20830 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20833 # define LT_DLLAZY_OR_NOW DL_LAZY
20836 # define LT_DLLAZY_OR_NOW RTLD_NOW
20839 # define LT_DLLAZY_OR_NOW DL_NOW
20841 # define LT_DLLAZY_OR_NOW 0
20849 extern "C" void exit (int);
20852 void fnord() { int i=42;}
20855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20856 int status = $lt_dlunknown;
20860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20861 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20862 /* dlclose (self); */
20868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20869 (eval $ac_link) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20873 (./conftest; exit; ) 2>/dev/null
20875 case x$lt_status in
20876 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20877 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20878 x$lt_unknown|x*) ;;
20881 # compilation failed
20890 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20891 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
20895 if test x"$libltdl_cv_need_uscore" = xyes; then
20897 cat >>confdefs.h <<\_ACEOF
20898 #define NEED_USCORE 1
20904 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20905 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
20906 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 # PORTME does your system automatically load deplibs for dlopen?
20910 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20911 # For now, we just catch OSes we know something about -- in the
20912 # future, we'll try test this programmatically.
20913 libltdl_cv_sys_dlopen_deplibs=unknown
20915 aix3*|aix4.1.*|aix4.2.*)
20916 # Unknown whether this is true for these versions of AIX, but
20917 # we want this `case' here to explicitly catch those versions.
20918 libltdl_cv_sys_dlopen_deplibs=unknown
20921 libltdl_cv_sys_dlopen_deplibs=yes
20924 # Assuming the user has installed a libdl from somewhere, this is true
20925 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20926 libltdl_cv_sys_dlopen_deplibs=yes
20928 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
20929 # GNU and its variants, using gnu ld.so (Glibc)
20930 libltdl_cv_sys_dlopen_deplibs=yes
20933 libltdl_cv_sys_dlopen_deplibs=yes
20935 irix[12345]*|irix6.[01]*)
20936 # Catch all versions of IRIX before 6.2, and indicate that we don't
20937 # know how it worked for any of those versions.
20938 libltdl_cv_sys_dlopen_deplibs=unknown
20941 # The case above catches anything before 6.2, and it's known that
20942 # at 6.2 and later dlopen does load deplibs.
20943 libltdl_cv_sys_dlopen_deplibs=yes
20946 libltdl_cv_sys_dlopen_deplibs=yes
20949 libltdl_cv_sys_dlopen_deplibs=yes
20952 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20953 # it did *not* use an RPATH in a shared library to find objects the
20954 # library depends on, so we explictly say `no'.
20955 libltdl_cv_sys_dlopen_deplibs=no
20957 osf5.0|osf5.0a|osf5.1)
20958 # dlopen *does* load deplibs and with the right loader patch applied
20959 # it even uses RPATH in a shared library to search for shared objects
20960 # that the library depends on, but there's no easy way to know if that
20961 # patch is installed. Since this is the case, all we can really
20962 # say is unknown -- it depends on the patch being installed. If
20963 # it is, this changes to `yes'. Without it, it would be `no'.
20964 libltdl_cv_sys_dlopen_deplibs=unknown
20967 # the two cases above should catch all versions of osf <= 5.1. Read
20968 # the comments above for what we know about them.
20969 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20970 # is used to find them so we can finally say `yes'.
20971 libltdl_cv_sys_dlopen_deplibs=yes
20974 libltdl_cv_sys_dlopen_deplibs=yes
20979 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20980 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
20981 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20983 cat >>confdefs.h <<\_ACEOF
20984 #define LTDL_DLOPEN_DEPLIBS 1
20990 for ac_header in argz.h
20992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20994 echo "$as_me:$LINENO: checking for $ac_header" >&5
20995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21002 # Is the header compilable?
21003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21005 cat >conftest.$ac_ext <<_ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011 $ac_includes_default
21012 #include <$ac_header>
21014 rm -f conftest.$ac_objext
21015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21016 (eval $ac_compile) 2>conftest.er1
21018 grep -v '^ *+' conftest.er1 >conftest.err
21020 cat conftest.err >&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } &&
21023 { ac_try='test -z "$ac_c_werror_flag"
21024 || test ! -s conftest.err'
21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; } &&
21030 { ac_try='test -s conftest.$ac_objext'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; }; then
21036 ac_header_compiler=yes
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 ac_header_compiler=no
21043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21045 echo "${ECHO_T}$ac_header_compiler" >&6
21047 # Is the header present?
21048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21050 cat >conftest.$ac_ext <<_ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 #include <$ac_header>
21058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21061 grep -v '^ *+' conftest.er1 >conftest.err
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } >/dev/null; then
21066 if test -s conftest.err; then
21067 ac_cpp_err=$ac_c_preproc_warn_flag
21068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21075 if test -z "$ac_cpp_err"; then
21076 ac_header_preproc=yes
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21081 ac_header_preproc=no
21083 rm -f conftest.err conftest.$ac_ext
21084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21085 echo "${ECHO_T}$ac_header_preproc" >&6
21087 # So? What about this header?
21088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21094 ac_header_preproc=yes
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21111 ## ---------------------------------- ##
21112 ## Report this to bug-libtool@gnu.org ##
21113 ## ---------------------------------- ##
21116 sed "s/^/$as_me: WARNING: /" >&2
21119 echo "$as_me:$LINENO: checking for $ac_header" >&5
21120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21124 eval "$as_ac_Header=\$ac_header_preproc"
21126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21131 cat >>confdefs.h <<_ACEOF
21132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21140 echo "$as_me:$LINENO: checking for error_t" >&5
21141 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21142 if test "${ac_cv_type_error_t+set}" = set; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 cat >conftest.$ac_ext <<_ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21160 if (sizeof (error_t))
21166 rm -f conftest.$ac_objext
21167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21168 (eval $ac_compile) 2>conftest.er1
21170 grep -v '^ *+' conftest.er1 >conftest.err
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } &&
21175 { ac_try='test -z "$ac_c_werror_flag"
21176 || test ! -s conftest.err'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; } &&
21182 { ac_try='test -s conftest.$ac_objext'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; }; then
21188 ac_cv_type_error_t=yes
21190 echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21193 ac_cv_type_error_t=no
21195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21197 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21198 echo "${ECHO_T}$ac_cv_type_error_t" >&6
21199 if test $ac_cv_type_error_t = yes; then
21201 cat >>confdefs.h <<_ACEOF
21202 #define HAVE_ERROR_T 1
21208 cat >>confdefs.h <<\_ACEOF
21209 #define error_t int
21220 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21223 echo "$as_me:$LINENO: checking for $ac_func" >&5
21224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21225 if eval "test \"\${$as_ac_var+set}\" = set"; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 cat >conftest.$ac_ext <<_ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21236 #define $ac_func innocuous_$ac_func
21238 /* System header to define __stub macros and hopefully few prototypes,
21239 which can conflict with char $ac_func (); below.
21240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21241 <limits.h> exists even on freestanding compilers. */
21244 # include <limits.h>
21246 # include <assert.h>
21251 /* Override any gcc2 internal prototype to avoid an error. */
21256 /* We use char because int might match the return type of a gcc2
21257 builtin and then its argument prototype would still apply. */
21259 /* The GNU C library defines this for functions which it implements
21260 to always fail with ENOSYS. Some functions are actually named
21261 something starting with __ and the normal name is an alias. */
21262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21265 char (*f) () = $ac_func;
21274 return f != $ac_func;
21279 rm -f conftest.$ac_objext conftest$ac_exeext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21281 (eval $ac_link) 2>conftest.er1
21283 grep -v '^ *+' conftest.er1 >conftest.err
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } &&
21288 { ac_try='test -z "$ac_c_werror_flag"
21289 || test ! -s conftest.err'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; } &&
21295 { ac_try='test -s conftest$ac_exeext'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; }; then
21301 eval "$as_ac_var=yes"
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 eval "$as_ac_var=no"
21308 rm -f conftest.err conftest.$ac_objext \
21309 conftest$ac_exeext conftest.$ac_ext
21311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21313 if test `eval echo '${'$as_ac_var'}'` = yes; then
21314 cat >>confdefs.h <<_ACEOF
21315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21348 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21353 echo "$as_me:$LINENO: checking for $ac_header" >&5
21354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21356 echo $ECHO_N "(cached) $ECHO_C" >&6
21358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21361 # Is the header compilable?
21362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21364 cat >conftest.$ac_ext <<_ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 $ac_includes_default
21371 #include <$ac_header>
21373 rm -f conftest.$ac_objext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21375 (eval $ac_compile) 2>conftest.er1
21377 grep -v '^ *+' conftest.er1 >conftest.err
21379 cat conftest.err >&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } &&
21382 { ac_try='test -z "$ac_c_werror_flag"
21383 || test ! -s conftest.err'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest.$ac_objext'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21395 ac_header_compiler=yes
21397 echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21400 ac_header_compiler=no
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21404 echo "${ECHO_T}$ac_header_compiler" >&6
21406 # Is the header present?
21407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21409 cat >conftest.$ac_ext <<_ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21415 #include <$ac_header>
21417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21420 grep -v '^ *+' conftest.er1 >conftest.err
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } >/dev/null; then
21425 if test -s conftest.err; then
21426 ac_cpp_err=$ac_c_preproc_warn_flag
21427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21434 if test -z "$ac_cpp_err"; then
21435 ac_header_preproc=yes
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ac_header_preproc=no
21442 rm -f conftest.err conftest.$ac_ext
21443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21444 echo "${ECHO_T}$ac_header_preproc" >&6
21446 # So? What about this header?
21447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21453 ac_header_preproc=yes
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21470 ## ---------------------------------- ##
21471 ## Report this to bug-libtool@gnu.org ##
21472 ## ---------------------------------- ##
21475 sed "s/^/$as_me: WARNING: /" >&2
21478 echo "$as_me:$LINENO: checking for $ac_header" >&5
21479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21483 eval "$as_ac_Header=\$ac_header_preproc"
21485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21490 cat >>confdefs.h <<_ACEOF
21491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21502 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21506 echo "$as_me:$LINENO: checking for $ac_header" >&5
21507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21509 echo $ECHO_N "(cached) $ECHO_C" >&6
21511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21514 # Is the header compilable?
21515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21517 cat >conftest.$ac_ext <<_ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 $ac_includes_default
21524 #include <$ac_header>
21526 rm -f conftest.$ac_objext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21528 (eval $ac_compile) 2>conftest.er1
21530 grep -v '^ *+' conftest.er1 >conftest.err
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } &&
21535 { ac_try='test -z "$ac_c_werror_flag"
21536 || test ! -s conftest.err'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; } &&
21542 { ac_try='test -s conftest.$ac_objext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 ac_header_compiler=yes
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 ac_header_compiler=no
21555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21557 echo "${ECHO_T}$ac_header_compiler" >&6
21559 # Is the header present?
21560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21562 cat >conftest.$ac_ext <<_ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 #include <$ac_header>
21570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21573 grep -v '^ *+' conftest.er1 >conftest.err
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } >/dev/null; then
21578 if test -s conftest.err; then
21579 ac_cpp_err=$ac_c_preproc_warn_flag
21580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21587 if test -z "$ac_cpp_err"; then
21588 ac_header_preproc=yes
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 ac_header_preproc=no
21595 rm -f conftest.err conftest.$ac_ext
21596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21597 echo "${ECHO_T}$ac_header_preproc" >&6
21599 # So? What about this header?
21600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21606 ac_header_preproc=yes
21609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21623 ## ---------------------------------- ##
21624 ## Report this to bug-libtool@gnu.org ##
21625 ## ---------------------------------- ##
21628 sed "s/^/$as_me: WARNING: /" >&2
21631 echo "$as_me:$LINENO: checking for $ac_header" >&5
21632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21634 echo $ECHO_N "(cached) $ECHO_C" >&6
21636 eval "$as_ac_Header=\$ac_header_preproc"
21638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21643 cat >>confdefs.h <<_ACEOF
21644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21653 for ac_header in string.h strings.h
21655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21657 echo "$as_me:$LINENO: checking for $ac_header" >&5
21658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21665 # Is the header compilable?
21666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21668 cat >conftest.$ac_ext <<_ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 $ac_includes_default
21675 #include <$ac_header>
21677 rm -f conftest.$ac_objext
21678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21679 (eval $ac_compile) 2>conftest.er1
21681 grep -v '^ *+' conftest.er1 >conftest.err
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } &&
21686 { ac_try='test -z "$ac_c_werror_flag"
21687 || test ! -s conftest.err'
21688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; } &&
21693 { ac_try='test -s conftest.$ac_objext'
21694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695 (eval $ac_try) 2>&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; }; then
21699 ac_header_compiler=yes
21701 echo "$as_me: failed program was:" >&5
21702 sed 's/^/| /' conftest.$ac_ext >&5
21704 ac_header_compiler=no
21706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21708 echo "${ECHO_T}$ac_header_compiler" >&6
21710 # Is the header present?
21711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21713 cat >conftest.$ac_ext <<_ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 #include <$ac_header>
21721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21724 grep -v '^ *+' conftest.er1 >conftest.err
21726 cat conftest.err >&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); } >/dev/null; then
21729 if test -s conftest.err; then
21730 ac_cpp_err=$ac_c_preproc_warn_flag
21731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21738 if test -z "$ac_cpp_err"; then
21739 ac_header_preproc=yes
21741 echo "$as_me: failed program was:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21744 ac_header_preproc=no
21746 rm -f conftest.err conftest.$ac_ext
21747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21748 echo "${ECHO_T}$ac_header_preproc" >&6
21750 # So? What about this header?
21751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21757 ac_header_preproc=yes
21760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21774 ## ---------------------------------- ##
21775 ## Report this to bug-libtool@gnu.org ##
21776 ## ---------------------------------- ##
21779 sed "s/^/$as_me: WARNING: /" >&2
21782 echo "$as_me:$LINENO: checking for $ac_header" >&5
21783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
21787 eval "$as_ac_Header=\$ac_header_preproc"
21789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21794 cat >>confdefs.h <<_ACEOF
21795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21805 for ac_func in strchr index
21807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21808 echo "$as_me:$LINENO: checking for $ac_func" >&5
21809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21810 if eval "test \"\${$as_ac_var+set}\" = set"; then
21811 echo $ECHO_N "(cached) $ECHO_C" >&6
21813 cat >conftest.$ac_ext <<_ACEOF
21816 cat confdefs.h >>conftest.$ac_ext
21817 cat >>conftest.$ac_ext <<_ACEOF
21818 /* end confdefs.h. */
21819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21821 #define $ac_func innocuous_$ac_func
21823 /* System header to define __stub macros and hopefully few prototypes,
21824 which can conflict with char $ac_func (); below.
21825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21826 <limits.h> exists even on freestanding compilers. */
21829 # include <limits.h>
21831 # include <assert.h>
21836 /* Override any gcc2 internal prototype to avoid an error. */
21841 /* We use char because int might match the return type of a gcc2
21842 builtin and then its argument prototype would still apply. */
21844 /* The GNU C library defines this for functions which it implements
21845 to always fail with ENOSYS. Some functions are actually named
21846 something starting with __ and the normal name is an alias. */
21847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21850 char (*f) () = $ac_func;
21859 return f != $ac_func;
21864 rm -f conftest.$ac_objext conftest$ac_exeext
21865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21866 (eval $ac_link) 2>conftest.er1
21868 grep -v '^ *+' conftest.er1 >conftest.err
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } &&
21873 { ac_try='test -z "$ac_c_werror_flag"
21874 || test ! -s conftest.err'
21875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876 (eval $ac_try) 2>&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); }; } &&
21880 { ac_try='test -s conftest$ac_exeext'
21881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882 (eval $ac_try) 2>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); }; }; then
21886 eval "$as_ac_var=yes"
21888 echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21891 eval "$as_ac_var=no"
21893 rm -f conftest.err conftest.$ac_objext \
21894 conftest$ac_exeext conftest.$ac_ext
21896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21898 if test `eval echo '${'$as_ac_var'}'` = yes; then
21899 cat >>confdefs.h <<_ACEOF
21900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21908 for ac_func in strrchr rindex
21910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21911 echo "$as_me:$LINENO: checking for $ac_func" >&5
21912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21913 if eval "test \"\${$as_ac_var+set}\" = set"; then
21914 echo $ECHO_N "(cached) $ECHO_C" >&6
21916 cat >conftest.$ac_ext <<_ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h. */
21922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21924 #define $ac_func innocuous_$ac_func
21926 /* System header to define __stub macros and hopefully few prototypes,
21927 which can conflict with char $ac_func (); below.
21928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21929 <limits.h> exists even on freestanding compilers. */
21932 # include <limits.h>
21934 # include <assert.h>
21939 /* Override any gcc2 internal prototype to avoid an error. */
21944 /* We use char because int might match the return type of a gcc2
21945 builtin and then its argument prototype would still apply. */
21947 /* The GNU C library defines this for functions which it implements
21948 to always fail with ENOSYS. Some functions are actually named
21949 something starting with __ and the normal name is an alias. */
21950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21953 char (*f) () = $ac_func;
21962 return f != $ac_func;
21967 rm -f conftest.$ac_objext conftest$ac_exeext
21968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21969 (eval $ac_link) 2>conftest.er1
21971 grep -v '^ *+' conftest.er1 >conftest.err
21973 cat conftest.err >&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } &&
21976 { ac_try='test -z "$ac_c_werror_flag"
21977 || test ! -s conftest.err'
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; } &&
21983 { ac_try='test -s conftest$ac_exeext'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; }; then
21989 eval "$as_ac_var=yes"
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21994 eval "$as_ac_var=no"
21996 rm -f conftest.err conftest.$ac_objext \
21997 conftest$ac_exeext conftest.$ac_ext
21999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22001 if test `eval echo '${'$as_ac_var'}'` = yes; then
22002 cat >>confdefs.h <<_ACEOF
22003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22011 for ac_func in memcpy bcopy
22013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22014 echo "$as_me:$LINENO: checking for $ac_func" >&5
22015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22016 if eval "test \"\${$as_ac_var+set}\" = set"; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22019 cat >conftest.$ac_ext <<_ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h. */
22025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22027 #define $ac_func innocuous_$ac_func
22029 /* System header to define __stub macros and hopefully few prototypes,
22030 which can conflict with char $ac_func (); below.
22031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22032 <limits.h> exists even on freestanding compilers. */
22035 # include <limits.h>
22037 # include <assert.h>
22042 /* Override any gcc2 internal prototype to avoid an error. */
22047 /* We use char because int might match the return type of a gcc2
22048 builtin and then its argument prototype would still apply. */
22050 /* The GNU C library defines this for functions which it implements
22051 to always fail with ENOSYS. Some functions are actually named
22052 something starting with __ and the normal name is an alias. */
22053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22056 char (*f) () = $ac_func;
22065 return f != $ac_func;
22070 rm -f conftest.$ac_objext conftest$ac_exeext
22071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22072 (eval $ac_link) 2>conftest.er1
22074 grep -v '^ *+' conftest.er1 >conftest.err
22076 cat conftest.err >&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } &&
22079 { ac_try='test -z "$ac_c_werror_flag"
22080 || test ! -s conftest.err'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; } &&
22086 { ac_try='test -s conftest$ac_exeext'
22087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088 (eval $ac_try) 2>&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); }; }; then
22092 eval "$as_ac_var=yes"
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22097 eval "$as_ac_var=no"
22099 rm -f conftest.err conftest.$ac_objext \
22100 conftest$ac_exeext conftest.$ac_ext
22102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22104 if test `eval echo '${'$as_ac_var'}'` = yes; then
22105 cat >>confdefs.h <<_ACEOF
22106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22114 for ac_func in memmove strcmp
22116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22117 echo "$as_me:$LINENO: checking for $ac_func" >&5
22118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22119 if eval "test \"\${$as_ac_var+set}\" = set"; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 cat >conftest.$ac_ext <<_ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22130 #define $ac_func innocuous_$ac_func
22132 /* System header to define __stub macros and hopefully few prototypes,
22133 which can conflict with char $ac_func (); below.
22134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22135 <limits.h> exists even on freestanding compilers. */
22138 # include <limits.h>
22140 # include <assert.h>
22145 /* Override any gcc2 internal prototype to avoid an error. */
22150 /* We use char because int might match the return type of a gcc2
22151 builtin and then its argument prototype would still apply. */
22153 /* The GNU C library defines this for functions which it implements
22154 to always fail with ENOSYS. Some functions are actually named
22155 something starting with __ and the normal name is an alias. */
22156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22159 char (*f) () = $ac_func;
22168 return f != $ac_func;
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22175 (eval $ac_link) 2>conftest.er1
22177 grep -v '^ *+' conftest.er1 >conftest.err
22179 cat conftest.err >&5
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); } &&
22182 { ac_try='test -z "$ac_c_werror_flag"
22183 || test ! -s conftest.err'
22184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185 (eval $ac_try) 2>&5
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); }; } &&
22189 { ac_try='test -s conftest$ac_exeext'
22190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191 (eval $ac_try) 2>&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); }; }; then
22195 eval "$as_ac_var=yes"
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22200 eval "$as_ac_var=no"
22202 rm -f conftest.err conftest.$ac_objext \
22203 conftest$ac_exeext conftest.$ac_ext
22205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22207 if test `eval echo '${'$as_ac_var'}'` = yes; then
22208 cat >>confdefs.h <<_ACEOF
22209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22218 for ac_func in closedir opendir readdir
22220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22221 echo "$as_me:$LINENO: checking for $ac_func" >&5
22222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22223 if eval "test \"\${$as_ac_var+set}\" = set"; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22226 cat >conftest.$ac_ext <<_ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22234 #define $ac_func innocuous_$ac_func
22236 /* System header to define __stub macros and hopefully few prototypes,
22237 which can conflict with char $ac_func (); below.
22238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22239 <limits.h> exists even on freestanding compilers. */
22242 # include <limits.h>
22244 # include <assert.h>
22249 /* Override any gcc2 internal prototype to avoid an error. */
22254 /* We use char because int might match the return type of a gcc2
22255 builtin and then its argument prototype would still apply. */
22257 /* The GNU C library defines this for functions which it implements
22258 to always fail with ENOSYS. Some functions are actually named
22259 something starting with __ and the normal name is an alias. */
22260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22263 char (*f) () = $ac_func;
22272 return f != $ac_func;
22277 rm -f conftest.$ac_objext conftest$ac_exeext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22279 (eval $ac_link) 2>conftest.er1
22281 grep -v '^ *+' conftest.er1 >conftest.err
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
22286 { ac_try='test -z "$ac_c_werror_flag"
22287 || test ! -s conftest.err'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; } &&
22293 { ac_try='test -s conftest$ac_exeext'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299 eval "$as_ac_var=yes"
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22304 eval "$as_ac_var=no"
22306 rm -f conftest.err conftest.$ac_objext \
22307 conftest$ac_exeext conftest.$ac_ext
22309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22311 if test `eval echo '${'$as_ac_var'}'` = yes; then
22312 cat >>confdefs.h <<_ACEOF
22313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22325 ac_config_files="$ac_config_files Makefile"
22327 cat >confcache <<\_ACEOF
22328 # This file is a shell script that caches the results of configure
22329 # tests run on this system so they can be shared between configure
22330 # scripts and configure runs, see configure's option --config-cache.
22331 # It is not useful on other systems. If it contains results you don't
22332 # want to keep, you may remove or edit it.
22334 # config.status only pays attention to the cache file if you give it
22335 # the --recheck option to rerun configure.
22337 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22338 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22339 # following values.
22343 # The following way of writing the cache mishandles newlines in values,
22344 # but we know of no workaround that is simple, portable, and efficient.
22345 # So, don't put newlines in cache variables' values.
22346 # Ultrix sh set writes to stderr and can't be redirected directly,
22347 # and sets the high bit in the cache file unless we assign to the vars.
22350 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22352 # `set' does not quote correctly, so add quotes (double-quote
22353 # substitution turns \\\\ into \\, and sed turns \\ into \).
22356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22359 # `set' quotes correctly as required by POSIX, so do not add quotes.
22361 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22370 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22372 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22373 if test -w $cache_file; then
22374 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22375 cat confcache >$cache_file
22377 echo "not updating unwritable cache $cache_file"
22382 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22383 # Let make expand exec_prefix.
22384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22386 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22387 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22388 # trailing colons and then remove the whole line if VPATH becomes empty
22389 # (actually we leave an empty line to preserve line numbers).
22390 if test "x$srcdir" = x.; then
22391 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22392 s/:*\$(srcdir):*/:/;
22393 s/:*\${srcdir}:*/:/;
22395 s/^\([^=]*=[ ]*\):*/\1/;
22401 DEFS=-DHAVE_CONFIG_H
22405 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22406 # 1. Remove the extension, and $U if already installed.
22407 ac_i=`echo "$ac_i" |
22408 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22410 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22411 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22413 LIBOBJS=$ac_libobjs
22415 LTLIBOBJS=$ac_ltlibobjs
22418 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22419 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22420 Usually this means the macro was only invoked conditionally." >&5
22421 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22422 Usually this means the macro was only invoked conditionally." >&2;}
22423 { (exit 1); exit 1; }; }
22425 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22426 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22427 Usually this means the macro was only invoked conditionally." >&5
22428 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22429 Usually this means the macro was only invoked conditionally." >&2;}
22430 { (exit 1); exit 1; }; }
22432 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22433 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22434 Usually this means the macro was only invoked conditionally." >&5
22435 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22436 Usually this means the macro was only invoked conditionally." >&2;}
22437 { (exit 1); exit 1; }; }
22439 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22440 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22441 Usually this means the macro was only invoked conditionally." >&5
22442 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22443 Usually this means the macro was only invoked conditionally." >&2;}
22444 { (exit 1); exit 1; }; }
22446 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22447 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22448 Usually this means the macro was only invoked conditionally." >&5
22449 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22450 Usually this means the macro was only invoked conditionally." >&2;}
22451 { (exit 1); exit 1; }; }
22454 : ${CONFIG_STATUS=./config.status}
22455 ac_clean_files_save=$ac_clean_files
22456 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22457 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22458 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22459 cat >$CONFIG_STATUS <<_ACEOF
22461 # Generated by $as_me.
22462 # Run this file to recreate the current configuration.
22463 # Compiler output produced by configure, useful for debugging
22464 # configure, is in config.log if it exists.
22467 ac_cs_recheck=false
22469 SHELL=\${CONFIG_SHELL-$SHELL}
22472 cat >>$CONFIG_STATUS <<\_ACEOF
22473 ## --------------------- ##
22474 ## M4sh Initialization. ##
22475 ## --------------------- ##
22477 # Be Bourne compatible
22478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22481 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22482 # is contrary to our usage. Disable this feature.
22483 alias -g '${1+"$@"}'='"$@"'
22484 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22487 DUALCASE=1; export DUALCASE # for MKS sh
22489 # Support unset when possible.
22490 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22497 # Work around bugs in pre-3.0 UWIN ksh.
22498 $as_unset ENV MAIL MAILPATH
22505 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22506 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22507 LC_TELEPHONE LC_TIME
22509 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22510 eval $as_var=C; export $as_var
22516 # Required to use basename.
22517 if expr a : '\(a\)' >/dev/null 2>&1; then
22523 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22524 as_basename=basename
22530 # Name of the executable.
22531 as_me=`$as_basename "$0" ||
22532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22533 X"$0" : 'X\(//\)$' \| \
22534 X"$0" : 'X\(/\)$' \| \
22535 . : '\(.\)' 2>/dev/null ||
22537 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22538 /^X\/\(\/\/\)$/{ s//\1/; q; }
22539 /^X\/\(\/\).*/{ s//\1/; q; }
22543 # PATH needs CR, and LINENO needs CR and PATH.
22544 # Avoid depending upon Character Ranges.
22545 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22546 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22547 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22548 as_cr_digits='0123456789'
22549 as_cr_alnum=$as_cr_Letters$as_cr_digits
22551 # The user is always right.
22552 if test "${PATH_SEPARATOR+set}" != set; then
22553 echo "#! /bin/sh" >conf$$.sh
22554 echo "exit 0" >>conf$$.sh
22556 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22565 as_lineno_1=$LINENO
22566 as_lineno_2=$LINENO
22567 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22568 test "x$as_lineno_1" != "x$as_lineno_2" &&
22569 test "x$as_lineno_3" = "x$as_lineno_2" || {
22570 # Find who we are. Look in the path if we contain no path at all
22573 *[\\/]* ) as_myself=$0 ;;
22574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22575 for as_dir in $PATH
22578 test -z "$as_dir" && as_dir=.
22579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22584 # We did not find ourselves, most probably we were run as `sh COMMAND'
22585 # in which case we are not to be found in the path.
22586 if test "x$as_myself" = x; then
22589 if test ! -f "$as_myself"; then
22590 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22591 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22592 { (exit 1); exit 1; }; }
22594 case $CONFIG_SHELL in
22596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22597 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22600 test -z "$as_dir" && as_dir=.
22601 for as_base in sh bash ksh sh5; do
22604 if ("$as_dir/$as_base" -c '
22605 as_lineno_1=$LINENO
22606 as_lineno_2=$LINENO
22607 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22608 test "x$as_lineno_1" != "x$as_lineno_2" &&
22609 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22610 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22611 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22612 CONFIG_SHELL=$as_dir/$as_base
22613 export CONFIG_SHELL
22614 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22622 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22623 # uniformly replaced by the line number. The first 'sed' inserts a
22624 # line-number line before each line; the second 'sed' does the real
22625 # work. The second script uses 'N' to pair each line-number line
22626 # with the numbered line, and appends trailing '-' during
22627 # substitution so that $LINENO is not a special case at line end.
22628 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22629 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22630 sed '=' <$as_myself |
22635 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22638 s,^['$as_cr_digits']*\n,,
22639 ' >$as_me.lineno &&
22640 chmod +x $as_me.lineno ||
22641 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22642 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22643 { (exit 1); exit 1; }; }
22645 # Don't try to exec as it changes $[0], causing all sort of problems
22646 # (the dirname of $[0] is not the place where we might find the
22647 # original and so on. Autoconf is especially sensible to this).
22649 # Exit status is that of the last command.
22654 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22655 *c*,-n*) ECHO_N= ECHO_C='
22657 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22658 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22661 if expr a : '\(a\)' >/dev/null 2>&1; then
22667 rm -f conf$$ conf$$.exe conf$$.file
22669 if ln -s conf$$.file conf$$ 2>/dev/null; then
22670 # We could just check for DJGPP; but this test a) works b) is more generic
22671 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22672 if test -f conf$$.exe; then
22673 # Don't use ln at all; we don't have any links
22678 elif ln conf$$.file conf$$ 2>/dev/null; then
22683 rm -f conf$$ conf$$.exe conf$$.file
22685 if mkdir -p . 2>/dev/null; then
22688 test -d ./-p && rmdir ./-p
22692 as_executable_p="test -f"
22694 # Sed expression to map a string onto a valid CPP name.
22695 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22697 # Sed expression to map a string onto a valid variable name.
22698 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22702 # We need space, tab and new line, in precisely that order.
22712 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22713 # report actual input values of CONFIG_FILES etc. instead of their
22714 # values after options handling. Logging --version etc. is OK.
22718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22719 ## Running $as_me. ##
22724 This file was extended by libltdl $as_me 1.2, which was
22725 generated by GNU Autoconf 2.59. Invocation command line was
22727 CONFIG_FILES = $CONFIG_FILES
22728 CONFIG_HEADERS = $CONFIG_HEADERS
22729 CONFIG_LINKS = $CONFIG_LINKS
22730 CONFIG_COMMANDS = $CONFIG_COMMANDS
22734 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22738 # Files that config.status was made for.
22739 if test -n "$ac_config_files"; then
22740 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22743 if test -n "$ac_config_headers"; then
22744 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22747 if test -n "$ac_config_links"; then
22748 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22751 if test -n "$ac_config_commands"; then
22752 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22755 cat >>$CONFIG_STATUS <<\_ACEOF
22758 \`$as_me' instantiates files from templates according to the
22759 current configuration.
22761 Usage: $0 [OPTIONS] [FILE]...
22763 -h, --help print this help, then exit
22764 -V, --version print version number, then exit
22765 -q, --quiet do not print progress messages
22766 -d, --debug don't remove temporary files
22767 --recheck update $as_me by reconfiguring in the same conditions
22768 --file=FILE[:TEMPLATE]
22769 instantiate the configuration file FILE
22770 --header=FILE[:TEMPLATE]
22771 instantiate the configuration header FILE
22773 Configuration files:
22776 Configuration headers:
22779 Configuration commands:
22782 Report bugs to <bug-autoconf@gnu.org>."
22785 cat >>$CONFIG_STATUS <<_ACEOF
22787 libltdl config.status 1.2
22788 configured by $0, generated by GNU Autoconf 2.59,
22789 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22791 Copyright (C) 2003 Free Software Foundation, Inc.
22792 This config.status script is free software; the Free Software Foundation
22793 gives unlimited permission to copy, distribute and modify it."
22798 cat >>$CONFIG_STATUS <<\_ACEOF
22799 # If no file are specified by the user, then we need to provide default
22800 # value. By we need to know if files were specified by the user.
22806 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22807 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22815 *) # This is not an option, so the user has probably given explicit
22818 ac_need_defaults=false;;
22822 # Handling of the options.
22824 cat >>$CONFIG_STATUS <<\_ACEOF
22825 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22827 --version | --vers* | -V )
22828 echo "$ac_cs_version"; exit 0 ;;
22830 # Conflict between --help and --header
22831 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22832 Try \`$0 --help' for more information." >&5
22833 echo "$as_me: error: ambiguous option: $1
22834 Try \`$0 --help' for more information." >&2;}
22835 { (exit 1); exit 1; }; };;
22836 --help | --hel | -h )
22837 echo "$ac_cs_usage"; exit 0 ;;
22838 --debug | --d* | -d )
22840 --file | --fil | --fi | --f )
22842 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22843 ac_need_defaults=false;;
22844 --header | --heade | --head | --hea )
22846 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22847 ac_need_defaults=false;;
22848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22852 # This is an error.
22853 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22854 Try \`$0 --help' for more information." >&5
22855 echo "$as_me: error: unrecognized option: $1
22856 Try \`$0 --help' for more information." >&2;}
22857 { (exit 1); exit 1; }; } ;;
22859 *) ac_config_targets="$ac_config_targets $1" ;;
22865 ac_configure_extra_args=
22867 if $ac_cs_silent; then
22869 ac_configure_extra_args="$ac_configure_extra_args --silent"
22873 cat >>$CONFIG_STATUS <<_ACEOF
22874 if \$ac_cs_recheck; then
22875 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22876 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22881 cat >>$CONFIG_STATUS <<_ACEOF
22883 # INIT-COMMANDS section.
22886 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22892 cat >>$CONFIG_STATUS <<\_ACEOF
22893 for ac_config_target in $ac_config_targets
22895 case "$ac_config_target" in
22896 # Handling of arguments.
22897 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22898 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22899 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
22900 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22901 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22902 { (exit 1); exit 1; }; };;
22906 # If the user did not use the arguments to specify the items to instantiate,
22907 # then the envvar interface is used. Set only those that are not.
22908 # We use the long form for the default assignment because of an extremely
22909 # bizarre bug on SunOS 4.1.3.
22910 if $ac_need_defaults; then
22911 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22912 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22916 # Have a temporary directory for convenience. Make it in the build tree
22917 # simply because there is no reason to put it here, and in addition,
22918 # creating and moving files from /tmp can sometimes cause problems.
22919 # Create a temporary directory, and hook for its removal unless debugging.
22922 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22923 trap '{ (exit 1); exit 1; }' 1 2 13 15
22926 # Create a (secure) tmp directory for tmp files.
22929 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22930 test -n "$tmp" && test -d "$tmp"
22933 tmp=./confstat$$-$RANDOM
22934 (umask 077 && mkdir $tmp)
22937 echo "$me: cannot create a temporary directory in ." >&2
22938 { (exit 1); exit 1; }
22943 cat >>$CONFIG_STATUS <<_ACEOF
22946 # CONFIG_FILES section.
22949 # No need to generate the scripts if there are no CONFIG_FILES.
22950 # This happens for instance when ./config.status config.h
22951 if test -n "\$CONFIG_FILES"; then
22952 # Protect against being on the right side of a sed subst in config.status.
22953 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22954 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22955 s,@SHELL@,$SHELL,;t t
22956 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22957 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22958 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22959 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22960 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22961 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22962 s,@exec_prefix@,$exec_prefix,;t t
22963 s,@prefix@,$prefix,;t t
22964 s,@program_transform_name@,$program_transform_name,;t t
22965 s,@bindir@,$bindir,;t t
22966 s,@sbindir@,$sbindir,;t t
22967 s,@libexecdir@,$libexecdir,;t t
22968 s,@datadir@,$datadir,;t t
22969 s,@sysconfdir@,$sysconfdir,;t t
22970 s,@sharedstatedir@,$sharedstatedir,;t t
22971 s,@localstatedir@,$localstatedir,;t t
22972 s,@libdir@,$libdir,;t t
22973 s,@includedir@,$includedir,;t t
22974 s,@oldincludedir@,$oldincludedir,;t t
22975 s,@infodir@,$infodir,;t t
22976 s,@mandir@,$mandir,;t t
22977 s,@build_alias@,$build_alias,;t t
22978 s,@host_alias@,$host_alias,;t t
22979 s,@target_alias@,$target_alias,;t t
22980 s,@DEFS@,$DEFS,;t t
22981 s,@ECHO_C@,$ECHO_C,;t t
22982 s,@ECHO_N@,$ECHO_N,;t t
22983 s,@ECHO_T@,$ECHO_T,;t t
22984 s,@LIBS@,$LIBS,;t t
22985 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22986 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22987 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22988 s,@CYGPATH_W@,$CYGPATH_W,;t t
22989 s,@PACKAGE@,$PACKAGE,;t t
22990 s,@VERSION@,$VERSION,;t t
22991 s,@ACLOCAL@,$ACLOCAL,;t t
22992 s,@AUTOCONF@,$AUTOCONF,;t t
22993 s,@AUTOMAKE@,$AUTOMAKE,;t t
22994 s,@AUTOHEADER@,$AUTOHEADER,;t t
22995 s,@MAKEINFO@,$MAKEINFO,;t t
22996 s,@install_sh@,$install_sh,;t t
22997 s,@STRIP@,$STRIP,;t t
22998 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22999 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23000 s,@mkdir_p@,$mkdir_p,;t t
23002 s,@SET_MAKE@,$SET_MAKE,;t t
23003 s,@am__leading_dot@,$am__leading_dot,;t t
23004 s,@AMTAR@,$AMTAR,;t t
23005 s,@am__tar@,$am__tar,;t t
23006 s,@am__untar@,$am__untar,;t t
23008 s,@CFLAGS@,$CFLAGS,;t t
23009 s,@LDFLAGS@,$LDFLAGS,;t t
23010 s,@CPPFLAGS@,$CPPFLAGS,;t t
23011 s,@ac_ct_CC@,$ac_ct_CC,;t t
23012 s,@EXEEXT@,$EXEEXT,;t t
23013 s,@OBJEXT@,$OBJEXT,;t t
23014 s,@DEPDIR@,$DEPDIR,;t t
23015 s,@am__include@,$am__include,;t t
23016 s,@am__quote@,$am__quote,;t t
23017 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23018 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23019 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23020 s,@CCDEPMODE@,$CCDEPMODE,;t t
23021 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23022 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23023 s,@build@,$build,;t t
23024 s,@build_cpu@,$build_cpu,;t t
23025 s,@build_vendor@,$build_vendor,;t t
23026 s,@build_os@,$build_os,;t t
23027 s,@host@,$host,;t t
23028 s,@host_cpu@,$host_cpu,;t t
23029 s,@host_vendor@,$host_vendor,;t t
23030 s,@host_os@,$host_os,;t t
23031 s,@EGREP@,$EGREP,;t t
23032 s,@LN_S@,$LN_S,;t t
23033 s,@ECHO@,$ECHO,;t t
23035 s,@ac_ct_AR@,$ac_ct_AR,;t t
23036 s,@RANLIB@,$RANLIB,;t t
23037 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23038 s,@DLLTOOL@,$DLLTOOL,;t t
23039 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23041 s,@ac_ct_AS@,$ac_ct_AS,;t t
23042 s,@OBJDUMP@,$OBJDUMP,;t t
23043 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23046 s,@CXXFLAGS@,$CXXFLAGS,;t t
23047 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23048 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23049 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23050 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23051 s,@CXXCPP@,$CXXCPP,;t t
23053 s,@FFLAGS@,$FFLAGS,;t t
23054 s,@ac_ct_F77@,$ac_ct_F77,;t t
23055 s,@LIBTOOL@,$LIBTOOL,;t t
23056 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
23057 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
23058 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
23059 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
23060 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
23061 s,@LIBADD_DL@,$LIBADD_DL,;t t
23062 s,@LIBOBJS@,$LIBOBJS,;t t
23063 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23068 cat >>$CONFIG_STATUS <<\_ACEOF
23069 # Split the substitutions into bite-sized pieces for seds with
23070 # small command number limits, like on Digital OSF/1 and HP-UX.
23071 ac_max_sed_lines=48
23072 ac_sed_frag=1 # Number of current file.
23073 ac_beg=1 # First line for current file.
23074 ac_end=$ac_max_sed_lines # Line after last line for current file.
23077 while $ac_more_lines; do
23078 if test $ac_beg -gt 1; then
23079 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23081 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23083 if test ! -s $tmp/subs.frag; then
23084 ac_more_lines=false
23086 # The purpose of the label and of the branching condition is to
23087 # speed up the sed processing (if there are no `@' at all, there
23088 # is no need to browse any of the substitutions).
23089 # These are the two extra sed commands mentioned above.
23091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23092 if test -z "$ac_sed_cmds"; then
23093 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23095 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23097 ac_sed_frag=`expr $ac_sed_frag + 1`
23099 ac_end=`expr $ac_end + $ac_max_sed_lines`
23102 if test -z "$ac_sed_cmds"; then
23105 fi # test -n "$CONFIG_FILES"
23108 cat >>$CONFIG_STATUS <<\_ACEOF
23109 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23110 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23112 - | *:- | *:-:* ) # input from stdin
23114 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23115 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23116 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23117 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23118 * ) ac_file_in=$ac_file.in ;;
23121 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23122 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23124 X"$ac_file" : 'X\(//\)[^/]' \| \
23125 X"$ac_file" : 'X\(//\)$' \| \
23126 X"$ac_file" : 'X\(/\)' \| \
23127 . : '\(.\)' 2>/dev/null ||
23129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23131 /^X\(\/\/\)$/{ s//\1/; q; }
23132 /^X\(\/\).*/{ s//\1/; q; }
23134 { if $as_mkdir_p; then
23139 while test ! -d "$as_dir"; do
23140 as_dirs="$as_dir $as_dirs"
23141 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23143 X"$as_dir" : 'X\(//\)[^/]' \| \
23144 X"$as_dir" : 'X\(//\)$' \| \
23145 X"$as_dir" : 'X\(/\)' \| \
23146 . : '\(.\)' 2>/dev/null ||
23148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23150 /^X\(\/\/\)$/{ s//\1/; q; }
23151 /^X\(\/\).*/{ s//\1/; q; }
23154 test ! -n "$as_dirs" || mkdir $as_dirs
23155 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23156 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23157 { (exit 1); exit 1; }; }; }
23161 if test "$ac_dir" != .; then
23162 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23163 # A "../" for each directory in $ac_dir_suffix.
23164 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23166 ac_dir_suffix= ac_top_builddir=
23170 .) # No --srcdir option. We are building in place.
23172 if test -z "$ac_top_builddir"; then
23175 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23177 [\\/]* | ?:[\\/]* ) # Absolute path.
23178 ac_srcdir=$srcdir$ac_dir_suffix;
23179 ac_top_srcdir=$srcdir ;;
23180 *) # Relative path.
23181 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23182 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23185 # Do not use `cd foo && pwd` to compute absolute paths, because
23186 # the directories may not exist.
23188 .) ac_abs_builddir="$ac_dir";;
23191 .) ac_abs_builddir=`pwd`;;
23192 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23193 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23196 case $ac_abs_builddir in
23197 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23199 case ${ac_top_builddir}. in
23200 .) ac_abs_top_builddir=$ac_abs_builddir;;
23201 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23202 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23205 case $ac_abs_builddir in
23206 .) ac_abs_srcdir=$ac_srcdir;;
23209 .) ac_abs_srcdir=$ac_abs_builddir;;
23210 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23211 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23214 case $ac_abs_builddir in
23215 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23217 case $ac_top_srcdir in
23218 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23219 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23220 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23227 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23230 if test x"$ac_file" != x-; then
23231 { echo "$as_me:$LINENO: creating $ac_file" >&5
23232 echo "$as_me: creating $ac_file" >&6;}
23235 # Let's still pretend it is `configure' which instantiates (i.e., don't
23236 # use $as_me), people would be surprised to read:
23237 # /* config.h. Generated by config.status. */
23238 if test x"$ac_file" = x-; then
23241 configure_input="$ac_file. "
23243 configure_input=$configure_input"Generated from `echo $ac_file_in |
23244 sed 's,.*/,,'` by configure."
23246 # First look for the input files in the build tree, otherwise in the
23248 ac_file_inputs=`IFS=:
23249 for f in $ac_file_in; do
23251 -) echo $tmp/stdin ;;
23253 # Absolute (can't be DOS-style, as IFS=:)
23254 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23255 echo "$as_me: error: cannot find input file: $f" >&2;}
23256 { (exit 1); exit 1; }; }
23259 if test -f "$f"; then
23262 elif test -f "$srcdir/$f"; then
23267 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23268 echo "$as_me: error: cannot find input file: $f" >&2;}
23269 { (exit 1); exit 1; }; }
23272 done` || { (exit 1); exit 1; }
23274 cat >>$CONFIG_STATUS <<_ACEOF
23278 cat >>$CONFIG_STATUS <<\_ACEOF
23280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23281 s,@configure_input@,$configure_input,;t t
23282 s,@srcdir@,$ac_srcdir,;t t
23283 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23284 s,@top_srcdir@,$ac_top_srcdir,;t t
23285 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23286 s,@builddir@,$ac_builddir,;t t
23287 s,@abs_builddir@,$ac_abs_builddir,;t t
23288 s,@top_builddir@,$ac_top_builddir,;t t
23289 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23290 s,@INSTALL@,$ac_INSTALL,;t t
23291 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23293 if test x"$ac_file" != x-; then
23294 mv $tmp/out $ac_file
23302 cat >>$CONFIG_STATUS <<\_ACEOF
23305 # CONFIG_HEADER section.
23308 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23309 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23311 # ac_d sets the value in "#define NAME VALUE" lines.
23312 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23313 ac_dB='[ ].*$,\1#\2'
23316 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23317 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23318 ac_uB='$,\1#\2define\3'
23322 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23323 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23325 - | *:- | *:-:* ) # input from stdin
23327 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23328 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23329 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23331 * ) ac_file_in=$ac_file.in ;;
23334 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23335 echo "$as_me: creating $ac_file" >&6;}
23337 # First look for the input files in the build tree, otherwise in the
23339 ac_file_inputs=`IFS=:
23340 for f in $ac_file_in; do
23342 -) echo $tmp/stdin ;;
23344 # Absolute (can't be DOS-style, as IFS=:)
23345 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23346 echo "$as_me: error: cannot find input file: $f" >&2;}
23347 { (exit 1); exit 1; }; }
23348 # Do quote $f, to prevent DOS paths from being IFS'd.
23351 if test -f "$f"; then
23354 elif test -f "$srcdir/$f"; then
23359 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23360 echo "$as_me: error: cannot find input file: $f" >&2;}
23361 { (exit 1); exit 1; }; }
23364 done` || { (exit 1); exit 1; }
23365 # Remove the trailing spaces.
23366 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23370 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23371 # `conftest.undefs', that substitutes the proper values into
23372 # config.h.in to produce config.h. The first handles `#define'
23373 # templates, and the second `#undef' templates.
23374 # And first: Protect against being on the right side of a sed subst in
23375 # config.status. Protect against being in an unquoted here document
23376 # in config.status.
23377 rm -f conftest.defines conftest.undefs
23378 # Using a here document instead of a string reduces the quoting nightmare.
23379 # Putting comments in sed scripts is not portable.
23381 # `end' is used to avoid that the second main sed command (meant for
23382 # 0-ary CPP macros) applies to n-ary macro definitions.
23383 # See the Autoconf documentation for `clear'.
23384 cat >confdef2sed.sed <<\_ACEOF
23389 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23391 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23394 # If some macros were called several times there might be several times
23395 # the same #defines, which is useless. Nevertheless, we may not want to
23396 # sort them, since we want the *last* AC-DEFINE to be honored.
23397 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23398 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23399 rm -f confdef2sed.sed
23401 # This sed command replaces #undef with comments. This is necessary, for
23402 # example, in the case of _POSIX_SOURCE, which is predefined and required
23403 # on some systems where configure will not decide to define it.
23404 cat >>conftest.undefs <<\_ACEOF
23405 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23408 # Break up conftest.defines because some shells have a limit on the size
23409 # of here documents, and old seds have small limits too (100 cmds).
23410 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23411 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23412 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23413 echo ' :' >>$CONFIG_STATUS
23414 rm -f conftest.tail
23415 while grep . conftest.defines >/dev/null
23417 # Write a limited-size here document to $tmp/defines.sed.
23418 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23419 # Speed up: don't consider the non `#define' lines.
23420 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23421 # Work around the forget-to-reset-the-flag bug.
23422 echo 't clr' >>$CONFIG_STATUS
23423 echo ': clr' >>$CONFIG_STATUS
23424 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23426 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23428 mv $tmp/out $tmp/in
23430 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23431 rm -f conftest.defines
23432 mv conftest.tail conftest.defines
23434 rm -f conftest.defines
23435 echo ' fi # grep' >>$CONFIG_STATUS
23436 echo >>$CONFIG_STATUS
23438 # Break up conftest.undefs because some shells have a limit on the size
23439 # of here documents, and old seds have small limits too (100 cmds).
23440 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23441 rm -f conftest.tail
23442 while grep . conftest.undefs >/dev/null
23444 # Write a limited-size here document to $tmp/undefs.sed.
23445 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23446 # Speed up: don't consider the non `#undef'
23447 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23448 # Work around the forget-to-reset-the-flag bug.
23449 echo 't clr' >>$CONFIG_STATUS
23450 echo ': clr' >>$CONFIG_STATUS
23451 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23453 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23455 mv $tmp/out $tmp/in
23457 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23458 rm -f conftest.undefs
23459 mv conftest.tail conftest.undefs
23461 rm -f conftest.undefs
23463 cat >>$CONFIG_STATUS <<\_ACEOF
23464 # Let's still pretend it is `configure' which instantiates (i.e., don't
23465 # use $as_me), people would be surprised to read:
23466 # /* config.h. Generated by config.status. */
23467 if test x"$ac_file" = x-; then
23468 echo "/* Generated by configure. */" >$tmp/config.h
23470 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23472 cat $tmp/in >>$tmp/config.h
23474 if test x"$ac_file" != x-; then
23475 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23476 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23477 echo "$as_me: $ac_file is unchanged" >&6;}
23479 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23481 X"$ac_file" : 'X\(//\)[^/]' \| \
23482 X"$ac_file" : 'X\(//\)$' \| \
23483 X"$ac_file" : 'X\(/\)' \| \
23484 . : '\(.\)' 2>/dev/null ||
23486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23488 /^X\(\/\/\)$/{ s//\1/; q; }
23489 /^X\(\/\).*/{ s//\1/; q; }
23491 { if $as_mkdir_p; then
23496 while test ! -d "$as_dir"; do
23497 as_dirs="$as_dir $as_dirs"
23498 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23500 X"$as_dir" : 'X\(//\)[^/]' \| \
23501 X"$as_dir" : 'X\(//\)$' \| \
23502 X"$as_dir" : 'X\(/\)' \| \
23503 . : '\(.\)' 2>/dev/null ||
23505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23507 /^X\(\/\/\)$/{ s//\1/; q; }
23508 /^X\(\/\).*/{ s//\1/; q; }
23511 test ! -n "$as_dirs" || mkdir $as_dirs
23512 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23513 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23514 { (exit 1); exit 1; }; }; }
23517 mv $tmp/config.h $ac_file
23521 rm -f $tmp/config.h
23523 # Compute $ac_file's index in $config_headers.
23525 for _am_header in $config_headers :; do
23526 case $_am_header in
23527 $ac_file | $ac_file:* )
23530 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23533 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23534 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23535 X$ac_file : 'X\(//\)[^/]' \| \
23536 X$ac_file : 'X\(//\)$' \| \
23537 X$ac_file : 'X\(/\)' \| \
23538 . : '\(.\)' 2>/dev/null ||
23540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23542 /^X\(\/\/\)$/{ s//\1/; q; }
23543 /^X\(\/\).*/{ s//\1/; q; }
23544 s/.*/./; q'`/stamp-h$_am_stamp_count
23547 cat >>$CONFIG_STATUS <<\_ACEOF
23550 # CONFIG_COMMANDS section.
23552 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23553 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23554 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23555 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23556 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23557 X"$ac_dest" : 'X\(//\)[^/]' \| \
23558 X"$ac_dest" : 'X\(//\)$' \| \
23559 X"$ac_dest" : 'X\(/\)' \| \
23560 . : '\(.\)' 2>/dev/null ||
23562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23564 /^X\(\/\/\)$/{ s//\1/; q; }
23565 /^X\(\/\).*/{ s//\1/; q; }
23567 { if $as_mkdir_p; then
23572 while test ! -d "$as_dir"; do
23573 as_dirs="$as_dir $as_dirs"
23574 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23576 X"$as_dir" : 'X\(//\)[^/]' \| \
23577 X"$as_dir" : 'X\(//\)$' \| \
23578 X"$as_dir" : 'X\(/\)' \| \
23579 . : '\(.\)' 2>/dev/null ||
23581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23583 /^X\(\/\/\)$/{ s//\1/; q; }
23584 /^X\(\/\).*/{ s//\1/; q; }
23587 test ! -n "$as_dirs" || mkdir $as_dirs
23588 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23589 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23590 { (exit 1); exit 1; }; }; }
23594 if test "$ac_dir" != .; then
23595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23596 # A "../" for each directory in $ac_dir_suffix.
23597 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23599 ac_dir_suffix= ac_top_builddir=
23603 .) # No --srcdir option. We are building in place.
23605 if test -z "$ac_top_builddir"; then
23608 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23610 [\\/]* | ?:[\\/]* ) # Absolute path.
23611 ac_srcdir=$srcdir$ac_dir_suffix;
23612 ac_top_srcdir=$srcdir ;;
23613 *) # Relative path.
23614 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23615 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23618 # Do not use `cd foo && pwd` to compute absolute paths, because
23619 # the directories may not exist.
23621 .) ac_abs_builddir="$ac_dir";;
23624 .) ac_abs_builddir=`pwd`;;
23625 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23626 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23629 case $ac_abs_builddir in
23630 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23632 case ${ac_top_builddir}. in
23633 .) ac_abs_top_builddir=$ac_abs_builddir;;
23634 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23635 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23638 case $ac_abs_builddir in
23639 .) ac_abs_srcdir=$ac_srcdir;;
23642 .) ac_abs_srcdir=$ac_abs_builddir;;
23643 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23644 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23647 case $ac_abs_builddir in
23648 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23650 case $ac_top_srcdir in
23651 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23652 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23653 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23658 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23659 echo "$as_me: executing $ac_dest commands" >&6;}
23661 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23662 # Strip MF so we end up with the name of the file.
23663 mf=`echo "$mf" | sed -e 's/:.*$//'`
23664 # Check whether this is an Automake generated Makefile or not.
23665 # We used to match only the files named `Makefile.in', but
23666 # some people rename them; so instead we look at the file content.
23667 # Grep'ing the first line is not enough: some people post-process
23668 # each Makefile.in and add a new line on top of each file to say so.
23669 # So let's grep whole file.
23670 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23671 dirpart=`(dirname "$mf") 2>/dev/null ||
23672 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23673 X"$mf" : 'X\(//\)[^/]' \| \
23674 X"$mf" : 'X\(//\)$' \| \
23675 X"$mf" : 'X\(/\)' \| \
23676 . : '\(.\)' 2>/dev/null ||
23678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23680 /^X\(\/\/\)$/{ s//\1/; q; }
23681 /^X\(\/\).*/{ s//\1/; q; }
23686 # Extract the definition of DEPDIR, am__include, and am__quote
23687 # from the Makefile without running `make'.
23688 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23689 test -z "$DEPDIR" && continue
23690 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23691 test -z "am__include" && continue
23692 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23693 # When using ansi2knr, U may be empty or an underscore; expand it
23694 U=`sed -n 's/^U = //p' < "$mf"`
23695 # Find all dependency output files, they are included files with
23696 # $(DEPDIR) in their names. We invoke sed twice because it is the
23697 # simplest approach to changing $(DEPDIR) to its actual value in the
23699 for file in `sed -n "
23700 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23701 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23702 # Make sure the directory exists.
23703 test -f "$dirpart/$file" && continue
23704 fdir=`(dirname "$file") 2>/dev/null ||
23705 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23706 X"$file" : 'X\(//\)[^/]' \| \
23707 X"$file" : 'X\(//\)$' \| \
23708 X"$file" : 'X\(/\)' \| \
23709 . : '\(.\)' 2>/dev/null ||
23711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23713 /^X\(\/\/\)$/{ s//\1/; q; }
23714 /^X\(\/\).*/{ s//\1/; q; }
23716 { if $as_mkdir_p; then
23717 mkdir -p $dirpart/$fdir
23719 as_dir=$dirpart/$fdir
23721 while test ! -d "$as_dir"; do
23722 as_dirs="$as_dir $as_dirs"
23723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23725 X"$as_dir" : 'X\(//\)[^/]' \| \
23726 X"$as_dir" : 'X\(//\)$' \| \
23727 X"$as_dir" : 'X\(/\)' \| \
23728 . : '\(.\)' 2>/dev/null ||
23730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23732 /^X\(\/\/\)$/{ s//\1/; q; }
23733 /^X\(\/\).*/{ s//\1/; q; }
23736 test ! -n "$as_dirs" || mkdir $as_dirs
23737 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23738 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23739 { (exit 1); exit 1; }; }; }
23741 # echo "creating $dirpart/$file"
23742 echo '# dummy' > "$dirpart/$file"
23750 cat >>$CONFIG_STATUS <<\_ACEOF
23752 { (exit 0); exit 0; }
23754 chmod +x $CONFIG_STATUS
23755 ac_clean_files=$ac_clean_files_save
23758 # configure is writing to config.log, and then calls config.status.
23759 # config.status does its own redirection, appending to config.log.
23760 # Unfortunately, on DOS this fails, as config.log is still kept open
23761 # by configure, so config.status won't be able to write to it; its
23762 # output is simply discarded. So we exec the FD to /dev/null,
23763 # effectively closing config.log, so it can be properly (re)opened and
23764 # appended to by config.status. When coming back to configure, we
23765 # need to make the FD available again.
23766 if test "$no_create" != yes; then
23768 ac_config_status_args=
23769 test "$silent" = yes &&
23770 ac_config_status_args="$ac_config_status_args --quiet"
23772 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23774 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23775 # would make configure fail if this is the last instruction.
23776 $ac_cs_success || { (exit 1); exit 1; }