2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL
=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec
; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo
; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo
; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset
; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
291 echo_test_string
="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
311 for dir
in $PATH /usr
/ucb
; do
313 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho
; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL
=/bin
/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
352 SHELL
="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string
=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames
=${tagnames+${tagnames},}CXX
398 tagnames
=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix
=/usr
/local
411 ac_config_libobj_dir
=.
416 SHELL
=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME
='libltdl'
425 PACKAGE_TARNAME
='libltdl'
426 PACKAGE_VERSION
='1.2'
427 PACKAGE_STRING
='libltdl 1.2'
428 PACKAGE_BUGREPORT
='bug-libtool@gnu.org'
430 ac_unique_file
="ltdl.c"
431 # Factoring default headers for most tests.
432 ac_includes_default
="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version
=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name
=s
,x
,x
,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir
='${exec_prefix}/bin'
497 sbindir
='${exec_prefix}/sbin'
498 libexecdir
='${exec_prefix}/libexec'
499 datadir
='${prefix}/share'
500 sysconfdir
='${prefix}/etc'
501 sharedstatedir
='${prefix}/com'
502 localstatedir
='${prefix}/var'
503 libdir
='${exec_prefix}/lib'
504 includedir
='${prefix}/include'
505 oldincludedir
='/usr/include'
506 infodir
='${prefix}/info'
507 mandir
='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
527 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
530 -build |
--build |
--buil |
--bui |
--bu)
531 ac_prev
=build_alias
;;
532 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
533 build_alias
=$ac_optarg ;;
535 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
536 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
537 ac_prev
=cache_file
;;
538 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
539 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
540 cache_file
=$ac_optarg ;;
543 cache_file
=config.cache
;;
545 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
547 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
549 datadir
=$ac_optarg ;;
551 -disable-* |
--disable-*)
552 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* |
--enable-*)
561 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
574 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
575 |
--exec |
--exe |
--ex)
576 ac_prev
=exec_prefix
;;
577 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
578 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
579 |
--exec=* |
--exe=* |
--ex=*)
580 exec_prefix
=$ac_optarg ;;
582 -gas |
--gas |
--ga |
--g)
583 # Obsolete; use --with-gas.
586 -help |
--help |
--hel |
--he |
-h)
588 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
589 ac_init_help
=recursive
;;
590 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
591 ac_init_help
=short
;;
593 -host |
--host |
--hos |
--ho)
594 ac_prev
=host_alias
;;
595 -host=* |
--host=* |
--hos=* |
--ho=*)
596 host_alias
=$ac_optarg ;;
598 -includedir |
--includedir |
--includedi |
--included |
--include \
599 |
--includ |
--inclu |
--incl |
--inc)
600 ac_prev
=includedir
;;
601 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
602 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
603 includedir
=$ac_optarg ;;
605 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
607 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
608 infodir
=$ac_optarg ;;
610 -libdir |
--libdir |
--libdi |
--libd)
612 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
615 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
616 |
--libexe |
--libex |
--libe)
617 ac_prev
=libexecdir
;;
618 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
619 |
--libexe=* |
--libex=* |
--libe=*)
620 libexecdir
=$ac_optarg ;;
622 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
623 |
--localstate |
--localstat |
--localsta |
--localst \
624 |
--locals |
--local |
--loca |
--loc |
--lo)
625 ac_prev
=localstatedir
;;
626 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
627 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
628 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
629 localstatedir
=$ac_optarg ;;
631 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
633 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
637 # Obsolete; use --without-fp.
640 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
641 |
--no-cr |
--no-c |
-n)
644 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
645 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
648 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
649 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
650 |
--oldin |
--oldi |
--old |
--ol |
--o)
651 ac_prev
=oldincludedir
;;
652 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
653 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
654 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
655 oldincludedir
=$ac_optarg ;;
657 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
659 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
662 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
663 |
--program-pre |
--program-pr |
--program-p)
664 ac_prev
=program_prefix
;;
665 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
666 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
667 program_prefix
=$ac_optarg ;;
669 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
670 |
--program-suf |
--program-su |
--program-s)
671 ac_prev
=program_suffix
;;
672 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
673 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
674 program_suffix
=$ac_optarg ;;
676 -program-transform-name |
--program-transform-name \
677 |
--program-transform-nam |
--program-transform-na \
678 |
--program-transform-n |
--program-transform- \
679 |
--program-transform |
--program-transfor \
680 |
--program-transfo |
--program-transf \
681 |
--program-trans |
--program-tran \
682 |
--progr-tra |
--program-tr |
--program-t)
683 ac_prev
=program_transform_name
;;
684 -program-transform-name=* |
--program-transform-name=* \
685 |
--program-transform-nam=* |
--program-transform-na=* \
686 |
--program-transform-n=* |
--program-transform-=* \
687 |
--program-transform=* |
--program-transfor=* \
688 |
--program-transfo=* |
--program-transf=* \
689 |
--program-trans=* |
--program-tran=* \
690 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
691 program_transform_name
=$ac_optarg ;;
693 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
694 |
-silent |
--silent |
--silen |
--sile |
--sil)
697 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
699 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
701 sbindir
=$ac_optarg ;;
703 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
704 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
705 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
707 ac_prev
=sharedstatedir
;;
708 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
709 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
710 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
712 sharedstatedir
=$ac_optarg ;;
714 -site |
--site |
--sit)
716 -site=* |
--site=* |
--sit=*)
719 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
721 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
724 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
725 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
726 ac_prev
=sysconfdir
;;
727 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
728 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
729 sysconfdir
=$ac_optarg ;;
731 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
732 ac_prev
=target_alias
;;
733 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
734 target_alias
=$ac_optarg ;;
736 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
739 -version |
--version |
--versio |
--versi |
--vers |
-V)
743 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package
=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* |
--without-*)
756 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package
=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
769 |
--x-incl |
--x-inc |
--x-in |
--x-i)
770 ac_prev
=x_includes
;;
771 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
772 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
773 x_includes
=$ac_optarg ;;
775 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
776 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
777 ac_prev
=x_libraries
;;
778 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
779 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
780 x_libraries
=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var
in exec_prefix prefix
817 eval ac_val
=$
`echo $ac_var`
819 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val
=$
`echo $ac_var`
831 [\\/$
]* | ?
:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x
; then
846 if test "x$build_alias" = x
; then
847 cross_compiling
=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
858 test "$silent" = yes && exec 6>/dev
/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted
=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir
=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted
=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set
=${build_alias+set}
898 ac_env_build_alias_value
=$build_alias
899 ac_cv_env_build_alias_set
=${build_alias+set}
900 ac_cv_env_build_alias_value
=$build_alias
901 ac_env_host_alias_set
=${host_alias+set}
902 ac_env_host_alias_value
=$host_alias
903 ac_cv_env_host_alias_set
=${host_alias+set}
904 ac_cv_env_host_alias_value
=$host_alias
905 ac_env_target_alias_set
=${target_alias+set}
906 ac_env_target_alias_value
=$target_alias
907 ac_cv_env_target_alias_set
=${target_alias+set}
908 ac_cv_env_target_alias_value
=$target_alias
909 ac_env_CC_set
=${CC+set}
911 ac_cv_env_CC_set
=${CC+set}
912 ac_cv_env_CC_value
=$CC
913 ac_env_CFLAGS_set
=${CFLAGS+set}
914 ac_env_CFLAGS_value
=$CFLAGS
915 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value
=$CFLAGS
917 ac_env_LDFLAGS_set
=${LDFLAGS+set}
918 ac_env_LDFLAGS_value
=$LDFLAGS
919 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value
=$LDFLAGS
921 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value
=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
925 ac_env_CPP_set
=${CPP+set}
926 ac_env_CPP_value
=$CPP
927 ac_cv_env_CPP_set
=${CPP+set}
928 ac_cv_env_CPP_value
=$CPP
929 ac_env_CXX_set
=${CXX+set}
930 ac_env_CXX_value
=$CXX
931 ac_cv_env_CXX_set
=${CXX+set}
932 ac_cv_env_CXX_value
=$CXX
933 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value
=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
937 ac_env_CXXCPP_set
=${CXXCPP+set}
938 ac_env_CXXCPP_value
=$CXXCPP
939 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value
=$CXXCPP
941 ac_env_F77_set
=${F77+set}
942 ac_env_F77_value
=$F77
943 ac_cv_env_F77_set
=${F77+set}
944 ac_cv_env_F77_value
=$F77
945 ac_env_FFLAGS_set
=${FFLAGS+set}
946 ac_env_FFLAGS_value
=$FFLAGS
947 ac_cv_env_FFLAGS_set
=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value
=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1016 --build=BUILD configure
for building on BUILD
[guessed
]
1017 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive
) echo "Configuration of libltdl 1.2:";;
1028 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1029 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing
) to the casual installer
1032 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors
1034 --enable-shared[=PKGS
]
1035 build shared libraries
[default
=yes]
1036 --enable-static[=PKGS
]
1037 build static libraries
[default
=yes]
1038 --enable-fast-install[=PKGS
]
1039 optimize
for fast installation
[default
=yes]
1040 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1041 --enable-ltdl-install install libltdl
1044 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1045 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1046 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1047 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1050 include additional configurations
[automatic
]
1052 Some influential environment variables
:
1053 CC C compiler
command
1054 CFLAGS C compiler flags
1055 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1056 nonstandard directory
<lib dir
>
1057 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1058 headers
in a nonstandard directory
<include dir
>
1060 CXX C
++ compiler
command
1061 CXXFLAGS C
++ compiler flags
1062 CXXCPP C
++ preprocessor
1063 F77 Fortran
77 compiler
command
1064 FFLAGS Fortran
77 compiler flags
1066 Use these variables to override the choices made by
`configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1069 Report bugs to <bug-libtool@gnu.org>.
1073 if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1080 if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1085 ac_dir_suffix= ac_top_builddir=
1089 .) # No --srcdir option. We are building in place.
1091 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1105 # the directories may not exist.
1107 .) ac_abs_builddir="$ac_dir";;
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1154 $ac_configure --help
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1165 libltdl configure 1.2
1166 generated by GNU Autoconf 2.59
1168 Copyright (C) 2003 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1176 This file contains any messages produced by compilers while
1177 running configure, to aid debugging if configure makes a mistake.
1179 It was created by libltdl $as_me 1.2, which was
1180 generated by GNU Autoconf 2.59. Invocation command line was
1191 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1192 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1193 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1194 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1195 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1197 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1198 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1200 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1201 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1202 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1203 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1204 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1205 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1206 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir"
1230 # Keep a trace of the command line.
1231 # Strip out --no-create and --no-recursion so they do not pile up.
1232 # Strip out --silent because we don't want to record it for future runs.
1233 # Also quote any args containing shell meta-characters.
1234 # Make two passes to allow for proper duplicate-argument suppression.
1239 ac_must_keep_next=false
1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256 if test $ac_must_keep_next = true; then
1257 ac_must_keep_next=false # Got value, back to normal.
1260 *=* | --config-cache | -C | -disable-* | --disable-* \
1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263 | -with-* | --with-* | -without-* | --without-* | --x)
1264 case "$ac_configure_args0 " in
1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268 -* ) ac_must_keep_next=true ;;
1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272 # Get rid of the leading space.
1278 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281 # When interrupted or exit'd, cleanup temporary files, and complete
1282 # config.log. We remove comments because anyway the quotes in there
1283 # would cause problems or look ugly.
1284 # WARNING: Be sure not to use single quotes in there, as some shells,
1285 # such as our DU 5.0 friend, will then `close
' the trap.
1286 trap 'exit_status
=$?
1287 # Save into config.log some information that might help in debugging.
1292 ## ---------------- ##
1293 ## Cache variables. ##
1294 ## ---------------- ##
1297 # The following way of writing the cache mishandles newlines in values,
1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1315 ## ----------------- ##
1316 ## Output variables. ##
1317 ## ----------------- ##
1320 for ac_var
in $ac_subst_vars
1322 eval ac_val
=$
`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1327 if test -n "$ac_subst_files"; then
1334 for ac_var
in $ac_subst_files
1336 eval ac_val
=$
`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1342 if test -s confdefs.h
; then
1349 sed "/^$/d" confdefs.h |
sort
1352 test "$ac_signal" != 0 &&
1353 echo "$as_me: caught signal $ac_signal"
1354 echo "$as_me: exit $exit_status"
1356 rm -f core
*.core
&&
1357 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1360 for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1366 rm -rf conftest* confdefs.h
1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 # Predefined preprocessor variables.
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 # Let the site file select an alternate cache file if it wants to.
1398 # Prefer explicitly selected file to automatically selected ones.
1399 if test -z "$CONFIG_SITE"; then
1400 if test "x$prefix" != xNONE; then
1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406 for ac_site_file in $CONFIG_SITE; do
1407 if test -r "$ac_site_file"; then
1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409 echo "$as_me: loading site script $ac_site_file" >&6;}
1410 sed 's
/^
/|
/' "$ac_site_file" >&5
1415 if test -r "$cache_file"; then
1416 # Some versions of bash will fail to source /dev/null (special
1417 # files actually), so we avoid doing that.
1418 if test -f "$cache_file"; then
1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420 echo "$as_me: loading cache $cache_file" >&6;}
1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
1423 *) . ./$cache_file;;
1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428 echo "$as_me: creating cache $cache_file" >&6;}
1432 # Check that the precious variables saved in the cache have kept the same
1434 ac_cache_corrupted=false
1435 for ac_var in `(set) 2>&1 |
1436 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438 eval ac_new_set=\$ac_env_${ac_var}_set
1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440 eval ac_new_val="\$ac_env_${ac_var}_value"
1441 case $ac_old_set,$ac_new_set in
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1445 ac_cache_corrupted=: ;;
1447 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1452 if test "x$ac_old_val" != "x$ac_new_val"; then
1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1454 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1456 echo "$as_me: former value: $ac_old_val" >&2;}
1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1458 echo "$as_me: current value: $ac_new_val" >&2;}
1459 ac_cache_corrupted=:
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1479 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480 { (exit 1); exit 1; }; }
1484 ac_cpp='$CPP $CPPFLAGS'
1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1486 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 ## GCJ LOCAL: gcc tree uses maintainer mode.
1518 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1519 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1520 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1521 if test "${enable_maintainer_mode+set}" = set; then
1522 enableval="$enable_maintainer_mode"
1523 USE_MAINTAINER_MODE=$enableval
1525 USE_MAINTAINER_MODE=no
1527 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1528 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1531 if test $USE_MAINTAINER_MODE = yes; then
1532 MAINTAINER_MODE_TRUE=
1533 MAINTAINER_MODE_FALSE='#'
1535 MAINTAINER_MODE_TRUE
='#'
1536 MAINTAINER_MODE_FALSE
=
1539 MAINT
=$MAINTAINER_MODE_TRUE
1543 ## ------------------------------- ##
1544 ## Libltdl specific configuration. ##
1545 ## ------------------------------- ##
1548 for ac_dir
in .
$srcdir/.
; do
1549 if test -f $ac_dir/install-sh
; then
1551 ac_install_sh
="$ac_aux_dir/install-sh -c"
1553 elif test -f $ac_dir/install.sh
; then
1555 ac_install_sh
="$ac_aux_dir/install.sh -c"
1557 elif test -f $ac_dir/shtool
; then
1559 ac_install_sh
="$ac_aux_dir/shtool install -c"
1563 if test -z "$ac_aux_dir"; then
1564 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1565 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1566 { (exit 1); exit 1; }; }
1568 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1569 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1570 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1573 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1574 if test -f ${srcdir}/ltmain.sh
; then
1575 # if libltdl is libtoolized, it is assumed to be stand-alone and
1576 # installed unless the command line overrides it (tested above)
1577 enable_ltdl_install
=yes
1579 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1580 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1581 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1582 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1583 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1584 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1585 { (exit 1); exit 1; }; }
1590 ## ------------------------ ##
1591 ## Automake Initialisation. ##
1592 ## ------------------------ ##
1593 am__api_version
="1.9"
1594 # Find a good install program. We prefer a C program (faster),
1595 # so one script is as good as another. But avoid the broken or
1596 # incompatible versions:
1597 # SysV /etc/install, /usr/sbin/install
1598 # SunOS /usr/etc/install
1599 # IRIX /sbin/install
1601 # AmigaOS /C/install, which installs bootblocks on floppy discs
1602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1605 # OS/2's system install, which has a completely different semantic
1606 # ./install, which can be erroneously created by make from ./install.sh.
1607 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1608 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1609 if test -z "$INSTALL"; then
1610 if test "${ac_cv_path_install+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1617 test -z "$as_dir" && as_dir
=.
1618 # Account for people who put trailing slashes in PATH elements.
1620 .
/ | .
// |
/cC
/* | \
1621 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1622 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1625 # OSF1 and SCO ODT 3.0 have their own names for install.
1626 # Don't use installbsd from OSF since it installs stuff as root
1628 for ac_prog
in ginstall scoinst
install; do
1629 for ac_exec_ext
in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1631 if test $ac_prog = install &&
1632 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1633 # AIX install. It has an incompatible calling convention.
1635 elif test $ac_prog = install &&
1636 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1637 # program-specific install script used by HP pwplus--don't use.
1640 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1652 if test "${ac_cv_path_install+set}" = set; then
1653 INSTALL
=$ac_cv_path_install
1655 # As a last resort, use the slow shell script. We don't cache a
1656 # path for INSTALL within a source directory, because that will
1657 # break other packages using the cache if that directory is
1658 # removed, or if the path is relative.
1659 INSTALL
=$ac_install_sh
1662 echo "$as_me:$LINENO: result: $INSTALL" >&5
1663 echo "${ECHO_T}$INSTALL" >&6
1665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1666 # It thinks the first close brace ends the variable substitution.
1667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1671 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1673 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1674 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1677 echo timestamp
> conftest.
file
1678 # Do `set' in a subshell so we don't clobber the current shell's
1679 # arguments. Must try -L first in case configure is actually a
1680 # symlink; some systems play weird games with the mod time of symlinks
1681 # (eg FreeBSD returns the mod time of the symlink's containing
1684 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1685 if test "$*" = "X"; then
1687 set X
`ls -t $srcdir/configure conftest.file`
1690 if test "$*" != "X $srcdir/configure conftest.file" \
1691 && test "$*" != "X conftest.file $srcdir/configure"; then
1693 # If neither matched, then we have a broken ls. This can happen
1694 # if, for instance, CONFIG_SHELL is bash and it inherits a
1695 # broken ls alias from the environment. This has actually
1696 # happened. Such a system could not be considered "sane".
1697 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1698 alias in your environment" >&5
1699 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1700 alias in your environment" >&2;}
1701 { (exit 1); exit 1; }; }
1704 test "$2" = conftest.
file
1710 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1711 Check your system clock" >&5
1712 echo "$as_me: error: newly created file is older than distributed files!
1713 Check your system clock" >&2;}
1714 { (exit 1); exit 1; }; }
1716 echo "$as_me:$LINENO: result: yes" >&5
1717 echo "${ECHO_T}yes" >&6
1718 test "$program_prefix" != NONE
&&
1719 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1720 # Use a double $ so make ignores it.
1721 test "$program_suffix" != NONE
&&
1722 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1723 # Double any \ or $. echo might interpret backslashes.
1724 # By default was `s,x,x', remove it if useless.
1725 cat <<\_ACEOF
>conftest.
sed
1726 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1728 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1731 # expand $ac_aux_dir to an absolute path
1732 am_aux_dir
=`cd $ac_aux_dir && pwd`
1734 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1735 # Use eval to expand $SHELL
1736 if eval "$MISSING --run true"; then
1737 am_missing_run
="$MISSING --run "
1740 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1741 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1744 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1745 # We used to keeping the `.' as first argument, in order to
1746 # allow $(mkdir_p) to be used without argument. As in
1747 # $(mkdir_p) $(somedir)
1748 # where $(somedir) is conditionally defined. However this is wrong
1750 # 1. if the package is installed by a user who cannot write `.'
1751 # make install will fail,
1752 # 2. the above comment should most certainly read
1753 # $(mkdir_p) $(DESTDIR)$(somedir)
1754 # so it does not work when $(somedir) is undefined and
1755 # $(DESTDIR) is not.
1756 # To support the latter case, we have to write
1757 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1758 # so the `.' trick is pointless.
1759 mkdir_p
='mkdir -p --'
1761 # On NextStep and OpenStep, the `mkdir' command does not
1762 # recognize any option. It will interpret all options as
1763 # directories to create, and then abort because `.' already
1765 for d
in .
/-p .
/--version;
1767 test -d $d && rmdir $d
1769 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1770 if test -f "$ac_aux_dir/mkinstalldirs"; then
1771 mkdir_p
='$(mkinstalldirs)'
1773 mkdir_p
='$(install_sh) -d'
1777 for ac_prog
in gawk mawk nawk
awk
1779 # Extract the first word of "$ac_prog", so it can be a program name with args.
1780 set dummy
$ac_prog; ac_word
=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_AWK+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 if test -n "$AWK"; then
1787 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1793 test -z "$as_dir" && as_dir
=.
1794 for ac_exec_ext
in '' $ac_executable_extensions; do
1795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796 ac_cv_prog_AWK
="$ac_prog"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 if test -n "$AWK"; then
1807 echo "$as_me:$LINENO: result: $AWK" >&5
1808 echo "${ECHO_T}$AWK" >&6
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1814 test -n "$AWK" && break
1817 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1819 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1820 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 cat >conftest.
make <<\_ACEOF
1825 @
echo 'ac_maketemp="$(MAKE)"'
1827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1828 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1829 if test -n "$ac_maketemp"; then
1830 eval ac_cv_prog_make_
${ac_make}_set
=yes
1832 eval ac_cv_prog_make_
${ac_make}_set
=no
1836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1837 echo "$as_me:$LINENO: result: yes" >&5
1838 echo "${ECHO_T}yes" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 SET_MAKE
="MAKE=${MAKE-make}"
1846 rm -rf .tst
2>/dev
/null
1847 mkdir .tst
2>/dev
/null
1848 if test -d .tst
; then
1853 rmdir .tst
2>/dev
/null
1855 # test to see if srcdir already configured
1856 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1857 test -f $srcdir/config.status
; then
1858 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1859 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1860 { (exit 1); exit 1; }; }
1863 # test whether we have cygpath
1864 if test -z "$CYGPATH_W"; then
1865 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1866 CYGPATH_W
='cygpath -w'
1873 # Define the identity of the package.
1878 # Some tools Automake needs.
1880 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1883 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1886 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1889 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1892 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1894 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1896 # Installed binaries are usually stripped using `strip' when the user
1897 # run `make install-strip'. However `strip' might not be the right
1898 # tool to use in cross-compilation environments, therefore Automake
1899 # will honor the `STRIP' environment variable to overrule this program.
1900 if test "$cross_compiling" != no
; then
1901 if test -n "$ac_tool_prefix"; then
1902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1903 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_STRIP+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 if test -n "$STRIP"; then
1910 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir
=.
1917 for ac_exec_ext
in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 STRIP
=$ac_cv_prog_STRIP
1929 if test -n "$STRIP"; then
1930 echo "$as_me:$LINENO: result: $STRIP" >&5
1931 echo "${ECHO_T}$STRIP" >&6
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1938 if test -z "$ac_cv_prog_STRIP"; then
1940 # Extract the first word of "strip", so it can be a program name with args.
1941 set dummy strip
; ac_word
=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 if test -n "$ac_ct_STRIP"; then
1948 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1954 test -z "$as_dir" && as_dir
=.
1955 for ac_exec_ext
in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_ac_ct_STRIP
="strip"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1967 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1968 if test -n "$ac_ct_STRIP"; then
1969 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1970 echo "${ECHO_T}$ac_ct_STRIP" >&6
1972 echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1978 STRIP
="$ac_cv_prog_STRIP"
1982 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1984 # We need awk for the "check" target. The system "awk" is bad on
1986 # Always define AMTAR for backward compatibility.
1988 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1990 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1996 ac_config_headers
="$ac_config_headers config.h:config-h.in"
2000 ## ------------------ ##
2001 ## C compiler checks. ##
2002 ## ------------------ ##
2004 ac_cpp
='$CPP $CPPFLAGS'
2005 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2010 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC
="$CC" # Let the user override the test.
2019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir
=.
2024 for ac_exec_ext
in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2045 if test -z "$ac_cv_prog_CC"; then
2047 # Extract the first word of "gcc", so it can be a program name with args.
2048 set dummy gcc
; ac_word
=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir
=.
2062 for ac_exec_ext
in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CC
="gcc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2087 if test -z "$CC"; then
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2090 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC
="$CC" # Let the user override the test.
2099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir
=.
2104 for ac_exec_ext
in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2125 if test -z "$ac_cv_prog_CC"; then
2127 # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc
; ac_word
=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 if test -n "$ac_ct_CC"; then
2135 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2141 test -z "$as_dir" && as_dir
=.
2142 for ac_exec_ext
in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 ac_cv_prog_ac_ct_CC
="cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2154 if test -n "$ac_ct_CC"; then
2155 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156 echo "${ECHO_T}$ac_ct_CC" >&6
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2168 if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc
; ac_word
=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC
="$CC" # Let the user override the test.
2180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2184 test -z "$as_dir" && as_dir
=.
2185 for ac_exec_ext
in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected
=yes
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 if test $ac_prog_rejected = yes; then
2199 # We found a bogon in the path, so make sure we never use it.
2200 set dummy
$ac_cv_prog_CC
2202 if test $# != 0; then
2203 # We chose a different compiler from the bogus one.
2204 # However, it has the same basename, so the bogon will be chosen
2205 # first if we set CC to just the basename; use the full file name.
2207 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2213 if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2222 if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC
="$CC" # Let the user override the test.
2236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2240 test -z "$as_dir" && as_dir
=.
2241 for ac_exec_ext
in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2261 test -n "$CC" && break
2264 if test -z "$CC"; then
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy
$ac_prog; ac_word
=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 if test -n "$ac_ct_CC"; then
2276 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir
=.
2283 for ac_exec_ext
in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_ac_ct_CC
="$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2303 test -n "$ac_ct_CC" && break
2312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2318 # Provide some information about the compiler.
2319 echo "$as_me:$LINENO:" \
2320 "checking for C compiler version" >&5
2321 ac_compiler
=`set X $ac_compile; echo $2`
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2323 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2328 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2333 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2338 cat >conftest.
$ac_ext <<_ACEOF
2341 cat confdefs.h
>>conftest.
$ac_ext
2342 cat >>conftest.
$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2353 ac_clean_files_save
=$ac_clean_files
2354 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2358 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2360 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2362 (eval $ac_link_default) 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; then
2366 # Find the output, starting from the most likely. This scheme is
2367 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2370 # Be careful to initialize this variable, since it used to be cached.
2371 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2373 # b.out is created by i960 compilers.
2374 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2376 test -f "$ac_file" ||
continue
2378 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2381 # This is the source file.
2384 # We found the default executable, but exeext='' is most
2388 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389 # FIXME: I believe we export ac_cv_exeext for Libtool,
2390 # but it would be cool to find out if it's true. Does anybody
2391 # maintain Libtool? --akim.
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.
$ac_ext >&5
2402 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&2;}
2406 { (exit 77); exit 77; }; }
2409 ac_exeext
=$ac_cv_exeext
2410 echo "$as_me:$LINENO: result: $ac_file" >&5
2411 echo "${ECHO_T}$ac_file" >&6
2413 # Check the compiler produces executables we can run. If not, either
2414 # the compiler is broken, or we cross compile.
2415 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420 if { ac_try
='./$ac_file'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2428 if test "$cross_compiling" = maybe
; then
2431 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2444 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2445 ac_clean_files
=$ac_clean_files_save
2446 # Check the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2450 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6
2453 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456 (eval $ac_link) 2>&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2461 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2462 # work properly (i.e., refer to `conftest.exe'), while it won't with
2464 for ac_file
in conftest.exe conftest conftest.
*; do
2465 test -f "$ac_file" ||
continue
2467 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2468 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2475 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2478 See \`config.log' for more details." >&2;}
2479 { (exit 1); exit 1; }; }
2482 rm -f conftest
$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2484 echo "${ECHO_T}$ac_cv_exeext" >&6
2486 rm -f conftest.
$ac_ext
2487 EXEEXT
=$ac_cv_exeext
2489 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2491 if test "${ac_cv_objext+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 cat >conftest.
$ac_ext <<_ACEOF
2497 cat confdefs.h
>>conftest.
$ac_ext
2498 cat >>conftest.
$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2509 rm -f conftest.o conftest.obj
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; then
2515 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2517 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2518 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.
$ac_ext >&5
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2533 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2535 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6
2537 OBJEXT
=$ac_cv_objext
2539 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 cat >conftest.
$ac_ext <<_ACEOF
2547 cat confdefs.h
>>conftest.
$ac_ext
2548 cat >>conftest.
$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2562 rm -f conftest.
$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2566 grep -v '^ *+' conftest.er1
>conftest.err
2568 cat conftest.err
>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try
='test -z "$ac_c_werror_flag"
2572 || test ! -s conftest.err'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; } &&
2578 { ac_try
='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.
$ac_ext >&5
2591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2592 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2595 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2596 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2597 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2598 ac_test_CFLAGS
=${CFLAGS+set}
2599 ac_save_CFLAGS
=$CFLAGS
2601 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2602 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2603 if test "${ac_cv_prog_cc_g+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 cat >conftest.
$ac_ext <<_ACEOF
2609 cat confdefs.h
>>conftest.
$ac_ext
2610 cat >>conftest.
$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2621 rm -f conftest.
$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623 (eval $ac_compile) 2>conftest.er1
2625 grep -v '^ *+' conftest.er1
>conftest.err
2627 cat conftest.err
>&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try
='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try
='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.
$ac_ext >&5
2650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2652 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2654 if test "$ac_test_CFLAGS" = set; then
2655 CFLAGS
=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657 if test "$GCC" = yes; then
2663 if test "$GCC" = yes; then
2669 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2670 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2671 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 ac_cv_prog_cc_stdc
=no
2676 cat >conftest.
$ac_ext <<_ACEOF
2679 cat confdefs.h
>>conftest.
$ac_ext
2680 cat >>conftest.
$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2700 s = g (p, va_arg (v,int));
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2706 function prototypes and stuff, but not '\xHH' hex character constants.
2707 These don't provoke an error unfortunately, instead are silently treated
2708 as 'x'. The following induces an error, until -std1 is added to get
2709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2710 array size at least. It's necessary to write '\x00'==0 to get something
2711 that's true only with -std1. */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2714 int test (int i, double x);
2715 struct s1 {int (*f) (int a);};
2716 struct s2 {int (*f) (double a);};
2717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2723 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2728 # Don't try gcc -ansi; that turns off useful extensions and
2729 # breaks some systems' header files.
2730 # AIX -qlanglvl=ansi
2731 # Ultrix and OSF/1 -std1
2732 # HP-UX 10.20 and later -Ae
2733 # HP-UX older versions -Aa -D_HPUX_SOURCE
2734 # SVR4 -Xc -D__EXTENSIONS__
2735 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2737 CC
="$ac_save_CC $ac_arg"
2738 rm -f conftest.
$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>conftest.er1
2742 grep -v '^ *+' conftest.er1
>conftest.err
2744 cat conftest.err
>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try
='test -z "$ac_c_werror_flag"
2748 || test ! -s conftest.err'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; } &&
2754 { ac_try
='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2760 ac_cv_prog_cc_stdc
=$ac_arg
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.
$ac_ext >&5
2767 rm -f conftest.err conftest.
$ac_objext
2769 rm -f conftest.
$ac_ext conftest.
$ac_objext
2774 case "x$ac_cv_prog_cc_stdc" in
2776 echo "$as_me:$LINENO: result: none needed" >&5
2777 echo "${ECHO_T}none needed" >&6 ;;
2779 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2780 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2781 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2784 # Some people use a C++ compiler to compile C. Since we use `exit',
2785 # in C++ we need to declare it. In case someone uses the same compiler
2786 # for both compiling C and C++ we need to have the C++ compiler decide
2787 # the declaration of exit, since it's the most demanding environment.
2788 cat >conftest.
$ac_ext <<_ACEOF
2793 rm -f conftest.
$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2797 grep -v '^ *+' conftest.er1
>conftest.err
2799 cat conftest.err
>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try
='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try
='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 for ac_declaration
in \
2817 'extern "C" void std::exit (int) throw (); using std::exit;' \
2818 'extern "C" void std::exit (int); using std::exit;' \
2819 'extern "C" void exit (int) throw ();' \
2820 'extern "C" void exit (int);' \
2823 cat >conftest.
$ac_ext <<_ACEOF
2826 cat confdefs.h
>>conftest.
$ac_ext
2827 cat >>conftest.
$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2839 rm -f conftest.
$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>conftest.er1
2843 grep -v '^ *+' conftest.er1
>conftest.err
2845 cat conftest.err
>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try
='test -z "$ac_c_werror_flag"
2849 || test ! -s conftest.err'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; } &&
2855 { ac_try
='test -s conftest.$ac_objext'
2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; }; then
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.
$ac_ext >&5
2868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2869 cat >conftest.
$ac_ext <<_ACEOF
2872 cat confdefs.h
>>conftest.
$ac_ext
2873 cat >>conftest.
$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2884 rm -f conftest.
$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2888 grep -v '^ *+' conftest.er1
>conftest.err
2890 cat conftest.err
>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try
='test -z "$ac_c_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try
='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.
$ac_ext >&5
2912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2915 if test -n "$ac_declaration"; then
2916 echo '#ifdef __cplusplus' >>confdefs.h
2917 echo $ac_declaration >>confdefs.h
2918 echo '#endif' >>confdefs.h
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.
$ac_ext >&5
2926 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2928 ac_cpp
='$CPP $CPPFLAGS'
2929 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2932 DEPDIR
="${am__leading_dot}deps"
2934 ac_config_commands
="$ac_config_commands depfiles"
2937 am_make
=${MAKE-make}
2938 cat > confinc
<< 'END'
2943 # If we don't find an include directive, just comment out the code.
2944 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2945 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2949 # First try GNU make style include.
2950 echo "include confinc" > confmf
2951 # We grep out `Entering directory' and `Leaving directory'
2952 # messages which can occur if `w' ends up in MAKEFLAGS.
2953 # In particular we don't look at `^make:' because GNU make might
2954 # be invoked under some other name (usually "gmake"), in which
2955 # case it prints its new name instead of `make'.
2956 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2961 # Now try BSD make style include.
2962 if test "$am__include" = "#"; then
2963 echo '.include "confinc"' > confmf
2964 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2965 am__include
=.include
2972 echo "$as_me:$LINENO: result: $_am_result" >&5
2973 echo "${ECHO_T}$_am_result" >&6
2974 rm -f confinc confmf
2976 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2977 if test "${enable_dependency_tracking+set}" = set; then
2978 enableval
="$enable_dependency_tracking"
2981 if test "x$enable_dependency_tracking" != xno
; then
2982 am_depcomp
="$ac_aux_dir/depcomp"
2987 if test "x$enable_dependency_tracking" != xno; then
2998 depcc
="$CC" am_compiler_list
=
3000 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3001 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3002 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3006 # We make a subdir and do the tests there. Otherwise we can end up
3007 # making bogus files that we don't know about and never remove. For
3008 # instance it was reported that on HP-UX the gcc test will end up
3009 # making a dummy file named `D' -- because `-MD' means `put the output
3012 # Copy depcomp to subdir because otherwise we won't find it if we're
3013 # using a relative directory.
3014 cp "$am_depcomp" conftest.dir
3016 # We will build objects and dependencies in a subdirectory because
3017 # it helps to detect inapplicable dependency modes. For instance
3018 # both Tru64's cc and ICC support -MD to output dependencies as a
3019 # side effect of compilation, but ICC will put the dependencies in
3020 # the current directory while Tru64 will put them in the object
3024 am_cv_CC_dependencies_compiler_type
=none
3025 if test "$am_compiler_list" = ""; then
3026 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3028 for depmode
in $am_compiler_list; do
3029 # Setup a source with many dependencies, because some compilers
3030 # like to wrap large dependency lists on column 80 (with \), and
3031 # we should not choose a depcomp mode which is confused by this.
3033 # We need to recreate these files for each test, as the compiler may
3034 # overwrite some of them when testing with obscure command lines.
3035 # This happens at least with the AIX C compiler.
3037 for i
in 1 2 3 4 5 6; do
3038 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3039 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3040 # Solaris 8's {/usr,}/bin/sh.
3041 touch sub
/conftst
$i.h
3043 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3047 # after this tag, mechanisms are not by side-effect, so they'll
3048 # only be used when explicitly requested
3049 if test "x$enable_dependency_tracking" = xyes
; then
3057 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3058 # mode. It turns out that the SunPro C++ compiler does not properly
3059 # handle `-M -o', and we need to detect this.
3060 if depmode
=$depmode \
3061 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3062 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3063 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3064 >/dev
/null
2>conftest.err
&&
3065 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3066 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3067 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3068 # icc doesn't choke on unknown options, it will just issue warnings
3069 # or remarks (even with -Werror). So we grep stderr for any message
3070 # that says an option was ignored or not supported.
3071 # When given -MP, icc 7.0 and 7.1 complain thusly:
3072 # icc: Command line warning: ignoring option '-M'; no argument required
3073 # The diagnosis changed in icc 8.0:
3074 # icc: Command line remark: option '-MP' not supported
3075 if (grep 'ignoring option' conftest.err ||
3076 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3077 am_cv_CC_dependencies_compiler_type
=$depmode
3086 am_cv_CC_dependencies_compiler_type
=none
3090 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3091 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3092 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3097 test "x$enable_dependency_tracking" != xno \
3098 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3100 am__fastdepCC_FALSE
='#'
3102 am__fastdepCC_TRUE
='#'
3103 am__fastdepCC_FALSE
=
3108 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3109 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3110 if test "${ac_cv_c_const+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 cat >conftest.
$ac_ext <<_ACEOF
3116 cat confdefs.h
>>conftest.
$ac_ext
3117 cat >>conftest.
$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3123 /* FIXME: Include the comments suggested by Paul. */
3125 /* Ultrix mips cc rejects this. */
3126 typedef int charset[2];
3128 /* SunOS 4.1.1 cc rejects this. */
3129 char const *const *ccp;
3131 /* NEC SVR4.0.2 mips cc rejects this. */
3132 struct point {int x, y;};
3133 static struct point const zero = {0,0};
3134 /* AIX XL C 1.02.0.0 rejects this.
3135 It does not let you subtract one const X* pointer from another in
3136 an arm of an if-expression whose if-part is not a constant
3138 const char *g = "string";
3139 ccp = &g + (g ? g-g : 0);
3140 /* HPUX 7.0 cc rejects these. */
3143 ccp = (char const *const *) p;
3144 { /* SCO 3.2v4 cc rejects this. */
3146 char const *s = 0 ? (char *) 0 : (char const *) 0;
3150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3152 const int *foo = &x[0];
3155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3156 typedef const int *iptr;
3160 { /* AIX XL C 1.02.0.0 rejects this saying
3161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3162 struct s { int j; const int *ap[3]; };
3163 struct s *b; b->j = 5;
3165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3174 rm -f conftest.
$ac_objext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3176 (eval $ac_compile) 2>conftest.er1
3178 grep -v '^ *+' conftest.er1
>conftest.err
3180 cat conftest.err
>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } &&
3183 { ac_try
='test -z "$ac_c_werror_flag"
3184 || test ! -s conftest.err'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; } &&
3190 { ac_try
='test -s conftest.$ac_objext'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.
$ac_ext >&5
3203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3205 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3206 echo "${ECHO_T}$ac_cv_c_const" >&6
3207 if test $ac_cv_c_const = no
; then
3209 cat >>confdefs.h
<<\_ACEOF
3215 echo "$as_me:$LINENO: checking for inline" >&5
3216 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3217 if test "${ac_cv_c_inline+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 for ac_kw
in inline __inline__ __inline
; do
3222 cat >conftest.
$ac_ext <<_ACEOF
3225 cat confdefs.h
>>conftest.
$ac_ext
3226 cat >>conftest.
$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3230 static $ac_kw foo_t static_foo () {return 0; }
3231 $ac_kw foo_t foo () {return 0; }
3235 rm -f conftest.
$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237 (eval $ac_compile) 2>conftest.er1
3239 grep -v '^ *+' conftest.er1
>conftest.err
3241 cat conftest.err
>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try
='test -z "$ac_c_werror_flag"
3245 || test ! -s conftest.err'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; } &&
3251 { ac_try
='test -s conftest.$ac_objext'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3257 ac_cv_c_inline
=$ac_kw; break
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.
$ac_ext >&5
3263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3267 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3268 echo "${ECHO_T}$ac_cv_c_inline" >&6
3271 case $ac_cv_c_inline in
3274 case $ac_cv_c_inline in
3276 *) ac_val
=$ac_cv_c_inline;;
3278 cat >>confdefs.h
<<_ACEOF
3280 #define inline $ac_val
3288 ## ----------------------- ##
3289 ## Libtool initialisation. ##
3290 ## ----------------------- ##
3293 # Check whether --enable-shared or --disable-shared was given.
3294 if test "${enable_shared+set}" = set; then
3295 enableval
="$enable_shared"
3296 p
=${PACKAGE-default}
3298 yes) enable_shared
=yes ;;
3299 no
) enable_shared
=no
;;
3302 # Look at the argument we got. We use all the common list separators.
3303 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3304 for pkg
in $enableval; do
3306 if test "X$pkg" = "X$p"; then
3317 # Check whether --enable-static or --disable-static was given.
3318 if test "${enable_static+set}" = set; then
3319 enableval
="$enable_static"
3320 p
=${PACKAGE-default}
3322 yes) enable_static
=yes ;;
3323 no
) enable_static
=no
;;
3326 # Look at the argument we got. We use all the common list separators.
3327 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3328 for pkg
in $enableval; do
3330 if test "X$pkg" = "X$p"; then
3341 # Check whether --enable-fast-install or --disable-fast-install was given.
3342 if test "${enable_fast_install+set}" = set; then
3343 enableval
="$enable_fast_install"
3344 p
=${PACKAGE-default}
3346 yes) enable_fast_install
=yes ;;
3347 no
) enable_fast_install
=no
;;
3349 enable_fast_install
=no
3350 # Look at the argument we got. We use all the common list separators.
3351 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3352 for pkg
in $enableval; do
3354 if test "X$pkg" = "X$p"; then
3355 enable_fast_install
=yes
3362 enable_fast_install
=yes
3365 # Make sure we can run config.sub.
3366 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3367 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3368 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3369 { (exit 1); exit 1; }; }
3371 echo "$as_me:$LINENO: checking build system type" >&5
3372 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3373 if test "${ac_cv_build+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 ac_cv_build_alias
=$build_alias
3377 test -z "$ac_cv_build_alias" &&
3378 ac_cv_build_alias
=`$ac_config_guess`
3379 test -z "$ac_cv_build_alias" &&
3380 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3381 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3382 { (exit 1); exit 1; }; }
3383 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3384 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3385 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3386 { (exit 1); exit 1; }; }
3389 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3390 echo "${ECHO_T}$ac_cv_build" >&6
3392 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3393 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3394 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3397 echo "$as_me:$LINENO: checking host system type" >&5
3398 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3399 if test "${ac_cv_host+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 ac_cv_host_alias
=$host_alias
3403 test -z "$ac_cv_host_alias" &&
3404 ac_cv_host_alias
=$ac_cv_build_alias
3405 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3407 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3408 { (exit 1); exit 1; }; }
3411 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3412 echo "${ECHO_T}$ac_cv_host" >&6
3414 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3415 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3416 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3419 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3420 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3421 if test "${lt_cv_path_SED+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 # Loop through the user's path and test for sed and gsed.
3425 # Then use that list of sed's as ones to test for truncation.
3426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir
=.
3431 for lt_ac_prog
in sed gsed
; do
3432 for ac_exec_ext
in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3434 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3441 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3442 # along with /bin/sed that truncates output.
3443 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3444 test ! -f $lt_ac_sed && continue
3445 cat /dev
/null
> conftest.
in
3447 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3448 # Check for GNU sed and select it if it is found.
3449 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3450 lt_cv_path_SED
=$lt_ac_sed
3454 cat conftest.
in conftest.
in >conftest.tmp
3455 mv conftest.tmp conftest.
in
3456 cp conftest.
in conftest.
nl
3458 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3459 cmp -s conftest.out conftest.
nl ||
break
3460 # 10000 chars as input seems more than enough
3461 test $lt_ac_count -gt 10 && break
3462 lt_ac_count
=`expr $lt_ac_count + 1`
3463 if test $lt_ac_count -gt $lt_ac_max; then
3464 lt_ac_max
=$lt_ac_count
3465 lt_cv_path_SED
=$lt_ac_sed
3473 echo "$as_me:$LINENO: result: $SED" >&5
3474 echo "${ECHO_T}$SED" >&6
3476 echo "$as_me:$LINENO: checking for egrep" >&5
3477 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3478 if test "${ac_cv_prog_egrep+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3482 then ac_cv_prog_egrep
='grep -E'
3483 else ac_cv_prog_egrep
='egrep'
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3487 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3488 EGREP
=$ac_cv_prog_egrep
3492 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3493 if test "${with_gnu_ld+set}" = set; then
3494 withval
="$with_gnu_ld"
3495 test "$withval" = no || with_gnu_ld
=yes
3500 if test "$GCC" = yes; then
3501 # Check if gcc -print-prog-name=ld gives a path.
3502 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3503 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3506 # gcc leaves a trailing carriage return which upsets mingw
3507 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3509 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3512 # Accept absolute paths.
3514 re_direlt
='/[^/][^/]*/\.\./'
3515 # Canonicalize the pathname of ld
3516 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
3517 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3518 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3520 test -z "$LD" && LD
="$ac_prog"
3523 # If it fails, then pretend we aren't using GCC.
3527 # If it is relative, then search for the first ld in PATH.
3531 elif test "$with_gnu_ld" = yes; then
3532 echo "$as_me:$LINENO: checking for GNU ld" >&5
3533 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3535 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3536 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3538 if test "${lt_cv_path_LD+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 if test -z "$LD"; then
3542 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3543 for ac_dir
in $PATH; do
3545 test -z "$ac_dir" && ac_dir
=.
3546 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3547 lt_cv_path_LD
="$ac_dir/$ac_prog"
3548 # Check to see if the program is GNU ld. I'd rather use --version,
3549 # but apparently some GNU ld's only accept -v.
3550 # Break only if it was the GNU/non-GNU ld that we prefer.
3551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3552 *GNU
* |
*'with BFD'*)
3553 test "$with_gnu_ld" != no
&& break
3556 test "$with_gnu_ld" != yes && break
3563 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3568 if test -n "$LD"; then
3569 echo "$as_me:$LINENO: result: $LD" >&5
3570 echo "${ECHO_T}$LD" >&6
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3575 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3576 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3577 { (exit 1); exit 1; }; }
3578 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3580 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3584 case `$LD -v 2>&1 </dev/null` in
3585 *GNU
* |
*'with BFD'*)
3586 lt_cv_prog_gnu_ld
=yes
3589 lt_cv_prog_gnu_ld
=no
3593 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3594 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3595 with_gnu_ld
=$lt_cv_prog_gnu_ld
3598 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3599 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3600 if test "${lt_cv_ld_reload_flag+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 lt_cv_ld_reload_flag
='-r'
3605 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3606 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3607 reload_flag
=$lt_cv_ld_reload_flag
3608 case $reload_flag in
3610 *) reload_flag
=" $reload_flag" ;;
3612 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3615 if test "$GCC" = yes; then
3616 reload_cmds
='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3618 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3623 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3624 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3625 if test "${lt_cv_path_NM+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 if test -n "$NM"; then
3629 # Let the user override the test.
3632 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3633 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
3635 test -z "$ac_dir" && ac_dir
=.
3636 tmp_nm
="$ac_dir/${ac_tool_prefix}nm"
3637 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3638 # Check to see if the nm accepts a BSD-compat flag.
3639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3640 # nm: unknown option "B" ignored
3641 # Tru64's nm complains that /dev/null is an invalid object file
3642 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3643 */dev
/null
* |
*'Invalid file or object type'*)
3644 lt_cv_path_NM
="$tmp_nm -B"
3648 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3650 lt_cv_path_NM
="$tmp_nm -p"
3654 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3655 continue # so that we can try to find one that supports BSD flags
3662 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3665 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3666 echo "${ECHO_T}$lt_cv_path_NM" >&6
3669 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3670 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3672 if test "$LN_S" = "ln -s"; then
3673 echo "$as_me:$LINENO: result: yes" >&5
3674 echo "${ECHO_T}yes" >&6
3676 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3677 echo "${ECHO_T}no, using $LN_S" >&6
3680 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3681 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3682 if test "${lt_cv_deplibs_check_method+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3686 lt_cv_file_magic_test_file
=
3687 lt_cv_deplibs_check_method
='unknown'
3688 # Need to set the preceding variable on all platforms that support
3689 # interlibrary dependencies.
3690 # 'none' -- dependencies not supported.
3691 # `unknown' -- same as none, but documents that we really don't know.
3692 # 'pass_all' -- all dependencies passed with no checks.
3693 # 'test_compile' -- check by making test program.
3694 # 'file_magic [[regex]]' -- check by looking for files in library path
3695 # which responds to the $file_magic_cmd with a given extended regex.
3696 # If you have `file' or equivalent on your system and you're not sure
3697 # whether `pass_all' will *always* work, you probably want this one.
3701 lt_cv_deplibs_check_method
=pass_all
3705 lt_cv_deplibs_check_method
=pass_all
3709 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3710 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3711 lt_cv_file_magic_test_file
=/shlib
/libc.so
3715 # func_win32_libid is a shell function defined in ltmain.sh
3716 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
3717 lt_cv_file_magic_cmd
='func_win32_libid'
3721 # Base MSYS/MinGW do not provide the 'file' command needed by
3722 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3723 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3724 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3727 darwin
* | rhapsody
*)
3728 lt_cv_deplibs_check_method
=pass_all
3731 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
3732 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3735 # Not sure whether the presence of OpenBSD here was a mistake.
3736 # Let's accept both of them until this is cleared up.
3737 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3738 lt_cv_file_magic_cmd
=/usr
/bin
/file
3739 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3743 lt_cv_deplibs_check_method
=pass_all
3748 lt_cv_deplibs_check_method
=pass_all
3751 hpux10.20
* | hpux11
*)
3752 lt_cv_file_magic_cmd
=/usr
/bin
/file
3755 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3756 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3759 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]'
3760 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
3763 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3764 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3769 irix5
* | irix6
* | nonstopux
*)
3771 *-32|
*"-32 ") libmagic
=32-bit;;
3772 *-n32|
*"-n32 ") libmagic
=N32
;;
3773 *-64|
*"-64 ") libmagic
=64-bit;;
3774 *) libmagic
=never-match
;;
3776 lt_cv_deplibs_check_method
=pass_all
3779 # This must be Linux ELF.
3781 lt_cv_deplibs_check_method
=pass_all
3785 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3786 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3788 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3793 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3794 lt_cv_file_magic_cmd
=/usr
/bin
/file
3795 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3799 lt_cv_deplibs_check_method
=unknown
3803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3804 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3806 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3810 osf3
* | osf4
* | osf5
*)
3811 lt_cv_deplibs_check_method
=pass_all
3815 lt_cv_deplibs_check_method
=pass_all
3819 lt_cv_deplibs_check_method
=pass_all
3822 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3823 case $host_vendor in
3825 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]'
3826 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3829 lt_cv_deplibs_check_method
=pass_all
3832 lt_cv_file_magic_cmd
='/bin/file'
3833 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3836 lt_cv_file_magic_cmd
='/bin/file'
3837 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3838 lt_cv_file_magic_test_file
=/lib
/libc.so
3841 lt_cv_deplibs_check_method
=pass_all
3846 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
3847 lt_cv_deplibs_check_method
=pass_all
3852 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3853 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3854 file_magic_cmd
=$lt_cv_file_magic_cmd
3855 deplibs_check_method
=$lt_cv_deplibs_check_method
3856 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
3861 # If no C compiler was specified, use CC.
3864 # Allow CC to be a program name with arguments.
3867 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3868 if test "${enable_libtool_lock+set}" = set; then
3869 enableval
="$enable_libtool_lock"
3872 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
3874 # Some flags need to be propagated to the compiler or linker for good
3878 # Find out which ABI we are using.
3879 echo 'int i;' > conftest.
$ac_ext
3880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3881 (eval $ac_compile) 2>&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; then
3885 case `/usr/bin/file conftest.$ac_objext` in
3897 # Find out which ABI we are using.
3898 echo '#line 3898 "configure"' > conftest.
$ac_ext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900 (eval $ac_compile) 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; then
3904 if test "$lt_cv_prog_gnu_ld" = yes; then
3905 case `/usr/bin/file conftest.$ac_objext` in
3907 LD
="${LD-ld} -melf32bsmip"
3910 LD
="${LD-ld} -melf32bmipn32"
3913 LD
="${LD-ld} -melf64bmip"
3917 case `/usr/bin/file conftest.$ac_objext` in
3933 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
3934 # Find out which ABI we are using.
3935 echo 'int i;' > conftest.
$ac_ext
3936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937 (eval $ac_compile) 2>&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; then
3941 case "`/usr/bin/file conftest.o`" in
3945 LD
="${LD-ld} -m elf_i386"
3947 ppc64-
*linux
*|powerpc64-
*linux
*)
3948 LD
="${LD-ld} -m elf32ppclinux"
3951 LD
="${LD-ld} -m elf_s390"
3954 LD
="${LD-ld} -m elf32_sparc"
3961 LD
="${LD-ld} -m elf_x86_64"
3963 ppc
*-*linux
*|powerpc
*-*linux
*)
3964 LD
="${LD-ld} -m elf64ppc"
3967 LD
="${LD-ld} -m elf64_s390"
3970 LD
="${LD-ld} -m elf64_sparc"
3980 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3981 SAVE_CFLAGS
="$CFLAGS"
3982 CFLAGS
="$CFLAGS -belf"
3983 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3984 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3985 if test "${lt_cv_cc_needs_belf+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 ac_cpp
='$CPP $CPPFLAGS'
3990 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3994 cat >conftest.
$ac_ext <<_ACEOF
3997 cat confdefs.h
>>conftest.
$ac_ext
3998 cat >>conftest.
$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4009 rm -f conftest.
$ac_objext conftest
$ac_exeext
4010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011 (eval $ac_link) 2>conftest.er1
4013 grep -v '^ *+' conftest.er1
>conftest.err
4015 cat conftest.err
>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try
='test -z "$ac_c_werror_flag"
4019 || test ! -s conftest.err'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; } &&
4025 { ac_try
='test -s conftest$ac_exeext'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; }; then
4031 lt_cv_cc_needs_belf
=yes
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.
$ac_ext >&5
4036 lt_cv_cc_needs_belf
=no
4038 rm -f conftest.err conftest.
$ac_objext \
4039 conftest
$ac_exeext conftest.
$ac_ext
4041 ac_cpp
='$CPP $CPPFLAGS'
4042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4047 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4048 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4049 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4050 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4051 CFLAGS
="$SAVE_CFLAGS"
4054 *-*-cygwin* |
*-*-mingw* |
*-*-pw32*)
4055 if test -n "$ac_tool_prefix"; then
4056 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4057 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 if test -n "$DLLTOOL"; then
4064 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
4066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir
=.
4071 for ac_exec_ext
in '' $ac_executable_extensions; do
4072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 DLLTOOL
=$ac_cv_prog_DLLTOOL
4083 if test -n "$DLLTOOL"; then
4084 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4085 echo "${ECHO_T}$DLLTOOL" >&6
4087 echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4092 if test -z "$ac_cv_prog_DLLTOOL"; then
4093 ac_ct_DLLTOOL
=$DLLTOOL
4094 # Extract the first word of "dlltool", so it can be a program name with args.
4095 set dummy dlltool
; ac_word
=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 if test -n "$ac_ct_DLLTOOL"; then
4102 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
4104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir
=.
4109 for ac_exec_ext
in '' $ac_executable_extensions; do
4110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL
="false"
4121 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
4122 if test -n "$ac_ct_DLLTOOL"; then
4123 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4124 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4126 echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4130 DLLTOOL
=$ac_ct_DLLTOOL
4132 DLLTOOL
="$ac_cv_prog_DLLTOOL"
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4137 set dummy
${ac_tool_prefix}as
; ac_word
=$2
4138 echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140 if test "${ac_cv_prog_AS+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 if test -n "$AS"; then
4144 ac_cv_prog_AS
="$AS" # Let the user override the test.
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_exec_ext
in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_AS
="${ac_tool_prefix}as"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 if test -n "$AS"; then
4164 echo "$as_me:$LINENO: result: $AS" >&5
4165 echo "${ECHO_T}$AS" >&6
4167 echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4172 if test -z "$ac_cv_prog_AS"; then
4174 # Extract the first word of "as", so it can be a program name with args.
4175 set dummy as
; ac_word
=$2
4176 echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 if test -n "$ac_ct_AS"; then
4182 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
4184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4188 test -z "$as_dir" && as_dir
=.
4189 for ac_exec_ext
in '' $ac_executable_extensions; do
4190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191 ac_cv_prog_ac_ct_AS
="as"
4192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS
="false"
4201 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
4202 if test -n "$ac_ct_AS"; then
4203 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4204 echo "${ECHO_T}$ac_ct_AS" >&6
4206 echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4215 if test -n "$ac_tool_prefix"; then
4216 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4217 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 if test -n "$OBJDUMP"; then
4224 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
4226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir
=.
4231 for ac_exec_ext
in '' $ac_executable_extensions; do
4232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 OBJDUMP
=$ac_cv_prog_OBJDUMP
4243 if test -n "$OBJDUMP"; then
4244 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4245 echo "${ECHO_T}$OBJDUMP" >&6
4247 echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4252 if test -z "$ac_cv_prog_OBJDUMP"; then
4253 ac_ct_OBJDUMP
=$OBJDUMP
4254 # Extract the first word of "objdump", so it can be a program name with args.
4255 set dummy objdump
; ac_word
=$2
4256 echo "$as_me:$LINENO: checking for $ac_word" >&5
4257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4258 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 if test -n "$ac_ct_OBJDUMP"; then
4262 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
4264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4268 test -z "$as_dir" && as_dir
=.
4269 for ac_exec_ext
in '' $ac_executable_extensions; do
4270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4271 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
4272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP
="false"
4281 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
4282 if test -n "$ac_ct_OBJDUMP"; then
4283 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4284 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4286 echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4290 OBJDUMP
=$ac_ct_OBJDUMP
4292 OBJDUMP
="$ac_cv_prog_OBJDUMP"
4299 need_locks
="$enable_libtool_lock"
4303 ac_cpp
='$CPP $CPPFLAGS'
4304 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4307 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4308 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4309 # On Suns, sometimes $CPP names a directory.
4310 if test -n "$CPP" && test -d "$CPP"; then
4313 if test -z "$CPP"; then
4314 if test "${ac_cv_prog_CPP+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 # Double quotes because CPP needs to be expanded
4318 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4321 for ac_c_preproc_warn_flag
in '' yes
4323 # Use a header file that comes with gcc, so configuring glibc
4324 # with a fresh cross-compiler works.
4325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326 # <limits.h> exists even on freestanding compilers.
4327 # On the NeXT, cc -E runs the code through the compiler's parser,
4328 # not just through cpp. "Syntax error" is here to catch this case.
4329 cat >conftest.
$ac_ext <<_ACEOF
4332 cat confdefs.h
>>conftest.
$ac_ext
4333 cat >>conftest.
$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4336 # include <limits.h>
4338 # include <assert.h>
4342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4343 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4345 grep -v '^ *+' conftest.er1
>conftest.err
4347 cat conftest.err
>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev
/null
; then
4350 if test -s conftest.err
; then
4351 ac_cpp_err
=$ac_c_preproc_warn_flag
4352 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4359 if test -z "$ac_cpp_err"; then
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.
$ac_ext >&5
4365 # Broken: fails on valid input.
4368 rm -f conftest.err conftest.
$ac_ext
4370 # OK, works on sane cases. Now check whether non-existent headers
4371 # can be detected and how.
4372 cat >conftest.
$ac_ext <<_ACEOF
4375 cat confdefs.h
>>conftest.
$ac_ext
4376 cat >>conftest.
$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 #include <ac_nonexistent.h>
4380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4381 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4383 grep -v '^ *+' conftest.er1
>conftest.err
4385 cat conftest.err
>&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } >/dev
/null
; then
4388 if test -s conftest.err
; then
4389 ac_cpp_err
=$ac_c_preproc_warn_flag
4390 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4397 if test -z "$ac_cpp_err"; then
4398 # Broken: success on invalid input.
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.
$ac_ext >&5
4404 # Passes both tests.
4408 rm -f conftest.err conftest.
$ac_ext
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.
$ac_ext
4413 if $ac_preproc_ok; then
4425 echo "$as_me:$LINENO: result: $CPP" >&5
4426 echo "${ECHO_T}$CPP" >&6
4428 for ac_c_preproc_warn_flag
in '' yes
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat >conftest.
$ac_ext <<_ACEOF
4439 cat confdefs.h
>>conftest.
$ac_ext
4440 cat >>conftest.
$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4443 # include <limits.h>
4445 # include <assert.h>
4449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4450 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4452 grep -v '^ *+' conftest.er1
>conftest.err
4454 cat conftest.err
>&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } >/dev
/null
; then
4457 if test -s conftest.err
; then
4458 ac_cpp_err
=$ac_c_preproc_warn_flag
4459 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4466 if test -z "$ac_cpp_err"; then
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.
$ac_ext >&5
4472 # Broken: fails on valid input.
4475 rm -f conftest.err conftest.
$ac_ext
4477 # OK, works on sane cases. Now check whether non-existent headers
4478 # can be detected and how.
4479 cat >conftest.
$ac_ext <<_ACEOF
4482 cat confdefs.h
>>conftest.
$ac_ext
4483 cat >>conftest.
$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 #include <ac_nonexistent.h>
4487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4488 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4490 grep -v '^ *+' conftest.er1
>conftest.err
4492 cat conftest.err
>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev
/null
; then
4495 if test -s conftest.err
; then
4496 ac_cpp_err
=$ac_c_preproc_warn_flag
4497 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4504 if test -z "$ac_cpp_err"; then
4505 # Broken: success on invalid input.
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.
$ac_ext >&5
4511 # Passes both tests.
4515 rm -f conftest.err conftest.
$ac_ext
4518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4519 rm -f conftest.err conftest.
$ac_ext
4520 if $ac_preproc_ok; then
4523 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4524 See \`config.log' for more details." >&5
4525 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details." >&2;}
4527 { (exit 1); exit 1; }; }
4531 ac_cpp
='$CPP $CPPFLAGS'
4532 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4539 if test "${ac_cv_header_stdc+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 cat >conftest.
$ac_ext <<_ACEOF
4545 cat confdefs.h
>>conftest.
$ac_ext
4546 cat >>conftest.
$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4561 rm -f conftest.
$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>conftest.er1
4565 grep -v '^ *+' conftest.er1
>conftest.err
4567 cat conftest.err
>&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try
='test -z "$ac_c_werror_flag"
4571 || test ! -s conftest.err'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try
='test -s conftest.$ac_objext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 ac_cv_header_stdc
=yes
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.
$ac_ext >&5
4588 ac_cv_header_stdc
=no
4590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4592 if test $ac_cv_header_stdc = yes; then
4593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594 cat >conftest.
$ac_ext <<_ACEOF
4597 cat confdefs.h
>>conftest.
$ac_ext
4598 cat >>conftest.
$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604 $EGREP "memchr" >/dev
/null
2>&1; then
4607 ac_cv_header_stdc
=no
4613 if test $ac_cv_header_stdc = yes; then
4614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4615 cat >conftest.
$ac_ext <<_ACEOF
4618 cat confdefs.h
>>conftest.
$ac_ext
4619 cat >>conftest.
$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4625 $EGREP "free" >/dev
/null
2>&1; then
4628 ac_cv_header_stdc
=no
4634 if test $ac_cv_header_stdc = yes; then
4635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4636 if test "$cross_compiling" = yes; then
4639 cat >conftest.
$ac_ext <<_ACEOF
4642 cat confdefs.h
>>conftest.
$ac_ext
4643 cat >>conftest.
$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4646 #if ((' ' & 0x0FF) == 0x020)
4647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4650 # define ISLOWER(c) \
4651 (('a' <= (c) && (c) <= 'i') \
4652 || ('j' <= (c) && (c) <= 'r') \
4653 || ('s' <= (c) && (c) <= 'z'))
4654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4662 for (i = 0; i < 256; i++)
4663 if (XOR (islower (i), ISLOWER (i))
4664 || toupper (i) != TOUPPER (i))
4669 rm -f conftest
$ac_exeext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4671 (eval $ac_link) 2>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; }; then
4682 echo "$as_me: program exited with status $ac_status" >&5
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.
$ac_ext >&5
4687 ac_cv_header_stdc
=no
4689 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4693 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4694 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4695 if test $ac_cv_header_stdc = yes; then
4697 cat >>confdefs.h
<<\_ACEOF
4698 #define STDC_HEADERS 1
4703 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4714 inttypes.h stdint.h unistd.h
4716 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717 echo "$as_me:$LINENO: checking for $ac_header" >&5
4718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 cat >conftest.
$ac_ext <<_ACEOF
4725 cat confdefs.h
>>conftest.
$ac_ext
4726 cat >>conftest.
$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4730 #include <$ac_header>
4732 rm -f conftest.
$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>conftest.er1
4736 grep -v '^ *+' conftest.er1
>conftest.err
4738 cat conftest.err
>&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try
='test -z "$ac_c_werror_flag"
4742 || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try
='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 eval "$as_ac_Header=yes"
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.
$ac_ext >&5
4759 eval "$as_ac_Header=no"
4761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766 cat >>confdefs.h
<<_ACEOF
4767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776 for ac_header
in dlfcn.h
4778 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4788 # Is the header compilable?
4789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791 cat >conftest.
$ac_ext <<_ACEOF
4794 cat confdefs.h
>>conftest.
$ac_ext
4795 cat >>conftest.
$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 $ac_includes_default
4798 #include <$ac_header>
4800 rm -f conftest.
$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4804 grep -v '^ *+' conftest.er1
>conftest.err
4806 cat conftest.err
>&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try
='test -z "$ac_c_werror_flag"
4810 || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try
='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_header_compiler
=yes
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.
$ac_ext >&5
4827 ac_header_compiler
=no
4829 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831 echo "${ECHO_T}$ac_header_compiler" >&6
4833 # Is the header present?
4834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4836 cat >conftest.
$ac_ext <<_ACEOF
4839 cat confdefs.h
>>conftest.
$ac_ext
4840 cat >>conftest.
$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <$ac_header>
4844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4847 grep -v '^ *+' conftest.er1
>conftest.err
4849 cat conftest.err
>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev
/null
; then
4852 if test -s conftest.err
; then
4853 ac_cpp_err
=$ac_c_preproc_warn_flag
4854 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4861 if test -z "$ac_cpp_err"; then
4862 ac_header_preproc
=yes
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.
$ac_ext >&5
4867 ac_header_preproc
=no
4869 rm -f conftest.err conftest.
$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871 echo "${ECHO_T}$ac_header_preproc" >&6
4873 # So? What about this header?
4874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4880 ac_header_preproc
=yes
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4897 ## ---------------------------------- ##
4898 ## Report this to bug-libtool@gnu.org ##
4899 ## ---------------------------------- ##
4902 sed "s/^/$as_me: WARNING: /" >&2
4905 echo "$as_me:$LINENO: checking for $ac_header" >&5
4906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 eval "$as_ac_Header=\$ac_header_preproc"
4912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4917 cat >>confdefs.h
<<_ACEOF
4918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 ac_cpp
='$CXXCPP $CPPFLAGS'
4927 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4930 if test -n "$ac_tool_prefix"; then
4931 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4934 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4935 echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4937 if test "${ac_cv_prog_CXX+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test -n "$CXX"; then
4941 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir
=.
4948 for ac_exec_ext
in '' $ac_executable_extensions; do
4949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 if test -n "$CXX"; then
4961 echo "$as_me:$LINENO: result: $CXX" >&5
4962 echo "${ECHO_T}$CXX" >&6
4964 echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6
4968 test -n "$CXX" && break
4971 if test -z "$CXX"; then
4973 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4975 # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy
$ac_prog; ac_word
=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 if test -n "$ac_ct_CXX"; then
4983 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir
=.
4990 for ac_exec_ext
in '' $ac_executable_extensions; do
4991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5002 if test -n "$ac_ct_CXX"; then
5003 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5004 echo "${ECHO_T}$ac_ct_CXX" >&6
5006 echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5010 test -n "$ac_ct_CXX" && break
5012 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
5018 # Provide some information about the compiler.
5019 echo "$as_me:$LINENO:" \
5020 "checking for C++ compiler version" >&5
5021 ac_compiler
=`set X $ac_compile; echo $2`
5022 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5023 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }
5027 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5028 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }
5032 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5033 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }
5038 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5039 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5040 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 cat >conftest.
$ac_ext <<_ACEOF
5046 cat confdefs.h
>>conftest.
$ac_ext
5047 cat >>conftest.
$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5061 rm -f conftest.
$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>conftest.er1
5065 grep -v '^ *+' conftest.er1
>conftest.err
5067 cat conftest.err
>&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try
='test -z "$ac_cxx_werror_flag"
5071 || test ! -s conftest.err'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try
='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.
$ac_ext >&5
5090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5091 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5094 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5095 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5096 GXX
=`test $ac_compiler_gnu = yes && echo yes`
5097 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5098 ac_save_CXXFLAGS
=$CXXFLAGS
5100 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5101 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5102 if test "${ac_cv_prog_cxx_g+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 cat >conftest.
$ac_ext <<_ACEOF
5108 cat confdefs.h
>>conftest.
$ac_ext
5109 cat >>conftest.
$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5120 rm -f conftest.
$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122 (eval $ac_compile) 2>conftest.er1
5124 grep -v '^ *+' conftest.er1
>conftest.err
5126 cat conftest.err
>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try
='test -z "$ac_cxx_werror_flag"
5130 || test ! -s conftest.err'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; } &&
5136 { ac_try
='test -s conftest.$ac_objext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_cv_prog_cxx_g
=yes
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.
$ac_ext >&5
5149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5151 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5152 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5153 if test "$ac_test_CXXFLAGS" = set; then
5154 CXXFLAGS
=$ac_save_CXXFLAGS
5155 elif test $ac_cv_prog_cxx_g = yes; then
5156 if test "$GXX" = yes; then
5162 if test "$GXX" = yes; then
5168 for ac_declaration
in \
5170 'extern "C" void std::exit (int) throw (); using std::exit;' \
5171 'extern "C" void std::exit (int); using std::exit;' \
5172 'extern "C" void exit (int) throw ();' \
5173 'extern "C" void exit (int);' \
5176 cat >conftest.
$ac_ext <<_ACEOF
5179 cat confdefs.h
>>conftest.
$ac_ext
5180 cat >>conftest.
$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5192 rm -f conftest.
$ac_objext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194 (eval $ac_compile) 2>conftest.er1
5196 grep -v '^ *+' conftest.er1
>conftest.err
5198 cat conftest.err
>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try
='test -z "$ac_cxx_werror_flag"
5202 || test ! -s conftest.err'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; } &&
5208 { ac_try
='test -s conftest.$ac_objext'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; }; then
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.
$ac_ext >&5
5221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5222 cat >conftest.
$ac_ext <<_ACEOF
5225 cat confdefs.h
>>conftest.
$ac_ext
5226 cat >>conftest.
$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5237 rm -f conftest.
$ac_objext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5239 (eval $ac_compile) 2>conftest.er1
5241 grep -v '^ *+' conftest.er1
>conftest.err
5243 cat conftest.err
>&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } &&
5246 { ac_try
='test -z "$ac_cxx_werror_flag"
5247 || test ! -s conftest.err'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; } &&
5253 { ac_try
='test -s conftest.$ac_objext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.
$ac_ext >&5
5265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5268 if test -n "$ac_declaration"; then
5269 echo '#ifdef __cplusplus' >>confdefs.h
5270 echo $ac_declaration >>confdefs.h
5271 echo '#endif' >>confdefs.h
5275 ac_cpp
='$CXXCPP $CPPFLAGS'
5276 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5280 depcc
="$CXX" am_compiler_list
=
5282 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5283 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5284 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5288 # We make a subdir and do the tests there. Otherwise we can end up
5289 # making bogus files that we don't know about and never remove. For
5290 # instance it was reported that on HP-UX the gcc test will end up
5291 # making a dummy file named `D' -- because `-MD' means `put the output
5294 # Copy depcomp to subdir because otherwise we won't find it if we're
5295 # using a relative directory.
5296 cp "$am_depcomp" conftest.dir
5298 # We will build objects and dependencies in a subdirectory because
5299 # it helps to detect inapplicable dependency modes. For instance
5300 # both Tru64's cc and ICC support -MD to output dependencies as a
5301 # side effect of compilation, but ICC will put the dependencies in
5302 # the current directory while Tru64 will put them in the object
5306 am_cv_CXX_dependencies_compiler_type
=none
5307 if test "$am_compiler_list" = ""; then
5308 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5310 for depmode
in $am_compiler_list; do
5311 # Setup a source with many dependencies, because some compilers
5312 # like to wrap large dependency lists on column 80 (with \), and
5313 # we should not choose a depcomp mode which is confused by this.
5315 # We need to recreate these files for each test, as the compiler may
5316 # overwrite some of them when testing with obscure command lines.
5317 # This happens at least with the AIX C compiler.
5319 for i
in 1 2 3 4 5 6; do
5320 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5321 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5322 # Solaris 8's {/usr,}/bin/sh.
5323 touch sub
/conftst
$i.h
5325 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5329 # after this tag, mechanisms are not by side-effect, so they'll
5330 # only be used when explicitly requested
5331 if test "x$enable_dependency_tracking" = xyes
; then
5339 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5340 # mode. It turns out that the SunPro C++ compiler does not properly
5341 # handle `-M -o', and we need to detect this.
5342 if depmode
=$depmode \
5343 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5344 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5345 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5346 >/dev
/null
2>conftest.err
&&
5347 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5348 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5349 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5350 # icc doesn't choke on unknown options, it will just issue warnings
5351 # or remarks (even with -Werror). So we grep stderr for any message
5352 # that says an option was ignored or not supported.
5353 # When given -MP, icc 7.0 and 7.1 complain thusly:
5354 # icc: Command line warning: ignoring option '-M'; no argument required
5355 # The diagnosis changed in icc 8.0:
5356 # icc: Command line remark: option '-MP' not supported
5357 if (grep 'ignoring option' conftest.err ||
5358 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5359 am_cv_CXX_dependencies_compiler_type
=$depmode
5368 am_cv_CXX_dependencies_compiler_type
=none
5372 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5373 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5374 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5379 test "x$enable_dependency_tracking" != xno \
5380 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5381 am__fastdepCXX_TRUE
=
5382 am__fastdepCXX_FALSE
='#'
5384 am__fastdepCXX_TRUE
='#'
5385 am__fastdepCXX_FALSE
=
5391 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5392 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5393 (test "X$CXX" != "Xg++"))) ; then
5395 ac_cpp
='$CXXCPP $CPPFLAGS'
5396 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5399 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5400 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5401 if test -z "$CXXCPP"; then
5402 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 # Double quotes because CXXCPP needs to be expanded
5406 for CXXCPP
in "$CXX -E" "/lib/cpp"
5409 for ac_cxx_preproc_warn_flag
in '' yes
5411 # Use a header file that comes with gcc, so configuring glibc
5412 # with a fresh cross-compiler works.
5413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5414 # <limits.h> exists even on freestanding compilers.
5415 # On the NeXT, cc -E runs the code through the compiler's parser,
5416 # not just through cpp. "Syntax error" is here to catch this case.
5417 cat >conftest.
$ac_ext <<_ACEOF
5420 cat confdefs.h
>>conftest.
$ac_ext
5421 cat >>conftest.
$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5424 # include <limits.h>
5426 # include <assert.h>
5430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5431 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5433 grep -v '^ *+' conftest.er1
>conftest.err
5435 cat conftest.err
>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } >/dev
/null
; then
5438 if test -s conftest.err
; then
5439 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5440 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5447 if test -z "$ac_cpp_err"; then
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.
$ac_ext >&5
5453 # Broken: fails on valid input.
5456 rm -f conftest.err conftest.
$ac_ext
5458 # OK, works on sane cases. Now check whether non-existent headers
5459 # can be detected and how.
5460 cat >conftest.
$ac_ext <<_ACEOF
5463 cat confdefs.h
>>conftest.
$ac_ext
5464 cat >>conftest.
$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <ac_nonexistent.h>
5468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5469 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5471 grep -v '^ *+' conftest.er1
>conftest.err
5473 cat conftest.err
>&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } >/dev
/null
; then
5476 if test -s conftest.err
; then
5477 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5478 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5485 if test -z "$ac_cpp_err"; then
5486 # Broken: success on invalid input.
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.
$ac_ext >&5
5492 # Passes both tests.
5496 rm -f conftest.err conftest.
$ac_ext
5499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5500 rm -f conftest.err conftest.
$ac_ext
5501 if $ac_preproc_ok; then
5506 ac_cv_prog_CXXCPP
=$CXXCPP
5509 CXXCPP
=$ac_cv_prog_CXXCPP
5511 ac_cv_prog_CXXCPP
=$CXXCPP
5513 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5514 echo "${ECHO_T}$CXXCPP" >&6
5516 for ac_cxx_preproc_warn_flag
in '' yes
5518 # Use a header file that comes with gcc, so configuring glibc
5519 # with a fresh cross-compiler works.
5520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5521 # <limits.h> exists even on freestanding compilers.
5522 # On the NeXT, cc -E runs the code through the compiler's parser,
5523 # not just through cpp. "Syntax error" is here to catch this case.
5524 cat >conftest.
$ac_ext <<_ACEOF
5527 cat confdefs.h
>>conftest.
$ac_ext
5528 cat >>conftest.
$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5531 # include <limits.h>
5533 # include <assert.h>
5537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5538 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5540 grep -v '^ *+' conftest.er1
>conftest.err
5542 cat conftest.err
>&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } >/dev
/null
; then
5545 if test -s conftest.err
; then
5546 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5547 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5554 if test -z "$ac_cpp_err"; then
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.
$ac_ext >&5
5560 # Broken: fails on valid input.
5563 rm -f conftest.err conftest.
$ac_ext
5565 # OK, works on sane cases. Now check whether non-existent headers
5566 # can be detected and how.
5567 cat >conftest.
$ac_ext <<_ACEOF
5570 cat confdefs.h
>>conftest.
$ac_ext
5571 cat >>conftest.
$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5573 #include <ac_nonexistent.h>
5575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5576 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5578 grep -v '^ *+' conftest.er1
>conftest.err
5580 cat conftest.err
>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } >/dev
/null
; then
5583 if test -s conftest.err
; then
5584 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5585 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5592 if test -z "$ac_cpp_err"; then
5593 # Broken: success on invalid input.
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.
$ac_ext >&5
5599 # Passes both tests.
5603 rm -f conftest.err conftest.
$ac_ext
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.err conftest.
$ac_ext
5608 if $ac_preproc_ok; then
5611 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5612 See \`config.log' for more details." >&5
5613 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5614 See \`config.log' for more details." >&2;}
5615 { (exit 1); exit 1; }; }
5619 ac_cpp
='$CXXCPP $CPPFLAGS'
5620 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5628 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5629 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5631 if test -n "$ac_tool_prefix"; then
5632 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5635 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5636 echo "$as_me:$LINENO: checking for $ac_word" >&5
5637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5638 if test "${ac_cv_prog_F77+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 if test -n "$F77"; then
5642 ac_cv_prog_F77
="$F77" # Let the user override the test.
5644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5648 test -z "$as_dir" && as_dir
=.
5649 for ac_exec_ext
in '' $ac_executable_extensions; do
5650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 if test -n "$F77"; then
5662 echo "$as_me:$LINENO: result: $F77" >&5
5663 echo "${ECHO_T}$F77" >&6
5665 echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6
5669 test -n "$F77" && break
5672 if test -z "$F77"; then
5674 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5676 # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy
$ac_prog; ac_word
=$2
5678 echo "$as_me:$LINENO: checking for $ac_word" >&5
5679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 if test -n "$ac_ct_F77"; then
5684 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5690 test -z "$as_dir" && as_dir
=.
5691 for ac_exec_ext
in '' $ac_executable_extensions; do
5692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_ac_ct_F77
="$ac_prog"
5694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5703 if test -n "$ac_ct_F77"; then
5704 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5705 echo "${ECHO_T}$ac_ct_F77" >&6
5707 echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5711 test -n "$ac_ct_F77" && break
5718 # Provide some information about the compiler.
5719 echo "$as_me:5719:" \
5720 "checking for Fortran 77 compiler version" >&5
5721 ac_compiler
=`set X $ac_compile; echo $2`
5722 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5723 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }
5727 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5728 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }
5732 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5733 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }
5739 # If we don't use `.F' as extension, the preprocessor is not run on the
5740 # input file. (Note that this only needs to work for GNU compilers.)
5743 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5744 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5745 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 cat >conftest.
$ac_ext <<_ACEOF
5756 rm -f conftest.
$ac_objext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5758 (eval $ac_compile) 2>conftest.er1
5760 grep -v '^ *+' conftest.er1
>conftest.err
5762 cat conftest.err
>&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try
='test -z "$ac_f77_werror_flag"
5766 || test ! -s conftest.err'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try
='test -s conftest.$ac_objext'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; }; then
5780 echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.
$ac_ext >&5
5785 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5786 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
5789 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5790 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5792 ac_test_FFLAGS
=${FFLAGS+set}
5793 ac_save_FFLAGS
=$FFLAGS
5795 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5796 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5797 if test "${ac_cv_prog_f77_g+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 cat >conftest.
$ac_ext <<_ACEOF
5806 rm -f conftest.
$ac_objext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>conftest.er1
5810 grep -v '^ *+' conftest.er1
>conftest.err
5812 cat conftest.err
>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try
='test -z "$ac_f77_werror_flag"
5816 || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try
='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_cv_prog_f77_g
=yes
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.
$ac_ext >&5
5835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5838 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5839 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5840 if test "$ac_test_FFLAGS" = set; then
5841 FFLAGS
=$ac_save_FFLAGS
5842 elif test $ac_cv_prog_f77_g = yes; then
5843 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5849 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5856 G77
=`test $ac_compiler_gnu = yes && echo yes`
5858 ac_cpp
='$CPP $CPPFLAGS'
5859 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5865 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5867 # find the maximum length of command line arguments
5868 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5869 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5870 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 # On DJGPP, this test can blow up pretty badly due to problems in libc
5879 # (any single argument exceeding 2000 bytes causes a buffer overrun
5880 # during glob expansion). Even if it were fixed, the result of this
5881 # check would be larger than it should be.
5882 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5886 # Under GNU Hurd, this test is not required because there is
5887 # no limit to the length of command line arguments.
5888 # Libtool will interpret -1 as no limit whatsoever
5889 lt_cv_sys_max_cmd_len
=-1;
5893 # On Win9x/ME, this test blows up -- it succeeds, but takes
5894 # about 5 minutes as the teststring grows exponentially.
5895 # Worse, since 9x/ME are not pre-emptively multitasking,
5896 # you end up with a "frozen" computer, even though with patience
5897 # the test eventually succeeds (with a max line length of 256k).
5898 # Instead, let's just punt: use the minimum linelength reported by
5899 # all of the supported platforms: 8192 (on NT/2K/XP).
5900 lt_cv_sys_max_cmd_len
=8192;
5904 # On AmigaOS with pdksh, this test takes hours, literally.
5905 # So we just punt and use a minimum line length of 8192.
5906 lt_cv_sys_max_cmd_len
=8192;
5909 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5910 # This has been around since 386BSD, at least. Likely further.
5911 if test -x /sbin
/sysctl
; then
5912 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5913 elif test -x /usr
/sbin
/sysctl
; then
5914 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5916 lt_cv_sys_max_cmd_len
=65536 # usable default for *BSD
5918 # And add a safety zone
5919 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5920 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5923 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5924 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5925 # nice to cause kernel panics so lets avoid the loop below.
5926 # First set a reasonable default.
5927 lt_cv_sys_max_cmd_len
=16384
5929 if test -x /sbin
/sysconfig
; then
5930 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5931 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5936 # If test is not a shell built-in, we'll probably end up computing a
5937 # maximum length that is only half of the actual maximum length, but
5939 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5940 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5941 = "XX$teststring") >/dev
/null
2>&1 &&
5942 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
5943 lt_cv_sys_max_cmd_len
=$new_result &&
5944 test $i != 17 # 1/2 MB should be enough
5947 teststring
=$teststring$teststring
5950 # Add a significant safety factor because C++ compilers can tack on massive
5951 # amounts of additional arguments before passing them to the linker.
5952 # It appears as though 1/2 is a usable value.
5953 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5959 if test -n $lt_cv_sys_max_cmd_len ; then
5960 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5961 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5963 echo "$as_me:$LINENO: result: none" >&5
5964 echo "${ECHO_T}none" >&6
5970 # Check for command to grab the raw symbol name followed by C symbol from nm.
5971 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5972 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5973 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 # These are sane defaults that work on at least a few old systems.
5978 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5980 # Character class describing NM global symbol codes.
5981 symcode
='[BCDEGRST]'
5983 # Regexp to match symbols that can be accessed directly from C.
5984 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5986 # Transform an extracted symbol line into a proper C declaration
5987 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5989 # Transform an extracted symbol line into symbol name and symbol address
5990 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'"
5992 # Define system-specific variables.
5997 cygwin
* | mingw
* | pw32
*)
5998 symcode
='[ABCDGISTW]'
6000 hpux
*) # Its linker distinguishes data from code symbols
6001 if test "$host_cpu" = ia64
; then
6002 symcode
='[ABCDEGRST]'
6004 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6005 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'"
6008 if test "$host_cpu" = ia64
; then
6009 symcode
='[ABCDGIRSTW]'
6010 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6011 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'"
6015 symcode
='[BCDEGRST]'
6018 symcode
='[BCDEGQRST]'
6028 # Handle CRLF in mingw tool chain
6032 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6036 # If we're using GNU nm, then use its standard symbol codes.
6037 case `$NM -V 2>&1` in
6038 *GNU
* |
*'with BFD'*)
6039 symcode
='[ABCDGIRSTW]' ;;
6042 # Try without a prefix undercore, then with it.
6043 for ac_symprfx
in "" "_"; do
6045 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6046 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6048 # Write the raw and C identifiers.
6049 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6051 # Check to see that the pipe works correctly.
6055 cat > conftest.
$ac_ext <<EOF
6060 void nm_test_func(){}
6064 int main(){nm_test_var='a';nm_test_func();return(0);}
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068 (eval $ac_compile) 2>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; then
6072 # Now try to grab the symbols.
6074 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6075 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && test -s "$nlist"; then
6079 # Try sorting and uniquifying the output.
6080 if sort "$nlist" |
uniq > "$nlist"T
; then
6081 mv -f "$nlist"T
"$nlist"
6086 # Make sure that we snagged all the symbols we need.
6087 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6088 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6089 cat <<EOF > conftest.$ac_ext
6095 # Now generate the symbol file.
6096 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6098 cat <<EOF >> conftest.$ac_ext
6099 #if defined (__STDC__) && __STDC__
6100 # define lt_ptr_t void *
6102 # define lt_ptr_t char *
6106 /* The mapping between symbol names and symbols. */
6111 lt_preloaded_symbols[] =
6114 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6115 cat <<\EOF
>> conftest.
$ac_ext
6123 # Now try linking the two files.
6124 mv conftest.
$ac_objext conftstm.
$ac_objext
6125 lt_save_LIBS
="$LIBS"
6126 lt_save_CFLAGS
="$CFLAGS"
6127 LIBS
="conftstm.$ac_objext"
6128 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6130 (eval $ac_link) 2>&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6136 LIBS
="$lt_save_LIBS"
6137 CFLAGS
="$lt_save_CFLAGS"
6139 echo "cannot find nm_test_func in $nlist" >&5
6142 echo "cannot find nm_test_var in $nlist" >&5
6145 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6148 echo "$progname: failed program was:" >&5
6149 cat conftest.
$ac_ext >&5
6151 rm -f conftest
* conftst
*
6153 # Do not use the global_symbol_pipe unless it works.
6154 if test "$pipe_works" = yes; then
6157 lt_cv_sys_global_symbol_pipe
=
6163 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6164 lt_cv_sys_global_symbol_to_cdecl
=
6166 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6167 echo "$as_me:$LINENO: result: failed" >&5
6168 echo "${ECHO_T}failed" >&6
6170 echo "$as_me:$LINENO: result: ok" >&5
6171 echo "${ECHO_T}ok" >&6
6174 echo "$as_me:$LINENO: checking for objdir" >&5
6175 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6176 if test "${lt_cv_objdir+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 rm -f .libs
2>/dev
/null
6180 mkdir .libs
2>/dev
/null
6181 if test -d .libs
; then
6184 # MS-DOS does not allow filenames that begin with a dot.
6187 rmdir .libs
2>/dev
/null
6189 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6190 echo "${ECHO_T}$lt_cv_objdir" >&6
6191 objdir
=$lt_cv_objdir
6199 # AIX sometimes has problems with the GCC collect2 program. For some
6200 # reason, if we set the COLLECT_NAMES environment variable, the problems
6201 # vanish in a puff of smoke.
6202 if test "X${COLLECT_NAMES+set}" != Xset
; then
6204 export COLLECT_NAMES
6209 # Sed substitution that helps us do robust quoting. It backslashifies
6210 # metacharacters that are still active within double-quoted strings.
6211 Xsed
='sed -e 1s/^X//'
6212 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6214 # Same as above, but do not quote variable references.
6215 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6217 # Sed substitution to delay expansion of an escaped shell variable in a
6218 # double_quote_subst'ed string.
6219 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6221 # Sed substitution to avoid accidental globbing in evaled expressions
6222 no_glob_subst
='s/\*/\\\*/g'
6228 default_ofile
=libtool
6229 can_build_shared
=yes
6231 # All known linkers require a `.a' archive for static linking (except M$VC,
6232 # which needs '.lib').
6234 ltmain
="$ac_aux_dir/ltmain.sh"
6235 ofile
="$default_ofile"
6236 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6238 if test -n "$ac_tool_prefix"; then
6239 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6240 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6241 echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6243 if test "${ac_cv_prog_AR+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 if test -n "$AR"; then
6247 ac_cv_prog_AR
="$AR" # Let the user override the test.
6249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6253 test -z "$as_dir" && as_dir
=.
6254 for ac_exec_ext
in '' $ac_executable_extensions; do
6255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 if test -n "$AR"; then
6267 echo "$as_me:$LINENO: result: $AR" >&5
6268 echo "${ECHO_T}$AR" >&6
6270 echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6
6275 if test -z "$ac_cv_prog_AR"; then
6277 # Extract the first word of "ar", so it can be a program name with args.
6278 set dummy
ar; ac_word
=$2
6279 echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6281 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 if test -n "$ac_ct_AR"; then
6285 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir
=.
6292 for ac_exec_ext
in '' $ac_executable_extensions; do
6293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_ac_ct_AR
="ar"
6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR
="false"
6304 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6305 if test -n "$ac_ct_AR"; then
6306 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6307 echo "${ECHO_T}$ac_ct_AR" >&6
6309 echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6
6318 if test -n "$ac_tool_prefix"; then
6319 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6320 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6321 echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323 if test "${ac_cv_prog_RANLIB+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 if test -n "$RANLIB"; then
6327 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir
=.
6334 for ac_exec_ext
in '' $ac_executable_extensions; do
6335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 RANLIB
=$ac_cv_prog_RANLIB
6346 if test -n "$RANLIB"; then
6347 echo "$as_me:$LINENO: result: $RANLIB" >&5
6348 echo "${ECHO_T}$RANLIB" >&6
6350 echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6355 if test -z "$ac_cv_prog_RANLIB"; then
6356 ac_ct_RANLIB
=$RANLIB
6357 # Extract the first word of "ranlib", so it can be a program name with args.
6358 set dummy ranlib
; ac_word
=$2
6359 echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6361 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 if test -n "$ac_ct_RANLIB"; then
6365 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir
=.
6372 for ac_exec_ext
in '' $ac_executable_extensions; do
6373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6374 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6384 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6385 if test -n "$ac_ct_RANLIB"; then
6386 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6387 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6389 echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6
6393 RANLIB
=$ac_ct_RANLIB
6395 RANLIB
="$ac_cv_prog_RANLIB"
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6400 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6401 echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6403 if test "${ac_cv_prog_STRIP+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 if test -n "$STRIP"; then
6407 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir
=.
6414 for ac_exec_ext
in '' $ac_executable_extensions; do
6415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 STRIP
=$ac_cv_prog_STRIP
6426 if test -n "$STRIP"; then
6427 echo "$as_me:$LINENO: result: $STRIP" >&5
6428 echo "${ECHO_T}$STRIP" >&6
6430 echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6
6435 if test -z "$ac_cv_prog_STRIP"; then
6437 # Extract the first word of "strip", so it can be a program name with args.
6438 set dummy strip
; ac_word
=$2
6439 echo "$as_me:$LINENO: checking for $ac_word" >&5
6440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6441 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 if test -n "$ac_ct_STRIP"; then
6445 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6451 test -z "$as_dir" && as_dir
=.
6452 for ac_exec_ext
in '' $ac_executable_extensions; do
6453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_ac_ct_STRIP
="strip"
6455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
6464 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6465 if test -n "$ac_ct_STRIP"; then
6466 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6467 echo "${ECHO_T}$ac_ct_STRIP" >&6
6469 echo "$as_me:$LINENO: result: no" >&5
6470 echo "${ECHO_T}no" >&6
6475 STRIP
="$ac_cv_prog_STRIP"
6480 old_CFLAGS
="$CFLAGS"
6482 # Set sane defaults for various variables
6483 test -z "$AR" && AR
=ar
6484 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6485 test -z "$AS" && AS
=as
6486 test -z "$CC" && CC
=cc
6487 test -z "$LTCC" && LTCC
=$CC
6488 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6489 test -z "$LD" && LD
=ld
6490 test -z "$LN_S" && LN_S
="ln -s"
6491 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6492 test -z "$NM" && NM
=nm
6493 test -z "$SED" && SED
=sed
6494 test -z "$OBJDUMP" && OBJDUMP
=objdump
6495 test -z "$RANLIB" && RANLIB
=:
6496 test -z "$STRIP" && STRIP
=:
6497 test -z "$ac_objext" && ac_objext
=o
6499 # Determine commands to create old-style static archives.
6500 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6501 old_postinstall_cmds
='chmod 644 $oldlib'
6502 old_postuninstall_cmds
=
6504 if test -n "$RANLIB"; then
6507 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6510 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
6513 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6516 for cc_temp
in $compiler""; do
6518 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6519 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
6524 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6527 # Only perform the check for file, if the check method requires it
6528 case $deplibs_check_method in
6530 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6531 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6532 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6533 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6541 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6542 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6543 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6544 for ac_dir
in $ac_dummy; do
6546 test -z "$ac_dir" && ac_dir
=.
6547 if test -f $ac_dir/${ac_tool_prefix}file; then
6548 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6549 if test -n "$file_magic_test_file"; then
6550 case $deplibs_check_method in
6552 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6553 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6554 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6555 $EGREP "$file_magic_regex" > /dev
/null
; then
6560 *** Warning: the command libtool uses to detect shared libraries,
6561 *** $file_magic_cmd, produces output that libtool cannot recognize.
6562 *** The result is that libtool may fail to recognize shared libraries
6563 *** as such. This will affect the creation of libtool libraries that
6564 *** depend on shared libraries, but programs linked with such libtool
6565 *** libraries will work regardless of this problem. Nevertheless, you
6566 *** may want to report the problem to your system manager and/or to
6567 *** bug-libtool@gnu.org
6577 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6582 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6583 if test -n "$MAGIC_CMD"; then
6584 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6585 echo "${ECHO_T}$MAGIC_CMD" >&6
6587 echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
6591 if test -z "$lt_cv_path_MAGIC_CMD"; then
6592 if test -n "$ac_tool_prefix"; then
6593 echo "$as_me:$LINENO: checking for file" >&5
6594 echo $ECHO_N "checking for file... $ECHO_C" >&6
6595 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6603 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6604 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6605 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6606 for ac_dir
in $ac_dummy; do
6608 test -z "$ac_dir" && ac_dir
=.
6609 if test -f $ac_dir/file; then
6610 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6611 if test -n "$file_magic_test_file"; then
6612 case $deplibs_check_method in
6614 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6615 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6616 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6617 $EGREP "$file_magic_regex" > /dev
/null
; then
6622 *** Warning: the command libtool uses to detect shared libraries,
6623 *** $file_magic_cmd, produces output that libtool cannot recognize.
6624 *** The result is that libtool may fail to recognize shared libraries
6625 *** as such. This will affect the creation of libtool libraries that
6626 *** depend on shared libraries, but programs linked with such libtool
6627 *** libraries will work regardless of this problem. Nevertheless, you
6628 *** may want to report the problem to your system manager and/or to
6629 *** bug-libtool@gnu.org
6639 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6644 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6645 if test -n "$MAGIC_CMD"; then
6646 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6647 echo "${ECHO_T}$MAGIC_CMD" >&6
6649 echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6
6663 enable_win32_dll
=yes
6665 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6666 if test "${enable_libtool_lock+set}" = set; then
6667 enableval
="$enable_libtool_lock"
6670 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6673 # Check whether --with-pic or --without-pic was given.
6674 if test "${with_pic+set}" = set; then
6680 test -z "$pic_mode" && pic_mode
=default
6682 # Use C for the default configuration in the libtool script
6686 ac_cpp
='$CPP $CPPFLAGS'
6687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6692 # Source file extension for C test sources.
6695 # Object file extension for compiled C test sources.
6699 # Code to be used in simple compile tests
6700 lt_simple_compile_test_code
="int some_variable = 0;\n"
6702 # Code to be used in simple link tests
6703 lt_simple_link_test_code
='int main(){return(0);}\n'
6706 # If no C compiler was specified, use CC.
6709 # Allow CC to be a program name with arguments.
6713 # save warnings/boilerplate of simple test code
6714 ac_outfile
=conftest.
$ac_objext
6715 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
6716 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
6717 _lt_compiler_boilerplate
=`cat conftest.err`
6720 ac_outfile
=conftest.
$ac_objext
6721 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
6722 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
6723 _lt_linker_boilerplate
=`cat conftest.err`
6728 # Check for any special shared library compilation flags.
6731 if test "$GCC" = no
; then
6734 lt_prog_cc_shlib
='-belf'
6738 if test -n "$lt_prog_cc_shlib"; then
6739 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6740 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6741 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
6743 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6744 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6745 lt_cv_prog_cc_can_build_shared
=no
6751 # Check to make sure the static flag actually works.
6753 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6754 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6755 if test "${lt_prog_compiler_static_works+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 lt_prog_compiler_static_works
=no
6759 save_LDFLAGS
="$LDFLAGS"
6760 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
6761 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6762 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6763 # The compiler can only warn and ignore the option if not recognized
6764 # So say no if there are warnings
6765 if test -s conftest.err
; then
6766 # Append any errors to the config.log.
6767 cat conftest.err
1>&5
6768 $echo "X$_lt_linker_boilerplate" |
$Xsed > conftest.exp
6769 $SED '/^$/d' conftest.err
>conftest.er2
6770 if diff conftest.exp conftest.er2
>/dev
/null
; then
6771 lt_prog_compiler_static_works
=yes
6774 lt_prog_compiler_static_works
=yes
6778 LDFLAGS
="$save_LDFLAGS"
6781 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6782 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6784 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6787 lt_prog_compiler_static
=
6793 ## There is no encapsulation within the following macros, do not change
6794 ## the running order or otherwise move them around unless you know exactly
6795 ## what you are doing...
6797 lt_prog_compiler_no_builtin_flag
=
6799 if test "$GCC" = yes; then
6800 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6803 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6804 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6805 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 lt_cv_prog_compiler_rtti_exceptions
=no
6809 ac_outfile
=conftest.
$ac_objext
6810 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6811 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6812 # Insert the option either (1) after the last *FLAGS variable, or
6813 # (2) before a word containing "conftest.", or (3) at the end.
6814 # Note that $ac_compile itself does not contain backslashes and begins
6815 # with a dollar sign (not a hyphen), so the echo should work correctly.
6816 # The option is referenced via a variable to avoid confusing sed.
6817 lt_compile
=`echo "$ac_compile" | $SED \
6818 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6820 -e 's:$: $lt_compiler_flag:'`
6821 (eval echo "\"\$as_me:6821: $lt_compile\"" >&5)
6822 (eval "$lt_compile" 2>conftest.err
)
6824 cat conftest.err
>&5
6825 echo "$as_me:6825: \$? = $ac_status" >&5
6826 if (exit $ac_status) && test -s "$ac_outfile"; then
6827 # The compiler can only warn and ignore the option if not recognized
6828 # So say no if there are warnings other than the usual output.
6829 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
6830 $SED '/^$/d' conftest.err
>conftest.er2
6831 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
6832 lt_cv_prog_compiler_rtti_exceptions
=yes
6838 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6839 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6841 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6842 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6849 lt_prog_compiler_wl
=
6850 lt_prog_compiler_pic
=
6851 lt_prog_compiler_static
=
6853 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6854 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6856 if test "$GCC" = yes; then
6857 lt_prog_compiler_wl
='-Wl,'
6858 lt_prog_compiler_static
='-static'
6862 # All AIX code is PIC.
6863 if test "$host_cpu" = ia64
; then
6864 # AIX 5 now supports IA64 processor
6865 lt_prog_compiler_static
='-Bstatic'
6870 # FIXME: we need at least 68020 code to build shared libraries, but
6871 # adding the `-m68020' flag to GCC prevents building anything better,
6873 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6876 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6877 # PIC is the default for these OSes.
6880 mingw
* | pw32
* | os2
*)
6881 # This hack is so that the source file can tell whether it is being
6882 # built for inclusion in a dll (and should export symbols for example).
6883 lt_prog_compiler_pic
='-DDLL_EXPORT'
6886 darwin
* | rhapsody
*)
6887 # PIC is the default on this platform
6888 # Common symbols not allowed in MH_DYLIB files
6889 lt_prog_compiler_pic
='-fno-common'
6893 # Just because we use GCC doesn't mean we suddenly get shared libraries
6894 # on systems that don't support them.
6895 lt_prog_compiler_can_build_shared
=no
6900 if test -d /usr
/nec
; then
6901 lt_prog_compiler_pic
=-Kconform_pic
6906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6913 lt_prog_compiler_pic
='-fPIC'
6919 lt_prog_compiler_pic
='-fPIC'
6923 # PORTME Check for flag to pass linker flags through the system compiler.
6926 lt_prog_compiler_wl
='-Wl,'
6927 if test "$host_cpu" = ia64
; then
6928 # AIX 5 now supports IA64 processor
6929 lt_prog_compiler_static
='-Bstatic'
6931 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6935 # PIC is the default on this platform
6936 # Common symbols not allowed in MH_DYLIB files
6937 case $cc_basename in
6939 lt_prog_compiler_pic
='-qnocommon'
6940 lt_prog_compiler_wl
='-Wl,'
6945 mingw
* | pw32
* | os2
*)
6946 # This hack is so that the source file can tell whether it is being
6947 # built for inclusion in a dll (and should export symbols for example).
6948 lt_prog_compiler_pic
='-DDLL_EXPORT'
6951 hpux9
* | hpux10
* | hpux11
*)
6952 lt_prog_compiler_wl
='-Wl,'
6953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6960 lt_prog_compiler_pic
='+Z'
6963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6964 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6967 irix5
* | irix6
* | nonstopux
*)
6968 lt_prog_compiler_wl
='-Wl,'
6969 # PIC (with -KPIC) is the default.
6970 lt_prog_compiler_static
='-non_shared'
6974 lt_prog_compiler_pic
='-KPIC'
6975 lt_prog_compiler_static
='-Bstatic'
6979 case $cc_basename in
6981 lt_prog_compiler_wl
='-Wl,'
6982 lt_prog_compiler_pic
='-KPIC'
6983 lt_prog_compiler_static
='-static'
6985 pgcc
* | pgf77
* | pgf90
*)
6986 # Portland Group compilers (*not* the Pentium gcc compiler,
6987 # which looks to be a dead project)
6988 lt_prog_compiler_wl
='-Wl,'
6989 lt_prog_compiler_pic
='-fpic'
6990 lt_prog_compiler_static
='-static'
6993 lt_prog_compiler_wl
='-Wl,'
6994 # All Alpha code is PIC.
6995 lt_prog_compiler_static
='-non_shared'
7000 osf3
* | osf4
* | osf5
*)
7001 lt_prog_compiler_wl
='-Wl,'
7002 # All OSF/1 code is PIC.
7003 lt_prog_compiler_static
='-non_shared'
7007 lt_prog_compiler_pic
='-Kpic'
7008 lt_prog_compiler_static
='-dn'
7012 lt_prog_compiler_pic
='-KPIC'
7013 lt_prog_compiler_static
='-Bstatic'
7014 case $cc_basename in
7016 lt_prog_compiler_wl
='-Qoption ld ';;
7018 lt_prog_compiler_wl
='-Wl,';;
7023 lt_prog_compiler_wl
='-Qoption ld '
7024 lt_prog_compiler_pic
='-PIC'
7025 lt_prog_compiler_static
='-Bstatic'
7028 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
7029 lt_prog_compiler_wl
='-Wl,'
7030 lt_prog_compiler_pic
='-KPIC'
7031 lt_prog_compiler_static
='-Bstatic'
7035 if test -d /usr
/nec
;then
7036 lt_prog_compiler_pic
='-Kconform_pic'
7037 lt_prog_compiler_static
='-Bstatic'
7042 lt_prog_compiler_wl
='-Wl,'
7043 lt_prog_compiler_can_build_shared
=no
7047 lt_prog_compiler_pic
='-pic'
7048 lt_prog_compiler_static
='-Bstatic'
7052 lt_prog_compiler_can_build_shared
=no
7057 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7058 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7061 # Check to make sure the PIC flag actually works.
7063 if test -n "$lt_prog_compiler_pic"; then
7065 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7066 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7067 if test "${lt_prog_compiler_pic_works+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 lt_prog_compiler_pic_works
=no
7071 ac_outfile
=conftest.
$ac_objext
7072 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7073 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7074 # Insert the option either (1) after the last *FLAGS variable, or
7075 # (2) before a word containing "conftest.", or (3) at the end.
7076 # Note that $ac_compile itself does not contain backslashes and begins
7077 # with a dollar sign (not a hyphen), so the echo should work correctly.
7078 # The option is referenced via a variable to avoid confusing sed.
7079 lt_compile
=`echo "$ac_compile" | $SED \
7080 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7082 -e 's:$: $lt_compiler_flag:'`
7083 (eval echo "\"\$as_me:7083: $lt_compile\"" >&5)
7084 (eval "$lt_compile" 2>conftest.err
)
7086 cat conftest.err
>&5
7087 echo "$as_me:7087: \$? = $ac_status" >&5
7088 if (exit $ac_status) && test -s "$ac_outfile"; then
7089 # The compiler can only warn and ignore the option if not recognized
7090 # So say no if there are warnings other than the usual output.
7091 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
7092 $SED '/^$/d' conftest.err
>conftest.er2
7093 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7094 lt_prog_compiler_pic_works
=yes
7100 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7101 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7103 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7104 case $lt_prog_compiler_pic in
7106 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7109 lt_prog_compiler_pic
=
7110 lt_prog_compiler_can_build_shared
=no
7115 # For platforms which do not support PIC, -DPIC is meaningless:
7117 lt_prog_compiler_pic
=
7120 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7124 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7125 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7126 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 lt_cv_prog_compiler_c_o
=no
7130 $rm -r conftest
2>/dev
/null
7134 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7136 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7137 # Insert the option either (1) after the last *FLAGS variable, or
7138 # (2) before a word containing "conftest.", or (3) at the end.
7139 # Note that $ac_compile itself does not contain backslashes and begins
7140 # with a dollar sign (not a hyphen), so the echo should work correctly.
7141 lt_compile
=`echo "$ac_compile" | $SED \
7142 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7144 -e 's:$: $lt_compiler_flag:'`
7145 (eval echo "\"\$as_me:7145: $lt_compile\"" >&5)
7146 (eval "$lt_compile" 2>out
/conftest.err
)
7148 cat out
/conftest.err
>&5
7149 echo "$as_me:7149: \$? = $ac_status" >&5
7150 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7152 # The compiler can only warn and ignore the option if not recognized
7153 # So say no if there are warnings
7154 $echo "X$_lt_compiler_boilerplate" |
$Xsed > out
/conftest.exp
7155 $SED '/^$/d' out
/conftest.err
>out
/conftest.er2
7156 if test ! -s out
/conftest.err ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7157 lt_cv_prog_compiler_c_o
=yes
7162 # SGI C++ compiler will create directory out/ii_files/ for
7163 # template instantiation
7164 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7165 $rm out
/* && rmdir out
7171 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7172 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7175 hard_links
="nottested"
7176 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7177 # do not overwrite the value of need_locks provided by the user
7178 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7179 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7182 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7184 ln conftest.a conftest.b
2>&5 || hard_links
=no
7185 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7186 echo "$as_me:$LINENO: result: $hard_links" >&5
7187 echo "${ECHO_T}$hard_links" >&6
7188 if test "$hard_links" = no
; then
7189 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7190 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7197 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7198 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7201 allow_undefined_flag
=
7202 enable_shared_with_static_runtimes
=no
7204 archive_expsym_cmds
=
7205 old_archive_From_new_cmds
=
7206 old_archive_from_expsyms_cmds
=
7207 export_dynamic_flag_spec
=
7208 whole_archive_flag_spec
=
7209 thread_safe_flag_spec
=
7210 hardcode_libdir_flag_spec
=
7211 hardcode_libdir_flag_spec_ld
=
7212 hardcode_libdir_separator
=
7215 hardcode_shlibpath_var
=unsupported
7216 link_all_deplibs
=unknown
7217 hardcode_automatic
=no
7220 always_export_symbols
=no
7221 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7222 # include_expsyms should be a list of space-separated symbols to be *always*
7223 # included in the symbol list
7225 # exclude_expsyms can be an extended regexp of symbols to exclude
7226 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7227 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7228 # as well as any symbol that contains `d'.
7229 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7230 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7231 # platforms (ab)use it in PIC code, but their linkers get confused if
7232 # the symbol is explicitly referenced. Since portable code cannot
7233 # rely on this symbol name, it's probably fine to never include it in
7234 # preloaded symbol tables.
7235 extract_expsyms_cmds
=
7236 # Just being paranoid about ensuring that cc_basename is set.
7237 for cc_temp
in $compiler""; do
7239 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7240 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7245 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7248 cygwin
* | mingw
* | pw32
*)
7249 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7250 # When not using gcc, we currently assume that we are using
7251 # Microsoft Visual C++.
7252 if test "$GCC" != yes; then
7262 if test "$with_gnu_ld" = yes; then
7263 # If archive_cmds runs LD, not CC, wlarc should be empty
7266 # Set some defaults for GNU ld with shared library support. These
7267 # are reset later if shared libraries are not supported. Putting them
7268 # here allows them to be overridden if necessary.
7269 runpath_var
=LD_RUN_PATH
7270 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7271 export_dynamic_flag_spec
='${wl}--export-dynamic'
7272 # ancient GNU ld didn't support --whole-archive et. al.
7273 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7274 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7276 whole_archive_flag_spec
=
7278 supports_anon_versioning
=no
7279 case `$LD -v 2>/dev/null` in
7280 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7281 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7282 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7283 *\
2.11.
*) ;; # other 2.11 versions
7284 *) supports_anon_versioning
=yes ;;
7287 # See if GNU ld supports shared libraries.
7289 aix3
* | aix4
* | aix5
*)
7290 # On AIX/PPC, the GNU linker is very broken
7291 if test "$host_cpu" != ia64
; then
7295 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7296 *** to be unable to reliably create shared libraries on AIX.
7297 *** Therefore, libtool is disabling shared libraries support. If you
7298 *** really care for shared libraries, you may want to modify your PATH
7299 *** so that a non-GNU linker is found, and then restart.
7306 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)'
7307 hardcode_libdir_flag_spec
='-L$libdir'
7308 hardcode_minus_L
=yes
7310 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7311 # that the semantics of dynamic libraries on AmigaOS, at least up
7312 # to version 4, is to share data among multiple programs linked
7313 # with the same dynamic library. Since this doesn't match the
7314 # behavior of shared libraries on other platforms, we can't use
7320 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7321 allow_undefined_flag
=unsupported
7322 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7323 # support --undefined. This deserves some investigation. FIXME
7324 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7330 cygwin
* | mingw
* | pw32
*)
7331 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7332 # as there is no search path for DLLs.
7333 hardcode_libdir_flag_spec
='-L$libdir'
7334 allow_undefined_flag
=unsupported
7335 always_export_symbols
=no
7336 enable_shared_with_static_runtimes
=yes
7337 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7339 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7340 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7341 # If the export-symbols file already is a .def file (1st line
7342 # is EXPORTS), use it as is; otherwise, prepend...
7343 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7344 cp $export_symbols $output_objdir/$soname.def;
7346 echo EXPORTS > $output_objdir/$soname.def;
7347 cat $export_symbols >> $output_objdir/$soname.def;
7349 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7356 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7358 case $cc_basename,$host_cpu in
7359 pgcc
*) # Portland Group C compiler
7360 whole_archive_flag_spec
=
7362 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
7363 whole_archive_flag_spec
=
7364 tmp_addflag
=' -fpic -Mnomain' ;;
7365 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7366 tmp_addflag
=' -i_dynamic' ;;
7367 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7368 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7369 ifc
* | ifort
*) # Intel Fortran compiler
7370 tmp_addflag
=' -nofor_main' ;;
7372 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7374 if test $supports_anon_versioning = yes; then
7375 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7377 $echo "local: *; };" >> $output_objdir/$libname.ver~
7378 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7386 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7387 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7390 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7391 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7396 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7401 *** create shared libraries on Solaris systems. Therefore, libtool
7402 *** is disabling shared libraries support. We urge you to upgrade GNU
7403 *** binutils to release 2.9.1 or newer. Another option is to modify
7404 *** your PATH or compiler configuration so that the native linker is
7405 *** used, and then restart.
7408 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7409 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7410 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7417 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7420 hardcode_shlibpath_var
=no
7424 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7425 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7426 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7433 if test "$ld_shlibs" = no
; then
7435 hardcode_libdir_flag_spec
=
7436 export_dynamic_flag_spec
=
7437 whole_archive_flag_spec
=
7440 # PORTME fill in a description of your system's linker (not GNU ld)
7443 allow_undefined_flag
=unsupported
7444 always_export_symbols
=yes
7445 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'
7446 # Note: this linker hardcodes the directories in LIBPATH if there
7447 # are no directories specified by -L.
7448 hardcode_minus_L
=yes
7449 if test "$GCC" = yes && test -z "$link_static_flag"; then
7450 # Neither direct hardcoding nor static linking is supported with a
7452 hardcode_direct
=unsupported
7457 if test "$host_cpu" = ia64
; then
7458 # On IA64, the linker does run time linking by default, so we don't
7459 # have to do anything special.
7460 aix_use_runtimelinking
=no
7461 exp_sym_flag
='-Bexport'
7464 # If we're using GNU nm, then we don't want the "-C" option.
7465 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7466 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7467 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'
7469 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'
7471 aix_use_runtimelinking
=no
7473 # Test if we are trying to use run time linking or normal
7474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7475 # need to do runtime linking.
7476 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7477 for ld_flag
in $LDFLAGS; do
7478 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7479 aix_use_runtimelinking
=yes
7485 exp_sym_flag
='-bexport'
7486 no_entry_flag
='-bnoentry'
7489 # When large executables or shared objects are built, AIX ld can
7490 # have problems creating the table of contents. If linking a library
7491 # or program results in "error TOC overflow" add -mminimal-toc to
7492 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7493 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7497 hardcode_libdir_separator
=':'
7498 link_all_deplibs
=yes
7500 if test "$GCC" = yes; then
7501 case $host_os in aix4.
[012]|aix4.
[012].
*)
7502 # We only want to do this on AIX 4.2 and lower, the check
7503 # below for broken collect2 doesn't work under 4.3+
7504 collect2name
=`${CC} -print-prog-name=collect2`
7505 if test -f "$collect2name" && \
7506 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7508 # We have reworked collect2
7511 # We have old collect2
7512 hardcode_direct
=unsupported
7513 # It fails to find uninstalled libraries when the uninstalled
7514 # path is not listed in the libpath. Setting hardcode_minus_L
7515 # to unsupported forces relinking
7516 hardcode_minus_L
=yes
7517 hardcode_libdir_flag_spec
='-L$libdir'
7518 hardcode_libdir_separator
=
7521 shared_flag
='-shared'
7522 if test "$aix_use_runtimelinking" = yes; then
7523 shared_flag
="$shared_flag "'${wl}-G'
7527 if test "$host_cpu" = ia64
; then
7528 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7529 # chokes on -Wl,-G. The following line is correct:
7532 if test "$aix_use_runtimelinking" = yes; then
7533 shared_flag
='${wl}-G'
7535 shared_flag
='${wl}-bM:SRE'
7540 # It seems that -bexpall does not export symbols beginning with
7541 # underscore (_), so it is better to generate a list of symbols to export.
7542 always_export_symbols
=yes
7543 if test "$aix_use_runtimelinking" = yes; then
7544 # Warning - without using the other runtime loading flags (-brtl),
7545 # -berok will link without error, but may produce a broken library.
7546 allow_undefined_flag
='-berok'
7547 # Determine the default libpath from the value encoded in an empty executable.
7548 cat >conftest.
$ac_ext <<_ACEOF
7551 cat confdefs.h
>>conftest.
$ac_ext
7552 cat >>conftest.
$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7563 rm -f conftest.
$ac_objext conftest
$ac_exeext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565 (eval $ac_link) 2>conftest.er1
7567 grep -v '^ *+' conftest.er1
>conftest.err
7569 cat conftest.err
>&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try
='test -z "$ac_c_werror_flag"
7573 || test ! -s conftest.err'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; } &&
7579 { ac_try
='test -s conftest$ac_exeext'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7586 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7588 # Check for a 64-bit object if we didn't find anything.
7589 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; }
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.
$ac_ext >&5
7596 rm -f conftest.err conftest.
$ac_objext \
7597 conftest
$ac_exeext conftest.
$ac_ext
7598 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7600 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7601 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"
7603 if test "$host_cpu" = ia64; then
7604 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
7605 allow_undefined_flag="-z nodefs"
7606 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"
7608 # Determine the default libpath from the value encoded in an empty executable.
7609 cat >conftest.$ac_ext <<_ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>conftest.er1
7628 grep -v '^ *+' conftest.er1 >conftest.err
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest$ac_exeext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7645 (exit $ac_status); }; }; then
7647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7649 # Check for a 64-bit object if we didn't find anything.
7650 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; }
7653 echo "$as_me: failed program was
:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7657 rm -f conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
7661 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7662 # Warning - without using the other run time loading flags,
7663 # -berok will link without error, but may produce a broken library.
7664 no_undefined_flag=' ${wl}-bernotok'
7665 allow_undefined_flag=' ${wl}-berok'
7666 # -bexpall does not export symbols beginning with underscore (_)
7667 always_export_symbols=yes
7668 # Exported symbols can be pulled into shared objects from archives
7669 whole_archive_flag_spec=' '
7670 archive_cmds_need_lc=yes
7671 # This is similar to how AIX traditionally builds it's shared libraries.
7672 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'
7678 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)'
7679 hardcode_libdir_flag_spec
='-L$libdir'
7680 hardcode_minus_L
=yes
7681 # see comment about different semantics on the GNU ld section
7686 export_dynamic_flag_spec
=-rdynamic
7689 cygwin
* | mingw
* | pw32
*)
7690 # When not using gcc, we currently assume that we are using
7691 # Microsoft Visual C++.
7692 # hardcode_libdir_flag_spec is actually meaningless, as there is
7693 # no search path for DLLs.
7694 hardcode_libdir_flag_spec
=' '
7695 allow_undefined_flag
=unsupported
7696 # Tell ltmain to make .lib files, not .a files.
7698 # Tell ltmain to make .dll files, not .so files.
7700 # FIXME: Setting linknames here is a bad hack.
7701 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7702 # The linker will automatically build a .lib file if we build a DLL.
7703 old_archive_From_new_cmds
='true'
7704 # FIXME: Should let the user specify the lib program.
7705 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7706 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7707 enable_shared_with_static_runtimes
=yes
7710 darwin
* | rhapsody
*)
7712 rhapsody
* | darwin1.
[012])
7713 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
7716 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7717 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7719 case ${MACOSX_DEPLOYMENT_TARGET} in
7721 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7724 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
7730 archive_cmds_need_lc
=no
7732 hardcode_automatic
=yes
7733 hardcode_shlibpath_var
=unsupported
7734 whole_archive_flag_spec
=''
7735 link_all_deplibs
=yes
7736 if test "$GCC" = yes ; then
7737 output_verbose_link_cmd
='echo'
7738 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7739 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7741 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}'
7742 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}'
7744 case $cc_basename in
7746 output_verbose_link_cmd
='echo'
7747 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7748 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7750 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}'
7751 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}'
7761 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7762 hardcode_libdir_flag_spec
='-L$libdir'
7763 hardcode_shlibpath_var
=no
7770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7771 # support. Future versions do this automatically, but an explicit c++rt0.o
7772 # does not break anything, and helps significantly (at the cost of a little
7775 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7776 hardcode_libdir_flag_spec
='-R$libdir'
7778 hardcode_shlibpath_var
=no
7781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7783 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7785 hardcode_minus_L
=yes
7786 hardcode_shlibpath_var
=no
7789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7790 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
7791 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7792 hardcode_libdir_flag_spec
='-R$libdir'
7794 hardcode_shlibpath_var
=no
7798 if test "$GCC" = yes; then
7799 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'
7801 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'
7803 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7804 hardcode_libdir_separator
=:
7807 # hardcode_minus_L: Not really in the search PATH,
7808 # but as the default location of the library.
7809 hardcode_minus_L
=yes
7810 export_dynamic_flag_spec
='${wl}-E'
7814 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7817 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7820 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7826 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7829 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7833 if test "$with_gnu_ld" = no
; then
7836 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7837 hardcode_libdir_flag_spec_ld
='+b $libdir'
7838 hardcode_libdir_separator
=:
7840 hardcode_shlibpath_var
=no
7843 hardcode_libdir_flag_spec
='-L$libdir'
7845 hardcode_shlibpath_var
=no
7847 # hardcode_minus_L: Not really in the search PATH,
7848 # but as the default location of the library.
7849 hardcode_minus_L
=yes
7852 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7853 hardcode_libdir_separator
=:
7855 export_dynamic_flag_spec
='${wl}-E'
7857 # hardcode_minus_L: Not really in the search PATH,
7858 # but as the default location of the library.
7859 hardcode_minus_L
=yes
7865 irix5
* | irix6
* | nonstopux
*)
7866 if test "$GCC" = yes; then
7867 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'
7869 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'
7870 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7872 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7873 hardcode_libdir_separator
=:
7874 link_all_deplibs
=yes
7878 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7879 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7881 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7883 hardcode_libdir_flag_spec
='-R$libdir'
7885 hardcode_shlibpath_var
=no
7889 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7892 hardcode_libdir_separator
=:
7893 hardcode_shlibpath_var
=no
7898 hardcode_shlibpath_var
=no
7899 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7900 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7901 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7902 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7903 export_dynamic_flag_spec
='${wl}-E'
7906 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7907 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7908 hardcode_libdir_flag_spec
='-R$libdir'
7911 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7912 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7919 hardcode_libdir_flag_spec
='-L$libdir'
7920 hardcode_minus_L
=yes
7921 allow_undefined_flag
=unsupported
7922 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'
7923 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7927 if test "$GCC" = yes; then
7928 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7929 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'
7931 allow_undefined_flag
=' -expect_unresolved \*'
7932 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'
7934 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7935 hardcode_libdir_separator
=:
7938 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7939 if test "$GCC" = yes; then
7940 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7941 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'
7942 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7944 allow_undefined_flag
=' -expect_unresolved \*'
7945 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'
7946 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7947 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7949 # Both c and cxx compiler support -rpath directly
7950 hardcode_libdir_flag_spec
='-rpath $libdir'
7952 hardcode_libdir_separator
=:
7956 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957 hardcode_shlibpath_var
=no
7958 export_dynamic_flag_spec
='${wl}-Bexport'
7959 runpath_var
=LD_RUN_PATH
7960 hardcode_runpath_var
=yes
7964 no_undefined_flag
=' -z text'
7965 if test "$GCC" = yes; then
7967 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7968 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7969 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7972 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7973 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7974 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7976 hardcode_libdir_flag_spec
='-R$libdir'
7977 hardcode_shlibpath_var
=no
7979 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7981 # The compiler driver will combine linker options so we
7982 # cannot just pass the convience library names through
7983 # without $wl, iff we do not link with $LD.
7984 # Luckily, gcc supports the same syntax we need for Sun Studio.
7985 # Supported since Solaris 2.6 (maybe 2.5.1?)
7988 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
7990 whole_archive_flag_spec
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7993 link_all_deplibs
=yes
7997 if test "x$host_vendor" = xsequent
; then
7998 # Use $CC to link under sequent, because it throws in some extra .o
7999 # files that make .init and .fini sections work.
8000 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8002 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8004 hardcode_libdir_flag_spec
='-L$libdir'
8006 hardcode_minus_L
=yes
8007 hardcode_shlibpath_var
=no
8011 case $host_vendor in
8013 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8014 hardcode_direct
=yes # is this really true???
8017 ## LD is ld it makes a PLAMLIB
8018 ## CC just makes a GrossModule.
8019 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8020 reload_cmds
='$CC -r -o $output$reload_objs'
8024 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8025 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8028 runpath_var
='LD_RUN_PATH'
8029 hardcode_shlibpath_var
=no
8033 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8034 hardcode_shlibpath_var
=no
8035 export_dynamic_flag_spec
='-Bexport'
8039 if test -d /usr
/nec
; then
8040 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8041 hardcode_shlibpath_var
=no
8042 runpath_var
=LD_RUN_PATH
8043 hardcode_runpath_var
=yes
8049 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8052 hardcode_shlibpath_var
=no
8053 hardcode_runpath_var
=yes
8054 runpath_var
=LD_RUN_PATH
8057 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
8058 no_undefined_flag
='${wl}-z ${wl}text'
8059 if test "$GCC" = yes; then
8060 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8062 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8064 runpath_var
='LD_RUN_PATH'
8065 hardcode_shlibpath_var
=no
8069 no_undefined_flag
=' -z text'
8070 # $CC -shared without GNU ld will not create a library from C++
8071 # object files and a static libstdc++, better avoid it by now
8072 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8073 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8074 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8075 hardcode_libdir_flag_spec
=
8076 hardcode_shlibpath_var
=no
8077 runpath_var
='LD_RUN_PATH'
8081 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8082 hardcode_libdir_flag_spec
='-L$libdir'
8083 hardcode_shlibpath_var
=no
8092 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8093 echo "${ECHO_T}$ld_shlibs" >&6
8094 test "$ld_shlibs" = no
&& can_build_shared
=no
8096 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
8097 if test "$GCC" = yes; then
8098 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8102 # Do we need to explicitly link libc?
8104 case "x$archive_cmds_need_lc" in
8106 # Assume -lc should be added
8107 archive_cmds_need_lc
=yes
8109 if test "$enable_shared" = yes && test "$GCC" = yes; then
8110 case $archive_cmds in
8112 # FIXME: we may have to deal with multi-command sequences.
8115 # Test whether the compiler implicitly links with -lc since on some
8116 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8117 # to ld, don't add -lc before -lgcc.
8118 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8119 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8121 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8124 (eval $ac_compile) 2>&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } 2>conftest.err
; then
8130 libobjs
=conftest.
$ac_objext
8132 wl
=$lt_prog_compiler_wl
8138 lt_save_allow_undefined_flag
=$allow_undefined_flag
8139 allow_undefined_flag
=
8140 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8141 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }
8146 archive_cmds_need_lc
=no
8148 archive_cmds_need_lc
=yes
8150 allow_undefined_flag
=$lt_save_allow_undefined_flag
8152 cat conftest.err
1>&5
8155 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8156 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8163 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8164 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8166 libname_spec
='lib$name'
8174 shlibpath_overrides_runpath
=unknown
8176 dynamic_linker
="$host_os ld.so"
8177 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8178 if test "$GCC" = yes; then
8179 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8180 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8181 # if the path contains ";" then we assume it to be the separator
8182 # otherwise default to the standard path separator (i.e. ":") - it is
8183 # assumed that no part of a normal pathname contains ";" but that should
8184 # okay in the real world where ";" in dirpaths is itself problematic.
8185 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8187 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8190 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8192 need_lib_prefix
=unknown
8193 hardcode_into_libs
=no
8195 # when you set need_version to no, make sure it does not cause -set_version
8196 # flags to be left without arguments
8197 need_version
=unknown
8202 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8203 shlibpath_var
=LIBPATH
8205 # AIX 3 has no versioning support, so we append a major version to the name.
8206 soname_spec
='${libname}${release}${shared_ext}$major'
8213 hardcode_into_libs
=yes
8214 if test "$host_cpu" = ia64
; then
8215 # AIX 5 supports IA64
8216 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8217 shlibpath_var
=LD_LIBRARY_PATH
8219 # With GCC up to 2.95.x, collect2 would create an import file
8220 # for dependence libraries. The import file would start with
8221 # the line `#! .'. This would cause the generated library to
8222 # depend on `.', always an invalid library. This was fixed in
8223 # development snapshots of GCC prior to 3.0.
8225 aix4 | aix4.
[01] | aix4.
[01].
*)
8226 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8228 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8235 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8236 # soname into executable. Probably we can add versioning support to
8237 # collect2, so additional links can be useful in future.
8238 if test "$aix_use_runtimelinking" = yes; then
8239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8240 # instead of lib<name>.a to let people know that these are not
8241 # typical AIX shared libraries.
8242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8244 # We preserve .a as extension for shared libraries through AIX4.2
8245 # and later when we are not doing run time linking.
8246 library_names_spec
='${libname}${release}.a $libname.a'
8247 soname_spec
='${libname}${release}${shared_ext}$major'
8249 shlibpath_var
=LIBPATH
8254 library_names_spec
='$libname.ixlibrary $libname.a'
8255 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8256 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'
8260 library_names_spec
='${libname}${shared_ext}'
8261 dynamic_linker
="$host_os ld.so"
8262 shlibpath_var
=LIBRARY_PATH
8268 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8269 soname_spec
='${libname}${release}${shared_ext}$major'
8270 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8271 shlibpath_var
=LD_LIBRARY_PATH
8272 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8273 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8274 # the default ld.so.conf also contains /usr/contrib/lib and
8275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8276 # libtool to hard-code these into programs
8279 cygwin
* | mingw
* | pw32
*)
8280 version_type
=windows
8285 case $GCC,$host_os in
8286 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8287 library_names_spec
='$libname.dll.a'
8288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8289 postinstall_cmds
='base_file=`basename \${file}`~
8290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8291 dldir=$destdir/`dirname \$dlpath`~
8292 test -d \$dldir || mkdir -p \$dldir~
8293 $install_prog $dir/$dlname \$dldir/$dlname'
8294 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8295 dlpath=$dir/\$dldll~
8297 shlibpath_overrides_runpath
=yes
8301 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8302 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8303 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8306 # MinGW DLLs use traditional 'lib' prefix
8307 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8308 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8309 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8310 # It is most probably a Windows format PATH printed by
8311 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8312 # path with ; separators, and with drive letters. We can handle the
8313 # drive letters (cygwin fileutils understands them), so leave them,
8314 # especially as we might pass files found there to a mingw objdump,
8315 # which wouldn't understand a cygwinified path. Ahh.
8316 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8318 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8322 # pw32 DLLs use 'pw' prefix rather than 'lib'
8323 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8329 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8332 dynamic_linker
='Win32 ld.exe'
8333 # FIXME: first we should search . and the directory the executable is in
8337 darwin
* | rhapsody
*)
8338 dynamic_linker
="$host_os dyld"
8342 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8343 soname_spec
='${libname}${release}${major}$shared_ext'
8344 shlibpath_overrides_runpath
=yes
8345 shlibpath_var
=DYLD_LIBRARY_PATH
8346 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
8347 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8348 if test "$GCC" = yes; then
8349 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"`
8351 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8353 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8360 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8361 soname_spec
='${libname}${release}${shared_ext}$major'
8362 shlibpath_var
=LD_LIBRARY_PATH
8373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8374 soname_spec
='${libname}${release}${shared_ext}$major'
8375 shlibpath_var
=LD_LIBRARY_PATH
8376 shlibpath_overrides_runpath
=no
8377 hardcode_into_libs
=yes
8378 dynamic_linker
='GNU ld.so'
8381 freebsd
* | dragonfly
*)
8382 # DragonFly does not have aout. When/if they implement a new
8383 # versioning mechanism, adjust this.
8384 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8385 version_type
=freebsd-
$objformat
8386 case $version_type in
8388 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8393 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8397 shlibpath_var
=LD_LIBRARY_PATH
8400 shlibpath_overrides_runpath
=yes
8402 freebsd3.
[01]* | freebsdelf3.
[01]*)
8403 shlibpath_overrides_runpath
=yes
8404 hardcode_into_libs
=yes
8407 shlibpath_overrides_runpath
=no
8408 hardcode_into_libs
=yes
8417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8418 soname_spec
='${libname}${release}${shared_ext}$major'
8419 shlibpath_var
=LD_LIBRARY_PATH
8420 hardcode_into_libs
=yes
8423 hpux9
* | hpux10
* | hpux11
*)
8424 # Give a soname corresponding to the major version so that dld.sl refuses to
8425 # link against other versions.
8432 hardcode_into_libs
=yes
8433 dynamic_linker
="$host_os dld.so"
8434 shlibpath_var
=LD_LIBRARY_PATH
8435 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8437 soname_spec
='${libname}${release}${shared_ext}$major'
8438 if test "X$HPUX_IA64_MODE" = X32
; then
8439 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8441 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8443 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8447 hardcode_into_libs
=yes
8448 dynamic_linker
="$host_os dld.sl"
8449 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8450 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8452 soname_spec
='${libname}${release}${shared_ext}$major'
8453 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8454 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8458 dynamic_linker
="$host_os dld.sl"
8459 shlibpath_var
=SHLIB_PATH
8460 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8462 soname_spec
='${libname}${release}${shared_ext}$major'
8465 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8466 postinstall_cmds
='chmod 555 $lib'
8469 irix5
* | irix6
* | nonstopux
*)
8471 nonstopux
*) version_type
=nonstopux
;;
8473 if test "$lt_cv_prog_gnu_ld" = yes; then
8481 soname_spec
='${libname}${release}${shared_ext}$major'
8482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8484 irix5
* | nonstopux
*)
8488 case $LD in # libtool.m4 will add one of these switches to LD
8489 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8490 libsuff
= shlibsuff
= libmagic
=32-bit;;
8491 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8492 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8493 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8494 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8495 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8499 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8500 shlibpath_overrides_runpath
=no
8501 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8502 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8503 hardcode_into_libs
=yes
8506 # No shared lib support for Linux oldld, aout, or coff.
8507 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8511 # This must be Linux ELF.
8516 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8517 soname_spec
='${libname}${release}${shared_ext}$major'
8518 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8519 shlibpath_var
=LD_LIBRARY_PATH
8520 shlibpath_overrides_runpath
=no
8521 # This implies no fast_install, which is unacceptable.
8522 # Some rework will be needed to allow for fast_install
8523 # before this can be enabled.
8524 hardcode_into_libs
=yes
8526 # find out which ABI we are using
8529 x86_64
*|s390x
*|powerpc64
*)
8530 echo '#line 8530 "configure"' > conftest.
$ac_ext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; then
8536 case `/usr/bin/file conftest.$ac_objext` in
8539 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8547 # Append ld.so.conf contents to the search path
8548 if test -f /etc
/ld.so.conf
; then
8549 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8550 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8553 # We used to test for /lib/ld.so.1 and disable shared libraries on
8554 # powerpc, because MkLinux only supported shared libraries with the
8555 # GNU dynamic linker. Since this was broken with cross compilers,
8556 # most powerpc-linux boxes support dynamic linking these days and
8557 # people can always --disable-shared, the test was removed, and we
8558 # assume the GNU/Linux dynamic linker is in use.
8559 dynamic_linker
='GNU/Linux ld.so'
8566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8567 soname_spec
='${libname}${release}${shared_ext}$major'
8568 shlibpath_var
=LD_LIBRARY_PATH
8569 shlibpath_overrides_runpath
=no
8570 hardcode_into_libs
=yes
8571 dynamic_linker
='GNU ld.so'
8578 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8580 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8581 dynamic_linker
='NetBSD (a.out) ld.so'
8583 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8584 soname_spec
='${libname}${release}${shared_ext}$major'
8585 dynamic_linker
='NetBSD ld.elf_so'
8587 shlibpath_var
=LD_LIBRARY_PATH
8588 shlibpath_overrides_runpath
=yes
8589 hardcode_into_libs
=yes
8594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595 shlibpath_var
=LD_LIBRARY_PATH
8596 shlibpath_overrides_runpath
=yes
8603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604 soname_spec
='${libname}${release}${shared_ext}$major'
8605 shlibpath_var
=LD_LIBRARY_PATH
8606 shlibpath_overrides_runpath
=yes
8613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8614 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8615 shlibpath_var
=LD_LIBRARY_PATH
8616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8618 openbsd2.
[89] | openbsd2.
[89].
*)
8619 shlibpath_overrides_runpath
=no
8622 shlibpath_overrides_runpath
=yes
8626 shlibpath_overrides_runpath
=yes
8631 libname_spec
='$name'
8634 library_names_spec
='$libname${shared_ext} $libname.a'
8635 dynamic_linker
='OS/2 ld.exe'
8636 shlibpath_var
=LIBPATH
8639 osf3
* | osf4
* | osf5
*)
8643 soname_spec
='${libname}${release}${shared_ext}$major'
8644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8645 shlibpath_var
=LD_LIBRARY_PATH
8646 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8647 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8652 soname_spec
='${libname}${release}${shared_ext}$major'
8653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8654 shlibpath_var
=LD_LIBRARY_PATH
8661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8662 soname_spec
='${libname}${release}${shared_ext}$major'
8663 shlibpath_var
=LD_LIBRARY_PATH
8664 shlibpath_overrides_runpath
=yes
8665 hardcode_into_libs
=yes
8666 # ldd complains unless libraries are executable
8667 postinstall_cmds
='chmod +x $lib'
8672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8673 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8674 shlibpath_var
=LD_LIBRARY_PATH
8675 shlibpath_overrides_runpath
=yes
8676 if test "$with_gnu_ld" = yes; then
8682 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685 soname_spec
='${libname}${release}${shared_ext}$major'
8686 shlibpath_var
=LD_LIBRARY_PATH
8687 case $host_vendor in
8689 shlibpath_overrides_runpath
=no
8691 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8692 runpath_var
=LD_RUN_PATH
8700 shlibpath_overrides_runpath
=no
8701 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8707 if test -d /usr
/nec
;then
8709 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8710 soname_spec
='$libname${shared_ext}.$major'
8711 shlibpath_var
=LD_LIBRARY_PATH
8717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8718 soname_spec
='${libname}${release}${shared_ext}$major'
8719 shlibpath_var
=LD_LIBRARY_PATH
8726 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8727 echo "${ECHO_T}$dynamic_linker" >&6
8728 test "$dynamic_linker" = no
&& can_build_shared
=no
8730 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8731 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8733 if test -n "$hardcode_libdir_flag_spec" || \
8734 test -n "$runpath_var" || \
8735 test "X$hardcode_automatic" = "Xyes" ; then
8737 # We can hardcode non-existant directories.
8738 if test "$hardcode_direct" != no
&&
8739 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8740 # have to relink, otherwise we might link with an installed library
8741 # when we should be linking with a yet-to-be-installed one
8742 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8743 test "$hardcode_minus_L" != no
; then
8744 # Linking always hardcodes the temporary library directory.
8745 hardcode_action
=relink
8747 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8748 hardcode_action
=immediate
8751 # We cannot hardcode anything, or else we can only hardcode existing
8753 hardcode_action
=unsupported
8755 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8756 echo "${ECHO_T}$hardcode_action" >&6
8758 if test "$hardcode_action" = relink
; then
8759 # Fast installation is not supported
8760 enable_fast_install
=no
8761 elif test "$shlibpath_overrides_runpath" = yes ||
8762 test "$enable_shared" = no
; then
8763 # Fast installation is not necessary
8764 enable_fast_install
=needless
8769 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8770 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8771 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8772 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8773 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8774 echo "$as_me:$LINENO: result: yes" >&5
8775 echo "${ECHO_T}yes" >&6
8777 # FIXME - insert some real tests, host_os isn't really good enough
8780 if test -n "$STRIP" ; then
8781 striplib
="$STRIP -x"
8782 echo "$as_me:$LINENO: result: yes" >&5
8783 echo "${ECHO_T}yes" >&6
8785 echo "$as_me:$LINENO: result: no" >&5
8786 echo "${ECHO_T}no" >&6
8790 echo "$as_me:$LINENO: result: no" >&5
8791 echo "${ECHO_T}no" >&6
8796 if test "x$enable_dlopen" != xyes
; then
8797 enable_dlopen
=unknown
8798 enable_dlopen_self
=unknown
8799 enable_dlopen_self_static
=unknown
8806 lt_cv_dlopen
="load_add_on"
8808 lt_cv_dlopen_self
=yes
8812 lt_cv_dlopen
="LoadLibrary"
8817 lt_cv_dlopen
="dlopen"
8822 # if libdl is installed we need to link against it
8823 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8824 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8825 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 ac_check_lib_save_LIBS
=$LIBS
8830 cat >conftest.
$ac_ext <<_ACEOF
8833 cat confdefs.h
>>conftest.
$ac_ext
8834 cat >>conftest.
$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8837 /* Override any gcc2 internal prototype to avoid an error. */
8841 /* We use char because int might match the return type of a gcc2
8842 builtin and then its argument prototype would still apply. */
8852 rm -f conftest.
$ac_objext conftest
$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>conftest.er1
8856 grep -v '^ *+' conftest.er1
>conftest.err
8858 cat conftest.err
>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try
='test -z "$ac_c_werror_flag"
8862 || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try
='test -s conftest$ac_exeext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_cv_lib_dl_dlopen
=yes
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.
$ac_ext >&5
8879 ac_cv_lib_dl_dlopen
=no
8881 rm -f conftest.err conftest.
$ac_objext \
8882 conftest
$ac_exeext conftest.
$ac_ext
8883 LIBS
=$ac_check_lib_save_LIBS
8885 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8886 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8887 if test $ac_cv_lib_dl_dlopen = yes; then
8888 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8893 lt_cv_dlopen_self
=yes
8900 echo "$as_me:$LINENO: checking for shl_load" >&5
8901 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8902 if test "${ac_cv_func_shl_load+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 shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8913 #define shl_load innocuous_shl_load
8915 /* System header to define __stub macros and hopefully few prototypes,
8916 which can conflict with char shl_load (); 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_shl_load) || defined (__stub___shl_load)
8942 char (*f) () = shl_load;
8951 return f != shl_load;
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_shl_load
=yes
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.
$ac_ext >&5
8983 ac_cv_func_shl_load
=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_shl_load" >&5
8989 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8990 if test $ac_cv_func_shl_load = yes; then
8991 lt_cv_dlopen
="shl_load"
8993 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8994 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8995 if test "${ac_cv_lib_dld_shl_load+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_dld_shl_load
=yes
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.
$ac_ext >&5
9049 ac_cv_lib_dld_shl_load
=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_dld_shl_load" >&5
9056 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9057 if test $ac_cv_lib_dld_shl_load = yes; then
9058 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
9060 echo "$as_me:$LINENO: checking for dlopen" >&5
9061 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9062 if test "${ac_cv_func_dlopen+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 cat >conftest.
$ac_ext <<_ACEOF
9068 cat confdefs.h
>>conftest.
$ac_ext
9069 cat >>conftest.
$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9071 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9073 #define dlopen innocuous_dlopen
9075 /* System header to define __stub macros and hopefully few prototypes,
9076 which can conflict with char dlopen (); below.
9077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9078 <limits.h> exists even on freestanding compilers. */
9081 # include <limits.h>
9083 # include <assert.h>
9088 /* Override any gcc2 internal prototype to avoid an error. */
9093 /* We use char because int might match the return type of a gcc2
9094 builtin and then its argument prototype would still apply. */
9096 /* The GNU C library defines this for functions which it implements
9097 to always fail with ENOSYS. Some functions are actually named
9098 something starting with __ and the normal name is an alias. */
9099 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9102 char (*f) () = dlopen;
9116 rm -f conftest.
$ac_objext conftest
$ac_exeext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>conftest.er1
9120 grep -v '^ *+' conftest.er1
>conftest.err
9122 cat conftest.err
>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try
='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try
='test -s conftest$ac_exeext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_cv_func_dlopen
=yes
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.
$ac_ext >&5
9143 ac_cv_func_dlopen
=no
9145 rm -f conftest.err conftest.
$ac_objext \
9146 conftest
$ac_exeext conftest.
$ac_ext
9148 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9149 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9150 if test $ac_cv_func_dlopen = yes; then
9151 lt_cv_dlopen
="dlopen"
9153 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9154 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9155 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 ac_check_lib_save_LIBS
=$LIBS
9160 cat >conftest.
$ac_ext <<_ACEOF
9163 cat confdefs.h
>>conftest.
$ac_ext
9164 cat >>conftest.
$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9167 /* Override any gcc2 internal prototype to avoid an error. */
9171 /* We use char because int might match the return type of a gcc2
9172 builtin and then its argument prototype would still apply. */
9182 rm -f conftest.
$ac_objext conftest
$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>conftest.er1
9186 grep -v '^ *+' conftest.er1
>conftest.err
9188 cat conftest.err
>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try
='test -z "$ac_c_werror_flag"
9192 || test ! -s conftest.err'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; } &&
9198 { ac_try
='test -s conftest$ac_exeext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_lib_dl_dlopen
=yes
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.
$ac_ext >&5
9209 ac_cv_lib_dl_dlopen
=no
9211 rm -f conftest.err conftest.
$ac_objext \
9212 conftest
$ac_exeext conftest.
$ac_ext
9213 LIBS
=$ac_check_lib_save_LIBS
9215 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9216 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9217 if test $ac_cv_lib_dl_dlopen = yes; then
9218 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
9220 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9221 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9222 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 ac_check_lib_save_LIBS
=$LIBS
9227 cat >conftest.
$ac_ext <<_ACEOF
9230 cat confdefs.h
>>conftest.
$ac_ext
9231 cat >>conftest.
$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9234 /* Override any gcc2 internal prototype to avoid an error. */
9238 /* We use char because int might match the return type of a gcc2
9239 builtin and then its argument prototype would still apply. */
9249 rm -f conftest.
$ac_objext conftest
$ac_exeext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251 (eval $ac_link) 2>conftest.er1
9253 grep -v '^ *+' conftest.er1
>conftest.err
9255 cat conftest.err
>&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try
='test -z "$ac_c_werror_flag"
9259 || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try
='test -s conftest$ac_exeext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 ac_cv_lib_svld_dlopen
=yes
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.
$ac_ext >&5
9276 ac_cv_lib_svld_dlopen
=no
9278 rm -f conftest.err conftest.
$ac_objext \
9279 conftest
$ac_exeext conftest.
$ac_ext
9280 LIBS
=$ac_check_lib_save_LIBS
9282 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9283 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9284 if test $ac_cv_lib_svld_dlopen = yes; then
9285 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9287 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9288 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9289 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 ac_check_lib_save_LIBS
=$LIBS
9294 cat >conftest.
$ac_ext <<_ACEOF
9297 cat confdefs.h
>>conftest.
$ac_ext
9298 cat >>conftest.
$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9301 /* Override any gcc2 internal prototype to avoid an error. */
9305 /* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */
9316 rm -f conftest.
$ac_objext conftest
$ac_exeext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318 (eval $ac_link) 2>conftest.er1
9320 grep -v '^ *+' conftest.er1
>conftest.err
9322 cat conftest.err
>&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try
='test -z "$ac_c_werror_flag"
9326 || test ! -s conftest.err'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; } &&
9332 { ac_try
='test -s conftest$ac_exeext'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; }; then
9338 ac_cv_lib_dld_dld_link
=yes
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.
$ac_ext >&5
9343 ac_cv_lib_dld_dld_link
=no
9345 rm -f conftest.err conftest.
$ac_objext \
9346 conftest
$ac_exeext conftest.
$ac_ext
9347 LIBS
=$ac_check_lib_save_LIBS
9349 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9350 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9351 if test $ac_cv_lib_dld_dld_link = yes; then
9352 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
9373 if test "x$lt_cv_dlopen" != xno
; then
9379 case $lt_cv_dlopen in
9381 save_CPPFLAGS
="$CPPFLAGS"
9382 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
9384 save_LDFLAGS
="$LDFLAGS"
9385 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
9388 LIBS
="$lt_cv_dlopen_libs $LIBS"
9390 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9391 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9392 if test "${lt_cv_dlopen_self+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 if test "$cross_compiling" = yes; then :
9396 lt_cv_dlopen_self
=cross
9398 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9399 lt_status
=$lt_dlunknown
9400 cat > conftest.
$ac_ext <<EOF
9401 #line 9401 "configure"
9402 #include "confdefs.h"
9411 # define LT_DLGLOBAL RTLD_GLOBAL
9414 # define LT_DLGLOBAL DL_GLOBAL
9416 # define LT_DLGLOBAL 0
9420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9421 find out it does not work in some platform. */
9422 #ifndef LT_DLLAZY_OR_NOW
9424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9427 # define LT_DLLAZY_OR_NOW DL_LAZY
9430 # define LT_DLLAZY_OR_NOW RTLD_NOW
9433 # define LT_DLLAZY_OR_NOW DL_NOW
9435 # define LT_DLLAZY_OR_NOW 0
9443 extern "C" void exit (int);
9446 void fnord() { int i=42;}
9449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9450 int status = $lt_dlunknown;
9454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9455 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9456 /* dlclose (self); */
9462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463 (eval $ac_link) 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9467 (.
/conftest
; exit; ) 2>/dev
/null
9470 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
9471 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
9472 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
9475 # compilation failed
9476 lt_cv_dlopen_self
=no
9483 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9484 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9486 if test "x$lt_cv_dlopen_self" = xyes
; then
9487 LDFLAGS
="$LDFLAGS $link_static_flag"
9488 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9489 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9490 if test "${lt_cv_dlopen_self_static+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 if test "$cross_compiling" = yes; then :
9494 lt_cv_dlopen_self_static
=cross
9496 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9497 lt_status
=$lt_dlunknown
9498 cat > conftest.
$ac_ext <<EOF
9499 #line 9499 "configure"
9500 #include "confdefs.h"
9509 # define LT_DLGLOBAL RTLD_GLOBAL
9512 # define LT_DLGLOBAL DL_GLOBAL
9514 # define LT_DLGLOBAL 0
9518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9519 find out it does not work in some platform. */
9520 #ifndef LT_DLLAZY_OR_NOW
9522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9525 # define LT_DLLAZY_OR_NOW DL_LAZY
9528 # define LT_DLLAZY_OR_NOW RTLD_NOW
9531 # define LT_DLLAZY_OR_NOW DL_NOW
9533 # define LT_DLLAZY_OR_NOW 0
9541 extern "C" void exit (int);
9544 void fnord() { int i=42;}
9547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9548 int status = $lt_dlunknown;
9552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9553 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9554 /* dlclose (self); */
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9565 (.
/conftest
; exit; ) 2>/dev
/null
9568 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
9569 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
9570 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
9573 # compilation failed
9574 lt_cv_dlopen_self_static
=no
9581 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9582 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9585 CPPFLAGS
="$save_CPPFLAGS"
9586 LDFLAGS
="$save_LDFLAGS"
9591 case $lt_cv_dlopen_self in
9592 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
9593 *) enable_dlopen_self
=unknown
;;
9596 case $lt_cv_dlopen_self_static in
9597 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
9598 *) enable_dlopen_self_static
=unknown
;;
9603 # Report which librarie types wil actually be built
9604 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9605 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9606 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9607 echo "${ECHO_T}$can_build_shared" >&6
9609 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9610 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9611 test "$can_build_shared" = "no" && enable_shared
=no
9613 # On AIX, shared libraries and static libraries use the same namespace, and
9614 # are all built from PIC.
9617 test "$enable_shared" = yes && enable_static
=no
9618 if test -n "$RANLIB"; then
9619 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
9620 postinstall_cmds
='$RANLIB $lib'
9625 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
9626 test "$enable_shared" = yes && enable_static
=no
9630 echo "$as_me:$LINENO: result: $enable_shared" >&5
9631 echo "${ECHO_T}$enable_shared" >&6
9633 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9634 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9635 # Make sure either enable_shared or enable_static is yes.
9636 test "$enable_shared" = yes || enable_static
=yes
9637 echo "$as_me:$LINENO: result: $enable_static" >&5
9638 echo "${ECHO_T}$enable_static" >&6
9640 # The else clause should only fire when bootstrapping the
9641 # libtool distribution, otherwise you forgot to ship ltmain.sh
9642 # with your package, and you will get complaints that there are
9643 # no rules to generate ltmain.sh.
9644 if test -f "$ltmain"; then
9645 # See if we are running on zsh, and set the options which allow our commands through
9646 # without removal of \ escapes.
9647 if test -n "${ZSH_VERSION+set}" ; then
9648 setopt NO_GLOB_SUBST
9650 # Now quote all the things that may contain metacharacters while being
9651 # careful not to overquote the AC_SUBSTed values. We take copies of the
9652 # variables and quote the copies for generation of the libtool script.
9653 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9655 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9656 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9657 deplibs_check_method reload_flag reload_cmds need_locks \
9658 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9659 lt_cv_sys_global_symbol_to_c_name_address \
9660 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9661 old_postinstall_cmds old_postuninstall_cmds \
9665 lt_prog_compiler_wl \
9666 lt_prog_compiler_pic \
9667 lt_prog_compiler_static \
9668 lt_prog_compiler_no_builtin_flag \
9669 export_dynamic_flag_spec \
9670 thread_safe_flag_spec \
9671 whole_archive_flag_spec \
9672 enable_shared_with_static_runtimes \
9674 old_archive_from_new_cmds \
9679 compiler_lib_search_path \
9681 archive_expsym_cmds \
9683 postuninstall_cmds \
9684 old_archive_from_expsyms_cmds \
9685 allow_undefined_flag \
9687 export_symbols_cmds \
9688 hardcode_libdir_flag_spec \
9689 hardcode_libdir_flag_spec_ld \
9690 hardcode_libdir_separator \
9691 hardcode_automatic \
9693 module_expsym_cmds \
9694 lt_cv_prog_compiler_c_o \
9699 old_archive_cmds | \
9700 old_archive_from_new_cmds | \
9702 archive_expsym_cmds | \
9704 module_expsym_cmds | \
9705 old_archive_from_expsyms_cmds | \
9706 export_symbols_cmds | \
9707 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9708 postinstall_cmds | postuninstall_cmds | \
9709 old_postinstall_cmds | old_postuninstall_cmds | \
9710 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
9711 # Double-quote double-evaled strings.
9712 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9721 *'\$0 --fallback-echo"')
9722 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9727 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9729 { echo "$as_me:$LINENO: creating $ofile" >&5
9730 echo "$as_me: creating $ofile" >&6;}
9732 cat <<__EOF__ >> "$cfgfile"
9735 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9736 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9737 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9739 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9740 # Free Software Foundation, Inc.
9742 # This file is part of GNU Libtool:
9743 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9745 # This program is free software; you can redistribute it and/or modify
9746 # it under the terms of the GNU General Public License as published by
9747 # the Free Software Foundation; either version 2 of the License, or
9748 # (at your option) any later version.
9750 # This program is distributed in the hope that it will be useful, but
9751 # WITHOUT ANY WARRANTY; without even the implied warranty of
9752 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9753 # General Public License for more details.
9755 # You should have received a copy of the GNU General Public License
9756 # along with this program; if not, write to the Free Software
9757 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9759 # As a special exception to the GNU General Public License, if you
9760 # distribute this file as part of a program that contains a
9761 # configuration script generated by Autoconf, you may include it under
9762 # the same distribution terms that you use for the rest of that program.
9764 # A sed program that does not truncate output.
9767 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9768 Xsed="$SED -e 1s/^X//"
9770 # The HP-UX ksh and POSIX shell print the target directory to stdout
9772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9774 # The names of the tagged configurations supported by this script.
9777 # ### BEGIN LIBTOOL CONFIG
9779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9781 # Shell to use when invoking shell scripts.
9784 # Whether or not to build shared libraries.
9785 build_libtool_libs=$enable_shared
9787 # Whether or not to build static libraries.
9788 build_old_libs=$enable_static
9790 # Whether or not to add -lc for building shared libraries.
9791 build_libtool_need_lc=$archive_cmds_need_lc
9793 # Whether or not to disallow shared libs when runtime libs are static
9794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9796 # Whether or not to optimize for fast installation.
9797 fast_install=$enable_fast_install
9800 host_alias=$host_alias
9805 build_alias=$build_alias
9809 # An echo program that does not interpret backslashes.
9814 AR_FLAGS=$lt_AR_FLAGS
9819 # A language-specific compiler.
9822 # Is the compiler the GNU C compiler?
9828 # The linker used to build libraries.
9831 # Whether we need hard or soft links.
9834 # A BSD-compatible nm program.
9837 # A symbol stripping program
9840 # Used to examine libraries when file_magic_cmd begins "file"
9841 MAGIC_CMD=$MAGIC_CMD
9843 # Used on cygwin: DLL creation program.
9846 # Used on cygwin: object dumper.
9849 # Used on cygwin: assembler.
9852 # The name of the directory that contains temporary libtool files.
9855 # How to create reloadable object files.
9856 reload_flag=$lt_reload_flag
9857 reload_cmds=$lt_reload_cmds
9859 # How to pass a linker flag through the compiler.
9860 wl=$lt_lt_prog_compiler_wl
9862 # Object file suffix (normally "o").
9865 # Old archive suffix (normally "a").
9868 # Shared library suffix (normally ".so").
9869 shrext_cmds='$shrext_cmds'
9871 # Executable file suffix (normally "").
9874 # Additional compiler flags for building library objects.
9875 pic_flag=$lt_lt_prog_compiler_pic
9878 # What is the maximum length of a command?
9879 max_cmd_len=$lt_cv_sys_max_cmd_len
9881 # Does compiler simultaneously support -c and -o options?
9882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9884 # Must we lock files when doing compilation?
9885 need_locks=$lt_need_locks
9887 # Do we need the lib prefix for modules?
9888 need_lib_prefix=$need_lib_prefix
9890 # Do we need a version for libraries?
9891 need_version=$need_version
9893 # Whether dlopen is supported.
9894 dlopen_support=$enable_dlopen
9896 # Whether dlopen of programs is supported.
9897 dlopen_self=$enable_dlopen_self
9899 # Whether dlopen of statically linked programs is supported.
9900 dlopen_self_static=$enable_dlopen_self_static
9902 # Compiler flag to prevent dynamic linking.
9903 link_static_flag=$lt_lt_prog_compiler_static
9905 # Compiler flag to turn off builtin functions.
9906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9908 # Compiler flag to allow reflexive dlopens.
9909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9911 # Compiler flag to generate shared objects directly from archives.
9912 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9914 # Compiler flag to generate thread-safe objects.
9915 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9917 # Library versioning type.
9918 version_type=$version_type
9920 # Format of library name prefix.
9921 libname_spec=$lt_libname_spec
9923 # List of archive names. First name is the real one, the rest are links.
9924 # The last name is the one that the linker finds with -lNAME.
9925 library_names_spec=$lt_library_names_spec
9927 # The coded name of the library, if different from the real name.
9928 soname_spec=$lt_soname_spec
9930 # Commands used to build and install an old-style archive.
9932 old_archive_cmds=$lt_old_archive_cmds
9933 old_postinstall_cmds=$lt_old_postinstall_cmds
9934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9936 # Create an old-style archive from a shared archive.
9937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9939 # Create a temporary old-style archive to link instead of a shared archive.
9940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9942 # Commands used to build and install a shared archive.
9943 archive_cmds=$lt_archive_cmds
9944 archive_expsym_cmds=$lt_archive_expsym_cmds
9945 postinstall_cmds=$lt_postinstall_cmds
9946 postuninstall_cmds=$lt_postuninstall_cmds
9948 # Commands used to build a loadable module (assumed same as above if empty)
9949 module_cmds=$lt_module_cmds
9950 module_expsym_cmds=$lt_module_expsym_cmds
9952 # Commands to strip libraries.
9953 old_striplib=$lt_old_striplib
9954 striplib=$lt_striplib
9956 # Dependencies to place before the objects being linked to create a
9958 predep_objects=$lt_predep_objects
9960 # Dependencies to place after the objects being linked to create a
9962 postdep_objects=$lt_postdep_objects
9964 # Dependencies to place before the objects being linked to create a
9968 # Dependencies to place after the objects being linked to create a
9970 postdeps=$lt_postdeps
9972 # The library search path used internally by the compiler when linking
9974 compiler_lib_search_path=$lt_compiler_lib_search_path
9976 # Method to check whether dependent libraries are shared objects.
9977 deplibs_check_method=$lt_deplibs_check_method
9979 # Command to use when deplibs_check_method == file_magic.
9980 file_magic_cmd=$lt_file_magic_cmd
9982 # Flag that allows shared libraries with undefined symbols to be built.
9983 allow_undefined_flag=$lt_allow_undefined_flag
9985 # Flag that forces no undefined symbols.
9986 no_undefined_flag=$lt_no_undefined_flag
9988 # Commands used to finish a libtool library installation in a directory.
9989 finish_cmds=$lt_finish_cmds
9991 # Same as above, but a single script fragment to be evaled but not shown.
9992 finish_eval=$lt_finish_eval
9994 # Take the output of nm and produce a listing of raw symbols and C names.
9995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9997 # Transform the output of nm in a proper C declaration
9998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10000 # Transform the output of nm in a C name address pair
10001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10003 # This is the shared library runtime path variable.
10004 runpath_var=$runpath_var
10006 # This is the shared library path variable.
10007 shlibpath_var=$shlibpath_var
10009 # Is shlibpath searched before the hard-coded library search path?
10010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10012 # How to hardcode a shared library path into an executable.
10013 hardcode_action=$hardcode_action
10015 # Whether we should hardcode library paths into libraries.
10016 hardcode_into_libs=$hardcode_into_libs
10018 # Flag to hardcode \$libdir into a binary during linking.
10019 # This must work even if \$libdir does not exist.
10020 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10022 # If ld is used when linking, flag to hardcode \$libdir into
10023 # a binary during linking. This must work even if \$libdir does
10025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10027 # Whether we need a single -rpath flag with a separated argument.
10028 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10030 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10031 # resulting binary.
10032 hardcode_direct=$hardcode_direct
10034 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10035 # resulting binary.
10036 hardcode_minus_L=$hardcode_minus_L
10038 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10039 # the resulting binary.
10040 hardcode_shlibpath_var=$hardcode_shlibpath_var
10042 # Set to yes if building a shared library automatically hardcodes DIR into the library
10043 # and all subsequent libraries and executables linked against it.
10044 hardcode_automatic=$hardcode_automatic
10046 # Variables whose values should be saved in libtool wrapper scripts and
10047 # restored at relink time.
10048 variables_saved_for_relink="$variables_saved_for_relink"
10050 # Whether libtool must link a program against all its dependency libraries.
10051 link_all_deplibs=$link_all_deplibs
10053 # Compile-time system search path for libraries
10054 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10056 # Run-time system search path for libraries
10057 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10059 # Fix the shell variable \$srcfile for the compiler.
10060 fix_srcfile_path="$fix_srcfile_path"
10062 # Set to yes if exported symbols are required.
10063 always_export_symbols=$always_export_symbols
10065 # The commands to list exported symbols.
10066 export_symbols_cmds=$lt_export_symbols_cmds
10068 # The commands to extract the exported symbol list from a shared archive.
10069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10071 # Symbols that should not be listed in the preloaded symbols.
10072 exclude_expsyms=$lt_exclude_expsyms
10074 # Symbols that must always be exported.
10075 include_expsyms=$lt_include_expsyms
10077 # ### END LIBTOOL CONFIG
10084 cat <<\EOF
>> "$cfgfile"
10086 # AIX sometimes has problems with the GCC collect2 program. For some
10087 # reason, if we set the COLLECT_NAMES environment variable, the problems
10088 # vanish in a puff of smoke.
10089 if test "X${COLLECT_NAMES+set}" != Xset
; then
10091 export COLLECT_NAMES
10097 # We use sed instead of cat because bash on DJGPP gets confused if
10098 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10099 # text mode, it properly converts lines to CR/LF. This bash problem
10100 # is reportedly fixed, but why not run on old versions too?
10101 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
10103 mv -f "$cfgfile" "$ofile" || \
10104 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10108 # If there is no Makefile yet, we rely on a make rule to execute
10109 # `config.status --recheck' to rerun these tests and create the
10110 # libtool script then.
10111 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10112 if test -f "$ltmain_in"; then
10113 test -f Makefile
&& make "$ltmain"
10119 ac_cpp
='$CPP $CPPFLAGS'
10120 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10121 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10122 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10127 # Check whether --with-tags or --without-tags was given.
10128 if test "${with_tags+set}" = set; then
10129 withval
="$with_tags"
10130 tagnames
="$withval"
10133 if test -f "$ltmain" && test -n "$tagnames"; then
10134 if test ! -f "${ofile}"; then
10135 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10136 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10139 if test -z "$LTCC"; then
10140 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10141 if test -z "$LTCC"; then
10142 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10143 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10146 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10150 # Extract list of available tagged configurations in $ofile.
10151 # Note that this assumes the entire list is on one line.
10152 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10154 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
10155 for tagname
in $tagnames; do
10157 # Check whether tagname contains only valid characters
10158 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10160 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10161 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10162 { (exit 1); exit 1; }; }
10166 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
10168 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10169 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10170 { (exit 1); exit 1; }; }
10173 # Update the list of available tags.
10174 if test -n "$tagname"; then
10175 echo appending configuration tag
\"$tagname\" to
$ofile
10179 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10180 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10181 (test "X$CXX" != "Xg++"))) ; then
10183 ac_cpp
='$CXXCPP $CPPFLAGS'
10184 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10185 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10186 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10191 archive_cmds_need_lc_CXX
=no
10192 allow_undefined_flag_CXX
=
10193 always_export_symbols_CXX
=no
10194 archive_expsym_cmds_CXX
=
10195 export_dynamic_flag_spec_CXX
=
10196 hardcode_direct_CXX
=no
10197 hardcode_libdir_flag_spec_CXX
=
10198 hardcode_libdir_flag_spec_ld_CXX
=
10199 hardcode_libdir_separator_CXX
=
10200 hardcode_minus_L_CXX
=no
10201 hardcode_automatic_CXX
=no
10203 module_expsym_cmds_CXX
=
10204 link_all_deplibs_CXX
=unknown
10205 old_archive_cmds_CXX
=$old_archive_cmds
10206 no_undefined_flag_CXX
=
10207 whole_archive_flag_spec_CXX
=
10208 enable_shared_with_static_runtimes_CXX
=no
10210 # Dependencies to place before and after the object being linked:
10211 predep_objects_CXX
=
10212 postdep_objects_CXX
=
10215 compiler_lib_search_path_CXX
=
10217 # Source file extension for C++ test sources.
10220 # Object file extension for compiled C++ test sources.
10224 # Code to be used in simple compile tests
10225 lt_simple_compile_test_code
="int some_variable = 0;\n"
10227 # Code to be used in simple link tests
10228 lt_simple_link_test_code
='int main(int, char *) { return(0); }\n'
10230 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10232 # If no C compiler was specified, use CC.
10235 # Allow CC to be a program name with arguments.
10239 # save warnings/boilerplate of simple test code
10240 ac_outfile
=conftest.
$ac_objext
10241 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
10242 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
10243 _lt_compiler_boilerplate
=`cat conftest.err`
10246 ac_outfile
=conftest.
$ac_objext
10247 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
10248 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
10249 _lt_linker_boilerplate
=`cat conftest.err`
10253 # Allow CC to be a program name with arguments.
10258 lt_save_with_gnu_ld
=$with_gnu_ld
10259 lt_save_path_LD
=$lt_cv_path_LD
10260 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10261 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
10263 unset lt_cv_prog_gnu_ld
10265 if test -n "${lt_cv_path_LDCXX+set}"; then
10266 lt_cv_path_LD
=$lt_cv_path_LDCXX
10268 unset lt_cv_path_LD
10270 test -z "${LDCXX+set}" || LD
=$LDCXX
10274 for cc_temp
in $compiler""; do
10276 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
10277 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
10282 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10285 # We don't want -fno-exception wen compiling C++ code, so set the
10286 # no_builtin_flag separately
10287 if test "$GXX" = yes; then
10288 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
10290 lt_prog_compiler_no_builtin_flag_CXX
=
10293 if test "$GXX" = yes; then
10294 # Set up default GNU C++ configuration
10297 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10298 if test "${with_gnu_ld+set}" = set; then
10299 withval
="$with_gnu_ld"
10300 test "$withval" = no || with_gnu_ld
=yes
10305 if test "$GCC" = yes; then
10306 # Check if gcc -print-prog-name=ld gives a path.
10307 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10308 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10311 # gcc leaves a trailing carriage return which upsets mingw
10312 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10314 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10317 # Accept absolute paths.
10319 re_direlt
='/[^/][^/]*/\.\./'
10320 # Canonicalize the pathname of ld
10321 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
10322 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10323 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10325 test -z "$LD" && LD
="$ac_prog"
10328 # If it fails, then pretend we aren't using GCC.
10332 # If it is relative, then search for the first ld in PATH.
10333 with_gnu_ld
=unknown
10336 elif test "$with_gnu_ld" = yes; then
10337 echo "$as_me:$LINENO: checking for GNU ld" >&5
10338 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10340 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10341 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10343 if test "${lt_cv_path_LD+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 if test -z "$LD"; then
10347 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
10348 for ac_dir
in $PATH; do
10350 test -z "$ac_dir" && ac_dir
=.
10351 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10352 lt_cv_path_LD
="$ac_dir/$ac_prog"
10353 # Check to see if the program is GNU ld. I'd rather use --version,
10354 # but apparently some GNU ld's only accept -v.
10355 # Break only if it was the GNU/non-GNU ld that we prefer.
10356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10357 *GNU
* |
*'with BFD'*)
10358 test "$with_gnu_ld" != no
&& break
10361 test "$with_gnu_ld" != yes && break
10368 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
10372 LD
="$lt_cv_path_LD"
10373 if test -n "$LD"; then
10374 echo "$as_me:$LINENO: result: $LD" >&5
10375 echo "${ECHO_T}$LD" >&6
10377 echo "$as_me:$LINENO: result: no" >&5
10378 echo "${ECHO_T}no" >&6
10380 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10381 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10382 { (exit 1); exit 1; }; }
10383 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10384 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10385 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10389 case `$LD -v 2>&1 </dev/null` in
10390 *GNU
* |
*'with BFD'*)
10391 lt_cv_prog_gnu_ld
=yes
10394 lt_cv_prog_gnu_ld
=no
10398 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10399 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10400 with_gnu_ld
=$lt_cv_prog_gnu_ld
10404 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10405 # archiving commands below assume that GNU ld is being used.
10406 if test "$with_gnu_ld" = yes; then
10407 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10408 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'
10410 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
10411 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10413 # If archive_cmds runs LD, not CC, wlarc should be empty
10414 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10415 # investigate it a little bit more. (MM)
10418 # ancient GNU ld didn't support --whole-archive et. al.
10419 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10420 grep 'no-whole-archive' > /dev
/null
; then
10421 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10423 whole_archive_flag_spec_CXX
=
10429 # A generic and very simple default shared library creation
10430 # command for GNU C++ for the case where it uses the native
10431 # linker, instead of GNU ld. If possible, this setting should
10432 # overridden to take advantage of the native linker features on
10433 # the platform it is being used on.
10434 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10437 # Commands to make compiler produce verbose output that lists
10438 # what "hidden" libraries, object files and flags are used when
10439 # linking a shared library.
10440 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10448 # PORTME: fill in a description of your system's C++ link characteristics
10449 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10450 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10454 # FIXME: insert proper C++ library support
10458 if test "$host_cpu" = ia64
; then
10459 # On IA64, the linker does run time linking by default, so we don't
10460 # have to do anything special.
10461 aix_use_runtimelinking
=no
10462 exp_sym_flag
='-Bexport'
10465 aix_use_runtimelinking
=no
10467 # Test if we are trying to use run time linking or normal
10468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10469 # need to do runtime linking.
10470 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
10471 for ld_flag
in $LDFLAGS; do
10474 aix_use_runtimelinking
=yes
10481 exp_sym_flag
='-bexport'
10482 no_entry_flag
='-bnoentry'
10485 # When large executables or shared objects are built, AIX ld can
10486 # have problems creating the table of contents. If linking a library
10487 # or program results in "error TOC overflow" add -mminimal-toc to
10488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10491 archive_cmds_CXX
=''
10492 hardcode_direct_CXX
=yes
10493 hardcode_libdir_separator_CXX
=':'
10494 link_all_deplibs_CXX
=yes
10496 if test "$GXX" = yes; then
10497 case $host_os in aix4.
[012]|aix4.
[012].
*)
10498 # We only want to do this on AIX 4.2 and lower, the check
10499 # below for broken collect2 doesn't work under 4.3+
10500 collect2name
=`${CC} -print-prog-name=collect2`
10501 if test -f "$collect2name" && \
10502 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
10504 # We have reworked collect2
10505 hardcode_direct_CXX
=yes
10507 # We have old collect2
10508 hardcode_direct_CXX
=unsupported
10509 # It fails to find uninstalled libraries when the uninstalled
10510 # path is not listed in the libpath. Setting hardcode_minus_L
10511 # to unsupported forces relinking
10512 hardcode_minus_L_CXX
=yes
10513 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10514 hardcode_libdir_separator_CXX
=
10517 shared_flag
='-shared'
10518 if test "$aix_use_runtimelinking" = yes; then
10519 shared_flag
="$shared_flag "'${wl}-G'
10523 if test "$host_cpu" = ia64
; then
10524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10525 # chokes on -Wl,-G. The following line is correct:
10528 if test "$aix_use_runtimelinking" = yes; then
10529 shared_flag
='${wl}-G'
10531 shared_flag
='${wl}-bM:SRE'
10536 # It seems that -bexpall does not export symbols beginning with
10537 # underscore (_), so it is better to generate a list of symbols to export.
10538 always_export_symbols_CXX
=yes
10539 if test "$aix_use_runtimelinking" = yes; then
10540 # Warning - without using the other runtime loading flags (-brtl),
10541 # -berok will link without error, but may produce a broken library.
10542 allow_undefined_flag_CXX
='-berok'
10543 # Determine the default libpath from the value encoded in an empty executable.
10544 cat >conftest.
$ac_ext <<_ACEOF
10547 cat confdefs.h
>>conftest.
$ac_ext
10548 cat >>conftest.
$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10559 rm -f conftest.
$ac_objext conftest
$ac_exeext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561 (eval $ac_link) 2>conftest.er1
10563 grep -v '^ *+' conftest.er1
>conftest.err
10565 cat conftest.err
>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try
='test -z "$ac_cxx_werror_flag"
10569 || test ! -s conftest.err'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; } &&
10575 { ac_try
='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10582 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10584 # Check for a 64-bit object if we didn't find anything.
10585 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; }
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.
$ac_ext >&5
10592 rm -f conftest.err conftest.
$ac_objext \
10593 conftest
$ac_exeext conftest.
$ac_ext
10594 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10596 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10598 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"
10600 if test "$host_cpu" = ia64; then
10601 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr
/lib
:/lib
'
10602 allow_undefined_flag_CXX="-z nodefs"
10603 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"
10605 # Determine the default libpath from the value encoded in an empty executable.
10606 cat >conftest.$ac_ext <<_ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623 (eval $ac_link) 2>conftest.er1
10625 grep -v '^ *+' conftest.er1 >conftest.err
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10629 (exit $ac_status); } &&
10630 { ac_try='test -z "$ac_cxx_werror_flag"
10631 || test ! -s conftest.err'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10642 (exit $ac_status); }; }; then
10644 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10646 # Check for a 64-bit object if we didn't find anything.
10647 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10650 echo "$as_me: failed program was
:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10654 rm -f conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10656 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
10658 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10659 # Warning - without using the other run time loading flags,
10660 # -berok will link without error, but may produce a broken library.
10661 no_undefined_flag_CXX=' ${wl}-bernotok'
10662 allow_undefined_flag_CXX=' ${wl}-berok'
10663 # -bexpall does not export symbols beginning with underscore (_)
10664 always_export_symbols_CXX=yes
10665 # Exported symbols can be pulled into shared objects from archives
10666 whole_archive_flag_spec_CXX=' '
10667 archive_cmds_need_lc_CXX=yes
10668 # This is similar to how AIX traditionally builds it's shared libraries.
10669 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'
10674 case $cc_basename in
10676 # FIXME: insert proper C++ library support
10683 cygwin* | mingw* | pw32*)
10684 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10685 # as there is no search path for DLLs.
10686 hardcode_libdir_flag_spec_CXX='-L$libdir'
10687 allow_undefined_flag_CXX=unsupported
10688 always_export_symbols_CXX=no
10689 enable_shared_with_static_runtimes_CXX=yes
10691 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10692 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'
10693 # If the export-symbols file already is a .def file (1st line
10694 # is EXPORTS), use it as is; otherwise, prepend...
10695 archive_expsym_cmds_CXX='if test "x
`$SED 1q $export_symbols`" = xEXPORTS; then
10696 cp $export_symbols $output_objdir/$soname.def;
10698 echo EXPORTS > $output_objdir/$soname.def;
10699 cat $export_symbols >> $output_objdir/$soname.def;
10701 $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'
10706 darwin* | rhapsody*)
10708 rhapsody* | darwin1.[012])
10709 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10712 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10713 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10715 case ${MACOSX_DEPLOYMENT_TARGET} in
10717 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10720 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10726 archive_cmds_need_lc_CXX=no
10727 hardcode_direct_CXX=no
10728 hardcode_automatic_CXX=yes
10729 hardcode_shlibpath_var_CXX=unsupported
10730 whole_archive_flag_spec_CXX=''
10731 link_all_deplibs_CXX=yes
10733 if test "$GXX" = yes ; then
10734 lt_int_apple_cc_single_mod=no
10735 output_verbose_link_cmd='echo'
10736 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10737 lt_int_apple_cc_single_mod=yes
10739 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10740 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10742 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'
10744 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10745 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10746 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10747 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}'
10749 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}'
10751 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}'
10753 case $cc_basename in
10755 output_verbose_link_cmd
='echo'
10756 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'
10757 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10758 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10759 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}'
10760 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}'
10770 case $cc_basename in
10772 # FIXME: insert proper C++ library support
10776 # Green Hills C++ Compiler
10777 # FIXME: insert proper C++ library support
10781 # FIXME: insert proper C++ library support
10787 # C++ shared libraries reported to be fairly broken before switch to ELF
10791 archive_cmds_need_lc_CXX
=no
10793 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
10794 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10801 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10802 hardcode_libdir_separator_CXX
=:
10803 export_dynamic_flag_spec_CXX
='${wl}-E'
10804 hardcode_direct_CXX
=yes
10805 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10806 # but as the default
10807 # location of the library.
10809 case $cc_basename in
10811 # FIXME: insert proper C++ library support
10815 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'
10816 # Commands to make compiler produce verbose output that lists
10817 # what "hidden" libraries, object files and flags are used when
10818 # linking a shared library.
10820 # There doesn't appear to be a way to prevent this compiler from
10821 # explicitly linking system object files so we need to strip them
10822 # from the output so that they don't get included in the library
10824 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'
10827 if test "$GXX" = yes; then
10828 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'
10830 # FIXME: insert proper C++ library support
10837 if test $with_gnu_ld = no
; then
10838 case "$host_cpu" in
10840 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10841 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10842 hardcode_libdir_separator_CXX
=:
10845 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10848 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10849 hardcode_libdir_separator_CXX
=:
10850 export_dynamic_flag_spec_CXX
='${wl}-E'
10854 case "$host_cpu" in
10856 hardcode_direct_CXX
=no
10857 hardcode_shlibpath_var_CXX
=no
10860 hardcode_direct_CXX
=no
10861 hardcode_shlibpath_var_CXX
=no
10862 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10863 # but as the default
10864 # location of the library.
10867 hardcode_direct_CXX
=yes
10868 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10869 # but as the default
10870 # location of the library.
10874 case $cc_basename in
10876 # FIXME: insert proper C++ library support
10880 case "$host_cpu" in
10882 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10885 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10888 # Commands to make compiler produce verbose output that lists
10889 # what "hidden" libraries, object files and flags are used when
10890 # linking a shared library.
10892 # There doesn't appear to be a way to prevent this compiler from
10893 # explicitly linking system object files so we need to strip them
10894 # from the output so that they don't get included in the library
10896 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'
10899 if test "$GXX" = yes; then
10900 if test $with_gnu_ld = no
; then
10901 case "$host_cpu" in
10903 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10906 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'
10911 # FIXME: insert proper C++ library support
10918 case $cc_basename in
10921 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10923 # Archives containing C++ object files must be created using
10924 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10925 # necessary to make sure instantiated templates are included
10927 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10930 if test "$GXX" = yes; then
10931 if test "$with_gnu_ld" = no
; then
10932 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10934 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'
10937 link_all_deplibs_CXX
=yes
10940 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10941 hardcode_libdir_separator_CXX
=:
10944 case $cc_basename in
10946 # Kuck and Associates, Inc. (KAI) C++ Compiler
10948 # KCC will only create a shared library if the output file
10949 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10950 # to its proper name (with version) after linking.
10951 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'
10952 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'
10953 # Commands to make compiler produce verbose output that lists
10954 # what "hidden" libraries, object files and flags are used when
10955 # linking a shared library.
10957 # There doesn't appear to be a way to prevent this compiler from
10958 # explicitly linking system object files so we need to strip them
10959 # from the output so that they don't get included in the library
10961 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'
10963 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
10964 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10966 # Archives containing C++ object files must be created using
10967 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10968 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10973 # version 8.0 and above of icpc choke on multiply defined symbols
10974 # if we add $predep_objects and $postdep_objects, however 7.1 and
10975 # earlier do not add the objects themselves.
10976 case `$CC -V 2>&1` in
10978 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10979 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'
10981 *) # Version 8.0 or newer
10984 ia64
*) tmp_idyn
=' -i_dynamic';;
10986 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10987 archive_expsym_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10990 archive_cmds_need_lc_CXX
=no
10991 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10992 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10993 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10996 # Portland Group C++ compiler
10997 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10998 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'
11000 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11001 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11002 whole_archive_flag_spec_CXX
=''
11006 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11007 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'
11009 runpath_var
=LD_RUN_PATH
11010 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11011 hardcode_libdir_separator_CXX
=:
11013 # Commands to make compiler produce verbose output that lists
11014 # what "hidden" libraries, object files and flags are used when
11015 # linking a shared library.
11017 # There doesn't appear to be a way to prevent this compiler from
11018 # explicitly linking system object files so we need to strip them
11019 # from the output so that they don't get included in the library
11021 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'
11026 # FIXME: insert proper C++ library support
11030 # FIXME: insert proper C++ library support
11034 case $cc_basename in
11036 # FIXME: insert proper C++ library support
11040 # FIXME: insert proper C++ library support
11046 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11047 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11049 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11050 hardcode_direct_CXX
=yes
11051 hardcode_shlibpath_var_CXX
=no
11053 # Workaround some broken pre-1.5 toolchains
11054 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11057 # C++ shared libraries are fairly broken
11061 hardcode_direct_CXX
=yes
11062 hardcode_shlibpath_var_CXX
=no
11063 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11064 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11065 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11066 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11067 export_dynamic_flag_spec_CXX
='${wl}-E'
11068 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11070 output_verbose_link_cmd
='echo'
11073 case $cc_basename in
11075 # Kuck and Associates, Inc. (KAI) C++ Compiler
11077 # KCC will only create a shared library if the output file
11078 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11079 # to its proper name (with version) after linking.
11080 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'
11082 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11083 hardcode_libdir_separator_CXX
=:
11085 # Archives containing C++ object files must be created using
11086 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11087 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11091 # Rational C++ 2.4.1
11092 # FIXME: insert proper C++ library support
11096 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11097 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11099 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11100 hardcode_libdir_separator_CXX
=:
11102 # Commands to make compiler produce verbose output that lists
11103 # what "hidden" libraries, object files and flags are used when
11104 # linking a shared library.
11106 # There doesn't appear to be a way to prevent this compiler from
11107 # explicitly linking system object files so we need to strip them
11108 # from the output so that they don't get included in the library
11110 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'
11113 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11114 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11115 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11117 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11118 hardcode_libdir_separator_CXX
=:
11120 # Commands to make compiler produce verbose output that lists
11121 # what "hidden" libraries, object files and flags are used when
11122 # linking a shared library.
11123 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11126 # FIXME: insert proper C++ library support
11133 case $cc_basename in
11135 # Kuck and Associates, Inc. (KAI) C++ Compiler
11137 # KCC will only create a shared library if the output file
11138 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11139 # to its proper name (with version) after linking.
11140 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'
11142 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11143 hardcode_libdir_separator_CXX
=:
11145 # Archives containing C++ object files must be created using
11146 # the KAI C++ compiler.
11147 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11150 # Rational C++ 2.4.1
11151 # FIXME: insert proper C++ library support
11155 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11156 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11157 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11158 echo "-hidden">> $lib.exp~
11159 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11162 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11163 hardcode_libdir_separator_CXX
=:
11165 # Commands to make compiler produce verbose output that lists
11166 # what "hidden" libraries, object files and flags are used when
11167 # linking a shared library.
11169 # There doesn't appear to be a way to prevent this compiler from
11170 # explicitly linking system object files so we need to strip them
11171 # from the output so that they don't get included in the library
11173 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'
11176 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11177 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11178 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11180 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11181 hardcode_libdir_separator_CXX
=:
11183 # Commands to make compiler produce verbose output that lists
11184 # what "hidden" libraries, object files and flags are used when
11185 # linking a shared library.
11186 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11189 # FIXME: insert proper C++ library support
11196 # FIXME: insert proper C++ library support
11200 archive_cmds_need_lc_CXX
=no
11201 case $cc_basename in
11203 # FIXME: insert proper C++ library support
11207 # FIXME: insert proper C++ library support
11213 case $cc_basename in
11216 # FIXME: insert proper C++ library support
11221 # FIXME: insert proper C++ library support
11225 # FIXME: insert proper C++ library support
11231 case $cc_basename in
11233 # Sun C++ 4.2, 5.x and Centerline C++
11234 no_undefined_flag_CXX
=' -zdefs'
11235 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11236 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11237 $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'
11239 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11240 hardcode_shlibpath_var_CXX
=no
11242 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11244 # The C++ compiler is used as linker so we must use $wl
11245 # flag to pass the commands to the underlying system
11246 # linker. We must also pass each convience library through
11247 # to the system linker between allextract/defaultextract.
11248 # The C++ compiler will combine linker options so we
11249 # cannot just pass the convience library names through
11251 # Supported since Solaris 2.6 (maybe 2.5.1?)
11252 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11255 link_all_deplibs_CXX
=yes
11257 # Commands to make compiler produce verbose output that lists
11258 # what "hidden" libraries, object files and flags are used when
11259 # linking a shared library.
11261 # There doesn't appear to be a way to prevent this compiler from
11262 # explicitly linking system object files so we need to strip them
11263 # from the output so that they don't get included in the library
11265 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'
11267 # Archives containing C++ object files must be created using
11268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11269 # necessary to make sure instantiated templates are included
11271 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11274 # Green Hills C++ Compiler
11275 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11277 # The C++ compiler must be used to create the archive.
11278 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11281 # GNU C++ compiler with Solaris linker
11282 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11283 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11284 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11285 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11286 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11287 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11289 # Commands to make compiler produce verbose output that lists
11290 # what "hidden" libraries, object files and flags are used when
11291 # linking a shared library.
11292 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11294 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11296 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11297 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11300 # Commands to make compiler produce verbose output that lists
11301 # what "hidden" libraries, object files and flags are used when
11302 # linking a shared library.
11303 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11306 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11311 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
11312 archive_cmds_need_lc_CXX
=no
11315 case $cc_basename in
11317 # NonStop-UX NCC 3.20
11318 # FIXME: insert proper C++ library support
11322 # FIXME: insert proper C++ library support
11328 # FIXME: insert proper C++ library support
11332 # FIXME: insert proper C++ library support
11336 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11337 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11338 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11344 ## There is no encapsulation within the following macros, do not change
11345 ## the running order or otherwise move them around unless you know exactly
11346 ## what you are doing...
11348 cat > conftest.
$ac_ext <<EOF
11352 Foo (void) { a = 0; }
11358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11359 (eval $ac_compile) 2>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; then
11363 # Parse the compiler output and extract the necessary
11364 # objects, libraries and library flags.
11366 # Sentinel used to keep track of whether or not we are before
11367 # the conftest object file.
11368 pre_test_object_deps_done
=no
11370 # The `*' in the case matches for architectures that use `case' in
11371 # $output_verbose_cmd can trigger glob expansion during the loop
11372 # eval without this substitution.
11373 output_verbose_link_cmd
="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11375 for p
in `eval $output_verbose_link_cmd`; do
11379 # Some compilers place space between "-{L,R}" and the path.
11380 # Remove the space.
11381 if test $p = "-L" \
11382 ||
test $p = "-R"; then
11389 if test "$pre_test_object_deps_done" = no
; then
11392 # Internal compiler library paths should come after those
11393 # provided the user. The postdeps already come after the
11394 # user supplied libs so there is no need to process them.
11395 if test -z "$compiler_lib_search_path_CXX"; then
11396 compiler_lib_search_path_CXX
="${prev}${p}"
11398 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11401 # The "-l" case would never come before the object being
11402 # linked, so don't bother handling this case.
11405 if test -z "$postdeps_CXX"; then
11406 postdeps_CXX
="${prev}${p}"
11408 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11414 # This assumes that the test object file only shows up
11415 # once in the compiler output.
11416 if test "$p" = "conftest.$objext"; then
11417 pre_test_object_deps_done
=yes
11421 if test "$pre_test_object_deps_done" = no
; then
11422 if test -z "$predep_objects_CXX"; then
11423 predep_objects_CXX
="$p"
11425 predep_objects_CXX
="$predep_objects_CXX $p"
11428 if test -z "$postdep_objects_CXX"; then
11429 postdep_objects_CXX
="$p"
11431 postdep_objects_CXX
="$postdep_objects_CXX $p"
11436 *) ;; # Ignore the rest.
11444 echo "libtool.m4: error: problem compiling CXX test program"
11447 $rm -f confest.
$objext
11449 case " $postdeps_CXX " in
11450 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
11453 lt_prog_compiler_wl_CXX
=
11454 lt_prog_compiler_pic_CXX
=
11455 lt_prog_compiler_static_CXX
=
11457 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11460 # C++ specific cases for pic, static, wl, etc.
11461 if test "$GXX" = yes; then
11462 lt_prog_compiler_wl_CXX
='-Wl,'
11463 lt_prog_compiler_static_CXX
='-static'
11467 # All AIX code is PIC.
11468 if test "$host_cpu" = ia64
; then
11469 # AIX 5 now supports IA64 processor
11470 lt_prog_compiler_static_CXX
='-Bstatic'
11474 # FIXME: we need at least 68020 code to build shared libraries, but
11475 # adding the `-m68020' flag to GCC prevents building anything better,
11477 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11479 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11480 # PIC is the default for these OSes.
11482 mingw
* | os2
* | pw32
*)
11483 # This hack is so that the source file can tell whether it is being
11484 # built for inclusion in a dll (and should export symbols for example).
11485 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11487 darwin
* | rhapsody
*)
11488 # PIC is the default on this platform
11489 # Common symbols not allowed in MH_DYLIB files
11490 lt_prog_compiler_pic_CXX
='-fno-common'
11493 # DJGPP does not support shared libraries at all
11494 lt_prog_compiler_pic_CXX
=
11497 if test -d /usr
/nec
; then
11498 lt_prog_compiler_pic_CXX
=-Kconform_pic
11502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11503 # not for PA HP-UX.
11504 case "$host_cpu" in
11508 lt_prog_compiler_pic_CXX
='-fPIC'
11513 lt_prog_compiler_pic_CXX
='-fPIC'
11519 # All AIX code is PIC.
11520 if test "$host_cpu" = ia64
; then
11521 # AIX 5 now supports IA64 processor
11522 lt_prog_compiler_static_CXX
='-Bstatic'
11524 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11528 case $cc_basename in
11530 # Green Hills C++ Compiler
11531 # _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"
11536 # PIC is the default on this platform
11537 # Common symbols not allowed in MH_DYLIB files
11538 case $cc_basename in
11540 lt_prog_compiler_pic_CXX
='-qnocommon'
11541 lt_prog_compiler_wl_CXX
='-Wl,'
11546 case $cc_basename in
11548 lt_prog_compiler_pic_CXX
='-KPIC'
11551 # Green Hills C++ Compiler
11552 lt_prog_compiler_pic_CXX
='-pic'
11558 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
11559 # FreeBSD uses GNU C++
11561 hpux9
* | hpux10
* | hpux11
*)
11562 case $cc_basename in
11564 lt_prog_compiler_wl_CXX
='-Wl,'
11565 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11566 if test "$host_cpu" != ia64
; then
11567 lt_prog_compiler_pic_CXX
='+Z'
11571 lt_prog_compiler_wl_CXX
='-Wl,'
11572 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11573 case "$host_cpu" in
11578 lt_prog_compiler_pic_CXX
='+Z'
11586 irix5
* | irix6
* | nonstopux
*)
11587 case $cc_basename in
11589 lt_prog_compiler_wl_CXX
='-Wl,'
11590 lt_prog_compiler_static_CXX
='-non_shared'
11591 # CC pic flag -KPIC is the default.
11598 case $cc_basename in
11601 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11602 lt_prog_compiler_pic_CXX
='-fPIC'
11606 lt_prog_compiler_wl_CXX
='-Wl,'
11607 lt_prog_compiler_pic_CXX
='-KPIC'
11608 lt_prog_compiler_static_CXX
='-static'
11611 # Portland Group C++ compiler.
11612 lt_prog_compiler_wl_CXX
='-Wl,'
11613 lt_prog_compiler_pic_CXX
='-fpic'
11614 lt_prog_compiler_static_CXX
='-static'
11618 # Make sure the PIC flag is empty. It appears that all Alpha
11619 # Linux and Compaq Tru64 Unix objects are PIC.
11620 lt_prog_compiler_pic_CXX
=
11621 lt_prog_compiler_static_CXX
='-non_shared'
11632 case $cc_basename in
11634 lt_prog_compiler_pic_CXX
='-W c,exportall'
11642 osf3
* | osf4
* | osf5
*)
11643 case $cc_basename in
11645 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11648 # Rational C++ 2.4.1
11649 lt_prog_compiler_pic_CXX
='-pic'
11652 # Digital/Compaq C++
11653 lt_prog_compiler_wl_CXX
='-Wl,'
11654 # Make sure the PIC flag is empty. It appears that all Alpha
11655 # Linux and Compaq Tru64 Unix objects are PIC.
11656 lt_prog_compiler_pic_CXX
=
11657 lt_prog_compiler_static_CXX
='-non_shared'
11666 case $cc_basename in
11668 lt_prog_compiler_pic_CXX
='-fPIC'
11675 case $cc_basename in
11677 # Sun C++ 4.2, 5.x and Centerline C++
11678 lt_prog_compiler_pic_CXX
='-KPIC'
11679 lt_prog_compiler_static_CXX
='-Bstatic'
11680 lt_prog_compiler_wl_CXX
='-Qoption ld '
11683 # Green Hills C++ Compiler
11684 lt_prog_compiler_pic_CXX
='-PIC'
11691 case $cc_basename in
11694 lt_prog_compiler_pic_CXX
='-pic'
11695 lt_prog_compiler_static_CXX
='-Bstatic'
11699 lt_prog_compiler_pic_CXX
='-pic'
11706 case $cc_basename in
11708 # NonStop-UX NCC 3.20
11709 lt_prog_compiler_pic_CXX
='-KPIC'
11720 lt_prog_compiler_can_build_shared_CXX
=no
11725 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11726 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11729 # Check to make sure the PIC flag actually works.
11731 if test -n "$lt_prog_compiler_pic_CXX"; then
11733 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11734 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11735 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 lt_prog_compiler_pic_works_CXX
=no
11739 ac_outfile
=conftest.
$ac_objext
11740 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11741 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11742 # Insert the option either (1) after the last *FLAGS variable, or
11743 # (2) before a word containing "conftest.", or (3) at the end.
11744 # Note that $ac_compile itself does not contain backslashes and begins
11745 # with a dollar sign (not a hyphen), so the echo should work correctly.
11746 # The option is referenced via a variable to avoid confusing sed.
11747 lt_compile
=`echo "$ac_compile" | $SED \
11748 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11750 -e 's:$: $lt_compiler_flag:'`
11751 (eval echo "\"\$as_me:11751: $lt_compile\"" >&5)
11752 (eval "$lt_compile" 2>conftest.err
)
11754 cat conftest.err
>&5
11755 echo "$as_me:11755: \$? = $ac_status" >&5
11756 if (exit $ac_status) && test -s "$ac_outfile"; then
11757 # The compiler can only warn and ignore the option if not recognized
11758 # So say no if there are warnings other than the usual output.
11759 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
11760 $SED '/^$/d' conftest.err
>conftest.er2
11761 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11762 lt_prog_compiler_pic_works_CXX
=yes
11768 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11769 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11771 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11772 case $lt_prog_compiler_pic_CXX in
11774 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11777 lt_prog_compiler_pic_CXX
=
11778 lt_prog_compiler_can_build_shared_CXX
=no
11783 # For platforms which do not support PIC, -DPIC is meaningless:
11785 lt_prog_compiler_pic_CXX
=
11788 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11792 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11793 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11794 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 lt_cv_prog_compiler_c_o_CXX
=no
11798 $rm -r conftest
2>/dev
/null
11802 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11804 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11805 # Insert the option either (1) after the last *FLAGS variable, or
11806 # (2) before a word containing "conftest.", or (3) at the end.
11807 # Note that $ac_compile itself does not contain backslashes and begins
11808 # with a dollar sign (not a hyphen), so the echo should work correctly.
11809 lt_compile
=`echo "$ac_compile" | $SED \
11810 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11812 -e 's:$: $lt_compiler_flag:'`
11813 (eval echo "\"\$as_me:11813: $lt_compile\"" >&5)
11814 (eval "$lt_compile" 2>out
/conftest.err
)
11816 cat out
/conftest.err
>&5
11817 echo "$as_me:11817: \$? = $ac_status" >&5
11818 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11820 # The compiler can only warn and ignore the option if not recognized
11821 # So say no if there are warnings
11822 $echo "X$_lt_compiler_boilerplate" |
$Xsed > out
/conftest.exp
11823 $SED '/^$/d' out
/conftest.err
>out
/conftest.er2
11824 if test ! -s out
/conftest.err ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
11825 lt_cv_prog_compiler_c_o_CXX
=yes
11830 # SGI C++ compiler will create directory out/ii_files/ for
11831 # template instantiation
11832 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11833 $rm out
/* && rmdir out
11839 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11840 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11843 hard_links
="nottested"
11844 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11845 # do not overwrite the value of need_locks provided by the user
11846 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11847 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11850 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11852 ln conftest.a conftest.b
2>&5 || hard_links
=no
11853 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11854 echo "$as_me:$LINENO: result: $hard_links" >&5
11855 echo "${ECHO_T}$hard_links" >&6
11856 if test "$hard_links" = no
; then
11857 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11858 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11865 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11868 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11871 # If we're using GNU nm, then we don't want the "-C" option.
11872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11873 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11874 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'
11876 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'
11880 export_symbols_cmds_CXX
="$ltdll_cmds"
11883 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11886 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11890 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11891 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11892 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11894 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11895 if test "$GCC" = yes; then
11896 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11900 # Do we need to explicitly link libc?
11902 case "x$archive_cmds_need_lc_CXX" in
11904 # Assume -lc should be added
11905 archive_cmds_need_lc_CXX
=yes
11907 if test "$enable_shared" = yes && test "$GCC" = yes; then
11908 case $archive_cmds_CXX in
11910 # FIXME: we may have to deal with multi-command sequences.
11913 # Test whether the compiler implicitly links with -lc since on some
11914 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11915 # to ld, don't add -lc before -lgcc.
11916 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11917 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11919 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922 (eval $ac_compile) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } 2>conftest.err
; then
11928 libobjs
=conftest.
$ac_objext
11930 wl
=$lt_prog_compiler_wl_CXX
11936 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
11937 allow_undefined_flag_CXX
=
11938 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11939 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }
11944 archive_cmds_need_lc_CXX
=no
11946 archive_cmds_need_lc_CXX
=yes
11948 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
11950 cat conftest.err
1>&5
11953 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11954 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11961 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11962 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11963 library_names_spec
=
11964 libname_spec
='lib$name'
11968 postuninstall_cmds
=
11972 shlibpath_overrides_runpath
=unknown
11974 dynamic_linker
="$host_os ld.so"
11975 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11976 if test "$GCC" = yes; then
11977 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11978 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
11979 # if the path contains ";" then we assume it to be the separator
11980 # otherwise default to the standard path separator (i.e. ":") - it is
11981 # assumed that no part of a normal pathname contains ";" but that should
11982 # okay in the real world where ";" in dirpaths is itself problematic.
11983 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11985 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11988 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11990 need_lib_prefix
=unknown
11991 hardcode_into_libs
=no
11993 # when you set need_version to no, make sure it does not cause -set_version
11994 # flags to be left without arguments
11995 need_version
=unknown
12000 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12001 shlibpath_var
=LIBPATH
12003 # AIX 3 has no versioning support, so we append a major version to the name.
12004 soname_spec
='${libname}${release}${shared_ext}$major'
12011 hardcode_into_libs
=yes
12012 if test "$host_cpu" = ia64
; then
12013 # AIX 5 supports IA64
12014 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12015 shlibpath_var
=LD_LIBRARY_PATH
12017 # With GCC up to 2.95.x, collect2 would create an import file
12018 # for dependence libraries. The import file would start with
12019 # the line `#! .'. This would cause the generated library to
12020 # depend on `.', always an invalid library. This was fixed in
12021 # development snapshots of GCC prior to 3.0.
12023 aix4 | aix4.
[01] | aix4.
[01].
*)
12024 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12026 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12029 can_build_shared
=no
12033 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12034 # soname into executable. Probably we can add versioning support to
12035 # collect2, so additional links can be useful in future.
12036 if test "$aix_use_runtimelinking" = yes; then
12037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12038 # instead of lib<name>.a to let people know that these are not
12039 # typical AIX shared libraries.
12040 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12042 # We preserve .a as extension for shared libraries through AIX4.2
12043 # and later when we are not doing run time linking.
12044 library_names_spec
='${libname}${release}.a $libname.a'
12045 soname_spec
='${libname}${release}${shared_ext}$major'
12047 shlibpath_var
=LIBPATH
12052 library_names_spec
='$libname.ixlibrary $libname.a'
12053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12054 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'
12058 library_names_spec
='${libname}${shared_ext}'
12059 dynamic_linker
="$host_os ld.so"
12060 shlibpath_var
=LIBRARY_PATH
12066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067 soname_spec
='${libname}${release}${shared_ext}$major'
12068 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12069 shlibpath_var
=LD_LIBRARY_PATH
12070 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12071 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12072 # the default ld.so.conf also contains /usr/contrib/lib and
12073 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12074 # libtool to hard-code these into programs
12077 cygwin
* | mingw
* | pw32
*)
12078 version_type
=windows
12083 case $GCC,$host_os in
12084 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12085 library_names_spec
='$libname.dll.a'
12086 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12087 postinstall_cmds
='base_file=`basename \${file}`~
12088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12089 dldir=$destdir/`dirname \$dlpath`~
12090 test -d \$dldir || mkdir -p \$dldir~
12091 $install_prog $dir/$dlname \$dldir/$dlname'
12092 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12093 dlpath=$dir/\$dldll~
12095 shlibpath_overrides_runpath
=yes
12099 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12100 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12101 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12104 # MinGW DLLs use traditional 'lib' prefix
12105 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12106 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12107 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12108 # It is most probably a Windows format PATH printed by
12109 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12110 # path with ; separators, and with drive letters. We can handle the
12111 # drive letters (cygwin fileutils understands them), so leave them,
12112 # especially as we might pass files found there to a mingw objdump,
12113 # which wouldn't understand a cygwinified path. Ahh.
12114 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12116 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12120 # pw32 DLLs use 'pw' prefix rather than 'lib'
12121 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12127 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12130 dynamic_linker
='Win32 ld.exe'
12131 # FIXME: first we should search . and the directory the executable is in
12135 darwin
* | rhapsody
*)
12136 dynamic_linker
="$host_os dyld"
12137 version_type
=darwin
12140 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12141 soname_spec
='${libname}${release}${major}$shared_ext'
12142 shlibpath_overrides_runpath
=yes
12143 shlibpath_var
=DYLD_LIBRARY_PATH
12144 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
12145 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12146 if test "$GCC" = yes; then
12147 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"`
12149 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12151 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12159 soname_spec
='${libname}${release}${shared_ext}$major'
12160 shlibpath_var
=LD_LIBRARY_PATH
12171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12172 soname_spec
='${libname}${release}${shared_ext}$major'
12173 shlibpath_var
=LD_LIBRARY_PATH
12174 shlibpath_overrides_runpath
=no
12175 hardcode_into_libs
=yes
12176 dynamic_linker
='GNU ld.so'
12179 freebsd
* | dragonfly
*)
12180 # DragonFly does not have aout. When/if they implement a new
12181 # versioning mechanism, adjust this.
12182 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12183 version_type
=freebsd-
$objformat
12184 case $version_type in
12186 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12191 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12195 shlibpath_var
=LD_LIBRARY_PATH
12198 shlibpath_overrides_runpath
=yes
12200 freebsd3.
[01]* | freebsdelf3.
[01]*)
12201 shlibpath_overrides_runpath
=yes
12202 hardcode_into_libs
=yes
12205 shlibpath_overrides_runpath
=no
12206 hardcode_into_libs
=yes
12215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12216 soname_spec
='${libname}${release}${shared_ext}$major'
12217 shlibpath_var
=LD_LIBRARY_PATH
12218 hardcode_into_libs
=yes
12221 hpux9
* | hpux10
* | hpux11
*)
12222 # Give a soname corresponding to the major version so that dld.sl refuses to
12223 # link against other versions.
12227 case "$host_cpu" in
12230 hardcode_into_libs
=yes
12231 dynamic_linker
="$host_os dld.so"
12232 shlibpath_var
=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235 soname_spec
='${libname}${release}${shared_ext}$major'
12236 if test "X$HPUX_IA64_MODE" = X32
; then
12237 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12239 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12241 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12245 hardcode_into_libs
=yes
12246 dynamic_linker
="$host_os dld.sl"
12247 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12248 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250 soname_spec
='${libname}${release}${shared_ext}$major'
12251 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12252 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12256 dynamic_linker
="$host_os dld.sl"
12257 shlibpath_var
=SHLIB_PATH
12258 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260 soname_spec
='${libname}${release}${shared_ext}$major'
12263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12264 postinstall_cmds
='chmod 555 $lib'
12267 irix5
* | irix6
* | nonstopux
*)
12269 nonstopux
*) version_type
=nonstopux
;;
12271 if test "$lt_cv_prog_gnu_ld" = yes; then
12279 soname_spec
='${libname}${release}${shared_ext}$major'
12280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12282 irix5
* | nonstopux
*)
12283 libsuff
= shlibsuff
=
12286 case $LD in # libtool.m4 will add one of these switches to LD
12287 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12288 libsuff
= shlibsuff
= libmagic
=32-bit;;
12289 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12290 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12291 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12292 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12293 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12297 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12298 shlibpath_overrides_runpath
=no
12299 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12300 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12301 hardcode_into_libs
=yes
12304 # No shared lib support for Linux oldld, aout, or coff.
12305 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12309 # This must be Linux ELF.
12314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315 soname_spec
='${libname}${release}${shared_ext}$major'
12316 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12317 shlibpath_var
=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath
=no
12319 # This implies no fast_install, which is unacceptable.
12320 # Some rework will be needed to allow for fast_install
12321 # before this can be enabled.
12322 hardcode_into_libs
=yes
12324 # find out which ABI we are using
12326 case "$host_cpu" in
12327 x86_64
*|s390x
*|powerpc64
*)
12328 echo '#line 12328 "configure"' > conftest.
$ac_ext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12330 (eval $ac_compile) 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; then
12334 case `/usr/bin/file conftest.$ac_objext` in
12337 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12345 # Append ld.so.conf contents to the search path
12346 if test -f /etc
/ld.so.conf
; then
12347 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12348 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12351 # We used to test for /lib/ld.so.1 and disable shared libraries on
12352 # powerpc, because MkLinux only supported shared libraries with the
12353 # GNU dynamic linker. Since this was broken with cross compilers,
12354 # most powerpc-linux boxes support dynamic linking these days and
12355 # people can always --disable-shared, the test was removed, and we
12356 # assume the GNU/Linux dynamic linker is in use.
12357 dynamic_linker
='GNU/Linux ld.so'
12364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12365 soname_spec
='${libname}${release}${shared_ext}$major'
12366 shlibpath_var
=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath
=no
12368 hardcode_into_libs
=yes
12369 dynamic_linker
='GNU ld.so'
12376 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12377 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12378 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12379 dynamic_linker
='NetBSD (a.out) ld.so'
12381 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12382 soname_spec
='${libname}${release}${shared_ext}$major'
12383 dynamic_linker
='NetBSD ld.elf_so'
12385 shlibpath_var
=LD_LIBRARY_PATH
12386 shlibpath_overrides_runpath
=yes
12387 hardcode_into_libs
=yes
12392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12393 shlibpath_var
=LD_LIBRARY_PATH
12394 shlibpath_overrides_runpath
=yes
12401 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12402 soname_spec
='${libname}${release}${shared_ext}$major'
12403 shlibpath_var
=LD_LIBRARY_PATH
12404 shlibpath_overrides_runpath
=yes
12411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12412 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12413 shlibpath_var
=LD_LIBRARY_PATH
12414 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12416 openbsd2.
[89] | openbsd2.
[89].
*)
12417 shlibpath_overrides_runpath
=no
12420 shlibpath_overrides_runpath
=yes
12424 shlibpath_overrides_runpath
=yes
12429 libname_spec
='$name'
12432 library_names_spec
='$libname${shared_ext} $libname.a'
12433 dynamic_linker
='OS/2 ld.exe'
12434 shlibpath_var
=LIBPATH
12437 osf3
* | osf4
* | osf5
*)
12441 soname_spec
='${libname}${release}${shared_ext}$major'
12442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443 shlibpath_var
=LD_LIBRARY_PATH
12444 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12445 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12450 soname_spec
='${libname}${release}${shared_ext}$major'
12451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452 shlibpath_var
=LD_LIBRARY_PATH
12459 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12460 soname_spec
='${libname}${release}${shared_ext}$major'
12461 shlibpath_var
=LD_LIBRARY_PATH
12462 shlibpath_overrides_runpath
=yes
12463 hardcode_into_libs
=yes
12464 # ldd complains unless libraries are executable
12465 postinstall_cmds
='chmod +x $lib'
12470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12471 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12472 shlibpath_var
=LD_LIBRARY_PATH
12473 shlibpath_overrides_runpath
=yes
12474 if test "$with_gnu_ld" = yes; then
12480 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
12482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12483 soname_spec
='${libname}${release}${shared_ext}$major'
12484 shlibpath_var
=LD_LIBRARY_PATH
12485 case $host_vendor in
12487 shlibpath_overrides_runpath
=no
12489 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12490 runpath_var
=LD_RUN_PATH
12498 shlibpath_overrides_runpath
=no
12499 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12505 if test -d /usr
/nec
;then
12507 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12508 soname_spec
='$libname${shared_ext}.$major'
12509 shlibpath_var
=LD_LIBRARY_PATH
12515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12516 soname_spec
='${libname}${release}${shared_ext}$major'
12517 shlibpath_var
=LD_LIBRARY_PATH
12524 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12525 echo "${ECHO_T}$dynamic_linker" >&6
12526 test "$dynamic_linker" = no
&& can_build_shared
=no
12528 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12529 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12530 hardcode_action_CXX
=
12531 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12532 test -n "$runpath_var_CXX" || \
12533 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12535 # We can hardcode non-existant directories.
12536 if test "$hardcode_direct_CXX" != no
&&
12537 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12538 # have to relink, otherwise we might link with an installed library
12539 # when we should be linking with a yet-to-be-installed one
12540 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12541 test "$hardcode_minus_L_CXX" != no
; then
12542 # Linking always hardcodes the temporary library directory.
12543 hardcode_action_CXX
=relink
12545 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12546 hardcode_action_CXX
=immediate
12549 # We cannot hardcode anything, or else we can only hardcode existing
12551 hardcode_action_CXX
=unsupported
12553 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12554 echo "${ECHO_T}$hardcode_action_CXX" >&6
12556 if test "$hardcode_action_CXX" = relink
; then
12557 # Fast installation is not supported
12558 enable_fast_install
=no
12559 elif test "$shlibpath_overrides_runpath" = yes ||
12560 test "$enable_shared" = no
; then
12561 # Fast installation is not necessary
12562 enable_fast_install
=needless
12567 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12568 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12569 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
12570 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12571 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12572 echo "$as_me:$LINENO: result: yes" >&5
12573 echo "${ECHO_T}yes" >&6
12575 # FIXME - insert some real tests, host_os isn't really good enough
12578 if test -n "$STRIP" ; then
12579 striplib
="$STRIP -x"
12580 echo "$as_me:$LINENO: result: yes" >&5
12581 echo "${ECHO_T}yes" >&6
12583 echo "$as_me:$LINENO: result: no" >&5
12584 echo "${ECHO_T}no" >&6
12588 echo "$as_me:$LINENO: result: no" >&5
12589 echo "${ECHO_T}no" >&6
12594 if test "x$enable_dlopen" != xyes
; then
12595 enable_dlopen
=unknown
12596 enable_dlopen_self
=unknown
12597 enable_dlopen_self_static
=unknown
12604 lt_cv_dlopen
="load_add_on"
12606 lt_cv_dlopen_self
=yes
12610 lt_cv_dlopen
="LoadLibrary"
12615 lt_cv_dlopen
="dlopen"
12620 # if libdl is installed we need to link against it
12621 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12622 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12623 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 ac_check_lib_save_LIBS
=$LIBS
12628 cat >conftest.
$ac_ext <<_ACEOF
12631 cat confdefs.h
>>conftest.
$ac_ext
12632 cat >>conftest.
$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12635 /* Override any gcc2 internal prototype to avoid an error. */
12639 /* We use char because int might match the return type of a gcc2
12640 builtin and then its argument prototype would still apply. */
12650 rm -f conftest.
$ac_objext conftest
$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652 (eval $ac_link) 2>conftest.er1
12654 grep -v '^ *+' conftest.er1
>conftest.err
12656 cat conftest.err
>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
12659 { ac_try
='test -z "$ac_cxx_werror_flag"
12660 || test ! -s conftest.err'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try
='test -s conftest$ac_exeext'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_cv_lib_dl_dlopen
=yes
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.
$ac_ext >&5
12677 ac_cv_lib_dl_dlopen
=no
12679 rm -f conftest.err conftest.
$ac_objext \
12680 conftest
$ac_exeext conftest.
$ac_ext
12681 LIBS
=$ac_check_lib_save_LIBS
12683 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12684 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12685 if test $ac_cv_lib_dl_dlopen = yes; then
12686 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12689 lt_cv_dlopen
="dyld"
12691 lt_cv_dlopen_self
=yes
12698 echo "$as_me:$LINENO: checking for shl_load" >&5
12699 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12700 if test "${ac_cv_func_shl_load+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 cat >conftest.
$ac_ext <<_ACEOF
12706 cat confdefs.h
>>conftest.
$ac_ext
12707 cat >>conftest.
$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12711 #define shl_load innocuous_shl_load
12713 /* System header to define __stub macros and hopefully few prototypes,
12714 which can conflict with char shl_load (); below.
12715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12716 <limits.h> exists even on freestanding compilers. */
12719 # include <limits.h>
12721 # include <assert.h>
12726 /* Override any gcc2 internal prototype to avoid an error. */
12731 /* We use char because int might match the return type of a gcc2
12732 builtin and then its argument prototype would still apply. */
12734 /* The GNU C library defines this for functions which it implements
12735 to always fail with ENOSYS. Some functions are actually named
12736 something starting with __ and the normal name is an alias. */
12737 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12740 char (*f) () = shl_load;
12749 return f != shl_load;
12754 rm -f conftest.
$ac_objext conftest
$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>conftest.er1
12758 grep -v '^ *+' conftest.er1
>conftest.err
12760 cat conftest.err
>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try
='test -z "$ac_cxx_werror_flag"
12764 || test ! -s conftest.err'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try
='test -s conftest$ac_exeext'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 ac_cv_func_shl_load
=yes
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.
$ac_ext >&5
12781 ac_cv_func_shl_load
=no
12783 rm -f conftest.err conftest.
$ac_objext \
12784 conftest
$ac_exeext conftest.
$ac_ext
12786 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12787 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12788 if test $ac_cv_func_shl_load = yes; then
12789 lt_cv_dlopen
="shl_load"
12791 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12792 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12793 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 ac_check_lib_save_LIBS
=$LIBS
12798 cat >conftest.
$ac_ext <<_ACEOF
12801 cat confdefs.h
>>conftest.
$ac_ext
12802 cat >>conftest.
$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12805 /* Override any gcc2 internal prototype to avoid an error. */
12809 /* We use char because int might match the return type of a gcc2
12810 builtin and then its argument prototype would still apply. */
12820 rm -f conftest.
$ac_objext conftest
$ac_exeext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12822 (eval $ac_link) 2>conftest.er1
12824 grep -v '^ *+' conftest.er1
>conftest.err
12826 cat conftest.err
>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
12829 { ac_try
='test -z "$ac_cxx_werror_flag"
12830 || test ! -s conftest.err'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try
='test -s conftest$ac_exeext'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 ac_cv_lib_dld_shl_load
=yes
12844 echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.
$ac_ext >&5
12847 ac_cv_lib_dld_shl_load
=no
12849 rm -f conftest.err conftest.
$ac_objext \
12850 conftest
$ac_exeext conftest.
$ac_ext
12851 LIBS
=$ac_check_lib_save_LIBS
12853 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12854 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12855 if test $ac_cv_lib_dld_shl_load = yes; then
12856 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
12858 echo "$as_me:$LINENO: checking for dlopen" >&5
12859 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12860 if test "${ac_cv_func_dlopen+set}" = set; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12863 cat >conftest.
$ac_ext <<_ACEOF
12866 cat confdefs.h
>>conftest.
$ac_ext
12867 cat >>conftest.
$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12871 #define dlopen innocuous_dlopen
12873 /* System header to define __stub macros and hopefully few prototypes,
12874 which can conflict with char dlopen (); below.
12875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12876 <limits.h> exists even on freestanding compilers. */
12879 # include <limits.h>
12881 # include <assert.h>
12886 /* Override any gcc2 internal prototype to avoid an error. */
12891 /* We use char because int might match the return type of a gcc2
12892 builtin and then its argument prototype would still apply. */
12894 /* The GNU C library defines this for functions which it implements
12895 to always fail with ENOSYS. Some functions are actually named
12896 something starting with __ and the normal name is an alias. */
12897 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12900 char (*f) () = dlopen;
12909 return f != dlopen;
12914 rm -f conftest.
$ac_objext conftest
$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916 (eval $ac_link) 2>conftest.er1
12918 grep -v '^ *+' conftest.er1
>conftest.err
12920 cat conftest.err
>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
12923 { ac_try
='test -z "$ac_cxx_werror_flag"
12924 || test ! -s conftest.err'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; } &&
12930 { ac_try
='test -s conftest$ac_exeext'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_func_dlopen
=yes
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.
$ac_ext >&5
12941 ac_cv_func_dlopen
=no
12943 rm -f conftest.err conftest.
$ac_objext \
12944 conftest
$ac_exeext conftest.
$ac_ext
12946 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12947 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12948 if test $ac_cv_func_dlopen = yes; then
12949 lt_cv_dlopen
="dlopen"
12951 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 ac_check_lib_save_LIBS
=$LIBS
12958 cat >conftest.
$ac_ext <<_ACEOF
12961 cat confdefs.h
>>conftest.
$ac_ext
12962 cat >>conftest.
$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12965 /* Override any gcc2 internal prototype to avoid an error. */
12969 /* We use char because int might match the return type of a gcc2
12970 builtin and then its argument prototype would still apply. */
12980 rm -f conftest.
$ac_objext conftest
$ac_exeext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12982 (eval $ac_link) 2>conftest.er1
12984 grep -v '^ *+' conftest.er1
>conftest.err
12986 cat conftest.err
>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try
='test -z "$ac_cxx_werror_flag"
12990 || test ! -s conftest.err'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try
='test -s conftest$ac_exeext'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 ac_cv_lib_dl_dlopen
=yes
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.
$ac_ext >&5
13007 ac_cv_lib_dl_dlopen
=no
13009 rm -f conftest.err conftest.
$ac_objext \
13010 conftest
$ac_exeext conftest.
$ac_ext
13011 LIBS
=$ac_check_lib_save_LIBS
13013 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13014 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13015 if test $ac_cv_lib_dl_dlopen = yes; then
13016 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13018 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13019 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13020 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 ac_check_lib_save_LIBS
=$LIBS
13024 LIBS
="-lsvld $LIBS"
13025 cat >conftest.
$ac_ext <<_ACEOF
13028 cat confdefs.h
>>conftest.
$ac_ext
13029 cat >>conftest.
$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13032 /* Override any gcc2 internal prototype to avoid an error. */
13036 /* We use char because int might match the return type of a gcc2
13037 builtin and then its argument prototype would still apply. */
13047 rm -f conftest.
$ac_objext conftest
$ac_exeext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13049 (eval $ac_link) 2>conftest.er1
13051 grep -v '^ *+' conftest.er1
>conftest.err
13053 cat conftest.err
>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
13056 { ac_try
='test -z "$ac_cxx_werror_flag"
13057 || test ! -s conftest.err'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try
='test -s conftest$ac_exeext'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_cv_lib_svld_dlopen
=yes
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.
$ac_ext >&5
13074 ac_cv_lib_svld_dlopen
=no
13076 rm -f conftest.err conftest.
$ac_objext \
13077 conftest
$ac_exeext conftest.
$ac_ext
13078 LIBS
=$ac_check_lib_save_LIBS
13080 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13081 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13082 if test $ac_cv_lib_svld_dlopen = yes; then
13083 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
13085 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13086 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13087 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 ac_check_lib_save_LIBS
=$LIBS
13092 cat >conftest.
$ac_ext <<_ACEOF
13095 cat confdefs.h
>>conftest.
$ac_ext
13096 cat >>conftest.
$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13099 /* Override any gcc2 internal prototype to avoid an error. */
13103 /* We use char because int might match the return type of a gcc2
13104 builtin and then its argument prototype would still apply. */
13114 rm -f conftest.
$ac_objext conftest
$ac_exeext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13116 (eval $ac_link) 2>conftest.er1
13118 grep -v '^ *+' conftest.er1
>conftest.err
13120 cat conftest.err
>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try
='test -z "$ac_cxx_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try
='test -s conftest$ac_exeext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_cv_lib_dld_dld_link
=yes
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.
$ac_ext >&5
13141 ac_cv_lib_dld_dld_link
=no
13143 rm -f conftest.err conftest.
$ac_objext \
13144 conftest
$ac_exeext conftest.
$ac_ext
13145 LIBS
=$ac_check_lib_save_LIBS
13147 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13148 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13149 if test $ac_cv_lib_dld_dld_link = yes; then
13150 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
13171 if test "x$lt_cv_dlopen" != xno
; then
13177 case $lt_cv_dlopen in
13179 save_CPPFLAGS
="$CPPFLAGS"
13180 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
13182 save_LDFLAGS
="$LDFLAGS"
13183 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
13186 LIBS
="$lt_cv_dlopen_libs $LIBS"
13188 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13189 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13190 if test "${lt_cv_dlopen_self+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 if test "$cross_compiling" = yes; then :
13194 lt_cv_dlopen_self
=cross
13196 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13197 lt_status
=$lt_dlunknown
13198 cat > conftest.
$ac_ext <<EOF
13199 #line 13199 "configure"
13200 #include "confdefs.h"
13209 # define LT_DLGLOBAL RTLD_GLOBAL
13212 # define LT_DLGLOBAL DL_GLOBAL
13214 # define LT_DLGLOBAL 0
13218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13219 find out it does not work in some platform. */
13220 #ifndef LT_DLLAZY_OR_NOW
13222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13225 # define LT_DLLAZY_OR_NOW DL_LAZY
13228 # define LT_DLLAZY_OR_NOW RTLD_NOW
13231 # define LT_DLLAZY_OR_NOW DL_NOW
13233 # define LT_DLLAZY_OR_NOW 0
13241 extern "C" void exit (int);
13244 void fnord() { int i=42;}
13247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13248 int status = $lt_dlunknown;
13252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13253 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13254 /* dlclose (self); */
13260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13261 (eval $ac_link) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13265 (.
/conftest
; exit; ) 2>/dev
/null
13267 case x
$lt_status in
13268 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
13269 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
13270 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
13273 # compilation failed
13274 lt_cv_dlopen_self
=no
13281 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13282 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13284 if test "x$lt_cv_dlopen_self" = xyes
; then
13285 LDFLAGS
="$LDFLAGS $link_static_flag"
13286 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13287 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13288 if test "${lt_cv_dlopen_self_static+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 if test "$cross_compiling" = yes; then :
13292 lt_cv_dlopen_self_static
=cross
13294 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13295 lt_status
=$lt_dlunknown
13296 cat > conftest.
$ac_ext <<EOF
13297 #line 13297 "configure"
13298 #include "confdefs.h"
13307 # define LT_DLGLOBAL RTLD_GLOBAL
13310 # define LT_DLGLOBAL DL_GLOBAL
13312 # define LT_DLGLOBAL 0
13316 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13317 find out it does not work in some platform. */
13318 #ifndef LT_DLLAZY_OR_NOW
13320 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13323 # define LT_DLLAZY_OR_NOW DL_LAZY
13326 # define LT_DLLAZY_OR_NOW RTLD_NOW
13329 # define LT_DLLAZY_OR_NOW DL_NOW
13331 # define LT_DLLAZY_OR_NOW 0
13339 extern "C" void exit (int);
13342 void fnord() { int i=42;}
13345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13346 int status = $lt_dlunknown;
13350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13351 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13352 /* dlclose (self); */
13358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13359 (eval $ac_link) 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13363 (.
/conftest
; exit; ) 2>/dev
/null
13365 case x
$lt_status in
13366 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
13367 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
13368 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
13371 # compilation failed
13372 lt_cv_dlopen_self_static
=no
13379 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13380 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13383 CPPFLAGS
="$save_CPPFLAGS"
13384 LDFLAGS
="$save_LDFLAGS"
13389 case $lt_cv_dlopen_self in
13390 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13391 *) enable_dlopen_self
=unknown
;;
13394 case $lt_cv_dlopen_self_static in
13395 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13396 *) enable_dlopen_self_static
=unknown
;;
13401 # The else clause should only fire when bootstrapping the
13402 # libtool distribution, otherwise you forgot to ship ltmain.sh
13403 # with your package, and you will get complaints that there are
13404 # no rules to generate ltmain.sh.
13405 if test -f "$ltmain"; then
13406 # See if we are running on zsh, and set the options which allow our commands through
13407 # without removal of \ escapes.
13408 if test -n "${ZSH_VERSION+set}" ; then
13409 setopt NO_GLOB_SUBST
13411 # Now quote all the things that may contain metacharacters while being
13412 # careful not to overquote the AC_SUBSTed values. We take copies of the
13413 # variables and quote the copies for generation of the libtool script.
13414 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13416 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13417 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13418 deplibs_check_method reload_flag reload_cmds need_locks \
13419 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13420 lt_cv_sys_global_symbol_to_c_name_address \
13421 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13422 old_postinstall_cmds old_postuninstall_cmds \
13426 lt_prog_compiler_wl_CXX \
13427 lt_prog_compiler_pic_CXX \
13428 lt_prog_compiler_static_CXX \
13429 lt_prog_compiler_no_builtin_flag_CXX \
13430 export_dynamic_flag_spec_CXX \
13431 thread_safe_flag_spec_CXX \
13432 whole_archive_flag_spec_CXX \
13433 enable_shared_with_static_runtimes_CXX \
13434 old_archive_cmds_CXX \
13435 old_archive_from_new_cmds_CXX \
13436 predep_objects_CXX \
13437 postdep_objects_CXX \
13440 compiler_lib_search_path_CXX \
13442 archive_expsym_cmds_CXX \
13443 postinstall_cmds_CXX \
13444 postuninstall_cmds_CXX \
13445 old_archive_from_expsyms_cmds_CXX \
13446 allow_undefined_flag_CXX \
13447 no_undefined_flag_CXX \
13448 export_symbols_cmds_CXX \
13449 hardcode_libdir_flag_spec_CXX \
13450 hardcode_libdir_flag_spec_ld_CXX \
13451 hardcode_libdir_separator_CXX \
13452 hardcode_automatic_CXX \
13454 module_expsym_cmds_CXX \
13455 lt_cv_prog_compiler_c_o_CXX \
13456 exclude_expsyms_CXX \
13457 include_expsyms_CXX
; do
13460 old_archive_cmds_CXX | \
13461 old_archive_from_new_cmds_CXX | \
13462 archive_cmds_CXX | \
13463 archive_expsym_cmds_CXX | \
13464 module_cmds_CXX | \
13465 module_expsym_cmds_CXX | \
13466 old_archive_from_expsyms_cmds_CXX | \
13467 export_symbols_cmds_CXX | \
13468 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13469 postinstall_cmds | postuninstall_cmds | \
13470 old_postinstall_cmds | old_postuninstall_cmds | \
13471 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13472 # Double-quote double-evaled strings.
13473 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13482 *'\$0 --fallback-echo"')
13483 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13489 cat <<__EOF__ >> "$cfgfile"
13490 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13492 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13494 # Shell to use when invoking shell scripts.
13497 # Whether or not to build shared libraries.
13498 build_libtool_libs=$enable_shared
13500 # Whether or not to build static libraries.
13501 build_old_libs=$enable_static
13503 # Whether or not to add -lc for building shared libraries.
13504 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13506 # Whether or not to disallow shared libs when runtime libs are static
13507 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13509 # Whether or not to optimize for fast installation.
13510 fast_install=$enable_fast_install
13513 host_alias=$host_alias
13517 # The build system.
13518 build_alias=$build_alias
13522 # An echo program that does not interpret backslashes.
13527 AR_FLAGS=$lt_AR_FLAGS
13532 # A language-specific compiler.
13533 CC=$lt_compiler_CXX
13535 # Is the compiler the GNU C compiler?
13541 # The linker used to build libraries.
13544 # Whether we need hard or soft links.
13547 # A BSD-compatible nm program.
13550 # A symbol stripping program
13553 # Used to examine libraries when file_magic_cmd begins "file"
13554 MAGIC_CMD=$MAGIC_CMD
13556 # Used on cygwin: DLL creation program.
13559 # Used on cygwin: object dumper.
13562 # Used on cygwin: assembler.
13565 # The name of the directory that contains temporary libtool files.
13568 # How to create reloadable object files.
13569 reload_flag=$lt_reload_flag
13570 reload_cmds=$lt_reload_cmds
13572 # How to pass a linker flag through the compiler.
13573 wl=$lt_lt_prog_compiler_wl_CXX
13575 # Object file suffix (normally "o").
13576 objext="$ac_objext"
13578 # Old archive suffix (normally "a").
13581 # Shared library suffix (normally ".so").
13582 shrext_cmds='$shrext_cmds'
13584 # Executable file suffix (normally "").
13587 # Additional compiler flags for building library objects.
13588 pic_flag=$lt_lt_prog_compiler_pic_CXX
13591 # What is the maximum length of a command?
13592 max_cmd_len=$lt_cv_sys_max_cmd_len
13594 # Does compiler simultaneously support -c and -o options?
13595 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13597 # Must we lock files when doing compilation?
13598 need_locks=$lt_need_locks
13600 # Do we need the lib prefix for modules?
13601 need_lib_prefix=$need_lib_prefix
13603 # Do we need a version for libraries?
13604 need_version=$need_version
13606 # Whether dlopen is supported.
13607 dlopen_support=$enable_dlopen
13609 # Whether dlopen of programs is supported.
13610 dlopen_self=$enable_dlopen_self
13612 # Whether dlopen of statically linked programs is supported.
13613 dlopen_self_static=$enable_dlopen_self_static
13615 # Compiler flag to prevent dynamic linking.
13616 link_static_flag=$lt_lt_prog_compiler_static_CXX
13618 # Compiler flag to turn off builtin functions.
13619 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13621 # Compiler flag to allow reflexive dlopens.
13622 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13624 # Compiler flag to generate shared objects directly from archives.
13625 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13627 # Compiler flag to generate thread-safe objects.
13628 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13630 # Library versioning type.
13631 version_type=$version_type
13633 # Format of library name prefix.
13634 libname_spec=$lt_libname_spec
13636 # List of archive names. First name is the real one, the rest are links.
13637 # The last name is the one that the linker finds with -lNAME.
13638 library_names_spec=$lt_library_names_spec
13640 # The coded name of the library, if different from the real name.
13641 soname_spec=$lt_soname_spec
13643 # Commands used to build and install an old-style archive.
13645 old_archive_cmds=$lt_old_archive_cmds_CXX
13646 old_postinstall_cmds=$lt_old_postinstall_cmds
13647 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13649 # Create an old-style archive from a shared archive.
13650 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13652 # Create a temporary old-style archive to link instead of a shared archive.
13653 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13655 # Commands used to build and install a shared archive.
13656 archive_cmds=$lt_archive_cmds_CXX
13657 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13658 postinstall_cmds=$lt_postinstall_cmds
13659 postuninstall_cmds=$lt_postuninstall_cmds
13661 # Commands used to build a loadable module (assumed same as above if empty)
13662 module_cmds=$lt_module_cmds_CXX
13663 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13665 # Commands to strip libraries.
13666 old_striplib=$lt_old_striplib
13667 striplib=$lt_striplib
13669 # Dependencies to place before the objects being linked to create a
13671 predep_objects=$lt_predep_objects_CXX
13673 # Dependencies to place after the objects being linked to create a
13675 postdep_objects=$lt_postdep_objects_CXX
13677 # Dependencies to place before the objects being linked to create a
13679 predeps=$lt_predeps_CXX
13681 # Dependencies to place after the objects being linked to create a
13683 postdeps=$lt_postdeps_CXX
13685 # The library search path used internally by the compiler when linking
13686 # a shared library.
13687 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13689 # Method to check whether dependent libraries are shared objects.
13690 deplibs_check_method=$lt_deplibs_check_method
13692 # Command to use when deplibs_check_method == file_magic.
13693 file_magic_cmd=$lt_file_magic_cmd
13695 # Flag that allows shared libraries with undefined symbols to be built.
13696 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13698 # Flag that forces no undefined symbols.
13699 no_undefined_flag=$lt_no_undefined_flag_CXX
13701 # Commands used to finish a libtool library installation in a directory.
13702 finish_cmds=$lt_finish_cmds
13704 # Same as above, but a single script fragment to be evaled but not shown.
13705 finish_eval=$lt_finish_eval
13707 # Take the output of nm and produce a listing of raw symbols and C names.
13708 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13710 # Transform the output of nm in a proper C declaration
13711 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13713 # Transform the output of nm in a C name address pair
13714 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13716 # This is the shared library runtime path variable.
13717 runpath_var=$runpath_var
13719 # This is the shared library path variable.
13720 shlibpath_var=$shlibpath_var
13722 # Is shlibpath searched before the hard-coded library search path?
13723 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13725 # How to hardcode a shared library path into an executable.
13726 hardcode_action=$hardcode_action_CXX
13728 # Whether we should hardcode library paths into libraries.
13729 hardcode_into_libs=$hardcode_into_libs
13731 # Flag to hardcode \$libdir into a binary during linking.
13732 # This must work even if \$libdir does not exist.
13733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13735 # If ld is used when linking, flag to hardcode \$libdir into
13736 # a binary during linking. This must work even if \$libdir does
13738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13740 # Whether we need a single -rpath flag with a separated argument.
13741 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13743 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13744 # resulting binary.
13745 hardcode_direct=$hardcode_direct_CXX
13747 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13748 # resulting binary.
13749 hardcode_minus_L=$hardcode_minus_L_CXX
13751 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13752 # the resulting binary.
13753 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13755 # Set to yes if building a shared library automatically hardcodes DIR into the library
13756 # and all subsequent libraries and executables linked against it.
13757 hardcode_automatic=$hardcode_automatic_CXX
13759 # Variables whose values should be saved in libtool wrapper scripts and
13760 # restored at relink time.
13761 variables_saved_for_relink="$variables_saved_for_relink"
13763 # Whether libtool must link a program against all its dependency libraries.
13764 link_all_deplibs=$link_all_deplibs_CXX
13766 # Compile-time system search path for libraries
13767 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13769 # Run-time system search path for libraries
13770 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13772 # Fix the shell variable \$srcfile for the compiler.
13773 fix_srcfile_path="$fix_srcfile_path_CXX"
13775 # Set to yes if exported symbols are required.
13776 always_export_symbols=$always_export_symbols_CXX
13778 # The commands to list exported symbols.
13779 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13781 # The commands to extract the exported symbol list from a shared archive.
13782 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13784 # Symbols that should not be listed in the preloaded symbols.
13785 exclude_expsyms=$lt_exclude_expsyms_CXX
13787 # Symbols that must always be exported.
13788 include_expsyms=$lt_include_expsyms_CXX
13790 # ### END LIBTOOL TAG CONFIG: $tagname
13796 # If there is no Makefile yet, we rely on a make rule to execute
13797 # `config.status --recheck' to rerun these tests and create the
13798 # libtool script then.
13799 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13800 if test -f "$ltmain_in"; then
13801 test -f Makefile
&& make "$ltmain"
13807 ac_cpp
='$CPP $CPPFLAGS'
13808 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13809 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13810 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13816 with_gnu_ldcxx
=$with_gnu_ld
13817 with_gnu_ld
=$lt_save_with_gnu_ld
13818 lt_cv_path_LDCXX
=$lt_cv_path_LD
13819 lt_cv_path_LD
=$lt_save_path_LD
13820 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13821 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13829 if test -n "$F77" && test "X$F77" != "Xno"; then
13832 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13833 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13834 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13837 archive_cmds_need_lc_F77
=no
13838 allow_undefined_flag_F77
=
13839 always_export_symbols_F77
=no
13840 archive_expsym_cmds_F77
=
13841 export_dynamic_flag_spec_F77
=
13842 hardcode_direct_F77
=no
13843 hardcode_libdir_flag_spec_F77
=
13844 hardcode_libdir_flag_spec_ld_F77
=
13845 hardcode_libdir_separator_F77
=
13846 hardcode_minus_L_F77
=no
13847 hardcode_automatic_F77
=no
13849 module_expsym_cmds_F77
=
13850 link_all_deplibs_F77
=unknown
13851 old_archive_cmds_F77
=$old_archive_cmds
13852 no_undefined_flag_F77
=
13853 whole_archive_flag_spec_F77
=
13854 enable_shared_with_static_runtimes_F77
=no
13856 # Source file extension for f77 test sources.
13859 # Object file extension for compiled f77 test sources.
13863 # Code to be used in simple compile tests
13864 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13866 # Code to be used in simple link tests
13867 lt_simple_link_test_code
=" program t\n end\n"
13869 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13871 # If no C compiler was specified, use CC.
13874 # Allow CC to be a program name with arguments.
13878 # save warnings/boilerplate of simple test code
13879 ac_outfile
=conftest.
$ac_objext
13880 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
13881 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
13882 _lt_compiler_boilerplate
=`cat conftest.err`
13885 ac_outfile
=conftest.
$ac_objext
13886 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
13887 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
13888 _lt_linker_boilerplate
=`cat conftest.err`
13892 # Allow CC to be a program name with arguments.
13897 for cc_temp
in $compiler""; do
13899 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13900 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13905 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13908 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13909 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13910 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13911 echo "${ECHO_T}$can_build_shared" >&6
13913 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13914 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13915 test "$can_build_shared" = "no" && enable_shared
=no
13917 # On AIX, shared libraries and static libraries use the same namespace, and
13918 # are all built from PIC.
13921 test "$enable_shared" = yes && enable_static
=no
13922 if test -n "$RANLIB"; then
13923 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13924 postinstall_cmds
='$RANLIB $lib'
13928 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13929 test "$enable_shared" = yes && enable_static
=no
13933 echo "$as_me:$LINENO: result: $enable_shared" >&5
13934 echo "${ECHO_T}$enable_shared" >&6
13936 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13937 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13938 # Make sure either enable_shared or enable_static is yes.
13939 test "$enable_shared" = yes || enable_static
=yes
13940 echo "$as_me:$LINENO: result: $enable_static" >&5
13941 echo "${ECHO_T}$enable_static" >&6
13943 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
13948 lt_prog_compiler_wl_F77
=
13949 lt_prog_compiler_pic_F77
=
13950 lt_prog_compiler_static_F77
=
13952 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13953 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13955 if test "$GCC" = yes; then
13956 lt_prog_compiler_wl_F77
='-Wl,'
13957 lt_prog_compiler_static_F77
='-static'
13961 # All AIX code is PIC.
13962 if test "$host_cpu" = ia64
; then
13963 # AIX 5 now supports IA64 processor
13964 lt_prog_compiler_static_F77
='-Bstatic'
13969 # FIXME: we need at least 68020 code to build shared libraries, but
13970 # adding the `-m68020' flag to GCC prevents building anything better,
13972 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13975 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13976 # PIC is the default for these OSes.
13979 mingw
* | pw32
* | os2
*)
13980 # This hack is so that the source file can tell whether it is being
13981 # built for inclusion in a dll (and should export symbols for example).
13982 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13985 darwin
* | rhapsody
*)
13986 # PIC is the default on this platform
13987 # Common symbols not allowed in MH_DYLIB files
13988 lt_prog_compiler_pic_F77
='-fno-common'
13992 # Just because we use GCC doesn't mean we suddenly get shared libraries
13993 # on systems that don't support them.
13994 lt_prog_compiler_can_build_shared_F77
=no
13999 if test -d /usr
/nec
; then
14000 lt_prog_compiler_pic_F77
=-Kconform_pic
14005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14006 # not for PA HP-UX.
14007 case "$host_cpu" in
14012 lt_prog_compiler_pic_F77
='-fPIC'
14018 lt_prog_compiler_pic_F77
='-fPIC'
14022 # PORTME Check for flag to pass linker flags through the system compiler.
14025 lt_prog_compiler_wl_F77
='-Wl,'
14026 if test "$host_cpu" = ia64
; then
14027 # AIX 5 now supports IA64 processor
14028 lt_prog_compiler_static_F77
='-Bstatic'
14030 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
14034 # PIC is the default on this platform
14035 # Common symbols not allowed in MH_DYLIB files
14036 case $cc_basename in
14038 lt_prog_compiler_pic_F77
='-qnocommon'
14039 lt_prog_compiler_wl_F77
='-Wl,'
14044 mingw
* | pw32
* | os2
*)
14045 # This hack is so that the source file can tell whether it is being
14046 # built for inclusion in a dll (and should export symbols for example).
14047 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14050 hpux9
* | hpux10
* | hpux11
*)
14051 lt_prog_compiler_wl_F77
='-Wl,'
14052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14053 # not for PA HP-UX.
14054 case "$host_cpu" in
14059 lt_prog_compiler_pic_F77
='+Z'
14062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14063 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
14066 irix5
* | irix6
* | nonstopux
*)
14067 lt_prog_compiler_wl_F77
='-Wl,'
14068 # PIC (with -KPIC) is the default.
14069 lt_prog_compiler_static_F77
='-non_shared'
14073 lt_prog_compiler_pic_F77
='-KPIC'
14074 lt_prog_compiler_static_F77
='-Bstatic'
14078 case $cc_basename in
14080 lt_prog_compiler_wl_F77
='-Wl,'
14081 lt_prog_compiler_pic_F77
='-KPIC'
14082 lt_prog_compiler_static_F77
='-static'
14084 pgcc
* | pgf77
* | pgf90
*)
14085 # Portland Group compilers (*not* the Pentium gcc compiler,
14086 # which looks to be a dead project)
14087 lt_prog_compiler_wl_F77
='-Wl,'
14088 lt_prog_compiler_pic_F77
='-fpic'
14089 lt_prog_compiler_static_F77
='-static'
14092 lt_prog_compiler_wl_F77
='-Wl,'
14093 # All Alpha code is PIC.
14094 lt_prog_compiler_static_F77
='-non_shared'
14099 osf3
* | osf4
* | osf5
*)
14100 lt_prog_compiler_wl_F77
='-Wl,'
14101 # All OSF/1 code is PIC.
14102 lt_prog_compiler_static_F77
='-non_shared'
14106 lt_prog_compiler_pic_F77
='-Kpic'
14107 lt_prog_compiler_static_F77
='-dn'
14111 lt_prog_compiler_pic_F77
='-KPIC'
14112 lt_prog_compiler_static_F77
='-Bstatic'
14113 case $cc_basename in
14114 f77
* | f90
* | f95
*)
14115 lt_prog_compiler_wl_F77
='-Qoption ld ';;
14117 lt_prog_compiler_wl_F77
='-Wl,';;
14122 lt_prog_compiler_wl_F77
='-Qoption ld '
14123 lt_prog_compiler_pic_F77
='-PIC'
14124 lt_prog_compiler_static_F77
='-Bstatic'
14127 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
14128 lt_prog_compiler_wl_F77
='-Wl,'
14129 lt_prog_compiler_pic_F77
='-KPIC'
14130 lt_prog_compiler_static_F77
='-Bstatic'
14134 if test -d /usr
/nec
;then
14135 lt_prog_compiler_pic_F77
='-Kconform_pic'
14136 lt_prog_compiler_static_F77
='-Bstatic'
14141 lt_prog_compiler_wl_F77
='-Wl,'
14142 lt_prog_compiler_can_build_shared_F77
=no
14146 lt_prog_compiler_pic_F77
='-pic'
14147 lt_prog_compiler_static_F77
='-Bstatic'
14151 lt_prog_compiler_can_build_shared_F77
=no
14156 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14157 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14160 # Check to make sure the PIC flag actually works.
14162 if test -n "$lt_prog_compiler_pic_F77"; then
14164 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14165 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14166 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 lt_prog_compiler_pic_works_F77
=no
14170 ac_outfile
=conftest.
$ac_objext
14171 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14172 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
14173 # Insert the option either (1) after the last *FLAGS variable, or
14174 # (2) before a word containing "conftest.", or (3) at the end.
14175 # Note that $ac_compile itself does not contain backslashes and begins
14176 # with a dollar sign (not a hyphen), so the echo should work correctly.
14177 # The option is referenced via a variable to avoid confusing sed.
14178 lt_compile
=`echo "$ac_compile" | $SED \
14179 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14181 -e 's:$: $lt_compiler_flag:'`
14182 (eval echo "\"\$as_me:14182: $lt_compile\"" >&5)
14183 (eval "$lt_compile" 2>conftest.err
)
14185 cat conftest.err
>&5
14186 echo "$as_me:14186: \$? = $ac_status" >&5
14187 if (exit $ac_status) && test -s "$ac_outfile"; then
14188 # The compiler can only warn and ignore the option if not recognized
14189 # So say no if there are warnings other than the usual output.
14190 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
14191 $SED '/^$/d' conftest.err
>conftest.er2
14192 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14193 lt_prog_compiler_pic_works_F77
=yes
14199 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14200 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14202 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14203 case $lt_prog_compiler_pic_F77 in
14205 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14208 lt_prog_compiler_pic_F77
=
14209 lt_prog_compiler_can_build_shared_F77
=no
14214 # For platforms which do not support PIC, -DPIC is meaningless:
14216 lt_prog_compiler_pic_F77
=
14219 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14223 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14224 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14225 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 lt_cv_prog_compiler_c_o_F77
=no
14229 $rm -r conftest
2>/dev
/null
14233 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14235 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14236 # Insert the option either (1) after the last *FLAGS variable, or
14237 # (2) before a word containing "conftest.", or (3) at the end.
14238 # Note that $ac_compile itself does not contain backslashes and begins
14239 # with a dollar sign (not a hyphen), so the echo should work correctly.
14240 lt_compile
=`echo "$ac_compile" | $SED \
14241 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14243 -e 's:$: $lt_compiler_flag:'`
14244 (eval echo "\"\$as_me:14244: $lt_compile\"" >&5)
14245 (eval "$lt_compile" 2>out
/conftest.err
)
14247 cat out
/conftest.err
>&5
14248 echo "$as_me:14248: \$? = $ac_status" >&5
14249 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14251 # The compiler can only warn and ignore the option if not recognized
14252 # So say no if there are warnings
14253 $echo "X$_lt_compiler_boilerplate" |
$Xsed > out
/conftest.exp
14254 $SED '/^$/d' out
/conftest.err
>out
/conftest.er2
14255 if test ! -s out
/conftest.err ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14256 lt_cv_prog_compiler_c_o_F77
=yes
14261 # SGI C++ compiler will create directory out/ii_files/ for
14262 # template instantiation
14263 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14264 $rm out
/* && rmdir out
14270 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14271 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14274 hard_links
="nottested"
14275 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14276 # do not overwrite the value of need_locks provided by the user
14277 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14278 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14281 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14283 ln conftest.a conftest.b
2>&5 || hard_links
=no
14284 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14285 echo "$as_me:$LINENO: result: $hard_links" >&5
14286 echo "${ECHO_T}$hard_links" >&6
14287 if test "$hard_links" = no
; then
14288 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14289 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14296 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14297 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14300 allow_undefined_flag_F77
=
14301 enable_shared_with_static_runtimes_F77
=no
14303 archive_expsym_cmds_F77
=
14304 old_archive_From_new_cmds_F77
=
14305 old_archive_from_expsyms_cmds_F77
=
14306 export_dynamic_flag_spec_F77
=
14307 whole_archive_flag_spec_F77
=
14308 thread_safe_flag_spec_F77
=
14309 hardcode_libdir_flag_spec_F77
=
14310 hardcode_libdir_flag_spec_ld_F77
=
14311 hardcode_libdir_separator_F77
=
14312 hardcode_direct_F77
=no
14313 hardcode_minus_L_F77
=no
14314 hardcode_shlibpath_var_F77
=unsupported
14315 link_all_deplibs_F77
=unknown
14316 hardcode_automatic_F77
=no
14318 module_expsym_cmds_F77
=
14319 always_export_symbols_F77
=no
14320 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14321 # include_expsyms should be a list of space-separated symbols to be *always*
14322 # included in the symbol list
14323 include_expsyms_F77
=
14324 # exclude_expsyms can be an extended regexp of symbols to exclude
14325 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14326 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14327 # as well as any symbol that contains `d'.
14328 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14329 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14330 # platforms (ab)use it in PIC code, but their linkers get confused if
14331 # the symbol is explicitly referenced. Since portable code cannot
14332 # rely on this symbol name, it's probably fine to never include it in
14333 # preloaded symbol tables.
14334 extract_expsyms_cmds
=
14335 # Just being paranoid about ensuring that cc_basename is set.
14336 for cc_temp
in $compiler""; do
14338 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14339 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14344 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14347 cygwin
* | mingw
* | pw32
*)
14348 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14349 # When not using gcc, we currently assume that we are using
14350 # Microsoft Visual C++.
14351 if test "$GCC" != yes; then
14361 if test "$with_gnu_ld" = yes; then
14362 # If archive_cmds runs LD, not CC, wlarc should be empty
14365 # Set some defaults for GNU ld with shared library support. These
14366 # are reset later if shared libraries are not supported. Putting them
14367 # here allows them to be overridden if necessary.
14368 runpath_var
=LD_RUN_PATH
14369 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14370 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14371 # ancient GNU ld didn't support --whole-archive et. al.
14372 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14373 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14375 whole_archive_flag_spec_F77
=
14377 supports_anon_versioning
=no
14378 case `$LD -v 2>/dev/null` in
14379 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14380 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14381 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14382 *\
2.11.
*) ;; # other 2.11 versions
14383 *) supports_anon_versioning
=yes ;;
14386 # See if GNU ld supports shared libraries.
14388 aix3
* | aix4
* | aix5
*)
14389 # On AIX/PPC, the GNU linker is very broken
14390 if test "$host_cpu" != ia64
; then
14394 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14395 *** to be unable to reliably create shared libraries on AIX.
14396 *** Therefore, libtool is disabling shared libraries support. If you
14397 *** really care for shared libraries, you may want to modify your PATH
14398 *** so that a non-GNU linker is found, and then restart.
14405 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)'
14406 hardcode_libdir_flag_spec_F77
='-L$libdir'
14407 hardcode_minus_L_F77
=yes
14409 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14410 # that the semantics of dynamic libraries on AmigaOS, at least up
14411 # to version 4, is to share data among multiple programs linked
14412 # with the same dynamic library. Since this doesn't match the
14413 # behavior of shared libraries on other platforms, we can't use
14419 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14420 allow_undefined_flag_F77
=unsupported
14421 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14422 # support --undefined. This deserves some investigation. FIXME
14423 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14429 cygwin
* | mingw
* | pw32
*)
14430 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14431 # as there is no search path for DLLs.
14432 hardcode_libdir_flag_spec_F77
='-L$libdir'
14433 allow_undefined_flag_F77
=unsupported
14434 always_export_symbols_F77
=no
14435 enable_shared_with_static_runtimes_F77
=yes
14436 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14438 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14439 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14440 # If the export-symbols file already is a .def file (1st line
14441 # is EXPORTS), use it as is; otherwise, prepend...
14442 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14443 cp $export_symbols $output_objdir/$soname.def;
14445 echo EXPORTS > $output_objdir/$soname.def;
14446 cat $export_symbols >> $output_objdir/$soname.def;
14448 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14455 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14457 case $cc_basename,$host_cpu in
14458 pgcc
*) # Portland Group C compiler
14459 whole_archive_flag_spec_F77
=
14461 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
14462 whole_archive_flag_spec_F77
=
14463 tmp_addflag
=' -fpic -Mnomain' ;;
14464 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14465 tmp_addflag
=' -i_dynamic' ;;
14466 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14467 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14468 ifc
* | ifort
*) # Intel Fortran compiler
14469 tmp_addflag
=' -nofor_main' ;;
14471 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14473 if test $supports_anon_versioning = yes; then
14474 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14476 $echo "local: *; };" >> $output_objdir/$libname.ver~
14477 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14485 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14486 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14489 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14490 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14495 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14500 *** create shared libraries on Solaris systems. Therefore, libtool
14501 *** is disabling shared libraries support. We urge you to upgrade GNU
14502 *** binutils to release 2.9.1 or newer. Another option is to modify
14503 *** your PATH or compiler configuration so that the native linker is
14504 *** used, and then restart.
14507 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14508 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14509 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14516 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14518 hardcode_direct_F77
=yes
14519 hardcode_shlibpath_var_F77
=no
14523 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14524 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14525 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14532 if test "$ld_shlibs_F77" = no
; then
14534 hardcode_libdir_flag_spec_F77
=
14535 export_dynamic_flag_spec_F77
=
14536 whole_archive_flag_spec_F77
=
14539 # PORTME fill in a description of your system's linker (not GNU ld)
14542 allow_undefined_flag_F77
=unsupported
14543 always_export_symbols_F77
=yes
14544 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'
14545 # Note: this linker hardcodes the directories in LIBPATH if there
14546 # are no directories specified by -L.
14547 hardcode_minus_L_F77
=yes
14548 if test "$GCC" = yes && test -z "$link_static_flag"; then
14549 # Neither direct hardcoding nor static linking is supported with a
14551 hardcode_direct_F77
=unsupported
14556 if test "$host_cpu" = ia64
; then
14557 # On IA64, the linker does run time linking by default, so we don't
14558 # have to do anything special.
14559 aix_use_runtimelinking
=no
14560 exp_sym_flag
='-Bexport'
14563 # If we're using GNU nm, then we don't want the "-C" option.
14564 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14565 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14566 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'
14568 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'
14570 aix_use_runtimelinking
=no
14572 # Test if we are trying to use run time linking or normal
14573 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14574 # need to do runtime linking.
14575 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14576 for ld_flag
in $LDFLAGS; do
14577 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14578 aix_use_runtimelinking
=yes
14584 exp_sym_flag
='-bexport'
14585 no_entry_flag
='-bnoentry'
14588 # When large executables or shared objects are built, AIX ld can
14589 # have problems creating the table of contents. If linking a library
14590 # or program results in "error TOC overflow" add -mminimal-toc to
14591 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14592 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14594 archive_cmds_F77
=''
14595 hardcode_direct_F77
=yes
14596 hardcode_libdir_separator_F77
=':'
14597 link_all_deplibs_F77
=yes
14599 if test "$GCC" = yes; then
14600 case $host_os in aix4.
[012]|aix4.
[012].
*)
14601 # We only want to do this on AIX 4.2 and lower, the check
14602 # below for broken collect2 doesn't work under 4.3+
14603 collect2name
=`${CC} -print-prog-name=collect2`
14604 if test -f "$collect2name" && \
14605 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14607 # We have reworked collect2
14608 hardcode_direct_F77
=yes
14610 # We have old collect2
14611 hardcode_direct_F77
=unsupported
14612 # It fails to find uninstalled libraries when the uninstalled
14613 # path is not listed in the libpath. Setting hardcode_minus_L
14614 # to unsupported forces relinking
14615 hardcode_minus_L_F77
=yes
14616 hardcode_libdir_flag_spec_F77
='-L$libdir'
14617 hardcode_libdir_separator_F77
=
14620 shared_flag
='-shared'
14621 if test "$aix_use_runtimelinking" = yes; then
14622 shared_flag
="$shared_flag "'${wl}-G'
14626 if test "$host_cpu" = ia64
; then
14627 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14628 # chokes on -Wl,-G. The following line is correct:
14631 if test "$aix_use_runtimelinking" = yes; then
14632 shared_flag
='${wl}-G'
14634 shared_flag
='${wl}-bM:SRE'
14639 # It seems that -bexpall does not export symbols beginning with
14640 # underscore (_), so it is better to generate a list of symbols to export.
14641 always_export_symbols_F77
=yes
14642 if test "$aix_use_runtimelinking" = yes; then
14643 # Warning - without using the other runtime loading flags (-brtl),
14644 # -berok will link without error, but may produce a broken library.
14645 allow_undefined_flag_F77
='-berok'
14646 # Determine the default libpath from the value encoded in an empty executable.
14647 cat >conftest.
$ac_ext <<_ACEOF
14652 rm -f conftest.
$ac_objext conftest
$ac_exeext
14653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14654 (eval $ac_link) 2>conftest.er1
14656 grep -v '^ *+' conftest.er1
>conftest.err
14658 cat conftest.err
>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try
='test -z "$ac_f77_werror_flag"
14662 || test ! -s conftest.err'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; } &&
14668 { ac_try
='test -s conftest$ac_exeext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14675 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14677 # Check for a 64-bit object if we didn't find anything.
14678 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; }
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.
$ac_ext >&5
14685 rm -f conftest.err conftest.
$ac_objext \
14686 conftest
$ac_exeext conftest.
$ac_ext
14687 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14689 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14690 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"
14692 if test "$host_cpu" = ia64; then
14693 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr
/lib
:/lib
'
14694 allow_undefined_flag_F77="-z nodefs"
14695 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"
14697 # Determine the default libpath from the value encoded in an empty executable.
14698 cat >conftest.$ac_ext <<_ACEOF
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705 (eval $ac_link) 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14711 (exit $ac_status); } &&
14712 { ac_try='test -z "$ac_f77_werror_flag"
14713 || test ! -s conftest.err'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14718 (exit $ac_status); }; } &&
14719 { ac_try='test -s conftest$ac_exeext'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14724 (exit $ac_status); }; }; then
14726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14728 # Check for a 64-bit object if we didn't find anything.
14729 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; }
14732 echo "$as_me: failed program was
:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14736 rm -f conftest.err conftest.$ac_objext \
14737 conftest$ac_exeext conftest.$ac_ext
14738 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
14740 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14741 # Warning - without using the other run time loading flags,
14742 # -berok will link without error, but may produce a broken library.
14743 no_undefined_flag_F77=' ${wl}-bernotok'
14744 allow_undefined_flag_F77=' ${wl}-berok'
14745 # -bexpall does not export symbols beginning with underscore (_)
14746 always_export_symbols_F77=yes
14747 # Exported symbols can be pulled into shared objects from archives
14748 whole_archive_flag_spec_F77=' '
14749 archive_cmds_need_lc_F77=yes
14750 # This is similar to how AIX traditionally builds it's shared libraries.
14751 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'
14757 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)'
14758 hardcode_libdir_flag_spec_F77
='-L$libdir'
14759 hardcode_minus_L_F77
=yes
14760 # see comment about different semantics on the GNU ld section
14765 export_dynamic_flag_spec_F77
=-rdynamic
14768 cygwin
* | mingw
* | pw32
*)
14769 # When not using gcc, we currently assume that we are using
14770 # Microsoft Visual C++.
14771 # hardcode_libdir_flag_spec is actually meaningless, as there is
14772 # no search path for DLLs.
14773 hardcode_libdir_flag_spec_F77
=' '
14774 allow_undefined_flag_F77
=unsupported
14775 # Tell ltmain to make .lib files, not .a files.
14777 # Tell ltmain to make .dll files, not .so files.
14779 # FIXME: Setting linknames here is a bad hack.
14780 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14781 # The linker will automatically build a .lib file if we build a DLL.
14782 old_archive_From_new_cmds_F77
='true'
14783 # FIXME: Should let the user specify the lib program.
14784 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14785 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14786 enable_shared_with_static_runtimes_F77
=yes
14789 darwin
* | rhapsody
*)
14791 rhapsody
* | darwin1.
[012])
14792 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14795 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14796 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14798 case ${MACOSX_DEPLOYMENT_TARGET} in
14800 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14803 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14809 archive_cmds_need_lc_F77
=no
14810 hardcode_direct_F77
=no
14811 hardcode_automatic_F77
=yes
14812 hardcode_shlibpath_var_F77
=unsupported
14813 whole_archive_flag_spec_F77
=''
14814 link_all_deplibs_F77
=yes
14815 if test "$GCC" = yes ; then
14816 output_verbose_link_cmd
='echo'
14817 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14818 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14820 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}'
14821 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}'
14823 case $cc_basename in
14825 output_verbose_link_cmd
='echo'
14826 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14827 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14829 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}'
14830 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}'
14840 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14841 hardcode_libdir_flag_spec_F77
='-L$libdir'
14842 hardcode_shlibpath_var_F77
=no
14849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14850 # support. Future versions do this automatically, but an explicit c++rt0.o
14851 # does not break anything, and helps significantly (at the cost of a little
14854 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14855 hardcode_libdir_flag_spec_F77
='-R$libdir'
14856 hardcode_direct_F77
=yes
14857 hardcode_shlibpath_var_F77
=no
14860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14862 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14863 hardcode_direct_F77
=yes
14864 hardcode_minus_L_F77
=yes
14865 hardcode_shlibpath_var_F77
=no
14868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14869 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14870 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14871 hardcode_libdir_flag_spec_F77
='-R$libdir'
14872 hardcode_direct_F77
=yes
14873 hardcode_shlibpath_var_F77
=no
14877 if test "$GCC" = yes; then
14878 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'
14880 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'
14882 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14883 hardcode_libdir_separator_F77
=:
14884 hardcode_direct_F77
=yes
14886 # hardcode_minus_L: Not really in the search PATH,
14887 # but as the default location of the library.
14888 hardcode_minus_L_F77
=yes
14889 export_dynamic_flag_spec_F77
='${wl}-E'
14893 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14894 case "$host_cpu" in
14896 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14899 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14903 case "$host_cpu" in
14905 archive_cmds_F77
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14908 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14912 if test "$with_gnu_ld" = no
; then
14913 case "$host_cpu" in
14915 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14916 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14917 hardcode_libdir_separator_F77
=:
14918 hardcode_direct_F77
=no
14919 hardcode_shlibpath_var_F77
=no
14922 hardcode_libdir_flag_spec_F77
='-L$libdir'
14923 hardcode_direct_F77
=no
14924 hardcode_shlibpath_var_F77
=no
14926 # hardcode_minus_L: Not really in the search PATH,
14927 # but as the default location of the library.
14928 hardcode_minus_L_F77
=yes
14931 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14932 hardcode_libdir_separator_F77
=:
14933 hardcode_direct_F77
=yes
14934 export_dynamic_flag_spec_F77
='${wl}-E'
14936 # hardcode_minus_L: Not really in the search PATH,
14937 # but as the default location of the library.
14938 hardcode_minus_L_F77
=yes
14944 irix5
* | irix6
* | nonstopux
*)
14945 if test "$GCC" = yes; then
14946 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'
14948 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'
14949 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14951 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14952 hardcode_libdir_separator_F77
=:
14953 link_all_deplibs_F77
=yes
14957 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14958 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14960 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14962 hardcode_libdir_flag_spec_F77
='-R$libdir'
14963 hardcode_direct_F77
=yes
14964 hardcode_shlibpath_var_F77
=no
14968 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14969 hardcode_direct_F77
=yes
14970 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14971 hardcode_libdir_separator_F77
=:
14972 hardcode_shlibpath_var_F77
=no
14976 hardcode_direct_F77
=yes
14977 hardcode_shlibpath_var_F77
=no
14978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14979 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14980 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14981 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14982 export_dynamic_flag_spec_F77
='${wl}-E'
14985 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14986 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14987 hardcode_libdir_flag_spec_F77
='-R$libdir'
14990 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14991 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14998 hardcode_libdir_flag_spec_F77
='-L$libdir'
14999 hardcode_minus_L_F77
=yes
15000 allow_undefined_flag_F77
=unsupported
15001 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'
15002 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15006 if test "$GCC" = yes; then
15007 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15008 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'
15010 allow_undefined_flag_F77
=' -expect_unresolved \*'
15011 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'
15013 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15014 hardcode_libdir_separator_F77
=:
15017 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15018 if test "$GCC" = yes; then
15019 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15020 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'
15021 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15023 allow_undefined_flag_F77
=' -expect_unresolved \*'
15024 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'
15025 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~
15026 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15028 # Both c and cxx compiler support -rpath directly
15029 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
15031 hardcode_libdir_separator_F77
=:
15035 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036 hardcode_shlibpath_var_F77
=no
15037 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15038 runpath_var
=LD_RUN_PATH
15039 hardcode_runpath_var
=yes
15043 no_undefined_flag_F77
=' -z text'
15044 if test "$GCC" = yes; then
15046 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15047 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15048 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15051 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15052 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15055 hardcode_libdir_flag_spec_F77
='-R$libdir'
15056 hardcode_shlibpath_var_F77
=no
15058 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15060 # The compiler driver will combine linker options so we
15061 # cannot just pass the convience library names through
15062 # without $wl, iff we do not link with $LD.
15063 # Luckily, gcc supports the same syntax we need for Sun Studio.
15064 # Supported since Solaris 2.6 (maybe 2.5.1?)
15067 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
15069 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15072 link_all_deplibs_F77
=yes
15076 if test "x$host_vendor" = xsequent
; then
15077 # Use $CC to link under sequent, because it throws in some extra .o
15078 # files that make .init and .fini sections work.
15079 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15081 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15083 hardcode_libdir_flag_spec_F77
='-L$libdir'
15084 hardcode_direct_F77
=yes
15085 hardcode_minus_L_F77
=yes
15086 hardcode_shlibpath_var_F77
=no
15090 case $host_vendor in
15092 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15093 hardcode_direct_F77
=yes # is this really true???
15096 ## LD is ld it makes a PLAMLIB
15097 ## CC just makes a GrossModule.
15098 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15099 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15100 hardcode_direct_F77
=no
15103 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15107 runpath_var
='LD_RUN_PATH'
15108 hardcode_shlibpath_var_F77
=no
15112 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15113 hardcode_shlibpath_var_F77
=no
15114 export_dynamic_flag_spec_F77
='-Bexport'
15118 if test -d /usr
/nec
; then
15119 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120 hardcode_shlibpath_var_F77
=no
15121 runpath_var
=LD_RUN_PATH
15122 hardcode_runpath_var
=yes
15128 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15129 hardcode_direct_F77
=yes
15130 hardcode_minus_L_F77
=no
15131 hardcode_shlibpath_var_F77
=no
15132 hardcode_runpath_var
=yes
15133 runpath_var
=LD_RUN_PATH
15136 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
15137 no_undefined_flag_F77
='${wl}-z ${wl}text'
15138 if test "$GCC" = yes; then
15139 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15141 archive_cmds_F77
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15143 runpath_var
='LD_RUN_PATH'
15144 hardcode_shlibpath_var_F77
=no
15148 no_undefined_flag_F77
=' -z text'
15149 # $CC -shared without GNU ld will not create a library from C++
15150 # object files and a static libstdc++, better avoid it by now
15151 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15153 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15154 hardcode_libdir_flag_spec_F77
=
15155 hardcode_shlibpath_var_F77
=no
15156 runpath_var
='LD_RUN_PATH'
15160 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15161 hardcode_libdir_flag_spec_F77
='-L$libdir'
15162 hardcode_shlibpath_var_F77
=no
15171 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15172 echo "${ECHO_T}$ld_shlibs_F77" >&6
15173 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15175 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15176 if test "$GCC" = yes; then
15177 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15181 # Do we need to explicitly link libc?
15183 case "x$archive_cmds_need_lc_F77" in
15185 # Assume -lc should be added
15186 archive_cmds_need_lc_F77
=yes
15188 if test "$enable_shared" = yes && test "$GCC" = yes; then
15189 case $archive_cmds_F77 in
15191 # FIXME: we may have to deal with multi-command sequences.
15194 # Test whether the compiler implicitly links with -lc since on some
15195 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15196 # to ld, don't add -lc before -lgcc.
15197 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15198 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15200 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203 (eval $ac_compile) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } 2>conftest.err
; then
15209 libobjs
=conftest.
$ac_objext
15211 wl
=$lt_prog_compiler_wl_F77
15217 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15218 allow_undefined_flag_F77
=
15219 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15220 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }
15225 archive_cmds_need_lc_F77
=no
15227 archive_cmds_need_lc_F77
=yes
15229 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15231 cat conftest.err
1>&5
15234 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15235 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15242 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15243 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15244 library_names_spec
=
15245 libname_spec
='lib$name'
15249 postuninstall_cmds
=
15253 shlibpath_overrides_runpath
=unknown
15255 dynamic_linker
="$host_os ld.so"
15256 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15257 if test "$GCC" = yes; then
15258 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15259 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15260 # if the path contains ";" then we assume it to be the separator
15261 # otherwise default to the standard path separator (i.e. ":") - it is
15262 # assumed that no part of a normal pathname contains ";" but that should
15263 # okay in the real world where ";" in dirpaths is itself problematic.
15264 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15266 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15269 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15271 need_lib_prefix
=unknown
15272 hardcode_into_libs
=no
15274 # when you set need_version to no, make sure it does not cause -set_version
15275 # flags to be left without arguments
15276 need_version
=unknown
15281 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15282 shlibpath_var
=LIBPATH
15284 # AIX 3 has no versioning support, so we append a major version to the name.
15285 soname_spec
='${libname}${release}${shared_ext}$major'
15292 hardcode_into_libs
=yes
15293 if test "$host_cpu" = ia64
; then
15294 # AIX 5 supports IA64
15295 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15296 shlibpath_var
=LD_LIBRARY_PATH
15298 # With GCC up to 2.95.x, collect2 would create an import file
15299 # for dependence libraries. The import file would start with
15300 # the line `#! .'. This would cause the generated library to
15301 # depend on `.', always an invalid library. This was fixed in
15302 # development snapshots of GCC prior to 3.0.
15304 aix4 | aix4.
[01] | aix4.
[01].
*)
15305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15307 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15310 can_build_shared
=no
15314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15315 # soname into executable. Probably we can add versioning support to
15316 # collect2, so additional links can be useful in future.
15317 if test "$aix_use_runtimelinking" = yes; then
15318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15319 # instead of lib<name>.a to let people know that these are not
15320 # typical AIX shared libraries.
15321 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323 # We preserve .a as extension for shared libraries through AIX4.2
15324 # and later when we are not doing run time linking.
15325 library_names_spec
='${libname}${release}.a $libname.a'
15326 soname_spec
='${libname}${release}${shared_ext}$major'
15328 shlibpath_var
=LIBPATH
15333 library_names_spec
='$libname.ixlibrary $libname.a'
15334 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15335 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'
15339 library_names_spec
='${libname}${shared_ext}'
15340 dynamic_linker
="$host_os ld.so"
15341 shlibpath_var
=LIBRARY_PATH
15347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348 soname_spec
='${libname}${release}${shared_ext}$major'
15349 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15350 shlibpath_var
=LD_LIBRARY_PATH
15351 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15352 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15353 # the default ld.so.conf also contains /usr/contrib/lib and
15354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15355 # libtool to hard-code these into programs
15358 cygwin
* | mingw
* | pw32
*)
15359 version_type
=windows
15364 case $GCC,$host_os in
15365 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15366 library_names_spec
='$libname.dll.a'
15367 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15368 postinstall_cmds
='base_file=`basename \${file}`~
15369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15370 dldir=$destdir/`dirname \$dlpath`~
15371 test -d \$dldir || mkdir -p \$dldir~
15372 $install_prog $dir/$dlname \$dldir/$dlname'
15373 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15374 dlpath=$dir/\$dldll~
15376 shlibpath_overrides_runpath
=yes
15380 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15381 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15382 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15385 # MinGW DLLs use traditional 'lib' prefix
15386 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15387 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15388 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15389 # It is most probably a Windows format PATH printed by
15390 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15391 # path with ; separators, and with drive letters. We can handle the
15392 # drive letters (cygwin fileutils understands them), so leave them,
15393 # especially as we might pass files found there to a mingw objdump,
15394 # which wouldn't understand a cygwinified path. Ahh.
15395 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15397 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15401 # pw32 DLLs use 'pw' prefix rather than 'lib'
15402 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15408 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15411 dynamic_linker
='Win32 ld.exe'
15412 # FIXME: first we should search . and the directory the executable is in
15416 darwin
* | rhapsody
*)
15417 dynamic_linker
="$host_os dyld"
15418 version_type
=darwin
15421 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15422 soname_spec
='${libname}${release}${major}$shared_ext'
15423 shlibpath_overrides_runpath
=yes
15424 shlibpath_var
=DYLD_LIBRARY_PATH
15425 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
15426 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15427 if test "$GCC" = yes; then
15428 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"`
15430 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15432 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15440 soname_spec
='${libname}${release}${shared_ext}$major'
15441 shlibpath_var
=LD_LIBRARY_PATH
15452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15453 soname_spec
='${libname}${release}${shared_ext}$major'
15454 shlibpath_var
=LD_LIBRARY_PATH
15455 shlibpath_overrides_runpath
=no
15456 hardcode_into_libs
=yes
15457 dynamic_linker
='GNU ld.so'
15460 freebsd
* | dragonfly
*)
15461 # DragonFly does not have aout. When/if they implement a new
15462 # versioning mechanism, adjust this.
15463 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15464 version_type
=freebsd-
$objformat
15465 case $version_type in
15467 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15472 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15476 shlibpath_var
=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath
=yes
15481 freebsd3.
[01]* | freebsdelf3.
[01]*)
15482 shlibpath_overrides_runpath
=yes
15483 hardcode_into_libs
=yes
15486 shlibpath_overrides_runpath
=no
15487 hardcode_into_libs
=yes
15496 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15497 soname_spec
='${libname}${release}${shared_ext}$major'
15498 shlibpath_var
=LD_LIBRARY_PATH
15499 hardcode_into_libs
=yes
15502 hpux9
* | hpux10
* | hpux11
*)
15503 # Give a soname corresponding to the major version so that dld.sl refuses to
15504 # link against other versions.
15508 case "$host_cpu" in
15511 hardcode_into_libs
=yes
15512 dynamic_linker
="$host_os dld.so"
15513 shlibpath_var
=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516 soname_spec
='${libname}${release}${shared_ext}$major'
15517 if test "X$HPUX_IA64_MODE" = X32
; then
15518 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15520 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15522 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15526 hardcode_into_libs
=yes
15527 dynamic_linker
="$host_os dld.sl"
15528 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15529 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531 soname_spec
='${libname}${release}${shared_ext}$major'
15532 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15533 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15537 dynamic_linker
="$host_os dld.sl"
15538 shlibpath_var
=SHLIB_PATH
15539 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15540 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541 soname_spec
='${libname}${release}${shared_ext}$major'
15544 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15545 postinstall_cmds
='chmod 555 $lib'
15548 irix5
* | irix6
* | nonstopux
*)
15550 nonstopux
*) version_type
=nonstopux
;;
15552 if test "$lt_cv_prog_gnu_ld" = yes; then
15560 soname_spec
='${libname}${release}${shared_ext}$major'
15561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15563 irix5
* | nonstopux
*)
15564 libsuff
= shlibsuff
=
15567 case $LD in # libtool.m4 will add one of these switches to LD
15568 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15569 libsuff
= shlibsuff
= libmagic
=32-bit;;
15570 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15571 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15572 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15573 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15574 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15578 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15579 shlibpath_overrides_runpath
=no
15580 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15581 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15582 hardcode_into_libs
=yes
15585 # No shared lib support for Linux oldld, aout, or coff.
15586 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15590 # This must be Linux ELF.
15595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596 soname_spec
='${libname}${release}${shared_ext}$major'
15597 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15598 shlibpath_var
=LD_LIBRARY_PATH
15599 shlibpath_overrides_runpath
=no
15600 # This implies no fast_install, which is unacceptable.
15601 # Some rework will be needed to allow for fast_install
15602 # before this can be enabled.
15603 hardcode_into_libs
=yes
15605 # find out which ABI we are using
15607 case "$host_cpu" in
15608 x86_64
*|s390x
*|powerpc64
*)
15609 echo '#line 15609 "configure"' > conftest.
$ac_ext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15611 (eval $ac_compile) 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; then
15615 case `/usr/bin/file conftest.$ac_objext` in
15618 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15626 # Append ld.so.conf contents to the search path
15627 if test -f /etc
/ld.so.conf
; then
15628 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15629 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15632 # We used to test for /lib/ld.so.1 and disable shared libraries on
15633 # powerpc, because MkLinux only supported shared libraries with the
15634 # GNU dynamic linker. Since this was broken with cross compilers,
15635 # most powerpc-linux boxes support dynamic linking these days and
15636 # people can always --disable-shared, the test was removed, and we
15637 # assume the GNU/Linux dynamic linker is in use.
15638 dynamic_linker
='GNU/Linux ld.so'
15645 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15646 soname_spec
='${libname}${release}${shared_ext}$major'
15647 shlibpath_var
=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath
=no
15649 hardcode_into_libs
=yes
15650 dynamic_linker
='GNU ld.so'
15657 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15658 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15660 dynamic_linker
='NetBSD (a.out) ld.so'
15662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15663 soname_spec
='${libname}${release}${shared_ext}$major'
15664 dynamic_linker
='NetBSD ld.elf_so'
15666 shlibpath_var
=LD_LIBRARY_PATH
15667 shlibpath_overrides_runpath
=yes
15668 hardcode_into_libs
=yes
15673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 shlibpath_var
=LD_LIBRARY_PATH
15675 shlibpath_overrides_runpath
=yes
15682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec
='${libname}${release}${shared_ext}$major'
15684 shlibpath_var
=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath
=yes
15692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15693 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15694 shlibpath_var
=LD_LIBRARY_PATH
15695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15697 openbsd2.
[89] | openbsd2.
[89].
*)
15698 shlibpath_overrides_runpath
=no
15701 shlibpath_overrides_runpath
=yes
15705 shlibpath_overrides_runpath
=yes
15710 libname_spec
='$name'
15713 library_names_spec
='$libname${shared_ext} $libname.a'
15714 dynamic_linker
='OS/2 ld.exe'
15715 shlibpath_var
=LIBPATH
15718 osf3
* | osf4
* | osf5
*)
15722 soname_spec
='${libname}${release}${shared_ext}$major'
15723 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724 shlibpath_var
=LD_LIBRARY_PATH
15725 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15726 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15731 soname_spec
='${libname}${release}${shared_ext}$major'
15732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15733 shlibpath_var
=LD_LIBRARY_PATH
15740 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15741 soname_spec
='${libname}${release}${shared_ext}$major'
15742 shlibpath_var
=LD_LIBRARY_PATH
15743 shlibpath_overrides_runpath
=yes
15744 hardcode_into_libs
=yes
15745 # ldd complains unless libraries are executable
15746 postinstall_cmds
='chmod +x $lib'
15751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15752 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15753 shlibpath_var
=LD_LIBRARY_PATH
15754 shlibpath_overrides_runpath
=yes
15755 if test "$with_gnu_ld" = yes; then
15761 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764 soname_spec
='${libname}${release}${shared_ext}$major'
15765 shlibpath_var
=LD_LIBRARY_PATH
15766 case $host_vendor in
15768 shlibpath_overrides_runpath
=no
15770 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15771 runpath_var
=LD_RUN_PATH
15779 shlibpath_overrides_runpath
=no
15780 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15786 if test -d /usr
/nec
;then
15788 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15789 soname_spec
='$libname${shared_ext}.$major'
15790 shlibpath_var
=LD_LIBRARY_PATH
15796 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797 soname_spec
='${libname}${release}${shared_ext}$major'
15798 shlibpath_var
=LD_LIBRARY_PATH
15805 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15806 echo "${ECHO_T}$dynamic_linker" >&6
15807 test "$dynamic_linker" = no
&& can_build_shared
=no
15809 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15810 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15811 hardcode_action_F77
=
15812 if test -n "$hardcode_libdir_flag_spec_F77" || \
15813 test -n "$runpath_var_F77" || \
15814 test "X$hardcode_automatic_F77" = "Xyes" ; then
15816 # We can hardcode non-existant directories.
15817 if test "$hardcode_direct_F77" != no
&&
15818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15819 # have to relink, otherwise we might link with an installed library
15820 # when we should be linking with a yet-to-be-installed one
15821 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15822 test "$hardcode_minus_L_F77" != no
; then
15823 # Linking always hardcodes the temporary library directory.
15824 hardcode_action_F77
=relink
15826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15827 hardcode_action_F77
=immediate
15830 # We cannot hardcode anything, or else we can only hardcode existing
15832 hardcode_action_F77
=unsupported
15834 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15835 echo "${ECHO_T}$hardcode_action_F77" >&6
15837 if test "$hardcode_action_F77" = relink
; then
15838 # Fast installation is not supported
15839 enable_fast_install
=no
15840 elif test "$shlibpath_overrides_runpath" = yes ||
15841 test "$enable_shared" = no
; then
15842 # Fast installation is not necessary
15843 enable_fast_install
=needless
15848 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15849 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15850 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
15851 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
15852 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
15853 echo "$as_me:$LINENO: result: yes" >&5
15854 echo "${ECHO_T}yes" >&6
15856 # FIXME - insert some real tests, host_os isn't really good enough
15859 if test -n "$STRIP" ; then
15860 striplib
="$STRIP -x"
15861 echo "$as_me:$LINENO: result: yes" >&5
15862 echo "${ECHO_T}yes" >&6
15864 echo "$as_me:$LINENO: result: no" >&5
15865 echo "${ECHO_T}no" >&6
15869 echo "$as_me:$LINENO: result: no" >&5
15870 echo "${ECHO_T}no" >&6
15877 # The else clause should only fire when bootstrapping the
15878 # libtool distribution, otherwise you forgot to ship ltmain.sh
15879 # with your package, and you will get complaints that there are
15880 # no rules to generate ltmain.sh.
15881 if test -f "$ltmain"; then
15882 # See if we are running on zsh, and set the options which allow our commands through
15883 # without removal of \ escapes.
15884 if test -n "${ZSH_VERSION+set}" ; then
15885 setopt NO_GLOB_SUBST
15887 # Now quote all the things that may contain metacharacters while being
15888 # careful not to overquote the AC_SUBSTed values. We take copies of the
15889 # variables and quote the copies for generation of the libtool script.
15890 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15892 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15893 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15894 deplibs_check_method reload_flag reload_cmds need_locks \
15895 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15896 lt_cv_sys_global_symbol_to_c_name_address \
15897 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15898 old_postinstall_cmds old_postuninstall_cmds \
15902 lt_prog_compiler_wl_F77 \
15903 lt_prog_compiler_pic_F77 \
15904 lt_prog_compiler_static_F77 \
15905 lt_prog_compiler_no_builtin_flag_F77 \
15906 export_dynamic_flag_spec_F77 \
15907 thread_safe_flag_spec_F77 \
15908 whole_archive_flag_spec_F77 \
15909 enable_shared_with_static_runtimes_F77 \
15910 old_archive_cmds_F77 \
15911 old_archive_from_new_cmds_F77 \
15912 predep_objects_F77 \
15913 postdep_objects_F77 \
15916 compiler_lib_search_path_F77 \
15918 archive_expsym_cmds_F77 \
15919 postinstall_cmds_F77 \
15920 postuninstall_cmds_F77 \
15921 old_archive_from_expsyms_cmds_F77 \
15922 allow_undefined_flag_F77 \
15923 no_undefined_flag_F77 \
15924 export_symbols_cmds_F77 \
15925 hardcode_libdir_flag_spec_F77 \
15926 hardcode_libdir_flag_spec_ld_F77 \
15927 hardcode_libdir_separator_F77 \
15928 hardcode_automatic_F77 \
15930 module_expsym_cmds_F77 \
15931 lt_cv_prog_compiler_c_o_F77 \
15932 exclude_expsyms_F77 \
15933 include_expsyms_F77
; do
15936 old_archive_cmds_F77 | \
15937 old_archive_from_new_cmds_F77 | \
15938 archive_cmds_F77 | \
15939 archive_expsym_cmds_F77 | \
15940 module_cmds_F77 | \
15941 module_expsym_cmds_F77 | \
15942 old_archive_from_expsyms_cmds_F77 | \
15943 export_symbols_cmds_F77 | \
15944 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15945 postinstall_cmds | postuninstall_cmds | \
15946 old_postinstall_cmds | old_postuninstall_cmds | \
15947 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15948 # Double-quote double-evaled strings.
15949 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15952 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15958 *'\$0 --fallback-echo"')
15959 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15965 cat <<__EOF__ >> "$cfgfile"
15966 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15968 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15970 # Shell to use when invoking shell scripts.
15973 # Whether or not to build shared libraries.
15974 build_libtool_libs=$enable_shared
15976 # Whether or not to build static libraries.
15977 build_old_libs=$enable_static
15979 # Whether or not to add -lc for building shared libraries.
15980 build_libtool_need_lc=$archive_cmds_need_lc_F77
15982 # Whether or not to disallow shared libs when runtime libs are static
15983 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15985 # Whether or not to optimize for fast installation.
15986 fast_install=$enable_fast_install
15989 host_alias=$host_alias
15993 # The build system.
15994 build_alias=$build_alias
15998 # An echo program that does not interpret backslashes.
16003 AR_FLAGS=$lt_AR_FLAGS
16008 # A language-specific compiler.
16009 CC=$lt_compiler_F77
16011 # Is the compiler the GNU C compiler?
16017 # The linker used to build libraries.
16020 # Whether we need hard or soft links.
16023 # A BSD-compatible nm program.
16026 # A symbol stripping program
16029 # Used to examine libraries when file_magic_cmd begins "file"
16030 MAGIC_CMD=$MAGIC_CMD
16032 # Used on cygwin: DLL creation program.
16035 # Used on cygwin: object dumper.
16038 # Used on cygwin: assembler.
16041 # The name of the directory that contains temporary libtool files.
16044 # How to create reloadable object files.
16045 reload_flag=$lt_reload_flag
16046 reload_cmds=$lt_reload_cmds
16048 # How to pass a linker flag through the compiler.
16049 wl=$lt_lt_prog_compiler_wl_F77
16051 # Object file suffix (normally "o").
16052 objext="$ac_objext"
16054 # Old archive suffix (normally "a").
16057 # Shared library suffix (normally ".so").
16058 shrext_cmds='$shrext_cmds'
16060 # Executable file suffix (normally "").
16063 # Additional compiler flags for building library objects.
16064 pic_flag=$lt_lt_prog_compiler_pic_F77
16067 # What is the maximum length of a command?
16068 max_cmd_len=$lt_cv_sys_max_cmd_len
16070 # Does compiler simultaneously support -c and -o options?
16071 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16073 # Must we lock files when doing compilation?
16074 need_locks=$lt_need_locks
16076 # Do we need the lib prefix for modules?
16077 need_lib_prefix=$need_lib_prefix
16079 # Do we need a version for libraries?
16080 need_version=$need_version
16082 # Whether dlopen is supported.
16083 dlopen_support=$enable_dlopen
16085 # Whether dlopen of programs is supported.
16086 dlopen_self=$enable_dlopen_self
16088 # Whether dlopen of statically linked programs is supported.
16089 dlopen_self_static=$enable_dlopen_self_static
16091 # Compiler flag to prevent dynamic linking.
16092 link_static_flag=$lt_lt_prog_compiler_static_F77
16094 # Compiler flag to turn off builtin functions.
16095 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16097 # Compiler flag to allow reflexive dlopens.
16098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16100 # Compiler flag to generate shared objects directly from archives.
16101 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16103 # Compiler flag to generate thread-safe objects.
16104 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16106 # Library versioning type.
16107 version_type=$version_type
16109 # Format of library name prefix.
16110 libname_spec=$lt_libname_spec
16112 # List of archive names. First name is the real one, the rest are links.
16113 # The last name is the one that the linker finds with -lNAME.
16114 library_names_spec=$lt_library_names_spec
16116 # The coded name of the library, if different from the real name.
16117 soname_spec=$lt_soname_spec
16119 # Commands used to build and install an old-style archive.
16121 old_archive_cmds=$lt_old_archive_cmds_F77
16122 old_postinstall_cmds=$lt_old_postinstall_cmds
16123 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16125 # Create an old-style archive from a shared archive.
16126 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16128 # Create a temporary old-style archive to link instead of a shared archive.
16129 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16131 # Commands used to build and install a shared archive.
16132 archive_cmds=$lt_archive_cmds_F77
16133 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16134 postinstall_cmds=$lt_postinstall_cmds
16135 postuninstall_cmds=$lt_postuninstall_cmds
16137 # Commands used to build a loadable module (assumed same as above if empty)
16138 module_cmds=$lt_module_cmds_F77
16139 module_expsym_cmds=$lt_module_expsym_cmds_F77
16141 # Commands to strip libraries.
16142 old_striplib=$lt_old_striplib
16143 striplib=$lt_striplib
16145 # Dependencies to place before the objects being linked to create a
16147 predep_objects=$lt_predep_objects_F77
16149 # Dependencies to place after the objects being linked to create a
16151 postdep_objects=$lt_postdep_objects_F77
16153 # Dependencies to place before the objects being linked to create a
16155 predeps=$lt_predeps_F77
16157 # Dependencies to place after the objects being linked to create a
16159 postdeps=$lt_postdeps_F77
16161 # The library search path used internally by the compiler when linking
16162 # a shared library.
16163 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16165 # Method to check whether dependent libraries are shared objects.
16166 deplibs_check_method=$lt_deplibs_check_method
16168 # Command to use when deplibs_check_method == file_magic.
16169 file_magic_cmd=$lt_file_magic_cmd
16171 # Flag that allows shared libraries with undefined symbols to be built.
16172 allow_undefined_flag=$lt_allow_undefined_flag_F77
16174 # Flag that forces no undefined symbols.
16175 no_undefined_flag=$lt_no_undefined_flag_F77
16177 # Commands used to finish a libtool library installation in a directory.
16178 finish_cmds=$lt_finish_cmds
16180 # Same as above, but a single script fragment to be evaled but not shown.
16181 finish_eval=$lt_finish_eval
16183 # Take the output of nm and produce a listing of raw symbols and C names.
16184 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16186 # Transform the output of nm in a proper C declaration
16187 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16189 # Transform the output of nm in a C name address pair
16190 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16192 # This is the shared library runtime path variable.
16193 runpath_var=$runpath_var
16195 # This is the shared library path variable.
16196 shlibpath_var=$shlibpath_var
16198 # Is shlibpath searched before the hard-coded library search path?
16199 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16201 # How to hardcode a shared library path into an executable.
16202 hardcode_action=$hardcode_action_F77
16204 # Whether we should hardcode library paths into libraries.
16205 hardcode_into_libs=$hardcode_into_libs
16207 # Flag to hardcode \$libdir into a binary during linking.
16208 # This must work even if \$libdir does not exist.
16209 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16211 # If ld is used when linking, flag to hardcode \$libdir into
16212 # a binary during linking. This must work even if \$libdir does
16214 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16216 # Whether we need a single -rpath flag with a separated argument.
16217 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16219 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16220 # resulting binary.
16221 hardcode_direct=$hardcode_direct_F77
16223 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16224 # resulting binary.
16225 hardcode_minus_L=$hardcode_minus_L_F77
16227 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16228 # the resulting binary.
16229 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16231 # Set to yes if building a shared library automatically hardcodes DIR into the library
16232 # and all subsequent libraries and executables linked against it.
16233 hardcode_automatic=$hardcode_automatic_F77
16235 # Variables whose values should be saved in libtool wrapper scripts and
16236 # restored at relink time.
16237 variables_saved_for_relink="$variables_saved_for_relink"
16239 # Whether libtool must link a program against all its dependency libraries.
16240 link_all_deplibs=$link_all_deplibs_F77
16242 # Compile-time system search path for libraries
16243 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16245 # Run-time system search path for libraries
16246 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16248 # Fix the shell variable \$srcfile for the compiler.
16249 fix_srcfile_path="$fix_srcfile_path_F77"
16251 # Set to yes if exported symbols are required.
16252 always_export_symbols=$always_export_symbols_F77
16254 # The commands to list exported symbols.
16255 export_symbols_cmds=$lt_export_symbols_cmds_F77
16257 # The commands to extract the exported symbol list from a shared archive.
16258 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16260 # Symbols that should not be listed in the preloaded symbols.
16261 exclude_expsyms=$lt_exclude_expsyms_F77
16263 # Symbols that must always be exported.
16264 include_expsyms=$lt_include_expsyms_F77
16266 # ### END LIBTOOL TAG CONFIG: $tagname
16272 # If there is no Makefile yet, we rely on a make rule to execute
16273 # `config.status --recheck' to rerun these tests and create the
16274 # libtool script then.
16275 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16276 if test -f "$ltmain_in"; then
16277 test -f Makefile
&& make "$ltmain"
16283 ac_cpp
='$CPP $CPPFLAGS'
16284 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16285 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16286 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16296 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16300 # Source file extension for Java test sources.
16303 # Object file extension for compiled Java test sources.
16307 # Code to be used in simple compile tests
16308 lt_simple_compile_test_code
="class foo {}\n"
16310 # Code to be used in simple link tests
16311 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
16313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16315 # If no C compiler was specified, use CC.
16318 # Allow CC to be a program name with arguments.
16322 # save warnings/boilerplate of simple test code
16323 ac_outfile
=conftest.
$ac_objext
16324 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
16325 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
16326 _lt_compiler_boilerplate
=`cat conftest.err`
16329 ac_outfile
=conftest.
$ac_objext
16330 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
16331 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
16332 _lt_linker_boilerplate
=`cat conftest.err`
16336 # Allow CC to be a program name with arguments.
16341 for cc_temp
in $compiler""; do
16343 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16344 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16349 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16352 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16353 archive_cmds_need_lc_GCJ
=no
16355 old_archive_cmds_GCJ
=$old_archive_cmds
16358 ## There is no encapsulation within the following macros, do not change
16359 ## the running order or otherwise move them around unless you know exactly
16360 ## what you are doing...
16362 lt_prog_compiler_no_builtin_flag_GCJ
=
16364 if test "$GCC" = yes; then
16365 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16368 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16369 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16370 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16373 lt_cv_prog_compiler_rtti_exceptions
=no
16374 ac_outfile
=conftest.
$ac_objext
16375 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16376 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16377 # Insert the option either (1) after the last *FLAGS variable, or
16378 # (2) before a word containing "conftest.", or (3) at the end.
16379 # Note that $ac_compile itself does not contain backslashes and begins
16380 # with a dollar sign (not a hyphen), so the echo should work correctly.
16381 # The option is referenced via a variable to avoid confusing sed.
16382 lt_compile
=`echo "$ac_compile" | $SED \
16383 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16385 -e 's:$: $lt_compiler_flag:'`
16386 (eval echo "\"\$as_me:16386: $lt_compile\"" >&5)
16387 (eval "$lt_compile" 2>conftest.err
)
16389 cat conftest.err
>&5
16390 echo "$as_me:16390: \$? = $ac_status" >&5
16391 if (exit $ac_status) && test -s "$ac_outfile"; then
16392 # The compiler can only warn and ignore the option if not recognized
16393 # So say no if there are warnings other than the usual output.
16394 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
16395 $SED '/^$/d' conftest.err
>conftest.er2
16396 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16397 lt_cv_prog_compiler_rtti_exceptions
=yes
16403 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16404 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16406 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16407 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16414 lt_prog_compiler_wl_GCJ
=
16415 lt_prog_compiler_pic_GCJ
=
16416 lt_prog_compiler_static_GCJ
=
16418 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16419 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16421 if test "$GCC" = yes; then
16422 lt_prog_compiler_wl_GCJ
='-Wl,'
16423 lt_prog_compiler_static_GCJ
='-static'
16427 # All AIX code is PIC.
16428 if test "$host_cpu" = ia64
; then
16429 # AIX 5 now supports IA64 processor
16430 lt_prog_compiler_static_GCJ
='-Bstatic'
16435 # FIXME: we need at least 68020 code to build shared libraries, but
16436 # adding the `-m68020' flag to GCC prevents building anything better,
16438 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16441 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16442 # PIC is the default for these OSes.
16445 mingw
* | pw32
* | os2
*)
16446 # This hack is so that the source file can tell whether it is being
16447 # built for inclusion in a dll (and should export symbols for example).
16448 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16451 darwin
* | rhapsody
*)
16452 # PIC is the default on this platform
16453 # Common symbols not allowed in MH_DYLIB files
16454 lt_prog_compiler_pic_GCJ
='-fno-common'
16458 # Just because we use GCC doesn't mean we suddenly get shared libraries
16459 # on systems that don't support them.
16460 lt_prog_compiler_can_build_shared_GCJ
=no
16465 if test -d /usr
/nec
; then
16466 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16472 # not for PA HP-UX.
16473 case "$host_cpu" in
16478 lt_prog_compiler_pic_GCJ
='-fPIC'
16484 lt_prog_compiler_pic_GCJ
='-fPIC'
16488 # PORTME Check for flag to pass linker flags through the system compiler.
16491 lt_prog_compiler_wl_GCJ
='-Wl,'
16492 if test "$host_cpu" = ia64
; then
16493 # AIX 5 now supports IA64 processor
16494 lt_prog_compiler_static_GCJ
='-Bstatic'
16496 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16500 # PIC is the default on this platform
16501 # Common symbols not allowed in MH_DYLIB files
16502 case $cc_basename in
16504 lt_prog_compiler_pic_GCJ
='-qnocommon'
16505 lt_prog_compiler_wl_GCJ
='-Wl,'
16510 mingw
* | pw32
* | os2
*)
16511 # This hack is so that the source file can tell whether it is being
16512 # built for inclusion in a dll (and should export symbols for example).
16513 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16516 hpux9
* | hpux10
* | hpux11
*)
16517 lt_prog_compiler_wl_GCJ
='-Wl,'
16518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16519 # not for PA HP-UX.
16520 case "$host_cpu" in
16525 lt_prog_compiler_pic_GCJ
='+Z'
16528 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16529 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16532 irix5
* | irix6
* | nonstopux
*)
16533 lt_prog_compiler_wl_GCJ
='-Wl,'
16534 # PIC (with -KPIC) is the default.
16535 lt_prog_compiler_static_GCJ
='-non_shared'
16539 lt_prog_compiler_pic_GCJ
='-KPIC'
16540 lt_prog_compiler_static_GCJ
='-Bstatic'
16544 case $cc_basename in
16546 lt_prog_compiler_wl_GCJ
='-Wl,'
16547 lt_prog_compiler_pic_GCJ
='-KPIC'
16548 lt_prog_compiler_static_GCJ
='-static'
16550 pgcc
* | pgf77
* | pgf90
*)
16551 # Portland Group compilers (*not* the Pentium gcc compiler,
16552 # which looks to be a dead project)
16553 lt_prog_compiler_wl_GCJ
='-Wl,'
16554 lt_prog_compiler_pic_GCJ
='-fpic'
16555 lt_prog_compiler_static_GCJ
='-static'
16558 lt_prog_compiler_wl_GCJ
='-Wl,'
16559 # All Alpha code is PIC.
16560 lt_prog_compiler_static_GCJ
='-non_shared'
16565 osf3
* | osf4
* | osf5
*)
16566 lt_prog_compiler_wl_GCJ
='-Wl,'
16567 # All OSF/1 code is PIC.
16568 lt_prog_compiler_static_GCJ
='-non_shared'
16572 lt_prog_compiler_pic_GCJ
='-Kpic'
16573 lt_prog_compiler_static_GCJ
='-dn'
16577 lt_prog_compiler_pic_GCJ
='-KPIC'
16578 lt_prog_compiler_static_GCJ
='-Bstatic'
16579 case $cc_basename in
16580 f77
* | f90
* | f95
*)
16581 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16583 lt_prog_compiler_wl_GCJ
='-Wl,';;
16588 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16589 lt_prog_compiler_pic_GCJ
='-PIC'
16590 lt_prog_compiler_static_GCJ
='-Bstatic'
16593 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16594 lt_prog_compiler_wl_GCJ
='-Wl,'
16595 lt_prog_compiler_pic_GCJ
='-KPIC'
16596 lt_prog_compiler_static_GCJ
='-Bstatic'
16600 if test -d /usr
/nec
;then
16601 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16602 lt_prog_compiler_static_GCJ
='-Bstatic'
16607 lt_prog_compiler_wl_GCJ
='-Wl,'
16608 lt_prog_compiler_can_build_shared_GCJ
=no
16612 lt_prog_compiler_pic_GCJ
='-pic'
16613 lt_prog_compiler_static_GCJ
='-Bstatic'
16617 lt_prog_compiler_can_build_shared_GCJ
=no
16622 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16623 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16626 # Check to make sure the PIC flag actually works.
16628 if test -n "$lt_prog_compiler_pic_GCJ"; then
16630 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16631 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16632 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 lt_prog_compiler_pic_works_GCJ
=no
16636 ac_outfile
=conftest.
$ac_objext
16637 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16638 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16639 # Insert the option either (1) after the last *FLAGS variable, or
16640 # (2) before a word containing "conftest.", or (3) at the end.
16641 # Note that $ac_compile itself does not contain backslashes and begins
16642 # with a dollar sign (not a hyphen), so the echo should work correctly.
16643 # The option is referenced via a variable to avoid confusing sed.
16644 lt_compile
=`echo "$ac_compile" | $SED \
16645 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16647 -e 's:$: $lt_compiler_flag:'`
16648 (eval echo "\"\$as_me:16648: $lt_compile\"" >&5)
16649 (eval "$lt_compile" 2>conftest.err
)
16651 cat conftest.err
>&5
16652 echo "$as_me:16652: \$? = $ac_status" >&5
16653 if (exit $ac_status) && test -s "$ac_outfile"; then
16654 # The compiler can only warn and ignore the option if not recognized
16655 # So say no if there are warnings other than the usual output.
16656 $echo "X$_lt_compiler_boilerplate" |
$Xsed >conftest.exp
16657 $SED '/^$/d' conftest.err
>conftest.er2
16658 if test ! -s conftest.err ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16659 lt_prog_compiler_pic_works_GCJ
=yes
16665 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16666 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16668 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16669 case $lt_prog_compiler_pic_GCJ in
16671 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16674 lt_prog_compiler_pic_GCJ
=
16675 lt_prog_compiler_can_build_shared_GCJ
=no
16680 # For platforms which do not support PIC, -DPIC is meaningless:
16682 lt_prog_compiler_pic_GCJ
=
16685 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16689 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16690 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16691 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 lt_cv_prog_compiler_c_o_GCJ
=no
16695 $rm -r conftest
2>/dev
/null
16699 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16701 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16702 # Insert the option either (1) after the last *FLAGS variable, or
16703 # (2) before a word containing "conftest.", or (3) at the end.
16704 # Note that $ac_compile itself does not contain backslashes and begins
16705 # with a dollar sign (not a hyphen), so the echo should work correctly.
16706 lt_compile
=`echo "$ac_compile" | $SED \
16707 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16709 -e 's:$: $lt_compiler_flag:'`
16710 (eval echo "\"\$as_me:16710: $lt_compile\"" >&5)
16711 (eval "$lt_compile" 2>out
/conftest.err
)
16713 cat out
/conftest.err
>&5
16714 echo "$as_me:16714: \$? = $ac_status" >&5
16715 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16717 # The compiler can only warn and ignore the option if not recognized
16718 # So say no if there are warnings
16719 $echo "X$_lt_compiler_boilerplate" |
$Xsed > out
/conftest.exp
16720 $SED '/^$/d' out
/conftest.err
>out
/conftest.er2
16721 if test ! -s out
/conftest.err ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16722 lt_cv_prog_compiler_c_o_GCJ
=yes
16727 # SGI C++ compiler will create directory out/ii_files/ for
16728 # template instantiation
16729 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16730 $rm out
/* && rmdir out
16736 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16737 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16740 hard_links
="nottested"
16741 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16742 # do not overwrite the value of need_locks provided by the user
16743 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16744 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16747 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16749 ln conftest.a conftest.b
2>&5 || hard_links
=no
16750 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16751 echo "$as_me:$LINENO: result: $hard_links" >&5
16752 echo "${ECHO_T}$hard_links" >&6
16753 if test "$hard_links" = no
; then
16754 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16755 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16762 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16763 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16766 allow_undefined_flag_GCJ
=
16767 enable_shared_with_static_runtimes_GCJ
=no
16769 archive_expsym_cmds_GCJ
=
16770 old_archive_From_new_cmds_GCJ
=
16771 old_archive_from_expsyms_cmds_GCJ
=
16772 export_dynamic_flag_spec_GCJ
=
16773 whole_archive_flag_spec_GCJ
=
16774 thread_safe_flag_spec_GCJ
=
16775 hardcode_libdir_flag_spec_GCJ
=
16776 hardcode_libdir_flag_spec_ld_GCJ
=
16777 hardcode_libdir_separator_GCJ
=
16778 hardcode_direct_GCJ
=no
16779 hardcode_minus_L_GCJ
=no
16780 hardcode_shlibpath_var_GCJ
=unsupported
16781 link_all_deplibs_GCJ
=unknown
16782 hardcode_automatic_GCJ
=no
16784 module_expsym_cmds_GCJ
=
16785 always_export_symbols_GCJ
=no
16786 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16787 # include_expsyms should be a list of space-separated symbols to be *always*
16788 # included in the symbol list
16789 include_expsyms_GCJ
=
16790 # exclude_expsyms can be an extended regexp of symbols to exclude
16791 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16792 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16793 # as well as any symbol that contains `d'.
16794 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16795 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16796 # platforms (ab)use it in PIC code, but their linkers get confused if
16797 # the symbol is explicitly referenced. Since portable code cannot
16798 # rely on this symbol name, it's probably fine to never include it in
16799 # preloaded symbol tables.
16800 extract_expsyms_cmds
=
16801 # Just being paranoid about ensuring that cc_basename is set.
16802 for cc_temp
in $compiler""; do
16804 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16805 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16810 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16813 cygwin
* | mingw
* | pw32
*)
16814 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16815 # When not using gcc, we currently assume that we are using
16816 # Microsoft Visual C++.
16817 if test "$GCC" != yes; then
16827 if test "$with_gnu_ld" = yes; then
16828 # If archive_cmds runs LD, not CC, wlarc should be empty
16831 # Set some defaults for GNU ld with shared library support. These
16832 # are reset later if shared libraries are not supported. Putting them
16833 # here allows them to be overridden if necessary.
16834 runpath_var
=LD_RUN_PATH
16835 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16836 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16837 # ancient GNU ld didn't support --whole-archive et. al.
16838 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16839 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16841 whole_archive_flag_spec_GCJ
=
16843 supports_anon_versioning
=no
16844 case `$LD -v 2>/dev/null` in
16845 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16846 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16847 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16848 *\
2.11.
*) ;; # other 2.11 versions
16849 *) supports_anon_versioning
=yes ;;
16852 # See if GNU ld supports shared libraries.
16854 aix3
* | aix4
* | aix5
*)
16855 # On AIX/PPC, the GNU linker is very broken
16856 if test "$host_cpu" != ia64
; then
16860 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16861 *** to be unable to reliably create shared libraries on AIX.
16862 *** Therefore, libtool is disabling shared libraries support. If you
16863 *** really care for shared libraries, you may want to modify your PATH
16864 *** so that a non-GNU linker is found, and then restart.
16871 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)'
16872 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16873 hardcode_minus_L_GCJ
=yes
16875 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16876 # that the semantics of dynamic libraries on AmigaOS, at least up
16877 # to version 4, is to share data among multiple programs linked
16878 # with the same dynamic library. Since this doesn't match the
16879 # behavior of shared libraries on other platforms, we can't use
16885 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16886 allow_undefined_flag_GCJ
=unsupported
16887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16888 # support --undefined. This deserves some investigation. FIXME
16889 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16895 cygwin
* | mingw
* | pw32
*)
16896 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16897 # as there is no search path for DLLs.
16898 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16899 allow_undefined_flag_GCJ
=unsupported
16900 always_export_symbols_GCJ
=no
16901 enable_shared_with_static_runtimes_GCJ
=yes
16902 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16904 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16905 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16906 # If the export-symbols file already is a .def file (1st line
16907 # is EXPORTS), use it as is; otherwise, prepend...
16908 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16909 cp $export_symbols $output_objdir/$soname.def;
16911 echo EXPORTS > $output_objdir/$soname.def;
16912 cat $export_symbols >> $output_objdir/$soname.def;
16914 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16921 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16923 case $cc_basename,$host_cpu in
16924 pgcc
*) # Portland Group C compiler
16925 whole_archive_flag_spec_GCJ
=
16927 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
16928 whole_archive_flag_spec_GCJ
=
16929 tmp_addflag
=' -fpic -Mnomain' ;;
16930 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16931 tmp_addflag
=' -i_dynamic' ;;
16932 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16933 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16934 ifc
* | ifort
*) # Intel Fortran compiler
16935 tmp_addflag
=' -nofor_main' ;;
16937 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16939 if test $supports_anon_versioning = yes; then
16940 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16942 $echo "local: *; };" >> $output_objdir/$libname.ver~
16943 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16951 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16952 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16955 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16956 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16961 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16965 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16966 *** create shared libraries on Solaris systems. Therefore, libtool
16967 *** is disabling shared libraries support. We urge you to upgrade GNU
16968 *** binutils to release 2.9.1 or newer. Another option is to modify
16969 *** your PATH or compiler configuration so that the native linker is
16970 *** used, and then restart.
16973 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16974 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16975 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16982 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16984 hardcode_direct_GCJ
=yes
16985 hardcode_shlibpath_var_GCJ
=no
16989 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16990 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16991 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16998 if test "$ld_shlibs_GCJ" = no
; then
17000 hardcode_libdir_flag_spec_GCJ
=
17001 export_dynamic_flag_spec_GCJ
=
17002 whole_archive_flag_spec_GCJ
=
17005 # PORTME fill in a description of your system's linker (not GNU ld)
17008 allow_undefined_flag_GCJ
=unsupported
17009 always_export_symbols_GCJ
=yes
17010 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'
17011 # Note: this linker hardcodes the directories in LIBPATH if there
17012 # are no directories specified by -L.
17013 hardcode_minus_L_GCJ
=yes
17014 if test "$GCC" = yes && test -z "$link_static_flag"; then
17015 # Neither direct hardcoding nor static linking is supported with a
17017 hardcode_direct_GCJ
=unsupported
17022 if test "$host_cpu" = ia64
; then
17023 # On IA64, the linker does run time linking by default, so we don't
17024 # have to do anything special.
17025 aix_use_runtimelinking
=no
17026 exp_sym_flag
='-Bexport'
17029 # If we're using GNU nm, then we don't want the "-C" option.
17030 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17031 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17032 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'
17034 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'
17036 aix_use_runtimelinking
=no
17038 # Test if we are trying to use run time linking or normal
17039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17040 # need to do runtime linking.
17041 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17042 for ld_flag
in $LDFLAGS; do
17043 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17044 aix_use_runtimelinking
=yes
17050 exp_sym_flag
='-bexport'
17051 no_entry_flag
='-bnoentry'
17054 # When large executables or shared objects are built, AIX ld can
17055 # have problems creating the table of contents. If linking a library
17056 # or program results in "error TOC overflow" add -mminimal-toc to
17057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17060 archive_cmds_GCJ
=''
17061 hardcode_direct_GCJ
=yes
17062 hardcode_libdir_separator_GCJ
=':'
17063 link_all_deplibs_GCJ
=yes
17065 if test "$GCC" = yes; then
17066 case $host_os in aix4.
[012]|aix4.
[012].
*)
17067 # We only want to do this on AIX 4.2 and lower, the check
17068 # below for broken collect2 doesn't work under 4.3+
17069 collect2name
=`${CC} -print-prog-name=collect2`
17070 if test -f "$collect2name" && \
17071 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17073 # We have reworked collect2
17074 hardcode_direct_GCJ
=yes
17076 # We have old collect2
17077 hardcode_direct_GCJ
=unsupported
17078 # It fails to find uninstalled libraries when the uninstalled
17079 # path is not listed in the libpath. Setting hardcode_minus_L
17080 # to unsupported forces relinking
17081 hardcode_minus_L_GCJ
=yes
17082 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17083 hardcode_libdir_separator_GCJ
=
17086 shared_flag
='-shared'
17087 if test "$aix_use_runtimelinking" = yes; then
17088 shared_flag
="$shared_flag "'${wl}-G'
17092 if test "$host_cpu" = ia64
; then
17093 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17094 # chokes on -Wl,-G. The following line is correct:
17097 if test "$aix_use_runtimelinking" = yes; then
17098 shared_flag
='${wl}-G'
17100 shared_flag
='${wl}-bM:SRE'
17105 # It seems that -bexpall does not export symbols beginning with
17106 # underscore (_), so it is better to generate a list of symbols to export.
17107 always_export_symbols_GCJ
=yes
17108 if test "$aix_use_runtimelinking" = yes; then
17109 # Warning - without using the other runtime loading flags (-brtl),
17110 # -berok will link without error, but may produce a broken library.
17111 allow_undefined_flag_GCJ
='-berok'
17112 # Determine the default libpath from the value encoded in an empty executable.
17113 cat >conftest.
$ac_ext <<_ACEOF
17116 cat confdefs.h
>>conftest.
$ac_ext
17117 cat >>conftest.
$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17128 rm -f conftest.
$ac_objext conftest
$ac_exeext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17130 (eval $ac_link) 2>conftest.er1
17132 grep -v '^ *+' conftest.er1
>conftest.err
17134 cat conftest.err
>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try
='test -z "$ac_c_werror_flag"
17138 || test ! -s conftest.err'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; } &&
17144 { ac_try
='test -s conftest$ac_exeext'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; }; then
17151 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17153 # Check for a 64-bit object if we didn't find anything.
17154 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; }
17157 echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.
$ac_ext >&5
17161 rm -f conftest.err conftest.
$ac_objext \
17162 conftest
$ac_exeext conftest.
$ac_ext
17163 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17165 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17166 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"
17168 if test "$host_cpu" = ia64; then
17169 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr
/lib
:/lib
'
17170 allow_undefined_flag_GCJ="-z nodefs"
17171 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"
17173 # Determine the default libpath from the value encoded in an empty executable.
17174 cat >conftest.$ac_ext <<_ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17189 rm -f conftest.$ac_objext conftest$ac_exeext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191 (eval $ac_link) 2>conftest.er1
17193 grep -v '^ *+' conftest.er1 >conftest.err
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17197 (exit $ac_status); } &&
17198 { ac_try='test -z "$ac_c_werror_flag"
17199 || test ! -s conftest.err'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17210 (exit $ac_status); }; }; then
17212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17214 # Check for a 64-bit object if we didn't find anything.
17215 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; }
17218 echo "$as_me: failed program was
:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17222 rm -f conftest.err conftest.$ac_objext \
17223 conftest$ac_exeext conftest.$ac_ext
17224 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
17226 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17227 # Warning - without using the other run time loading flags,
17228 # -berok will link without error, but may produce a broken library.
17229 no_undefined_flag_GCJ=' ${wl}-bernotok'
17230 allow_undefined_flag_GCJ=' ${wl}-berok'
17231 # -bexpall does not export symbols beginning with underscore (_)
17232 always_export_symbols_GCJ=yes
17233 # Exported symbols can be pulled into shared objects from archives
17234 whole_archive_flag_spec_GCJ=' '
17235 archive_cmds_need_lc_GCJ=yes
17236 # This is similar to how AIX traditionally builds it's shared libraries.
17237 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'
17243 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)'
17244 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17245 hardcode_minus_L_GCJ
=yes
17246 # see comment about different semantics on the GNU ld section
17251 export_dynamic_flag_spec_GCJ
=-rdynamic
17254 cygwin
* | mingw
* | pw32
*)
17255 # When not using gcc, we currently assume that we are using
17256 # Microsoft Visual C++.
17257 # hardcode_libdir_flag_spec is actually meaningless, as there is
17258 # no search path for DLLs.
17259 hardcode_libdir_flag_spec_GCJ
=' '
17260 allow_undefined_flag_GCJ
=unsupported
17261 # Tell ltmain to make .lib files, not .a files.
17263 # Tell ltmain to make .dll files, not .so files.
17265 # FIXME: Setting linknames here is a bad hack.
17266 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17267 # The linker will automatically build a .lib file if we build a DLL.
17268 old_archive_From_new_cmds_GCJ
='true'
17269 # FIXME: Should let the user specify the lib program.
17270 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
17271 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17272 enable_shared_with_static_runtimes_GCJ
=yes
17275 darwin
* | rhapsody
*)
17277 rhapsody
* | darwin1.
[012])
17278 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17281 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17282 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17284 case ${MACOSX_DEPLOYMENT_TARGET} in
17286 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17289 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17295 archive_cmds_need_lc_GCJ
=no
17296 hardcode_direct_GCJ
=no
17297 hardcode_automatic_GCJ
=yes
17298 hardcode_shlibpath_var_GCJ
=unsupported
17299 whole_archive_flag_spec_GCJ
=''
17300 link_all_deplibs_GCJ
=yes
17301 if test "$GCC" = yes ; then
17302 output_verbose_link_cmd
='echo'
17303 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17304 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17305 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17306 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}'
17307 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}'
17309 case $cc_basename in
17311 output_verbose_link_cmd
='echo'
17312 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17313 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17315 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}'
17316 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}'
17326 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17327 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17328 hardcode_shlibpath_var_GCJ
=no
17335 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17336 # support. Future versions do this automatically, but an explicit c++rt0.o
17337 # does not break anything, and helps significantly (at the cost of a little
17340 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17341 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17342 hardcode_direct_GCJ
=yes
17343 hardcode_shlibpath_var_GCJ
=no
17346 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17348 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17349 hardcode_direct_GCJ
=yes
17350 hardcode_minus_L_GCJ
=yes
17351 hardcode_shlibpath_var_GCJ
=no
17354 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17355 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
17356 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17357 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17358 hardcode_direct_GCJ
=yes
17359 hardcode_shlibpath_var_GCJ
=no
17363 if test "$GCC" = yes; then
17364 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'
17366 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'
17368 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17369 hardcode_libdir_separator_GCJ
=:
17370 hardcode_direct_GCJ
=yes
17372 # hardcode_minus_L: Not really in the search PATH,
17373 # but as the default location of the library.
17374 hardcode_minus_L_GCJ
=yes
17375 export_dynamic_flag_spec_GCJ
='${wl}-E'
17379 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17380 case "$host_cpu" in
17382 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17385 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17389 case "$host_cpu" in
17391 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17394 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17398 if test "$with_gnu_ld" = no
; then
17399 case "$host_cpu" in
17401 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17402 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17403 hardcode_libdir_separator_GCJ
=:
17404 hardcode_direct_GCJ
=no
17405 hardcode_shlibpath_var_GCJ
=no
17408 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17409 hardcode_direct_GCJ
=no
17410 hardcode_shlibpath_var_GCJ
=no
17412 # hardcode_minus_L: Not really in the search PATH,
17413 # but as the default location of the library.
17414 hardcode_minus_L_GCJ
=yes
17417 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17418 hardcode_libdir_separator_GCJ
=:
17419 hardcode_direct_GCJ
=yes
17420 export_dynamic_flag_spec_GCJ
='${wl}-E'
17422 # hardcode_minus_L: Not really in the search PATH,
17423 # but as the default location of the library.
17424 hardcode_minus_L_GCJ
=yes
17430 irix5
* | irix6
* | nonstopux
*)
17431 if test "$GCC" = yes; then
17432 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'
17434 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'
17435 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17437 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17438 hardcode_libdir_separator_GCJ
=:
17439 link_all_deplibs_GCJ
=yes
17443 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17444 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17446 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17448 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17449 hardcode_direct_GCJ
=yes
17450 hardcode_shlibpath_var_GCJ
=no
17454 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17455 hardcode_direct_GCJ
=yes
17456 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17457 hardcode_libdir_separator_GCJ
=:
17458 hardcode_shlibpath_var_GCJ
=no
17462 hardcode_direct_GCJ
=yes
17463 hardcode_shlibpath_var_GCJ
=no
17464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17465 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17466 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17467 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17468 export_dynamic_flag_spec_GCJ
='${wl}-E'
17471 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17472 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17473 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17476 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17477 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17484 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17485 hardcode_minus_L_GCJ
=yes
17486 allow_undefined_flag_GCJ
=unsupported
17487 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'
17488 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17492 if test "$GCC" = yes; then
17493 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17494 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'
17496 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17497 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'
17499 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17500 hardcode_libdir_separator_GCJ
=:
17503 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17504 if test "$GCC" = yes; then
17505 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17506 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'
17507 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17509 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17510 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'
17511 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~
17512 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17514 # Both c and cxx compiler support -rpath directly
17515 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17517 hardcode_libdir_separator_GCJ
=:
17521 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17522 hardcode_shlibpath_var_GCJ
=no
17523 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17524 runpath_var
=LD_RUN_PATH
17525 hardcode_runpath_var
=yes
17529 no_undefined_flag_GCJ
=' -z text'
17530 if test "$GCC" = yes; then
17532 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17533 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17534 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17537 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17538 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17539 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17541 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17542 hardcode_shlibpath_var_GCJ
=no
17544 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17546 # The compiler driver will combine linker options so we
17547 # cannot just pass the convience library names through
17548 # without $wl, iff we do not link with $LD.
17549 # Luckily, gcc supports the same syntax we need for Sun Studio.
17550 # Supported since Solaris 2.6 (maybe 2.5.1?)
17553 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
17555 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17558 link_all_deplibs_GCJ
=yes
17562 if test "x$host_vendor" = xsequent
; then
17563 # Use $CC to link under sequent, because it throws in some extra .o
17564 # files that make .init and .fini sections work.
17565 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17567 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17569 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17570 hardcode_direct_GCJ
=yes
17571 hardcode_minus_L_GCJ
=yes
17572 hardcode_shlibpath_var_GCJ
=no
17576 case $host_vendor in
17578 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17579 hardcode_direct_GCJ
=yes # is this really true???
17582 ## LD is ld it makes a PLAMLIB
17583 ## CC just makes a GrossModule.
17584 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17585 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17586 hardcode_direct_GCJ
=no
17589 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17593 runpath_var
='LD_RUN_PATH'
17594 hardcode_shlibpath_var_GCJ
=no
17598 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599 hardcode_shlibpath_var_GCJ
=no
17600 export_dynamic_flag_spec_GCJ
='-Bexport'
17604 if test -d /usr
/nec
; then
17605 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606 hardcode_shlibpath_var_GCJ
=no
17607 runpath_var
=LD_RUN_PATH
17608 hardcode_runpath_var
=yes
17614 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17615 hardcode_direct_GCJ
=yes
17616 hardcode_minus_L_GCJ
=no
17617 hardcode_shlibpath_var_GCJ
=no
17618 hardcode_runpath_var
=yes
17619 runpath_var
=LD_RUN_PATH
17622 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
17623 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
17624 if test "$GCC" = yes; then
17625 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17627 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17629 runpath_var
='LD_RUN_PATH'
17630 hardcode_shlibpath_var_GCJ
=no
17634 no_undefined_flag_GCJ
=' -z text'
17635 # $CC -shared without GNU ld will not create a library from C++
17636 # object files and a static libstdc++, better avoid it by now
17637 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17638 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17639 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17640 hardcode_libdir_flag_spec_GCJ
=
17641 hardcode_shlibpath_var_GCJ
=no
17642 runpath_var
='LD_RUN_PATH'
17646 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17647 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17648 hardcode_shlibpath_var_GCJ
=no
17657 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17658 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17659 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17661 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17662 if test "$GCC" = yes; then
17663 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17667 # Do we need to explicitly link libc?
17669 case "x$archive_cmds_need_lc_GCJ" in
17671 # Assume -lc should be added
17672 archive_cmds_need_lc_GCJ
=yes
17674 if test "$enable_shared" = yes && test "$GCC" = yes; then
17675 case $archive_cmds_GCJ in
17677 # FIXME: we may have to deal with multi-command sequences.
17680 # Test whether the compiler implicitly links with -lc since on some
17681 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17682 # to ld, don't add -lc before -lgcc.
17683 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17684 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17686 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689 (eval $ac_compile) 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } 2>conftest.err
; then
17695 libobjs
=conftest.
$ac_objext
17697 wl
=$lt_prog_compiler_wl_GCJ
17703 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17704 allow_undefined_flag_GCJ
=
17705 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17706 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }
17711 archive_cmds_need_lc_GCJ
=no
17713 archive_cmds_need_lc_GCJ
=yes
17715 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17717 cat conftest.err
1>&5
17720 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17721 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17728 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17729 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17730 library_names_spec
=
17731 libname_spec
='lib$name'
17735 postuninstall_cmds
=
17739 shlibpath_overrides_runpath
=unknown
17741 dynamic_linker
="$host_os ld.so"
17742 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17743 if test "$GCC" = yes; then
17744 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17745 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17746 # if the path contains ";" then we assume it to be the separator
17747 # otherwise default to the standard path separator (i.e. ":") - it is
17748 # assumed that no part of a normal pathname contains ";" but that should
17749 # okay in the real world where ";" in dirpaths is itself problematic.
17750 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17752 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17755 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17757 need_lib_prefix
=unknown
17758 hardcode_into_libs
=no
17760 # when you set need_version to no, make sure it does not cause -set_version
17761 # flags to be left without arguments
17762 need_version
=unknown
17767 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17768 shlibpath_var
=LIBPATH
17770 # AIX 3 has no versioning support, so we append a major version to the name.
17771 soname_spec
='${libname}${release}${shared_ext}$major'
17778 hardcode_into_libs
=yes
17779 if test "$host_cpu" = ia64
; then
17780 # AIX 5 supports IA64
17781 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17782 shlibpath_var
=LD_LIBRARY_PATH
17784 # With GCC up to 2.95.x, collect2 would create an import file
17785 # for dependence libraries. The import file would start with
17786 # the line `#! .'. This would cause the generated library to
17787 # depend on `.', always an invalid library. This was fixed in
17788 # development snapshots of GCC prior to 3.0.
17790 aix4 | aix4.
[01] | aix4.
[01].
*)
17791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17793 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17796 can_build_shared
=no
17800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17801 # soname into executable. Probably we can add versioning support to
17802 # collect2, so additional links can be useful in future.
17803 if test "$aix_use_runtimelinking" = yes; then
17804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17805 # instead of lib<name>.a to let people know that these are not
17806 # typical AIX shared libraries.
17807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17809 # We preserve .a as extension for shared libraries through AIX4.2
17810 # and later when we are not doing run time linking.
17811 library_names_spec
='${libname}${release}.a $libname.a'
17812 soname_spec
='${libname}${release}${shared_ext}$major'
17814 shlibpath_var
=LIBPATH
17819 library_names_spec
='$libname.ixlibrary $libname.a'
17820 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17821 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'
17825 library_names_spec
='${libname}${shared_ext}'
17826 dynamic_linker
="$host_os ld.so"
17827 shlibpath_var
=LIBRARY_PATH
17833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834 soname_spec
='${libname}${release}${shared_ext}$major'
17835 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17836 shlibpath_var
=LD_LIBRARY_PATH
17837 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17838 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17839 # the default ld.so.conf also contains /usr/contrib/lib and
17840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17841 # libtool to hard-code these into programs
17844 cygwin
* | mingw
* | pw32
*)
17845 version_type
=windows
17850 case $GCC,$host_os in
17851 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17852 library_names_spec
='$libname.dll.a'
17853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17854 postinstall_cmds
='base_file=`basename \${file}`~
17855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17856 dldir=$destdir/`dirname \$dlpath`~
17857 test -d \$dldir || mkdir -p \$dldir~
17858 $install_prog $dir/$dlname \$dldir/$dlname'
17859 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17860 dlpath=$dir/\$dldll~
17862 shlibpath_overrides_runpath
=yes
17866 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17867 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17868 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17871 # MinGW DLLs use traditional 'lib' prefix
17872 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17873 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17874 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17875 # It is most probably a Windows format PATH printed by
17876 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17877 # path with ; separators, and with drive letters. We can handle the
17878 # drive letters (cygwin fileutils understands them), so leave them,
17879 # especially as we might pass files found there to a mingw objdump,
17880 # which wouldn't understand a cygwinified path. Ahh.
17881 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17883 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17887 # pw32 DLLs use 'pw' prefix rather than 'lib'
17888 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17894 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17897 dynamic_linker
='Win32 ld.exe'
17898 # FIXME: first we should search . and the directory the executable is in
17902 darwin
* | rhapsody
*)
17903 dynamic_linker
="$host_os dyld"
17904 version_type
=darwin
17907 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17908 soname_spec
='${libname}${release}${major}$shared_ext'
17909 shlibpath_overrides_runpath
=yes
17910 shlibpath_var
=DYLD_LIBRARY_PATH
17911 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
17912 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17913 if test "$GCC" = yes; then
17914 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"`
17916 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17918 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17926 soname_spec
='${libname}${release}${shared_ext}$major'
17927 shlibpath_var
=LD_LIBRARY_PATH
17938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17939 soname_spec
='${libname}${release}${shared_ext}$major'
17940 shlibpath_var
=LD_LIBRARY_PATH
17941 shlibpath_overrides_runpath
=no
17942 hardcode_into_libs
=yes
17943 dynamic_linker
='GNU ld.so'
17946 freebsd
* | dragonfly
*)
17947 # DragonFly does not have aout. When/if they implement a new
17948 # versioning mechanism, adjust this.
17949 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17950 version_type
=freebsd-
$objformat
17951 case $version_type in
17953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17958 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17962 shlibpath_var
=LD_LIBRARY_PATH
17965 shlibpath_overrides_runpath
=yes
17967 freebsd3.
[01]* | freebsdelf3.
[01]*)
17968 shlibpath_overrides_runpath
=yes
17969 hardcode_into_libs
=yes
17972 shlibpath_overrides_runpath
=no
17973 hardcode_into_libs
=yes
17982 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17983 soname_spec
='${libname}${release}${shared_ext}$major'
17984 shlibpath_var
=LD_LIBRARY_PATH
17985 hardcode_into_libs
=yes
17988 hpux9
* | hpux10
* | hpux11
*)
17989 # Give a soname corresponding to the major version so that dld.sl refuses to
17990 # link against other versions.
17994 case "$host_cpu" in
17997 hardcode_into_libs
=yes
17998 dynamic_linker
="$host_os dld.so"
17999 shlibpath_var
=LD_LIBRARY_PATH
18000 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18001 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002 soname_spec
='${libname}${release}${shared_ext}$major'
18003 if test "X$HPUX_IA64_MODE" = X32
; then
18004 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18006 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18008 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18012 hardcode_into_libs
=yes
18013 dynamic_linker
="$host_os dld.sl"
18014 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18015 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18017 soname_spec
='${libname}${release}${shared_ext}$major'
18018 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18019 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18023 dynamic_linker
="$host_os dld.sl"
18024 shlibpath_var
=SHLIB_PATH
18025 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18027 soname_spec
='${libname}${release}${shared_ext}$major'
18030 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18031 postinstall_cmds
='chmod 555 $lib'
18034 irix5
* | irix6
* | nonstopux
*)
18036 nonstopux
*) version_type
=nonstopux
;;
18038 if test "$lt_cv_prog_gnu_ld" = yes; then
18046 soname_spec
='${libname}${release}${shared_ext}$major'
18047 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18049 irix5
* | nonstopux
*)
18050 libsuff
= shlibsuff
=
18053 case $LD in # libtool.m4 will add one of these switches to LD
18054 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18055 libsuff
= shlibsuff
= libmagic
=32-bit;;
18056 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18057 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18058 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18059 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18060 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18064 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18065 shlibpath_overrides_runpath
=no
18066 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18067 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18068 hardcode_into_libs
=yes
18071 # No shared lib support for Linux oldld, aout, or coff.
18072 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18076 # This must be Linux ELF.
18081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082 soname_spec
='${libname}${release}${shared_ext}$major'
18083 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18084 shlibpath_var
=LD_LIBRARY_PATH
18085 shlibpath_overrides_runpath
=no
18086 # This implies no fast_install, which is unacceptable.
18087 # Some rework will be needed to allow for fast_install
18088 # before this can be enabled.
18089 hardcode_into_libs
=yes
18091 # find out which ABI we are using
18093 case "$host_cpu" in
18094 x86_64
*|s390x
*|powerpc64
*)
18095 echo '#line 18095 "configure"' > conftest.
$ac_ext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18097 (eval $ac_compile) 2>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; then
18101 case `/usr/bin/file conftest.$ac_objext` in
18104 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18112 # Append ld.so.conf contents to the search path
18113 if test -f /etc
/ld.so.conf
; then
18114 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18115 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18118 # We used to test for /lib/ld.so.1 and disable shared libraries on
18119 # powerpc, because MkLinux only supported shared libraries with the
18120 # GNU dynamic linker. Since this was broken with cross compilers,
18121 # most powerpc-linux boxes support dynamic linking these days and
18122 # people can always --disable-shared, the test was removed, and we
18123 # assume the GNU/Linux dynamic linker is in use.
18124 dynamic_linker
='GNU/Linux ld.so'
18131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18132 soname_spec
='${libname}${release}${shared_ext}$major'
18133 shlibpath_var
=LD_LIBRARY_PATH
18134 shlibpath_overrides_runpath
=no
18135 hardcode_into_libs
=yes
18136 dynamic_linker
='GNU ld.so'
18143 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18145 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18146 dynamic_linker
='NetBSD (a.out) ld.so'
18148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18149 soname_spec
='${libname}${release}${shared_ext}$major'
18150 dynamic_linker
='NetBSD ld.elf_so'
18152 shlibpath_var
=LD_LIBRARY_PATH
18153 shlibpath_overrides_runpath
=yes
18154 hardcode_into_libs
=yes
18159 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160 shlibpath_var
=LD_LIBRARY_PATH
18161 shlibpath_overrides_runpath
=yes
18168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18169 soname_spec
='${libname}${release}${shared_ext}$major'
18170 shlibpath_var
=LD_LIBRARY_PATH
18171 shlibpath_overrides_runpath
=yes
18178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18179 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18180 shlibpath_var
=LD_LIBRARY_PATH
18181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18183 openbsd2.
[89] | openbsd2.
[89].
*)
18184 shlibpath_overrides_runpath
=no
18187 shlibpath_overrides_runpath
=yes
18191 shlibpath_overrides_runpath
=yes
18196 libname_spec
='$name'
18199 library_names_spec
='$libname${shared_ext} $libname.a'
18200 dynamic_linker
='OS/2 ld.exe'
18201 shlibpath_var
=LIBPATH
18204 osf3
* | osf4
* | osf5
*)
18208 soname_spec
='${libname}${release}${shared_ext}$major'
18209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210 shlibpath_var
=LD_LIBRARY_PATH
18211 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18212 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18217 soname_spec
='${libname}${release}${shared_ext}$major'
18218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219 shlibpath_var
=LD_LIBRARY_PATH
18226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 soname_spec
='${libname}${release}${shared_ext}$major'
18228 shlibpath_var
=LD_LIBRARY_PATH
18229 shlibpath_overrides_runpath
=yes
18230 hardcode_into_libs
=yes
18231 # ldd complains unless libraries are executable
18232 postinstall_cmds
='chmod +x $lib'
18237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18238 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18239 shlibpath_var
=LD_LIBRARY_PATH
18240 shlibpath_overrides_runpath
=yes
18241 if test "$with_gnu_ld" = yes; then
18247 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250 soname_spec
='${libname}${release}${shared_ext}$major'
18251 shlibpath_var
=LD_LIBRARY_PATH
18252 case $host_vendor in
18254 shlibpath_overrides_runpath
=no
18256 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18257 runpath_var
=LD_RUN_PATH
18265 shlibpath_overrides_runpath
=no
18266 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18272 if test -d /usr
/nec
;then
18274 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18275 soname_spec
='$libname${shared_ext}.$major'
18276 shlibpath_var
=LD_LIBRARY_PATH
18282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18283 soname_spec
='${libname}${release}${shared_ext}$major'
18284 shlibpath_var
=LD_LIBRARY_PATH
18291 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18292 echo "${ECHO_T}$dynamic_linker" >&6
18293 test "$dynamic_linker" = no
&& can_build_shared
=no
18295 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18296 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18297 hardcode_action_GCJ
=
18298 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18299 test -n "$runpath_var_GCJ" || \
18300 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18302 # We can hardcode non-existant directories.
18303 if test "$hardcode_direct_GCJ" != no
&&
18304 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18305 # have to relink, otherwise we might link with an installed library
18306 # when we should be linking with a yet-to-be-installed one
18307 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18308 test "$hardcode_minus_L_GCJ" != no
; then
18309 # Linking always hardcodes the temporary library directory.
18310 hardcode_action_GCJ
=relink
18312 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18313 hardcode_action_GCJ
=immediate
18316 # We cannot hardcode anything, or else we can only hardcode existing
18318 hardcode_action_GCJ
=unsupported
18320 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18321 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18323 if test "$hardcode_action_GCJ" = relink
; then
18324 # Fast installation is not supported
18325 enable_fast_install
=no
18326 elif test "$shlibpath_overrides_runpath" = yes ||
18327 test "$enable_shared" = no
; then
18328 # Fast installation is not necessary
18329 enable_fast_install
=needless
18334 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18335 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18336 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
18337 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18338 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18339 echo "$as_me:$LINENO: result: yes" >&5
18340 echo "${ECHO_T}yes" >&6
18342 # FIXME - insert some real tests, host_os isn't really good enough
18345 if test -n "$STRIP" ; then
18346 striplib
="$STRIP -x"
18347 echo "$as_me:$LINENO: result: yes" >&5
18348 echo "${ECHO_T}yes" >&6
18350 echo "$as_me:$LINENO: result: no" >&5
18351 echo "${ECHO_T}no" >&6
18355 echo "$as_me:$LINENO: result: no" >&5
18356 echo "${ECHO_T}no" >&6
18361 if test "x$enable_dlopen" != xyes
; then
18362 enable_dlopen
=unknown
18363 enable_dlopen_self
=unknown
18364 enable_dlopen_self_static
=unknown
18371 lt_cv_dlopen
="load_add_on"
18373 lt_cv_dlopen_self
=yes
18377 lt_cv_dlopen
="LoadLibrary"
18382 lt_cv_dlopen
="dlopen"
18387 # if libdl is installed we need to link against it
18388 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18389 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18390 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 ac_check_lib_save_LIBS
=$LIBS
18395 cat >conftest.
$ac_ext <<_ACEOF
18398 cat confdefs.h
>>conftest.
$ac_ext
18399 cat >>conftest.
$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18402 /* Override any gcc2 internal prototype to avoid an error. */
18406 /* We use char because int might match the return type of a gcc2
18407 builtin and then its argument prototype would still apply. */
18417 rm -f conftest.
$ac_objext conftest
$ac_exeext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18419 (eval $ac_link) 2>conftest.er1
18421 grep -v '^ *+' conftest.er1
>conftest.err
18423 cat conftest.err
>&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } &&
18426 { ac_try
='test -z "$ac_c_werror_flag"
18427 || test ! -s conftest.err'
18428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429 (eval $ac_try) 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; } &&
18433 { ac_try
='test -s conftest$ac_exeext'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_cv_lib_dl_dlopen
=yes
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.
$ac_ext >&5
18444 ac_cv_lib_dl_dlopen
=no
18446 rm -f conftest.err conftest.
$ac_objext \
18447 conftest
$ac_exeext conftest.
$ac_ext
18448 LIBS
=$ac_check_lib_save_LIBS
18450 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18452 if test $ac_cv_lib_dl_dlopen = yes; then
18453 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18456 lt_cv_dlopen
="dyld"
18458 lt_cv_dlopen_self
=yes
18465 echo "$as_me:$LINENO: checking for shl_load" >&5
18466 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18467 if test "${ac_cv_func_shl_load+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 cat >conftest.
$ac_ext <<_ACEOF
18473 cat confdefs.h
>>conftest.
$ac_ext
18474 cat >>conftest.
$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18476 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18478 #define shl_load innocuous_shl_load
18480 /* System header to define __stub macros and hopefully few prototypes,
18481 which can conflict with char shl_load (); below.
18482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18483 <limits.h> exists even on freestanding compilers. */
18486 # include <limits.h>
18488 # include <assert.h>
18493 /* Override any gcc2 internal prototype to avoid an error. */
18498 /* We use char because int might match the return type of a gcc2
18499 builtin and then its argument prototype would still apply. */
18501 /* The GNU C library defines this for functions which it implements
18502 to always fail with ENOSYS. Some functions are actually named
18503 something starting with __ and the normal name is an alias. */
18504 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18507 char (*f) () = shl_load;
18516 return f != shl_load;
18521 rm -f conftest.
$ac_objext conftest
$ac_exeext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523 (eval $ac_link) 2>conftest.er1
18525 grep -v '^ *+' conftest.er1
>conftest.err
18527 cat conftest.err
>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try
='test -z "$ac_c_werror_flag"
18531 || test ! -s conftest.err'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try
='test -s conftest$ac_exeext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_cv_func_shl_load
=yes
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.
$ac_ext >&5
18548 ac_cv_func_shl_load
=no
18550 rm -f conftest.err conftest.
$ac_objext \
18551 conftest
$ac_exeext conftest.
$ac_ext
18553 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18554 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18555 if test $ac_cv_func_shl_load = yes; then
18556 lt_cv_dlopen
="shl_load"
18558 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 ac_check_lib_save_LIBS
=$LIBS
18565 cat >conftest.
$ac_ext <<_ACEOF
18568 cat confdefs.h
>>conftest.
$ac_ext
18569 cat >>conftest.
$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18572 /* Override any gcc2 internal prototype to avoid an error. */
18576 /* We use char because int might match the return type of a gcc2
18577 builtin and then its argument prototype would still apply. */
18587 rm -f conftest.
$ac_objext conftest
$ac_exeext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18589 (eval $ac_link) 2>conftest.er1
18591 grep -v '^ *+' conftest.er1
>conftest.err
18593 cat conftest.err
>&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try
='test -z "$ac_c_werror_flag"
18597 || test ! -s conftest.err'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try
='test -s conftest$ac_exeext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_cv_lib_dld_shl_load
=yes
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.
$ac_ext >&5
18614 ac_cv_lib_dld_shl_load
=no
18616 rm -f conftest.err conftest.
$ac_objext \
18617 conftest
$ac_exeext conftest.
$ac_ext
18618 LIBS
=$ac_check_lib_save_LIBS
18620 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18621 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18622 if test $ac_cv_lib_dld_shl_load = yes; then
18623 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
18625 echo "$as_me:$LINENO: checking for dlopen" >&5
18626 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18627 if test "${ac_cv_func_dlopen+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18630 cat >conftest.
$ac_ext <<_ACEOF
18633 cat confdefs.h
>>conftest.
$ac_ext
18634 cat >>conftest.
$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18638 #define dlopen innocuous_dlopen
18640 /* System header to define __stub macros and hopefully few prototypes,
18641 which can conflict with char dlopen (); below.
18642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18643 <limits.h> exists even on freestanding compilers. */
18646 # include <limits.h>
18648 # include <assert.h>
18653 /* Override any gcc2 internal prototype to avoid an error. */
18658 /* We use char because int might match the return type of a gcc2
18659 builtin and then its argument prototype would still apply. */
18661 /* The GNU C library defines this for functions which it implements
18662 to always fail with ENOSYS. Some functions are actually named
18663 something starting with __ and the normal name is an alias. */
18664 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18667 char (*f) () = dlopen;
18676 return f != dlopen;
18681 rm -f conftest.
$ac_objext conftest
$ac_exeext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18683 (eval $ac_link) 2>conftest.er1
18685 grep -v '^ *+' conftest.er1
>conftest.err
18687 cat conftest.err
>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try
='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try
='test -s conftest$ac_exeext'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ac_cv_func_dlopen
=yes
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.
$ac_ext >&5
18708 ac_cv_func_dlopen
=no
18710 rm -f conftest.err conftest.
$ac_objext \
18711 conftest
$ac_exeext conftest.
$ac_ext
18713 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18714 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18715 if test $ac_cv_func_dlopen = yes; then
18716 lt_cv_dlopen
="dlopen"
18718 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18723 ac_check_lib_save_LIBS
=$LIBS
18725 cat >conftest.
$ac_ext <<_ACEOF
18728 cat confdefs.h
>>conftest.
$ac_ext
18729 cat >>conftest.
$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18732 /* Override any gcc2 internal prototype to avoid an error. */
18736 /* We use char because int might match the return type of a gcc2
18737 builtin and then its argument prototype would still apply. */
18747 rm -f conftest.
$ac_objext conftest
$ac_exeext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18749 (eval $ac_link) 2>conftest.er1
18751 grep -v '^ *+' conftest.er1
>conftest.err
18753 cat conftest.err
>&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } &&
18756 { ac_try
='test -z "$ac_c_werror_flag"
18757 || test ! -s conftest.err'
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; } &&
18763 { ac_try
='test -s conftest$ac_exeext'
18764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765 (eval $ac_try) 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 ac_cv_lib_dl_dlopen
=yes
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.
$ac_ext >&5
18774 ac_cv_lib_dl_dlopen
=no
18776 rm -f conftest.err conftest.
$ac_objext \
18777 conftest
$ac_exeext conftest.
$ac_ext
18778 LIBS
=$ac_check_lib_save_LIBS
18780 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18781 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18782 if test $ac_cv_lib_dl_dlopen = yes; then
18783 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18785 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18786 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18787 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18790 ac_check_lib_save_LIBS
=$LIBS
18791 LIBS
="-lsvld $LIBS"
18792 cat >conftest.
$ac_ext <<_ACEOF
18795 cat confdefs.h
>>conftest.
$ac_ext
18796 cat >>conftest.
$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18799 /* Override any gcc2 internal prototype to avoid an error. */
18803 /* We use char because int might match the return type of a gcc2
18804 builtin and then its argument prototype would still apply. */
18814 rm -f conftest.
$ac_objext conftest
$ac_exeext
18815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18816 (eval $ac_link) 2>conftest.er1
18818 grep -v '^ *+' conftest.er1
>conftest.err
18820 cat conftest.err
>&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } &&
18823 { ac_try
='test -z "$ac_c_werror_flag"
18824 || test ! -s conftest.err'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; } &&
18830 { ac_try
='test -s conftest$ac_exeext'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 ac_cv_lib_svld_dlopen
=yes
18838 echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.
$ac_ext >&5
18841 ac_cv_lib_svld_dlopen
=no
18843 rm -f conftest.err conftest.
$ac_objext \
18844 conftest
$ac_exeext conftest.
$ac_ext
18845 LIBS
=$ac_check_lib_save_LIBS
18847 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18848 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18849 if test $ac_cv_lib_svld_dlopen = yes; then
18850 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18852 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18853 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18854 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18857 ac_check_lib_save_LIBS
=$LIBS
18859 cat >conftest.
$ac_ext <<_ACEOF
18862 cat confdefs.h
>>conftest.
$ac_ext
18863 cat >>conftest.
$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18866 /* Override any gcc2 internal prototype to avoid an error. */
18870 /* We use char because int might match the return type of a gcc2
18871 builtin and then its argument prototype would still apply. */
18881 rm -f conftest.
$ac_objext conftest
$ac_exeext
18882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18883 (eval $ac_link) 2>conftest.er1
18885 grep -v '^ *+' conftest.er1
>conftest.err
18887 cat conftest.err
>&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } &&
18890 { ac_try
='test -z "$ac_c_werror_flag"
18891 || test ! -s conftest.err'
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; } &&
18897 { ac_try
='test -s conftest$ac_exeext'
18898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899 (eval $ac_try) 2>&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; }; then
18903 ac_cv_lib_dld_dld_link
=yes
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.
$ac_ext >&5
18908 ac_cv_lib_dld_dld_link
=no
18910 rm -f conftest.err conftest.
$ac_objext \
18911 conftest
$ac_exeext conftest.
$ac_ext
18912 LIBS
=$ac_check_lib_save_LIBS
18914 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18915 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18916 if test $ac_cv_lib_dld_dld_link = yes; then
18917 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
18938 if test "x$lt_cv_dlopen" != xno
; then
18944 case $lt_cv_dlopen in
18946 save_CPPFLAGS
="$CPPFLAGS"
18947 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18949 save_LDFLAGS
="$LDFLAGS"
18950 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18953 LIBS
="$lt_cv_dlopen_libs $LIBS"
18955 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18956 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18957 if test "${lt_cv_dlopen_self+set}" = set; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 if test "$cross_compiling" = yes; then :
18961 lt_cv_dlopen_self
=cross
18963 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18964 lt_status
=$lt_dlunknown
18965 cat > conftest.
$ac_ext <<EOF
18966 #line 18966 "configure"
18967 #include "confdefs.h"
18976 # define LT_DLGLOBAL RTLD_GLOBAL
18979 # define LT_DLGLOBAL DL_GLOBAL
18981 # define LT_DLGLOBAL 0
18985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18986 find out it does not work in some platform. */
18987 #ifndef LT_DLLAZY_OR_NOW
18989 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18992 # define LT_DLLAZY_OR_NOW DL_LAZY
18995 # define LT_DLLAZY_OR_NOW RTLD_NOW
18998 # define LT_DLLAZY_OR_NOW DL_NOW
19000 # define LT_DLLAZY_OR_NOW 0
19008 extern "C" void exit (int);
19011 void fnord() { int i=42;}
19014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19015 int status = $lt_dlunknown;
19019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19020 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19021 /* dlclose (self); */
19027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19028 (eval $ac_link) 2>&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19032 (.
/conftest
; exit; ) 2>/dev
/null
19034 case x
$lt_status in
19035 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19036 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19037 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
19040 # compilation failed
19041 lt_cv_dlopen_self
=no
19048 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19049 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19051 if test "x$lt_cv_dlopen_self" = xyes
; then
19052 LDFLAGS
="$LDFLAGS $link_static_flag"
19053 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19054 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19055 if test "${lt_cv_dlopen_self_static+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 if test "$cross_compiling" = yes; then :
19059 lt_cv_dlopen_self_static
=cross
19061 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19062 lt_status
=$lt_dlunknown
19063 cat > conftest.
$ac_ext <<EOF
19064 #line 19064 "configure"
19065 #include "confdefs.h"
19074 # define LT_DLGLOBAL RTLD_GLOBAL
19077 # define LT_DLGLOBAL DL_GLOBAL
19079 # define LT_DLGLOBAL 0
19083 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19084 find out it does not work in some platform. */
19085 #ifndef LT_DLLAZY_OR_NOW
19087 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19090 # define LT_DLLAZY_OR_NOW DL_LAZY
19093 # define LT_DLLAZY_OR_NOW RTLD_NOW
19096 # define LT_DLLAZY_OR_NOW DL_NOW
19098 # define LT_DLLAZY_OR_NOW 0
19106 extern "C" void exit (int);
19109 void fnord() { int i=42;}
19112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19113 int status = $lt_dlunknown;
19117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19118 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19119 /* dlclose (self); */
19125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19126 (eval $ac_link) 2>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19130 (.
/conftest
; exit; ) 2>/dev
/null
19132 case x
$lt_status in
19133 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19134 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19135 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
19138 # compilation failed
19139 lt_cv_dlopen_self_static
=no
19146 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19147 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19150 CPPFLAGS
="$save_CPPFLAGS"
19151 LDFLAGS
="$save_LDFLAGS"
19156 case $lt_cv_dlopen_self in
19157 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19158 *) enable_dlopen_self
=unknown
;;
19161 case $lt_cv_dlopen_self_static in
19162 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19163 *) enable_dlopen_self_static
=unknown
;;
19168 # The else clause should only fire when bootstrapping the
19169 # libtool distribution, otherwise you forgot to ship ltmain.sh
19170 # with your package, and you will get complaints that there are
19171 # no rules to generate ltmain.sh.
19172 if test -f "$ltmain"; then
19173 # See if we are running on zsh, and set the options which allow our commands through
19174 # without removal of \ escapes.
19175 if test -n "${ZSH_VERSION+set}" ; then
19176 setopt NO_GLOB_SUBST
19178 # Now quote all the things that may contain metacharacters while being
19179 # careful not to overquote the AC_SUBSTed values. We take copies of the
19180 # variables and quote the copies for generation of the libtool script.
19181 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19183 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19184 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19185 deplibs_check_method reload_flag reload_cmds need_locks \
19186 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19187 lt_cv_sys_global_symbol_to_c_name_address \
19188 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19189 old_postinstall_cmds old_postuninstall_cmds \
19193 lt_prog_compiler_wl_GCJ \
19194 lt_prog_compiler_pic_GCJ \
19195 lt_prog_compiler_static_GCJ \
19196 lt_prog_compiler_no_builtin_flag_GCJ \
19197 export_dynamic_flag_spec_GCJ \
19198 thread_safe_flag_spec_GCJ \
19199 whole_archive_flag_spec_GCJ \
19200 enable_shared_with_static_runtimes_GCJ \
19201 old_archive_cmds_GCJ \
19202 old_archive_from_new_cmds_GCJ \
19203 predep_objects_GCJ \
19204 postdep_objects_GCJ \
19207 compiler_lib_search_path_GCJ \
19209 archive_expsym_cmds_GCJ \
19210 postinstall_cmds_GCJ \
19211 postuninstall_cmds_GCJ \
19212 old_archive_from_expsyms_cmds_GCJ \
19213 allow_undefined_flag_GCJ \
19214 no_undefined_flag_GCJ \
19215 export_symbols_cmds_GCJ \
19216 hardcode_libdir_flag_spec_GCJ \
19217 hardcode_libdir_flag_spec_ld_GCJ \
19218 hardcode_libdir_separator_GCJ \
19219 hardcode_automatic_GCJ \
19221 module_expsym_cmds_GCJ \
19222 lt_cv_prog_compiler_c_o_GCJ \
19223 exclude_expsyms_GCJ \
19224 include_expsyms_GCJ
; do
19227 old_archive_cmds_GCJ | \
19228 old_archive_from_new_cmds_GCJ | \
19229 archive_cmds_GCJ | \
19230 archive_expsym_cmds_GCJ | \
19231 module_cmds_GCJ | \
19232 module_expsym_cmds_GCJ | \
19233 old_archive_from_expsyms_cmds_GCJ | \
19234 export_symbols_cmds_GCJ | \
19235 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19236 postinstall_cmds | postuninstall_cmds | \
19237 old_postinstall_cmds | old_postuninstall_cmds | \
19238 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19239 # Double-quote double-evaled strings.
19240 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19243 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19249 *'\$0 --fallback-echo"')
19250 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19256 cat <<__EOF__ >> "$cfgfile"
19257 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19259 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19261 # Shell to use when invoking shell scripts.
19264 # Whether or not to build shared libraries.
19265 build_libtool_libs=$enable_shared
19267 # Whether or not to build static libraries.
19268 build_old_libs=$enable_static
19270 # Whether or not to add -lc for building shared libraries.
19271 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19273 # Whether or not to disallow shared libs when runtime libs are static
19274 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19276 # Whether or not to optimize for fast installation.
19277 fast_install=$enable_fast_install
19280 host_alias=$host_alias
19284 # The build system.
19285 build_alias=$build_alias
19289 # An echo program that does not interpret backslashes.
19294 AR_FLAGS=$lt_AR_FLAGS
19299 # A language-specific compiler.
19300 CC=$lt_compiler_GCJ
19302 # Is the compiler the GNU C compiler?
19308 # The linker used to build libraries.
19311 # Whether we need hard or soft links.
19314 # A BSD-compatible nm program.
19317 # A symbol stripping program
19320 # Used to examine libraries when file_magic_cmd begins "file"
19321 MAGIC_CMD=$MAGIC_CMD
19323 # Used on cygwin: DLL creation program.
19326 # Used on cygwin: object dumper.
19329 # Used on cygwin: assembler.
19332 # The name of the directory that contains temporary libtool files.
19335 # How to create reloadable object files.
19336 reload_flag=$lt_reload_flag
19337 reload_cmds=$lt_reload_cmds
19339 # How to pass a linker flag through the compiler.
19340 wl=$lt_lt_prog_compiler_wl_GCJ
19342 # Object file suffix (normally "o").
19343 objext="$ac_objext"
19345 # Old archive suffix (normally "a").
19348 # Shared library suffix (normally ".so").
19349 shrext_cmds='$shrext_cmds'
19351 # Executable file suffix (normally "").
19354 # Additional compiler flags for building library objects.
19355 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19358 # What is the maximum length of a command?
19359 max_cmd_len=$lt_cv_sys_max_cmd_len
19361 # Does compiler simultaneously support -c and -o options?
19362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19364 # Must we lock files when doing compilation?
19365 need_locks=$lt_need_locks
19367 # Do we need the lib prefix for modules?
19368 need_lib_prefix=$need_lib_prefix
19370 # Do we need a version for libraries?
19371 need_version=$need_version
19373 # Whether dlopen is supported.
19374 dlopen_support=$enable_dlopen
19376 # Whether dlopen of programs is supported.
19377 dlopen_self=$enable_dlopen_self
19379 # Whether dlopen of statically linked programs is supported.
19380 dlopen_self_static=$enable_dlopen_self_static
19382 # Compiler flag to prevent dynamic linking.
19383 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19385 # Compiler flag to turn off builtin functions.
19386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19388 # Compiler flag to allow reflexive dlopens.
19389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19391 # Compiler flag to generate shared objects directly from archives.
19392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19394 # Compiler flag to generate thread-safe objects.
19395 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19397 # Library versioning type.
19398 version_type=$version_type
19400 # Format of library name prefix.
19401 libname_spec=$lt_libname_spec
19403 # List of archive names. First name is the real one, the rest are links.
19404 # The last name is the one that the linker finds with -lNAME.
19405 library_names_spec=$lt_library_names_spec
19407 # The coded name of the library, if different from the real name.
19408 soname_spec=$lt_soname_spec
19410 # Commands used to build and install an old-style archive.
19412 old_archive_cmds=$lt_old_archive_cmds_GCJ
19413 old_postinstall_cmds=$lt_old_postinstall_cmds
19414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19416 # Create an old-style archive from a shared archive.
19417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19419 # Create a temporary old-style archive to link instead of a shared archive.
19420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19422 # Commands used to build and install a shared archive.
19423 archive_cmds=$lt_archive_cmds_GCJ
19424 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19425 postinstall_cmds=$lt_postinstall_cmds
19426 postuninstall_cmds=$lt_postuninstall_cmds
19428 # Commands used to build a loadable module (assumed same as above if empty)
19429 module_cmds=$lt_module_cmds_GCJ
19430 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19432 # Commands to strip libraries.
19433 old_striplib=$lt_old_striplib
19434 striplib=$lt_striplib
19436 # Dependencies to place before the objects being linked to create a
19438 predep_objects=$lt_predep_objects_GCJ
19440 # Dependencies to place after the objects being linked to create a
19442 postdep_objects=$lt_postdep_objects_GCJ
19444 # Dependencies to place before the objects being linked to create a
19446 predeps=$lt_predeps_GCJ
19448 # Dependencies to place after the objects being linked to create a
19450 postdeps=$lt_postdeps_GCJ
19452 # The library search path used internally by the compiler when linking
19453 # a shared library.
19454 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19456 # Method to check whether dependent libraries are shared objects.
19457 deplibs_check_method=$lt_deplibs_check_method
19459 # Command to use when deplibs_check_method == file_magic.
19460 file_magic_cmd=$lt_file_magic_cmd
19462 # Flag that allows shared libraries with undefined symbols to be built.
19463 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19465 # Flag that forces no undefined symbols.
19466 no_undefined_flag=$lt_no_undefined_flag_GCJ
19468 # Commands used to finish a libtool library installation in a directory.
19469 finish_cmds=$lt_finish_cmds
19471 # Same as above, but a single script fragment to be evaled but not shown.
19472 finish_eval=$lt_finish_eval
19474 # Take the output of nm and produce a listing of raw symbols and C names.
19475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19477 # Transform the output of nm in a proper C declaration
19478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19480 # Transform the output of nm in a C name address pair
19481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19483 # This is the shared library runtime path variable.
19484 runpath_var=$runpath_var
19486 # This is the shared library path variable.
19487 shlibpath_var=$shlibpath_var
19489 # Is shlibpath searched before the hard-coded library search path?
19490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19492 # How to hardcode a shared library path into an executable.
19493 hardcode_action=$hardcode_action_GCJ
19495 # Whether we should hardcode library paths into libraries.
19496 hardcode_into_libs=$hardcode_into_libs
19498 # Flag to hardcode \$libdir into a binary during linking.
19499 # This must work even if \$libdir does not exist.
19500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19502 # If ld is used when linking, flag to hardcode \$libdir into
19503 # a binary during linking. This must work even if \$libdir does
19505 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19507 # Whether we need a single -rpath flag with a separated argument.
19508 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19510 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19511 # resulting binary.
19512 hardcode_direct=$hardcode_direct_GCJ
19514 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19515 # resulting binary.
19516 hardcode_minus_L=$hardcode_minus_L_GCJ
19518 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19519 # the resulting binary.
19520 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19522 # Set to yes if building a shared library automatically hardcodes DIR into the library
19523 # and all subsequent libraries and executables linked against it.
19524 hardcode_automatic=$hardcode_automatic_GCJ
19526 # Variables whose values should be saved in libtool wrapper scripts and
19527 # restored at relink time.
19528 variables_saved_for_relink="$variables_saved_for_relink"
19530 # Whether libtool must link a program against all its dependency libraries.
19531 link_all_deplibs=$link_all_deplibs_GCJ
19533 # Compile-time system search path for libraries
19534 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19536 # Run-time system search path for libraries
19537 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19539 # Fix the shell variable \$srcfile for the compiler.
19540 fix_srcfile_path="$fix_srcfile_path_GCJ"
19542 # Set to yes if exported symbols are required.
19543 always_export_symbols=$always_export_symbols_GCJ
19545 # The commands to list exported symbols.
19546 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19548 # The commands to extract the exported symbol list from a shared archive.
19549 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19551 # Symbols that should not be listed in the preloaded symbols.
19552 exclude_expsyms=$lt_exclude_expsyms_GCJ
19554 # Symbols that must always be exported.
19555 include_expsyms=$lt_include_expsyms_GCJ
19557 # ### END LIBTOOL TAG CONFIG: $tagname
19563 # If there is no Makefile yet, we rely on a make rule to execute
19564 # `config.status --recheck' to rerun these tests and create the
19565 # libtool script then.
19566 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19567 if test -f "$ltmain_in"; then
19568 test -f Makefile
&& make "$ltmain"
19574 ac_cpp
='$CPP $CPPFLAGS'
19575 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19576 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19577 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19590 # Source file extension for RC test sources.
19593 # Object file extension for compiled RC test sources.
19597 # Code to be used in simple compile tests
19598 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19600 # Code to be used in simple link tests
19601 lt_simple_link_test_code
="$lt_simple_compile_test_code"
19603 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19605 # If no C compiler was specified, use CC.
19608 # Allow CC to be a program name with arguments.
19612 # save warnings/boilerplate of simple test code
19613 ac_outfile
=conftest.
$ac_objext
19614 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
19615 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
19616 _lt_compiler_boilerplate
=`cat conftest.err`
19619 ac_outfile
=conftest.
$ac_objext
19620 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
19621 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d' >conftest.err
19622 _lt_linker_boilerplate
=`cat conftest.err`
19626 # Allow CC to be a program name with arguments.
19631 for cc_temp
in $compiler""; do
19633 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19634 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19639 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19641 lt_cv_prog_compiler_c_o_RC
=yes
19643 # The else clause should only fire when bootstrapping the
19644 # libtool distribution, otherwise you forgot to ship ltmain.sh
19645 # with your package, and you will get complaints that there are
19646 # no rules to generate ltmain.sh.
19647 if test -f "$ltmain"; then
19648 # See if we are running on zsh, and set the options which allow our commands through
19649 # without removal of \ escapes.
19650 if test -n "${ZSH_VERSION+set}" ; then
19651 setopt NO_GLOB_SUBST
19653 # Now quote all the things that may contain metacharacters while being
19654 # careful not to overquote the AC_SUBSTed values. We take copies of the
19655 # variables and quote the copies for generation of the libtool script.
19656 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19658 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19659 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19660 deplibs_check_method reload_flag reload_cmds need_locks \
19661 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19662 lt_cv_sys_global_symbol_to_c_name_address \
19663 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19664 old_postinstall_cmds old_postuninstall_cmds \
19668 lt_prog_compiler_wl_RC \
19669 lt_prog_compiler_pic_RC \
19670 lt_prog_compiler_static_RC \
19671 lt_prog_compiler_no_builtin_flag_RC \
19672 export_dynamic_flag_spec_RC \
19673 thread_safe_flag_spec_RC \
19674 whole_archive_flag_spec_RC \
19675 enable_shared_with_static_runtimes_RC \
19676 old_archive_cmds_RC \
19677 old_archive_from_new_cmds_RC \
19678 predep_objects_RC \
19679 postdep_objects_RC \
19682 compiler_lib_search_path_RC \
19684 archive_expsym_cmds_RC \
19685 postinstall_cmds_RC \
19686 postuninstall_cmds_RC \
19687 old_archive_from_expsyms_cmds_RC \
19688 allow_undefined_flag_RC \
19689 no_undefined_flag_RC \
19690 export_symbols_cmds_RC \
19691 hardcode_libdir_flag_spec_RC \
19692 hardcode_libdir_flag_spec_ld_RC \
19693 hardcode_libdir_separator_RC \
19694 hardcode_automatic_RC \
19696 module_expsym_cmds_RC \
19697 lt_cv_prog_compiler_c_o_RC \
19698 exclude_expsyms_RC \
19699 include_expsyms_RC
; do
19702 old_archive_cmds_RC | \
19703 old_archive_from_new_cmds_RC | \
19704 archive_cmds_RC | \
19705 archive_expsym_cmds_RC | \
19707 module_expsym_cmds_RC | \
19708 old_archive_from_expsyms_cmds_RC | \
19709 export_symbols_cmds_RC | \
19710 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19711 postinstall_cmds | postuninstall_cmds | \
19712 old_postinstall_cmds | old_postuninstall_cmds | \
19713 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19714 # Double-quote double-evaled strings.
19715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19724 *'\$0 --fallback-echo"')
19725 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19731 cat <<__EOF__ >> "$cfgfile"
19732 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19734 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19736 # Shell to use when invoking shell scripts.
19739 # Whether or not to build shared libraries.
19740 build_libtool_libs=$enable_shared
19742 # Whether or not to build static libraries.
19743 build_old_libs=$enable_static
19745 # Whether or not to add -lc for building shared libraries.
19746 build_libtool_need_lc=$archive_cmds_need_lc_RC
19748 # Whether or not to disallow shared libs when runtime libs are static
19749 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19751 # Whether or not to optimize for fast installation.
19752 fast_install=$enable_fast_install
19755 host_alias=$host_alias
19759 # The build system.
19760 build_alias=$build_alias
19764 # An echo program that does not interpret backslashes.
19769 AR_FLAGS=$lt_AR_FLAGS
19774 # A language-specific compiler.
19777 # Is the compiler the GNU C compiler?
19783 # The linker used to build libraries.
19786 # Whether we need hard or soft links.
19789 # A BSD-compatible nm program.
19792 # A symbol stripping program
19795 # Used to examine libraries when file_magic_cmd begins "file"
19796 MAGIC_CMD=$MAGIC_CMD
19798 # Used on cygwin: DLL creation program.
19801 # Used on cygwin: object dumper.
19804 # Used on cygwin: assembler.
19807 # The name of the directory that contains temporary libtool files.
19810 # How to create reloadable object files.
19811 reload_flag=$lt_reload_flag
19812 reload_cmds=$lt_reload_cmds
19814 # How to pass a linker flag through the compiler.
19815 wl=$lt_lt_prog_compiler_wl_RC
19817 # Object file suffix (normally "o").
19818 objext="$ac_objext"
19820 # Old archive suffix (normally "a").
19823 # Shared library suffix (normally ".so").
19824 shrext_cmds='$shrext_cmds'
19826 # Executable file suffix (normally "").
19829 # Additional compiler flags for building library objects.
19830 pic_flag=$lt_lt_prog_compiler_pic_RC
19833 # What is the maximum length of a command?
19834 max_cmd_len=$lt_cv_sys_max_cmd_len
19836 # Does compiler simultaneously support -c and -o options?
19837 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19839 # Must we lock files when doing compilation?
19840 need_locks=$lt_need_locks
19842 # Do we need the lib prefix for modules?
19843 need_lib_prefix=$need_lib_prefix
19845 # Do we need a version for libraries?
19846 need_version=$need_version
19848 # Whether dlopen is supported.
19849 dlopen_support=$enable_dlopen
19851 # Whether dlopen of programs is supported.
19852 dlopen_self=$enable_dlopen_self
19854 # Whether dlopen of statically linked programs is supported.
19855 dlopen_self_static=$enable_dlopen_self_static
19857 # Compiler flag to prevent dynamic linking.
19858 link_static_flag=$lt_lt_prog_compiler_static_RC
19860 # Compiler flag to turn off builtin functions.
19861 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19863 # Compiler flag to allow reflexive dlopens.
19864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19866 # Compiler flag to generate shared objects directly from archives.
19867 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19869 # Compiler flag to generate thread-safe objects.
19870 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19872 # Library versioning type.
19873 version_type=$version_type
19875 # Format of library name prefix.
19876 libname_spec=$lt_libname_spec
19878 # List of archive names. First name is the real one, the rest are links.
19879 # The last name is the one that the linker finds with -lNAME.
19880 library_names_spec=$lt_library_names_spec
19882 # The coded name of the library, if different from the real name.
19883 soname_spec=$lt_soname_spec
19885 # Commands used to build and install an old-style archive.
19887 old_archive_cmds=$lt_old_archive_cmds_RC
19888 old_postinstall_cmds=$lt_old_postinstall_cmds
19889 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19891 # Create an old-style archive from a shared archive.
19892 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19894 # Create a temporary old-style archive to link instead of a shared archive.
19895 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19897 # Commands used to build and install a shared archive.
19898 archive_cmds=$lt_archive_cmds_RC
19899 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19900 postinstall_cmds=$lt_postinstall_cmds
19901 postuninstall_cmds=$lt_postuninstall_cmds
19903 # Commands used to build a loadable module (assumed same as above if empty)
19904 module_cmds=$lt_module_cmds_RC
19905 module_expsym_cmds=$lt_module_expsym_cmds_RC
19907 # Commands to strip libraries.
19908 old_striplib=$lt_old_striplib
19909 striplib=$lt_striplib
19911 # Dependencies to place before the objects being linked to create a
19913 predep_objects=$lt_predep_objects_RC
19915 # Dependencies to place after the objects being linked to create a
19917 postdep_objects=$lt_postdep_objects_RC
19919 # Dependencies to place before the objects being linked to create a
19921 predeps=$lt_predeps_RC
19923 # Dependencies to place after the objects being linked to create a
19925 postdeps=$lt_postdeps_RC
19927 # The library search path used internally by the compiler when linking
19928 # a shared library.
19929 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19931 # Method to check whether dependent libraries are shared objects.
19932 deplibs_check_method=$lt_deplibs_check_method
19934 # Command to use when deplibs_check_method == file_magic.
19935 file_magic_cmd=$lt_file_magic_cmd
19937 # Flag that allows shared libraries with undefined symbols to be built.
19938 allow_undefined_flag=$lt_allow_undefined_flag_RC
19940 # Flag that forces no undefined symbols.
19941 no_undefined_flag=$lt_no_undefined_flag_RC
19943 # Commands used to finish a libtool library installation in a directory.
19944 finish_cmds=$lt_finish_cmds
19946 # Same as above, but a single script fragment to be evaled but not shown.
19947 finish_eval=$lt_finish_eval
19949 # Take the output of nm and produce a listing of raw symbols and C names.
19950 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19952 # Transform the output of nm in a proper C declaration
19953 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19955 # Transform the output of nm in a C name address pair
19956 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19958 # This is the shared library runtime path variable.
19959 runpath_var=$runpath_var
19961 # This is the shared library path variable.
19962 shlibpath_var=$shlibpath_var
19964 # Is shlibpath searched before the hard-coded library search path?
19965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19967 # How to hardcode a shared library path into an executable.
19968 hardcode_action=$hardcode_action_RC
19970 # Whether we should hardcode library paths into libraries.
19971 hardcode_into_libs=$hardcode_into_libs
19973 # Flag to hardcode \$libdir into a binary during linking.
19974 # This must work even if \$libdir does not exist.
19975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19977 # If ld is used when linking, flag to hardcode \$libdir into
19978 # a binary during linking. This must work even if \$libdir does
19980 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19982 # Whether we need a single -rpath flag with a separated argument.
19983 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19985 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19986 # resulting binary.
19987 hardcode_direct=$hardcode_direct_RC
19989 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19990 # resulting binary.
19991 hardcode_minus_L=$hardcode_minus_L_RC
19993 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19994 # the resulting binary.
19995 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19997 # Set to yes if building a shared library automatically hardcodes DIR into the library
19998 # and all subsequent libraries and executables linked against it.
19999 hardcode_automatic=$hardcode_automatic_RC
20001 # Variables whose values should be saved in libtool wrapper scripts and
20002 # restored at relink time.
20003 variables_saved_for_relink="$variables_saved_for_relink"
20005 # Whether libtool must link a program against all its dependency libraries.
20006 link_all_deplibs=$link_all_deplibs_RC
20008 # Compile-time system search path for libraries
20009 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20011 # Run-time system search path for libraries
20012 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20014 # Fix the shell variable \$srcfile for the compiler.
20015 fix_srcfile_path="$fix_srcfile_path_RC"
20017 # Set to yes if exported symbols are required.
20018 always_export_symbols=$always_export_symbols_RC
20020 # The commands to list exported symbols.
20021 export_symbols_cmds=$lt_export_symbols_cmds_RC
20023 # The commands to extract the exported symbol list from a shared archive.
20024 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20026 # Symbols that should not be listed in the preloaded symbols.
20027 exclude_expsyms=$lt_exclude_expsyms_RC
20029 # Symbols that must always be exported.
20030 include_expsyms=$lt_include_expsyms_RC
20032 # ### END LIBTOOL TAG CONFIG: $tagname
20038 # If there is no Makefile yet, we rely on a make rule to execute
20039 # `config.status --recheck' to rerun these tests and create the
20040 # libtool script then.
20041 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20042 if test -f "$ltmain_in"; then
20043 test -f Makefile
&& make "$ltmain"
20049 ac_cpp
='$CPP $CPPFLAGS'
20050 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20059 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20060 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20061 { (exit 1); exit 1; }; }
20065 # Append the new tag name to the list of available tags.
20066 if test -n "$tagname" ; then
20067 available_tags
="$available_tags $tagname"
20073 # Now substitute the updated list of available tags.
20074 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20075 mv "${ofile}T" "$ofile"
20079 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20080 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20081 { (exit 1); exit 1; }; }
20087 # This can be used to rebuild libtool when needed
20088 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
20090 # Always use our own libtool.
20091 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
20093 # Prevent multiple expansion
20121 ac_header_dirent
=no
20122 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
20123 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20124 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20125 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 cat >conftest.
$ac_ext <<_ACEOF
20132 cat confdefs.h
>>conftest.
$ac_ext
20133 cat >>conftest.
$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 #include <sys/types.h>
20147 rm -f conftest.
$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149 (eval $ac_compile) 2>conftest.er1
20151 grep -v '^ *+' conftest.er1
>conftest.err
20153 cat conftest.err
>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try
='test -z "$ac_c_werror_flag"
20157 || test ! -s conftest.err'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; } &&
20163 { ac_try
='test -s conftest.$ac_objext'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 eval "$as_ac_Header=yes"
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.
$ac_ext >&5
20174 eval "$as_ac_Header=no"
20176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20181 cat >>confdefs.h
<<_ACEOF
20182 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20185 ac_header_dirent
=$ac_hdr; break
20189 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20190 if test $ac_header_dirent = dirent.h
; then
20191 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20192 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20193 if test "${ac_cv_search_opendir+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20196 ac_func_search_save_LIBS
=$LIBS
20197 ac_cv_search_opendir
=no
20198 cat >conftest.
$ac_ext <<_ACEOF
20201 cat confdefs.h
>>conftest.
$ac_ext
20202 cat >>conftest.
$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20205 /* Override any gcc2 internal prototype to avoid an error. */
20209 /* We use char because int might match the return type of a gcc2
20210 builtin and then its argument prototype would still apply. */
20220 rm -f conftest.
$ac_objext conftest
$ac_exeext
20221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20222 (eval $ac_link) 2>conftest.er1
20224 grep -v '^ *+' conftest.er1
>conftest.err
20226 cat conftest.err
>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } &&
20229 { ac_try
='test -z "$ac_c_werror_flag"
20230 || test ! -s conftest.err'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; } &&
20236 { ac_try
='test -s conftest$ac_exeext'
20237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238 (eval $ac_try) 2>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; }; then
20242 ac_cv_search_opendir
="none required"
20244 echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.
$ac_ext >&5
20248 rm -f conftest.err conftest.
$ac_objext \
20249 conftest
$ac_exeext conftest.
$ac_ext
20250 if test "$ac_cv_search_opendir" = no
; then
20251 for ac_lib
in dir
; do
20252 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20253 cat >conftest.
$ac_ext <<_ACEOF
20256 cat confdefs.h
>>conftest.
$ac_ext
20257 cat >>conftest.
$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20260 /* Override any gcc2 internal prototype to avoid an error. */
20264 /* We use char because int might match the return type of a gcc2
20265 builtin and then its argument prototype would still apply. */
20275 rm -f conftest.
$ac_objext conftest
$ac_exeext
20276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20277 (eval $ac_link) 2>conftest.er1
20279 grep -v '^ *+' conftest.er1
>conftest.err
20281 cat conftest.err
>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } &&
20284 { ac_try
='test -z "$ac_c_werror_flag"
20285 || test ! -s conftest.err'
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try
='test -s conftest$ac_exeext'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_search_opendir
="-l$ac_lib"
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.
$ac_ext >&5
20304 rm -f conftest.err conftest.
$ac_objext \
20305 conftest
$ac_exeext conftest.
$ac_ext
20308 LIBS
=$ac_func_search_save_LIBS
20310 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20311 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20312 if test "$ac_cv_search_opendir" != no
; then
20313 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
20318 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20319 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20320 if test "${ac_cv_search_opendir+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 ac_func_search_save_LIBS
=$LIBS
20324 ac_cv_search_opendir
=no
20325 cat >conftest.
$ac_ext <<_ACEOF
20328 cat confdefs.h
>>conftest.
$ac_ext
20329 cat >>conftest.
$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20332 /* Override any gcc2 internal prototype to avoid an error. */
20336 /* We use char because int might match the return type of a gcc2
20337 builtin and then its argument prototype would still apply. */
20347 rm -f conftest.
$ac_objext conftest
$ac_exeext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349 (eval $ac_link) 2>conftest.er1
20351 grep -v '^ *+' conftest.er1
>conftest.err
20353 cat conftest.err
>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try
='test -z "$ac_c_werror_flag"
20357 || test ! -s conftest.err'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } &&
20363 { ac_try
='test -s conftest$ac_exeext'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 ac_cv_search_opendir
="none required"
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.
$ac_ext >&5
20375 rm -f conftest.err conftest.
$ac_objext \
20376 conftest
$ac_exeext conftest.
$ac_ext
20377 if test "$ac_cv_search_opendir" = no
; then
20378 for ac_lib
in x
; do
20379 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20380 cat >conftest.
$ac_ext <<_ACEOF
20383 cat confdefs.h
>>conftest.
$ac_ext
20384 cat >>conftest.
$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 /* Override any gcc2 internal prototype to avoid an error. */
20391 /* We use char because int might match the return type of a gcc2
20392 builtin and then its argument prototype would still apply. */
20402 rm -f conftest.
$ac_objext conftest
$ac_exeext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20404 (eval $ac_link) 2>conftest.er1
20406 grep -v '^ *+' conftest.er1
>conftest.err
20408 cat conftest.err
>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try
='test -z "$ac_c_werror_flag"
20412 || test ! -s conftest.err'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try
='test -s conftest$ac_exeext'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_search_opendir
="-l$ac_lib"
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.
$ac_ext >&5
20431 rm -f conftest.err conftest.
$ac_objext \
20432 conftest
$ac_exeext conftest.
$ac_ext
20435 LIBS
=$ac_func_search_save_LIBS
20437 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20438 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20439 if test "$ac_cv_search_opendir" != no
; then
20440 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
20446 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
20447 if test "${enable_ltdl_install+set}" = set; then
20448 enableval
="$enable_ltdl_install"
20454 if test x
"${enable_ltdl_install-no}" != xno
; then
20456 INSTALL_LTDL_FALSE
='#'
20458 INSTALL_LTDL_TRUE
='#'
20459 INSTALL_LTDL_FALSE
=
20464 if test x
"${enable_ltdl_convenience-no}" != xno
; then
20465 CONVENIENCE_LTDL_TRUE
=
20466 CONVENIENCE_LTDL_FALSE
='#'
20468 CONVENIENCE_LTDL_TRUE
='#'
20469 CONVENIENCE_LTDL_FALSE
=
20474 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20475 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
20476 if test "${libltdl_cv_shlibext+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20480 ## GCJ LOCAL: gcj specific stuff. Please keep it.
20481 # Here in libltdl for libgcj we don't build modules for darwin.
20482 # So we say no. Then the extension gets .dylib which is the right
20483 # thing for shared libraries on darwin. Please keep me next time you
20493 eval libltdl_cv_shlibext
=$shrext_cmds
20496 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20497 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
20498 if test -n "$libltdl_cv_shlibext"; then
20500 cat >>confdefs.h
<<_ACEOF
20501 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20507 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20508 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
20509 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20512 libltdl_cv_shlibpath_var
="$shlibpath_var"
20514 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20515 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
20516 if test -n "$libltdl_cv_shlibpath_var"; then
20518 cat >>confdefs.h
<<_ACEOF
20519 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20525 echo "$as_me:$LINENO: checking for the default library search path" >&5
20526 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
20527 if test "${libltdl_cv_sys_search_path+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 libltdl_cv_sys_search_path
="$sys_lib_dlsearch_path_spec"
20532 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20533 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
20534 if test -n "$libltdl_cv_sys_search_path"; then
20536 for dir
in $libltdl_cv_sys_search_path; do
20537 if test -z "$sys_search_path"; then
20538 sys_search_path
="$dir"
20540 sys_search_path
="$sys_search_path$PATH_SEPARATOR$dir"
20544 cat >>confdefs.h
<<_ACEOF
20545 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20550 echo "$as_me:$LINENO: checking for objdir" >&5
20551 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20552 if test "${libltdl_cv_objdir+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20555 libltdl_cv_objdir
="$objdir"
20556 if test -n "$objdir"; then
20559 rm -f .libs
2>/dev
/null
20560 mkdir .libs
2>/dev
/null
20561 if test -d .libs
; then
20562 libltdl_cv_objdir
=.libs
20564 # MS-DOS does not allow filenames that begin with a dot.
20565 libltdl_cv_objdir
=_libs
20567 rmdir .libs
2>/dev
/null
20571 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20572 echo "${ECHO_T}$libltdl_cv_objdir" >&6
20574 cat >>confdefs.h
<<_ACEOF
20575 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20580 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20581 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
20582 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20585 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20586 libltdl_cv_preloaded_symbols
=yes
20588 libltdl_cv_preloaded_symbols
=no
20592 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20593 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
20594 if test x
"$libltdl_cv_preloaded_symbols" = xyes
; then
20596 cat >>confdefs.h
<<\_ACEOF
20597 #define HAVE_PRELOADED_SYMBOLS 1
20605 ac_cpp
='$CPP $CPPFLAGS'
20606 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20607 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20608 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20611 echo "$as_me:$LINENO: checking for shl_load" >&5
20612 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20613 if test "${ac_cv_func_shl_load+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20616 cat >conftest.
$ac_ext <<_ACEOF
20619 cat confdefs.h
>>conftest.
$ac_ext
20620 cat >>conftest.
$ac_ext <<_ACEOF
20621 /* end confdefs.h. */
20622 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20624 #define shl_load innocuous_shl_load
20626 /* System header to define __stub macros and hopefully few prototypes,
20627 which can conflict with char shl_load (); below.
20628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20629 <limits.h> exists even on freestanding compilers. */
20632 # include <limits.h>
20634 # include <assert.h>
20639 /* Override any gcc2 internal prototype to avoid an error. */
20644 /* We use char because int might match the return type of a gcc2
20645 builtin and then its argument prototype would still apply. */
20647 /* The GNU C library defines this for functions which it implements
20648 to always fail with ENOSYS. Some functions are actually named
20649 something starting with __ and the normal name is an alias. */
20650 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20653 char (*f) () = shl_load;
20662 return f != shl_load;
20667 rm -f conftest.
$ac_objext conftest
$ac_exeext
20668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20669 (eval $ac_link) 2>conftest.er1
20671 grep -v '^ *+' conftest.er1
>conftest.err
20673 cat conftest.err
>&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
20676 { ac_try
='test -z "$ac_c_werror_flag"
20677 || test ! -s conftest.err'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; } &&
20683 { ac_try
='test -s conftest$ac_exeext'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 ac_cv_func_shl_load
=yes
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.
$ac_ext >&5
20694 ac_cv_func_shl_load
=no
20696 rm -f conftest.err conftest.
$ac_objext \
20697 conftest
$ac_exeext conftest.
$ac_ext
20699 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20700 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20701 if test $ac_cv_func_shl_load = yes; then
20703 cat >>confdefs.h
<<\_ACEOF
20704 #define HAVE_SHL_LOAD 1
20708 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20709 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20710 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20711 echo $ECHO_N "(cached) $ECHO_C" >&6
20713 ac_check_lib_save_LIBS
=$LIBS
20715 cat >conftest.
$ac_ext <<_ACEOF
20718 cat confdefs.h
>>conftest.
$ac_ext
20719 cat >>conftest.
$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20722 /* Override any gcc2 internal prototype to avoid an error. */
20726 /* We use char because int might match the return type of a gcc2
20727 builtin and then its argument prototype would still apply. */
20737 rm -f conftest.
$ac_objext conftest
$ac_exeext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20739 (eval $ac_link) 2>conftest.er1
20741 grep -v '^ *+' conftest.er1
>conftest.err
20743 cat conftest.err
>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try
='test -z "$ac_c_werror_flag"
20747 || test ! -s conftest.err'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try
='test -s conftest$ac_exeext'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 ac_cv_lib_dld_shl_load
=yes
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.
$ac_ext >&5
20764 ac_cv_lib_dld_shl_load
=no
20766 rm -f conftest.err conftest.
$ac_objext \
20767 conftest
$ac_exeext conftest.
$ac_ext
20768 LIBS
=$ac_check_lib_save_LIBS
20770 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20771 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20772 if test $ac_cv_lib_dld_shl_load = yes; then
20774 cat >>confdefs.h
<<\_ACEOF
20775 #define HAVE_SHL_LOAD 1
20778 LIBADD_DL
="$LIBADD_DL -ldld"
20780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 ac_check_lib_save_LIBS
=$LIBS
20787 cat >conftest.
$ac_ext <<_ACEOF
20790 cat confdefs.h
>>conftest.
$ac_ext
20791 cat >>conftest.
$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20794 /* Override any gcc2 internal prototype to avoid an error. */
20798 /* We use char because int might match the return type of a gcc2
20799 builtin and then its argument prototype would still apply. */
20809 rm -f conftest.
$ac_objext conftest
$ac_exeext
20810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20811 (eval $ac_link) 2>conftest.er1
20813 grep -v '^ *+' conftest.er1
>conftest.err
20815 cat conftest.err
>&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } &&
20818 { ac_try
='test -z "$ac_c_werror_flag"
20819 || test ! -s conftest.err'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; } &&
20825 { ac_try
='test -s conftest$ac_exeext'
20826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; }; then
20831 ac_cv_lib_dl_dlopen
=yes
20833 echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.
$ac_ext >&5
20836 ac_cv_lib_dl_dlopen
=no
20838 rm -f conftest.err conftest.
$ac_objext \
20839 conftest
$ac_exeext conftest.
$ac_ext
20840 LIBS
=$ac_check_lib_save_LIBS
20842 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20843 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20844 if test $ac_cv_lib_dl_dlopen = yes; then
20846 cat >>confdefs.h
<<\_ACEOF
20847 #define HAVE_LIBDL 1
20850 LIBADD_DL
="-ldl" libltdl_cv_lib_dl_dlopen
="yes"
20852 cat >conftest.
$ac_ext <<_ACEOF
20855 cat confdefs.h
>>conftest.
$ac_ext
20856 cat >>conftest.
$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20859 # include <dlfcn.h>
20870 rm -f conftest.
$ac_objext conftest
$ac_exeext
20871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20872 (eval $ac_link) 2>conftest.er1
20874 grep -v '^ *+' conftest.er1
>conftest.err
20876 cat conftest.err
>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } &&
20879 { ac_try
='test -z "$ac_c_werror_flag"
20880 || test ! -s conftest.err'
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; } &&
20886 { ac_try
='test -s conftest$ac_exeext'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20893 cat >>confdefs.h
<<\_ACEOF
20894 #define HAVE_LIBDL 1
20896 libltdl_cv_func_dlopen
="yes"
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.
$ac_ext >&5
20901 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20902 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20903 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 ac_check_lib_save_LIBS
=$LIBS
20907 LIBS
="-lsvld $LIBS"
20908 cat >conftest.
$ac_ext <<_ACEOF
20911 cat confdefs.h
>>conftest.
$ac_ext
20912 cat >>conftest.
$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20915 /* Override any gcc2 internal prototype to avoid an error. */
20919 /* We use char because int might match the return type of a gcc2
20920 builtin and then its argument prototype would still apply. */
20930 rm -f conftest.
$ac_objext conftest
$ac_exeext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20932 (eval $ac_link) 2>conftest.er1
20934 grep -v '^ *+' conftest.er1
>conftest.err
20936 cat conftest.err
>&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } &&
20939 { ac_try
='test -z "$ac_c_werror_flag"
20940 || test ! -s conftest.err'
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; } &&
20946 { ac_try
='test -s conftest$ac_exeext'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_cv_lib_svld_dlopen
=yes
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.
$ac_ext >&5
20957 ac_cv_lib_svld_dlopen
=no
20959 rm -f conftest.err conftest.
$ac_objext \
20960 conftest
$ac_exeext conftest.
$ac_ext
20961 LIBS
=$ac_check_lib_save_LIBS
20963 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20964 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20965 if test $ac_cv_lib_svld_dlopen = yes; then
20967 cat >>confdefs.h
<<\_ACEOF
20968 #define HAVE_LIBDL 1
20971 LIBADD_DL
="-lsvld" libltdl_cv_func_dlopen
="yes"
20973 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20974 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20975 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 ac_check_lib_save_LIBS
=$LIBS
20980 cat >conftest.
$ac_ext <<_ACEOF
20983 cat confdefs.h
>>conftest.
$ac_ext
20984 cat >>conftest.
$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20987 /* Override any gcc2 internal prototype to avoid an error. */
20991 /* We use char because int might match the return type of a gcc2
20992 builtin and then its argument prototype would still apply. */
21002 rm -f conftest.
$ac_objext conftest
$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>conftest.er1
21006 grep -v '^ *+' conftest.er1
>conftest.err
21008 cat conftest.err
>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try
='test -z "$ac_c_werror_flag"
21012 || test ! -s conftest.err'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try
='test -s conftest$ac_exeext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_lib_dld_dld_link
=yes
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.
$ac_ext >&5
21029 ac_cv_lib_dld_dld_link
=no
21031 rm -f conftest.err conftest.
$ac_objext \
21032 conftest
$ac_exeext conftest.
$ac_ext
21033 LIBS
=$ac_check_lib_save_LIBS
21035 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21036 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21037 if test $ac_cv_lib_dld_dld_link = yes; then
21039 cat >>confdefs.h
<<\_ACEOF
21043 LIBADD_DL
="$LIBADD_DL -ldld"
21045 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21046 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
21047 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21048 echo $ECHO_N "(cached) $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 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21058 #define _dyld_func_lookup innocuous__dyld_func_lookup
21060 /* System header to define __stub macros and hopefully few prototypes,
21061 which can conflict with char _dyld_func_lookup (); below.
21062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21063 <limits.h> exists even on freestanding compilers. */
21066 # include <limits.h>
21068 # include <assert.h>
21071 #undef _dyld_func_lookup
21073 /* Override any gcc2 internal prototype to avoid an error. */
21078 /* We use char because int might match the return type of a gcc2
21079 builtin and then its argument prototype would still apply. */
21080 char _dyld_func_lookup ();
21081 /* The GNU C library defines this for functions which it implements
21082 to always fail with ENOSYS. Some functions are actually named
21083 something starting with __ and the normal name is an alias. */
21084 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
21087 char (*f) () = _dyld_func_lookup;
21096 return f != _dyld_func_lookup;
21101 rm -f conftest.
$ac_objext conftest
$ac_exeext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21103 (eval $ac_link) 2>conftest.er1
21105 grep -v '^ *+' conftest.er1
>conftest.err
21107 cat conftest.err
>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } &&
21110 { ac_try
='test -z "$ac_c_werror_flag"
21111 || test ! -s conftest.err'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; } &&
21117 { ac_try
='test -s conftest$ac_exeext'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 ac_cv_func__dyld_func_lookup
=yes
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.
$ac_ext >&5
21128 ac_cv_func__dyld_func_lookup
=no
21130 rm -f conftest.err conftest.
$ac_objext \
21131 conftest
$ac_exeext conftest.
$ac_ext
21133 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21134 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
21135 if test $ac_cv_func__dyld_func_lookup = yes; then
21137 cat >>confdefs.h
<<\_ACEOF
21138 #define HAVE_DYLD 1
21151 rm -f conftest.err conftest.
$ac_objext \
21152 conftest
$ac_exeext conftest.
$ac_ext
21163 if test x
"$libltdl_cv_func_dlopen" = xyes ||
test x
"$libltdl_cv_lib_dl_dlopen" = xyes
21165 lt_save_LIBS
="$LIBS"
21166 LIBS
="$LIBS $LIBADD_DL"
21168 for ac_func
in dlerror
21170 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21171 echo "$as_me:$LINENO: checking for $ac_func" >&5
21172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21173 if eval "test \"\${$as_ac_var+set}\" = set"; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21176 cat >conftest.
$ac_ext <<_ACEOF
21179 cat confdefs.h
>>conftest.
$ac_ext
21180 cat >>conftest.
$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21184 #define $ac_func innocuous_$ac_func
21186 /* System header to define __stub macros and hopefully few prototypes,
21187 which can conflict with char $ac_func (); below.
21188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21189 <limits.h> exists even on freestanding compilers. */
21192 # include <limits.h>
21194 # include <assert.h>
21199 /* Override any gcc2 internal prototype to avoid an error. */
21204 /* We use char because int might match the return type of a gcc2
21205 builtin and then its argument prototype would still apply. */
21207 /* The GNU C library defines this for functions which it implements
21208 to always fail with ENOSYS. Some functions are actually named
21209 something starting with __ and the normal name is an alias. */
21210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21213 char (*f) () = $ac_func;
21222 return f != $ac_func;
21227 rm -f conftest.
$ac_objext conftest
$ac_exeext
21228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21229 (eval $ac_link) 2>conftest.er1
21231 grep -v '^ *+' conftest.er1
>conftest.err
21233 cat conftest.err
>&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } &&
21236 { ac_try
='test -z "$ac_c_werror_flag"
21237 || test ! -s conftest.err'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try
='test -s conftest$ac_exeext'
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; }; then
21249 eval "$as_ac_var=yes"
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.
$ac_ext >&5
21254 eval "$as_ac_var=no"
21256 rm -f conftest.err conftest.
$ac_objext \
21257 conftest
$ac_exeext conftest.
$ac_ext
21259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21261 if test `eval echo '${'$as_ac_var'}'` = yes; then
21262 cat >>confdefs.h
<<_ACEOF
21263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21269 LIBS
="$lt_save_LIBS"
21272 ac_cpp
='$CPP $CPPFLAGS'
21273 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21274 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21275 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21279 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21280 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
21281 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21284 ac_cv_sys_symbol_underscore
=no
21285 cat > conftest.
$ac_ext <<EOF
21286 void nm_test_func(){}
21287 int main(){nm_test_func;return 0;}
21289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21290 (eval $ac_compile) 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; then
21294 # Now try to grab the symbols.
21295 ac_nlist
=conftest.nm
21296 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21297 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } && test -s "$ac_nlist"; then
21301 # See whether the symbols have a leading underscore.
21302 if grep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
21303 ac_cv_sys_symbol_underscore
=yes
21305 if grep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
21308 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21312 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21315 echo "configure: failed program was:" >&5
21321 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21322 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
21325 if test x
"$ac_cv_sys_symbol_underscore" = xyes
; then
21326 if test x
"$libltdl_cv_func_dlopen" = xyes ||
21327 test x
"$libltdl_cv_lib_dl_dlopen" = xyes
; then
21328 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21329 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
21330 if test "${libltdl_cv_need_uscore+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 libltdl_cv_need_uscore
=unknown
21335 LIBS
="$LIBS $LIBADD_DL"
21336 if test "$cross_compiling" = yes; then :
21337 libltdl_cv_need_uscore
=cross
21339 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
21340 lt_status
=$lt_dlunknown
21341 cat > conftest.
$ac_ext <<EOF
21342 #line 21342 "configure"
21343 #include "confdefs.h"
21352 # define LT_DLGLOBAL RTLD_GLOBAL
21355 # define LT_DLGLOBAL DL_GLOBAL
21357 # define LT_DLGLOBAL 0
21361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21362 find out it does not work in some platform. */
21363 #ifndef LT_DLLAZY_OR_NOW
21365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21368 # define LT_DLLAZY_OR_NOW DL_LAZY
21371 # define LT_DLLAZY_OR_NOW RTLD_NOW
21374 # define LT_DLLAZY_OR_NOW DL_NOW
21376 # define LT_DLLAZY_OR_NOW 0
21384 extern "C" void exit (int);
21387 void fnord() { int i=42;}
21390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21391 int status = $lt_dlunknown;
21395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21397 /* dlclose (self); */
21403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21404 (eval $ac_link) 2>&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
21408 (.
/conftest
; exit; ) 2>/dev
/null
21410 case x
$lt_status in
21411 x
$lt_dlno_uscore) libltdl_cv_need_uscore
=no
;;
21412 x
$lt_dlneed_uscore) libltdl_cv_need_uscore
=yes ;;
21413 x
$lt_unknown|x
*) ;;
21416 # compilation failed
21425 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21426 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
21430 if test x
"$libltdl_cv_need_uscore" = xyes
; then
21432 cat >>confdefs.h
<<\_ACEOF
21433 #define NEED_USCORE 1
21439 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21440 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
21441 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 # PORTME does your system automatically load deplibs for dlopen?
21445 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21446 # For now, we just catch OSes we know something about -- in the
21447 # future, we'll try test this programmatically.
21448 libltdl_cv_sys_dlopen_deplibs
=unknown
21450 aix3
*|aix4.1.
*|aix4.2.
*)
21451 # Unknown whether this is true for these versions of AIX, but
21452 # we want this `case' here to explicitly catch those versions.
21453 libltdl_cv_sys_dlopen_deplibs
=unknown
21456 libltdl_cv_sys_dlopen_deplibs
=yes
21459 # Assuming the user has installed a libdl from somewhere, this is true
21460 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21461 libltdl_cv_sys_dlopen_deplibs
=yes
21463 gnu
* | linux
* | kfreebsd
*-gnu | knetbsd
*-gnu)
21464 # GNU and its variants, using gnu ld.so (Glibc)
21465 libltdl_cv_sys_dlopen_deplibs
=yes
21468 libltdl_cv_sys_dlopen_deplibs
=yes
21470 irix
[12345]*|irix6.
[01]*)
21471 # Catch all versions of IRIX before 6.2, and indicate that we don't
21472 # know how it worked for any of those versions.
21473 libltdl_cv_sys_dlopen_deplibs
=unknown
21476 # The case above catches anything before 6.2, and it's known that
21477 # at 6.2 and later dlopen does load deplibs.
21478 libltdl_cv_sys_dlopen_deplibs
=yes
21481 libltdl_cv_sys_dlopen_deplibs
=yes
21484 libltdl_cv_sys_dlopen_deplibs
=yes
21487 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21488 # it did *not* use an RPATH in a shared library to find objects the
21489 # library depends on, so we explictly say `no'.
21490 libltdl_cv_sys_dlopen_deplibs
=no
21492 osf5.0|osf5.0a|osf5.1
)
21493 # dlopen *does* load deplibs and with the right loader patch applied
21494 # it even uses RPATH in a shared library to search for shared objects
21495 # that the library depends on, but there's no easy way to know if that
21496 # patch is installed. Since this is the case, all we can really
21497 # say is unknown -- it depends on the patch being installed. If
21498 # it is, this changes to `yes'. Without it, it would be `no'.
21499 libltdl_cv_sys_dlopen_deplibs
=unknown
21502 # the two cases above should catch all versions of osf <= 5.1. Read
21503 # the comments above for what we know about them.
21504 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21505 # is used to find them so we can finally say `yes'.
21506 libltdl_cv_sys_dlopen_deplibs
=yes
21509 libltdl_cv_sys_dlopen_deplibs
=yes
21514 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21515 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
21516 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21518 cat >>confdefs.h
<<\_ACEOF
21519 #define LTDL_DLOPEN_DEPLIBS 1
21525 for ac_header
in argz.h
21527 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21529 echo "$as_me:$LINENO: checking for $ac_header" >&5
21530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21532 echo $ECHO_N "(cached) $ECHO_C" >&6
21534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21537 # Is the header compilable?
21538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21540 cat >conftest.
$ac_ext <<_ACEOF
21543 cat confdefs.h
>>conftest.
$ac_ext
21544 cat >>conftest.
$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 $ac_includes_default
21547 #include <$ac_header>
21549 rm -f conftest.
$ac_objext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21551 (eval $ac_compile) 2>conftest.er1
21553 grep -v '^ *+' conftest.er1
>conftest.err
21555 cat conftest.err
>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
21558 { ac_try
='test -z "$ac_c_werror_flag"
21559 || test ! -s conftest.err'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try
='test -s conftest.$ac_objext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_header_compiler
=yes
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.
$ac_ext >&5
21576 ac_header_compiler
=no
21578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21580 echo "${ECHO_T}$ac_header_compiler" >&6
21582 # Is the header present?
21583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21585 cat >conftest.
$ac_ext <<_ACEOF
21588 cat confdefs.h
>>conftest.
$ac_ext
21589 cat >>conftest.
$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 #include <$ac_header>
21593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21594 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21596 grep -v '^ *+' conftest.er1
>conftest.err
21598 cat conftest.err
>&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } >/dev
/null
; then
21601 if test -s conftest.err
; then
21602 ac_cpp_err
=$ac_c_preproc_warn_flag
21603 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21610 if test -z "$ac_cpp_err"; then
21611 ac_header_preproc
=yes
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.
$ac_ext >&5
21616 ac_header_preproc
=no
21618 rm -f conftest.err conftest.
$ac_ext
21619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21620 echo "${ECHO_T}$ac_header_preproc" >&6
21622 # So? What about this header?
21623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21629 ac_header_preproc
=yes
21632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21646 ## ---------------------------------- ##
21647 ## Report this to bug-libtool@gnu.org ##
21648 ## ---------------------------------- ##
21651 sed "s/^/$as_me: WARNING: /" >&2
21654 echo "$as_me:$LINENO: checking for $ac_header" >&5
21655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 eval "$as_ac_Header=\$ac_header_preproc"
21661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21666 cat >>confdefs.h
<<_ACEOF
21667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21675 echo "$as_me:$LINENO: checking for error_t" >&5
21676 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21677 if test "${ac_cv_type_error_t+set}" = set; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 cat >conftest.
$ac_ext <<_ACEOF
21683 cat confdefs.h
>>conftest.
$ac_ext
21684 cat >>conftest.
$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21695 if (sizeof (error_t))
21701 rm -f conftest.
$ac_objext
21702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703 (eval $ac_compile) 2>conftest.er1
21705 grep -v '^ *+' conftest.er1
>conftest.err
21707 cat conftest.err
>&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } &&
21710 { ac_try
='test -z "$ac_c_werror_flag"
21711 || test ! -s conftest.err'
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; } &&
21717 { ac_try
='test -s conftest.$ac_objext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 ac_cv_type_error_t
=yes
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.
$ac_ext >&5
21728 ac_cv_type_error_t
=no
21730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21732 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21733 echo "${ECHO_T}$ac_cv_type_error_t" >&6
21734 if test $ac_cv_type_error_t = yes; then
21736 cat >>confdefs.h
<<_ACEOF
21737 #define HAVE_ERROR_T 1
21743 cat >>confdefs.h
<<\_ACEOF
21744 #define error_t int
21755 for ac_func
in argz_append argz_create_sep argz_insert argz_next argz_stringify
21757 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21758 echo "$as_me:$LINENO: checking for $ac_func" >&5
21759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21760 if eval "test \"\${$as_ac_var+set}\" = set"; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 cat >conftest.
$ac_ext <<_ACEOF
21766 cat confdefs.h
>>conftest.
$ac_ext
21767 cat >>conftest.
$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21771 #define $ac_func innocuous_$ac_func
21773 /* System header to define __stub macros and hopefully few prototypes,
21774 which can conflict with char $ac_func (); below.
21775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21776 <limits.h> exists even on freestanding compilers. */
21779 # include <limits.h>
21781 # include <assert.h>
21786 /* Override any gcc2 internal prototype to avoid an error. */
21791 /* We use char because int might match the return type of a gcc2
21792 builtin and then its argument prototype would still apply. */
21794 /* The GNU C library defines this for functions which it implements
21795 to always fail with ENOSYS. Some functions are actually named
21796 something starting with __ and the normal name is an alias. */
21797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21800 char (*f) () = $ac_func;
21809 return f != $ac_func;
21814 rm -f conftest.
$ac_objext conftest
$ac_exeext
21815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21816 (eval $ac_link) 2>conftest.er1
21818 grep -v '^ *+' conftest.er1
>conftest.err
21820 cat conftest.err
>&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } &&
21823 { ac_try
='test -z "$ac_c_werror_flag"
21824 || test ! -s conftest.err'
21825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826 (eval $ac_try) 2>&5
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; } &&
21830 { ac_try
='test -s conftest$ac_exeext'
21831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832 (eval $ac_try) 2>&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); }; }; then
21836 eval "$as_ac_var=yes"
21838 echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.
$ac_ext >&5
21841 eval "$as_ac_var=no"
21843 rm -f conftest.err conftest.
$ac_objext \
21844 conftest
$ac_exeext conftest.
$ac_ext
21846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21848 if test `eval echo '${'$as_ac_var'}'` = yes; then
21849 cat >>confdefs.h
<<_ACEOF
21850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21883 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21886 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21888 echo "$as_me:$LINENO: checking for $ac_header" >&5
21889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21896 # Is the header compilable?
21897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21899 cat >conftest.
$ac_ext <<_ACEOF
21902 cat confdefs.h
>>conftest.
$ac_ext
21903 cat >>conftest.
$ac_ext <<_ACEOF
21904 /* end confdefs.h. */
21905 $ac_includes_default
21906 #include <$ac_header>
21908 rm -f conftest.
$ac_objext
21909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21910 (eval $ac_compile) 2>conftest.er1
21912 grep -v '^ *+' conftest.er1
>conftest.err
21914 cat conftest.err
>&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } &&
21917 { ac_try
='test -z "$ac_c_werror_flag"
21918 || test ! -s conftest.err'
21919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; } &&
21924 { ac_try
='test -s conftest.$ac_objext'
21925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; }; then
21930 ac_header_compiler
=yes
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.
$ac_ext >&5
21935 ac_header_compiler
=no
21937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21939 echo "${ECHO_T}$ac_header_compiler" >&6
21941 # Is the header present?
21942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21944 cat >conftest.
$ac_ext <<_ACEOF
21947 cat confdefs.h
>>conftest.
$ac_ext
21948 cat >>conftest.
$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 #include <$ac_header>
21952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21953 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21955 grep -v '^ *+' conftest.er1
>conftest.err
21957 cat conftest.err
>&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } >/dev
/null
; then
21960 if test -s conftest.err
; then
21961 ac_cpp_err
=$ac_c_preproc_warn_flag
21962 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21969 if test -z "$ac_cpp_err"; then
21970 ac_header_preproc
=yes
21972 echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.
$ac_ext >&5
21975 ac_header_preproc
=no
21977 rm -f conftest.err conftest.
$ac_ext
21978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21979 echo "${ECHO_T}$ac_header_preproc" >&6
21981 # So? What about this header?
21982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21988 ac_header_preproc
=yes
21991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22005 ## ---------------------------------- ##
22006 ## Report this to bug-libtool@gnu.org ##
22007 ## ---------------------------------- ##
22010 sed "s/^/$as_me: WARNING: /" >&2
22013 echo "$as_me:$LINENO: checking for $ac_header" >&5
22014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 eval "$as_ac_Header=\$ac_header_preproc"
22020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22025 cat >>confdefs.h
<<_ACEOF
22026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22037 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
22039 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22041 echo "$as_me:$LINENO: checking for $ac_header" >&5
22042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22044 echo $ECHO_N "(cached) $ECHO_C" >&6
22046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22049 # Is the header compilable?
22050 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22052 cat >conftest.
$ac_ext <<_ACEOF
22055 cat confdefs.h
>>conftest.
$ac_ext
22056 cat >>conftest.
$ac_ext <<_ACEOF
22057 /* end confdefs.h. */
22058 $ac_includes_default
22059 #include <$ac_header>
22061 rm -f conftest.
$ac_objext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22063 (eval $ac_compile) 2>conftest.er1
22065 grep -v '^ *+' conftest.er1
>conftest.err
22067 cat conftest.err
>&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } &&
22070 { ac_try
='test -z "$ac_c_werror_flag"
22071 || test ! -s conftest.err'
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; } &&
22077 { ac_try
='test -s conftest.$ac_objext'
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; }; then
22083 ac_header_compiler
=yes
22085 echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.
$ac_ext >&5
22088 ac_header_compiler
=no
22090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22092 echo "${ECHO_T}$ac_header_compiler" >&6
22094 # Is the header present?
22095 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22097 cat >conftest.
$ac_ext <<_ACEOF
22100 cat confdefs.h
>>conftest.
$ac_ext
22101 cat >>conftest.
$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 #include <$ac_header>
22105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22106 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22108 grep -v '^ *+' conftest.er1
>conftest.err
22110 cat conftest.err
>&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); } >/dev
/null
; then
22113 if test -s conftest.err
; then
22114 ac_cpp_err
=$ac_c_preproc_warn_flag
22115 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22122 if test -z "$ac_cpp_err"; then
22123 ac_header_preproc
=yes
22125 echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.
$ac_ext >&5
22128 ac_header_preproc
=no
22130 rm -f conftest.err conftest.
$ac_ext
22131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22132 echo "${ECHO_T}$ac_header_preproc" >&6
22134 # So? What about this header?
22135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22141 ac_header_preproc
=yes
22144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22158 ## ---------------------------------- ##
22159 ## Report this to bug-libtool@gnu.org ##
22160 ## ---------------------------------- ##
22163 sed "s/^/$as_me: WARNING: /" >&2
22166 echo "$as_me:$LINENO: checking for $ac_header" >&5
22167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22169 echo $ECHO_N "(cached) $ECHO_C" >&6
22171 eval "$as_ac_Header=\$ac_header_preproc"
22173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22178 cat >>confdefs.h
<<_ACEOF
22179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22188 for ac_header
in string.h
strings.h
22190 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22192 echo "$as_me:$LINENO: checking for $ac_header" >&5
22193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22200 # Is the header compilable?
22201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22203 cat >conftest.
$ac_ext <<_ACEOF
22206 cat confdefs.h
>>conftest.
$ac_ext
22207 cat >>conftest.
$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22209 $ac_includes_default
22210 #include <$ac_header>
22212 rm -f conftest.
$ac_objext
22213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22214 (eval $ac_compile) 2>conftest.er1
22216 grep -v '^ *+' conftest.er1
>conftest.err
22218 cat conftest.err
>&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } &&
22221 { ac_try
='test -z "$ac_c_werror_flag"
22222 || test ! -s conftest.err'
22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; } &&
22228 { ac_try
='test -s conftest.$ac_objext'
22229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230 (eval $ac_try) 2>&5
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); }; }; then
22234 ac_header_compiler
=yes
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.
$ac_ext >&5
22239 ac_header_compiler
=no
22241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22243 echo "${ECHO_T}$ac_header_compiler" >&6
22245 # Is the header present?
22246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22248 cat >conftest.
$ac_ext <<_ACEOF
22251 cat confdefs.h
>>conftest.
$ac_ext
22252 cat >>conftest.
$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 #include <$ac_header>
22256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22257 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22259 grep -v '^ *+' conftest.er1
>conftest.err
22261 cat conftest.err
>&5
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); } >/dev
/null
; then
22264 if test -s conftest.err
; then
22265 ac_cpp_err
=$ac_c_preproc_warn_flag
22266 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22273 if test -z "$ac_cpp_err"; then
22274 ac_header_preproc
=yes
22276 echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.
$ac_ext >&5
22279 ac_header_preproc
=no
22281 rm -f conftest.err conftest.
$ac_ext
22282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22283 echo "${ECHO_T}$ac_header_preproc" >&6
22285 # So? What about this header?
22286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22292 ac_header_preproc
=yes
22295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22309 ## ---------------------------------- ##
22310 ## Report this to bug-libtool@gnu.org ##
22311 ## ---------------------------------- ##
22314 sed "s/^/$as_me: WARNING: /" >&2
22317 echo "$as_me:$LINENO: checking for $ac_header" >&5
22318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22322 eval "$as_ac_Header=\$ac_header_preproc"
22324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22329 cat >>confdefs.h
<<_ACEOF
22330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22340 for ac_func
in strchr index
22342 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22343 echo "$as_me:$LINENO: checking for $ac_func" >&5
22344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22345 if eval "test \"\${$as_ac_var+set}\" = set"; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22348 cat >conftest.
$ac_ext <<_ACEOF
22351 cat confdefs.h
>>conftest.
$ac_ext
22352 cat >>conftest.
$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22356 #define $ac_func innocuous_$ac_func
22358 /* System header to define __stub macros and hopefully few prototypes,
22359 which can conflict with char $ac_func (); below.
22360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22361 <limits.h> exists even on freestanding compilers. */
22364 # include <limits.h>
22366 # include <assert.h>
22371 /* Override any gcc2 internal prototype to avoid an error. */
22376 /* We use char because int might match the return type of a gcc2
22377 builtin and then its argument prototype would still apply. */
22379 /* The GNU C library defines this for functions which it implements
22380 to always fail with ENOSYS. Some functions are actually named
22381 something starting with __ and the normal name is an alias. */
22382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22385 char (*f) () = $ac_func;
22394 return f != $ac_func;
22399 rm -f conftest.
$ac_objext conftest
$ac_exeext
22400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22401 (eval $ac_link) 2>conftest.er1
22403 grep -v '^ *+' conftest.er1
>conftest.err
22405 cat conftest.err
>&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } &&
22408 { ac_try
='test -z "$ac_c_werror_flag"
22409 || test ! -s conftest.err'
22410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411 (eval $ac_try) 2>&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); }; } &&
22415 { ac_try
='test -s conftest$ac_exeext'
22416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417 (eval $ac_try) 2>&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }; }; then
22421 eval "$as_ac_var=yes"
22423 echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.
$ac_ext >&5
22426 eval "$as_ac_var=no"
22428 rm -f conftest.err conftest.
$ac_objext \
22429 conftest
$ac_exeext conftest.
$ac_ext
22431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22433 if test `eval echo '${'$as_ac_var'}'` = yes; then
22434 cat >>confdefs.h
<<_ACEOF
22435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22443 for ac_func
in strrchr rindex
22445 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22446 echo "$as_me:$LINENO: checking for $ac_func" >&5
22447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22448 if eval "test \"\${$as_ac_var+set}\" = set"; then
22449 echo $ECHO_N "(cached) $ECHO_C" >&6
22451 cat >conftest.
$ac_ext <<_ACEOF
22454 cat confdefs.h
>>conftest.
$ac_ext
22455 cat >>conftest.
$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22459 #define $ac_func innocuous_$ac_func
22461 /* System header to define __stub macros and hopefully few prototypes,
22462 which can conflict with char $ac_func (); below.
22463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22464 <limits.h> exists even on freestanding compilers. */
22467 # include <limits.h>
22469 # include <assert.h>
22474 /* Override any gcc2 internal prototype to avoid an error. */
22479 /* We use char because int might match the return type of a gcc2
22480 builtin and then its argument prototype would still apply. */
22482 /* The GNU C library defines this for functions which it implements
22483 to always fail with ENOSYS. Some functions are actually named
22484 something starting with __ and the normal name is an alias. */
22485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22488 char (*f) () = $ac_func;
22497 return f != $ac_func;
22502 rm -f conftest.
$ac_objext conftest
$ac_exeext
22503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22504 (eval $ac_link) 2>conftest.er1
22506 grep -v '^ *+' conftest.er1
>conftest.err
22508 cat conftest.err
>&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } &&
22511 { ac_try
='test -z "$ac_c_werror_flag"
22512 || test ! -s conftest.err'
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; } &&
22518 { ac_try
='test -s conftest$ac_exeext'
22519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520 (eval $ac_try) 2>&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; }; then
22524 eval "$as_ac_var=yes"
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.
$ac_ext >&5
22529 eval "$as_ac_var=no"
22531 rm -f conftest.err conftest.
$ac_objext \
22532 conftest
$ac_exeext conftest.
$ac_ext
22534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22536 if test `eval echo '${'$as_ac_var'}'` = yes; then
22537 cat >>confdefs.h
<<_ACEOF
22538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22546 for ac_func
in memcpy bcopy
22548 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22549 echo "$as_me:$LINENO: checking for $ac_func" >&5
22550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22551 if eval "test \"\${$as_ac_var+set}\" = set"; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22554 cat >conftest.
$ac_ext <<_ACEOF
22557 cat confdefs.h
>>conftest.
$ac_ext
22558 cat >>conftest.
$ac_ext <<_ACEOF
22559 /* end confdefs.h. */
22560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22562 #define $ac_func innocuous_$ac_func
22564 /* System header to define __stub macros and hopefully few prototypes,
22565 which can conflict with char $ac_func (); below.
22566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22567 <limits.h> exists even on freestanding compilers. */
22570 # include <limits.h>
22572 # include <assert.h>
22577 /* Override any gcc2 internal prototype to avoid an error. */
22582 /* We use char because int might match the return type of a gcc2
22583 builtin and then its argument prototype would still apply. */
22585 /* The GNU C library defines this for functions which it implements
22586 to always fail with ENOSYS. Some functions are actually named
22587 something starting with __ and the normal name is an alias. */
22588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22591 char (*f) () = $ac_func;
22600 return f != $ac_func;
22605 rm -f conftest.
$ac_objext conftest
$ac_exeext
22606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22607 (eval $ac_link) 2>conftest.er1
22609 grep -v '^ *+' conftest.er1
>conftest.err
22611 cat conftest.err
>&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } &&
22614 { ac_try
='test -z "$ac_c_werror_flag"
22615 || test ! -s conftest.err'
22616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617 (eval $ac_try) 2>&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); }; } &&
22621 { ac_try
='test -s conftest$ac_exeext'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 eval "$as_ac_var=yes"
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.
$ac_ext >&5
22632 eval "$as_ac_var=no"
22634 rm -f conftest.err conftest.
$ac_objext \
22635 conftest
$ac_exeext conftest.
$ac_ext
22637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22639 if test `eval echo '${'$as_ac_var'}'` = yes; then
22640 cat >>confdefs.h
<<_ACEOF
22641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22649 for ac_func
in memmove strcmp
22651 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22652 echo "$as_me:$LINENO: checking for $ac_func" >&5
22653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22654 if eval "test \"\${$as_ac_var+set}\" = set"; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 cat >conftest.
$ac_ext <<_ACEOF
22660 cat confdefs.h
>>conftest.
$ac_ext
22661 cat >>conftest.
$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22665 #define $ac_func innocuous_$ac_func
22667 /* System header to define __stub macros and hopefully few prototypes,
22668 which can conflict with char $ac_func (); below.
22669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22670 <limits.h> exists even on freestanding compilers. */
22673 # include <limits.h>
22675 # include <assert.h>
22680 /* Override any gcc2 internal prototype to avoid an error. */
22685 /* We use char because int might match the return type of a gcc2
22686 builtin and then its argument prototype would still apply. */
22688 /* The GNU C library defines this for functions which it implements
22689 to always fail with ENOSYS. Some functions are actually named
22690 something starting with __ and the normal name is an alias. */
22691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22694 char (*f) () = $ac_func;
22703 return f != $ac_func;
22708 rm -f conftest.
$ac_objext conftest
$ac_exeext
22709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22710 (eval $ac_link) 2>conftest.er1
22712 grep -v '^ *+' conftest.er1
>conftest.err
22714 cat conftest.err
>&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } &&
22717 { ac_try
='test -z "$ac_c_werror_flag"
22718 || test ! -s conftest.err'
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; } &&
22724 { ac_try
='test -s conftest$ac_exeext'
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; }; then
22730 eval "$as_ac_var=yes"
22732 echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.
$ac_ext >&5
22735 eval "$as_ac_var=no"
22737 rm -f conftest.err conftest.
$ac_objext \
22738 conftest
$ac_exeext conftest.
$ac_ext
22740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22742 if test `eval echo '${'$as_ac_var'}'` = yes; then
22743 cat >>confdefs.h
<<_ACEOF
22744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22753 for ac_func
in closedir opendir readdir
22755 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22756 echo "$as_me:$LINENO: checking for $ac_func" >&5
22757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22758 if eval "test \"\${$as_ac_var+set}\" = set"; then
22759 echo $ECHO_N "(cached) $ECHO_C" >&6
22761 cat >conftest.
$ac_ext <<_ACEOF
22764 cat confdefs.h
>>conftest.
$ac_ext
22765 cat >>conftest.
$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22769 #define $ac_func innocuous_$ac_func
22771 /* System header to define __stub macros and hopefully few prototypes,
22772 which can conflict with char $ac_func (); below.
22773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22774 <limits.h> exists even on freestanding compilers. */
22777 # include <limits.h>
22779 # include <assert.h>
22784 /* Override any gcc2 internal prototype to avoid an error. */
22789 /* We use char because int might match the return type of a gcc2
22790 builtin and then its argument prototype would still apply. */
22792 /* The GNU C library defines this for functions which it implements
22793 to always fail with ENOSYS. Some functions are actually named
22794 something starting with __ and the normal name is an alias. */
22795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22798 char (*f) () = $ac_func;
22807 return f != $ac_func;
22812 rm -f conftest.
$ac_objext conftest
$ac_exeext
22813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22814 (eval $ac_link) 2>conftest.er1
22816 grep -v '^ *+' conftest.er1
>conftest.err
22818 cat conftest.err
>&5
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); } &&
22821 { ac_try
='test -z "$ac_c_werror_flag"
22822 || test ! -s conftest.err'
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; } &&
22828 { ac_try
='test -s conftest$ac_exeext'
22829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }; }; then
22834 eval "$as_ac_var=yes"
22836 echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.
$ac_ext >&5
22839 eval "$as_ac_var=no"
22841 rm -f conftest.err conftest.
$ac_objext \
22842 conftest
$ac_exeext conftest.
$ac_ext
22844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22846 if test `eval echo '${'$as_ac_var'}'` = yes; then
22847 cat >>confdefs.h
<<_ACEOF
22848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22860 ac_config_files
="$ac_config_files Makefile"
22862 cat >confcache
<<\_ACEOF
22863 # This file is a shell script that caches the results of configure
22864 # tests run on this system so they can be shared between configure
22865 # scripts and configure runs, see configure's option --config-cache.
22866 # It is not useful on other systems. If it contains results you don't
22867 # want to keep, you may remove or edit it.
22869 # config.status only pays attention to the cache file if you give it
22870 # the --recheck option to rerun configure.
22872 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22874 # following values.
22878 # The following way of writing the cache mishandles newlines in values,
22879 # but we know of no workaround that is simple, portable, and efficient.
22880 # So, don't put newlines in cache variables' values.
22881 # Ultrix sh set writes to stderr and can't be redirected directly,
22882 # and sets the high bit in the cache file unless we assign to the vars.
22885 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22887 # `set' does not quote correctly, so add quotes (double-quote
22888 # substitution turns \\\\ into \\, and sed turns \\ into \).
22891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22894 # `set' quotes correctly as required by POSIX, so do not add quotes.
22896 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22905 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22907 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22908 if test -w $cache_file; then
22909 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22910 cat confcache
>$cache_file
22912 echo "not updating unwritable cache $cache_file"
22917 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22918 # Let make expand exec_prefix.
22919 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22921 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22922 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22923 # trailing colons and then remove the whole line if VPATH becomes empty
22924 # (actually we leave an empty line to preserve line numbers).
22925 if test "x$srcdir" = x.
; then
22926 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22927 s/:*\$(srcdir):*/:/;
22928 s/:*\${srcdir}:*/:/;
22930 s/^\([^=]*=[ ]*\):*/\1/;
22936 DEFS
=-DHAVE_CONFIG_H
22940 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22941 # 1. Remove the extension, and $U if already installed.
22942 ac_i
=`echo "$ac_i" |
22943 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22945 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22946 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22948 LIBOBJS
=$ac_libobjs
22950 LTLIBOBJS
=$ac_ltlibobjs
22953 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22954 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22955 Usually this means the macro was only invoked conditionally." >&5
22956 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22957 Usually this means the macro was only invoked conditionally." >&2;}
22958 { (exit 1); exit 1; }; }
22960 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22961 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22962 Usually this means the macro was only invoked conditionally." >&5
22963 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22964 Usually this means the macro was only invoked conditionally." >&2;}
22965 { (exit 1); exit 1; }; }
22967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22968 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22969 Usually this means the macro was only invoked conditionally." >&5
22970 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22971 Usually this means the macro was only invoked conditionally." >&2;}
22972 { (exit 1); exit 1; }; }
22974 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22975 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22976 Usually this means the macro was only invoked conditionally." >&5
22977 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22978 Usually this means the macro was only invoked conditionally." >&2;}
22979 { (exit 1); exit 1; }; }
22981 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22982 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22983 Usually this means the macro was only invoked conditionally." >&5
22984 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22985 Usually this means the macro was only invoked conditionally." >&2;}
22986 { (exit 1); exit 1; }; }
22988 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22989 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22990 Usually this means the macro was only invoked conditionally." >&5
22991 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22992 Usually this means the macro was only invoked conditionally." >&2;}
22993 { (exit 1); exit 1; }; }
22996 : ${CONFIG_STATUS=./config.status}
22997 ac_clean_files_save
=$ac_clean_files
22998 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22999 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23000 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23001 cat >$CONFIG_STATUS <<_ACEOF
23003 # Generated by $as_me.
23004 # Run this file to recreate the current configuration.
23005 # Compiler output produced by configure, useful for debugging
23006 # configure, is in config.log if it exists.
23009 ac_cs_recheck=false
23011 SHELL=\${CONFIG_SHELL-$SHELL}
23014 cat >>$CONFIG_STATUS <<\_ACEOF
23015 ## --------------------- ##
23016 ## M4sh Initialization. ##
23017 ## --------------------- ##
23019 # Be Bourne compatible
23020 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23023 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23024 # is contrary to our usage. Disable this feature.
23025 alias -g '${1+"$@"}'='"$@"'
23026 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23029 DUALCASE
=1; export DUALCASE
# for MKS sh
23031 # Support unset when possible.
23032 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23039 # Work around bugs in pre-3.0 UWIN ksh.
23040 $as_unset ENV MAIL MAILPATH
23047 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23048 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23049 LC_TELEPHONE LC_TIME
23051 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23052 eval $as_var=C
; export $as_var
23058 # Required to use basename.
23059 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23065 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23066 as_basename
=basename
23072 # Name of the executable.
23073 as_me
=`$as_basename "$0" ||
23074 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23075 X"$0" : 'X\(//\)$' \| \
23076 X"$0" : 'X\(/\)$' \| \
23077 . : '\(.\)' 2>/dev/null ||
23079 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23080 /^X\/\(\/\/\)$/{ s//\1/; q; }
23081 /^X\/\(\/\).*/{ s//\1/; q; }
23085 # PATH needs CR, and LINENO needs CR and PATH.
23086 # Avoid depending upon Character Ranges.
23087 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23088 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23089 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23090 as_cr_digits
='0123456789'
23091 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23093 # The user is always right.
23094 if test "${PATH_SEPARATOR+set}" != set; then
23095 echo "#! /bin/sh" >conf$$.sh
23096 echo "exit 0" >>conf$$.sh
23098 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23107 as_lineno_1
=$LINENO
23108 as_lineno_2
=$LINENO
23109 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23110 test "x$as_lineno_1" != "x$as_lineno_2" &&
23111 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23112 # Find who we are. Look in the path if we contain no path at all
23115 *[\\/]* ) as_myself
=$0 ;;
23116 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23117 for as_dir
in $PATH
23120 test -z "$as_dir" && as_dir
=.
23121 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23126 # We did not find ourselves, most probably we were run as `sh COMMAND'
23127 # in which case we are not to be found in the path.
23128 if test "x$as_myself" = x
; then
23131 if test ! -f "$as_myself"; then
23132 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23133 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23134 { (exit 1); exit 1; }; }
23136 case $CONFIG_SHELL in
23138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23139 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23142 test -z "$as_dir" && as_dir
=.
23143 for as_base
in sh bash ksh sh5
; do
23146 if ("$as_dir/$as_base" -c '
23147 as_lineno_1=$LINENO
23148 as_lineno_2=$LINENO
23149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23150 test "x$as_lineno_1" != "x$as_lineno_2" &&
23151 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23152 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23153 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23154 CONFIG_SHELL
=$as_dir/$as_base
23155 export CONFIG_SHELL
23156 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23165 # uniformly replaced by the line number. The first 'sed' inserts a
23166 # line-number line before each line; the second 'sed' does the real
23167 # work. The second script uses 'N' to pair each line-number line
23168 # with the numbered line, and appends trailing '-' during
23169 # substitution so that $LINENO is not a special case at line end.
23170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23171 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23172 sed '=' <$as_myself |
23177 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23180 s,^['$as_cr_digits']*\n,,
23181 ' >$as_me.lineno
&&
23182 chmod +x
$as_me.lineno ||
23183 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23184 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23185 { (exit 1); exit 1; }; }
23187 # Don't try to exec as it changes $[0], causing all sort of problems
23188 # (the dirname of $[0] is not the place where we might find the
23189 # original and so on. Autoconf is especially sensible to this).
23191 # Exit status is that of the last command.
23196 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23197 *c
*,-n*) ECHO_N
= ECHO_C
='
23199 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23200 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23203 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23209 rm -f conf$$ conf$$.exe conf$$.
file
23211 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23212 # We could just check for DJGPP; but this test a) works b) is more generic
23213 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23214 if test -f conf$$.exe
; then
23215 # Don't use ln at all; we don't have any links
23220 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23225 rm -f conf$$ conf$$.exe conf$$.
file
23227 if mkdir
-p .
2>/dev
/null
; then
23230 test -d .
/-p && rmdir .
/-p
23234 as_executable_p
="test -f"
23236 # Sed expression to map a string onto a valid CPP name.
23237 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23239 # Sed expression to map a string onto a valid variable name.
23240 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23244 # We need space, tab and new line, in precisely that order.
23254 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23255 # report actual input values of CONFIG_FILES etc. instead of their
23256 # values after options handling. Logging --version etc. is OK.
23260 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23261 ## Running $as_me. ##
23266 This file was extended by libltdl $as_me 1.2, which was
23267 generated by GNU Autoconf 2.59. Invocation command line was
23269 CONFIG_FILES = $CONFIG_FILES
23270 CONFIG_HEADERS = $CONFIG_HEADERS
23271 CONFIG_LINKS = $CONFIG_LINKS
23272 CONFIG_COMMANDS = $CONFIG_COMMANDS
23276 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23280 # Files that config.status was made for.
23281 if test -n "$ac_config_files"; then
23282 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23285 if test -n "$ac_config_headers"; then
23286 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23289 if test -n "$ac_config_links"; then
23290 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23293 if test -n "$ac_config_commands"; then
23294 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23297 cat >>$CONFIG_STATUS <<\_ACEOF
23300 \`$as_me' instantiates files from templates according to the
23301 current configuration.
23303 Usage: $0 [OPTIONS] [FILE]...
23305 -h, --help print this help, then exit
23306 -V, --version print version number, then exit
23307 -q, --quiet do not print progress messages
23308 -d, --debug don't remove temporary files
23309 --recheck update $as_me by reconfiguring in the same conditions
23310 --file=FILE[:TEMPLATE]
23311 instantiate the configuration file FILE
23312 --header=FILE[:TEMPLATE]
23313 instantiate the configuration header FILE
23315 Configuration files:
23318 Configuration headers:
23321 Configuration commands:
23324 Report bugs to <bug-autoconf@gnu.org>."
23327 cat >>$CONFIG_STATUS <<_ACEOF
23329 libltdl config.status 1.2
23330 configured by $0, generated by GNU Autoconf 2.59,
23331 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23333 Copyright (C) 2003 Free Software Foundation, Inc.
23334 This config.status script is free software; the Free Software Foundation
23335 gives unlimited permission to copy, distribute and modify it."
23340 cat >>$CONFIG_STATUS <<\_ACEOF
23341 # If no file are specified by the user, then we need to provide default
23342 # value. By we need to know if files were specified by the user.
23348 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23349 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23357 *) # This is not an option, so the user has probably given explicit
23360 ac_need_defaults
=false
;;
23364 # Handling of the options.
23366 cat >>$CONFIG_STATUS <<\_ACEOF
23367 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23369 --version |
--vers* |
-V )
23370 echo "$ac_cs_version"; exit 0 ;;
23372 # Conflict between --help and --header
23373 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23374 Try \`$0 --help' for more information." >&5
23375 echo "$as_me: error: ambiguous option: $1
23376 Try \`$0 --help' for more information." >&2;}
23377 { (exit 1); exit 1; }; };;
23378 --help |
--hel |
-h )
23379 echo "$ac_cs_usage"; exit 0 ;;
23380 --debug |
--d* |
-d )
23382 --file |
--fil |
--fi |
--f )
23384 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23385 ac_need_defaults
=false
;;
23386 --header |
--heade |
--head |
--hea )
23388 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23389 ac_need_defaults
=false
;;
23390 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23391 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23394 # This is an error.
23395 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23396 Try \`$0 --help' for more information." >&5
23397 echo "$as_me: error: unrecognized option: $1
23398 Try \`$0 --help' for more information." >&2;}
23399 { (exit 1); exit 1; }; } ;;
23401 *) ac_config_targets
="$ac_config_targets $1" ;;
23407 ac_configure_extra_args
=
23409 if $ac_cs_silent; then
23411 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23415 cat >>$CONFIG_STATUS <<_ACEOF
23416 if \$ac_cs_recheck; then
23417 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23418 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23423 cat >>$CONFIG_STATUS <<_ACEOF
23425 # INIT-COMMANDS section.
23428 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23434 cat >>$CONFIG_STATUS <<\_ACEOF
23435 for ac_config_target
in $ac_config_targets
23437 case "$ac_config_target" in
23438 # Handling of arguments.
23439 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23440 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23441 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config-h.in" ;;
23442 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23443 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23444 { (exit 1); exit 1; }; };;
23448 # If the user did not use the arguments to specify the items to instantiate,
23449 # then the envvar interface is used. Set only those that are not.
23450 # We use the long form for the default assignment because of an extremely
23451 # bizarre bug on SunOS 4.1.3.
23452 if $ac_need_defaults; then
23453 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23454 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23455 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23458 # Have a temporary directory for convenience. Make it in the build tree
23459 # simply because there is no reason to put it here, and in addition,
23460 # creating and moving files from /tmp can sometimes cause problems.
23461 # Create a temporary directory, and hook for its removal unless debugging.
23464 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23465 trap '{ (exit 1); exit 1; }' 1 2 13 15
23468 # Create a (secure) tmp directory for tmp files.
23471 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23472 test -n "$tmp" && test -d "$tmp"
23475 tmp
=.
/confstat$$
-$RANDOM
23476 (umask 077 && mkdir
$tmp)
23479 echo "$me: cannot create a temporary directory in ." >&2
23480 { (exit 1); exit 1; }
23485 cat >>$CONFIG_STATUS <<_ACEOF
23488 # CONFIG_FILES section.
23491 # No need to generate the scripts if there are no CONFIG_FILES.
23492 # This happens for instance when ./config.status config.h
23493 if test -n "\$CONFIG_FILES"; then
23494 # Protect against being on the right side of a sed subst in config.status.
23495 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23496 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23497 s,@SHELL@,$SHELL,;t t
23498 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23499 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23500 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23501 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23502 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23503 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23504 s,@exec_prefix@,$exec_prefix,;t t
23505 s,@prefix@,$prefix,;t t
23506 s,@program_transform_name@,$program_transform_name,;t t
23507 s,@bindir@,$bindir,;t t
23508 s,@sbindir@,$sbindir,;t t
23509 s,@libexecdir@,$libexecdir,;t t
23510 s,@datadir@,$datadir,;t t
23511 s,@sysconfdir@,$sysconfdir,;t t
23512 s,@sharedstatedir@,$sharedstatedir,;t t
23513 s,@localstatedir@,$localstatedir,;t t
23514 s,@libdir@,$libdir,;t t
23515 s,@includedir@,$includedir,;t t
23516 s,@oldincludedir@,$oldincludedir,;t t
23517 s,@infodir@,$infodir,;t t
23518 s,@mandir@,$mandir,;t t
23519 s,@build_alias@,$build_alias,;t t
23520 s,@host_alias@,$host_alias,;t t
23521 s,@target_alias@,$target_alias,;t t
23522 s,@DEFS@,$DEFS,;t t
23523 s,@ECHO_C@,$ECHO_C,;t t
23524 s,@ECHO_N@,$ECHO_N,;t t
23525 s,@ECHO_T@,$ECHO_T,;t t
23526 s,@LIBS@,$LIBS,;t t
23527 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23528 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23529 s,@MAINT@,$MAINT,;t t
23530 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23531 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23532 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23533 s,@CYGPATH_W@,$CYGPATH_W,;t t
23534 s,@PACKAGE@,$PACKAGE,;t t
23535 s,@VERSION@,$VERSION,;t t
23536 s,@ACLOCAL@,$ACLOCAL,;t t
23537 s,@AUTOCONF@,$AUTOCONF,;t t
23538 s,@AUTOMAKE@,$AUTOMAKE,;t t
23539 s,@AUTOHEADER@,$AUTOHEADER,;t t
23540 s,@MAKEINFO@,$MAKEINFO,;t t
23541 s,@install_sh@,$install_sh,;t t
23542 s,@STRIP@,$STRIP,;t t
23543 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23544 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23545 s,@mkdir_p@,$mkdir_p,;t t
23547 s,@SET_MAKE@,$SET_MAKE,;t t
23548 s,@am__leading_dot@,$am__leading_dot,;t t
23549 s,@AMTAR@,$AMTAR,;t t
23550 s,@am__tar@,$am__tar,;t t
23551 s,@am__untar@,$am__untar,;t t
23553 s,@CFLAGS@,$CFLAGS,;t t
23554 s,@LDFLAGS@,$LDFLAGS,;t t
23555 s,@CPPFLAGS@,$CPPFLAGS,;t t
23556 s,@ac_ct_CC@,$ac_ct_CC,;t t
23557 s,@EXEEXT@,$EXEEXT,;t t
23558 s,@OBJEXT@,$OBJEXT,;t t
23559 s,@DEPDIR@,$DEPDIR,;t t
23560 s,@am__include@,$am__include,;t t
23561 s,@am__quote@,$am__quote,;t t
23562 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23563 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23564 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23565 s,@CCDEPMODE@,$CCDEPMODE,;t t
23566 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23567 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23568 s,@build@,$build,;t t
23569 s,@build_cpu@,$build_cpu,;t t
23570 s,@build_vendor@,$build_vendor,;t t
23571 s,@build_os@,$build_os,;t t
23572 s,@host@,$host,;t t
23573 s,@host_cpu@,$host_cpu,;t t
23574 s,@host_vendor@,$host_vendor,;t t
23575 s,@host_os@,$host_os,;t t
23576 s,@EGREP@,$EGREP,;t t
23577 s,@LN_S@,$LN_S,;t t
23578 s,@ECHO@,$ECHO,;t t
23580 s,@ac_ct_AR@,$ac_ct_AR,;t t
23581 s,@RANLIB@,$RANLIB,;t t
23582 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23583 s,@DLLTOOL@,$DLLTOOL,;t t
23584 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23586 s,@ac_ct_AS@,$ac_ct_AS,;t t
23587 s,@OBJDUMP@,$OBJDUMP,;t t
23588 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23591 s,@CXXFLAGS@,$CXXFLAGS,;t t
23592 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23593 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23594 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23595 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23596 s,@CXXCPP@,$CXXCPP,;t t
23598 s,@FFLAGS@,$FFLAGS,;t t
23599 s,@ac_ct_F77@,$ac_ct_F77,;t t
23600 s,@LIBTOOL@,$LIBTOOL,;t t
23601 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
23602 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
23603 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
23604 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
23605 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
23606 s,@LIBADD_DL@,$LIBADD_DL,;t t
23607 s,@LIBOBJS@,$LIBOBJS,;t t
23608 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23613 cat >>$CONFIG_STATUS <<\_ACEOF
23614 # Split the substitutions into bite-sized pieces for seds with
23615 # small command number limits, like on Digital OSF/1 and HP-UX.
23616 ac_max_sed_lines
=48
23617 ac_sed_frag
=1 # Number of current file.
23618 ac_beg
=1 # First line for current file.
23619 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23622 while $ac_more_lines; do
23623 if test $ac_beg -gt 1; then
23624 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23626 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23628 if test ! -s $tmp/subs.frag
; then
23629 ac_more_lines
=false
23631 # The purpose of the label and of the branching condition is to
23632 # speed up the sed processing (if there are no `@' at all, there
23633 # is no need to browse any of the substitutions).
23634 # These are the two extra sed commands mentioned above.
23636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23637 if test -z "$ac_sed_cmds"; then
23638 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23640 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23642 ac_sed_frag
=`expr $ac_sed_frag + 1`
23644 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23647 if test -z "$ac_sed_cmds"; then
23650 fi # test -n "$CONFIG_FILES"
23653 cat >>$CONFIG_STATUS <<\_ACEOF
23654 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23655 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23657 - |
*:- |
*:-:* ) # input from stdin
23659 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23660 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23661 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23662 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23663 * ) ac_file_in
=$ac_file.
in ;;
23666 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23667 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23669 X"$ac_file" : 'X\(//\)[^/]' \| \
23670 X"$ac_file" : 'X\(//\)$' \| \
23671 X"$ac_file" : 'X\(/\)' \| \
23672 . : '\(.\)' 2>/dev/null ||
23674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23676 /^X\(\/\/\)$/{ s//\1/; q; }
23677 /^X\(\/\).*/{ s//\1/; q; }
23679 { if $as_mkdir_p; then
23684 while test ! -d "$as_dir"; do
23685 as_dirs
="$as_dir $as_dirs"
23686 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23688 X"$as_dir" : 'X\(//\)[^/]' \| \
23689 X"$as_dir" : 'X\(//\)$' \| \
23690 X"$as_dir" : 'X\(/\)' \| \
23691 . : '\(.\)' 2>/dev/null ||
23693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23695 /^X\(\/\/\)$/{ s//\1/; q; }
23696 /^X\(\/\).*/{ s//\1/; q; }
23699 test ! -n "$as_dirs" || mkdir
$as_dirs
23700 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23701 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23702 { (exit 1); exit 1; }; }; }
23706 if test "$ac_dir" != .
; then
23707 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23708 # A "../" for each directory in $ac_dir_suffix.
23709 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23711 ac_dir_suffix
= ac_top_builddir
=
23715 .
) # No --srcdir option. We are building in place.
23717 if test -z "$ac_top_builddir"; then
23720 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23722 [\\/]* | ?
:[\\/]* ) # Absolute path.
23723 ac_srcdir
=$srcdir$ac_dir_suffix;
23724 ac_top_srcdir
=$srcdir ;;
23725 *) # Relative path.
23726 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23727 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23730 # Do not use `cd foo && pwd` to compute absolute paths, because
23731 # the directories may not exist.
23733 .
) ac_abs_builddir
="$ac_dir";;
23736 .
) ac_abs_builddir
=`pwd`;;
23737 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23738 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23741 case $ac_abs_builddir in
23742 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23744 case ${ac_top_builddir}.
in
23745 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23746 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23747 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23750 case $ac_abs_builddir in
23751 .
) ac_abs_srcdir
=$ac_srcdir;;
23754 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23755 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23756 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23759 case $ac_abs_builddir in
23760 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23762 case $ac_top_srcdir in
23763 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23764 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23765 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23771 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23772 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23775 if test x
"$ac_file" != x-
; then
23776 { echo "$as_me:$LINENO: creating $ac_file" >&5
23777 echo "$as_me: creating $ac_file" >&6;}
23780 # Let's still pretend it is `configure' which instantiates (i.e., don't
23781 # use $as_me), people would be surprised to read:
23782 # /* config.h. Generated by config.status. */
23783 if test x
"$ac_file" = x-
; then
23786 configure_input
="$ac_file. "
23788 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23789 sed 's,.*/,,'` by configure."
23791 # First look for the input files in the build tree, otherwise in the
23793 ac_file_inputs
=`IFS=:
23794 for f in $ac_file_in; do
23796 -) echo $tmp/stdin ;;
23798 # Absolute (can't be DOS-style, as IFS=:)
23799 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23800 echo "$as_me: error: cannot find input file: $f" >&2;}
23801 { (exit 1); exit 1; }; }
23804 if test -f "$f"; then
23807 elif test -f "$srcdir/$f"; then
23812 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23813 echo "$as_me: error: cannot find input file: $f" >&2;}
23814 { (exit 1); exit 1; }; }
23817 done` ||
{ (exit 1); exit 1; }
23819 cat >>$CONFIG_STATUS <<_ACEOF
23823 cat >>$CONFIG_STATUS <<\_ACEOF
23825 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23826 s
,@configure_input@
,$configure_input,;t t
23827 s
,@srcdir@
,$ac_srcdir,;t t
23828 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23829 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23830 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23831 s
,@builddir@
,$ac_builddir,;t t
23832 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23833 s
,@top_builddir@
,$ac_top_builddir,;t t
23834 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23835 s
,@INSTALL@
,$ac_INSTALL,;t t
23836 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23838 if test x"$ac_file" != x-; then
23839 mv $tmp/out $ac_file
23847 cat >>$CONFIG_STATUS <<\_ACEOF
23850 # CONFIG_HEADER section.
23853 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23854 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23856 # ac_d sets the value in "#define NAME VALUE" lines.
23857 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23858 ac_dB
='[ ].*$,\1#\2'
23861 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23862 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23863 ac_uB
='$,\1#\2define\3'
23867 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23870 - |
*:- |
*:-:* ) # input from stdin
23872 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23873 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23874 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23875 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23876 * ) ac_file_in
=$ac_file.
in ;;
23879 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23880 echo "$as_me: creating $ac_file" >&6;}
23882 # First look for the input files in the build tree, otherwise in the
23884 ac_file_inputs
=`IFS=:
23885 for f in $ac_file_in; do
23887 -) echo $tmp/stdin ;;
23889 # Absolute (can't be DOS-style, as IFS=:)
23890 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23891 echo "$as_me: error: cannot find input file: $f" >&2;}
23892 { (exit 1); exit 1; }; }
23893 # Do quote $f, to prevent DOS paths from being IFS'd.
23896 if test -f "$f"; then
23899 elif test -f "$srcdir/$f"; then
23904 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23905 echo "$as_me: error: cannot find input file: $f" >&2;}
23906 { (exit 1); exit 1; }; }
23909 done` ||
{ (exit 1); exit 1; }
23910 # Remove the trailing spaces.
23911 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23915 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23916 # `conftest.undefs', that substitutes the proper values into
23917 # config.h.in to produce config.h. The first handles `#define'
23918 # templates, and the second `#undef' templates.
23919 # And first: Protect against being on the right side of a sed subst in
23920 # config.status. Protect against being in an unquoted here document
23921 # in config.status.
23922 rm -f conftest.defines conftest.undefs
23923 # Using a here document instead of a string reduces the quoting nightmare.
23924 # Putting comments in sed scripts is not portable.
23926 # `end' is used to avoid that the second main sed command (meant for
23927 # 0-ary CPP macros) applies to n-ary macro definitions.
23928 # See the Autoconf documentation for `clear'.
23929 cat >confdef2sed.
sed <<\_ACEOF
23934 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23936 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23939 # If some macros were called several times there might be several times
23940 # the same #defines, which is useless. Nevertheless, we may not want to
23941 # sort them, since we want the *last* AC-DEFINE to be honored.
23942 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23943 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23944 rm -f confdef2sed.sed
23946 # This sed command replaces #undef with comments. This is necessary, for
23947 # example, in the case of _POSIX_SOURCE, which is predefined and required
23948 # on some systems where configure will not decide to define it.
23949 cat >>conftest.undefs <<\_ACEOF
23950 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23953 # Break up conftest.defines because some shells have a limit on the size
23954 # of here documents, and old seds have small limits too (100 cmds).
23955 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23956 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23957 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23958 echo ' :' >>$CONFIG_STATUS
23959 rm -f conftest.tail
23960 while grep . conftest.defines >/dev/null
23962 # Write a limited-size here document to $tmp/defines.sed.
23963 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23964 # Speed up: don't consider the non `#define' lines.
23965 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23966 # Work around the forget-to-reset-the-flag bug.
23967 echo 't clr' >>$CONFIG_STATUS
23968 echo ': clr' >>$CONFIG_STATUS
23969 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23971 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23973 mv $tmp/out $tmp/in
23975 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23976 rm -f conftest.defines
23977 mv conftest.
tail conftest.defines
23979 rm -f conftest.defines
23980 echo ' fi # grep' >>$CONFIG_STATUS
23981 echo >>$CONFIG_STATUS
23983 # Break up conftest.undefs because some shells have a limit on the size
23984 # of here documents, and old seds have small limits too (100 cmds).
23985 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23986 rm -f conftest.
tail
23987 while grep . conftest.undefs
>/dev
/null
23989 # Write a limited-size here document to $tmp/undefs.sed.
23990 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23991 # Speed up: don't consider the non
`#undef'
23992 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23993 # Work around the forget-to-reset-the-flag bug.
23994 echo 't clr' >>$CONFIG_STATUS
23995 echo ': clr' >>$CONFIG_STATUS
23996 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23998 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24000 mv $tmp/out $tmp/in
24002 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24003 rm -f conftest.undefs
24004 mv conftest.tail conftest.undefs
24006 rm -f conftest.undefs
24008 cat >>$CONFIG_STATUS <<\_ACEOF
24009 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24010 # use $as_me), people would be surprised to read:
24011 # /* config.h. Generated by config.status. */
24012 if test x
"$ac_file" = x-
; then
24013 echo "/* Generated by configure. */" >$tmp/config.h
24015 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24017 cat $tmp/in >>$tmp/config.h
24019 if test x
"$ac_file" != x-
; then
24020 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24021 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24022 echo "$as_me: $ac_file is unchanged" >&6;}
24024 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24026 X"$ac_file" : 'X\(//\)[^/]' \| \
24027 X"$ac_file" : 'X\(//\)$' \| \
24028 X"$ac_file" : 'X\(/\)' \| \
24029 . : '\(.\)' 2>/dev/null ||
24031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24033 /^X\(\/\/\)$/{ s//\1/; q; }
24034 /^X\(\/\).*/{ s//\1/; q; }
24036 { if $as_mkdir_p; then
24041 while test ! -d "$as_dir"; do
24042 as_dirs
="$as_dir $as_dirs"
24043 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24045 X"$as_dir" : 'X\(//\)[^/]' \| \
24046 X"$as_dir" : 'X\(//\)$' \| \
24047 X"$as_dir" : 'X\(/\)' \| \
24048 . : '\(.\)' 2>/dev/null ||
24050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24052 /^X\(\/\/\)$/{ s//\1/; q; }
24053 /^X\(\/\).*/{ s//\1/; q; }
24056 test ! -n "$as_dirs" || mkdir
$as_dirs
24057 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24059 { (exit 1); exit 1; }; }; }
24062 mv $tmp/config.h
$ac_file
24066 rm -f $tmp/config.h
24068 # Compute $ac_file's index in $config_headers.
24070 for _am_header
in $config_headers :; do
24071 case $_am_header in
24072 $ac_file |
$ac_file:* )
24075 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
24078 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24079 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24080 X$ac_file : 'X\(//\)[^/]' \| \
24081 X$ac_file : 'X\(//\)$' \| \
24082 X$ac_file : 'X\(/\)' \| \
24083 . : '\(.\)' 2>/dev/null ||
24085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24087 /^X\(\/\/\)$/{ s//\1/; q; }
24088 /^X\(\/\).*/{ s//\1/; q; }
24089 s/.*/./; q'`/stamp-h
$_am_stamp_count
24092 cat >>$CONFIG_STATUS <<\_ACEOF
24095 # CONFIG_COMMANDS section.
24097 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24098 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24099 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24100 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24101 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24102 X"$ac_dest" : 'X\(//\)[^/]' \| \
24103 X"$ac_dest" : 'X\(//\)$' \| \
24104 X"$ac_dest" : 'X\(/\)' \| \
24105 . : '\(.\)' 2>/dev/null ||
24107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24109 /^X\(\/\/\)$/{ s//\1/; q; }
24110 /^X\(\/\).*/{ s//\1/; q; }
24112 { if $as_mkdir_p; then
24117 while test ! -d "$as_dir"; do
24118 as_dirs
="$as_dir $as_dirs"
24119 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24121 X"$as_dir" : 'X\(//\)[^/]' \| \
24122 X"$as_dir" : 'X\(//\)$' \| \
24123 X"$as_dir" : 'X\(/\)' \| \
24124 . : '\(.\)' 2>/dev/null ||
24126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24128 /^X\(\/\/\)$/{ s//\1/; q; }
24129 /^X\(\/\).*/{ s//\1/; q; }
24132 test ! -n "$as_dirs" || mkdir
$as_dirs
24133 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24134 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24135 { (exit 1); exit 1; }; }; }
24139 if test "$ac_dir" != .
; then
24140 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24141 # A "../" for each directory in $ac_dir_suffix.
24142 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24144 ac_dir_suffix
= ac_top_builddir
=
24148 .
) # No --srcdir option. We are building in place.
24150 if test -z "$ac_top_builddir"; then
24153 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24155 [\\/]* | ?
:[\\/]* ) # Absolute path.
24156 ac_srcdir
=$srcdir$ac_dir_suffix;
24157 ac_top_srcdir
=$srcdir ;;
24158 *) # Relative path.
24159 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24160 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24163 # Do not use `cd foo && pwd` to compute absolute paths, because
24164 # the directories may not exist.
24166 .
) ac_abs_builddir
="$ac_dir";;
24169 .
) ac_abs_builddir
=`pwd`;;
24170 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24171 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24174 case $ac_abs_builddir in
24175 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24177 case ${ac_top_builddir}.
in
24178 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24179 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24180 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24183 case $ac_abs_builddir in
24184 .
) ac_abs_srcdir
=$ac_srcdir;;
24187 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24188 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24189 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24192 case $ac_abs_builddir in
24193 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24195 case $ac_top_srcdir in
24196 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24197 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24198 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24203 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24204 echo "$as_me: executing $ac_dest commands" >&6;}
24206 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
24207 # Strip MF so we end up with the name of the file.
24208 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24209 # Check whether this is an Automake generated Makefile or not.
24210 # We used to match only the files named `Makefile.in', but
24211 # some people rename them; so instead we look at the file content.
24212 # Grep'ing the first line is not enough: some people post-process
24213 # each Makefile.in and add a new line on top of each file to say so.
24214 # So let's grep whole file.
24215 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
24216 dirpart
=`(dirname "$mf") 2>/dev/null ||
24217 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24218 X"$mf" : 'X\(//\)[^/]' \| \
24219 X"$mf" : 'X\(//\)$' \| \
24220 X"$mf" : 'X\(/\)' \| \
24221 . : '\(.\)' 2>/dev/null ||
24223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24225 /^X\(\/\/\)$/{ s//\1/; q; }
24226 /^X\(\/\).*/{ s//\1/; q; }
24231 # Extract the definition of DEPDIR, am__include, and am__quote
24232 # from the Makefile without running `make'.
24233 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24234 test -z "$DEPDIR" && continue
24235 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24236 test -z "am__include" && continue
24237 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24238 # When using ansi2knr, U may be empty or an underscore; expand it
24239 U
=`sed -n 's/^U = //p' < "$mf"`
24240 # Find all dependency output files, they are included files with
24241 # $(DEPDIR) in their names. We invoke sed twice because it is the
24242 # simplest approach to changing $(DEPDIR) to its actual value in the
24244 for file in `sed -n "
24245 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24246 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24247 # Make sure the directory exists.
24248 test -f "$dirpart/$file" && continue
24249 fdir
=`(dirname "$file") 2>/dev/null ||
24250 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24251 X"$file" : 'X\(//\)[^/]' \| \
24252 X"$file" : 'X\(//\)$' \| \
24253 X"$file" : 'X\(/\)' \| \
24254 . : '\(.\)' 2>/dev/null ||
24256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24258 /^X\(\/\/\)$/{ s//\1/; q; }
24259 /^X\(\/\).*/{ s//\1/; q; }
24261 { if $as_mkdir_p; then
24262 mkdir
-p $dirpart/$fdir
24264 as_dir
=$dirpart/$fdir
24266 while test ! -d "$as_dir"; do
24267 as_dirs
="$as_dir $as_dirs"
24268 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24270 X"$as_dir" : 'X\(//\)[^/]' \| \
24271 X"$as_dir" : 'X\(//\)$' \| \
24272 X"$as_dir" : 'X\(/\)' \| \
24273 . : '\(.\)' 2>/dev/null ||
24275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24277 /^X\(\/\/\)$/{ s//\1/; q; }
24278 /^X\(\/\).*/{ s//\1/; q; }
24281 test ! -n "$as_dirs" || mkdir
$as_dirs
24282 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24283 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24284 { (exit 1); exit 1; }; }; }
24286 # echo "creating $dirpart/$file"
24287 echo '# dummy' > "$dirpart/$file"
24295 cat >>$CONFIG_STATUS <<\_ACEOF
24297 { (exit 0); exit 0; }
24299 chmod +x
$CONFIG_STATUS
24300 ac_clean_files
=$ac_clean_files_save
24303 # configure is writing to config.log, and then calls config.status.
24304 # config.status does its own redirection, appending to config.log.
24305 # Unfortunately, on DOS this fails, as config.log is still kept open
24306 # by configure, so config.status won't be able to write to it; its
24307 # output is simply discarded. So we exec the FD to /dev/null,
24308 # effectively closing config.log, so it can be properly (re)opened and
24309 # appended to by config.status. When coming back to configure, we
24310 # need to make the FD available again.
24311 if test "$no_create" != yes; then
24313 ac_config_status_args
=
24314 test "$silent" = yes &&
24315 ac_config_status_args
="$ac_config_status_args --quiet"
24317 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24319 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24320 # would make configure fail if this is the last instruction.
24321 $ac_cs_success ||
{ (exit 1); exit 1; }