2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for rfc822lib 0.12.
5 # Report bugs to <courier-users@lists.sourceforge.net>.
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
='rfc822lib'
425 PACKAGE_TARNAME
='rfc822lib'
426 PACKAGE_VERSION
='0.12'
427 PACKAGE_STRING
='rfc822lib 0.12'
428 PACKAGE_BUGREPORT
='courier-users@lists.sourceforge.net'
430 ac_unique_file
="rfc822.c"
431 # Factoring default headers for most tests.
432 ac_includes_default
="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL HAVE_SGML_TRUE HAVE_SGML_FALSE 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 rfc822lib 0.12 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 rfc822lib 0.12:";;
1028 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1029 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS
]
1033 build shared libraries
[default
=yes]
1034 --enable-static[=PKGS
]
1035 build static libraries
[default
=yes]
1036 --enable-fast-install[=PKGS
]
1037 optimize
for fast installation
[default
=yes]
1038 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1041 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1042 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1043 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1044 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1047 include additional configurations
[automatic
]
1049 Some influential environment variables
:
1050 CC C compiler
command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1053 nonstandard directory
<lib dir
>
1054 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1055 headers
in a nonstandard directory
<include dir
>
1057 CXX C
++ compiler
command
1058 CXXFLAGS C
++ compiler flags
1059 CXXCPP C
++ preprocessor
1060 F77 Fortran
77 compiler
command
1061 FFLAGS Fortran
77 compiler flags
1063 Use these variables to override the choices made by
`configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1066 Report bugs to <courier-users@lists.sourceforge.net>.
1070 if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1077 if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1082 ac_dir_suffix= ac_top_builddir=
1086 .) # No --srcdir option. We are building in place.
1088 if test -z "$ac_top_builddir"; then
1091 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1102 # the directories may not exist.
1104 .) ac_abs_builddir="$ac_dir";;
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121 case $ac_abs_builddir in
1122 .) ac_abs_srcdir=$ac_srcdir;;
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
1149 test -f $ac_srcdir/configure.in; then
1151 $ac_configure --help
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159 test -n "$ac_init_help" && exit 0
1160 if $ac_init_version; then
1162 rfc822lib configure 0.12
1163 generated by GNU Autoconf 2.59
1165 Copyright (C) 2003 Free Software Foundation, Inc.
1166 This configure script is free software; the Free Software Foundation
1167 gives unlimited permission to copy, distribute and modify it.
1173 This file contains any messages produced by compilers while
1174 running configure, to aid debugging if configure makes a mistake.
1176 It was created by rfc822lib $as_me 0.12, which was
1177 generated by GNU Autoconf 2.59. Invocation command line was
1188 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1189 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1190 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1191 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1192 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1194 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1195 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1197 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1198 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1199 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1200 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1201 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1202 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1203 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211 test -z "$as_dir" && as_dir=.
1212 echo "PATH: $as_dir"
1227 # Keep a trace of the command line.
1228 # Strip out --no-create and --no-recursion so they do not pile up.
1229 # Strip out --silent because we don't want to record it for future runs.
1230 # Also quote any args containing shell meta-characters.
1231 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_must_keep_next=false
1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253 if test $ac_must_keep_next = true; then
1254 ac_must_keep_next=false # Got value, back to normal.
1257 *=* | --config-cache | -C | -disable-* | --disable-* \
1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260 | -with-* | --with-* | -without-* | --without-* | --x)
1261 case "$ac_configure_args0 " in
1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 -* ) ac_must_keep_next=true ;;
1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269 # Get rid of the leading space.
1275 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278 # When interrupted or exit'd, cleanup temporary files, and complete
1279 # config.log. We remove comments because anyway the quotes in there
1280 # would cause problems or look ugly.
1281 # WARNING: Be sure not to use single quotes in there, as some shells,
1282 # such as our DU 5.0 friend, will then `close
' the trap.
1283 trap 'exit_status
=$?
1284 # Save into config.log some information that might help in debugging.
1289 ## ---------------- ##
1290 ## Cache variables. ##
1291 ## ---------------- ##
1294 # The following way of writing the cache mishandles newlines in values,
1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312 ## ----------------- ##
1313 ## Output variables. ##
1314 ## ----------------- ##
1317 for ac_var
in $ac_subst_vars
1319 eval ac_val
=$
`echo $ac_var`
1320 echo "$ac_var='"'"'$ac_val'"'"'"
1324 if test -n "$ac_subst_files"; then
1331 for ac_var
in $ac_subst_files
1333 eval ac_val
=$
`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1339 if test -s confdefs.h
; then
1346 sed "/^$/d" confdefs.h |
sort
1349 test "$ac_signal" != 0 &&
1350 echo "$as_me: caught signal $ac_signal"
1351 echo "$as_me: exit $exit_status"
1353 rm -f core
*.core
&&
1354 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1357 for ac_signal in 1 2 13 15; do
1358 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1363 rm -rf conftest* confdefs.h
1364 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367 # Predefined preprocessor variables.
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_NAME "$PACKAGE_NAME"
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_STRING "$PACKAGE_STRING"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394 # Let the site file select an alternate cache file if it wants to.
1395 # Prefer explicitly selected file to automatically selected ones.
1396 if test -z "$CONFIG_SITE"; then
1397 if test "x$prefix" != xNONE; then
1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 for ac_site_file in $CONFIG_SITE; do
1404 if test -r "$ac_site_file"; then
1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406 echo "$as_me: loading site script $ac_site_file" >&6;}
1407 sed 's
/^
/|
/' "$ac_site_file" >&5
1412 if test -r "$cache_file"; then
1413 # Some versions of bash will fail to source /dev/null (special
1414 # files actually), so we avoid doing that.
1415 if test -f "$cache_file"; then
1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417 echo "$as_me: loading cache $cache_file" >&6;}
1419 [\\/]* | ?:[\\/]* ) . $cache_file;;
1420 *) . ./$cache_file;;
1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425 echo "$as_me: creating cache $cache_file" >&6;}
1429 # Check that the precious variables saved in the cache have kept the same
1431 ac_cache_corrupted=false
1432 for ac_var in `(set) 2>&1 |
1433 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435 eval ac_new_set=\$ac_env_${ac_var}_set
1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437 eval ac_new_val="\$ac_env_${ac_var}_value"
1438 case $ac_old_set,$ac_new_set in
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1442 ac_cache_corrupted=: ;;
1444 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1449 if test "x$ac_old_val" != "x$ac_new_val"; then
1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1451 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1453 echo "$as_me: former value: $ac_old_val" >&2;}
1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1455 echo "$as_me: current value: $ac_new_val" >&2;}
1456 ac_cache_corrupted=:
1459 # Pass precious variables to config.status.
1460 if test "$ac_new_set" = set; then
1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1464 *) ac_arg=$ac_var=$ac_new_val ;;
1466 case " $ac_configure_args " in
1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 if $ac_cache_corrupted; then
1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1476 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477 { (exit 1); exit 1; }; }
1481 ac_cpp='$CPP $CPPFLAGS'
1482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1483 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513 >confdefs.h # Kill PACKAGE_ macros
1516 am__api_version="1.9"
1518 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1519 if test -f $ac_dir/install-sh; then
1521 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 elif test -f $ac_dir/install.sh; then
1525 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 elif test -f $ac_dir/shtool; then
1529 ac_install_sh="$ac_aux_dir/shtool install -c"
1533 if test -z "$ac_aux_dir"; then
1534 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1535 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1536 { (exit 1); exit 1; }; }
1538 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542 # Find a good install program. We prefer a C program (faster),
1543 # so one script is as good as another. But avoid the broken or
1544 # incompatible versions:
1545 # SysV /etc/install, /usr/sbin/install
1546 # SunOS /usr/etc/install
1547 # IRIX /sbin/install
1549 # AmigaOS /C/install, which installs bootblocks on floppy discs
1550 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1553 # OS/2's system install, which has a completely different semantic
1554 # ./install, which can be erroneously created by make from ./install.sh.
1555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1557 if test -z "$INSTALL"; then
1558 if test "${ac_cv_path_install+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir
=.
1566 # Account for people who put trailing slashes in PATH elements.
1568 .
/ | .
// |
/cC
/* | \
1569 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1570 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1573 # OSF1 and SCO ODT 3.0 have their own names for install.
1574 # Don't use installbsd from OSF since it installs stuff as root
1576 for ac_prog
in ginstall scoinst
install; do
1577 for ac_exec_ext
in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1579 if test $ac_prog = install &&
1580 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1581 # AIX install. It has an incompatible calling convention.
1583 elif test $ac_prog = install &&
1584 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1585 # program-specific install script used by HP pwplus--don't use.
1588 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1600 if test "${ac_cv_path_install+set}" = set; then
1601 INSTALL
=$ac_cv_path_install
1603 # As a last resort, use the slow shell script. We don't cache a
1604 # path for INSTALL within a source directory, because that will
1605 # break other packages using the cache if that directory is
1606 # removed, or if the path is relative.
1607 INSTALL
=$ac_install_sh
1610 echo "$as_me:$LINENO: result: $INSTALL" >&5
1611 echo "${ECHO_T}$INSTALL" >&6
1613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1614 # It thinks the first close brace ends the variable substitution.
1615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1619 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1621 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1622 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625 echo timestamp
> conftest.
file
1626 # Do `set' in a subshell so we don't clobber the current shell's
1627 # arguments. Must try -L first in case configure is actually a
1628 # symlink; some systems play weird games with the mod time of symlinks
1629 # (eg FreeBSD returns the mod time of the symlink's containing
1632 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1633 if test "$*" = "X"; then
1635 set X
`ls -t $srcdir/configure conftest.file`
1638 if test "$*" != "X $srcdir/configure conftest.file" \
1639 && test "$*" != "X conftest.file $srcdir/configure"; then
1641 # If neither matched, then we have a broken ls. This can happen
1642 # if, for instance, CONFIG_SHELL is bash and it inherits a
1643 # broken ls alias from the environment. This has actually
1644 # happened. Such a system could not be considered "sane".
1645 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1646 alias in your environment" >&5
1647 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1648 alias in your environment" >&2;}
1649 { (exit 1); exit 1; }; }
1652 test "$2" = conftest.
file
1658 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1659 Check your system clock" >&5
1660 echo "$as_me: error: newly created file is older than distributed files!
1661 Check your system clock" >&2;}
1662 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: yes" >&5
1665 echo "${ECHO_T}yes" >&6
1666 test "$program_prefix" != NONE
&&
1667 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1668 # Use a double $ so make ignores it.
1669 test "$program_suffix" != NONE
&&
1670 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1671 # Double any \ or $. echo might interpret backslashes.
1672 # By default was `s,x,x', remove it if useless.
1673 cat <<\_ACEOF
>conftest.
sed
1674 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1676 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1679 # expand $ac_aux_dir to an absolute path
1680 am_aux_dir
=`cd $ac_aux_dir && pwd`
1682 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1683 # Use eval to expand $SHELL
1684 if eval "$MISSING --run true"; then
1685 am_missing_run
="$MISSING --run "
1688 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1693 # We used to keeping the `.' as first argument, in order to
1694 # allow $(mkdir_p) to be used without argument. As in
1695 # $(mkdir_p) $(somedir)
1696 # where $(somedir) is conditionally defined. However this is wrong
1698 # 1. if the package is installed by a user who cannot write `.'
1699 # make install will fail,
1700 # 2. the above comment should most certainly read
1701 # $(mkdir_p) $(DESTDIR)$(somedir)
1702 # so it does not work when $(somedir) is undefined and
1703 # $(DESTDIR) is not.
1704 # To support the latter case, we have to write
1705 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1706 # so the `.' trick is pointless.
1707 mkdir_p
='mkdir -p --'
1709 # On NextStep and OpenStep, the `mkdir' command does not
1710 # recognize any option. It will interpret all options as
1711 # directories to create, and then abort because `.' already
1713 for d
in .
/-p .
/--version;
1715 test -d $d && rmdir $d
1717 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1718 if test -f "$ac_aux_dir/mkinstalldirs"; then
1719 mkdir_p
='$(mkinstalldirs)'
1721 mkdir_p
='$(install_sh) -d'
1725 for ac_prog
in gawk mawk nawk
awk
1727 # Extract the first word of "$ac_prog", so it can be a program name with args.
1728 set dummy
$ac_prog; ac_word
=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_AWK+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 if test -n "$AWK"; then
1735 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1741 test -z "$as_dir" && as_dir
=.
1742 for ac_exec_ext
in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_AWK
="$ac_prog"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754 if test -n "$AWK"; then
1755 echo "$as_me:$LINENO: result: $AWK" >&5
1756 echo "${ECHO_T}$AWK" >&6
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1762 test -n "$AWK" && break
1765 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1766 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1767 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1768 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 cat >conftest.
make <<\_ACEOF
1773 @
echo 'ac_maketemp="$(MAKE)"'
1775 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1776 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1777 if test -n "$ac_maketemp"; then
1778 eval ac_cv_prog_make_
${ac_make}_set
=yes
1780 eval ac_cv_prog_make_
${ac_make}_set
=no
1784 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1785 echo "$as_me:$LINENO: result: yes" >&5
1786 echo "${ECHO_T}yes" >&6
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791 SET_MAKE
="MAKE=${MAKE-make}"
1794 rm -rf .tst
2>/dev
/null
1795 mkdir .tst
2>/dev
/null
1796 if test -d .tst
; then
1801 rmdir .tst
2>/dev
/null
1803 # test to see if srcdir already configured
1804 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1805 test -f $srcdir/config.status
; then
1806 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1807 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1808 { (exit 1); exit 1; }; }
1811 # test whether we have cygpath
1812 if test -z "$CYGPATH_W"; then
1813 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1814 CYGPATH_W
='cygpath -w'
1821 # Define the identity of the package.
1826 # Some tools Automake needs.
1828 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1831 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1834 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1837 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1840 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1842 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1844 # Installed binaries are usually stripped using `strip' when the user
1845 # run `make install-strip'. However `strip' might not be the right
1846 # tool to use in cross-compilation environments, therefore Automake
1847 # will honor the `STRIP' environment variable to overrule this program.
1848 if test "$cross_compiling" != no
; then
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1851 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_STRIP+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 if test -n "$STRIP"; then
1858 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir
=.
1865 for ac_exec_ext
in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 STRIP
=$ac_cv_prog_STRIP
1877 if test -n "$STRIP"; then
1878 echo "$as_me:$LINENO: result: $STRIP" >&5
1879 echo "${ECHO_T}$STRIP" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1886 if test -z "$ac_cv_prog_STRIP"; then
1888 # Extract the first word of "strip", so it can be a program name with args.
1889 set dummy strip
; ac_word
=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$ac_ct_STRIP"; then
1896 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir
=.
1903 for ac_exec_ext
in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_STRIP
="strip"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1915 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1916 if test -n "$ac_ct_STRIP"; then
1917 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1918 echo "${ECHO_T}$ac_ct_STRIP" >&6
1920 echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1926 STRIP
="$ac_cv_prog_STRIP"
1930 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1932 # We need awk for the "check" target. The system "awk" is bad on
1934 # Always define AMTAR for backward compatibility.
1936 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1938 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1944 ac_config_headers
="$ac_config_headers config.h"
1948 ac_cpp
='$CPP $CPPFLAGS'
1949 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1952 if test -n "$ac_tool_prefix"; then
1953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1954 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC
="$CC" # Let the user override the test.
1963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir
=.
1968 for ac_exec_ext
in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 if test -n "$CC"; then
1981 echo "$as_me:$LINENO: result: $CC" >&5
1982 echo "${ECHO_T}$CC" >&6
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1989 if test -z "$ac_cv_prog_CC"; then
1991 # Extract the first word of "gcc", so it can be a program name with args.
1992 set dummy gcc
; ac_word
=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$ac_ct_CC"; then
1999 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir
=.
2006 for ac_exec_ext
in '' $ac_executable_extensions; do
2007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 ac_cv_prog_ac_ct_CC
="gcc"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2018 if test -n "$ac_ct_CC"; then
2019 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2020 echo "${ECHO_T}$ac_ct_CC" >&6
2022 echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2031 if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2034 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC
="$CC" # Let the user override the test.
2043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir
=.
2048 for ac_exec_ext
in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 if test -n "$CC"; then
2061 echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2069 if test -z "$ac_cv_prog_CC"; then
2071 # Extract the first word of "cc", so it can be a program name with args.
2072 set dummy cc
; ac_word
=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$ac_ct_CC"; then
2079 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir
=.
2086 for ac_exec_ext
in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_CC
="cc"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100 echo "${ECHO_T}$ac_ct_CC" >&6
2102 echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2112 if test -z "$CC"; then
2113 # Extract the first word of "cc", so it can be a program name with args.
2114 set dummy cc
; ac_word
=$2
2115 echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC
="$CC" # Let the user override the test.
2124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir
=.
2129 for ac_exec_ext
in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2132 ac_prog_rejected
=yes
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 if test $ac_prog_rejected = yes; then
2143 # We found a bogon in the path, so make sure we never use it.
2144 set dummy
$ac_cv_prog_CC
2146 if test $# != 0; then
2147 # We chose a different compiler from the bogus one.
2148 # However, it has the same basename, so the bogon will be chosen
2149 # first if we set CC to just the basename; use the full file name.
2151 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2157 if test -n "$CC"; then
2158 echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6
2161 echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2166 if test -z "$CC"; then
2167 if test -n "$ac_tool_prefix"; then
2170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2171 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2172 echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174 if test "${ac_cv_prog_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$CC"; then
2178 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 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 if test -n "$CC"; then
2198 echo "$as_me:$LINENO: result: $CC" >&5
2199 echo "${ECHO_T}$CC" >&6
2201 echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6
2205 test -n "$CC" && break
2208 if test -z "$CC"; then
2212 # Extract the first word of "$ac_prog", so it can be a program name with args.
2213 set dummy
$ac_prog; ac_word
=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 if test -n "$ac_ct_CC"; then
2220 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir
=.
2227 for ac_exec_ext
in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_ac_ct_CC
="$ac_prog"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2247 test -n "$ac_ct_CC" && break
2256 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: no acceptable C compiler found in \$PATH
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2262 # Provide some information about the compiler.
2263 echo "$as_me:$LINENO:" \
2264 "checking for C compiler version" >&5
2265 ac_compiler
=`set X $ac_compile; echo $2`
2266 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2267 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }
2271 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2272 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }
2276 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2277 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }
2282 cat >conftest.
$ac_ext <<_ACEOF
2285 cat confdefs.h
>>conftest.
$ac_ext
2286 cat >>conftest.
$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2297 ac_clean_files_save
=$ac_clean_files
2298 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2299 # Try to create an executable without -o first, disregard a.out.
2300 # It will help us diagnose broken compilers, and finding out an intuition
2302 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2303 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2304 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2305 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2306 (eval $ac_link_default) 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 # Find the output, starting from the most likely. This scheme is
2311 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2314 # Be careful to initialize this variable, since it used to be cached.
2315 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2317 # b.out is created by i960 compilers.
2318 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2320 test -f "$ac_file" ||
continue
2322 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2325 # This is the source file.
2328 # We found the default executable, but exeext='' is most
2332 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333 # FIXME: I believe we export ac_cv_exeext for Libtool,
2334 # but it would be cool to find out if it's true. Does anybody
2335 # maintain Libtool? --akim.
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.
$ac_ext >&5
2346 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: C compiler cannot create executables
2349 See \`config.log' for more details." >&2;}
2350 { (exit 77); exit 77; }; }
2353 ac_exeext
=$ac_cv_exeext
2354 echo "$as_me:$LINENO: result: $ac_file" >&5
2355 echo "${ECHO_T}$ac_file" >&6
2357 # Check the compiler produces executables we can run. If not, either
2358 # the compiler is broken, or we cross compile.
2359 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2361 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362 # If not cross compiling, check that we can run a simple program.
2363 if test "$cross_compiling" != yes; then
2364 if { ac_try
='./$ac_file'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 if test "$cross_compiling" = maybe
; then
2375 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2376 If you meant to cross compile, use \`--host'.
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }
2385 echo "$as_me:$LINENO: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6
2388 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2389 ac_clean_files
=$ac_clean_files_save
2390 # Check the compiler produces executables we can run. If not, either
2391 # the compiler is broken, or we cross compile.
2392 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2393 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2394 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2395 echo "${ECHO_T}$cross_compiling" >&6
2397 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2398 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2400 (eval $ac_link) 2>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; then
2404 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2405 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2406 # work properly (i.e., refer to `conftest.exe'), while it won't with
2408 for ac_file
in conftest.exe conftest conftest.
*; do
2409 test -f "$ac_file" ||
continue
2411 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2412 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2419 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2422 See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }
2426 rm -f conftest
$ac_cv_exeext
2427 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2428 echo "${ECHO_T}$ac_cv_exeext" >&6
2430 rm -f conftest.
$ac_ext
2431 EXEEXT
=$ac_cv_exeext
2433 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2434 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2435 if test "${ac_cv_objext+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 cat >conftest.
$ac_ext <<_ACEOF
2441 cat confdefs.h
>>conftest.
$ac_ext
2442 cat >>conftest.
$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2453 rm -f conftest.o conftest.obj
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2461 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2462 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.
$ac_ext >&5
2470 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2473 See \`config.log' for more details." >&2;}
2474 { (exit 1); exit 1; }; }
2477 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2479 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2480 echo "${ECHO_T}$ac_cv_objext" >&6
2481 OBJEXT
=$ac_cv_objext
2483 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2484 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2485 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 cat >conftest.
$ac_ext <<_ACEOF
2491 cat confdefs.h
>>conftest.
$ac_ext
2492 cat >>conftest.
$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2506 rm -f conftest.
$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2510 grep -v '^ *+' conftest.er1
>conftest.err
2512 cat conftest.err
>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try
='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try
='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.
$ac_ext >&5
2535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2536 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2539 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2540 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2541 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2542 ac_test_CFLAGS
=${CFLAGS+set}
2543 ac_save_CFLAGS
=$CFLAGS
2545 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2546 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2547 if test "${ac_cv_prog_cc_g+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 cat >conftest.
$ac_ext <<_ACEOF
2553 cat confdefs.h
>>conftest.
$ac_ext
2554 cat >>conftest.
$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2565 rm -f conftest.
$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>conftest.er1
2569 grep -v '^ *+' conftest.er1
>conftest.err
2571 cat conftest.err
>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try
='test -z "$ac_c_werror_flag"
2575 || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try
='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.
$ac_ext >&5
2594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2598 if test "$ac_test_CFLAGS" = set; then
2599 CFLAGS
=$ac_save_CFLAGS
2600 elif test $ac_cv_prog_cc_g = yes; then
2601 if test "$GCC" = yes; then
2607 if test "$GCC" = yes; then
2613 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2614 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2615 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 ac_cv_prog_cc_stdc
=no
2620 cat >conftest.
$ac_ext <<_ACEOF
2623 cat confdefs.h
>>conftest.
$ac_ext
2624 cat >>conftest.
$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2628 #include <sys/types.h>
2629 #include <sys/stat.h>
2630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2631 struct buf { int x; };
2632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2633 static char *e (p, i)
2639 static char *f (char * (*g) (char **, int), char **p, ...)
2644 s = g (p, va_arg (v,int));
2649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2650 function prototypes and stuff, but not '\xHH' hex character constants.
2651 These don't provoke an error unfortunately, instead are silently treated
2652 as 'x'. The following induces an error, until -std1 is added to get
2653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2654 array size at least. It's necessary to write '\x00'==0 to get something
2655 that's true only with -std1. */
2656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2658 int test (int i, double x);
2659 struct s1 {int (*f) (int a);};
2660 struct s2 {int (*f) (double a);};
2661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2667 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2672 # Don't try gcc -ansi; that turns off useful extensions and
2673 # breaks some systems' header files.
2674 # AIX -qlanglvl=ansi
2675 # Ultrix and OSF/1 -std1
2676 # HP-UX 10.20 and later -Ae
2677 # HP-UX older versions -Aa -D_HPUX_SOURCE
2678 # SVR4 -Xc -D__EXTENSIONS__
2679 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2681 CC
="$ac_save_CC $ac_arg"
2682 rm -f conftest.
$ac_objext
2683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684 (eval $ac_compile) 2>conftest.er1
2686 grep -v '^ *+' conftest.er1
>conftest.err
2688 cat conftest.err
>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try
='test -z "$ac_c_werror_flag"
2692 || test ! -s conftest.err'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; } &&
2698 { ac_try
='test -s conftest.$ac_objext'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; }; then
2704 ac_cv_prog_cc_stdc
=$ac_arg
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.
$ac_ext >&5
2711 rm -f conftest.err conftest.
$ac_objext
2713 rm -f conftest.
$ac_ext conftest.
$ac_objext
2718 case "x$ac_cv_prog_cc_stdc" in
2720 echo "$as_me:$LINENO: result: none needed" >&5
2721 echo "${ECHO_T}none needed" >&6 ;;
2723 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2724 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2725 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2728 # Some people use a C++ compiler to compile C. Since we use `exit',
2729 # in C++ we need to declare it. In case someone uses the same compiler
2730 # for both compiling C and C++ we need to have the C++ compiler decide
2731 # the declaration of exit, since it's the most demanding environment.
2732 cat >conftest.
$ac_ext <<_ACEOF
2737 rm -f conftest.
$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2741 grep -v '^ *+' conftest.er1
>conftest.err
2743 cat conftest.err
>&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try
='test -z "$ac_c_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try
='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 for ac_declaration
in \
2761 'extern "C" void std::exit (int) throw (); using std::exit;' \
2762 'extern "C" void std::exit (int); using std::exit;' \
2763 'extern "C" void exit (int) throw ();' \
2764 'extern "C" void exit (int);' \
2767 cat >conftest.
$ac_ext <<_ACEOF
2770 cat confdefs.h
>>conftest.
$ac_ext
2771 cat >>conftest.
$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2783 rm -f conftest.
$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1
>conftest.err
2789 cat conftest.err
>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try
='test -z "$ac_c_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try
='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.
$ac_ext >&5
2812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2813 cat >conftest.
$ac_ext <<_ACEOF
2816 cat confdefs.h
>>conftest.
$ac_ext
2817 cat >>conftest.
$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2828 rm -f conftest.
$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2832 grep -v '^ *+' conftest.er1
>conftest.err
2834 cat conftest.err
>&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try
='test -z "$ac_c_werror_flag"
2838 || test ! -s conftest.err'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try
='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.
$ac_ext >&5
2856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2859 if test -n "$ac_declaration"; then
2860 echo '#ifdef __cplusplus' >>confdefs.h
2861 echo $ac_declaration >>confdefs.h
2862 echo '#endif' >>confdefs.h
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.
$ac_ext >&5
2870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2872 ac_cpp
='$CPP $CPPFLAGS'
2873 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2876 DEPDIR
="${am__leading_dot}deps"
2878 ac_config_commands
="$ac_config_commands depfiles"
2881 am_make
=${MAKE-make}
2882 cat > confinc
<< 'END'
2887 # If we don't find an include directive, just comment out the code.
2888 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2889 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2893 # First try GNU make style include.
2894 echo "include confinc" > confmf
2895 # We grep out `Entering directory' and `Leaving directory'
2896 # messages which can occur if `w' ends up in MAKEFLAGS.
2897 # In particular we don't look at `^make:' because GNU make might
2898 # be invoked under some other name (usually "gmake"), in which
2899 # case it prints its new name instead of `make'.
2900 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2905 # Now try BSD make style include.
2906 if test "$am__include" = "#"; then
2907 echo '.include "confinc"' > confmf
2908 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2909 am__include
=.include
2916 echo "$as_me:$LINENO: result: $_am_result" >&5
2917 echo "${ECHO_T}$_am_result" >&6
2918 rm -f confinc confmf
2920 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2921 if test "${enable_dependency_tracking+set}" = set; then
2922 enableval
="$enable_dependency_tracking"
2925 if test "x$enable_dependency_tracking" != xno
; then
2926 am_depcomp
="$ac_aux_dir/depcomp"
2931 if test "x$enable_dependency_tracking" != xno; then
2942 depcc
="$CC" am_compiler_list
=
2944 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2945 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2946 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2950 # We make a subdir and do the tests there. Otherwise we can end up
2951 # making bogus files that we don't know about and never remove. For
2952 # instance it was reported that on HP-UX the gcc test will end up
2953 # making a dummy file named `D' -- because `-MD' means `put the output
2956 # Copy depcomp to subdir because otherwise we won't find it if we're
2957 # using a relative directory.
2958 cp "$am_depcomp" conftest.dir
2960 # We will build objects and dependencies in a subdirectory because
2961 # it helps to detect inapplicable dependency modes. For instance
2962 # both Tru64's cc and ICC support -MD to output dependencies as a
2963 # side effect of compilation, but ICC will put the dependencies in
2964 # the current directory while Tru64 will put them in the object
2968 am_cv_CC_dependencies_compiler_type
=none
2969 if test "$am_compiler_list" = ""; then
2970 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2972 for depmode
in $am_compiler_list; do
2973 # Setup a source with many dependencies, because some compilers
2974 # like to wrap large dependency lists on column 80 (with \), and
2975 # we should not choose a depcomp mode which is confused by this.
2977 # We need to recreate these files for each test, as the compiler may
2978 # overwrite some of them when testing with obscure command lines.
2979 # This happens at least with the AIX C compiler.
2981 for i
in 1 2 3 4 5 6; do
2982 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2983 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2984 # Solaris 8's {/usr,}/bin/sh.
2985 touch sub
/conftst
$i.h
2987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2991 # after this tag, mechanisms are not by side-effect, so they'll
2992 # only be used when explicitly requested
2993 if test "x$enable_dependency_tracking" = xyes
; then
3001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3002 # mode. It turns out that the SunPro C++ compiler does not properly
3003 # handle `-M -o', and we need to detect this.
3004 if depmode
=$depmode \
3005 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3006 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3007 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3008 >/dev
/null
2>conftest.err
&&
3009 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3010 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3011 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3012 # icc doesn't choke on unknown options, it will just issue warnings
3013 # or remarks (even with -Werror). So we grep stderr for any message
3014 # that says an option was ignored or not supported.
3015 # When given -MP, icc 7.0 and 7.1 complain thusly:
3016 # icc: Command line warning: ignoring option '-M'; no argument required
3017 # The diagnosis changed in icc 8.0:
3018 # icc: Command line remark: option '-MP' not supported
3019 if (grep 'ignoring option' conftest.err ||
3020 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3021 am_cv_CC_dependencies_compiler_type
=$depmode
3030 am_cv_CC_dependencies_compiler_type
=none
3034 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3035 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3036 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3041 test "x$enable_dependency_tracking" != xno \
3042 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3044 am__fastdepCC_FALSE
='#'
3046 am__fastdepCC_TRUE
='#'
3047 am__fastdepCC_FALSE
=
3053 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3054 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3055 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 ac_check_lib_save_LIBS
=$LIBS
3059 LIBS
="-lcposix $LIBS"
3060 cat >conftest.
$ac_ext <<_ACEOF
3063 cat confdefs.h
>>conftest.
$ac_ext
3064 cat >>conftest.
$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3067 /* Override any gcc2 internal prototype to avoid an error. */
3071 /* We use char because int might match the return type of a gcc2
3072 builtin and then its argument prototype would still apply. */
3082 rm -f conftest.
$ac_objext conftest
$ac_exeext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3084 (eval $ac_link) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1
>conftest.err
3088 cat conftest.err
>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try
='test -z "$ac_c_werror_flag"
3092 || test ! -s conftest.err'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try
='test -s conftest$ac_exeext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_lib_cposix_strerror
=yes
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.
$ac_ext >&5
3109 ac_cv_lib_cposix_strerror
=no
3111 rm -f conftest.err conftest.
$ac_objext \
3112 conftest
$ac_exeext conftest.
$ac_ext
3113 LIBS
=$ac_check_lib_save_LIBS
3115 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3116 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3117 if test $ac_cv_lib_cposix_strerror = yes; then
3118 LIBS
="$LIBS -lcposix"
3124 ac_cpp
='$CPP $CPPFLAGS'
3125 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3128 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3129 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3130 # On Suns, sometimes $CPP names a directory.
3131 if test -n "$CPP" && test -d "$CPP"; then
3134 if test -z "$CPP"; then
3135 if test "${ac_cv_prog_CPP+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 # Double quotes because CPP needs to be expanded
3139 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3142 for ac_c_preproc_warn_flag
in '' yes
3144 # Use a header file that comes with gcc, so configuring glibc
3145 # with a fresh cross-compiler works.
3146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3147 # <limits.h> exists even on freestanding compilers.
3148 # On the NeXT, cc -E runs the code through the compiler's parser,
3149 # not just through cpp. "Syntax error" is here to catch this case.
3150 cat >conftest.
$ac_ext <<_ACEOF
3153 cat confdefs.h
>>conftest.
$ac_ext
3154 cat >>conftest.
$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3157 # include <limits.h>
3159 # include <assert.h>
3163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3164 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3166 grep -v '^ *+' conftest.er1
>conftest.err
3168 cat conftest.err
>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } >/dev
/null
; then
3171 if test -s conftest.err
; then
3172 ac_cpp_err
=$ac_c_preproc_warn_flag
3173 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3180 if test -z "$ac_cpp_err"; then
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.
$ac_ext >&5
3186 # Broken: fails on valid input.
3189 rm -f conftest.err conftest.
$ac_ext
3191 # OK, works on sane cases. Now check whether non-existent headers
3192 # can be detected and how.
3193 cat >conftest.
$ac_ext <<_ACEOF
3196 cat confdefs.h
>>conftest.
$ac_ext
3197 cat >>conftest.
$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199 #include <ac_nonexistent.h>
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3204 grep -v '^ *+' conftest.er1
>conftest.err
3206 cat conftest.err
>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev
/null
; then
3209 if test -s conftest.err
; then
3210 ac_cpp_err
=$ac_c_preproc_warn_flag
3211 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3218 if test -z "$ac_cpp_err"; then
3219 # Broken: success on invalid input.
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.
$ac_ext >&5
3225 # Passes both tests.
3229 rm -f conftest.err conftest.
$ac_ext
3232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3233 rm -f conftest.err conftest.
$ac_ext
3234 if $ac_preproc_ok; then
3246 echo "$as_me:$LINENO: result: $CPP" >&5
3247 echo "${ECHO_T}$CPP" >&6
3249 for ac_c_preproc_warn_flag
in '' yes
3251 # Use a header file that comes with gcc, so configuring glibc
3252 # with a fresh cross-compiler works.
3253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254 # <limits.h> exists even on freestanding compilers.
3255 # On the NeXT, cc -E runs the code through the compiler's parser,
3256 # not just through cpp. "Syntax error" is here to catch this case.
3257 cat >conftest.
$ac_ext <<_ACEOF
3260 cat confdefs.h
>>conftest.
$ac_ext
3261 cat >>conftest.
$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3264 # include <limits.h>
3266 # include <assert.h>
3270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3271 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3273 grep -v '^ *+' conftest.er1
>conftest.err
3275 cat conftest.err
>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } >/dev
/null
; then
3278 if test -s conftest.err
; then
3279 ac_cpp_err
=$ac_c_preproc_warn_flag
3280 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3287 if test -z "$ac_cpp_err"; then
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.
$ac_ext >&5
3293 # Broken: fails on valid input.
3296 rm -f conftest.err conftest.
$ac_ext
3298 # OK, works on sane cases. Now check whether non-existent headers
3299 # can be detected and how.
3300 cat >conftest.
$ac_ext <<_ACEOF
3303 cat confdefs.h
>>conftest.
$ac_ext
3304 cat >>conftest.
$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #include <ac_nonexistent.h>
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3311 grep -v '^ *+' conftest.er1
>conftest.err
3313 cat conftest.err
>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev
/null
; then
3316 if test -s conftest.err
; then
3317 ac_cpp_err
=$ac_c_preproc_warn_flag
3318 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3325 if test -z "$ac_cpp_err"; then
3326 # Broken: success on invalid input.
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.
$ac_ext >&5
3332 # Passes both tests.
3336 rm -f conftest.err conftest.
$ac_ext
3339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3340 rm -f conftest.err conftest.
$ac_ext
3341 if $ac_preproc_ok; then
3344 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3345 See \`config.log' for more details." >&5
3346 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3347 See \`config.log' for more details." >&2;}
3348 { (exit 1); exit 1; }; }
3352 ac_cpp
='$CPP $CPPFLAGS'
3353 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3358 echo "$as_me:$LINENO: checking for egrep" >&5
3359 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3360 if test "${ac_cv_prog_egrep+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3364 then ac_cv_prog_egrep
='grep -E'
3365 else ac_cv_prog_egrep
='egrep'
3368 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3369 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3370 EGREP
=$ac_cv_prog_egrep
3374 echo "$as_me:$LINENO: checking for AIX" >&5
3375 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3376 cat >conftest.
$ac_ext <<_ACEOF
3379 cat confdefs.h
>>conftest.
$ac_ext
3380 cat >>conftest.
$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3388 $EGREP "yes" >/dev
/null
2>&1; then
3389 echo "$as_me:$LINENO: result: yes" >&5
3390 echo "${ECHO_T}yes" >&6
3391 cat >>confdefs.h
<<\_ACEOF
3392 #define _ALL_SOURCE 1
3396 echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6
3402 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3403 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3404 if test "${ac_cv_header_stdc+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 cat >conftest.
$ac_ext <<_ACEOF
3410 cat confdefs.h
>>conftest.
$ac_ext
3411 cat >>conftest.
$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3426 rm -f conftest.
$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3430 grep -v '^ *+' conftest.er1
>conftest.err
3432 cat conftest.err
>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try
='test -z "$ac_c_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try
='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 ac_cv_header_stdc
=yes
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.
$ac_ext >&5
3453 ac_cv_header_stdc
=no
3455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3457 if test $ac_cv_header_stdc = yes; then
3458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3459 cat >conftest.
$ac_ext <<_ACEOF
3462 cat confdefs.h
>>conftest.
$ac_ext
3463 cat >>conftest.
$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3469 $EGREP "memchr" >/dev
/null
2>&1; then
3472 ac_cv_header_stdc
=no
3478 if test $ac_cv_header_stdc = yes; then
3479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3480 cat >conftest.
$ac_ext <<_ACEOF
3483 cat confdefs.h
>>conftest.
$ac_ext
3484 cat >>conftest.
$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490 $EGREP "free" >/dev
/null
2>&1; then
3493 ac_cv_header_stdc
=no
3499 if test $ac_cv_header_stdc = yes; then
3500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3501 if test "$cross_compiling" = yes; then
3504 cat >conftest.
$ac_ext <<_ACEOF
3507 cat confdefs.h
>>conftest.
$ac_ext
3508 cat >>conftest.
$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3511 #if ((' ' & 0x0FF) == 0x020)
3512 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3513 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3515 # define ISLOWER(c) \
3516 (('a' <= (c) && (c) <= 'i') \
3517 || ('j' <= (c) && (c) <= 'r') \
3518 || ('s' <= (c) && (c) <= 'z'))
3519 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3527 for (i = 0; i < 256; i++)
3528 if (XOR (islower (i), ISLOWER (i))
3529 || toupper (i) != TOUPPER (i))
3534 rm -f conftest
$ac_exeext
3535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3536 (eval $ac_link) 2>&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3547 echo "$as_me: program exited with status $ac_status" >&5
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.
$ac_ext >&5
3552 ac_cv_header_stdc
=no
3554 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3558 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3559 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3560 if test $ac_cv_header_stdc = yes; then
3562 cat >>confdefs.h
<<\_ACEOF
3563 #define STDC_HEADERS 1
3568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3578 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3579 inttypes.h stdint.h unistd.h
3581 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3582 echo "$as_me:$LINENO: checking for $ac_header" >&5
3583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 cat >conftest.
$ac_ext <<_ACEOF
3590 cat confdefs.h
>>conftest.
$ac_ext
3591 cat >>conftest.
$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593 $ac_includes_default
3595 #include <$ac_header>
3597 rm -f conftest.
$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>conftest.er1
3601 grep -v '^ *+' conftest.er1
>conftest.err
3603 cat conftest.err
>&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 { ac_try
='test -z "$ac_c_werror_flag"
3607 || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try
='test -s conftest.$ac_objext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 eval "$as_ac_Header=yes"
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.
$ac_ext >&5
3624 eval "$as_ac_Header=no"
3626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3631 cat >>confdefs.h
<<_ACEOF
3632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3640 if test "${ac_cv_header_minix_config_h+set}" = set; then
3641 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3642 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3643 if test "${ac_cv_header_minix_config_h+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3647 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3649 # Is the header compilable?
3650 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3651 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3652 cat >conftest.
$ac_ext <<_ACEOF
3655 cat confdefs.h
>>conftest.
$ac_ext
3656 cat >>conftest.
$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 $ac_includes_default
3659 #include <minix/config.h>
3661 rm -f conftest.
$ac_objext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663 (eval $ac_compile) 2>conftest.er1
3665 grep -v '^ *+' conftest.er1
>conftest.err
3667 cat conftest.err
>&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try
='test -z "$ac_c_werror_flag"
3671 || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try
='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_header_compiler
=yes
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.
$ac_ext >&5
3688 ac_header_compiler
=no
3690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3692 echo "${ECHO_T}$ac_header_compiler" >&6
3694 # Is the header present?
3695 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3696 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3697 cat >conftest.
$ac_ext <<_ACEOF
3700 cat confdefs.h
>>conftest.
$ac_ext
3701 cat >>conftest.
$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #include <minix/config.h>
3705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3706 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3708 grep -v '^ *+' conftest.er1
>conftest.err
3710 cat conftest.err
>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } >/dev
/null
; then
3713 if test -s conftest.err
; then
3714 ac_cpp_err
=$ac_c_preproc_warn_flag
3715 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3722 if test -z "$ac_cpp_err"; then
3723 ac_header_preproc
=yes
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.
$ac_ext >&5
3728 ac_header_preproc
=no
3730 rm -f conftest.err conftest.
$ac_ext
3731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3732 echo "${ECHO_T}$ac_header_preproc" >&6
3734 # So? What about this header?
3735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3737 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3738 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3739 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3740 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3741 ac_header_preproc
=yes
3744 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3745 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3747 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3749 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3751 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3752 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3753 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3755 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3758 ## -------------------------------------------------- ##
3759 ## Report this to courier-users@lists.sourceforge.net ##
3760 ## -------------------------------------------------- ##
3763 sed "s/^/$as_me: WARNING: /" >&2
3766 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3767 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3768 if test "${ac_cv_header_minix_config_h+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 ac_cv_header_minix_config_h
=$ac_header_preproc
3773 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3774 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3777 if test $ac_cv_header_minix_config_h = yes; then
3784 if test "$MINIX" = yes; then
3786 cat >>confdefs.h
<<\_ACEOF
3787 #define _POSIX_SOURCE 1
3791 cat >>confdefs.h
<<\_ACEOF
3792 #define _POSIX_1_SOURCE 2
3796 cat >>confdefs.h
<<\_ACEOF
3802 # Check whether --enable-shared or --disable-shared was given.
3803 if test "${enable_shared+set}" = set; then
3804 enableval
="$enable_shared"
3805 p
=${PACKAGE-default}
3807 yes) enable_shared
=yes ;;
3808 no
) enable_shared
=no
;;
3811 # Look at the argument we got. We use all the common list separators.
3812 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3813 for pkg
in $enableval; do
3815 if test "X$pkg" = "X$p"; then
3826 # Check whether --enable-static or --disable-static was given.
3827 if test "${enable_static+set}" = set; then
3828 enableval
="$enable_static"
3829 p
=${PACKAGE-default}
3831 yes) enable_static
=yes ;;
3832 no
) enable_static
=no
;;
3835 # Look at the argument we got. We use all the common list separators.
3836 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3837 for pkg
in $enableval; do
3839 if test "X$pkg" = "X$p"; then
3850 # Check whether --enable-fast-install or --disable-fast-install was given.
3851 if test "${enable_fast_install+set}" = set; then
3852 enableval
="$enable_fast_install"
3853 p
=${PACKAGE-default}
3855 yes) enable_fast_install
=yes ;;
3856 no
) enable_fast_install
=no
;;
3858 enable_fast_install
=no
3859 # Look at the argument we got. We use all the common list separators.
3860 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3861 for pkg
in $enableval; do
3863 if test "X$pkg" = "X$p"; then
3864 enable_fast_install
=yes
3871 enable_fast_install
=yes
3874 # Make sure we can run config.sub.
3875 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3876 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3877 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3878 { (exit 1); exit 1; }; }
3880 echo "$as_me:$LINENO: checking build system type" >&5
3881 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3882 if test "${ac_cv_build+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 ac_cv_build_alias
=$build_alias
3886 test -z "$ac_cv_build_alias" &&
3887 ac_cv_build_alias
=`$ac_config_guess`
3888 test -z "$ac_cv_build_alias" &&
3889 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3890 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3891 { (exit 1); exit 1; }; }
3892 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3893 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3894 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3895 { (exit 1); exit 1; }; }
3898 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3899 echo "${ECHO_T}$ac_cv_build" >&6
3901 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3902 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3903 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3906 echo "$as_me:$LINENO: checking host system type" >&5
3907 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3908 if test "${ac_cv_host+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 ac_cv_host_alias
=$host_alias
3912 test -z "$ac_cv_host_alias" &&
3913 ac_cv_host_alias
=$ac_cv_build_alias
3914 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3915 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3916 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3917 { (exit 1); exit 1; }; }
3920 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3921 echo "${ECHO_T}$ac_cv_host" >&6
3923 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3924 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3925 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3928 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3929 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3930 if test "${lt_cv_path_SED+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 # Loop through the user's path and test for sed and gsed.
3934 # Then use that list of sed's as ones to test for truncation.
3935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3939 test -z "$as_dir" && as_dir
=.
3940 for lt_ac_prog
in sed gsed
; do
3941 for ac_exec_ext
in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3943 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3951 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3952 # along with /bin/sed that truncates output.
3953 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3954 test ! -f $lt_ac_sed && continue
3955 cat /dev
/null
> conftest.
in
3957 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3958 # Check for GNU sed and select it if it is found.
3959 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3960 lt_cv_path_SED
=$lt_ac_sed
3964 cat conftest.
in conftest.
in >conftest.tmp
3965 mv conftest.tmp conftest.
in
3966 cp conftest.
in conftest.
nl
3968 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3969 cmp -s conftest.out conftest.
nl ||
break
3970 # 10000 chars as input seems more than enough
3971 test $lt_ac_count -gt 10 && break
3972 lt_ac_count
=`expr $lt_ac_count + 1`
3973 if test $lt_ac_count -gt $lt_ac_max; then
3974 lt_ac_max
=$lt_ac_count
3975 lt_cv_path_SED
=$lt_ac_sed
3984 echo "$as_me:$LINENO: result: $SED" >&5
3985 echo "${ECHO_T}$SED" >&6
3988 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3989 if test "${with_gnu_ld+set}" = set; then
3990 withval
="$with_gnu_ld"
3991 test "$withval" = no || with_gnu_ld
=yes
3996 if test "$GCC" = yes; then
3997 # Check if gcc -print-prog-name=ld gives a path.
3998 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3999 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4002 # gcc leaves a trailing carriage return which upsets mingw
4003 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4005 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4008 # Accept absolute paths.
4010 re_direlt
='/[^/][^/]*/\.\./'
4011 # Canonicalize the pathname of ld
4012 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
4013 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4014 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4016 test -z "$LD" && LD
="$ac_prog"
4019 # If it fails, then pretend we aren't using GCC.
4023 # If it is relative, then search for the first ld in PATH.
4027 elif test "$with_gnu_ld" = yes; then
4028 echo "$as_me:$LINENO: checking for GNU ld" >&5
4029 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4031 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4032 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4034 if test "${lt_cv_path_LD+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 if test -z "$LD"; then
4038 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4039 for ac_dir
in $PATH; do
4041 test -z "$ac_dir" && ac_dir
=.
4042 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4043 lt_cv_path_LD
="$ac_dir/$ac_prog"
4044 # Check to see if the program is GNU ld. I'd rather use --version,
4045 # but apparently some variants of GNU ld only accept -v.
4046 # Break only if it was the GNU/non-GNU ld that we prefer.
4047 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4048 *GNU
* |
*'with BFD'*)
4049 test "$with_gnu_ld" != no
&& break
4052 test "$with_gnu_ld" != yes && break
4059 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4064 if test -n "$LD"; then
4065 echo "$as_me:$LINENO: result: $LD" >&5
4066 echo "${ECHO_T}$LD" >&6
4068 echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4071 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4072 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4073 { (exit 1); exit 1; }; }
4074 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4075 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4076 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4080 case `$LD -v 2>&1 </dev/null` in
4081 *GNU
* |
*'with BFD'*)
4082 lt_cv_prog_gnu_ld
=yes
4085 lt_cv_prog_gnu_ld
=no
4089 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4090 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4091 with_gnu_ld
=$lt_cv_prog_gnu_ld
4094 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4095 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4096 if test "${lt_cv_ld_reload_flag+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 lt_cv_ld_reload_flag
='-r'
4101 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4102 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4103 reload_flag
=$lt_cv_ld_reload_flag
4104 case $reload_flag in
4106 *) reload_flag
=" $reload_flag" ;;
4108 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4111 if test "$GCC" = yes; then
4112 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4114 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4119 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4120 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4121 if test "${lt_cv_path_NM+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 if test -n "$NM"; then
4125 # Let the user override the test.
4128 lt_nm_to_check
="${ac_tool_prefix}nm"
4129 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4130 lt_nm_to_check
="$lt_nm_to_check nm"
4132 for lt_tmp_nm
in $lt_nm_to_check; do
4133 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4134 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4136 test -z "$ac_dir" && ac_dir
=.
4137 tmp_nm
="$ac_dir/$lt_tmp_nm"
4138 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4139 # Check to see if the nm accepts a BSD-compat flag.
4140 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4141 # nm: unknown option "B" ignored
4142 # Tru64's nm complains that /dev/null is an invalid object file
4143 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4144 */dev
/null
* |
*'Invalid file or object type'*)
4145 lt_cv_path_NM
="$tmp_nm -B"
4149 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4151 lt_cv_path_NM
="$tmp_nm -p"
4155 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4156 continue # so that we can try to find one that supports BSD flags
4165 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4168 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4169 echo "${ECHO_T}$lt_cv_path_NM" >&6
4172 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4173 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4175 if test "$LN_S" = "ln -s"; then
4176 echo "$as_me:$LINENO: result: yes" >&5
4177 echo "${ECHO_T}yes" >&6
4179 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4180 echo "${ECHO_T}no, using $LN_S" >&6
4183 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4184 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4185 if test "${lt_cv_deplibs_check_method+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4189 lt_cv_file_magic_test_file
=
4190 lt_cv_deplibs_check_method
='unknown'
4191 # Need to set the preceding variable on all platforms that support
4192 # interlibrary dependencies.
4193 # 'none' -- dependencies not supported.
4194 # `unknown' -- same as none, but documents that we really don't know.
4195 # 'pass_all' -- all dependencies passed with no checks.
4196 # 'test_compile' -- check by making test program.
4197 # 'file_magic [[regex]]' -- check by looking for files in library path
4198 # which responds to the $file_magic_cmd with a given extended regex.
4199 # If you have `file' or equivalent on your system and you're not sure
4200 # whether `pass_all' will *always* work, you probably want this one.
4204 lt_cv_deplibs_check_method
=pass_all
4208 lt_cv_deplibs_check_method
=pass_all
4212 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4213 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4214 lt_cv_file_magic_test_file
=/shlib
/libc.so
4218 # func_win32_libid is a shell function defined in ltmain.sh
4219 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4220 lt_cv_file_magic_cmd
='func_win32_libid'
4224 # Base MSYS/MinGW do not provide the 'file' command needed by
4225 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4226 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4227 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4230 darwin
* | rhapsody
*)
4231 lt_cv_deplibs_check_method
=pass_all
4234 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
4235 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4238 # Not sure whether the presence of OpenBSD here was a mistake.
4239 # Let's accept both of them until this is cleared up.
4240 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4241 lt_cv_file_magic_cmd
=/usr
/bin
/file
4242 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4246 lt_cv_deplibs_check_method
=pass_all
4251 lt_cv_deplibs_check_method
=pass_all
4254 hpux10.20
* | hpux11
*)
4255 lt_cv_file_magic_cmd
=/usr
/bin
/file
4258 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4259 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4262 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]'
4263 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4266 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4267 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4273 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4274 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4277 irix5
* | irix6
* | nonstopux
*)
4279 *-32|
*"-32 ") libmagic
=32-bit;;
4280 *-n32|
*"-n32 ") libmagic
=N32
;;
4281 *-64|
*"-64 ") libmagic
=64-bit;;
4282 *) libmagic
=never-match
;;
4284 lt_cv_deplibs_check_method
=pass_all
4287 # This must be Linux ELF.
4289 lt_cv_deplibs_check_method
=pass_all
4293 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4294 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4296 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4301 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4302 lt_cv_file_magic_cmd
=/usr
/bin
/file
4303 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4307 lt_cv_deplibs_check_method
=unknown
4311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4312 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4314 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4318 osf3
* | osf4
* | osf5
*)
4319 lt_cv_deplibs_check_method
=pass_all
4323 lt_cv_deplibs_check_method
=pass_all
4327 case $host_vendor in
4329 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]'
4330 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4333 lt_cv_deplibs_check_method
=pass_all
4336 lt_cv_file_magic_cmd
='/bin/file'
4337 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4340 lt_cv_file_magic_cmd
='/bin/file'
4341 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4342 lt_cv_file_magic_test_file
=/lib
/libc.so
4345 lt_cv_deplibs_check_method
=pass_all
4348 lt_cv_deplibs_check_method
=pass_all
4353 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4354 lt_cv_deplibs_check_method
=pass_all
4359 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4360 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4361 file_magic_cmd
=$lt_cv_file_magic_cmd
4362 deplibs_check_method
=$lt_cv_deplibs_check_method
4363 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4368 # If no C compiler was specified, use CC.
4371 # If no C compiler flags were specified, use CFLAGS.
4372 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4374 # Allow CC to be a program name with arguments.
4377 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4378 if test "${enable_libtool_lock+set}" = set; then
4379 enableval
="$enable_libtool_lock"
4382 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4384 # Some flags need to be propagated to the compiler or linker for good
4388 # Find out which ABI we are using.
4389 echo 'int i;' > conftest.
$ac_ext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; then
4395 case `/usr/bin/file conftest.$ac_objext` in
4407 # Find out which ABI we are using.
4408 echo '#line 4408 "configure"' > conftest.
$ac_ext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; then
4414 if test "$lt_cv_prog_gnu_ld" = yes; then
4415 case `/usr/bin/file conftest.$ac_objext` in
4417 LD
="${LD-ld} -melf32bsmip"
4420 LD
="${LD-ld} -melf32bmipn32"
4423 LD
="${LD-ld} -melf64bmip"
4427 case `/usr/bin/file conftest.$ac_objext` in
4443 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4444 # Find out which ABI we are using.
4445 echo 'int i;' > conftest.
$ac_ext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447 (eval $ac_compile) 2>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; then
4451 case `/usr/bin/file conftest.o` in
4455 LD
="${LD-ld} -m elf_i386"
4457 ppc64-
*linux
*|powerpc64-
*linux
*)
4458 LD
="${LD-ld} -m elf32ppclinux"
4461 LD
="${LD-ld} -m elf_s390"
4464 LD
="${LD-ld} -m elf32_sparc"
4471 LD
="${LD-ld} -m elf_x86_64"
4473 ppc
*-*linux
*|powerpc
*-*linux
*)
4474 LD
="${LD-ld} -m elf64ppc"
4477 LD
="${LD-ld} -m elf64_s390"
4480 LD
="${LD-ld} -m elf64_sparc"
4490 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4491 SAVE_CFLAGS
="$CFLAGS"
4492 CFLAGS
="$CFLAGS -belf"
4493 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4494 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4495 if test "${lt_cv_cc_needs_belf+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 ac_cpp
='$CPP $CPPFLAGS'
4500 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4504 cat >conftest.
$ac_ext <<_ACEOF
4507 cat confdefs.h
>>conftest.
$ac_ext
4508 cat >>conftest.
$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4519 rm -f conftest.
$ac_objext conftest
$ac_exeext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4521 (eval $ac_link) 2>conftest.er1
4523 grep -v '^ *+' conftest.er1
>conftest.err
4525 cat conftest.err
>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try
='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try
='test -s conftest$ac_exeext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 lt_cv_cc_needs_belf
=yes
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.
$ac_ext >&5
4546 lt_cv_cc_needs_belf
=no
4548 rm -f conftest.err conftest.
$ac_objext \
4549 conftest
$ac_exeext conftest.
$ac_ext
4551 ac_cpp
='$CPP $CPPFLAGS'
4552 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4557 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4558 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4559 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4560 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4561 CFLAGS
="$SAVE_CFLAGS"
4565 # Find out which ABI we are using.
4566 echo 'int i;' > conftest.
$ac_ext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568 (eval $ac_compile) 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; then
4572 case `/usr/bin/file conftest.o` in
4574 case $lt_cv_prog_gnu_ld in
4575 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
4576 *) LD
="${LD-ld} -64" ;;
4587 need_locks
="$enable_libtool_lock"
4591 for ac_header
in dlfcn.h
4593 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4595 echo "$as_me:$LINENO: checking for $ac_header" >&5
4596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4603 # Is the header compilable?
4604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4606 cat >conftest.
$ac_ext <<_ACEOF
4609 cat confdefs.h
>>conftest.
$ac_ext
4610 cat >>conftest.
$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4612 $ac_includes_default
4613 #include <$ac_header>
4615 rm -f conftest.
$ac_objext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617 (eval $ac_compile) 2>conftest.er1
4619 grep -v '^ *+' conftest.er1
>conftest.err
4621 cat conftest.err
>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try
='test -z "$ac_c_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try
='test -s conftest.$ac_objext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 ac_header_compiler
=yes
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.
$ac_ext >&5
4642 ac_header_compiler
=no
4644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4646 echo "${ECHO_T}$ac_header_compiler" >&6
4648 # Is the header present?
4649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4651 cat >conftest.
$ac_ext <<_ACEOF
4654 cat confdefs.h
>>conftest.
$ac_ext
4655 cat >>conftest.
$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 #include <$ac_header>
4659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4660 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4662 grep -v '^ *+' conftest.er1
>conftest.err
4664 cat conftest.err
>&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } >/dev
/null
; then
4667 if test -s conftest.err
; then
4668 ac_cpp_err
=$ac_c_preproc_warn_flag
4669 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4676 if test -z "$ac_cpp_err"; then
4677 ac_header_preproc
=yes
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.
$ac_ext >&5
4682 ac_header_preproc
=no
4684 rm -f conftest.err conftest.
$ac_ext
4685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4686 echo "${ECHO_T}$ac_header_preproc" >&6
4688 # So? What about this header?
4689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4695 ac_header_preproc
=yes
4698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4712 ## -------------------------------------------------- ##
4713 ## Report this to courier-users@lists.sourceforge.net ##
4714 ## -------------------------------------------------- ##
4717 sed "s/^/$as_me: WARNING: /" >&2
4720 echo "$as_me:$LINENO: checking for $ac_header" >&5
4721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 eval "$as_ac_Header=\$ac_header_preproc"
4727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4732 cat >>confdefs.h
<<_ACEOF
4733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4741 ac_cpp
='$CXXCPP $CPPFLAGS'
4742 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4745 if test -n "$ac_tool_prefix"; then
4746 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4749 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4750 echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4752 if test "${ac_cv_prog_CXX+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 if test -n "$CXX"; then
4756 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4762 test -z "$as_dir" && as_dir
=.
4763 for ac_exec_ext
in '' $ac_executable_extensions; do
4764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4765 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 if test -n "$CXX"; then
4776 echo "$as_me:$LINENO: result: $CXX" >&5
4777 echo "${ECHO_T}$CXX" >&6
4779 echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6
4783 test -n "$CXX" && break
4786 if test -z "$CXX"; then
4788 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4790 # Extract the first word of "$ac_prog", so it can be a program name with args.
4791 set dummy
$ac_prog; ac_word
=$2
4792 echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 if test -n "$ac_ct_CXX"; then
4798 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir
=.
4805 for ac_exec_ext
in '' $ac_executable_extensions; do
4806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4817 if test -n "$ac_ct_CXX"; then
4818 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4819 echo "${ECHO_T}$ac_ct_CXX" >&6
4821 echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6
4825 test -n "$ac_ct_CXX" && break
4827 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
4833 # Provide some information about the compiler.
4834 echo "$as_me:$LINENO:" \
4835 "checking for C++ compiler version" >&5
4836 ac_compiler
=`set X $ac_compile; echo $2`
4837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4838 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }
4842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4843 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }
4847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4848 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }
4853 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4854 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4855 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 cat >conftest.
$ac_ext <<_ACEOF
4861 cat confdefs.h
>>conftest.
$ac_ext
4862 cat >>conftest.
$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4876 rm -f conftest.
$ac_objext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4878 (eval $ac_compile) 2>conftest.er1
4880 grep -v '^ *+' conftest.er1
>conftest.err
4882 cat conftest.err
>&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try
='test -z "$ac_cxx_werror_flag"
4886 || test ! -s conftest.err'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; } &&
4892 { ac_try
='test -s conftest.$ac_objext'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.
$ac_ext >&5
4905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4906 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4909 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4910 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4911 GXX
=`test $ac_compiler_gnu = yes && echo yes`
4912 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4913 ac_save_CXXFLAGS
=$CXXFLAGS
4915 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4916 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4917 if test "${ac_cv_prog_cxx_g+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 cat >conftest.
$ac_ext <<_ACEOF
4923 cat confdefs.h
>>conftest.
$ac_ext
4924 cat >>conftest.
$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4935 rm -f conftest.
$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4939 grep -v '^ *+' conftest.er1
>conftest.err
4941 cat conftest.err
>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try
='test -z "$ac_cxx_werror_flag"
4945 || test ! -s conftest.err'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
4951 { ac_try
='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_prog_cxx_g
=yes
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.
$ac_ext >&5
4964 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4966 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4967 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4968 if test "$ac_test_CXXFLAGS" = set; then
4969 CXXFLAGS
=$ac_save_CXXFLAGS
4970 elif test $ac_cv_prog_cxx_g = yes; then
4971 if test "$GXX" = yes; then
4977 if test "$GXX" = yes; then
4983 for ac_declaration
in \
4985 'extern "C" void std::exit (int) throw (); using std::exit;' \
4986 'extern "C" void std::exit (int); using std::exit;' \
4987 'extern "C" void exit (int) throw ();' \
4988 'extern "C" void exit (int);' \
4991 cat >conftest.
$ac_ext <<_ACEOF
4994 cat confdefs.h
>>conftest.
$ac_ext
4995 cat >>conftest.
$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
5007 rm -f conftest.
$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5011 grep -v '^ *+' conftest.er1
>conftest.err
5013 cat conftest.err
>&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try
='test -z "$ac_cxx_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try
='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.
$ac_ext >&5
5036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5037 cat >conftest.
$ac_ext <<_ACEOF
5040 cat confdefs.h
>>conftest.
$ac_ext
5041 cat >>conftest.
$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5052 rm -f conftest.
$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>conftest.er1
5056 grep -v '^ *+' conftest.er1
>conftest.err
5058 cat conftest.err
>&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try
='test -z "$ac_cxx_werror_flag"
5062 || test ! -s conftest.err'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try
='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.
$ac_ext >&5
5080 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5083 if test -n "$ac_declaration"; then
5084 echo '#ifdef __cplusplus' >>confdefs.h
5085 echo $ac_declaration >>confdefs.h
5086 echo '#endif' >>confdefs.h
5090 ac_cpp
='$CXXCPP $CPPFLAGS'
5091 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5095 depcc
="$CXX" am_compiler_list
=
5097 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5098 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5099 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5103 # We make a subdir and do the tests there. Otherwise we can end up
5104 # making bogus files that we don't know about and never remove. For
5105 # instance it was reported that on HP-UX the gcc test will end up
5106 # making a dummy file named `D' -- because `-MD' means `put the output
5109 # Copy depcomp to subdir because otherwise we won't find it if we're
5110 # using a relative directory.
5111 cp "$am_depcomp" conftest.dir
5113 # We will build objects and dependencies in a subdirectory because
5114 # it helps to detect inapplicable dependency modes. For instance
5115 # both Tru64's cc and ICC support -MD to output dependencies as a
5116 # side effect of compilation, but ICC will put the dependencies in
5117 # the current directory while Tru64 will put them in the object
5121 am_cv_CXX_dependencies_compiler_type
=none
5122 if test "$am_compiler_list" = ""; then
5123 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5125 for depmode
in $am_compiler_list; do
5126 # Setup a source with many dependencies, because some compilers
5127 # like to wrap large dependency lists on column 80 (with \), and
5128 # we should not choose a depcomp mode which is confused by this.
5130 # We need to recreate these files for each test, as the compiler may
5131 # overwrite some of them when testing with obscure command lines.
5132 # This happens at least with the AIX C compiler.
5134 for i
in 1 2 3 4 5 6; do
5135 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5136 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5137 # Solaris 8's {/usr,}/bin/sh.
5138 touch sub
/conftst
$i.h
5140 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5144 # after this tag, mechanisms are not by side-effect, so they'll
5145 # only be used when explicitly requested
5146 if test "x$enable_dependency_tracking" = xyes
; then
5154 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5155 # mode. It turns out that the SunPro C++ compiler does not properly
5156 # handle `-M -o', and we need to detect this.
5157 if depmode
=$depmode \
5158 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5159 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5160 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5161 >/dev
/null
2>conftest.err
&&
5162 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5163 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5164 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5165 # icc doesn't choke on unknown options, it will just issue warnings
5166 # or remarks (even with -Werror). So we grep stderr for any message
5167 # that says an option was ignored or not supported.
5168 # When given -MP, icc 7.0 and 7.1 complain thusly:
5169 # icc: Command line warning: ignoring option '-M'; no argument required
5170 # The diagnosis changed in icc 8.0:
5171 # icc: Command line remark: option '-MP' not supported
5172 if (grep 'ignoring option' conftest.err ||
5173 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5174 am_cv_CXX_dependencies_compiler_type
=$depmode
5183 am_cv_CXX_dependencies_compiler_type
=none
5187 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5188 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5189 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5194 test "x$enable_dependency_tracking" != xno \
5195 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5196 am__fastdepCXX_TRUE
=
5197 am__fastdepCXX_FALSE
='#'
5199 am__fastdepCXX_TRUE
='#'
5200 am__fastdepCXX_FALSE
=
5206 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5207 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5208 (test "X$CXX" != "Xg++"))) ; then
5210 ac_cpp
='$CXXCPP $CPPFLAGS'
5211 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5214 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5215 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5216 if test -z "$CXXCPP"; then
5217 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 # Double quotes because CXXCPP needs to be expanded
5221 for CXXCPP
in "$CXX -E" "/lib/cpp"
5224 for ac_cxx_preproc_warn_flag
in '' yes
5226 # Use a header file that comes with gcc, so configuring glibc
5227 # with a fresh cross-compiler works.
5228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5229 # <limits.h> exists even on freestanding compilers.
5230 # On the NeXT, cc -E runs the code through the compiler's parser,
5231 # not just through cpp. "Syntax error" is here to catch this case.
5232 cat >conftest.
$ac_ext <<_ACEOF
5235 cat confdefs.h
>>conftest.
$ac_ext
5236 cat >>conftest.
$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5239 # include <limits.h>
5241 # include <assert.h>
5245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5246 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5248 grep -v '^ *+' conftest.er1
>conftest.err
5250 cat conftest.err
>&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } >/dev
/null
; then
5253 if test -s conftest.err
; then
5254 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5255 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5262 if test -z "$ac_cpp_err"; then
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.
$ac_ext >&5
5268 # Broken: fails on valid input.
5271 rm -f conftest.err conftest.
$ac_ext
5273 # OK, works on sane cases. Now check whether non-existent headers
5274 # can be detected and how.
5275 cat >conftest.
$ac_ext <<_ACEOF
5278 cat confdefs.h
>>conftest.
$ac_ext
5279 cat >>conftest.
$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #include <ac_nonexistent.h>
5283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5284 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5286 grep -v '^ *+' conftest.er1
>conftest.err
5288 cat conftest.err
>&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } >/dev
/null
; then
5291 if test -s conftest.err
; then
5292 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5293 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5300 if test -z "$ac_cpp_err"; then
5301 # Broken: success on invalid input.
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.
$ac_ext >&5
5307 # Passes both tests.
5311 rm -f conftest.err conftest.
$ac_ext
5314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5315 rm -f conftest.err conftest.
$ac_ext
5316 if $ac_preproc_ok; then
5321 ac_cv_prog_CXXCPP
=$CXXCPP
5324 CXXCPP
=$ac_cv_prog_CXXCPP
5326 ac_cv_prog_CXXCPP
=$CXXCPP
5328 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5329 echo "${ECHO_T}$CXXCPP" >&6
5331 for ac_cxx_preproc_warn_flag
in '' yes
5333 # Use a header file that comes with gcc, so configuring glibc
5334 # with a fresh cross-compiler works.
5335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5336 # <limits.h> exists even on freestanding compilers.
5337 # On the NeXT, cc -E runs the code through the compiler's parser,
5338 # not just through cpp. "Syntax error" is here to catch this case.
5339 cat >conftest.
$ac_ext <<_ACEOF
5342 cat confdefs.h
>>conftest.
$ac_ext
5343 cat >>conftest.
$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5346 # include <limits.h>
5348 # include <assert.h>
5352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5353 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5355 grep -v '^ *+' conftest.er1
>conftest.err
5357 cat conftest.err
>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } >/dev
/null
; then
5360 if test -s conftest.err
; then
5361 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5362 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5369 if test -z "$ac_cpp_err"; then
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.
$ac_ext >&5
5375 # Broken: fails on valid input.
5378 rm -f conftest.err conftest.
$ac_ext
5380 # OK, works on sane cases. Now check whether non-existent headers
5381 # can be detected and how.
5382 cat >conftest.
$ac_ext <<_ACEOF
5385 cat confdefs.h
>>conftest.
$ac_ext
5386 cat >>conftest.
$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 #include <ac_nonexistent.h>
5390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5391 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5393 grep -v '^ *+' conftest.er1
>conftest.err
5395 cat conftest.err
>&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } >/dev
/null
; then
5398 if test -s conftest.err
; then
5399 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5400 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5407 if test -z "$ac_cpp_err"; then
5408 # Broken: success on invalid input.
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.
$ac_ext >&5
5414 # Passes both tests.
5418 rm -f conftest.err conftest.
$ac_ext
5421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5422 rm -f conftest.err conftest.
$ac_ext
5423 if $ac_preproc_ok; then
5426 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5427 See \`config.log' for more details." >&5
5428 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5429 See \`config.log' for more details." >&2;}
5430 { (exit 1); exit 1; }; }
5434 ac_cpp
='$CXXCPP $CPPFLAGS'
5435 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5443 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5444 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5446 if test -n "$ac_tool_prefix"; then
5447 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5450 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5451 echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5453 if test "${ac_cv_prog_F77+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 if test -n "$F77"; then
5457 ac_cv_prog_F77
="$F77" # Let the user override the test.
5459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5463 test -z "$as_dir" && as_dir
=.
5464 for ac_exec_ext
in '' $ac_executable_extensions; do
5465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 if test -n "$F77"; then
5477 echo "$as_me:$LINENO: result: $F77" >&5
5478 echo "${ECHO_T}$F77" >&6
5480 echo "$as_me:$LINENO: result: no" >&5
5481 echo "${ECHO_T}no" >&6
5484 test -n "$F77" && break
5487 if test -z "$F77"; then
5489 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5491 # Extract the first word of "$ac_prog", so it can be a program name with args.
5492 set dummy
$ac_prog; ac_word
=$2
5493 echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5495 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 if test -n "$ac_ct_F77"; then
5499 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5505 test -z "$as_dir" && as_dir
=.
5506 for ac_exec_ext
in '' $ac_executable_extensions; do
5507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_ac_ct_F77
="$ac_prog"
5509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5518 if test -n "$ac_ct_F77"; then
5519 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5520 echo "${ECHO_T}$ac_ct_F77" >&6
5522 echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6
5526 test -n "$ac_ct_F77" && break
5533 # Provide some information about the compiler.
5534 echo "$as_me:5534:" \
5535 "checking for Fortran 77 compiler version" >&5
5536 ac_compiler
=`set X $ac_compile; echo $2`
5537 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5538 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }
5542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5543 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }
5547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5548 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }
5554 # If we don't use `.F' as extension, the preprocessor is not run on the
5555 # input file. (Note that this only needs to work for GNU compilers.)
5558 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5559 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5560 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 cat >conftest.
$ac_ext <<_ACEOF
5571 rm -f conftest.
$ac_objext
5572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573 (eval $ac_compile) 2>conftest.er1
5575 grep -v '^ *+' conftest.er1
>conftest.err
5577 cat conftest.err
>&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try
='test -z "$ac_f77_werror_flag"
5581 || test ! -s conftest.err'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; } &&
5587 { ac_try
='test -s conftest.$ac_objext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.
$ac_ext >&5
5600 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5601 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
5604 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5605 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5607 ac_test_FFLAGS
=${FFLAGS+set}
5608 ac_save_FFLAGS
=$FFLAGS
5610 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5611 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5612 if test "${ac_cv_prog_f77_g+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 cat >conftest.
$ac_ext <<_ACEOF
5621 rm -f conftest.
$ac_objext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5623 (eval $ac_compile) 2>conftest.er1
5625 grep -v '^ *+' conftest.er1
>conftest.err
5627 cat conftest.err
>&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } &&
5630 { ac_try
='test -z "$ac_f77_werror_flag"
5631 || test ! -s conftest.err'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; } &&
5637 { ac_try
='test -s conftest.$ac_objext'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5643 ac_cv_prog_f77_g
=yes
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.
$ac_ext >&5
5650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5654 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5655 if test "$ac_test_FFLAGS" = set; then
5656 FFLAGS
=$ac_save_FFLAGS
5657 elif test $ac_cv_prog_f77_g = yes; then
5658 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5664 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5671 G77
=`test $ac_compiler_gnu = yes && echo yes`
5673 ac_cpp
='$CPP $CPPFLAGS'
5674 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5680 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5682 # find the maximum length of command line arguments
5683 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5684 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5685 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 # On DJGPP, this test can blow up pretty badly due to problems in libc
5694 # (any single argument exceeding 2000 bytes causes a buffer overrun
5695 # during glob expansion). Even if it were fixed, the result of this
5696 # check would be larger than it should be.
5697 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5701 # Under GNU Hurd, this test is not required because there is
5702 # no limit to the length of command line arguments.
5703 # Libtool will interpret -1 as no limit whatsoever
5704 lt_cv_sys_max_cmd_len
=-1;
5708 # On Win9x/ME, this test blows up -- it succeeds, but takes
5709 # about 5 minutes as the teststring grows exponentially.
5710 # Worse, since 9x/ME are not pre-emptively multitasking,
5711 # you end up with a "frozen" computer, even though with patience
5712 # the test eventually succeeds (with a max line length of 256k).
5713 # Instead, let's just punt: use the minimum linelength reported by
5714 # all of the supported platforms: 8192 (on NT/2K/XP).
5715 lt_cv_sys_max_cmd_len
=8192;
5719 # On AmigaOS with pdksh, this test takes hours, literally.
5720 # So we just punt and use a minimum line length of 8192.
5721 lt_cv_sys_max_cmd_len
=8192;
5724 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5725 # This has been around since 386BSD, at least. Likely further.
5726 if test -x /sbin
/sysctl
; then
5727 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5728 elif test -x /usr
/sbin
/sysctl
; then
5729 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5731 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5733 # And add a safety zone
5734 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5735 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5739 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5740 lt_cv_sys_max_cmd_len
=196608
5744 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5745 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5746 # nice to cause kernel panics so lets avoid the loop below.
5747 # First set a reasonable default.
5748 lt_cv_sys_max_cmd_len
=16384
5750 if test -x /sbin
/sysconfig
; then
5751 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5752 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5757 lt_cv_sys_max_cmd_len
=102400
5759 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5760 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5761 if test -n "$kargmax"; then
5762 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5764 lt_cv_sys_max_cmd_len
=32768
5768 # If test is not a shell built-in, we'll probably end up computing a
5769 # maximum length that is only half of the actual maximum length, but
5771 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5772 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5773 = "XX$teststring") >/dev
/null
2>&1 &&
5774 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
5775 lt_cv_sys_max_cmd_len
=$new_result &&
5776 test $i != 17 # 1/2 MB should be enough
5779 teststring
=$teststring$teststring
5782 # Add a significant safety factor because C++ compilers can tack on massive
5783 # amounts of additional arguments before passing them to the linker.
5784 # It appears as though 1/2 is a usable value.
5785 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5791 if test -n $lt_cv_sys_max_cmd_len ; then
5792 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5793 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5795 echo "$as_me:$LINENO: result: none" >&5
5796 echo "${ECHO_T}none" >&6
5802 # Check for command to grab the raw symbol name followed by C symbol from nm.
5803 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5804 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5805 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 # These are sane defaults that work on at least a few old systems.
5810 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5812 # Character class describing NM global symbol codes.
5813 symcode
='[BCDEGRST]'
5815 # Regexp to match symbols that can be accessed directly from C.
5816 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5818 # Transform an extracted symbol line into a proper C declaration
5819 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5821 # Transform an extracted symbol line into symbol name and symbol address
5822 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'"
5824 # Define system-specific variables.
5829 cygwin
* | mingw
* | pw32
*)
5830 symcode
='[ABCDGISTW]'
5832 hpux
*) # Its linker distinguishes data from code symbols
5833 if test "$host_cpu" = ia64
; then
5834 symcode
='[ABCDEGRST]'
5836 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5837 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'"
5840 if test "$host_cpu" = ia64
; then
5841 symcode
='[ABCDGIRSTW]'
5842 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5843 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'"
5847 symcode
='[BCDEGRST]'
5850 symcode
='[BCDEGQRST]'
5861 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
5869 # Handle CRLF in mingw tool chain
5873 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5877 # If we're using GNU nm, then use its standard symbol codes.
5878 case `$NM -V 2>&1` in
5879 *GNU
* |
*'with BFD'*)
5880 symcode
='[ABCDGIRSTW]' ;;
5883 # Try without a prefix undercore, then with it.
5884 for ac_symprfx
in "" "_"; do
5886 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5887 symxfrm
="\\1 $ac_symprfx\\2 \\2"
5889 # Write the raw and C identifiers.
5890 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5892 # Check to see that the pipe works correctly.
5896 cat > conftest.
$ac_ext <<EOF
5901 void nm_test_func(){}
5905 int main(){nm_test_var='a';nm_test_func();return(0);}
5908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909 (eval $ac_compile) 2>&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; then
5913 # Now try to grab the symbols.
5915 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5916 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && test -s "$nlist"; then
5920 # Try sorting and uniquifying the output.
5921 if sort "$nlist" |
uniq > "$nlist"T
; then
5922 mv -f "$nlist"T
"$nlist"
5927 # Make sure that we snagged all the symbols we need.
5928 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5929 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5930 cat <<EOF > conftest.$ac_ext
5936 # Now generate the symbol file.
5937 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5939 cat <<EOF >> conftest.$ac_ext
5940 #if defined (__STDC__) && __STDC__
5941 # define lt_ptr_t void *
5943 # define lt_ptr_t char *
5947 /* The mapping between symbol names and symbols. */
5952 lt_preloaded_symbols[] =
5955 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5956 cat <<\EOF
>> conftest.
$ac_ext
5964 # Now try linking the two files.
5965 mv conftest.
$ac_objext conftstm.
$ac_objext
5966 lt_save_LIBS
="$LIBS"
5967 lt_save_CFLAGS
="$CFLAGS"
5968 LIBS
="conftstm.$ac_objext"
5969 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5971 (eval $ac_link) 2>&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5977 LIBS
="$lt_save_LIBS"
5978 CFLAGS
="$lt_save_CFLAGS"
5980 echo "cannot find nm_test_func in $nlist" >&5
5983 echo "cannot find nm_test_var in $nlist" >&5
5986 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5989 echo "$progname: failed program was:" >&5
5990 cat conftest.
$ac_ext >&5
5992 rm -f conftest
* conftst
*
5994 # Do not use the global_symbol_pipe unless it works.
5995 if test "$pipe_works" = yes; then
5998 lt_cv_sys_global_symbol_pipe
=
6004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6005 lt_cv_sys_global_symbol_to_cdecl
=
6007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6008 echo "$as_me:$LINENO: result: failed" >&5
6009 echo "${ECHO_T}failed" >&6
6011 echo "$as_me:$LINENO: result: ok" >&5
6012 echo "${ECHO_T}ok" >&6
6015 echo "$as_me:$LINENO: checking for objdir" >&5
6016 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6017 if test "${lt_cv_objdir+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 rm -f .libs
2>/dev
/null
6021 mkdir .libs
2>/dev
/null
6022 if test -d .libs
; then
6025 # MS-DOS does not allow filenames that begin with a dot.
6028 rmdir .libs
2>/dev
/null
6030 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6031 echo "${ECHO_T}$lt_cv_objdir" >&6
6032 objdir
=$lt_cv_objdir
6040 # AIX sometimes has problems with the GCC collect2 program. For some
6041 # reason, if we set the COLLECT_NAMES environment variable, the problems
6042 # vanish in a puff of smoke.
6043 if test "X${COLLECT_NAMES+set}" != Xset
; then
6045 export COLLECT_NAMES
6050 # Sed substitution that helps us do robust quoting. It backslashifies
6051 # metacharacters that are still active within double-quoted strings.
6052 Xsed
='sed -e 1s/^X//'
6053 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6055 # Same as above, but do not quote variable references.
6056 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6058 # Sed substitution to delay expansion of an escaped shell variable in a
6059 # double_quote_subst'ed string.
6060 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6062 # Sed substitution to avoid accidental globbing in evaled expressions
6063 no_glob_subst
='s/\*/\\\*/g'
6069 default_ofile
=libtool
6070 can_build_shared
=yes
6072 # All known linkers require a `.a' archive for static linking (except MSVC,
6073 # which needs '.lib').
6075 ltmain
="$ac_aux_dir/ltmain.sh"
6076 ofile
="$default_ofile"
6077 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6079 if test -n "$ac_tool_prefix"; then
6080 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6081 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6082 echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6084 if test "${ac_cv_prog_AR+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 if test -n "$AR"; then
6088 ac_cv_prog_AR
="$AR" # Let the user override the test.
6090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6094 test -z "$as_dir" && as_dir
=.
6095 for ac_exec_ext
in '' $ac_executable_extensions; do
6096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 if test -n "$AR"; then
6108 echo "$as_me:$LINENO: result: $AR" >&5
6109 echo "${ECHO_T}$AR" >&6
6111 echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6
6116 if test -z "$ac_cv_prog_AR"; then
6118 # Extract the first word of "ar", so it can be a program name with args.
6119 set dummy
ar; ac_word
=$2
6120 echo "$as_me:$LINENO: checking for $ac_word" >&5
6121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 if test -n "$ac_ct_AR"; then
6126 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir
=.
6133 for ac_exec_ext
in '' $ac_executable_extensions; do
6134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_ac_ct_AR
="ar"
6136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR
="false"
6145 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6146 if test -n "$ac_ct_AR"; then
6147 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6148 echo "${ECHO_T}$ac_ct_AR" >&6
6150 echo "$as_me:$LINENO: result: no" >&5
6151 echo "${ECHO_T}no" >&6
6159 if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6161 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6162 echo "$as_me:$LINENO: checking for $ac_word" >&5
6163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6164 if test "${ac_cv_prog_RANLIB+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 if test -n "$RANLIB"; then
6168 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6174 test -z "$as_dir" && as_dir
=.
6175 for ac_exec_ext
in '' $ac_executable_extensions; do
6176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6177 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 RANLIB
=$ac_cv_prog_RANLIB
6187 if test -n "$RANLIB"; then
6188 echo "$as_me:$LINENO: result: $RANLIB" >&5
6189 echo "${ECHO_T}$RANLIB" >&6
6191 echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6
6196 if test -z "$ac_cv_prog_RANLIB"; then
6197 ac_ct_RANLIB
=$RANLIB
6198 # Extract the first word of "ranlib", so it can be a program name with args.
6199 set dummy ranlib
; ac_word
=$2
6200 echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6202 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 if test -n "$ac_ct_RANLIB"; then
6206 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6212 test -z "$as_dir" && as_dir
=.
6213 for ac_exec_ext
in '' $ac_executable_extensions; do
6214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6225 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6226 if test -n "$ac_ct_RANLIB"; then
6227 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6228 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6230 echo "$as_me:$LINENO: result: no" >&5
6231 echo "${ECHO_T}no" >&6
6234 RANLIB
=$ac_ct_RANLIB
6236 RANLIB
="$ac_cv_prog_RANLIB"
6239 if test -n "$ac_tool_prefix"; then
6240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6241 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6242 echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6244 if test "${ac_cv_prog_STRIP+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 if test -n "$STRIP"; then
6248 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir
=.
6255 for ac_exec_ext
in '' $ac_executable_extensions; do
6256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6257 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 STRIP
=$ac_cv_prog_STRIP
6267 if test -n "$STRIP"; then
6268 echo "$as_me:$LINENO: result: $STRIP" >&5
6269 echo "${ECHO_T}$STRIP" >&6
6271 echo "$as_me:$LINENO: result: no" >&5
6272 echo "${ECHO_T}no" >&6
6276 if test -z "$ac_cv_prog_STRIP"; then
6278 # Extract the first word of "strip", so it can be a program name with args.
6279 set dummy strip
; ac_word
=$2
6280 echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6282 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 if test -n "$ac_ct_STRIP"; then
6286 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir
=.
6293 for ac_exec_ext
in '' $ac_executable_extensions; do
6294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295 ac_cv_prog_ac_ct_STRIP
="strip"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
6305 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6306 if test -n "$ac_ct_STRIP"; then
6307 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6308 echo "${ECHO_T}$ac_ct_STRIP" >&6
6310 echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6
6316 STRIP
="$ac_cv_prog_STRIP"
6321 old_CFLAGS
="$CFLAGS"
6323 # Set sane defaults for various variables
6324 test -z "$AR" && AR
=ar
6325 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6326 test -z "$AS" && AS
=as
6327 test -z "$CC" && CC
=cc
6328 test -z "$LTCC" && LTCC
=$CC
6329 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
6330 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6331 test -z "$LD" && LD
=ld
6332 test -z "$LN_S" && LN_S
="ln -s"
6333 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6334 test -z "$NM" && NM
=nm
6335 test -z "$SED" && SED
=sed
6336 test -z "$OBJDUMP" && OBJDUMP
=objdump
6337 test -z "$RANLIB" && RANLIB
=:
6338 test -z "$STRIP" && STRIP
=:
6339 test -z "$ac_objext" && ac_objext
=o
6341 # Determine commands to create old-style static archives.
6342 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6343 old_postinstall_cmds
='chmod 644 $oldlib'
6344 old_postuninstall_cmds
=
6346 if test -n "$RANLIB"; then
6349 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6352 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6355 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6358 for cc_temp
in $compiler""; do
6360 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6361 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
6366 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6369 # Only perform the check for file, if the check method requires it
6370 case $deplibs_check_method in
6372 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6373 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6374 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6375 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6383 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6384 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6385 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6386 for ac_dir
in $ac_dummy; do
6388 test -z "$ac_dir" && ac_dir
=.
6389 if test -f $ac_dir/${ac_tool_prefix}file; then
6390 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6391 if test -n "$file_magic_test_file"; then
6392 case $deplibs_check_method in
6394 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6395 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6396 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6397 $EGREP "$file_magic_regex" > /dev
/null
; then
6402 *** Warning: the command libtool uses to detect shared libraries,
6403 *** $file_magic_cmd, produces output that libtool cannot recognize.
6404 *** The result is that libtool may fail to recognize shared libraries
6405 *** as such. This will affect the creation of libtool libraries that
6406 *** depend on shared libraries, but programs linked with such libtool
6407 *** libraries will work regardless of this problem. Nevertheless, you
6408 *** may want to report the problem to your system manager and/or to
6409 *** bug-libtool@gnu.org
6419 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6424 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6425 if test -n "$MAGIC_CMD"; then
6426 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6427 echo "${ECHO_T}$MAGIC_CMD" >&6
6429 echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6
6433 if test -z "$lt_cv_path_MAGIC_CMD"; then
6434 if test -n "$ac_tool_prefix"; then
6435 echo "$as_me:$LINENO: checking for file" >&5
6436 echo $ECHO_N "checking for file... $ECHO_C" >&6
6437 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6445 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6446 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6447 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6448 for ac_dir
in $ac_dummy; do
6450 test -z "$ac_dir" && ac_dir
=.
6451 if test -f $ac_dir/file; then
6452 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6453 if test -n "$file_magic_test_file"; then
6454 case $deplibs_check_method in
6456 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6457 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6458 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6459 $EGREP "$file_magic_regex" > /dev
/null
; then
6464 *** Warning: the command libtool uses to detect shared libraries,
6465 *** $file_magic_cmd, produces output that libtool cannot recognize.
6466 *** The result is that libtool may fail to recognize shared libraries
6467 *** as such. This will affect the creation of libtool libraries that
6468 *** depend on shared libraries, but programs linked with such libtool
6469 *** libraries will work regardless of this problem. Nevertheless, you
6470 *** may want to report the problem to your system manager and/or to
6471 *** bug-libtool@gnu.org
6481 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6486 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6487 if test -n "$MAGIC_CMD"; then
6488 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6489 echo "${ECHO_T}$MAGIC_CMD" >&6
6491 echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6
6507 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6508 if test "${enable_libtool_lock+set}" = set; then
6509 enableval
="$enable_libtool_lock"
6512 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6515 # Check whether --with-pic or --without-pic was given.
6516 if test "${with_pic+set}" = set; then
6522 test -z "$pic_mode" && pic_mode
=default
6524 # Use C for the default configuration in the libtool script
6528 ac_cpp
='$CPP $CPPFLAGS'
6529 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6534 # Source file extension for C test sources.
6537 # Object file extension for compiled C test sources.
6541 # Code to be used in simple compile tests
6542 lt_simple_compile_test_code
="int some_variable = 0;\n"
6544 # Code to be used in simple link tests
6545 lt_simple_link_test_code
='int main(){return(0);}\n'
6548 # If no C compiler was specified, use CC.
6551 # If no C compiler flags were specified, use CFLAGS.
6552 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6554 # Allow CC to be a program name with arguments.
6558 # save warnings/boilerplate of simple test code
6559 ac_outfile
=conftest.
$ac_objext
6560 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
6561 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
6562 _lt_compiler_boilerplate
=`cat conftest.err`
6565 ac_outfile
=conftest.
$ac_objext
6566 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
6567 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
6568 _lt_linker_boilerplate
=`cat conftest.err`
6573 lt_prog_compiler_no_builtin_flag
=
6575 if test "$GCC" = yes; then
6576 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6579 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6580 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6581 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 lt_cv_prog_compiler_rtti_exceptions
=no
6585 ac_outfile
=conftest.
$ac_objext
6586 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6587 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6588 # Insert the option either (1) after the last *FLAGS variable, or
6589 # (2) before a word containing "conftest.", or (3) at the end.
6590 # Note that $ac_compile itself does not contain backslashes and begins
6591 # with a dollar sign (not a hyphen), so the echo should work correctly.
6592 # The option is referenced via a variable to avoid confusing sed.
6593 lt_compile
=`echo "$ac_compile" | $SED \
6594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6596 -e 's:$: $lt_compiler_flag:'`
6597 (eval echo "\"\$as_me:6597: $lt_compile\"" >&5)
6598 (eval "$lt_compile" 2>conftest.err
)
6600 cat conftest.err
>&5
6601 echo "$as_me:6601: \$? = $ac_status" >&5
6602 if (exit $ac_status) && test -s "$ac_outfile"; then
6603 # The compiler can only warn and ignore the option if not recognized
6604 # So say no if there are warnings other than the usual output.
6605 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
6606 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6607 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
6608 lt_cv_prog_compiler_rtti_exceptions
=yes
6614 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6615 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6617 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6618 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6625 lt_prog_compiler_wl
=
6626 lt_prog_compiler_pic
=
6627 lt_prog_compiler_static
=
6629 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6630 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6632 if test "$GCC" = yes; then
6633 lt_prog_compiler_wl
='-Wl,'
6634 lt_prog_compiler_static
='-static'
6638 # All AIX code is PIC.
6639 if test "$host_cpu" = ia64
; then
6640 # AIX 5 now supports IA64 processor
6641 lt_prog_compiler_static
='-Bstatic'
6646 # FIXME: we need at least 68020 code to build shared libraries, but
6647 # adding the `-m68020' flag to GCC prevents building anything better,
6649 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6652 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6653 # PIC is the default for these OSes.
6656 mingw
* | pw32
* | os2
*)
6657 # This hack is so that the source file can tell whether it is being
6658 # built for inclusion in a dll (and should export symbols for example).
6659 lt_prog_compiler_pic
='-DDLL_EXPORT'
6662 darwin
* | rhapsody
*)
6663 # PIC is the default on this platform
6664 # Common symbols not allowed in MH_DYLIB files
6665 lt_prog_compiler_pic
='-fno-common'
6669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6670 # Instead, we relocate shared libraries at runtime.
6674 # Just because we use GCC doesn't mean we suddenly get shared libraries
6675 # on systems that don't support them.
6676 lt_prog_compiler_can_build_shared
=no
6681 if test -d /usr
/nec
; then
6682 lt_prog_compiler_pic
=-Kconform_pic
6687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6694 lt_prog_compiler_pic
='-fPIC'
6700 lt_prog_compiler_pic
='-fPIC'
6704 # PORTME Check for flag to pass linker flags through the system compiler.
6707 lt_prog_compiler_wl
='-Wl,'
6708 if test "$host_cpu" = ia64
; then
6709 # AIX 5 now supports IA64 processor
6710 lt_prog_compiler_static
='-Bstatic'
6712 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6716 # PIC is the default on this platform
6717 # Common symbols not allowed in MH_DYLIB files
6718 case $cc_basename in
6720 lt_prog_compiler_pic
='-qnocommon'
6721 lt_prog_compiler_wl
='-Wl,'
6726 mingw
* | pw32
* | os2
*)
6727 # This hack is so that the source file can tell whether it is being
6728 # built for inclusion in a dll (and should export symbols for example).
6729 lt_prog_compiler_pic
='-DDLL_EXPORT'
6732 hpux9
* | hpux10
* | hpux11
*)
6733 lt_prog_compiler_wl
='-Wl,'
6734 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6741 lt_prog_compiler_pic
='+Z'
6744 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6745 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6748 irix5
* | irix6
* | nonstopux
*)
6749 lt_prog_compiler_wl
='-Wl,'
6750 # PIC (with -KPIC) is the default.
6751 lt_prog_compiler_static
='-non_shared'
6755 lt_prog_compiler_pic
='-KPIC'
6756 lt_prog_compiler_static
='-Bstatic'
6760 case $cc_basename in
6762 lt_prog_compiler_wl
='-Wl,'
6763 lt_prog_compiler_pic
='-KPIC'
6764 lt_prog_compiler_static
='-static'
6766 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
6767 # Portland Group compilers (*not* the Pentium gcc compiler,
6768 # which looks to be a dead project)
6769 lt_prog_compiler_wl
='-Wl,'
6770 lt_prog_compiler_pic
='-fpic'
6771 lt_prog_compiler_static
='-Bstatic'
6774 lt_prog_compiler_wl
='-Wl,'
6775 # All Alpha code is PIC.
6776 lt_prog_compiler_static
='-non_shared'
6781 osf3
* | osf4
* | osf5
*)
6782 lt_prog_compiler_wl
='-Wl,'
6783 # All OSF/1 code is PIC.
6784 lt_prog_compiler_static
='-non_shared'
6788 lt_prog_compiler_pic
='-KPIC'
6789 lt_prog_compiler_static
='-Bstatic'
6790 case $cc_basename in
6792 lt_prog_compiler_wl
='-Qoption ld ';;
6794 lt_prog_compiler_wl
='-Wl,';;
6799 lt_prog_compiler_wl
='-Qoption ld '
6800 lt_prog_compiler_pic
='-PIC'
6801 lt_prog_compiler_static
='-Bstatic'
6804 sysv4 | sysv4.2uw2
* | sysv4.3
*)
6805 lt_prog_compiler_wl
='-Wl,'
6806 lt_prog_compiler_pic
='-KPIC'
6807 lt_prog_compiler_static
='-Bstatic'
6811 if test -d /usr
/nec
;then
6812 lt_prog_compiler_pic
='-Kconform_pic'
6813 lt_prog_compiler_static
='-Bstatic'
6817 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
6818 lt_prog_compiler_wl
='-Wl,'
6819 lt_prog_compiler_pic
='-KPIC'
6820 lt_prog_compiler_static
='-Bstatic'
6824 lt_prog_compiler_wl
='-Wl,'
6825 lt_prog_compiler_can_build_shared
=no
6829 lt_prog_compiler_pic
='-pic'
6830 lt_prog_compiler_static
='-Bstatic'
6834 lt_prog_compiler_can_build_shared
=no
6839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6840 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6843 # Check to make sure the PIC flag actually works.
6845 if test -n "$lt_prog_compiler_pic"; then
6847 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6848 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6849 if test "${lt_prog_compiler_pic_works+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 lt_prog_compiler_pic_works
=no
6853 ac_outfile
=conftest.
$ac_objext
6854 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6855 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6856 # Insert the option either (1) after the last *FLAGS variable, or
6857 # (2) before a word containing "conftest.", or (3) at the end.
6858 # Note that $ac_compile itself does not contain backslashes and begins
6859 # with a dollar sign (not a hyphen), so the echo should work correctly.
6860 # The option is referenced via a variable to avoid confusing sed.
6861 lt_compile
=`echo "$ac_compile" | $SED \
6862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6864 -e 's:$: $lt_compiler_flag:'`
6865 (eval echo "\"\$as_me:6865: $lt_compile\"" >&5)
6866 (eval "$lt_compile" 2>conftest.err
)
6868 cat conftest.err
>&5
6869 echo "$as_me:6869: \$? = $ac_status" >&5
6870 if (exit $ac_status) && test -s "$ac_outfile"; then
6871 # The compiler can only warn and ignore the option if not recognized
6872 # So say no if there are warnings other than the usual output.
6873 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
6874 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6875 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
6876 lt_prog_compiler_pic_works
=yes
6882 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6883 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6885 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6886 case $lt_prog_compiler_pic in
6888 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6891 lt_prog_compiler_pic
=
6892 lt_prog_compiler_can_build_shared
=no
6897 # For platforms which do not support PIC, -DPIC is meaningless:
6899 lt_prog_compiler_pic
=
6902 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6907 # Check to make sure the static flag actually works.
6909 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
6910 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6911 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6912 if test "${lt_prog_compiler_static_works+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 lt_prog_compiler_static_works
=no
6916 save_LDFLAGS
="$LDFLAGS"
6917 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
6918 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6919 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6920 # The linker can only warn and ignore the option if not recognized
6921 # So say no if there are warnings
6922 if test -s conftest.err
; then
6923 # Append any errors to the config.log.
6924 cat conftest.err
1>&5
6925 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
6926 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6927 if diff conftest.exp conftest.er2
>/dev
/null
; then
6928 lt_prog_compiler_static_works
=yes
6931 lt_prog_compiler_static_works
=yes
6935 LDFLAGS
="$save_LDFLAGS"
6938 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6939 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6941 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6944 lt_prog_compiler_static
=
6948 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6949 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6950 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 lt_cv_prog_compiler_c_o
=no
6954 $rm -r conftest
2>/dev
/null
6958 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6960 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6961 # Insert the option either (1) after the last *FLAGS variable, or
6962 # (2) before a word containing "conftest.", or (3) at the end.
6963 # Note that $ac_compile itself does not contain backslashes and begins
6964 # with a dollar sign (not a hyphen), so the echo should work correctly.
6965 lt_compile
=`echo "$ac_compile" | $SED \
6966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6968 -e 's:$: $lt_compiler_flag:'`
6969 (eval echo "\"\$as_me:6969: $lt_compile\"" >&5)
6970 (eval "$lt_compile" 2>out
/conftest.err
)
6972 cat out
/conftest.err
>&5
6973 echo "$as_me:6973: \$? = $ac_status" >&5
6974 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6976 # The compiler can only warn and ignore the option if not recognized
6977 # So say no if there are warnings
6978 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
6979 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
6980 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
6981 lt_cv_prog_compiler_c_o
=yes
6986 # SGI C++ compiler will create directory out/ii_files/ for
6987 # template instantiation
6988 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
6989 $rm out
/* && rmdir out
6995 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6996 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6999 hard_links
="nottested"
7000 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7001 # do not overwrite the value of need_locks provided by the user
7002 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7003 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7006 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7008 ln conftest.a conftest.b
2>&5 || hard_links
=no
7009 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7010 echo "$as_me:$LINENO: result: $hard_links" >&5
7011 echo "${ECHO_T}$hard_links" >&6
7012 if test "$hard_links" = no
; then
7013 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7014 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7021 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7022 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7025 allow_undefined_flag
=
7026 enable_shared_with_static_runtimes
=no
7028 archive_expsym_cmds
=
7029 old_archive_From_new_cmds
=
7030 old_archive_from_expsyms_cmds
=
7031 export_dynamic_flag_spec
=
7032 whole_archive_flag_spec
=
7033 thread_safe_flag_spec
=
7034 hardcode_libdir_flag_spec
=
7035 hardcode_libdir_flag_spec_ld
=
7036 hardcode_libdir_separator
=
7039 hardcode_shlibpath_var
=unsupported
7040 link_all_deplibs
=unknown
7041 hardcode_automatic
=no
7044 always_export_symbols
=no
7045 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7046 # include_expsyms should be a list of space-separated symbols to be *always*
7047 # included in the symbol list
7049 # exclude_expsyms can be an extended regexp of symbols to exclude
7050 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7051 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7052 # as well as any symbol that contains `d'.
7053 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7054 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7055 # platforms (ab)use it in PIC code, but their linkers get confused if
7056 # the symbol is explicitly referenced. Since portable code cannot
7057 # rely on this symbol name, it's probably fine to never include it in
7058 # preloaded symbol tables.
7059 extract_expsyms_cmds
=
7060 # Just being paranoid about ensuring that cc_basename is set.
7061 for cc_temp
in $compiler""; do
7063 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7064 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7069 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7072 cygwin
* | mingw
* | pw32
*)
7073 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7074 # When not using gcc, we currently assume that we are using
7075 # Microsoft Visual C++.
7076 if test "$GCC" != yes; then
7081 # we just hope/assume this is gcc and not c89 (= MSVC++)
7090 if test "$with_gnu_ld" = yes; then
7091 # If archive_cmds runs LD, not CC, wlarc should be empty
7094 # Set some defaults for GNU ld with shared library support. These
7095 # are reset later if shared libraries are not supported. Putting them
7096 # here allows them to be overridden if necessary.
7097 runpath_var
=LD_RUN_PATH
7098 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7099 export_dynamic_flag_spec
='${wl}--export-dynamic'
7100 # ancient GNU ld didn't support --whole-archive et. al.
7101 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7102 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7104 whole_archive_flag_spec
=
7106 supports_anon_versioning
=no
7107 case `$LD -v 2>/dev/null` in
7108 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7109 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7110 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7111 *\
2.11.
*) ;; # other 2.11 versions
7112 *) supports_anon_versioning
=yes ;;
7115 # See if GNU ld supports shared libraries.
7117 aix3
* | aix4
* | aix5
*)
7118 # On AIX/PPC, the GNU linker is very broken
7119 if test "$host_cpu" != ia64
; then
7123 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7124 *** to be unable to reliably create shared libraries on AIX.
7125 *** Therefore, libtool is disabling shared libraries support. If you
7126 *** really care for shared libraries, you may want to modify your PATH
7127 *** so that a non-GNU linker is found, and then restart.
7134 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)'
7135 hardcode_libdir_flag_spec
='-L$libdir'
7136 hardcode_minus_L
=yes
7138 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7139 # that the semantics of dynamic libraries on AmigaOS, at least up
7140 # to version 4, is to share data among multiple programs linked
7141 # with the same dynamic library. Since this doesn't match the
7142 # behavior of shared libraries on other platforms, we can't use
7148 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7149 allow_undefined_flag
=unsupported
7150 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7151 # support --undefined. This deserves some investigation. FIXME
7152 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7158 cygwin
* | mingw
* | pw32
*)
7159 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7160 # as there is no search path for DLLs.
7161 hardcode_libdir_flag_spec
='-L$libdir'
7162 allow_undefined_flag
=unsupported
7163 always_export_symbols
=no
7164 enable_shared_with_static_runtimes
=yes
7165 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7167 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7168 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7169 # If the export-symbols file already is a .def file (1st line
7170 # is EXPORTS), use it as is; otherwise, prepend...
7171 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7172 cp $export_symbols $output_objdir/$soname.def;
7174 echo EXPORTS > $output_objdir/$soname.def;
7175 cat $export_symbols >> $output_objdir/$soname.def;
7177 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7185 hardcode_shlibpath_var
=no
7186 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7187 export_dynamic_flag_spec
='${wl}-E'
7188 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7189 # Instead, shared libraries are loaded at an image base (0x10000000 by
7190 # default) and relocated if they conflict, which is a slow very memory
7191 # consuming and fragmenting process. To avoid this, we pick a random,
7192 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7193 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7194 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7195 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7199 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7201 case $cc_basename,$host_cpu in
7202 pgcc
*) # Portland Group C compiler
7203 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7204 tmp_addflag
=' $pic_flag'
7206 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7207 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7208 tmp_addflag
=' $pic_flag -Mnomain' ;;
7209 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7210 tmp_addflag
=' -i_dynamic' ;;
7211 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7212 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7213 ifc
* | ifort
*) # Intel Fortran compiler
7214 tmp_addflag
=' -nofor_main' ;;
7216 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7218 if test $supports_anon_versioning = yes; then
7219 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7220 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7221 $echo "local: *; };" >> $output_objdir/$libname.ver~
7222 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7230 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7231 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7234 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7235 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7240 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7244 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7245 *** create shared libraries on Solaris systems. Therefore, libtool
7246 *** is disabling shared libraries support. We urge you to upgrade GNU
7247 *** binutils to release 2.9.1 or newer. Another option is to modify
7248 *** your PATH or compiler configuration so that the native linker is
7249 *** used, and then restart.
7252 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7253 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7254 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7260 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7261 case `$LD -v 2>&1` in
7262 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7266 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7267 *** reliably create shared libraries on SCO systems. Therefore, libtool
7268 *** is disabling shared libraries support. We urge you to upgrade GNU
7269 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7270 *** your PATH or compiler configuration so that the native linker is
7271 *** used, and then restart.
7276 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7277 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7278 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7279 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7288 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7291 hardcode_shlibpath_var
=no
7295 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7296 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7297 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7304 if test "$ld_shlibs" = no
; then
7306 hardcode_libdir_flag_spec
=
7307 export_dynamic_flag_spec
=
7308 whole_archive_flag_spec
=
7311 # PORTME fill in a description of your system's linker (not GNU ld)
7314 allow_undefined_flag
=unsupported
7315 always_export_symbols
=yes
7316 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'
7317 # Note: this linker hardcodes the directories in LIBPATH if there
7318 # are no directories specified by -L.
7319 hardcode_minus_L
=yes
7320 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7321 # Neither direct hardcoding nor static linking is supported with a
7323 hardcode_direct
=unsupported
7328 if test "$host_cpu" = ia64
; then
7329 # On IA64, the linker does run time linking by default, so we don't
7330 # have to do anything special.
7331 aix_use_runtimelinking
=no
7332 exp_sym_flag
='-Bexport'
7335 # If we're using GNU nm, then we don't want the "-C" option.
7336 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7337 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7338 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'
7340 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'
7342 aix_use_runtimelinking
=no
7344 # Test if we are trying to use run time linking or normal
7345 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7346 # need to do runtime linking.
7347 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7348 for ld_flag
in $LDFLAGS; do
7349 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7350 aix_use_runtimelinking
=yes
7357 exp_sym_flag
='-bexport'
7358 no_entry_flag
='-bnoentry'
7361 # When large executables or shared objects are built, AIX ld can
7362 # have problems creating the table of contents. If linking a library
7363 # or program results in "error TOC overflow" add -mminimal-toc to
7364 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7365 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7369 hardcode_libdir_separator
=':'
7370 link_all_deplibs
=yes
7372 if test "$GCC" = yes; then
7373 case $host_os in aix4.
[012]|aix4.
[012].
*)
7374 # We only want to do this on AIX 4.2 and lower, the check
7375 # below for broken collect2 doesn't work under 4.3+
7376 collect2name
=`${CC} -print-prog-name=collect2`
7377 if test -f "$collect2name" && \
7378 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7380 # We have reworked collect2
7383 # We have old collect2
7384 hardcode_direct
=unsupported
7385 # It fails to find uninstalled libraries when the uninstalled
7386 # path is not listed in the libpath. Setting hardcode_minus_L
7387 # to unsupported forces relinking
7388 hardcode_minus_L
=yes
7389 hardcode_libdir_flag_spec
='-L$libdir'
7390 hardcode_libdir_separator
=
7394 shared_flag
='-shared'
7395 if test "$aix_use_runtimelinking" = yes; then
7396 shared_flag
="$shared_flag "'${wl}-G'
7400 if test "$host_cpu" = ia64
; then
7401 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7402 # chokes on -Wl,-G. The following line is correct:
7405 if test "$aix_use_runtimelinking" = yes; then
7406 shared_flag
='${wl}-G'
7408 shared_flag
='${wl}-bM:SRE'
7413 # It seems that -bexpall does not export symbols beginning with
7414 # underscore (_), so it is better to generate a list of symbols to export.
7415 always_export_symbols
=yes
7416 if test "$aix_use_runtimelinking" = yes; then
7417 # Warning - without using the other runtime loading flags (-brtl),
7418 # -berok will link without error, but may produce a broken library.
7419 allow_undefined_flag
='-berok'
7420 # Determine the default libpath from the value encoded in an empty executable.
7421 cat >conftest.
$ac_ext <<_ACEOF
7424 cat confdefs.h
>>conftest.
$ac_ext
7425 cat >>conftest.
$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7436 rm -f conftest.
$ac_objext conftest
$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>conftest.er1
7440 grep -v '^ *+' conftest.er1
>conftest.err
7442 cat conftest.err
>&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
7445 { ac_try
='test -z "$ac_c_werror_flag"
7446 || test ! -s conftest.err'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; } &&
7452 { ac_try
='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7459 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7461 # Check for a 64-bit object if we didn't find anything.
7462 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; }
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.
$ac_ext >&5
7469 rm -f conftest.err conftest.
$ac_objext \
7470 conftest
$ac_exeext conftest.
$ac_ext
7471 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7473 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7474 archive_expsym_cmds
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7476 if test "$host_cpu" = ia64
; then
7477 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
7478 allow_undefined_flag
="-z nodefs"
7479 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7481 # Determine the default libpath from the value encoded in an empty executable.
7482 cat >conftest.
$ac_ext <<_ACEOF
7485 cat confdefs.h
>>conftest.
$ac_ext
7486 cat >>conftest.
$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7497 rm -f conftest.
$ac_objext conftest
$ac_exeext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499 (eval $ac_link) 2>conftest.er1
7501 grep -v '^ *+' conftest.er1
>conftest.err
7503 cat conftest.err
>&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } &&
7506 { ac_try
='test -z "$ac_c_werror_flag"
7507 || test ! -s conftest.err'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; } &&
7513 { ac_try
='test -s conftest$ac_exeext'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; }; then
7520 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7522 # Check for a 64-bit object if we didn't find anything.
7523 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; }
7526 echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.
$ac_ext >&5
7530 rm -f conftest.err conftest.
$ac_objext \
7531 conftest
$ac_exeext conftest.
$ac_ext
7532 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7534 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7535 # Warning - without using the other run time loading flags,
7536 # -berok will link without error, but may produce a broken library.
7537 no_undefined_flag
=' ${wl}-bernotok'
7538 allow_undefined_flag
=' ${wl}-berok'
7539 # Exported symbols can be pulled into shared objects from archives
7540 whole_archive_flag_spec
='$convenience'
7541 archive_cmds_need_lc
=yes
7542 # This is similar to how AIX traditionally builds its shared libraries.
7543 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7549 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)'
7550 hardcode_libdir_flag_spec
='-L$libdir'
7551 hardcode_minus_L
=yes
7552 # see comment about different semantics on the GNU ld section
7557 export_dynamic_flag_spec
=-rdynamic
7560 cygwin
* | mingw
* | pw32
*)
7561 # When not using gcc, we currently assume that we are using
7562 # Microsoft Visual C++.
7563 # hardcode_libdir_flag_spec is actually meaningless, as there is
7564 # no search path for DLLs.
7565 hardcode_libdir_flag_spec
=' '
7566 allow_undefined_flag
=unsupported
7567 # Tell ltmain to make .lib files, not .a files.
7569 # Tell ltmain to make .dll files, not .so files.
7571 # FIXME: Setting linknames here is a bad hack.
7572 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7573 # The linker will automatically build a .lib file if we build a DLL.
7574 old_archive_From_new_cmds
='true'
7575 # FIXME: Should let the user specify the lib program.
7576 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7577 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7578 enable_shared_with_static_runtimes
=yes
7581 darwin
* | rhapsody
*)
7583 rhapsody
* | darwin1.
[012])
7584 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
7587 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7588 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7590 case ${MACOSX_DEPLOYMENT_TARGET} in
7592 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7595 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
7601 archive_cmds_need_lc
=no
7603 hardcode_automatic
=yes
7604 hardcode_shlibpath_var
=unsupported
7605 whole_archive_flag_spec
=''
7606 link_all_deplibs
=yes
7607 if test "$GCC" = yes ; then
7608 output_verbose_link_cmd
='echo'
7609 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7610 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7611 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7612 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}'
7613 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}'
7615 case $cc_basename in
7617 output_verbose_link_cmd
='echo'
7618 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7619 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7620 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7621 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}'
7622 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}'
7632 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7633 hardcode_libdir_flag_spec
='-L$libdir'
7634 hardcode_shlibpath_var
=no
7641 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7642 # support. Future versions do this automatically, but an explicit c++rt0.o
7643 # does not break anything, and helps significantly (at the cost of a little
7646 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7647 hardcode_libdir_flag_spec
='-R$libdir'
7649 hardcode_shlibpath_var
=no
7652 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7654 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7656 hardcode_minus_L
=yes
7657 hardcode_shlibpath_var
=no
7660 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7661 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
7662 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7663 hardcode_libdir_flag_spec
='-R$libdir'
7665 hardcode_shlibpath_var
=no
7669 if test "$GCC" = yes; then
7670 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'
7672 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'
7674 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7675 hardcode_libdir_separator
=:
7678 # hardcode_minus_L: Not really in the search PATH,
7679 # but as the default location of the library.
7680 hardcode_minus_L
=yes
7681 export_dynamic_flag_spec
='${wl}-E'
7685 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7686 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7688 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7690 if test "$with_gnu_ld" = no
; then
7691 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7692 hardcode_libdir_separator
=:
7695 export_dynamic_flag_spec
='${wl}-E'
7697 # hardcode_minus_L: Not really in the search PATH,
7698 # but as the default location of the library.
7699 hardcode_minus_L
=yes
7704 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7707 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7710 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7713 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7719 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7722 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7725 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7729 if test "$with_gnu_ld" = no
; then
7730 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7731 hardcode_libdir_separator
=:
7735 hardcode_libdir_flag_spec_ld
='+b $libdir'
7737 hardcode_shlibpath_var
=no
7741 export_dynamic_flag_spec
='${wl}-E'
7743 # hardcode_minus_L: Not really in the search PATH,
7744 # but as the default location of the library.
7745 hardcode_minus_L
=yes
7751 irix5
* | irix6
* | nonstopux
*)
7752 if test "$GCC" = yes; then
7753 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'
7755 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'
7756 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7758 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7759 hardcode_libdir_separator
=:
7760 link_all_deplibs
=yes
7764 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7765 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7767 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7769 hardcode_libdir_flag_spec
='-R$libdir'
7771 hardcode_shlibpath_var
=no
7775 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7777 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7778 hardcode_libdir_separator
=:
7779 hardcode_shlibpath_var
=no
7784 hardcode_shlibpath_var
=no
7785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7786 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7787 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7788 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7789 export_dynamic_flag_spec
='${wl}-E'
7792 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7793 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7794 hardcode_libdir_flag_spec
='-R$libdir'
7797 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7798 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7805 hardcode_libdir_flag_spec
='-L$libdir'
7806 hardcode_minus_L
=yes
7807 allow_undefined_flag
=unsupported
7808 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'
7809 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7813 if test "$GCC" = yes; then
7814 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7815 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'
7817 allow_undefined_flag
=' -expect_unresolved \*'
7818 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'
7820 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7821 hardcode_libdir_separator
=:
7824 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7825 if test "$GCC" = yes; then
7826 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7827 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'
7828 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7830 allow_undefined_flag
=' -expect_unresolved \*'
7831 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'
7832 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7833 $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'
7835 # Both c and cxx compiler support -rpath directly
7836 hardcode_libdir_flag_spec
='-rpath $libdir'
7838 hardcode_libdir_separator
=:
7842 no_undefined_flag
=' -z text'
7843 if test "$GCC" = yes; then
7845 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7846 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7847 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7850 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7851 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7852 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7854 hardcode_libdir_flag_spec
='-R$libdir'
7855 hardcode_shlibpath_var
=no
7857 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7859 # The compiler driver will combine linker options so we
7860 # cannot just pass the convience library names through
7861 # without $wl, iff we do not link with $LD.
7862 # Luckily, gcc supports the same syntax we need for Sun Studio.
7863 # Supported since Solaris 2.6 (maybe 2.5.1?)
7866 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
7868 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' ;;
7871 link_all_deplibs
=yes
7875 if test "x$host_vendor" = xsequent
; then
7876 # Use $CC to link under sequent, because it throws in some extra .o
7877 # files that make .init and .fini sections work.
7878 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7880 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7882 hardcode_libdir_flag_spec
='-L$libdir'
7884 hardcode_minus_L
=yes
7885 hardcode_shlibpath_var
=no
7889 case $host_vendor in
7891 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7892 hardcode_direct
=yes # is this really true???
7895 ## LD is ld it makes a PLAMLIB
7896 ## CC just makes a GrossModule.
7897 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7898 reload_cmds
='$CC -r -o $output$reload_objs'
7902 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7903 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7906 runpath_var
='LD_RUN_PATH'
7907 hardcode_shlibpath_var
=no
7911 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7912 hardcode_shlibpath_var
=no
7913 export_dynamic_flag_spec
='-Bexport'
7917 if test -d /usr
/nec
; then
7918 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7919 hardcode_shlibpath_var
=no
7920 runpath_var
=LD_RUN_PATH
7921 hardcode_runpath_var
=yes
7926 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
7927 no_undefined_flag
='${wl}-z,text'
7928 archive_cmds_need_lc
=no
7929 hardcode_shlibpath_var
=no
7930 runpath_var
='LD_RUN_PATH'
7932 if test "$GCC" = yes; then
7933 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7934 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7936 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7937 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7941 sysv5
* | sco3.2v5
* | sco5v6
*)
7942 # Note: We can NOT use -z defs as we might desire, because we do not
7943 # link with -lc, and that would cause any symbols used from libc to
7944 # always be unresolved, which means just about no library would
7945 # ever link correctly. If we're not using GNU ld we use -z text
7946 # though, which does catch some bad symbols but isn't as heavy-handed
7948 no_undefined_flag
='${wl}-z,text'
7949 allow_undefined_flag
='${wl}-z,nodefs'
7950 archive_cmds_need_lc
=no
7951 hardcode_shlibpath_var
=no
7952 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7953 hardcode_libdir_separator
=':'
7954 link_all_deplibs
=yes
7955 export_dynamic_flag_spec
='${wl}-Bexport'
7956 runpath_var
='LD_RUN_PATH'
7958 if test "$GCC" = yes; then
7959 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7960 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7962 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7963 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7968 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7969 hardcode_libdir_flag_spec
='-L$libdir'
7970 hardcode_shlibpath_var
=no
7979 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7980 echo "${ECHO_T}$ld_shlibs" >&6
7981 test "$ld_shlibs" = no
&& can_build_shared
=no
7984 # Do we need to explicitly link libc?
7986 case "x$archive_cmds_need_lc" in
7988 # Assume -lc should be added
7989 archive_cmds_need_lc
=yes
7991 if test "$enable_shared" = yes && test "$GCC" = yes; then
7992 case $archive_cmds in
7994 # FIXME: we may have to deal with multi-command sequences.
7997 # Test whether the compiler implicitly links with -lc since on some
7998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7999 # to ld, don't add -lc before -lgcc.
8000 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8003 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8006 (eval $ac_compile) 2>&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } 2>conftest.err
; then
8012 libobjs
=conftest.
$ac_objext
8014 wl
=$lt_prog_compiler_wl
8015 pic_flag
=$lt_prog_compiler_pic
8021 lt_save_allow_undefined_flag
=$allow_undefined_flag
8022 allow_undefined_flag
=
8023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8024 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }
8029 archive_cmds_need_lc
=no
8031 archive_cmds_need_lc
=yes
8033 allow_undefined_flag
=$lt_save_allow_undefined_flag
8035 cat conftest.err
1>&5
8038 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8039 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8046 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8047 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8049 libname_spec
='lib$name'
8057 shlibpath_overrides_runpath
=unknown
8059 dynamic_linker
="$host_os ld.so"
8060 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8061 if test "$GCC" = yes; then
8062 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8063 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8064 # if the path contains ";" then we assume it to be the separator
8065 # otherwise default to the standard path separator (i.e. ":") - it is
8066 # assumed that no part of a normal pathname contains ";" but that should
8067 # okay in the real world where ";" in dirpaths is itself problematic.
8068 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8070 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8073 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8075 need_lib_prefix
=unknown
8076 hardcode_into_libs
=no
8078 # when you set need_version to no, make sure it does not cause -set_version
8079 # flags to be left without arguments
8080 need_version
=unknown
8085 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8086 shlibpath_var
=LIBPATH
8088 # AIX 3 has no versioning support, so we append a major version to the name.
8089 soname_spec
='${libname}${release}${shared_ext}$major'
8096 hardcode_into_libs
=yes
8097 if test "$host_cpu" = ia64
; then
8098 # AIX 5 supports IA64
8099 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8100 shlibpath_var
=LD_LIBRARY_PATH
8102 # With GCC up to 2.95.x, collect2 would create an import file
8103 # for dependence libraries. The import file would start with
8104 # the line `#! .'. This would cause the generated library to
8105 # depend on `.', always an invalid library. This was fixed in
8106 # development snapshots of GCC prior to 3.0.
8108 aix4 | aix4.
[01] | aix4.
[01].
*)
8109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8111 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8119 # soname into executable. Probably we can add versioning support to
8120 # collect2, so additional links can be useful in future.
8121 if test "$aix_use_runtimelinking" = yes; then
8122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8123 # instead of lib<name>.a to let people know that these are not
8124 # typical AIX shared libraries.
8125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8127 # We preserve .a as extension for shared libraries through AIX4.2
8128 # and later when we are not doing run time linking.
8129 library_names_spec
='${libname}${release}.a $libname.a'
8130 soname_spec
='${libname}${release}${shared_ext}$major'
8132 shlibpath_var
=LIBPATH
8137 library_names_spec
='$libname.ixlibrary $libname.a'
8138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8139 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'
8143 library_names_spec
='${libname}${shared_ext}'
8144 dynamic_linker
="$host_os ld.so"
8145 shlibpath_var
=LIBRARY_PATH
8151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8152 soname_spec
='${libname}${release}${shared_ext}$major'
8153 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8154 shlibpath_var
=LD_LIBRARY_PATH
8155 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8156 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8157 # the default ld.so.conf also contains /usr/contrib/lib and
8158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8159 # libtool to hard-code these into programs
8162 cygwin
* | mingw
* | pw32
*)
8163 version_type
=windows
8168 case $GCC,$host_os in
8169 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8170 library_names_spec
='$libname.dll.a'
8171 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8172 postinstall_cmds
='base_file=`basename \${file}`~
8173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8174 dldir=$destdir/`dirname \$dlpath`~
8175 test -d \$dldir || mkdir -p \$dldir~
8176 $install_prog $dir/$dlname \$dldir/$dlname~
8177 chmod a+x \$dldir/$dlname'
8178 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8179 dlpath=$dir/\$dldll~
8181 shlibpath_overrides_runpath
=yes
8185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8186 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8187 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8190 # MinGW DLLs use traditional 'lib' prefix
8191 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8192 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8193 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8194 # It is most probably a Windows format PATH printed by
8195 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8196 # path with ; separators, and with drive letters. We can handle the
8197 # drive letters (cygwin fileutils understands them), so leave them,
8198 # especially as we might pass files found there to a mingw objdump,
8199 # which wouldn't understand a cygwinified path. Ahh.
8200 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8202 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8206 # pw32 DLLs use 'pw' prefix rather than 'lib'
8207 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8213 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8216 dynamic_linker
='Win32 ld.exe'
8217 # FIXME: first we should search . and the directory the executable is in
8221 darwin
* | rhapsody
*)
8222 dynamic_linker
="$host_os dyld"
8226 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8227 soname_spec
='${libname}${release}${major}$shared_ext'
8228 shlibpath_overrides_runpath
=yes
8229 shlibpath_var
=DYLD_LIBRARY_PATH
8230 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8231 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8232 if test "$GCC" = yes; then
8233 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"`
8235 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8237 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8245 soname_spec
='${libname}${release}${shared_ext}$major'
8246 shlibpath_var
=LD_LIBRARY_PATH
8257 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8258 soname_spec
='${libname}${release}${shared_ext}$major'
8259 shlibpath_var
=LD_LIBRARY_PATH
8260 shlibpath_overrides_runpath
=no
8261 hardcode_into_libs
=yes
8262 dynamic_linker
='GNU ld.so'
8265 freebsd
* | dragonfly
*)
8266 # DragonFly does not have aout. When/if they implement a new
8267 # versioning mechanism, adjust this.
8268 if test -x /usr
/bin
/objformat
; then
8269 objformat
=`/usr/bin/objformat`
8272 freebsd
[123]*) objformat
=aout
;;
8276 version_type
=freebsd-
$objformat
8277 case $version_type in
8279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8284 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8288 shlibpath_var
=LD_LIBRARY_PATH
8291 shlibpath_overrides_runpath
=yes
8293 freebsd3.
[01]* | freebsdelf3.
[01]*)
8294 shlibpath_overrides_runpath
=yes
8295 hardcode_into_libs
=yes
8297 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8298 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8299 shlibpath_overrides_runpath
=no
8300 hardcode_into_libs
=yes
8302 freebsd
*) # from 4.6 on
8303 shlibpath_overrides_runpath
=yes
8304 hardcode_into_libs
=yes
8313 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8314 soname_spec
='${libname}${release}${shared_ext}$major'
8315 shlibpath_var
=LD_LIBRARY_PATH
8316 hardcode_into_libs
=yes
8319 hpux9
* | hpux10
* | hpux11
*)
8320 # Give a soname corresponding to the major version so that dld.sl refuses to
8321 # link against other versions.
8328 hardcode_into_libs
=yes
8329 dynamic_linker
="$host_os dld.so"
8330 shlibpath_var
=LD_LIBRARY_PATH
8331 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8333 soname_spec
='${libname}${release}${shared_ext}$major'
8334 if test "X$HPUX_IA64_MODE" = X32
; then
8335 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8337 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8339 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8343 hardcode_into_libs
=yes
8344 dynamic_linker
="$host_os dld.sl"
8345 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8346 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8348 soname_spec
='${libname}${release}${shared_ext}$major'
8349 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8350 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8354 dynamic_linker
="$host_os dld.sl"
8355 shlibpath_var
=SHLIB_PATH
8356 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8358 soname_spec
='${libname}${release}${shared_ext}$major'
8361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8362 postinstall_cmds
='chmod 555 $lib'
8369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8370 soname_spec
='${libname}${release}${shared_ext}$major'
8371 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8372 shlibpath_var
=LD_LIBRARY_PATH
8373 shlibpath_overrides_runpath
=no
8374 hardcode_into_libs
=yes
8377 irix5
* | irix6
* | nonstopux
*)
8379 nonstopux
*) version_type
=nonstopux
;;
8381 if test "$lt_cv_prog_gnu_ld" = yes; then
8389 soname_spec
='${libname}${release}${shared_ext}$major'
8390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8392 irix5
* | nonstopux
*)
8396 case $LD in # libtool.m4 will add one of these switches to LD
8397 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8398 libsuff
= shlibsuff
= libmagic
=32-bit;;
8399 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8400 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8401 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8402 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8403 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8407 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8408 shlibpath_overrides_runpath
=no
8409 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8410 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8411 hardcode_into_libs
=yes
8414 # No shared lib support for Linux oldld, aout, or coff.
8415 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8419 # This must be Linux ELF.
8424 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8425 soname_spec
='${libname}${release}${shared_ext}$major'
8426 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8427 shlibpath_var
=LD_LIBRARY_PATH
8428 shlibpath_overrides_runpath
=no
8429 # This implies no fast_install, which is unacceptable.
8430 # Some rework will be needed to allow for fast_install
8431 # before this can be enabled.
8432 hardcode_into_libs
=yes
8434 # find out which ABI we are using
8437 x86_64
*|s390x
*|powerpc64
*)
8438 echo '#line 8438 "configure"' > conftest.
$ac_ext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8440 (eval $ac_compile) 2>&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; then
8444 case `/usr/bin/file conftest.$ac_objext` in
8447 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8455 # Append ld.so.conf contents to the search path
8456 if test -f /etc
/ld.so.conf
; then
8457 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8458 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8461 # We used to test for /lib/ld.so.1 and disable shared libraries on
8462 # powerpc, because MkLinux only supported shared libraries with the
8463 # GNU dynamic linker. Since this was broken with cross compilers,
8464 # most powerpc-linux boxes support dynamic linking these days and
8465 # people can always --disable-shared, the test was removed, and we
8466 # assume the GNU/Linux dynamic linker is in use.
8467 dynamic_linker
='GNU/Linux ld.so'
8474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8475 soname_spec
='${libname}${release}${shared_ext}$major'
8476 shlibpath_var
=LD_LIBRARY_PATH
8477 shlibpath_overrides_runpath
=no
8478 hardcode_into_libs
=yes
8479 dynamic_linker
='GNU ld.so'
8486 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8488 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8489 dynamic_linker
='NetBSD (a.out) ld.so'
8491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8492 soname_spec
='${libname}${release}${shared_ext}$major'
8493 dynamic_linker
='NetBSD ld.elf_so'
8495 shlibpath_var
=LD_LIBRARY_PATH
8496 shlibpath_overrides_runpath
=yes
8497 hardcode_into_libs
=yes
8502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8503 shlibpath_var
=LD_LIBRARY_PATH
8504 shlibpath_overrides_runpath
=yes
8511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8512 soname_spec
='${libname}${release}${shared_ext}$major'
8513 shlibpath_var
=LD_LIBRARY_PATH
8514 shlibpath_overrides_runpath
=yes
8519 sys_lib_dlsearch_path_spec
="/usr/lib"
8521 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8523 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
8524 *) need_version
=no
;;
8526 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8527 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8528 shlibpath_var
=LD_LIBRARY_PATH
8529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8531 openbsd2.
[89] | openbsd2.
[89].
*)
8532 shlibpath_overrides_runpath
=no
8535 shlibpath_overrides_runpath
=yes
8539 shlibpath_overrides_runpath
=yes
8544 libname_spec
='$name'
8547 library_names_spec
='$libname${shared_ext} $libname.a'
8548 dynamic_linker
='OS/2 ld.exe'
8549 shlibpath_var
=LIBPATH
8552 osf3
* | osf4
* | osf5
*)
8556 soname_spec
='${libname}${release}${shared_ext}$major'
8557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558 shlibpath_var
=LD_LIBRARY_PATH
8559 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8560 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8568 soname_spec
='${libname}${release}${shared_ext}$major'
8569 shlibpath_var
=LD_LIBRARY_PATH
8570 shlibpath_overrides_runpath
=yes
8571 hardcode_into_libs
=yes
8572 # ldd complains unless libraries are executable
8573 postinstall_cmds
='chmod +x $lib'
8578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8579 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8580 shlibpath_var
=LD_LIBRARY_PATH
8581 shlibpath_overrides_runpath
=yes
8582 if test "$with_gnu_ld" = yes; then
8590 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8591 soname_spec
='${libname}${release}${shared_ext}$major'
8592 shlibpath_var
=LD_LIBRARY_PATH
8593 case $host_vendor in
8595 shlibpath_overrides_runpath
=no
8597 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8598 runpath_var
=LD_RUN_PATH
8606 shlibpath_overrides_runpath
=no
8607 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8613 if test -d /usr
/nec
;then
8615 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8616 soname_spec
='$libname${shared_ext}.$major'
8617 shlibpath_var
=LD_LIBRARY_PATH
8621 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
8622 version_type
=freebsd-elf
8625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8626 soname_spec
='${libname}${release}${shared_ext}$major'
8627 shlibpath_var
=LD_LIBRARY_PATH
8628 hardcode_into_libs
=yes
8629 if test "$with_gnu_ld" = yes; then
8630 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8631 shlibpath_overrides_runpath
=no
8633 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
8634 shlibpath_overrides_runpath
=yes
8637 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
8641 sys_lib_dlsearch_path_spec
='/usr/lib'
8646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8647 soname_spec
='${libname}${release}${shared_ext}$major'
8648 shlibpath_var
=LD_LIBRARY_PATH
8655 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8656 echo "${ECHO_T}$dynamic_linker" >&6
8657 test "$dynamic_linker" = no
&& can_build_shared
=no
8659 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
8660 if test "$GCC" = yes; then
8661 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8664 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8665 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8667 if test -n "$hardcode_libdir_flag_spec" || \
8668 test -n "$runpath_var" || \
8669 test "X$hardcode_automatic" = "Xyes" ; then
8671 # We can hardcode non-existant directories.
8672 if test "$hardcode_direct" != no
&&
8673 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8674 # have to relink, otherwise we might link with an installed library
8675 # when we should be linking with a yet-to-be-installed one
8676 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8677 test "$hardcode_minus_L" != no
; then
8678 # Linking always hardcodes the temporary library directory.
8679 hardcode_action
=relink
8681 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8682 hardcode_action
=immediate
8685 # We cannot hardcode anything, or else we can only hardcode existing
8687 hardcode_action
=unsupported
8689 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8690 echo "${ECHO_T}$hardcode_action" >&6
8692 if test "$hardcode_action" = relink
; then
8693 # Fast installation is not supported
8694 enable_fast_install
=no
8695 elif test "$shlibpath_overrides_runpath" = yes ||
8696 test "$enable_shared" = no
; then
8697 # Fast installation is not necessary
8698 enable_fast_install
=needless
8703 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8704 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8705 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8706 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8707 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8708 echo "$as_me:$LINENO: result: yes" >&5
8709 echo "${ECHO_T}yes" >&6
8711 # FIXME - insert some real tests, host_os isn't really good enough
8714 if test -n "$STRIP" ; then
8715 striplib
="$STRIP -x"
8716 echo "$as_me:$LINENO: result: yes" >&5
8717 echo "${ECHO_T}yes" >&6
8719 echo "$as_me:$LINENO: result: no" >&5
8720 echo "${ECHO_T}no" >&6
8724 echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6
8730 if test "x$enable_dlopen" != xyes
; then
8731 enable_dlopen
=unknown
8732 enable_dlopen_self
=unknown
8733 enable_dlopen_self_static
=unknown
8740 lt_cv_dlopen
="load_add_on"
8742 lt_cv_dlopen_self
=yes
8746 lt_cv_dlopen
="LoadLibrary"
8751 lt_cv_dlopen
="dlopen"
8756 # if libdl is installed we need to link against it
8757 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8758 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8759 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 ac_check_lib_save_LIBS
=$LIBS
8764 cat >conftest.
$ac_ext <<_ACEOF
8767 cat confdefs.h
>>conftest.
$ac_ext
8768 cat >>conftest.
$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8771 /* Override any gcc2 internal prototype to avoid an error. */
8775 /* We use char because int might match the return type of a gcc2
8776 builtin and then its argument prototype would still apply. */
8786 rm -f conftest.
$ac_objext conftest
$ac_exeext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8788 (eval $ac_link) 2>conftest.er1
8790 grep -v '^ *+' conftest.er1
>conftest.err
8792 cat conftest.err
>&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } &&
8795 { ac_try
='test -z "$ac_c_werror_flag"
8796 || test ! -s conftest.err'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try
='test -s conftest$ac_exeext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_cv_lib_dl_dlopen
=yes
8810 echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.
$ac_ext >&5
8813 ac_cv_lib_dl_dlopen
=no
8815 rm -f conftest.err conftest.
$ac_objext \
8816 conftest
$ac_exeext conftest.
$ac_ext
8817 LIBS
=$ac_check_lib_save_LIBS
8819 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8820 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8821 if test $ac_cv_lib_dl_dlopen = yes; then
8822 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8827 lt_cv_dlopen_self
=yes
8834 echo "$as_me:$LINENO: checking for shl_load" >&5
8835 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8836 if test "${ac_cv_func_shl_load+set}" = set; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 cat >conftest.
$ac_ext <<_ACEOF
8842 cat confdefs.h
>>conftest.
$ac_ext
8843 cat >>conftest.
$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8845 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8847 #define shl_load innocuous_shl_load
8849 /* System header to define __stub macros and hopefully few prototypes,
8850 which can conflict with char shl_load (); below.
8851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8852 <limits.h> exists even on freestanding compilers. */
8855 # include <limits.h>
8857 # include <assert.h>
8862 /* Override any gcc2 internal prototype to avoid an error. */
8867 /* We use char because int might match the return type of a gcc2
8868 builtin and then its argument prototype would still apply. */
8870 /* The GNU C library defines this for functions which it implements
8871 to always fail with ENOSYS. Some functions are actually named
8872 something starting with __ and the normal name is an alias. */
8873 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8876 char (*f) () = shl_load;
8885 return f != shl_load;
8890 rm -f conftest.
$ac_objext conftest
$ac_exeext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892 (eval $ac_link) 2>conftest.er1
8894 grep -v '^ *+' conftest.er1
>conftest.err
8896 cat conftest.err
>&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try
='test -z "$ac_c_werror_flag"
8900 || test ! -s conftest.err'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; } &&
8906 { ac_try
='test -s conftest$ac_exeext'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_cv_func_shl_load
=yes
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.
$ac_ext >&5
8917 ac_cv_func_shl_load
=no
8919 rm -f conftest.err conftest.
$ac_objext \
8920 conftest
$ac_exeext conftest.
$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8923 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8924 if test $ac_cv_func_shl_load = yes; then
8925 lt_cv_dlopen
="shl_load"
8927 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8928 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8929 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 ac_check_lib_save_LIBS
=$LIBS
8934 cat >conftest.
$ac_ext <<_ACEOF
8937 cat confdefs.h
>>conftest.
$ac_ext
8938 cat >>conftest.
$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8941 /* Override any gcc2 internal prototype to avoid an error. */
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
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_lib_dld_shl_load
=yes
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.
$ac_ext >&5
8983 ac_cv_lib_dld_shl_load
=no
8985 rm -f conftest.err conftest.
$ac_objext \
8986 conftest
$ac_exeext conftest.
$ac_ext
8987 LIBS
=$ac_check_lib_save_LIBS
8989 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8990 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8991 if test $ac_cv_lib_dld_shl_load = yes; then
8992 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
8994 echo "$as_me:$LINENO: checking for dlopen" >&5
8995 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8996 if test "${ac_cv_func_dlopen+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 cat >conftest.
$ac_ext <<_ACEOF
9002 cat confdefs.h
>>conftest.
$ac_ext
9003 cat >>conftest.
$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9005 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9007 #define dlopen innocuous_dlopen
9009 /* System header to define __stub macros and hopefully few prototypes,
9010 which can conflict with char dlopen (); below.
9011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9012 <limits.h> exists even on freestanding compilers. */
9015 # include <limits.h>
9017 # include <assert.h>
9022 /* Override any gcc2 internal prototype to avoid an error. */
9027 /* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9030 /* The GNU C library defines this for functions which it implements
9031 to always fail with ENOSYS. Some functions are actually named
9032 something starting with __ and the normal name is an alias. */
9033 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9036 char (*f) () = dlopen;
9050 rm -f conftest.
$ac_objext conftest
$ac_exeext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>conftest.er1
9054 grep -v '^ *+' conftest.er1
>conftest.err
9056 cat conftest.err
>&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try
='test -z "$ac_c_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try
='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_func_dlopen
=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.
$ac_ext >&5
9077 ac_cv_func_dlopen
=no
9079 rm -f conftest.err conftest.
$ac_objext \
9080 conftest
$ac_exeext conftest.
$ac_ext
9082 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9083 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9084 if test $ac_cv_func_dlopen = yes; then
9085 lt_cv_dlopen
="dlopen"
9087 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9088 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9089 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 ac_check_lib_save_LIBS
=$LIBS
9094 cat >conftest.
$ac_ext <<_ACEOF
9097 cat confdefs.h
>>conftest.
$ac_ext
9098 cat >>conftest.
$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9101 /* Override any gcc2 internal prototype to avoid an error. */
9105 /* We use char because int might match the return type of a gcc2
9106 builtin and then its argument prototype would still apply. */
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_lib_dl_dlopen
=yes
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.
$ac_ext >&5
9143 ac_cv_lib_dl_dlopen
=no
9145 rm -f conftest.err conftest.
$ac_objext \
9146 conftest
$ac_exeext conftest.
$ac_ext
9147 LIBS
=$ac_check_lib_save_LIBS
9149 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9150 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9151 if test $ac_cv_lib_dl_dlopen = yes; then
9152 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
9154 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9155 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9156 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 ac_check_lib_save_LIBS
=$LIBS
9161 cat >conftest.
$ac_ext <<_ACEOF
9164 cat confdefs.h
>>conftest.
$ac_ext
9165 cat >>conftest.
$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9168 /* Override any gcc2 internal prototype to avoid an error. */
9172 /* We use char because int might match the return type of a gcc2
9173 builtin and then its argument prototype would still apply. */
9183 rm -f conftest.
$ac_objext conftest
$ac_exeext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185 (eval $ac_link) 2>conftest.er1
9187 grep -v '^ *+' conftest.er1
>conftest.err
9189 cat conftest.err
>&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } &&
9192 { ac_try
='test -z "$ac_c_werror_flag"
9193 || test ! -s conftest.err'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; } &&
9199 { ac_try
='test -s conftest$ac_exeext'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; }; then
9205 ac_cv_lib_svld_dlopen
=yes
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.
$ac_ext >&5
9210 ac_cv_lib_svld_dlopen
=no
9212 rm -f conftest.err conftest.
$ac_objext \
9213 conftest
$ac_exeext conftest.
$ac_ext
9214 LIBS
=$ac_check_lib_save_LIBS
9216 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9217 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9218 if test $ac_cv_lib_svld_dlopen = yes; then
9219 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9221 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9222 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9223 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 ac_check_lib_save_LIBS
=$LIBS
9228 cat >conftest.
$ac_ext <<_ACEOF
9231 cat confdefs.h
>>conftest.
$ac_ext
9232 cat >>conftest.
$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9235 /* Override any gcc2 internal prototype to avoid an error. */
9239 /* We use char because int might match the return type of a gcc2
9240 builtin and then its argument prototype would still apply. */
9250 rm -f conftest.
$ac_objext conftest
$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>conftest.er1
9254 grep -v '^ *+' conftest.er1
>conftest.err
9256 cat conftest.err
>&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try
='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try
='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_cv_lib_dld_dld_link
=yes
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.
$ac_ext >&5
9277 ac_cv_lib_dld_dld_link
=no
9279 rm -f conftest.err conftest.
$ac_objext \
9280 conftest
$ac_exeext conftest.
$ac_ext
9281 LIBS
=$ac_check_lib_save_LIBS
9283 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9284 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9285 if test $ac_cv_lib_dld_dld_link = yes; then
9286 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
9307 if test "x$lt_cv_dlopen" != xno
; then
9313 case $lt_cv_dlopen in
9315 save_CPPFLAGS
="$CPPFLAGS"
9316 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
9318 save_LDFLAGS
="$LDFLAGS"
9319 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
9322 LIBS
="$lt_cv_dlopen_libs $LIBS"
9324 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9325 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9326 if test "${lt_cv_dlopen_self+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 if test "$cross_compiling" = yes; then :
9330 lt_cv_dlopen_self
=cross
9332 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9333 lt_status
=$lt_dlunknown
9334 cat > conftest.
$ac_ext <<EOF
9335 #line 9335 "configure"
9336 #include "confdefs.h"
9345 # define LT_DLGLOBAL RTLD_GLOBAL
9348 # define LT_DLGLOBAL DL_GLOBAL
9350 # define LT_DLGLOBAL 0
9354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9355 find out it does not work in some platform. */
9356 #ifndef LT_DLLAZY_OR_NOW
9358 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9361 # define LT_DLLAZY_OR_NOW DL_LAZY
9364 # define LT_DLLAZY_OR_NOW RTLD_NOW
9367 # define LT_DLLAZY_OR_NOW DL_NOW
9369 # define LT_DLLAZY_OR_NOW 0
9377 extern "C" void exit (int);
9380 void fnord() { int i=42;}
9383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9384 int status = $lt_dlunknown;
9388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9389 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9390 /* dlclose (self); */
9398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9399 (eval $ac_link) 2>&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9403 (.
/conftest
; exit; ) >&5 2>/dev
/null
9406 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
9407 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
9408 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
9411 # compilation failed
9412 lt_cv_dlopen_self
=no
9419 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9420 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9422 if test "x$lt_cv_dlopen_self" = xyes
; then
9423 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
9424 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9425 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9426 if test "${lt_cv_dlopen_self_static+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 if test "$cross_compiling" = yes; then :
9430 lt_cv_dlopen_self_static
=cross
9432 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9433 lt_status
=$lt_dlunknown
9434 cat > conftest.
$ac_ext <<EOF
9435 #line 9435 "configure"
9436 #include "confdefs.h"
9445 # define LT_DLGLOBAL RTLD_GLOBAL
9448 # define LT_DLGLOBAL DL_GLOBAL
9450 # define LT_DLGLOBAL 0
9454 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9455 find out it does not work in some platform. */
9456 #ifndef LT_DLLAZY_OR_NOW
9458 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9461 # define LT_DLLAZY_OR_NOW DL_LAZY
9464 # define LT_DLLAZY_OR_NOW RTLD_NOW
9467 # define LT_DLLAZY_OR_NOW DL_NOW
9469 # define LT_DLLAZY_OR_NOW 0
9477 extern "C" void exit (int);
9480 void fnord() { int i=42;}
9483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9484 int status = $lt_dlunknown;
9488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9489 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9490 /* dlclose (self); */
9498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499 (eval $ac_link) 2>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9503 (.
/conftest
; exit; ) >&5 2>/dev
/null
9506 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
9507 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
9508 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
9511 # compilation failed
9512 lt_cv_dlopen_self_static
=no
9519 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9520 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9523 CPPFLAGS
="$save_CPPFLAGS"
9524 LDFLAGS
="$save_LDFLAGS"
9529 case $lt_cv_dlopen_self in
9530 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
9531 *) enable_dlopen_self
=unknown
;;
9534 case $lt_cv_dlopen_self_static in
9535 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
9536 *) enable_dlopen_self_static
=unknown
;;
9541 # Report which library types will actually be built
9542 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9543 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9544 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9545 echo "${ECHO_T}$can_build_shared" >&6
9547 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9548 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9549 test "$can_build_shared" = "no" && enable_shared
=no
9551 # On AIX, shared libraries and static libraries use the same namespace, and
9552 # are all built from PIC.
9555 test "$enable_shared" = yes && enable_static
=no
9556 if test -n "$RANLIB"; then
9557 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
9558 postinstall_cmds
='$RANLIB $lib'
9563 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
9564 test "$enable_shared" = yes && enable_static
=no
9568 echo "$as_me:$LINENO: result: $enable_shared" >&5
9569 echo "${ECHO_T}$enable_shared" >&6
9571 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9572 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9573 # Make sure either enable_shared or enable_static is yes.
9574 test "$enable_shared" = yes || enable_static
=yes
9575 echo "$as_me:$LINENO: result: $enable_static" >&5
9576 echo "${ECHO_T}$enable_static" >&6
9578 # The else clause should only fire when bootstrapping the
9579 # libtool distribution, otherwise you forgot to ship ltmain.sh
9580 # with your package, and you will get complaints that there are
9581 # no rules to generate ltmain.sh.
9582 if test -f "$ltmain"; then
9583 # See if we are running on zsh, and set the options which allow our commands through
9584 # without removal of \ escapes.
9585 if test -n "${ZSH_VERSION+set}" ; then
9586 setopt NO_GLOB_SUBST
9588 # Now quote all the things that may contain metacharacters while being
9589 # careful not to overquote the AC_SUBSTed values. We take copies of the
9590 # variables and quote the copies for generation of the libtool script.
9591 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9593 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9594 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9595 deplibs_check_method reload_flag reload_cmds need_locks \
9596 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9597 lt_cv_sys_global_symbol_to_c_name_address \
9598 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9599 old_postinstall_cmds old_postuninstall_cmds \
9603 lt_prog_compiler_wl \
9604 lt_prog_compiler_pic \
9605 lt_prog_compiler_static \
9606 lt_prog_compiler_no_builtin_flag \
9607 export_dynamic_flag_spec \
9608 thread_safe_flag_spec \
9609 whole_archive_flag_spec \
9610 enable_shared_with_static_runtimes \
9612 old_archive_from_new_cmds \
9617 compiler_lib_search_path \
9619 archive_expsym_cmds \
9621 postuninstall_cmds \
9622 old_archive_from_expsyms_cmds \
9623 allow_undefined_flag \
9625 export_symbols_cmds \
9626 hardcode_libdir_flag_spec \
9627 hardcode_libdir_flag_spec_ld \
9628 hardcode_libdir_separator \
9629 hardcode_automatic \
9631 module_expsym_cmds \
9632 lt_cv_prog_compiler_c_o \
9637 old_archive_cmds | \
9638 old_archive_from_new_cmds | \
9640 archive_expsym_cmds | \
9642 module_expsym_cmds | \
9643 old_archive_from_expsyms_cmds | \
9644 export_symbols_cmds | \
9645 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9646 postinstall_cmds | postuninstall_cmds | \
9647 old_postinstall_cmds | old_postuninstall_cmds | \
9648 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
9649 # Double-quote double-evaled strings.
9650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9659 *'\$0 --fallback-echo"')
9660 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9665 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9667 { echo "$as_me:$LINENO: creating $ofile" >&5
9668 echo "$as_me: creating $ofile" >&6;}
9670 cat <<__EOF__ >> "$cfgfile"
9673 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9674 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9675 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9677 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9678 # Free Software Foundation, Inc.
9680 # This file is part of GNU Libtool:
9681 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9683 # This program is free software; you can redistribute it and/or modify
9684 # it under the terms of the GNU General Public License as published by
9685 # the Free Software Foundation; either version 2 of the License, or
9686 # (at your option) any later version.
9688 # This program is distributed in the hope that it will be useful, but
9689 # WITHOUT ANY WARRANTY; without even the implied warranty of
9690 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9691 # General Public License for more details.
9693 # You should have received a copy of the GNU General Public License
9694 # along with this program; if not, write to the Free Software
9695 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9697 # As a special exception to the GNU General Public License, if you
9698 # distribute this file as part of a program that contains a
9699 # configuration script generated by Autoconf, you may include it under
9700 # the same distribution terms that you use for the rest of that program.
9702 # A sed program that does not truncate output.
9705 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9706 Xsed="$SED -e 1s/^X//"
9708 # The HP-UX ksh and POSIX shell print the target directory to stdout
9710 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9712 # The names of the tagged configurations supported by this script.
9715 # ### BEGIN LIBTOOL CONFIG
9717 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9719 # Shell to use when invoking shell scripts.
9722 # Whether or not to build shared libraries.
9723 build_libtool_libs=$enable_shared
9725 # Whether or not to build static libraries.
9726 build_old_libs=$enable_static
9728 # Whether or not to add -lc for building shared libraries.
9729 build_libtool_need_lc=$archive_cmds_need_lc
9731 # Whether or not to disallow shared libs when runtime libs are static
9732 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9734 # Whether or not to optimize for fast installation.
9735 fast_install=$enable_fast_install
9738 host_alias=$host_alias
9743 build_alias=$build_alias
9747 # An echo program that does not interpret backslashes.
9752 AR_FLAGS=$lt_AR_FLAGS
9757 # LTCC compiler flags.
9758 LTCFLAGS=$lt_LTCFLAGS
9760 # A language-specific compiler.
9763 # Is the compiler the GNU C compiler?
9766 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9767 gcc_ver=\`gcc -dumpversion\`
9772 # The linker used to build libraries.
9775 # Whether we need hard or soft links.
9778 # A BSD-compatible nm program.
9781 # A symbol stripping program
9784 # Used to examine libraries when file_magic_cmd begins "file"
9785 MAGIC_CMD=$MAGIC_CMD
9787 # Used on cygwin: DLL creation program.
9790 # Used on cygwin: object dumper.
9793 # Used on cygwin: assembler.
9796 # The name of the directory that contains temporary libtool files.
9799 # How to create reloadable object files.
9800 reload_flag=$lt_reload_flag
9801 reload_cmds=$lt_reload_cmds
9803 # How to pass a linker flag through the compiler.
9804 wl=$lt_lt_prog_compiler_wl
9806 # Object file suffix (normally "o").
9809 # Old archive suffix (normally "a").
9812 # Shared library suffix (normally ".so").
9813 shrext_cmds='$shrext_cmds'
9815 # Executable file suffix (normally "").
9818 # Additional compiler flags for building library objects.
9819 pic_flag=$lt_lt_prog_compiler_pic
9822 # What is the maximum length of a command?
9823 max_cmd_len=$lt_cv_sys_max_cmd_len
9825 # Does compiler simultaneously support -c and -o options?
9826 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9828 # Must we lock files when doing compilation?
9829 need_locks=$lt_need_locks
9831 # Do we need the lib prefix for modules?
9832 need_lib_prefix=$need_lib_prefix
9834 # Do we need a version for libraries?
9835 need_version=$need_version
9837 # Whether dlopen is supported.
9838 dlopen_support=$enable_dlopen
9840 # Whether dlopen of programs is supported.
9841 dlopen_self=$enable_dlopen_self
9843 # Whether dlopen of statically linked programs is supported.
9844 dlopen_self_static=$enable_dlopen_self_static
9846 # Compiler flag to prevent dynamic linking.
9847 link_static_flag=$lt_lt_prog_compiler_static
9849 # Compiler flag to turn off builtin functions.
9850 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9852 # Compiler flag to allow reflexive dlopens.
9853 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9855 # Compiler flag to generate shared objects directly from archives.
9856 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9858 # Compiler flag to generate thread-safe objects.
9859 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9861 # Library versioning type.
9862 version_type=$version_type
9864 # Format of library name prefix.
9865 libname_spec=$lt_libname_spec
9867 # List of archive names. First name is the real one, the rest are links.
9868 # The last name is the one that the linker finds with -lNAME.
9869 library_names_spec=$lt_library_names_spec
9871 # The coded name of the library, if different from the real name.
9872 soname_spec=$lt_soname_spec
9874 # Commands used to build and install an old-style archive.
9876 old_archive_cmds=$lt_old_archive_cmds
9877 old_postinstall_cmds=$lt_old_postinstall_cmds
9878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9880 # Create an old-style archive from a shared archive.
9881 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9883 # Create a temporary old-style archive to link instead of a shared archive.
9884 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9886 # Commands used to build and install a shared archive.
9887 archive_cmds=$lt_archive_cmds
9888 archive_expsym_cmds=$lt_archive_expsym_cmds
9889 postinstall_cmds=$lt_postinstall_cmds
9890 postuninstall_cmds=$lt_postuninstall_cmds
9892 # Commands used to build a loadable module (assumed same as above if empty)
9893 module_cmds=$lt_module_cmds
9894 module_expsym_cmds=$lt_module_expsym_cmds
9896 # Commands to strip libraries.
9897 old_striplib=$lt_old_striplib
9898 striplib=$lt_striplib
9900 # Dependencies to place before the objects being linked to create a
9902 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9904 # Dependencies to place after the objects being linked to create a
9906 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9908 # Dependencies to place before the objects being linked to create a
9912 # Dependencies to place after the objects being linked to create a
9914 postdeps=$lt_postdeps
9916 # The library search path used internally by the compiler when linking
9918 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9920 # Method to check whether dependent libraries are shared objects.
9921 deplibs_check_method=$lt_deplibs_check_method
9923 # Command to use when deplibs_check_method == file_magic.
9924 file_magic_cmd=$lt_file_magic_cmd
9926 # Flag that allows shared libraries with undefined symbols to be built.
9927 allow_undefined_flag=$lt_allow_undefined_flag
9929 # Flag that forces no undefined symbols.
9930 no_undefined_flag=$lt_no_undefined_flag
9932 # Commands used to finish a libtool library installation in a directory.
9933 finish_cmds=$lt_finish_cmds
9935 # Same as above, but a single script fragment to be evaled but not shown.
9936 finish_eval=$lt_finish_eval
9938 # Take the output of nm and produce a listing of raw symbols and C names.
9939 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9941 # Transform the output of nm in a proper C declaration
9942 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9944 # Transform the output of nm in a C name address pair
9945 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9947 # This is the shared library runtime path variable.
9948 runpath_var=$runpath_var
9950 # This is the shared library path variable.
9951 shlibpath_var=$shlibpath_var
9953 # Is shlibpath searched before the hard-coded library search path?
9954 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9956 # How to hardcode a shared library path into an executable.
9957 hardcode_action=$hardcode_action
9959 # Whether we should hardcode library paths into libraries.
9960 hardcode_into_libs=$hardcode_into_libs
9962 # Flag to hardcode \$libdir into a binary during linking.
9963 # This must work even if \$libdir does not exist.
9964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9966 # If ld is used when linking, flag to hardcode \$libdir into
9967 # a binary during linking. This must work even if \$libdir does
9969 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9971 # Whether we need a single -rpath flag with a separated argument.
9972 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9974 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9976 hardcode_direct=$hardcode_direct
9978 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9980 hardcode_minus_L=$hardcode_minus_L
9982 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9983 # the resulting binary.
9984 hardcode_shlibpath_var=$hardcode_shlibpath_var
9986 # Set to yes if building a shared library automatically hardcodes DIR into the library
9987 # and all subsequent libraries and executables linked against it.
9988 hardcode_automatic=$hardcode_automatic
9990 # Variables whose values should be saved in libtool wrapper scripts and
9991 # restored at relink time.
9992 variables_saved_for_relink="$variables_saved_for_relink"
9994 # Whether libtool must link a program against all its dependency libraries.
9995 link_all_deplibs=$link_all_deplibs
9997 # Compile-time system search path for libraries
9998 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10000 # Run-time system search path for libraries
10001 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10003 # Fix the shell variable \$srcfile for the compiler.
10004 fix_srcfile_path="$fix_srcfile_path"
10006 # Set to yes if exported symbols are required.
10007 always_export_symbols=$always_export_symbols
10009 # The commands to list exported symbols.
10010 export_symbols_cmds=$lt_export_symbols_cmds
10012 # The commands to extract the exported symbol list from a shared archive.
10013 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10015 # Symbols that should not be listed in the preloaded symbols.
10016 exclude_expsyms=$lt_exclude_expsyms
10018 # Symbols that must always be exported.
10019 include_expsyms=$lt_include_expsyms
10021 # ### END LIBTOOL CONFIG
10028 cat <<\EOF
>> "$cfgfile"
10030 # AIX sometimes has problems with the GCC collect2 program. For some
10031 # reason, if we set the COLLECT_NAMES environment variable, the problems
10032 # vanish in a puff of smoke.
10033 if test "X${COLLECT_NAMES+set}" != Xset
; then
10035 export COLLECT_NAMES
10041 # We use sed instead of cat because bash on DJGPP gets confused if
10042 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10043 # text mode, it properly converts lines to CR/LF. This bash problem
10044 # is reportedly fixed, but why not run on old versions too?
10045 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
10047 mv -f "$cfgfile" "$ofile" || \
10048 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10052 # If there is no Makefile yet, we rely on a make rule to execute
10053 # `config.status --recheck' to rerun these tests and create the
10054 # libtool script then.
10055 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10056 if test -f "$ltmain_in"; then
10057 test -f Makefile
&& make "$ltmain"
10063 ac_cpp
='$CPP $CPPFLAGS'
10064 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10065 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10066 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10071 # Check whether --with-tags or --without-tags was given.
10072 if test "${with_tags+set}" = set; then
10073 withval
="$with_tags"
10074 tagnames
="$withval"
10077 if test -f "$ltmain" && test -n "$tagnames"; then
10078 if test ! -f "${ofile}"; then
10079 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10080 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10083 if test -z "$LTCC"; then
10084 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10085 if test -z "$LTCC"; then
10086 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10087 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10090 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10093 if test -z "$LTCFLAGS"; then
10094 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10097 # Extract list of available tagged configurations in $ofile.
10098 # Note that this assumes the entire list is on one line.
10099 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10101 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
10102 for tagname
in $tagnames; do
10104 # Check whether tagname contains only valid characters
10105 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10107 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10108 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10109 { (exit 1); exit 1; }; }
10113 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
10115 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10116 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10117 { (exit 1); exit 1; }; }
10120 # Update the list of available tags.
10121 if test -n "$tagname"; then
10122 echo appending configuration tag
\"$tagname\" to
$ofile
10126 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10127 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10128 (test "X$CXX" != "Xg++"))) ; then
10130 ac_cpp
='$CXXCPP $CPPFLAGS'
10131 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10132 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10133 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10138 archive_cmds_need_lc_CXX
=no
10139 allow_undefined_flag_CXX
=
10140 always_export_symbols_CXX
=no
10141 archive_expsym_cmds_CXX
=
10142 export_dynamic_flag_spec_CXX
=
10143 hardcode_direct_CXX
=no
10144 hardcode_libdir_flag_spec_CXX
=
10145 hardcode_libdir_flag_spec_ld_CXX
=
10146 hardcode_libdir_separator_CXX
=
10147 hardcode_minus_L_CXX
=no
10148 hardcode_shlibpath_var_CXX
=unsupported
10149 hardcode_automatic_CXX
=no
10151 module_expsym_cmds_CXX
=
10152 link_all_deplibs_CXX
=unknown
10153 old_archive_cmds_CXX
=$old_archive_cmds
10154 no_undefined_flag_CXX
=
10155 whole_archive_flag_spec_CXX
=
10156 enable_shared_with_static_runtimes_CXX
=no
10158 # Dependencies to place before and after the object being linked:
10159 predep_objects_CXX
=
10160 postdep_objects_CXX
=
10163 compiler_lib_search_path_CXX
=
10165 # Source file extension for C++ test sources.
10168 # Object file extension for compiled C++ test sources.
10172 # Code to be used in simple compile tests
10173 lt_simple_compile_test_code
="int some_variable = 0;\n"
10175 # Code to be used in simple link tests
10176 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }\n'
10178 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10180 # If no C compiler was specified, use CC.
10183 # If no C compiler flags were specified, use CFLAGS.
10184 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
10186 # Allow CC to be a program name with arguments.
10190 # save warnings/boilerplate of simple test code
10191 ac_outfile
=conftest.
$ac_objext
10192 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
10193 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
10194 _lt_compiler_boilerplate
=`cat conftest.err`
10197 ac_outfile
=conftest.
$ac_objext
10198 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
10199 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
10200 _lt_linker_boilerplate
=`cat conftest.err`
10204 # Allow CC to be a program name with arguments.
10209 lt_save_with_gnu_ld
=$with_gnu_ld
10210 lt_save_path_LD
=$lt_cv_path_LD
10211 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10212 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
10214 $as_unset lt_cv_prog_gnu_ld
10216 if test -n "${lt_cv_path_LDCXX+set}"; then
10217 lt_cv_path_LD
=$lt_cv_path_LDCXX
10219 $as_unset lt_cv_path_LD
10221 test -z "${LDCXX+set}" || LD
=$LDCXX
10225 for cc_temp
in $compiler""; do
10227 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
10228 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
10233 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10236 # We don't want -fno-exception wen compiling C++ code, so set the
10237 # no_builtin_flag separately
10238 if test "$GXX" = yes; then
10239 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
10241 lt_prog_compiler_no_builtin_flag_CXX
=
10244 if test "$GXX" = yes; then
10245 # Set up default GNU C++ configuration
10248 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10249 if test "${with_gnu_ld+set}" = set; then
10250 withval
="$with_gnu_ld"
10251 test "$withval" = no || with_gnu_ld
=yes
10256 if test "$GCC" = yes; then
10257 # Check if gcc -print-prog-name=ld gives a path.
10258 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10259 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10262 # gcc leaves a trailing carriage return which upsets mingw
10263 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10265 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10268 # Accept absolute paths.
10270 re_direlt
='/[^/][^/]*/\.\./'
10271 # Canonicalize the pathname of ld
10272 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
10273 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10274 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10276 test -z "$LD" && LD
="$ac_prog"
10279 # If it fails, then pretend we aren't using GCC.
10283 # If it is relative, then search for the first ld in PATH.
10284 with_gnu_ld
=unknown
10287 elif test "$with_gnu_ld" = yes; then
10288 echo "$as_me:$LINENO: checking for GNU ld" >&5
10289 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10291 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10292 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10294 if test "${lt_cv_path_LD+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 if test -z "$LD"; then
10298 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
10299 for ac_dir
in $PATH; do
10301 test -z "$ac_dir" && ac_dir
=.
10302 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10303 lt_cv_path_LD
="$ac_dir/$ac_prog"
10304 # Check to see if the program is GNU ld. I'd rather use --version,
10305 # but apparently some variants of GNU ld only accept -v.
10306 # Break only if it was the GNU/non-GNU ld that we prefer.
10307 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10308 *GNU
* |
*'with BFD'*)
10309 test "$with_gnu_ld" != no
&& break
10312 test "$with_gnu_ld" != yes && break
10319 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
10323 LD
="$lt_cv_path_LD"
10324 if test -n "$LD"; then
10325 echo "$as_me:$LINENO: result: $LD" >&5
10326 echo "${ECHO_T}$LD" >&6
10328 echo "$as_me:$LINENO: result: no" >&5
10329 echo "${ECHO_T}no" >&6
10331 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10332 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10333 { (exit 1); exit 1; }; }
10334 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10335 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10336 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10340 case `$LD -v 2>&1 </dev/null` in
10341 *GNU
* |
*'with BFD'*)
10342 lt_cv_prog_gnu_ld
=yes
10345 lt_cv_prog_gnu_ld
=no
10349 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10350 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10351 with_gnu_ld
=$lt_cv_prog_gnu_ld
10355 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10356 # archiving commands below assume that GNU ld is being used.
10357 if test "$with_gnu_ld" = yes; then
10358 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10359 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'
10361 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
10362 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10364 # If archive_cmds runs LD, not CC, wlarc should be empty
10365 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10366 # investigate it a little bit more. (MM)
10369 # ancient GNU ld didn't support --whole-archive et. al.
10370 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10371 grep 'no-whole-archive' > /dev
/null
; then
10372 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10374 whole_archive_flag_spec_CXX
=
10380 # A generic and very simple default shared library creation
10381 # command for GNU C++ for the case where it uses the native
10382 # linker, instead of GNU ld. If possible, this setting should
10383 # overridden to take advantage of the native linker features on
10384 # the platform it is being used on.
10385 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10388 # Commands to make compiler produce verbose output that lists
10389 # what "hidden" libraries, object files and flags are used when
10390 # linking a shared library.
10391 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10399 # PORTME: fill in a description of your system's C++ link characteristics
10400 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10401 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10405 # FIXME: insert proper C++ library support
10409 if test "$host_cpu" = ia64
; then
10410 # On IA64, the linker does run time linking by default, so we don't
10411 # have to do anything special.
10412 aix_use_runtimelinking
=no
10413 exp_sym_flag
='-Bexport'
10416 aix_use_runtimelinking
=no
10418 # Test if we are trying to use run time linking or normal
10419 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10420 # need to do runtime linking.
10421 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
10422 for ld_flag
in $LDFLAGS; do
10425 aix_use_runtimelinking
=yes
10433 exp_sym_flag
='-bexport'
10434 no_entry_flag
='-bnoentry'
10437 # When large executables or shared objects are built, AIX ld can
10438 # have problems creating the table of contents. If linking a library
10439 # or program results in "error TOC overflow" add -mminimal-toc to
10440 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10441 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10443 archive_cmds_CXX
=''
10444 hardcode_direct_CXX
=yes
10445 hardcode_libdir_separator_CXX
=':'
10446 link_all_deplibs_CXX
=yes
10448 if test "$GXX" = yes; then
10449 case $host_os in aix4.
[012]|aix4.
[012].
*)
10450 # We only want to do this on AIX 4.2 and lower, the check
10451 # below for broken collect2 doesn't work under 4.3+
10452 collect2name
=`${CC} -print-prog-name=collect2`
10453 if test -f "$collect2name" && \
10454 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
10456 # We have reworked collect2
10457 hardcode_direct_CXX
=yes
10459 # We have old collect2
10460 hardcode_direct_CXX
=unsupported
10461 # It fails to find uninstalled libraries when the uninstalled
10462 # path is not listed in the libpath. Setting hardcode_minus_L
10463 # to unsupported forces relinking
10464 hardcode_minus_L_CXX
=yes
10465 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10466 hardcode_libdir_separator_CXX
=
10470 shared_flag
='-shared'
10471 if test "$aix_use_runtimelinking" = yes; then
10472 shared_flag
="$shared_flag "'${wl}-G'
10476 if test "$host_cpu" = ia64
; then
10477 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10478 # chokes on -Wl,-G. The following line is correct:
10481 if test "$aix_use_runtimelinking" = yes; then
10482 shared_flag
='${wl}-G'
10484 shared_flag
='${wl}-bM:SRE'
10489 # It seems that -bexpall does not export symbols beginning with
10490 # underscore (_), so it is better to generate a list of symbols to export.
10491 always_export_symbols_CXX
=yes
10492 if test "$aix_use_runtimelinking" = yes; then
10493 # Warning - without using the other runtime loading flags (-brtl),
10494 # -berok will link without error, but may produce a broken library.
10495 allow_undefined_flag_CXX
='-berok'
10496 # Determine the default libpath from the value encoded in an empty executable.
10497 cat >conftest.
$ac_ext <<_ACEOF
10500 cat confdefs.h
>>conftest.
$ac_ext
10501 cat >>conftest.
$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10512 rm -f conftest.
$ac_objext conftest
$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514 (eval $ac_link) 2>conftest.er1
10516 grep -v '^ *+' conftest.er1
>conftest.err
10518 cat conftest.err
>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try
='test -z "$ac_cxx_werror_flag"
10522 || test ! -s conftest.err'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try
='test -s conftest$ac_exeext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10535 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10537 # Check for a 64-bit object if we didn't find anything.
10538 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; }
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.
$ac_ext >&5
10545 rm -f conftest.err conftest.
$ac_objext \
10546 conftest
$ac_exeext conftest.
$ac_ext
10547 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10549 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10551 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10553 if test "$host_cpu" = ia64
; then
10554 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
10555 allow_undefined_flag_CXX
="-z nodefs"
10556 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10558 # Determine the default libpath from the value encoded in an empty executable.
10559 cat >conftest.
$ac_ext <<_ACEOF
10562 cat confdefs.h
>>conftest.
$ac_ext
10563 cat >>conftest.
$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10574 rm -f conftest.
$ac_objext conftest
$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>conftest.er1
10578 grep -v '^ *+' conftest.er1
>conftest.err
10580 cat conftest.err
>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try
='test -z "$ac_cxx_werror_flag"
10584 || test ! -s conftest.err'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; } &&
10590 { ac_try
='test -s conftest$ac_exeext'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; }; then
10597 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10599 # Check for a 64-bit object if we didn't find anything.
10600 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; }
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.
$ac_ext >&5
10607 rm -f conftest.err conftest.
$ac_objext \
10608 conftest
$ac_exeext conftest.
$ac_ext
10609 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10611 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10612 # Warning - without using the other run time loading flags,
10613 # -berok will link without error, but may produce a broken library.
10614 no_undefined_flag_CXX
=' ${wl}-bernotok'
10615 allow_undefined_flag_CXX
=' ${wl}-berok'
10616 # Exported symbols can be pulled into shared objects from archives
10617 whole_archive_flag_spec_CXX
='$convenience'
10618 archive_cmds_need_lc_CXX
=yes
10619 # This is similar to how AIX traditionally builds its shared libraries.
10620 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10626 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
10627 allow_undefined_flag_CXX
=unsupported
10628 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10629 # support --undefined. This deserves some investigation. FIXME
10630 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10637 case $cc_basename in
10639 # FIXME: insert proper C++ library support
10645 cygwin
* | mingw
* | pw32
*)
10646 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10647 # as there is no search path for DLLs.
10648 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10649 allow_undefined_flag_CXX
=unsupported
10650 always_export_symbols_CXX
=no
10651 enable_shared_with_static_runtimes_CXX
=yes
10653 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
10654 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10655 # If the export-symbols file already is a .def file (1st line
10656 # is EXPORTS), use it as is; otherwise, prepend...
10657 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10658 cp $export_symbols $output_objdir/$soname.def;
10660 echo EXPORTS > $output_objdir/$soname.def;
10661 cat $export_symbols >> $output_objdir/$soname.def;
10663 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10668 darwin
* | rhapsody
*)
10670 rhapsody
* | darwin1.
[012])
10671 allow_undefined_flag_CXX
='${wl}-undefined ${wl}suppress'
10674 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10675 allow_undefined_flag_CXX
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10677 case ${MACOSX_DEPLOYMENT_TARGET} in
10679 allow_undefined_flag_CXX
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10682 allow_undefined_flag_CXX
='${wl}-undefined ${wl}dynamic_lookup'
10688 archive_cmds_need_lc_CXX
=no
10689 hardcode_direct_CXX
=no
10690 hardcode_automatic_CXX
=yes
10691 hardcode_shlibpath_var_CXX
=unsupported
10692 whole_archive_flag_spec_CXX
=''
10693 link_all_deplibs_CXX
=yes
10695 if test "$GXX" = yes ; then
10696 lt_int_apple_cc_single_mod
=no
10697 output_verbose_link_cmd
='echo'
10698 if $CC -dumpspecs 2>&1 |
$EGREP 'single_module' >/dev
/null
; then
10699 lt_int_apple_cc_single_mod
=yes
10701 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
10702 archive_cmds_CXX
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10704 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'
10706 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10708 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
10709 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}'
10711 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}'
10713 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}'
10715 case $cc_basename in
10717 output_verbose_link_cmd
='echo'
10718 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'
10719 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10720 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10721 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}'
10722 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}'
10732 case $cc_basename in
10734 # FIXME: insert proper C++ library support
10738 # Green Hills C++ Compiler
10739 # FIXME: insert proper C++ library support
10743 # FIXME: insert proper C++ library support
10749 # C++ shared libraries reported to be fairly broken before switch to ELF
10753 archive_cmds_need_lc_CXX
=no
10755 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
10756 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10763 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10764 hardcode_libdir_separator_CXX
=:
10765 export_dynamic_flag_spec_CXX
='${wl}-E'
10766 hardcode_direct_CXX
=yes
10767 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10768 # but as the default
10769 # location of the library.
10771 case $cc_basename in
10773 # FIXME: insert proper C++ library support
10777 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'
10778 # Commands to make compiler produce verbose output that lists
10779 # what "hidden" libraries, object files and flags are used when
10780 # linking a shared library.
10782 # There doesn't appear to be a way to prevent this compiler from
10783 # explicitly linking system object files so we need to strip them
10784 # from the output so that they don't get included in the library
10786 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'
10789 if test "$GXX" = yes; then
10790 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'
10792 # FIXME: insert proper C++ library support
10799 if test $with_gnu_ld = no
; then
10800 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10801 hardcode_libdir_separator_CXX
=:
10805 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10808 export_dynamic_flag_spec_CXX
='${wl}-E'
10814 hardcode_direct_CXX
=no
10815 hardcode_shlibpath_var_CXX
=no
10818 hardcode_direct_CXX
=yes
10819 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10820 # but as the default
10821 # location of the library.
10825 case $cc_basename in
10827 # FIXME: insert proper C++ library support
10833 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10836 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10839 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10842 # Commands to make compiler produce verbose output that lists
10843 # what "hidden" libraries, object files and flags are used when
10844 # linking a shared library.
10846 # There doesn't appear to be a way to prevent this compiler from
10847 # explicitly linking system object files so we need to strip them
10848 # from the output so that they don't get included in the library
10850 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'
10853 if test "$GXX" = yes; then
10854 if test $with_gnu_ld = no
; then
10857 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10860 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10863 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'
10868 # FIXME: insert proper C++ library support
10875 hardcode_direct_CXX
=no
10876 hardcode_shlibpath_var_CXX
=no
10877 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10878 export_dynamic_flag_spec_CXX
='${wl}-E'
10879 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10880 # Instead, shared libraries are loaded at an image base (0x10000000 by
10881 # default) and relocated if they conflict, which is a slow very memory
10882 # consuming and fragmenting process. To avoid this, we pick a random,
10883 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10884 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10885 archive_cmds_CXX
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10886 archive_expsym_cmds_CXX
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10889 case $cc_basename in
10892 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'
10894 # Archives containing C++ object files must be created using
10895 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10896 # necessary to make sure instantiated templates are included
10898 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10901 if test "$GXX" = yes; then
10902 if test "$with_gnu_ld" = no
; then
10903 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'
10905 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'
10908 link_all_deplibs_CXX
=yes
10911 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10912 hardcode_libdir_separator_CXX
=:
10915 case $cc_basename in
10917 # Kuck and Associates, Inc. (KAI) C++ Compiler
10919 # KCC will only create a shared library if the output file
10920 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10921 # to its proper name (with version) after linking.
10922 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'
10923 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'
10924 # Commands to make compiler produce verbose output that lists
10925 # what "hidden" libraries, object files and flags are used when
10926 # linking a shared library.
10928 # There doesn't appear to be a way to prevent this compiler from
10929 # explicitly linking system object files so we need to strip them
10930 # from the output so that they don't get included in the library
10932 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'
10934 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
10935 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10937 # Archives containing C++ object files must be created using
10938 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10939 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10944 # version 8.0 and above of icpc choke on multiply defined symbols
10945 # if we add $predep_objects and $postdep_objects, however 7.1 and
10946 # earlier do not add the objects themselves.
10947 case `$CC -V 2>&1` in
10949 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10950 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'
10952 *) # Version 8.0 or newer
10955 ia64
*) tmp_idyn
=' -i_dynamic';;
10957 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10958 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'
10961 archive_cmds_need_lc_CXX
=no
10962 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10963 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10964 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10967 # Portland Group C++ compiler
10968 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10969 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10971 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
10972 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10973 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10977 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10978 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'
10980 runpath_var
=LD_RUN_PATH
10981 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10982 hardcode_libdir_separator_CXX
=:
10984 # Commands to make compiler produce verbose output that lists
10985 # what "hidden" libraries, object files and flags are used when
10986 # linking a shared library.
10988 # There doesn't appear to be a way to prevent this compiler from
10989 # explicitly linking system object files so we need to strip them
10990 # from the output so that they don't get included in the library
10992 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'
10997 # FIXME: insert proper C++ library support
11001 # FIXME: insert proper C++ library support
11005 case $cc_basename in
11007 # FIXME: insert proper C++ library support
11011 # FIXME: insert proper C++ library support
11017 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11018 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11020 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11021 hardcode_direct_CXX
=yes
11022 hardcode_shlibpath_var_CXX
=no
11024 # Workaround some broken pre-1.5 toolchains
11025 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11028 # C++ shared libraries are fairly broken
11032 hardcode_direct_CXX
=yes
11033 hardcode_shlibpath_var_CXX
=no
11034 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11035 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11037 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11038 export_dynamic_flag_spec_CXX
='${wl}-E'
11039 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11041 output_verbose_link_cmd
='echo'
11044 case $cc_basename in
11046 # Kuck and Associates, Inc. (KAI) C++ Compiler
11048 # KCC will only create a shared library if the output file
11049 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11050 # to its proper name (with version) after linking.
11051 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'
11053 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11054 hardcode_libdir_separator_CXX
=:
11056 # Archives containing C++ object files must be created using
11057 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11058 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11062 # Rational C++ 2.4.1
11063 # FIXME: insert proper C++ library support
11067 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11068 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'
11070 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11071 hardcode_libdir_separator_CXX
=:
11073 # Commands to make compiler produce verbose output that lists
11074 # what "hidden" libraries, object files and flags are used when
11075 # linking a shared library.
11077 # There doesn't appear to be a way to prevent this compiler from
11078 # explicitly linking system object files so we need to strip them
11079 # from the output so that they don't get included in the library
11081 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'
11084 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11085 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11086 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'
11088 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11089 hardcode_libdir_separator_CXX
=:
11091 # Commands to make compiler produce verbose output that lists
11092 # what "hidden" libraries, object files and flags are used when
11093 # linking a shared library.
11094 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11097 # FIXME: insert proper C++ library support
11104 case $cc_basename in
11106 # Kuck and Associates, Inc. (KAI) C++ Compiler
11108 # KCC will only create a shared library if the output file
11109 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11110 # to its proper name (with version) after linking.
11111 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'
11113 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11114 hardcode_libdir_separator_CXX
=:
11116 # Archives containing C++ object files must be created using
11117 # the KAI C++ compiler.
11118 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11121 # Rational C++ 2.4.1
11122 # FIXME: insert proper C++ library support
11126 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11127 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'
11128 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11129 echo "-hidden">> $lib.exp~
11130 $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~
11133 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11134 hardcode_libdir_separator_CXX
=:
11136 # Commands to make compiler produce verbose output that lists
11137 # what "hidden" libraries, object files and flags are used when
11138 # linking a shared library.
11140 # There doesn't appear to be a way to prevent this compiler from
11141 # explicitly linking system object files so we need to strip them
11142 # from the output so that they don't get included in the library
11144 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'
11147 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11148 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11149 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'
11151 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11152 hardcode_libdir_separator_CXX
=:
11154 # Commands to make compiler produce verbose output that lists
11155 # what "hidden" libraries, object files and flags are used when
11156 # linking a shared library.
11157 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11160 # FIXME: insert proper C++ library support
11167 # FIXME: insert proper C++ library support
11171 case $cc_basename in
11174 # FIXME: insert proper C++ library support
11179 # FIXME: insert proper C++ library support
11183 # FIXME: insert proper C++ library support
11189 case $cc_basename in
11191 # Sun C++ 4.2, 5.x and Centerline C++
11192 archive_cmds_need_lc_CXX
=yes
11193 no_undefined_flag_CXX
=' -zdefs'
11194 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11195 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11196 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11198 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11199 hardcode_shlibpath_var_CXX
=no
11201 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11203 # The C++ compiler is used as linker so we must use $wl
11204 # flag to pass the commands to the underlying system
11205 # linker. We must also pass each convience library through
11206 # to the system linker between allextract/defaultextract.
11207 # The C++ compiler will combine linker options so we
11208 # cannot just pass the convience library names through
11210 # Supported since Solaris 2.6 (maybe 2.5.1?)
11211 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'
11214 link_all_deplibs_CXX
=yes
11216 output_verbose_link_cmd
='echo'
11218 # Archives containing C++ object files must be created using
11219 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11220 # necessary to make sure instantiated templates are included
11222 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11225 # Green Hills C++ Compiler
11226 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11228 # The C++ compiler must be used to create the archive.
11229 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11232 # GNU C++ compiler with Solaris linker
11233 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11234 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11235 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11236 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11237 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11238 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11240 # Commands to make compiler produce verbose output that lists
11241 # what "hidden" libraries, object files and flags are used when
11242 # linking a shared library.
11243 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11245 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11247 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11248 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11249 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11251 # Commands to make compiler produce verbose output that lists
11252 # what "hidden" libraries, object files and flags are used when
11253 # linking a shared library.
11254 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11257 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11262 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11263 no_undefined_flag_CXX
='${wl}-z,text'
11264 archive_cmds_need_lc_CXX
=no
11265 hardcode_shlibpath_var_CXX
=no
11266 runpath_var
='LD_RUN_PATH'
11268 case $cc_basename in
11270 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11271 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11274 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11275 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11279 sysv5
* | sco3.2v5
* | sco5v6
*)
11280 # Note: We can NOT use -z defs as we might desire, because we do not
11281 # link with -lc, and that would cause any symbols used from libc to
11282 # always be unresolved, which means just about no library would
11283 # ever link correctly. If we're not using GNU ld we use -z text
11284 # though, which does catch some bad symbols but isn't as heavy-handed
11286 # For security reasons, it is highly recommended that you always
11287 # use absolute paths for naming shared libraries, and exclude the
11288 # DT_RUNPATH tag from executables and libraries. But doing so
11289 # requires that you compile everything twice, which is a pain.
11290 # So that behaviour is only enabled if SCOABSPATH is set to a
11291 # non-empty value in the environment. Most likely only useful for
11292 # creating official distributions of packages.
11293 # This is a hack until libtool officially supports absolute path
11294 # names for shared libraries.
11295 no_undefined_flag_CXX
='${wl}-z,text'
11296 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11297 archive_cmds_need_lc_CXX
=no
11298 hardcode_shlibpath_var_CXX
=no
11299 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11300 hardcode_libdir_separator_CXX
=':'
11301 link_all_deplibs_CXX
=yes
11302 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11303 runpath_var
='LD_RUN_PATH'
11305 case $cc_basename in
11307 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11308 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11311 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11312 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11317 case $cc_basename in
11319 # NonStop-UX NCC 3.20
11320 # FIXME: insert proper C++ library support
11324 # FIXME: insert proper C++ library support
11330 # FIXME: insert proper C++ library support
11334 # FIXME: insert proper C++ library support
11338 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11339 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11340 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11346 cat > conftest.
$ac_ext <<EOF
11350 Foo (void) { a = 0; }
11356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357 (eval $ac_compile) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; then
11361 # Parse the compiler output and extract the necessary
11362 # objects, libraries and library flags.
11364 # Sentinel used to keep track of whether or not we are before
11365 # the conftest object file.
11366 pre_test_object_deps_done
=no
11368 # The `*' in the case matches for architectures that use `case' in
11369 # $output_verbose_cmd can trigger glob expansion during the loop
11370 # eval without this substitution.
11371 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11373 for p
in `eval $output_verbose_link_cmd`; do
11377 # Some compilers place space between "-{L,R}" and the path.
11378 # Remove the space.
11379 if test $p = "-L" \
11380 ||
test $p = "-R"; then
11387 if test "$pre_test_object_deps_done" = no
; then
11390 # Internal compiler library paths should come after those
11391 # provided the user. The postdeps already come after the
11392 # user supplied libs so there is no need to process them.
11393 if test -z "$compiler_lib_search_path_CXX"; then
11394 compiler_lib_search_path_CXX
="${prev}${p}"
11396 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11399 # The "-l" case would never come before the object being
11400 # linked, so don't bother handling this case.
11403 if test -z "$postdeps_CXX"; then
11404 postdeps_CXX
="${prev}${p}"
11406 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11412 # This assumes that the test object file only shows up
11413 # once in the compiler output.
11414 if test "$p" = "conftest.$objext"; then
11415 pre_test_object_deps_done
=yes
11419 if test "$pre_test_object_deps_done" = no
; then
11420 if test -z "$predep_objects_CXX"; then
11421 predep_objects_CXX
="$p"
11423 predep_objects_CXX
="$predep_objects_CXX $p"
11426 if test -z "$postdep_objects_CXX"; then
11427 postdep_objects_CXX
="$p"
11429 postdep_objects_CXX
="$postdep_objects_CXX $p"
11434 *) ;; # Ignore the rest.
11442 echo "libtool.m4: error: problem compiling CXX test program"
11445 $rm -f confest.
$objext
11447 # PORTME: override above test on systems where it is broken
11450 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11451 # hack all around it, let's just trust "g++" to DTRT.
11452 predep_objects_CXX
=
11453 postdep_objects_CXX
=
11458 case $cc_basename in
11460 # Adding this requires a known-good setup of shared libraries for
11461 # Sun compiler versions before 5.6, else PIC objects from an old
11462 # archive will be linked into the output, leading to subtle bugs.
11463 postdeps_CXX
='-lCstd -lCrun'
11470 case " $postdeps_CXX " in
11471 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
11474 lt_prog_compiler_wl_CXX
=
11475 lt_prog_compiler_pic_CXX
=
11476 lt_prog_compiler_static_CXX
=
11478 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11479 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11481 # C++ specific cases for pic, static, wl, etc.
11482 if test "$GXX" = yes; then
11483 lt_prog_compiler_wl_CXX
='-Wl,'
11484 lt_prog_compiler_static_CXX
='-static'
11488 # All AIX code is PIC.
11489 if test "$host_cpu" = ia64
; then
11490 # AIX 5 now supports IA64 processor
11491 lt_prog_compiler_static_CXX
='-Bstatic'
11495 # FIXME: we need at least 68020 code to build shared libraries, but
11496 # adding the `-m68020' flag to GCC prevents building anything better,
11498 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11500 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11501 # PIC is the default for these OSes.
11503 mingw
* | os2
* | pw32
*)
11504 # This hack is so that the source file can tell whether it is being
11505 # built for inclusion in a dll (and should export symbols for example).
11506 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11508 darwin
* | rhapsody
*)
11509 # PIC is the default on this platform
11510 # Common symbols not allowed in MH_DYLIB files
11511 lt_prog_compiler_pic_CXX
='-fno-common'
11514 # DJGPP does not support shared libraries at all
11515 lt_prog_compiler_pic_CXX
=
11518 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11519 # Instead, we relocate shared libraries at runtime.
11522 if test -d /usr
/nec
; then
11523 lt_prog_compiler_pic_CXX
=-Kconform_pic
11527 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11528 # not for PA HP-UX.
11533 lt_prog_compiler_pic_CXX
='-fPIC'
11538 lt_prog_compiler_pic_CXX
='-fPIC'
11544 # All AIX code is PIC.
11545 if test "$host_cpu" = ia64
; then
11546 # AIX 5 now supports IA64 processor
11547 lt_prog_compiler_static_CXX
='-Bstatic'
11549 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11553 case $cc_basename in
11555 # Green Hills C++ Compiler
11556 # _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"
11561 # PIC is the default on this platform
11562 # Common symbols not allowed in MH_DYLIB files
11563 case $cc_basename in
11565 lt_prog_compiler_pic_CXX
='-qnocommon'
11566 lt_prog_compiler_wl_CXX
='-Wl,'
11571 case $cc_basename in
11573 lt_prog_compiler_pic_CXX
='-KPIC'
11576 # Green Hills C++ Compiler
11577 lt_prog_compiler_pic_CXX
='-pic'
11583 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
11584 # FreeBSD uses GNU C++
11586 hpux9
* | hpux10
* | hpux11
*)
11587 case $cc_basename in
11589 lt_prog_compiler_wl_CXX
='-Wl,'
11590 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11591 if test "$host_cpu" != ia64
; then
11592 lt_prog_compiler_pic_CXX
='+Z'
11596 lt_prog_compiler_wl_CXX
='-Wl,'
11597 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11603 lt_prog_compiler_pic_CXX
='+Z'
11612 # This is c89, which is MS Visual C++ (no shared libs)
11613 # Anyone wants to do a port?
11615 irix5
* | irix6
* | nonstopux
*)
11616 case $cc_basename in
11618 lt_prog_compiler_wl_CXX
='-Wl,'
11619 lt_prog_compiler_static_CXX
='-non_shared'
11620 # CC pic flag -KPIC is the default.
11627 case $cc_basename in
11630 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11631 lt_prog_compiler_pic_CXX
='-fPIC'
11635 lt_prog_compiler_wl_CXX
='-Wl,'
11636 lt_prog_compiler_pic_CXX
='-KPIC'
11637 lt_prog_compiler_static_CXX
='-static'
11640 # Portland Group C++ compiler.
11641 lt_prog_compiler_wl_CXX
='-Wl,'
11642 lt_prog_compiler_pic_CXX
='-fpic'
11643 lt_prog_compiler_static_CXX
='-Bstatic'
11647 # Make sure the PIC flag is empty. It appears that all Alpha
11648 # Linux and Compaq Tru64 Unix objects are PIC.
11649 lt_prog_compiler_pic_CXX
=
11650 lt_prog_compiler_static_CXX
='-non_shared'
11661 case $cc_basename in
11663 lt_prog_compiler_pic_CXX
='-W c,exportall'
11671 osf3
* | osf4
* | osf5
*)
11672 case $cc_basename in
11674 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11677 # Rational C++ 2.4.1
11678 lt_prog_compiler_pic_CXX
='-pic'
11681 # Digital/Compaq C++
11682 lt_prog_compiler_wl_CXX
='-Wl,'
11683 # Make sure the PIC flag is empty. It appears that all Alpha
11684 # Linux and Compaq Tru64 Unix objects are PIC.
11685 lt_prog_compiler_pic_CXX
=
11686 lt_prog_compiler_static_CXX
='-non_shared'
11695 case $cc_basename in
11697 # Sun C++ 4.2, 5.x and Centerline C++
11698 lt_prog_compiler_pic_CXX
='-KPIC'
11699 lt_prog_compiler_static_CXX
='-Bstatic'
11700 lt_prog_compiler_wl_CXX
='-Qoption ld '
11703 # Green Hills C++ Compiler
11704 lt_prog_compiler_pic_CXX
='-PIC'
11711 case $cc_basename in
11714 lt_prog_compiler_pic_CXX
='-pic'
11715 lt_prog_compiler_static_CXX
='-Bstatic'
11719 lt_prog_compiler_pic_CXX
='-pic'
11726 case $cc_basename in
11728 # NonStop-UX NCC 3.20
11729 lt_prog_compiler_pic_CXX
='-KPIC'
11735 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
11736 case $cc_basename in
11738 lt_prog_compiler_wl_CXX
='-Wl,'
11739 lt_prog_compiler_pic_CXX
='-KPIC'
11740 lt_prog_compiler_static_CXX
='-Bstatic'
11747 lt_prog_compiler_can_build_shared_CXX
=no
11752 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11753 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11756 # Check to make sure the PIC flag actually works.
11758 if test -n "$lt_prog_compiler_pic_CXX"; then
11760 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11761 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11762 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 lt_prog_compiler_pic_works_CXX
=no
11766 ac_outfile
=conftest.
$ac_objext
11767 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11768 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11769 # Insert the option either (1) after the last *FLAGS variable, or
11770 # (2) before a word containing "conftest.", or (3) at the end.
11771 # Note that $ac_compile itself does not contain backslashes and begins
11772 # with a dollar sign (not a hyphen), so the echo should work correctly.
11773 # The option is referenced via a variable to avoid confusing sed.
11774 lt_compile
=`echo "$ac_compile" | $SED \
11775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11777 -e 's:$: $lt_compiler_flag:'`
11778 (eval echo "\"\$as_me:11778: $lt_compile\"" >&5)
11779 (eval "$lt_compile" 2>conftest.err
)
11781 cat conftest.err
>&5
11782 echo "$as_me:11782: \$? = $ac_status" >&5
11783 if (exit $ac_status) && test -s "$ac_outfile"; then
11784 # The compiler can only warn and ignore the option if not recognized
11785 # So say no if there are warnings other than the usual output.
11786 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
11787 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11788 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11789 lt_prog_compiler_pic_works_CXX
=yes
11795 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11796 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11798 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11799 case $lt_prog_compiler_pic_CXX in
11801 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11804 lt_prog_compiler_pic_CXX
=
11805 lt_prog_compiler_can_build_shared_CXX
=no
11810 # For platforms which do not support PIC, -DPIC is meaningless:
11812 lt_prog_compiler_pic_CXX
=
11815 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11820 # Check to make sure the static flag actually works.
11822 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
11823 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11824 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11825 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 lt_prog_compiler_static_works_CXX
=no
11829 save_LDFLAGS
="$LDFLAGS"
11830 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
11831 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
11832 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11833 # The linker can only warn and ignore the option if not recognized
11834 # So say no if there are warnings
11835 if test -s conftest.err
; then
11836 # Append any errors to the config.log.
11837 cat conftest.err
1>&5
11838 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
11839 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11840 if diff conftest.exp conftest.er2
>/dev
/null
; then
11841 lt_prog_compiler_static_works_CXX
=yes
11844 lt_prog_compiler_static_works_CXX
=yes
11848 LDFLAGS
="$save_LDFLAGS"
11851 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11852 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11854 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
11857 lt_prog_compiler_static_CXX
=
11861 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11862 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11863 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 lt_cv_prog_compiler_c_o_CXX
=no
11867 $rm -r conftest
2>/dev
/null
11871 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11873 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11874 # Insert the option either (1) after the last *FLAGS variable, or
11875 # (2) before a word containing "conftest.", or (3) at the end.
11876 # Note that $ac_compile itself does not contain backslashes and begins
11877 # with a dollar sign (not a hyphen), so the echo should work correctly.
11878 lt_compile
=`echo "$ac_compile" | $SED \
11879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11881 -e 's:$: $lt_compiler_flag:'`
11882 (eval echo "\"\$as_me:11882: $lt_compile\"" >&5)
11883 (eval "$lt_compile" 2>out
/conftest.err
)
11885 cat out
/conftest.err
>&5
11886 echo "$as_me:11886: \$? = $ac_status" >&5
11887 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11889 # The compiler can only warn and ignore the option if not recognized
11890 # So say no if there are warnings
11891 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
11892 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
11893 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
11894 lt_cv_prog_compiler_c_o_CXX
=yes
11899 # SGI C++ compiler will create directory out/ii_files/ for
11900 # template instantiation
11901 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11902 $rm out
/* && rmdir out
11908 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11909 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11912 hard_links
="nottested"
11913 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11914 # do not overwrite the value of need_locks provided by the user
11915 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11916 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11919 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11921 ln conftest.a conftest.b
2>&5 || hard_links
=no
11922 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11923 echo "$as_me:$LINENO: result: $hard_links" >&5
11924 echo "${ECHO_T}$hard_links" >&6
11925 if test "$hard_links" = no
; then
11926 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11927 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11934 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11937 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11940 # If we're using GNU nm, then we don't want the "-C" option.
11941 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11942 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11943 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'
11945 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'
11949 export_symbols_cmds_CXX
="$ltdll_cmds"
11952 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'
11955 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11959 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11960 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11961 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11964 # Do we need to explicitly link libc?
11966 case "x$archive_cmds_need_lc_CXX" in
11968 # Assume -lc should be added
11969 archive_cmds_need_lc_CXX
=yes
11971 if test "$enable_shared" = yes && test "$GCC" = yes; then
11972 case $archive_cmds_CXX in
11974 # FIXME: we may have to deal with multi-command sequences.
11977 # Test whether the compiler implicitly links with -lc since on some
11978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11979 # to ld, don't add -lc before -lgcc.
11980 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11981 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11983 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11986 (eval $ac_compile) 2>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } 2>conftest.err
; then
11992 libobjs
=conftest.
$ac_objext
11994 wl
=$lt_prog_compiler_wl_CXX
11995 pic_flag
=$lt_prog_compiler_pic_CXX
12001 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12002 allow_undefined_flag_CXX
=
12003 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12004 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }
12009 archive_cmds_need_lc_CXX
=no
12011 archive_cmds_need_lc_CXX
=yes
12013 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12015 cat conftest.err
1>&5
12018 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12019 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12026 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12028 library_names_spec
=
12029 libname_spec
='lib$name'
12033 postuninstall_cmds
=
12037 shlibpath_overrides_runpath
=unknown
12039 dynamic_linker
="$host_os ld.so"
12040 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12041 if test "$GCC" = yes; then
12042 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12043 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
12044 # if the path contains ";" then we assume it to be the separator
12045 # otherwise default to the standard path separator (i.e. ":") - it is
12046 # assumed that no part of a normal pathname contains ";" but that should
12047 # okay in the real world where ";" in dirpaths is itself problematic.
12048 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12050 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12053 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12055 need_lib_prefix
=unknown
12056 hardcode_into_libs
=no
12058 # when you set need_version to no, make sure it does not cause -set_version
12059 # flags to be left without arguments
12060 need_version
=unknown
12065 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12066 shlibpath_var
=LIBPATH
12068 # AIX 3 has no versioning support, so we append a major version to the name.
12069 soname_spec
='${libname}${release}${shared_ext}$major'
12076 hardcode_into_libs
=yes
12077 if test "$host_cpu" = ia64
; then
12078 # AIX 5 supports IA64
12079 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12080 shlibpath_var
=LD_LIBRARY_PATH
12082 # With GCC up to 2.95.x, collect2 would create an import file
12083 # for dependence libraries. The import file would start with
12084 # the line `#! .'. This would cause the generated library to
12085 # depend on `.', always an invalid library. This was fixed in
12086 # development snapshots of GCC prior to 3.0.
12088 aix4 | aix4.
[01] | aix4.
[01].
*)
12089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12091 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12094 can_build_shared
=no
12098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12099 # soname into executable. Probably we can add versioning support to
12100 # collect2, so additional links can be useful in future.
12101 if test "$aix_use_runtimelinking" = yes; then
12102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12103 # instead of lib<name>.a to let people know that these are not
12104 # typical AIX shared libraries.
12105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12107 # We preserve .a as extension for shared libraries through AIX4.2
12108 # and later when we are not doing run time linking.
12109 library_names_spec
='${libname}${release}.a $libname.a'
12110 soname_spec
='${libname}${release}${shared_ext}$major'
12112 shlibpath_var
=LIBPATH
12117 library_names_spec
='$libname.ixlibrary $libname.a'
12118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12119 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'
12123 library_names_spec
='${libname}${shared_ext}'
12124 dynamic_linker
="$host_os ld.so"
12125 shlibpath_var
=LIBRARY_PATH
12131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12132 soname_spec
='${libname}${release}${shared_ext}$major'
12133 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12134 shlibpath_var
=LD_LIBRARY_PATH
12135 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12136 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12137 # the default ld.so.conf also contains /usr/contrib/lib and
12138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12139 # libtool to hard-code these into programs
12142 cygwin
* | mingw
* | pw32
*)
12143 version_type
=windows
12148 case $GCC,$host_os in
12149 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12150 library_names_spec
='$libname.dll.a'
12151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12152 postinstall_cmds
='base_file=`basename \${file}`~
12153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12154 dldir=$destdir/`dirname \$dlpath`~
12155 test -d \$dldir || mkdir -p \$dldir~
12156 $install_prog $dir/$dlname \$dldir/$dlname~
12157 chmod a+x \$dldir/$dlname'
12158 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12159 dlpath=$dir/\$dldll~
12161 shlibpath_overrides_runpath
=yes
12165 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12166 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12167 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12170 # MinGW DLLs use traditional 'lib' prefix
12171 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12172 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12173 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12174 # It is most probably a Windows format PATH printed by
12175 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12176 # path with ; separators, and with drive letters. We can handle the
12177 # drive letters (cygwin fileutils understands them), so leave them,
12178 # especially as we might pass files found there to a mingw objdump,
12179 # which wouldn't understand a cygwinified path. Ahh.
12180 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12182 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12186 # pw32 DLLs use 'pw' prefix rather than 'lib'
12187 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12193 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12196 dynamic_linker
='Win32 ld.exe'
12197 # FIXME: first we should search . and the directory the executable is in
12201 darwin
* | rhapsody
*)
12202 dynamic_linker
="$host_os dyld"
12203 version_type
=darwin
12206 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12207 soname_spec
='${libname}${release}${major}$shared_ext'
12208 shlibpath_overrides_runpath
=yes
12209 shlibpath_var
=DYLD_LIBRARY_PATH
12210 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12211 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12212 if test "$GCC" = yes; then
12213 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"`
12215 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12217 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12225 soname_spec
='${libname}${release}${shared_ext}$major'
12226 shlibpath_var
=LD_LIBRARY_PATH
12237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12238 soname_spec
='${libname}${release}${shared_ext}$major'
12239 shlibpath_var
=LD_LIBRARY_PATH
12240 shlibpath_overrides_runpath
=no
12241 hardcode_into_libs
=yes
12242 dynamic_linker
='GNU ld.so'
12245 freebsd
* | dragonfly
*)
12246 # DragonFly does not have aout. When/if they implement a new
12247 # versioning mechanism, adjust this.
12248 if test -x /usr
/bin
/objformat
; then
12249 objformat
=`/usr/bin/objformat`
12252 freebsd
[123]*) objformat
=aout
;;
12253 *) objformat
=elf
;;
12256 version_type
=freebsd-
$objformat
12257 case $version_type in
12259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12264 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12268 shlibpath_var
=LD_LIBRARY_PATH
12271 shlibpath_overrides_runpath
=yes
12273 freebsd3.
[01]* | freebsdelf3.
[01]*)
12274 shlibpath_overrides_runpath
=yes
12275 hardcode_into_libs
=yes
12277 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12278 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12279 shlibpath_overrides_runpath
=no
12280 hardcode_into_libs
=yes
12282 freebsd
*) # from 4.6 on
12283 shlibpath_overrides_runpath
=yes
12284 hardcode_into_libs
=yes
12293 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12294 soname_spec
='${libname}${release}${shared_ext}$major'
12295 shlibpath_var
=LD_LIBRARY_PATH
12296 hardcode_into_libs
=yes
12299 hpux9
* | hpux10
* | hpux11
*)
12300 # Give a soname corresponding to the major version so that dld.sl refuses to
12301 # link against other versions.
12308 hardcode_into_libs
=yes
12309 dynamic_linker
="$host_os dld.so"
12310 shlibpath_var
=LD_LIBRARY_PATH
12311 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12313 soname_spec
='${libname}${release}${shared_ext}$major'
12314 if test "X$HPUX_IA64_MODE" = X32
; then
12315 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12317 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12319 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12323 hardcode_into_libs
=yes
12324 dynamic_linker
="$host_os dld.sl"
12325 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12326 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12327 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328 soname_spec
='${libname}${release}${shared_ext}$major'
12329 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12330 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12334 dynamic_linker
="$host_os dld.sl"
12335 shlibpath_var
=SHLIB_PATH
12336 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12338 soname_spec
='${libname}${release}${shared_ext}$major'
12341 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12342 postinstall_cmds
='chmod 555 $lib'
12349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12350 soname_spec
='${libname}${release}${shared_ext}$major'
12351 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12352 shlibpath_var
=LD_LIBRARY_PATH
12353 shlibpath_overrides_runpath
=no
12354 hardcode_into_libs
=yes
12357 irix5
* | irix6
* | nonstopux
*)
12359 nonstopux
*) version_type
=nonstopux
;;
12361 if test "$lt_cv_prog_gnu_ld" = yes; then
12369 soname_spec
='${libname}${release}${shared_ext}$major'
12370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12372 irix5
* | nonstopux
*)
12373 libsuff
= shlibsuff
=
12376 case $LD in # libtool.m4 will add one of these switches to LD
12377 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12378 libsuff
= shlibsuff
= libmagic
=32-bit;;
12379 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12380 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12381 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12382 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12383 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12387 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12388 shlibpath_overrides_runpath
=no
12389 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12390 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12391 hardcode_into_libs
=yes
12394 # No shared lib support for Linux oldld, aout, or coff.
12395 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12399 # This must be Linux ELF.
12404 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12405 soname_spec
='${libname}${release}${shared_ext}$major'
12406 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12407 shlibpath_var
=LD_LIBRARY_PATH
12408 shlibpath_overrides_runpath
=no
12409 # This implies no fast_install, which is unacceptable.
12410 # Some rework will be needed to allow for fast_install
12411 # before this can be enabled.
12412 hardcode_into_libs
=yes
12414 # find out which ABI we are using
12416 case "$host_cpu" in
12417 x86_64
*|s390x
*|powerpc64
*)
12418 echo '#line 12418 "configure"' > conftest.
$ac_ext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; then
12424 case `/usr/bin/file conftest.$ac_objext` in
12427 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12435 # Append ld.so.conf contents to the search path
12436 if test -f /etc
/ld.so.conf
; then
12437 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12438 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12441 # We used to test for /lib/ld.so.1 and disable shared libraries on
12442 # powerpc, because MkLinux only supported shared libraries with the
12443 # GNU dynamic linker. Since this was broken with cross compilers,
12444 # most powerpc-linux boxes support dynamic linking these days and
12445 # people can always --disable-shared, the test was removed, and we
12446 # assume the GNU/Linux dynamic linker is in use.
12447 dynamic_linker
='GNU/Linux ld.so'
12454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12455 soname_spec
='${libname}${release}${shared_ext}$major'
12456 shlibpath_var
=LD_LIBRARY_PATH
12457 shlibpath_overrides_runpath
=no
12458 hardcode_into_libs
=yes
12459 dynamic_linker
='GNU ld.so'
12466 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12467 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12468 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12469 dynamic_linker
='NetBSD (a.out) ld.so'
12471 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12472 soname_spec
='${libname}${release}${shared_ext}$major'
12473 dynamic_linker
='NetBSD ld.elf_so'
12475 shlibpath_var
=LD_LIBRARY_PATH
12476 shlibpath_overrides_runpath
=yes
12477 hardcode_into_libs
=yes
12482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12483 shlibpath_var
=LD_LIBRARY_PATH
12484 shlibpath_overrides_runpath
=yes
12491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12492 soname_spec
='${libname}${release}${shared_ext}$major'
12493 shlibpath_var
=LD_LIBRARY_PATH
12494 shlibpath_overrides_runpath
=yes
12499 sys_lib_dlsearch_path_spec
="/usr/lib"
12501 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12503 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12504 *) need_version
=no
;;
12506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12507 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12508 shlibpath_var
=LD_LIBRARY_PATH
12509 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12511 openbsd2.
[89] | openbsd2.
[89].
*)
12512 shlibpath_overrides_runpath
=no
12515 shlibpath_overrides_runpath
=yes
12519 shlibpath_overrides_runpath
=yes
12524 libname_spec
='$name'
12527 library_names_spec
='$libname${shared_ext} $libname.a'
12528 dynamic_linker
='OS/2 ld.exe'
12529 shlibpath_var
=LIBPATH
12532 osf3
* | osf4
* | osf5
*)
12536 soname_spec
='${libname}${release}${shared_ext}$major'
12537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12538 shlibpath_var
=LD_LIBRARY_PATH
12539 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12540 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12548 soname_spec
='${libname}${release}${shared_ext}$major'
12549 shlibpath_var
=LD_LIBRARY_PATH
12550 shlibpath_overrides_runpath
=yes
12551 hardcode_into_libs
=yes
12552 # ldd complains unless libraries are executable
12553 postinstall_cmds
='chmod +x $lib'
12558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12559 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12560 shlibpath_var
=LD_LIBRARY_PATH
12561 shlibpath_overrides_runpath
=yes
12562 if test "$with_gnu_ld" = yes; then
12570 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12571 soname_spec
='${libname}${release}${shared_ext}$major'
12572 shlibpath_var
=LD_LIBRARY_PATH
12573 case $host_vendor in
12575 shlibpath_overrides_runpath
=no
12577 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12578 runpath_var
=LD_RUN_PATH
12586 shlibpath_overrides_runpath
=no
12587 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12593 if test -d /usr
/nec
;then
12595 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12596 soname_spec
='$libname${shared_ext}.$major'
12597 shlibpath_var
=LD_LIBRARY_PATH
12601 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12602 version_type
=freebsd-elf
12605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12606 soname_spec
='${libname}${release}${shared_ext}$major'
12607 shlibpath_var
=LD_LIBRARY_PATH
12608 hardcode_into_libs
=yes
12609 if test "$with_gnu_ld" = yes; then
12610 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12611 shlibpath_overrides_runpath
=no
12613 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12614 shlibpath_overrides_runpath
=yes
12617 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12621 sys_lib_dlsearch_path_spec
='/usr/lib'
12626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627 soname_spec
='${libname}${release}${shared_ext}$major'
12628 shlibpath_var
=LD_LIBRARY_PATH
12635 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12636 echo "${ECHO_T}$dynamic_linker" >&6
12637 test "$dynamic_linker" = no
&& can_build_shared
=no
12639 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12640 if test "$GCC" = yes; then
12641 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12644 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12645 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12646 hardcode_action_CXX
=
12647 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12648 test -n "$runpath_var_CXX" || \
12649 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12651 # We can hardcode non-existant directories.
12652 if test "$hardcode_direct_CXX" != no
&&
12653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12654 # have to relink, otherwise we might link with an installed library
12655 # when we should be linking with a yet-to-be-installed one
12656 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12657 test "$hardcode_minus_L_CXX" != no
; then
12658 # Linking always hardcodes the temporary library directory.
12659 hardcode_action_CXX
=relink
12661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12662 hardcode_action_CXX
=immediate
12665 # We cannot hardcode anything, or else we can only hardcode existing
12667 hardcode_action_CXX
=unsupported
12669 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12670 echo "${ECHO_T}$hardcode_action_CXX" >&6
12672 if test "$hardcode_action_CXX" = relink
; then
12673 # Fast installation is not supported
12674 enable_fast_install
=no
12675 elif test "$shlibpath_overrides_runpath" = yes ||
12676 test "$enable_shared" = no
; then
12677 # Fast installation is not necessary
12678 enable_fast_install
=needless
12682 # The else clause should only fire when bootstrapping the
12683 # libtool distribution, otherwise you forgot to ship ltmain.sh
12684 # with your package, and you will get complaints that there are
12685 # no rules to generate ltmain.sh.
12686 if test -f "$ltmain"; then
12687 # See if we are running on zsh, and set the options which allow our commands through
12688 # without removal of \ escapes.
12689 if test -n "${ZSH_VERSION+set}" ; then
12690 setopt NO_GLOB_SUBST
12692 # Now quote all the things that may contain metacharacters while being
12693 # careful not to overquote the AC_SUBSTed values. We take copies of the
12694 # variables and quote the copies for generation of the libtool script.
12695 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12697 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12698 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12699 deplibs_check_method reload_flag reload_cmds need_locks \
12700 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12701 lt_cv_sys_global_symbol_to_c_name_address \
12702 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12703 old_postinstall_cmds old_postuninstall_cmds \
12707 lt_prog_compiler_wl_CXX \
12708 lt_prog_compiler_pic_CXX \
12709 lt_prog_compiler_static_CXX \
12710 lt_prog_compiler_no_builtin_flag_CXX \
12711 export_dynamic_flag_spec_CXX \
12712 thread_safe_flag_spec_CXX \
12713 whole_archive_flag_spec_CXX \
12714 enable_shared_with_static_runtimes_CXX \
12715 old_archive_cmds_CXX \
12716 old_archive_from_new_cmds_CXX \
12717 predep_objects_CXX \
12718 postdep_objects_CXX \
12721 compiler_lib_search_path_CXX \
12723 archive_expsym_cmds_CXX \
12724 postinstall_cmds_CXX \
12725 postuninstall_cmds_CXX \
12726 old_archive_from_expsyms_cmds_CXX \
12727 allow_undefined_flag_CXX \
12728 no_undefined_flag_CXX \
12729 export_symbols_cmds_CXX \
12730 hardcode_libdir_flag_spec_CXX \
12731 hardcode_libdir_flag_spec_ld_CXX \
12732 hardcode_libdir_separator_CXX \
12733 hardcode_automatic_CXX \
12735 module_expsym_cmds_CXX \
12736 lt_cv_prog_compiler_c_o_CXX \
12737 exclude_expsyms_CXX \
12738 include_expsyms_CXX
; do
12741 old_archive_cmds_CXX | \
12742 old_archive_from_new_cmds_CXX | \
12743 archive_cmds_CXX | \
12744 archive_expsym_cmds_CXX | \
12745 module_cmds_CXX | \
12746 module_expsym_cmds_CXX | \
12747 old_archive_from_expsyms_cmds_CXX | \
12748 export_symbols_cmds_CXX | \
12749 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12750 postinstall_cmds | postuninstall_cmds | \
12751 old_postinstall_cmds | old_postuninstall_cmds | \
12752 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
12753 # Double-quote double-evaled strings.
12754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12763 *'\$0 --fallback-echo"')
12764 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12770 cat <<__EOF__ >> "$cfgfile"
12771 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12775 # Shell to use when invoking shell scripts.
12778 # Whether or not to build shared libraries.
12779 build_libtool_libs=$enable_shared
12781 # Whether or not to build static libraries.
12782 build_old_libs=$enable_static
12784 # Whether or not to add -lc for building shared libraries.
12785 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12787 # Whether or not to disallow shared libs when runtime libs are static
12788 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12790 # Whether or not to optimize for fast installation.
12791 fast_install=$enable_fast_install
12794 host_alias=$host_alias
12798 # The build system.
12799 build_alias=$build_alias
12803 # An echo program that does not interpret backslashes.
12808 AR_FLAGS=$lt_AR_FLAGS
12813 # LTCC compiler flags.
12814 LTCFLAGS=$lt_LTCFLAGS
12816 # A language-specific compiler.
12817 CC=$lt_compiler_CXX
12819 # Is the compiler the GNU C compiler?
12822 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12823 gcc_ver=\`gcc -dumpversion\`
12828 # The linker used to build libraries.
12831 # Whether we need hard or soft links.
12834 # A BSD-compatible nm program.
12837 # A symbol stripping program
12840 # Used to examine libraries when file_magic_cmd begins "file"
12841 MAGIC_CMD=$MAGIC_CMD
12843 # Used on cygwin: DLL creation program.
12846 # Used on cygwin: object dumper.
12849 # Used on cygwin: assembler.
12852 # The name of the directory that contains temporary libtool files.
12855 # How to create reloadable object files.
12856 reload_flag=$lt_reload_flag
12857 reload_cmds=$lt_reload_cmds
12859 # How to pass a linker flag through the compiler.
12860 wl=$lt_lt_prog_compiler_wl_CXX
12862 # Object file suffix (normally "o").
12863 objext="$ac_objext"
12865 # Old archive suffix (normally "a").
12868 # Shared library suffix (normally ".so").
12869 shrext_cmds='$shrext_cmds'
12871 # Executable file suffix (normally "").
12874 # Additional compiler flags for building library objects.
12875 pic_flag=$lt_lt_prog_compiler_pic_CXX
12878 # What is the maximum length of a command?
12879 max_cmd_len=$lt_cv_sys_max_cmd_len
12881 # Does compiler simultaneously support -c and -o options?
12882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12884 # Must we lock files when doing compilation?
12885 need_locks=$lt_need_locks
12887 # Do we need the lib prefix for modules?
12888 need_lib_prefix=$need_lib_prefix
12890 # Do we need a version for libraries?
12891 need_version=$need_version
12893 # Whether dlopen is supported.
12894 dlopen_support=$enable_dlopen
12896 # Whether dlopen of programs is supported.
12897 dlopen_self=$enable_dlopen_self
12899 # Whether dlopen of statically linked programs is supported.
12900 dlopen_self_static=$enable_dlopen_self_static
12902 # Compiler flag to prevent dynamic linking.
12903 link_static_flag=$lt_lt_prog_compiler_static_CXX
12905 # Compiler flag to turn off builtin functions.
12906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12908 # Compiler flag to allow reflexive dlopens.
12909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12911 # Compiler flag to generate shared objects directly from archives.
12912 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12914 # Compiler flag to generate thread-safe objects.
12915 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12917 # Library versioning type.
12918 version_type=$version_type
12920 # Format of library name prefix.
12921 libname_spec=$lt_libname_spec
12923 # List of archive names. First name is the real one, the rest are links.
12924 # The last name is the one that the linker finds with -lNAME.
12925 library_names_spec=$lt_library_names_spec
12927 # The coded name of the library, if different from the real name.
12928 soname_spec=$lt_soname_spec
12930 # Commands used to build and install an old-style archive.
12932 old_archive_cmds=$lt_old_archive_cmds_CXX
12933 old_postinstall_cmds=$lt_old_postinstall_cmds
12934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12936 # Create an old-style archive from a shared archive.
12937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12939 # Create a temporary old-style archive to link instead of a shared archive.
12940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12942 # Commands used to build and install a shared archive.
12943 archive_cmds=$lt_archive_cmds_CXX
12944 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12945 postinstall_cmds=$lt_postinstall_cmds
12946 postuninstall_cmds=$lt_postuninstall_cmds
12948 # Commands used to build a loadable module (assumed same as above if empty)
12949 module_cmds=$lt_module_cmds_CXX
12950 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12952 # Commands to strip libraries.
12953 old_striplib=$lt_old_striplib
12954 striplib=$lt_striplib
12956 # Dependencies to place before the objects being linked to create a
12958 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12960 # Dependencies to place after the objects being linked to create a
12962 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12964 # Dependencies to place before the objects being linked to create a
12966 predeps=$lt_predeps_CXX
12968 # Dependencies to place after the objects being linked to create a
12970 postdeps=$lt_postdeps_CXX
12972 # The library search path used internally by the compiler when linking
12973 # a shared library.
12974 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12976 # Method to check whether dependent libraries are shared objects.
12977 deplibs_check_method=$lt_deplibs_check_method
12979 # Command to use when deplibs_check_method == file_magic.
12980 file_magic_cmd=$lt_file_magic_cmd
12982 # Flag that allows shared libraries with undefined symbols to be built.
12983 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12985 # Flag that forces no undefined symbols.
12986 no_undefined_flag=$lt_no_undefined_flag_CXX
12988 # Commands used to finish a libtool library installation in a directory.
12989 finish_cmds=$lt_finish_cmds
12991 # Same as above, but a single script fragment to be evaled but not shown.
12992 finish_eval=$lt_finish_eval
12994 # Take the output of nm and produce a listing of raw symbols and C names.
12995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12997 # Transform the output of nm in a proper C declaration
12998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13000 # Transform the output of nm in a C name address pair
13001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13003 # This is the shared library runtime path variable.
13004 runpath_var=$runpath_var
13006 # This is the shared library path variable.
13007 shlibpath_var=$shlibpath_var
13009 # Is shlibpath searched before the hard-coded library search path?
13010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13012 # How to hardcode a shared library path into an executable.
13013 hardcode_action=$hardcode_action_CXX
13015 # Whether we should hardcode library paths into libraries.
13016 hardcode_into_libs=$hardcode_into_libs
13018 # Flag to hardcode \$libdir into a binary during linking.
13019 # This must work even if \$libdir does not exist.
13020 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13022 # If ld is used when linking, flag to hardcode \$libdir into
13023 # a binary during linking. This must work even if \$libdir does
13025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13027 # Whether we need a single -rpath flag with a separated argument.
13028 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13030 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13031 # resulting binary.
13032 hardcode_direct=$hardcode_direct_CXX
13034 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13035 # resulting binary.
13036 hardcode_minus_L=$hardcode_minus_L_CXX
13038 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13039 # the resulting binary.
13040 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13042 # Set to yes if building a shared library automatically hardcodes DIR into the library
13043 # and all subsequent libraries and executables linked against it.
13044 hardcode_automatic=$hardcode_automatic_CXX
13046 # Variables whose values should be saved in libtool wrapper scripts and
13047 # restored at relink time.
13048 variables_saved_for_relink="$variables_saved_for_relink"
13050 # Whether libtool must link a program against all its dependency libraries.
13051 link_all_deplibs=$link_all_deplibs_CXX
13053 # Compile-time system search path for libraries
13054 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13056 # Run-time system search path for libraries
13057 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13059 # Fix the shell variable \$srcfile for the compiler.
13060 fix_srcfile_path="$fix_srcfile_path_CXX"
13062 # Set to yes if exported symbols are required.
13063 always_export_symbols=$always_export_symbols_CXX
13065 # The commands to list exported symbols.
13066 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13068 # The commands to extract the exported symbol list from a shared archive.
13069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13071 # Symbols that should not be listed in the preloaded symbols.
13072 exclude_expsyms=$lt_exclude_expsyms_CXX
13074 # Symbols that must always be exported.
13075 include_expsyms=$lt_include_expsyms_CXX
13077 # ### END LIBTOOL TAG CONFIG: $tagname
13083 # If there is no Makefile yet, we rely on a make rule to execute
13084 # `config.status --recheck' to rerun these tests and create the
13085 # libtool script then.
13086 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13087 if test -f "$ltmain_in"; then
13088 test -f Makefile
&& make "$ltmain"
13094 ac_cpp
='$CPP $CPPFLAGS'
13095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13103 with_gnu_ldcxx
=$with_gnu_ld
13104 with_gnu_ld
=$lt_save_with_gnu_ld
13105 lt_cv_path_LDCXX
=$lt_cv_path_LD
13106 lt_cv_path_LD
=$lt_save_path_LD
13107 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13108 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13116 if test -n "$F77" && test "X$F77" != "Xno"; then
13119 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13120 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13121 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13124 archive_cmds_need_lc_F77
=no
13125 allow_undefined_flag_F77
=
13126 always_export_symbols_F77
=no
13127 archive_expsym_cmds_F77
=
13128 export_dynamic_flag_spec_F77
=
13129 hardcode_direct_F77
=no
13130 hardcode_libdir_flag_spec_F77
=
13131 hardcode_libdir_flag_spec_ld_F77
=
13132 hardcode_libdir_separator_F77
=
13133 hardcode_minus_L_F77
=no
13134 hardcode_automatic_F77
=no
13136 module_expsym_cmds_F77
=
13137 link_all_deplibs_F77
=unknown
13138 old_archive_cmds_F77
=$old_archive_cmds
13139 no_undefined_flag_F77
=
13140 whole_archive_flag_spec_F77
=
13141 enable_shared_with_static_runtimes_F77
=no
13143 # Source file extension for f77 test sources.
13146 # Object file extension for compiled f77 test sources.
13150 # Code to be used in simple compile tests
13151 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13153 # Code to be used in simple link tests
13154 lt_simple_link_test_code
=" program t\n end\n"
13156 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13158 # If no C compiler was specified, use CC.
13161 # If no C compiler flags were specified, use CFLAGS.
13162 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13164 # Allow CC to be a program name with arguments.
13168 # save warnings/boilerplate of simple test code
13169 ac_outfile
=conftest.
$ac_objext
13170 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
13171 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13172 _lt_compiler_boilerplate
=`cat conftest.err`
13175 ac_outfile
=conftest.
$ac_objext
13176 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
13177 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13178 _lt_linker_boilerplate
=`cat conftest.err`
13182 # Allow CC to be a program name with arguments.
13187 for cc_temp
in $compiler""; do
13189 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13190 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13195 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13198 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13199 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13200 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13201 echo "${ECHO_T}$can_build_shared" >&6
13203 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13204 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13205 test "$can_build_shared" = "no" && enable_shared
=no
13207 # On AIX, shared libraries and static libraries use the same namespace, and
13208 # are all built from PIC.
13211 test "$enable_shared" = yes && enable_static
=no
13212 if test -n "$RANLIB"; then
13213 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13214 postinstall_cmds
='$RANLIB $lib'
13218 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13219 test "$enable_shared" = yes && enable_static
=no
13223 echo "$as_me:$LINENO: result: $enable_shared" >&5
13224 echo "${ECHO_T}$enable_shared" >&6
13226 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13227 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13228 # Make sure either enable_shared or enable_static is yes.
13229 test "$enable_shared" = yes || enable_static
=yes
13230 echo "$as_me:$LINENO: result: $enable_static" >&5
13231 echo "${ECHO_T}$enable_static" >&6
13236 lt_prog_compiler_wl_F77
=
13237 lt_prog_compiler_pic_F77
=
13238 lt_prog_compiler_static_F77
=
13240 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13241 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13243 if test "$GCC" = yes; then
13244 lt_prog_compiler_wl_F77
='-Wl,'
13245 lt_prog_compiler_static_F77
='-static'
13249 # All AIX code is PIC.
13250 if test "$host_cpu" = ia64
; then
13251 # AIX 5 now supports IA64 processor
13252 lt_prog_compiler_static_F77
='-Bstatic'
13257 # FIXME: we need at least 68020 code to build shared libraries, but
13258 # adding the `-m68020' flag to GCC prevents building anything better,
13260 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13263 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13264 # PIC is the default for these OSes.
13267 mingw
* | pw32
* | os2
*)
13268 # This hack is so that the source file can tell whether it is being
13269 # built for inclusion in a dll (and should export symbols for example).
13270 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13273 darwin
* | rhapsody
*)
13274 # PIC is the default on this platform
13275 # Common symbols not allowed in MH_DYLIB files
13276 lt_prog_compiler_pic_F77
='-fno-common'
13280 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13281 # Instead, we relocate shared libraries at runtime.
13285 # Just because we use GCC doesn't mean we suddenly get shared libraries
13286 # on systems that don't support them.
13287 lt_prog_compiler_can_build_shared_F77
=no
13292 if test -d /usr
/nec
; then
13293 lt_prog_compiler_pic_F77
=-Kconform_pic
13298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13299 # not for PA HP-UX.
13305 lt_prog_compiler_pic_F77
='-fPIC'
13311 lt_prog_compiler_pic_F77
='-fPIC'
13315 # PORTME Check for flag to pass linker flags through the system compiler.
13318 lt_prog_compiler_wl_F77
='-Wl,'
13319 if test "$host_cpu" = ia64
; then
13320 # AIX 5 now supports IA64 processor
13321 lt_prog_compiler_static_F77
='-Bstatic'
13323 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13327 # PIC is the default on this platform
13328 # Common symbols not allowed in MH_DYLIB files
13329 case $cc_basename in
13331 lt_prog_compiler_pic_F77
='-qnocommon'
13332 lt_prog_compiler_wl_F77
='-Wl,'
13337 mingw
* | pw32
* | os2
*)
13338 # This hack is so that the source file can tell whether it is being
13339 # built for inclusion in a dll (and should export symbols for example).
13340 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13343 hpux9
* | hpux10
* | hpux11
*)
13344 lt_prog_compiler_wl_F77
='-Wl,'
13345 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13346 # not for PA HP-UX.
13352 lt_prog_compiler_pic_F77
='+Z'
13355 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13356 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13359 irix5
* | irix6
* | nonstopux
*)
13360 lt_prog_compiler_wl_F77
='-Wl,'
13361 # PIC (with -KPIC) is the default.
13362 lt_prog_compiler_static_F77
='-non_shared'
13366 lt_prog_compiler_pic_F77
='-KPIC'
13367 lt_prog_compiler_static_F77
='-Bstatic'
13371 case $cc_basename in
13373 lt_prog_compiler_wl_F77
='-Wl,'
13374 lt_prog_compiler_pic_F77
='-KPIC'
13375 lt_prog_compiler_static_F77
='-static'
13377 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
13378 # Portland Group compilers (*not* the Pentium gcc compiler,
13379 # which looks to be a dead project)
13380 lt_prog_compiler_wl_F77
='-Wl,'
13381 lt_prog_compiler_pic_F77
='-fpic'
13382 lt_prog_compiler_static_F77
='-Bstatic'
13385 lt_prog_compiler_wl_F77
='-Wl,'
13386 # All Alpha code is PIC.
13387 lt_prog_compiler_static_F77
='-non_shared'
13392 osf3
* | osf4
* | osf5
*)
13393 lt_prog_compiler_wl_F77
='-Wl,'
13394 # All OSF/1 code is PIC.
13395 lt_prog_compiler_static_F77
='-non_shared'
13399 lt_prog_compiler_pic_F77
='-KPIC'
13400 lt_prog_compiler_static_F77
='-Bstatic'
13401 case $cc_basename in
13402 f77
* | f90
* | f95
*)
13403 lt_prog_compiler_wl_F77
='-Qoption ld ';;
13405 lt_prog_compiler_wl_F77
='-Wl,';;
13410 lt_prog_compiler_wl_F77
='-Qoption ld '
13411 lt_prog_compiler_pic_F77
='-PIC'
13412 lt_prog_compiler_static_F77
='-Bstatic'
13415 sysv4 | sysv4.2uw2
* | sysv4.3
*)
13416 lt_prog_compiler_wl_F77
='-Wl,'
13417 lt_prog_compiler_pic_F77
='-KPIC'
13418 lt_prog_compiler_static_F77
='-Bstatic'
13422 if test -d /usr
/nec
;then
13423 lt_prog_compiler_pic_F77
='-Kconform_pic'
13424 lt_prog_compiler_static_F77
='-Bstatic'
13428 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13429 lt_prog_compiler_wl_F77
='-Wl,'
13430 lt_prog_compiler_pic_F77
='-KPIC'
13431 lt_prog_compiler_static_F77
='-Bstatic'
13435 lt_prog_compiler_wl_F77
='-Wl,'
13436 lt_prog_compiler_can_build_shared_F77
=no
13440 lt_prog_compiler_pic_F77
='-pic'
13441 lt_prog_compiler_static_F77
='-Bstatic'
13445 lt_prog_compiler_can_build_shared_F77
=no
13450 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13451 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13454 # Check to make sure the PIC flag actually works.
13456 if test -n "$lt_prog_compiler_pic_F77"; then
13458 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13459 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13460 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 lt_prog_compiler_pic_works_F77
=no
13464 ac_outfile
=conftest.
$ac_objext
13465 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13466 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13467 # Insert the option either (1) after the last *FLAGS variable, or
13468 # (2) before a word containing "conftest.", or (3) at the end.
13469 # Note that $ac_compile itself does not contain backslashes and begins
13470 # with a dollar sign (not a hyphen), so the echo should work correctly.
13471 # The option is referenced via a variable to avoid confusing sed.
13472 lt_compile
=`echo "$ac_compile" | $SED \
13473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13475 -e 's:$: $lt_compiler_flag:'`
13476 (eval echo "\"\$as_me:13476: $lt_compile\"" >&5)
13477 (eval "$lt_compile" 2>conftest.err
)
13479 cat conftest.err
>&5
13480 echo "$as_me:13480: \$? = $ac_status" >&5
13481 if (exit $ac_status) && test -s "$ac_outfile"; then
13482 # The compiler can only warn and ignore the option if not recognized
13483 # So say no if there are warnings other than the usual output.
13484 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
13485 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13486 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13487 lt_prog_compiler_pic_works_F77
=yes
13493 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13494 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13496 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13497 case $lt_prog_compiler_pic_F77 in
13499 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13502 lt_prog_compiler_pic_F77
=
13503 lt_prog_compiler_can_build_shared_F77
=no
13508 # For platforms which do not support PIC, -DPIC is meaningless:
13510 lt_prog_compiler_pic_F77
=
13513 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13518 # Check to make sure the static flag actually works.
13520 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
13521 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13522 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13523 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 lt_prog_compiler_static_works_F77
=no
13527 save_LDFLAGS
="$LDFLAGS"
13528 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13529 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
13530 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13531 # The linker can only warn and ignore the option if not recognized
13532 # So say no if there are warnings
13533 if test -s conftest.err
; then
13534 # Append any errors to the config.log.
13535 cat conftest.err
1>&5
13536 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
13537 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13538 if diff conftest.exp conftest.er2
>/dev
/null
; then
13539 lt_prog_compiler_static_works_F77
=yes
13542 lt_prog_compiler_static_works_F77
=yes
13546 LDFLAGS
="$save_LDFLAGS"
13549 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13550 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13552 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
13555 lt_prog_compiler_static_F77
=
13559 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13560 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13561 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 lt_cv_prog_compiler_c_o_F77
=no
13565 $rm -r conftest
2>/dev
/null
13569 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13571 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13572 # Insert the option either (1) after the last *FLAGS variable, or
13573 # (2) before a word containing "conftest.", or (3) at the end.
13574 # Note that $ac_compile itself does not contain backslashes and begins
13575 # with a dollar sign (not a hyphen), so the echo should work correctly.
13576 lt_compile
=`echo "$ac_compile" | $SED \
13577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13579 -e 's:$: $lt_compiler_flag:'`
13580 (eval echo "\"\$as_me:13580: $lt_compile\"" >&5)
13581 (eval "$lt_compile" 2>out
/conftest.err
)
13583 cat out
/conftest.err
>&5
13584 echo "$as_me:13584: \$? = $ac_status" >&5
13585 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13587 # The compiler can only warn and ignore the option if not recognized
13588 # So say no if there are warnings
13589 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
13590 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13591 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13592 lt_cv_prog_compiler_c_o_F77
=yes
13597 # SGI C++ compiler will create directory out/ii_files/ for
13598 # template instantiation
13599 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13600 $rm out
/* && rmdir out
13606 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13607 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13610 hard_links
="nottested"
13611 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13612 # do not overwrite the value of need_locks provided by the user
13613 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13614 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13617 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13619 ln conftest.a conftest.b
2>&5 || hard_links
=no
13620 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13621 echo "$as_me:$LINENO: result: $hard_links" >&5
13622 echo "${ECHO_T}$hard_links" >&6
13623 if test "$hard_links" = no
; then
13624 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13625 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13632 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13633 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13636 allow_undefined_flag_F77
=
13637 enable_shared_with_static_runtimes_F77
=no
13639 archive_expsym_cmds_F77
=
13640 old_archive_From_new_cmds_F77
=
13641 old_archive_from_expsyms_cmds_F77
=
13642 export_dynamic_flag_spec_F77
=
13643 whole_archive_flag_spec_F77
=
13644 thread_safe_flag_spec_F77
=
13645 hardcode_libdir_flag_spec_F77
=
13646 hardcode_libdir_flag_spec_ld_F77
=
13647 hardcode_libdir_separator_F77
=
13648 hardcode_direct_F77
=no
13649 hardcode_minus_L_F77
=no
13650 hardcode_shlibpath_var_F77
=unsupported
13651 link_all_deplibs_F77
=unknown
13652 hardcode_automatic_F77
=no
13654 module_expsym_cmds_F77
=
13655 always_export_symbols_F77
=no
13656 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13657 # include_expsyms should be a list of space-separated symbols to be *always*
13658 # included in the symbol list
13659 include_expsyms_F77
=
13660 # exclude_expsyms can be an extended regexp of symbols to exclude
13661 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13662 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13663 # as well as any symbol that contains `d'.
13664 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
13665 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13666 # platforms (ab)use it in PIC code, but their linkers get confused if
13667 # the symbol is explicitly referenced. Since portable code cannot
13668 # rely on this symbol name, it's probably fine to never include it in
13669 # preloaded symbol tables.
13670 extract_expsyms_cmds
=
13671 # Just being paranoid about ensuring that cc_basename is set.
13672 for cc_temp
in $compiler""; do
13674 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13675 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13680 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13683 cygwin
* | mingw
* | pw32
*)
13684 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13685 # When not using gcc, we currently assume that we are using
13686 # Microsoft Visual C++.
13687 if test "$GCC" != yes; then
13692 # we just hope/assume this is gcc and not c89 (= MSVC++)
13701 if test "$with_gnu_ld" = yes; then
13702 # If archive_cmds runs LD, not CC, wlarc should be empty
13705 # Set some defaults for GNU ld with shared library support. These
13706 # are reset later if shared libraries are not supported. Putting them
13707 # here allows them to be overridden if necessary.
13708 runpath_var
=LD_RUN_PATH
13709 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
13710 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
13711 # ancient GNU ld didn't support --whole-archive et. al.
13712 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
13713 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13715 whole_archive_flag_spec_F77
=
13717 supports_anon_versioning
=no
13718 case `$LD -v 2>/dev/null` in
13719 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
13720 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
13721 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
13722 *\
2.11.
*) ;; # other 2.11 versions
13723 *) supports_anon_versioning
=yes ;;
13726 # See if GNU ld supports shared libraries.
13728 aix3
* | aix4
* | aix5
*)
13729 # On AIX/PPC, the GNU linker is very broken
13730 if test "$host_cpu" != ia64
; then
13734 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13735 *** to be unable to reliably create shared libraries on AIX.
13736 *** Therefore, libtool is disabling shared libraries support. If you
13737 *** really care for shared libraries, you may want to modify your PATH
13738 *** so that a non-GNU linker is found, and then restart.
13745 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)'
13746 hardcode_libdir_flag_spec_F77
='-L$libdir'
13747 hardcode_minus_L_F77
=yes
13749 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13750 # that the semantics of dynamic libraries on AmigaOS, at least up
13751 # to version 4, is to share data among multiple programs linked
13752 # with the same dynamic library. Since this doesn't match the
13753 # behavior of shared libraries on other platforms, we can't use
13759 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13760 allow_undefined_flag_F77
=unsupported
13761 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13762 # support --undefined. This deserves some investigation. FIXME
13763 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13769 cygwin
* | mingw
* | pw32
*)
13770 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13771 # as there is no search path for DLLs.
13772 hardcode_libdir_flag_spec_F77
='-L$libdir'
13773 allow_undefined_flag_F77
=unsupported
13774 always_export_symbols_F77
=no
13775 enable_shared_with_static_runtimes_F77
=yes
13776 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13778 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
13779 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13780 # If the export-symbols file already is a .def file (1st line
13781 # is EXPORTS), use it as is; otherwise, prepend...
13782 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13783 cp $export_symbols $output_objdir/$soname.def;
13785 echo EXPORTS > $output_objdir/$soname.def;
13786 cat $export_symbols >> $output_objdir/$soname.def;
13788 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13795 hardcode_direct_F77
=no
13796 hardcode_shlibpath_var_F77
=no
13797 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
13798 export_dynamic_flag_spec_F77
='${wl}-E'
13799 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13800 # Instead, shared libraries are loaded at an image base (0x10000000 by
13801 # default) and relocated if they conflict, which is a slow very memory
13802 # consuming and fragmenting process. To avoid this, we pick a random,
13803 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13804 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13805 archive_cmds_F77
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13806 archive_expsym_cmds_F77
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13810 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13812 case $cc_basename,$host_cpu in
13813 pgcc
*) # Portland Group C compiler
13814 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13815 tmp_addflag
=' $pic_flag'
13817 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
13818 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13819 tmp_addflag
=' $pic_flag -Mnomain' ;;
13820 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13821 tmp_addflag
=' -i_dynamic' ;;
13822 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13823 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13824 ifc
* | ifort
*) # Intel Fortran compiler
13825 tmp_addflag
=' -nofor_main' ;;
13827 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13829 if test $supports_anon_versioning = yes; then
13830 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
13831 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13832 $echo "local: *; };" >> $output_objdir/$libname.ver~
13833 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13841 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13842 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13845 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13846 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13851 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
13855 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13856 *** create shared libraries on Solaris systems. Therefore, libtool
13857 *** is disabling shared libraries support. We urge you to upgrade GNU
13858 *** binutils to release 2.9.1 or newer. Another option is to modify
13859 *** your PATH or compiler configuration so that the native linker is
13860 *** used, and then restart.
13863 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13864 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13865 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13871 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13872 case `$LD -v 2>&1` in
13873 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13877 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13878 *** reliably create shared libraries on SCO systems. Therefore, libtool
13879 *** is disabling shared libraries support. We urge you to upgrade GNU
13880 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13881 *** your PATH or compiler configuration so that the native linker is
13882 *** used, and then restart.
13887 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13888 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13889 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13890 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13899 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13901 hardcode_direct_F77
=yes
13902 hardcode_shlibpath_var_F77
=no
13906 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13907 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13908 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13915 if test "$ld_shlibs_F77" = no
; then
13917 hardcode_libdir_flag_spec_F77
=
13918 export_dynamic_flag_spec_F77
=
13919 whole_archive_flag_spec_F77
=
13922 # PORTME fill in a description of your system's linker (not GNU ld)
13925 allow_undefined_flag_F77
=unsupported
13926 always_export_symbols_F77
=yes
13927 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'
13928 # Note: this linker hardcodes the directories in LIBPATH if there
13929 # are no directories specified by -L.
13930 hardcode_minus_L_F77
=yes
13931 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13932 # Neither direct hardcoding nor static linking is supported with a
13934 hardcode_direct_F77
=unsupported
13939 if test "$host_cpu" = ia64
; then
13940 # On IA64, the linker does run time linking by default, so we don't
13941 # have to do anything special.
13942 aix_use_runtimelinking
=no
13943 exp_sym_flag
='-Bexport'
13946 # If we're using GNU nm, then we don't want the "-C" option.
13947 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13948 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13949 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'
13951 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'
13953 aix_use_runtimelinking
=no
13955 # Test if we are trying to use run time linking or normal
13956 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13957 # need to do runtime linking.
13958 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
13959 for ld_flag
in $LDFLAGS; do
13960 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13961 aix_use_runtimelinking
=yes
13968 exp_sym_flag
='-bexport'
13969 no_entry_flag
='-bnoentry'
13972 # When large executables or shared objects are built, AIX ld can
13973 # have problems creating the table of contents. If linking a library
13974 # or program results in "error TOC overflow" add -mminimal-toc to
13975 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13976 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13978 archive_cmds_F77
=''
13979 hardcode_direct_F77
=yes
13980 hardcode_libdir_separator_F77
=':'
13981 link_all_deplibs_F77
=yes
13983 if test "$GCC" = yes; then
13984 case $host_os in aix4.
[012]|aix4.
[012].
*)
13985 # We only want to do this on AIX 4.2 and lower, the check
13986 # below for broken collect2 doesn't work under 4.3+
13987 collect2name
=`${CC} -print-prog-name=collect2`
13988 if test -f "$collect2name" && \
13989 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
13991 # We have reworked collect2
13992 hardcode_direct_F77
=yes
13994 # We have old collect2
13995 hardcode_direct_F77
=unsupported
13996 # It fails to find uninstalled libraries when the uninstalled
13997 # path is not listed in the libpath. Setting hardcode_minus_L
13998 # to unsupported forces relinking
13999 hardcode_minus_L_F77
=yes
14000 hardcode_libdir_flag_spec_F77
='-L$libdir'
14001 hardcode_libdir_separator_F77
=
14005 shared_flag
='-shared'
14006 if test "$aix_use_runtimelinking" = yes; then
14007 shared_flag
="$shared_flag "'${wl}-G'
14011 if test "$host_cpu" = ia64
; then
14012 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14013 # chokes on -Wl,-G. The following line is correct:
14016 if test "$aix_use_runtimelinking" = yes; then
14017 shared_flag
='${wl}-G'
14019 shared_flag
='${wl}-bM:SRE'
14024 # It seems that -bexpall does not export symbols beginning with
14025 # underscore (_), so it is better to generate a list of symbols to export.
14026 always_export_symbols_F77
=yes
14027 if test "$aix_use_runtimelinking" = yes; then
14028 # Warning - without using the other runtime loading flags (-brtl),
14029 # -berok will link without error, but may produce a broken library.
14030 allow_undefined_flag_F77
='-berok'
14031 # Determine the default libpath from the value encoded in an empty executable.
14032 cat >conftest.
$ac_ext <<_ACEOF
14037 rm -f conftest.
$ac_objext conftest
$ac_exeext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14039 (eval $ac_link) 2>conftest.er1
14041 grep -v '^ *+' conftest.er1
>conftest.err
14043 cat conftest.err
>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try
='test -z "$ac_f77_werror_flag"
14047 || test ! -s conftest.err'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try
='test -s conftest$ac_exeext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14060 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14062 # Check for a 64-bit object if we didn't find anything.
14063 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; }
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.
$ac_ext >&5
14070 rm -f conftest.err conftest.
$ac_objext \
14071 conftest
$ac_exeext conftest.
$ac_ext
14072 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14074 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14075 archive_expsym_cmds_F77
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14077 if test "$host_cpu" = ia64
; then
14078 hardcode_libdir_flag_spec_F77
='${wl}-R $libdir:/usr/lib:/lib'
14079 allow_undefined_flag_F77
="-z nodefs"
14080 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14082 # Determine the default libpath from the value encoded in an empty executable.
14083 cat >conftest.
$ac_ext <<_ACEOF
14088 rm -f conftest.
$ac_objext conftest
$ac_exeext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090 (eval $ac_link) 2>conftest.er1
14092 grep -v '^ *+' conftest.er1
>conftest.err
14094 cat conftest.err
>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try
='test -z "$ac_f77_werror_flag"
14098 || test ! -s conftest.err'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try
='test -s conftest$ac_exeext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14111 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14113 # Check for a 64-bit object if we didn't find anything.
14114 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; }
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.
$ac_ext >&5
14121 rm -f conftest.err conftest.
$ac_objext \
14122 conftest
$ac_exeext conftest.
$ac_ext
14123 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14125 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14126 # Warning - without using the other run time loading flags,
14127 # -berok will link without error, but may produce a broken library.
14128 no_undefined_flag_F77
=' ${wl}-bernotok'
14129 allow_undefined_flag_F77
=' ${wl}-berok'
14130 # Exported symbols can be pulled into shared objects from archives
14131 whole_archive_flag_spec_F77
='$convenience'
14132 archive_cmds_need_lc_F77
=yes
14133 # This is similar to how AIX traditionally builds its shared libraries.
14134 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14140 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)'
14141 hardcode_libdir_flag_spec_F77
='-L$libdir'
14142 hardcode_minus_L_F77
=yes
14143 # see comment about different semantics on the GNU ld section
14148 export_dynamic_flag_spec_F77
=-rdynamic
14151 cygwin
* | mingw
* | pw32
*)
14152 # When not using gcc, we currently assume that we are using
14153 # Microsoft Visual C++.
14154 # hardcode_libdir_flag_spec is actually meaningless, as there is
14155 # no search path for DLLs.
14156 hardcode_libdir_flag_spec_F77
=' '
14157 allow_undefined_flag_F77
=unsupported
14158 # Tell ltmain to make .lib files, not .a files.
14160 # Tell ltmain to make .dll files, not .so files.
14162 # FIXME: Setting linknames here is a bad hack.
14163 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14164 # The linker will automatically build a .lib file if we build a DLL.
14165 old_archive_From_new_cmds_F77
='true'
14166 # FIXME: Should let the user specify the lib program.
14167 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14168 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14169 enable_shared_with_static_runtimes_F77
=yes
14172 darwin
* | rhapsody
*)
14174 rhapsody
* | darwin1.
[012])
14175 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14178 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14179 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14181 case ${MACOSX_DEPLOYMENT_TARGET} in
14183 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14186 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14192 archive_cmds_need_lc_F77
=no
14193 hardcode_direct_F77
=no
14194 hardcode_automatic_F77
=yes
14195 hardcode_shlibpath_var_F77
=unsupported
14196 whole_archive_flag_spec_F77
=''
14197 link_all_deplibs_F77
=yes
14198 if test "$GCC" = yes ; then
14199 output_verbose_link_cmd
='echo'
14200 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14201 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14202 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14203 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}'
14204 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}'
14206 case $cc_basename in
14208 output_verbose_link_cmd
='echo'
14209 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14210 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14211 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14212 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}'
14213 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}'
14223 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14224 hardcode_libdir_flag_spec_F77
='-L$libdir'
14225 hardcode_shlibpath_var_F77
=no
14232 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14233 # support. Future versions do this automatically, but an explicit c++rt0.o
14234 # does not break anything, and helps significantly (at the cost of a little
14237 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14238 hardcode_libdir_flag_spec_F77
='-R$libdir'
14239 hardcode_direct_F77
=yes
14240 hardcode_shlibpath_var_F77
=no
14243 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14245 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14246 hardcode_direct_F77
=yes
14247 hardcode_minus_L_F77
=yes
14248 hardcode_shlibpath_var_F77
=no
14251 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14252 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14253 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14254 hardcode_libdir_flag_spec_F77
='-R$libdir'
14255 hardcode_direct_F77
=yes
14256 hardcode_shlibpath_var_F77
=no
14260 if test "$GCC" = yes; then
14261 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'
14263 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'
14265 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14266 hardcode_libdir_separator_F77
=:
14267 hardcode_direct_F77
=yes
14269 # hardcode_minus_L: Not really in the search PATH,
14270 # but as the default location of the library.
14271 hardcode_minus_L_F77
=yes
14272 export_dynamic_flag_spec_F77
='${wl}-E'
14276 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14277 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14279 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14281 if test "$with_gnu_ld" = no
; then
14282 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14283 hardcode_libdir_separator_F77
=:
14285 hardcode_direct_F77
=yes
14286 export_dynamic_flag_spec_F77
='${wl}-E'
14288 # hardcode_minus_L: Not really in the search PATH,
14289 # but as the default location of the library.
14290 hardcode_minus_L_F77
=yes
14295 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14298 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14301 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14304 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14310 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14313 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14316 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14320 if test "$with_gnu_ld" = no
; then
14321 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14322 hardcode_libdir_separator_F77
=:
14326 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14327 hardcode_direct_F77
=no
14328 hardcode_shlibpath_var_F77
=no
14331 hardcode_direct_F77
=yes
14332 export_dynamic_flag_spec_F77
='${wl}-E'
14334 # hardcode_minus_L: Not really in the search PATH,
14335 # but as the default location of the library.
14336 hardcode_minus_L_F77
=yes
14342 irix5
* | irix6
* | nonstopux
*)
14343 if test "$GCC" = yes; then
14344 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'
14346 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'
14347 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14349 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14350 hardcode_libdir_separator_F77
=:
14351 link_all_deplibs_F77
=yes
14355 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14356 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14358 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14360 hardcode_libdir_flag_spec_F77
='-R$libdir'
14361 hardcode_direct_F77
=yes
14362 hardcode_shlibpath_var_F77
=no
14366 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14367 hardcode_direct_F77
=yes
14368 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14369 hardcode_libdir_separator_F77
=:
14370 hardcode_shlibpath_var_F77
=no
14374 hardcode_direct_F77
=yes
14375 hardcode_shlibpath_var_F77
=no
14376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14377 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14378 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14379 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14380 export_dynamic_flag_spec_F77
='${wl}-E'
14383 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14384 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14385 hardcode_libdir_flag_spec_F77
='-R$libdir'
14388 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14389 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14396 hardcode_libdir_flag_spec_F77
='-L$libdir'
14397 hardcode_minus_L_F77
=yes
14398 allow_undefined_flag_F77
=unsupported
14399 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'
14400 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14404 if test "$GCC" = yes; then
14405 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14406 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'
14408 allow_undefined_flag_F77
=' -expect_unresolved \*'
14409 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'
14411 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14412 hardcode_libdir_separator_F77
=:
14415 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14416 if test "$GCC" = yes; then
14417 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14418 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'
14419 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14421 allow_undefined_flag_F77
=' -expect_unresolved \*'
14422 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'
14423 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~
14424 $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'
14426 # Both c and cxx compiler support -rpath directly
14427 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14429 hardcode_libdir_separator_F77
=:
14433 no_undefined_flag_F77
=' -z text'
14434 if test "$GCC" = yes; then
14436 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14437 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14438 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14441 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14442 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14445 hardcode_libdir_flag_spec_F77
='-R$libdir'
14446 hardcode_shlibpath_var_F77
=no
14448 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14450 # The compiler driver will combine linker options so we
14451 # cannot just pass the convience library names through
14452 # without $wl, iff we do not link with $LD.
14453 # Luckily, gcc supports the same syntax we need for Sun Studio.
14454 # Supported since Solaris 2.6 (maybe 2.5.1?)
14457 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
14459 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' ;;
14462 link_all_deplibs_F77
=yes
14466 if test "x$host_vendor" = xsequent
; then
14467 # Use $CC to link under sequent, because it throws in some extra .o
14468 # files that make .init and .fini sections work.
14469 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14471 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14473 hardcode_libdir_flag_spec_F77
='-L$libdir'
14474 hardcode_direct_F77
=yes
14475 hardcode_minus_L_F77
=yes
14476 hardcode_shlibpath_var_F77
=no
14480 case $host_vendor in
14482 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14483 hardcode_direct_F77
=yes # is this really true???
14486 ## LD is ld it makes a PLAMLIB
14487 ## CC just makes a GrossModule.
14488 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14489 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14490 hardcode_direct_F77
=no
14493 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14494 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14497 runpath_var
='LD_RUN_PATH'
14498 hardcode_shlibpath_var_F77
=no
14502 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14503 hardcode_shlibpath_var_F77
=no
14504 export_dynamic_flag_spec_F77
='-Bexport'
14508 if test -d /usr
/nec
; then
14509 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14510 hardcode_shlibpath_var_F77
=no
14511 runpath_var
=LD_RUN_PATH
14512 hardcode_runpath_var
=yes
14517 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
14518 no_undefined_flag_F77
='${wl}-z,text'
14519 archive_cmds_need_lc_F77
=no
14520 hardcode_shlibpath_var_F77
=no
14521 runpath_var
='LD_RUN_PATH'
14523 if test "$GCC" = yes; then
14524 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14525 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14528 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14532 sysv5
* | sco3.2v5
* | sco5v6
*)
14533 # Note: We can NOT use -z defs as we might desire, because we do not
14534 # link with -lc, and that would cause any symbols used from libc to
14535 # always be unresolved, which means just about no library would
14536 # ever link correctly. If we're not using GNU ld we use -z text
14537 # though, which does catch some bad symbols but isn't as heavy-handed
14539 no_undefined_flag_F77
='${wl}-z,text'
14540 allow_undefined_flag_F77
='${wl}-z,nodefs'
14541 archive_cmds_need_lc_F77
=no
14542 hardcode_shlibpath_var_F77
=no
14543 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14544 hardcode_libdir_separator_F77
=':'
14545 link_all_deplibs_F77
=yes
14546 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14547 runpath_var
='LD_RUN_PATH'
14549 if test "$GCC" = yes; then
14550 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14551 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14553 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14554 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14559 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14560 hardcode_libdir_flag_spec_F77
='-L$libdir'
14561 hardcode_shlibpath_var_F77
=no
14570 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14571 echo "${ECHO_T}$ld_shlibs_F77" >&6
14572 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14575 # Do we need to explicitly link libc?
14577 case "x$archive_cmds_need_lc_F77" in
14579 # Assume -lc should be added
14580 archive_cmds_need_lc_F77
=yes
14582 if test "$enable_shared" = yes && test "$GCC" = yes; then
14583 case $archive_cmds_F77 in
14585 # FIXME: we may have to deal with multi-command sequences.
14588 # Test whether the compiler implicitly links with -lc since on some
14589 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14590 # to ld, don't add -lc before -lgcc.
14591 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14592 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14594 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14597 (eval $ac_compile) 2>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } 2>conftest.err
; then
14603 libobjs
=conftest.
$ac_objext
14605 wl
=$lt_prog_compiler_wl_F77
14606 pic_flag
=$lt_prog_compiler_pic_F77
14612 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14613 allow_undefined_flag_F77
=
14614 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14615 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }
14620 archive_cmds_need_lc_F77
=no
14622 archive_cmds_need_lc_F77
=yes
14624 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14626 cat conftest.err
1>&5
14629 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14630 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14637 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14638 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14639 library_names_spec
=
14640 libname_spec
='lib$name'
14644 postuninstall_cmds
=
14648 shlibpath_overrides_runpath
=unknown
14650 dynamic_linker
="$host_os ld.so"
14651 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14652 if test "$GCC" = yes; then
14653 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14654 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
14655 # if the path contains ";" then we assume it to be the separator
14656 # otherwise default to the standard path separator (i.e. ":") - it is
14657 # assumed that no part of a normal pathname contains ";" but that should
14658 # okay in the real world where ";" in dirpaths is itself problematic.
14659 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14661 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14664 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
14666 need_lib_prefix
=unknown
14667 hardcode_into_libs
=no
14669 # when you set need_version to no, make sure it does not cause -set_version
14670 # flags to be left without arguments
14671 need_version
=unknown
14676 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14677 shlibpath_var
=LIBPATH
14679 # AIX 3 has no versioning support, so we append a major version to the name.
14680 soname_spec
='${libname}${release}${shared_ext}$major'
14687 hardcode_into_libs
=yes
14688 if test "$host_cpu" = ia64
; then
14689 # AIX 5 supports IA64
14690 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14691 shlibpath_var
=LD_LIBRARY_PATH
14693 # With GCC up to 2.95.x, collect2 would create an import file
14694 # for dependence libraries. The import file would start with
14695 # the line `#! .'. This would cause the generated library to
14696 # depend on `.', always an invalid library. This was fixed in
14697 # development snapshots of GCC prior to 3.0.
14699 aix4 | aix4.
[01] | aix4.
[01].
*)
14700 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14702 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
14705 can_build_shared
=no
14709 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14710 # soname into executable. Probably we can add versioning support to
14711 # collect2, so additional links can be useful in future.
14712 if test "$aix_use_runtimelinking" = yes; then
14713 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14714 # instead of lib<name>.a to let people know that these are not
14715 # typical AIX shared libraries.
14716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718 # We preserve .a as extension for shared libraries through AIX4.2
14719 # and later when we are not doing run time linking.
14720 library_names_spec
='${libname}${release}.a $libname.a'
14721 soname_spec
='${libname}${release}${shared_ext}$major'
14723 shlibpath_var
=LIBPATH
14728 library_names_spec
='$libname.ixlibrary $libname.a'
14729 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14730 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'
14734 library_names_spec
='${libname}${shared_ext}'
14735 dynamic_linker
="$host_os ld.so"
14736 shlibpath_var
=LIBRARY_PATH
14742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743 soname_spec
='${libname}${release}${shared_ext}$major'
14744 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14745 shlibpath_var
=LD_LIBRARY_PATH
14746 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14747 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14748 # the default ld.so.conf also contains /usr/contrib/lib and
14749 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14750 # libtool to hard-code these into programs
14753 cygwin
* | mingw
* | pw32
*)
14754 version_type
=windows
14759 case $GCC,$host_os in
14760 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
14761 library_names_spec
='$libname.dll.a'
14762 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14763 postinstall_cmds
='base_file=`basename \${file}`~
14764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14765 dldir=$destdir/`dirname \$dlpath`~
14766 test -d \$dldir || mkdir -p \$dldir~
14767 $install_prog $dir/$dlname \$dldir/$dlname~
14768 chmod a+x \$dldir/$dlname'
14769 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14770 dlpath=$dir/\$dldll~
14772 shlibpath_overrides_runpath
=yes
14776 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14777 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14778 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14781 # MinGW DLLs use traditional 'lib' prefix
14782 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14783 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14784 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
14785 # It is most probably a Windows format PATH printed by
14786 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14787 # path with ; separators, and with drive letters. We can handle the
14788 # drive letters (cygwin fileutils understands them), so leave them,
14789 # especially as we might pass files found there to a mingw objdump,
14790 # which wouldn't understand a cygwinified path. Ahh.
14791 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14793 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14797 # pw32 DLLs use 'pw' prefix rather than 'lib'
14798 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14804 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14807 dynamic_linker
='Win32 ld.exe'
14808 # FIXME: first we should search . and the directory the executable is in
14812 darwin
* | rhapsody
*)
14813 dynamic_linker
="$host_os dyld"
14814 version_type
=darwin
14817 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14818 soname_spec
='${libname}${release}${major}$shared_ext'
14819 shlibpath_overrides_runpath
=yes
14820 shlibpath_var
=DYLD_LIBRARY_PATH
14821 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14822 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14823 if test "$GCC" = yes; then
14824 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"`
14826 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
14828 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14835 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14836 soname_spec
='${libname}${release}${shared_ext}$major'
14837 shlibpath_var
=LD_LIBRARY_PATH
14848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14849 soname_spec
='${libname}${release}${shared_ext}$major'
14850 shlibpath_var
=LD_LIBRARY_PATH
14851 shlibpath_overrides_runpath
=no
14852 hardcode_into_libs
=yes
14853 dynamic_linker
='GNU ld.so'
14856 freebsd
* | dragonfly
*)
14857 # DragonFly does not have aout. When/if they implement a new
14858 # versioning mechanism, adjust this.
14859 if test -x /usr
/bin
/objformat
; then
14860 objformat
=`/usr/bin/objformat`
14863 freebsd
[123]*) objformat
=aout
;;
14864 *) objformat
=elf
;;
14867 version_type
=freebsd-
$objformat
14868 case $version_type in
14870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14875 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14879 shlibpath_var
=LD_LIBRARY_PATH
14882 shlibpath_overrides_runpath
=yes
14884 freebsd3.
[01]* | freebsdelf3.
[01]*)
14885 shlibpath_overrides_runpath
=yes
14886 hardcode_into_libs
=yes
14888 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14889 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14890 shlibpath_overrides_runpath
=no
14891 hardcode_into_libs
=yes
14893 freebsd
*) # from 4.6 on
14894 shlibpath_overrides_runpath
=yes
14895 hardcode_into_libs
=yes
14904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14905 soname_spec
='${libname}${release}${shared_ext}$major'
14906 shlibpath_var
=LD_LIBRARY_PATH
14907 hardcode_into_libs
=yes
14910 hpux9
* | hpux10
* | hpux11
*)
14911 # Give a soname corresponding to the major version so that dld.sl refuses to
14912 # link against other versions.
14919 hardcode_into_libs
=yes
14920 dynamic_linker
="$host_os dld.so"
14921 shlibpath_var
=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924 soname_spec
='${libname}${release}${shared_ext}$major'
14925 if test "X$HPUX_IA64_MODE" = X32
; then
14926 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14928 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14930 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14934 hardcode_into_libs
=yes
14935 dynamic_linker
="$host_os dld.sl"
14936 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14937 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 soname_spec
='${libname}${release}${shared_ext}$major'
14940 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14941 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14945 dynamic_linker
="$host_os dld.sl"
14946 shlibpath_var
=SHLIB_PATH
14947 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec
='${libname}${release}${shared_ext}$major'
14952 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14953 postinstall_cmds
='chmod 555 $lib'
14960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14961 soname_spec
='${libname}${release}${shared_ext}$major'
14962 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14963 shlibpath_var
=LD_LIBRARY_PATH
14964 shlibpath_overrides_runpath
=no
14965 hardcode_into_libs
=yes
14968 irix5
* | irix6
* | nonstopux
*)
14970 nonstopux
*) version_type
=nonstopux
;;
14972 if test "$lt_cv_prog_gnu_ld" = yes; then
14980 soname_spec
='${libname}${release}${shared_ext}$major'
14981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14983 irix5
* | nonstopux
*)
14984 libsuff
= shlibsuff
=
14987 case $LD in # libtool.m4 will add one of these switches to LD
14988 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14989 libsuff
= shlibsuff
= libmagic
=32-bit;;
14990 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14991 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14992 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14993 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14994 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14998 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14999 shlibpath_overrides_runpath
=no
15000 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15001 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15002 hardcode_into_libs
=yes
15005 # No shared lib support for Linux oldld, aout, or coff.
15006 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15010 # This must be Linux ELF.
15015 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 soname_spec
='${libname}${release}${shared_ext}$major'
15017 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15018 shlibpath_var
=LD_LIBRARY_PATH
15019 shlibpath_overrides_runpath
=no
15020 # This implies no fast_install, which is unacceptable.
15021 # Some rework will be needed to allow for fast_install
15022 # before this can be enabled.
15023 hardcode_into_libs
=yes
15025 # find out which ABI we are using
15027 case "$host_cpu" in
15028 x86_64
*|s390x
*|powerpc64
*)
15029 echo '#line 15029 "configure"' > conftest.
$ac_ext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; then
15035 case `/usr/bin/file conftest.$ac_objext` in
15038 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15046 # Append ld.so.conf contents to the search path
15047 if test -f /etc
/ld.so.conf
; then
15048 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15049 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15052 # We used to test for /lib/ld.so.1 and disable shared libraries on
15053 # powerpc, because MkLinux only supported shared libraries with the
15054 # GNU dynamic linker. Since this was broken with cross compilers,
15055 # most powerpc-linux boxes support dynamic linking these days and
15056 # people can always --disable-shared, the test was removed, and we
15057 # assume the GNU/Linux dynamic linker is in use.
15058 dynamic_linker
='GNU/Linux ld.so'
15065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15066 soname_spec
='${libname}${release}${shared_ext}$major'
15067 shlibpath_var
=LD_LIBRARY_PATH
15068 shlibpath_overrides_runpath
=no
15069 hardcode_into_libs
=yes
15070 dynamic_linker
='GNU ld.so'
15077 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15079 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15080 dynamic_linker
='NetBSD (a.out) ld.so'
15082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15083 soname_spec
='${libname}${release}${shared_ext}$major'
15084 dynamic_linker
='NetBSD ld.elf_so'
15086 shlibpath_var
=LD_LIBRARY_PATH
15087 shlibpath_overrides_runpath
=yes
15088 hardcode_into_libs
=yes
15093 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094 shlibpath_var
=LD_LIBRARY_PATH
15095 shlibpath_overrides_runpath
=yes
15102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103 soname_spec
='${libname}${release}${shared_ext}$major'
15104 shlibpath_var
=LD_LIBRARY_PATH
15105 shlibpath_overrides_runpath
=yes
15110 sys_lib_dlsearch_path_spec
="/usr/lib"
15112 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15114 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15115 *) need_version
=no
;;
15117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15118 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15119 shlibpath_var
=LD_LIBRARY_PATH
15120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15122 openbsd2.
[89] | openbsd2.
[89].
*)
15123 shlibpath_overrides_runpath
=no
15126 shlibpath_overrides_runpath
=yes
15130 shlibpath_overrides_runpath
=yes
15135 libname_spec
='$name'
15138 library_names_spec
='$libname${shared_ext} $libname.a'
15139 dynamic_linker
='OS/2 ld.exe'
15140 shlibpath_var
=LIBPATH
15143 osf3
* | osf4
* | osf5
*)
15147 soname_spec
='${libname}${release}${shared_ext}$major'
15148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 shlibpath_var
=LD_LIBRARY_PATH
15150 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15151 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159 soname_spec
='${libname}${release}${shared_ext}$major'
15160 shlibpath_var
=LD_LIBRARY_PATH
15161 shlibpath_overrides_runpath
=yes
15162 hardcode_into_libs
=yes
15163 # ldd complains unless libraries are executable
15164 postinstall_cmds
='chmod +x $lib'
15169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15170 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15171 shlibpath_var
=LD_LIBRARY_PATH
15172 shlibpath_overrides_runpath
=yes
15173 if test "$with_gnu_ld" = yes; then
15181 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182 soname_spec
='${libname}${release}${shared_ext}$major'
15183 shlibpath_var
=LD_LIBRARY_PATH
15184 case $host_vendor in
15186 shlibpath_overrides_runpath
=no
15188 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15189 runpath_var
=LD_RUN_PATH
15197 shlibpath_overrides_runpath
=no
15198 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15204 if test -d /usr
/nec
;then
15206 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15207 soname_spec
='$libname${shared_ext}.$major'
15208 shlibpath_var
=LD_LIBRARY_PATH
15212 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15213 version_type
=freebsd-elf
15216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15217 soname_spec
='${libname}${release}${shared_ext}$major'
15218 shlibpath_var
=LD_LIBRARY_PATH
15219 hardcode_into_libs
=yes
15220 if test "$with_gnu_ld" = yes; then
15221 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15222 shlibpath_overrides_runpath
=no
15224 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15225 shlibpath_overrides_runpath
=yes
15228 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15232 sys_lib_dlsearch_path_spec
='/usr/lib'
15237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 soname_spec
='${libname}${release}${shared_ext}$major'
15239 shlibpath_var
=LD_LIBRARY_PATH
15246 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15247 echo "${ECHO_T}$dynamic_linker" >&6
15248 test "$dynamic_linker" = no
&& can_build_shared
=no
15250 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15251 if test "$GCC" = yes; then
15252 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15255 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15256 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15257 hardcode_action_F77
=
15258 if test -n "$hardcode_libdir_flag_spec_F77" || \
15259 test -n "$runpath_var_F77" || \
15260 test "X$hardcode_automatic_F77" = "Xyes" ; then
15262 # We can hardcode non-existant directories.
15263 if test "$hardcode_direct_F77" != no
&&
15264 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15265 # have to relink, otherwise we might link with an installed library
15266 # when we should be linking with a yet-to-be-installed one
15267 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15268 test "$hardcode_minus_L_F77" != no
; then
15269 # Linking always hardcodes the temporary library directory.
15270 hardcode_action_F77
=relink
15272 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15273 hardcode_action_F77
=immediate
15276 # We cannot hardcode anything, or else we can only hardcode existing
15278 hardcode_action_F77
=unsupported
15280 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15281 echo "${ECHO_T}$hardcode_action_F77" >&6
15283 if test "$hardcode_action_F77" = relink
; then
15284 # Fast installation is not supported
15285 enable_fast_install
=no
15286 elif test "$shlibpath_overrides_runpath" = yes ||
15287 test "$enable_shared" = no
; then
15288 # Fast installation is not necessary
15289 enable_fast_install
=needless
15293 # The else clause should only fire when bootstrapping the
15294 # libtool distribution, otherwise you forgot to ship ltmain.sh
15295 # with your package, and you will get complaints that there are
15296 # no rules to generate ltmain.sh.
15297 if test -f "$ltmain"; then
15298 # See if we are running on zsh, and set the options which allow our commands through
15299 # without removal of \ escapes.
15300 if test -n "${ZSH_VERSION+set}" ; then
15301 setopt NO_GLOB_SUBST
15303 # Now quote all the things that may contain metacharacters while being
15304 # careful not to overquote the AC_SUBSTed values. We take copies of the
15305 # variables and quote the copies for generation of the libtool script.
15306 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15308 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15309 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15310 deplibs_check_method reload_flag reload_cmds need_locks \
15311 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15312 lt_cv_sys_global_symbol_to_c_name_address \
15313 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15314 old_postinstall_cmds old_postuninstall_cmds \
15318 lt_prog_compiler_wl_F77 \
15319 lt_prog_compiler_pic_F77 \
15320 lt_prog_compiler_static_F77 \
15321 lt_prog_compiler_no_builtin_flag_F77 \
15322 export_dynamic_flag_spec_F77 \
15323 thread_safe_flag_spec_F77 \
15324 whole_archive_flag_spec_F77 \
15325 enable_shared_with_static_runtimes_F77 \
15326 old_archive_cmds_F77 \
15327 old_archive_from_new_cmds_F77 \
15328 predep_objects_F77 \
15329 postdep_objects_F77 \
15332 compiler_lib_search_path_F77 \
15334 archive_expsym_cmds_F77 \
15335 postinstall_cmds_F77 \
15336 postuninstall_cmds_F77 \
15337 old_archive_from_expsyms_cmds_F77 \
15338 allow_undefined_flag_F77 \
15339 no_undefined_flag_F77 \
15340 export_symbols_cmds_F77 \
15341 hardcode_libdir_flag_spec_F77 \
15342 hardcode_libdir_flag_spec_ld_F77 \
15343 hardcode_libdir_separator_F77 \
15344 hardcode_automatic_F77 \
15346 module_expsym_cmds_F77 \
15347 lt_cv_prog_compiler_c_o_F77 \
15348 exclude_expsyms_F77 \
15349 include_expsyms_F77
; do
15352 old_archive_cmds_F77 | \
15353 old_archive_from_new_cmds_F77 | \
15354 archive_cmds_F77 | \
15355 archive_expsym_cmds_F77 | \
15356 module_cmds_F77 | \
15357 module_expsym_cmds_F77 | \
15358 old_archive_from_expsyms_cmds_F77 | \
15359 export_symbols_cmds_F77 | \
15360 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15361 postinstall_cmds | postuninstall_cmds | \
15362 old_postinstall_cmds | old_postuninstall_cmds | \
15363 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15364 # Double-quote double-evaled strings.
15365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15374 *'\$0 --fallback-echo"')
15375 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15381 cat <<__EOF__ >> "$cfgfile"
15382 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15386 # Shell to use when invoking shell scripts.
15389 # Whether or not to build shared libraries.
15390 build_libtool_libs=$enable_shared
15392 # Whether or not to build static libraries.
15393 build_old_libs=$enable_static
15395 # Whether or not to add -lc for building shared libraries.
15396 build_libtool_need_lc=$archive_cmds_need_lc_F77
15398 # Whether or not to disallow shared libs when runtime libs are static
15399 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15401 # Whether or not to optimize for fast installation.
15402 fast_install=$enable_fast_install
15405 host_alias=$host_alias
15409 # The build system.
15410 build_alias=$build_alias
15414 # An echo program that does not interpret backslashes.
15419 AR_FLAGS=$lt_AR_FLAGS
15424 # LTCC compiler flags.
15425 LTCFLAGS=$lt_LTCFLAGS
15427 # A language-specific compiler.
15428 CC=$lt_compiler_F77
15430 # Is the compiler the GNU C compiler?
15433 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15434 gcc_ver=\`gcc -dumpversion\`
15439 # The linker used to build libraries.
15442 # Whether we need hard or soft links.
15445 # A BSD-compatible nm program.
15448 # A symbol stripping program
15451 # Used to examine libraries when file_magic_cmd begins "file"
15452 MAGIC_CMD=$MAGIC_CMD
15454 # Used on cygwin: DLL creation program.
15457 # Used on cygwin: object dumper.
15460 # Used on cygwin: assembler.
15463 # The name of the directory that contains temporary libtool files.
15466 # How to create reloadable object files.
15467 reload_flag=$lt_reload_flag
15468 reload_cmds=$lt_reload_cmds
15470 # How to pass a linker flag through the compiler.
15471 wl=$lt_lt_prog_compiler_wl_F77
15473 # Object file suffix (normally "o").
15474 objext="$ac_objext"
15476 # Old archive suffix (normally "a").
15479 # Shared library suffix (normally ".so").
15480 shrext_cmds='$shrext_cmds'
15482 # Executable file suffix (normally "").
15485 # Additional compiler flags for building library objects.
15486 pic_flag=$lt_lt_prog_compiler_pic_F77
15489 # What is the maximum length of a command?
15490 max_cmd_len=$lt_cv_sys_max_cmd_len
15492 # Does compiler simultaneously support -c and -o options?
15493 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15495 # Must we lock files when doing compilation?
15496 need_locks=$lt_need_locks
15498 # Do we need the lib prefix for modules?
15499 need_lib_prefix=$need_lib_prefix
15501 # Do we need a version for libraries?
15502 need_version=$need_version
15504 # Whether dlopen is supported.
15505 dlopen_support=$enable_dlopen
15507 # Whether dlopen of programs is supported.
15508 dlopen_self=$enable_dlopen_self
15510 # Whether dlopen of statically linked programs is supported.
15511 dlopen_self_static=$enable_dlopen_self_static
15513 # Compiler flag to prevent dynamic linking.
15514 link_static_flag=$lt_lt_prog_compiler_static_F77
15516 # Compiler flag to turn off builtin functions.
15517 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15519 # Compiler flag to allow reflexive dlopens.
15520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15522 # Compiler flag to generate shared objects directly from archives.
15523 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15525 # Compiler flag to generate thread-safe objects.
15526 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15528 # Library versioning type.
15529 version_type=$version_type
15531 # Format of library name prefix.
15532 libname_spec=$lt_libname_spec
15534 # List of archive names. First name is the real one, the rest are links.
15535 # The last name is the one that the linker finds with -lNAME.
15536 library_names_spec=$lt_library_names_spec
15538 # The coded name of the library, if different from the real name.
15539 soname_spec=$lt_soname_spec
15541 # Commands used to build and install an old-style archive.
15543 old_archive_cmds=$lt_old_archive_cmds_F77
15544 old_postinstall_cmds=$lt_old_postinstall_cmds
15545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15547 # Create an old-style archive from a shared archive.
15548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15550 # Create a temporary old-style archive to link instead of a shared archive.
15551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15553 # Commands used to build and install a shared archive.
15554 archive_cmds=$lt_archive_cmds_F77
15555 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15556 postinstall_cmds=$lt_postinstall_cmds
15557 postuninstall_cmds=$lt_postuninstall_cmds
15559 # Commands used to build a loadable module (assumed same as above if empty)
15560 module_cmds=$lt_module_cmds_F77
15561 module_expsym_cmds=$lt_module_expsym_cmds_F77
15563 # Commands to strip libraries.
15564 old_striplib=$lt_old_striplib
15565 striplib=$lt_striplib
15567 # Dependencies to place before the objects being linked to create a
15569 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15571 # Dependencies to place after the objects being linked to create a
15573 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15575 # Dependencies to place before the objects being linked to create a
15577 predeps=$lt_predeps_F77
15579 # Dependencies to place after the objects being linked to create a
15581 postdeps=$lt_postdeps_F77
15583 # The library search path used internally by the compiler when linking
15584 # a shared library.
15585 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15587 # Method to check whether dependent libraries are shared objects.
15588 deplibs_check_method=$lt_deplibs_check_method
15590 # Command to use when deplibs_check_method == file_magic.
15591 file_magic_cmd=$lt_file_magic_cmd
15593 # Flag that allows shared libraries with undefined symbols to be built.
15594 allow_undefined_flag=$lt_allow_undefined_flag_F77
15596 # Flag that forces no undefined symbols.
15597 no_undefined_flag=$lt_no_undefined_flag_F77
15599 # Commands used to finish a libtool library installation in a directory.
15600 finish_cmds=$lt_finish_cmds
15602 # Same as above, but a single script fragment to be evaled but not shown.
15603 finish_eval=$lt_finish_eval
15605 # Take the output of nm and produce a listing of raw symbols and C names.
15606 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15608 # Transform the output of nm in a proper C declaration
15609 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15611 # Transform the output of nm in a C name address pair
15612 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15614 # This is the shared library runtime path variable.
15615 runpath_var=$runpath_var
15617 # This is the shared library path variable.
15618 shlibpath_var=$shlibpath_var
15620 # Is shlibpath searched before the hard-coded library search path?
15621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15623 # How to hardcode a shared library path into an executable.
15624 hardcode_action=$hardcode_action_F77
15626 # Whether we should hardcode library paths into libraries.
15627 hardcode_into_libs=$hardcode_into_libs
15629 # Flag to hardcode \$libdir into a binary during linking.
15630 # This must work even if \$libdir does not exist.
15631 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15633 # If ld is used when linking, flag to hardcode \$libdir into
15634 # a binary during linking. This must work even if \$libdir does
15636 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15638 # Whether we need a single -rpath flag with a separated argument.
15639 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15641 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15642 # resulting binary.
15643 hardcode_direct=$hardcode_direct_F77
15645 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15646 # resulting binary.
15647 hardcode_minus_L=$hardcode_minus_L_F77
15649 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15650 # the resulting binary.
15651 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15653 # Set to yes if building a shared library automatically hardcodes DIR into the library
15654 # and all subsequent libraries and executables linked against it.
15655 hardcode_automatic=$hardcode_automatic_F77
15657 # Variables whose values should be saved in libtool wrapper scripts and
15658 # restored at relink time.
15659 variables_saved_for_relink="$variables_saved_for_relink"
15661 # Whether libtool must link a program against all its dependency libraries.
15662 link_all_deplibs=$link_all_deplibs_F77
15664 # Compile-time system search path for libraries
15665 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15667 # Run-time system search path for libraries
15668 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15670 # Fix the shell variable \$srcfile for the compiler.
15671 fix_srcfile_path="$fix_srcfile_path_F77"
15673 # Set to yes if exported symbols are required.
15674 always_export_symbols=$always_export_symbols_F77
15676 # The commands to list exported symbols.
15677 export_symbols_cmds=$lt_export_symbols_cmds_F77
15679 # The commands to extract the exported symbol list from a shared archive.
15680 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15682 # Symbols that should not be listed in the preloaded symbols.
15683 exclude_expsyms=$lt_exclude_expsyms_F77
15685 # Symbols that must always be exported.
15686 include_expsyms=$lt_include_expsyms_F77
15688 # ### END LIBTOOL TAG CONFIG: $tagname
15694 # If there is no Makefile yet, we rely on a make rule to execute
15695 # `config.status --recheck' to rerun these tests and create the
15696 # libtool script then.
15697 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15698 if test -f "$ltmain_in"; then
15699 test -f Makefile
&& make "$ltmain"
15705 ac_cpp
='$CPP $CPPFLAGS'
15706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15718 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15722 # Source file extension for Java test sources.
15725 # Object file extension for compiled Java test sources.
15729 # Code to be used in simple compile tests
15730 lt_simple_compile_test_code
="class foo {}\n"
15732 # Code to be used in simple link tests
15733 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
15735 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15737 # If no C compiler was specified, use CC.
15740 # If no C compiler flags were specified, use CFLAGS.
15741 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
15743 # Allow CC to be a program name with arguments.
15747 # save warnings/boilerplate of simple test code
15748 ac_outfile
=conftest.
$ac_objext
15749 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
15750 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
15751 _lt_compiler_boilerplate
=`cat conftest.err`
15754 ac_outfile
=conftest.
$ac_objext
15755 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
15756 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
15757 _lt_linker_boilerplate
=`cat conftest.err`
15761 # Allow CC to be a program name with arguments.
15766 for cc_temp
in $compiler""; do
15768 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
15769 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
15774 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15777 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15778 archive_cmds_need_lc_GCJ
=no
15780 old_archive_cmds_GCJ
=$old_archive_cmds
15783 lt_prog_compiler_no_builtin_flag_GCJ
=
15785 if test "$GCC" = yes; then
15786 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
15789 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15790 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15791 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 lt_cv_prog_compiler_rtti_exceptions
=no
15795 ac_outfile
=conftest.
$ac_objext
15796 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15797 lt_compiler_flag
="-fno-rtti -fno-exceptions"
15798 # Insert the option either (1) after the last *FLAGS variable, or
15799 # (2) before a word containing "conftest.", or (3) at the end.
15800 # Note that $ac_compile itself does not contain backslashes and begins
15801 # with a dollar sign (not a hyphen), so the echo should work correctly.
15802 # The option is referenced via a variable to avoid confusing sed.
15803 lt_compile
=`echo "$ac_compile" | $SED \
15804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15806 -e 's:$: $lt_compiler_flag:'`
15807 (eval echo "\"\$as_me:15807: $lt_compile\"" >&5)
15808 (eval "$lt_compile" 2>conftest.err
)
15810 cat conftest.err
>&5
15811 echo "$as_me:15811: \$? = $ac_status" >&5
15812 if (exit $ac_status) && test -s "$ac_outfile"; then
15813 # The compiler can only warn and ignore the option if not recognized
15814 # So say no if there are warnings other than the usual output.
15815 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
15816 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15817 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
15818 lt_cv_prog_compiler_rtti_exceptions
=yes
15824 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15825 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15827 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
15828 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15835 lt_prog_compiler_wl_GCJ
=
15836 lt_prog_compiler_pic_GCJ
=
15837 lt_prog_compiler_static_GCJ
=
15839 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15840 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15842 if test "$GCC" = yes; then
15843 lt_prog_compiler_wl_GCJ
='-Wl,'
15844 lt_prog_compiler_static_GCJ
='-static'
15848 # All AIX code is PIC.
15849 if test "$host_cpu" = ia64
; then
15850 # AIX 5 now supports IA64 processor
15851 lt_prog_compiler_static_GCJ
='-Bstatic'
15856 # FIXME: we need at least 68020 code to build shared libraries, but
15857 # adding the `-m68020' flag to GCC prevents building anything better,
15859 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
15862 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15863 # PIC is the default for these OSes.
15866 mingw
* | pw32
* | os2
*)
15867 # This hack is so that the source file can tell whether it is being
15868 # built for inclusion in a dll (and should export symbols for example).
15869 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15872 darwin
* | rhapsody
*)
15873 # PIC is the default on this platform
15874 # Common symbols not allowed in MH_DYLIB files
15875 lt_prog_compiler_pic_GCJ
='-fno-common'
15879 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15880 # Instead, we relocate shared libraries at runtime.
15884 # Just because we use GCC doesn't mean we suddenly get shared libraries
15885 # on systems that don't support them.
15886 lt_prog_compiler_can_build_shared_GCJ
=no
15891 if test -d /usr
/nec
; then
15892 lt_prog_compiler_pic_GCJ
=-Kconform_pic
15897 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15898 # not for PA HP-UX.
15904 lt_prog_compiler_pic_GCJ
='-fPIC'
15910 lt_prog_compiler_pic_GCJ
='-fPIC'
15914 # PORTME Check for flag to pass linker flags through the system compiler.
15917 lt_prog_compiler_wl_GCJ
='-Wl,'
15918 if test "$host_cpu" = ia64
; then
15919 # AIX 5 now supports IA64 processor
15920 lt_prog_compiler_static_GCJ
='-Bstatic'
15922 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
15926 # PIC is the default on this platform
15927 # Common symbols not allowed in MH_DYLIB files
15928 case $cc_basename in
15930 lt_prog_compiler_pic_GCJ
='-qnocommon'
15931 lt_prog_compiler_wl_GCJ
='-Wl,'
15936 mingw
* | pw32
* | os2
*)
15937 # This hack is so that the source file can tell whether it is being
15938 # built for inclusion in a dll (and should export symbols for example).
15939 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15942 hpux9
* | hpux10
* | hpux11
*)
15943 lt_prog_compiler_wl_GCJ
='-Wl,'
15944 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15945 # not for PA HP-UX.
15951 lt_prog_compiler_pic_GCJ
='+Z'
15954 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15955 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
15958 irix5
* | irix6
* | nonstopux
*)
15959 lt_prog_compiler_wl_GCJ
='-Wl,'
15960 # PIC (with -KPIC) is the default.
15961 lt_prog_compiler_static_GCJ
='-non_shared'
15965 lt_prog_compiler_pic_GCJ
='-KPIC'
15966 lt_prog_compiler_static_GCJ
='-Bstatic'
15970 case $cc_basename in
15972 lt_prog_compiler_wl_GCJ
='-Wl,'
15973 lt_prog_compiler_pic_GCJ
='-KPIC'
15974 lt_prog_compiler_static_GCJ
='-static'
15976 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
15977 # Portland Group compilers (*not* the Pentium gcc compiler,
15978 # which looks to be a dead project)
15979 lt_prog_compiler_wl_GCJ
='-Wl,'
15980 lt_prog_compiler_pic_GCJ
='-fpic'
15981 lt_prog_compiler_static_GCJ
='-Bstatic'
15984 lt_prog_compiler_wl_GCJ
='-Wl,'
15985 # All Alpha code is PIC.
15986 lt_prog_compiler_static_GCJ
='-non_shared'
15991 osf3
* | osf4
* | osf5
*)
15992 lt_prog_compiler_wl_GCJ
='-Wl,'
15993 # All OSF/1 code is PIC.
15994 lt_prog_compiler_static_GCJ
='-non_shared'
15998 lt_prog_compiler_pic_GCJ
='-KPIC'
15999 lt_prog_compiler_static_GCJ
='-Bstatic'
16000 case $cc_basename in
16001 f77
* | f90
* | f95
*)
16002 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16004 lt_prog_compiler_wl_GCJ
='-Wl,';;
16009 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16010 lt_prog_compiler_pic_GCJ
='-PIC'
16011 lt_prog_compiler_static_GCJ
='-Bstatic'
16014 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16015 lt_prog_compiler_wl_GCJ
='-Wl,'
16016 lt_prog_compiler_pic_GCJ
='-KPIC'
16017 lt_prog_compiler_static_GCJ
='-Bstatic'
16021 if test -d /usr
/nec
;then
16022 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16023 lt_prog_compiler_static_GCJ
='-Bstatic'
16027 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16028 lt_prog_compiler_wl_GCJ
='-Wl,'
16029 lt_prog_compiler_pic_GCJ
='-KPIC'
16030 lt_prog_compiler_static_GCJ
='-Bstatic'
16034 lt_prog_compiler_wl_GCJ
='-Wl,'
16035 lt_prog_compiler_can_build_shared_GCJ
=no
16039 lt_prog_compiler_pic_GCJ
='-pic'
16040 lt_prog_compiler_static_GCJ
='-Bstatic'
16044 lt_prog_compiler_can_build_shared_GCJ
=no
16049 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16050 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16053 # Check to make sure the PIC flag actually works.
16055 if test -n "$lt_prog_compiler_pic_GCJ"; then
16057 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16058 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16059 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16062 lt_prog_compiler_pic_works_GCJ
=no
16063 ac_outfile
=conftest.
$ac_objext
16064 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16065 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16066 # Insert the option either (1) after the last *FLAGS variable, or
16067 # (2) before a word containing "conftest.", or (3) at the end.
16068 # Note that $ac_compile itself does not contain backslashes and begins
16069 # with a dollar sign (not a hyphen), so the echo should work correctly.
16070 # The option is referenced via a variable to avoid confusing sed.
16071 lt_compile
=`echo "$ac_compile" | $SED \
16072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16074 -e 's:$: $lt_compiler_flag:'`
16075 (eval echo "\"\$as_me:16075: $lt_compile\"" >&5)
16076 (eval "$lt_compile" 2>conftest.err
)
16078 cat conftest.err
>&5
16079 echo "$as_me:16079: \$? = $ac_status" >&5
16080 if (exit $ac_status) && test -s "$ac_outfile"; then
16081 # The compiler can only warn and ignore the option if not recognized
16082 # So say no if there are warnings other than the usual output.
16083 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16084 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16085 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16086 lt_prog_compiler_pic_works_GCJ
=yes
16092 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16093 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16095 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16096 case $lt_prog_compiler_pic_GCJ in
16098 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16101 lt_prog_compiler_pic_GCJ
=
16102 lt_prog_compiler_can_build_shared_GCJ
=no
16107 # For platforms which do not support PIC, -DPIC is meaningless:
16109 lt_prog_compiler_pic_GCJ
=
16112 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16117 # Check to make sure the static flag actually works.
16119 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16120 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16121 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16122 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16125 lt_prog_compiler_static_works_GCJ
=no
16126 save_LDFLAGS
="$LDFLAGS"
16127 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16128 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
16129 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16130 # The linker can only warn and ignore the option if not recognized
16131 # So say no if there are warnings
16132 if test -s conftest.err
; then
16133 # Append any errors to the config.log.
16134 cat conftest.err
1>&5
16135 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16136 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16137 if diff conftest.exp conftest.er2
>/dev
/null
; then
16138 lt_prog_compiler_static_works_GCJ
=yes
16141 lt_prog_compiler_static_works_GCJ
=yes
16145 LDFLAGS
="$save_LDFLAGS"
16148 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16149 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16151 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
16154 lt_prog_compiler_static_GCJ
=
16158 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16159 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16160 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 lt_cv_prog_compiler_c_o_GCJ
=no
16164 $rm -r conftest
2>/dev
/null
16168 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16170 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16171 # Insert the option either (1) after the last *FLAGS variable, or
16172 # (2) before a word containing "conftest.", or (3) at the end.
16173 # Note that $ac_compile itself does not contain backslashes and begins
16174 # with a dollar sign (not a hyphen), so the echo should work correctly.
16175 lt_compile
=`echo "$ac_compile" | $SED \
16176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16178 -e 's:$: $lt_compiler_flag:'`
16179 (eval echo "\"\$as_me:16179: $lt_compile\"" >&5)
16180 (eval "$lt_compile" 2>out
/conftest.err
)
16182 cat out
/conftest.err
>&5
16183 echo "$as_me:16183: \$? = $ac_status" >&5
16184 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16186 # The compiler can only warn and ignore the option if not recognized
16187 # So say no if there are warnings
16188 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16189 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16190 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16191 lt_cv_prog_compiler_c_o_GCJ
=yes
16196 # SGI C++ compiler will create directory out/ii_files/ for
16197 # template instantiation
16198 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16199 $rm out
/* && rmdir out
16205 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16206 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16209 hard_links
="nottested"
16210 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16211 # do not overwrite the value of need_locks provided by the user
16212 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16213 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16216 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16218 ln conftest.a conftest.b
2>&5 || hard_links
=no
16219 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16220 echo "$as_me:$LINENO: result: $hard_links" >&5
16221 echo "${ECHO_T}$hard_links" >&6
16222 if test "$hard_links" = no
; then
16223 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16224 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16231 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16232 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16235 allow_undefined_flag_GCJ
=
16236 enable_shared_with_static_runtimes_GCJ
=no
16238 archive_expsym_cmds_GCJ
=
16239 old_archive_From_new_cmds_GCJ
=
16240 old_archive_from_expsyms_cmds_GCJ
=
16241 export_dynamic_flag_spec_GCJ
=
16242 whole_archive_flag_spec_GCJ
=
16243 thread_safe_flag_spec_GCJ
=
16244 hardcode_libdir_flag_spec_GCJ
=
16245 hardcode_libdir_flag_spec_ld_GCJ
=
16246 hardcode_libdir_separator_GCJ
=
16247 hardcode_direct_GCJ
=no
16248 hardcode_minus_L_GCJ
=no
16249 hardcode_shlibpath_var_GCJ
=unsupported
16250 link_all_deplibs_GCJ
=unknown
16251 hardcode_automatic_GCJ
=no
16253 module_expsym_cmds_GCJ
=
16254 always_export_symbols_GCJ
=no
16255 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16256 # include_expsyms should be a list of space-separated symbols to be *always*
16257 # included in the symbol list
16258 include_expsyms_GCJ
=
16259 # exclude_expsyms can be an extended regexp of symbols to exclude
16260 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16261 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16262 # as well as any symbol that contains `d'.
16263 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16264 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16265 # platforms (ab)use it in PIC code, but their linkers get confused if
16266 # the symbol is explicitly referenced. Since portable code cannot
16267 # rely on this symbol name, it's probably fine to never include it in
16268 # preloaded symbol tables.
16269 extract_expsyms_cmds
=
16270 # Just being paranoid about ensuring that cc_basename is set.
16271 for cc_temp
in $compiler""; do
16273 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16274 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16279 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16282 cygwin
* | mingw
* | pw32
*)
16283 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16284 # When not using gcc, we currently assume that we are using
16285 # Microsoft Visual C++.
16286 if test "$GCC" != yes; then
16291 # we just hope/assume this is gcc and not c89 (= MSVC++)
16300 if test "$with_gnu_ld" = yes; then
16301 # If archive_cmds runs LD, not CC, wlarc should be empty
16304 # Set some defaults for GNU ld with shared library support. These
16305 # are reset later if shared libraries are not supported. Putting them
16306 # here allows them to be overridden if necessary.
16307 runpath_var
=LD_RUN_PATH
16308 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16309 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16310 # ancient GNU ld didn't support --whole-archive et. al.
16311 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16312 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16314 whole_archive_flag_spec_GCJ
=
16316 supports_anon_versioning
=no
16317 case `$LD -v 2>/dev/null` in
16318 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16319 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16320 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16321 *\
2.11.
*) ;; # other 2.11 versions
16322 *) supports_anon_versioning
=yes ;;
16325 # See if GNU ld supports shared libraries.
16327 aix3
* | aix4
* | aix5
*)
16328 # On AIX/PPC, the GNU linker is very broken
16329 if test "$host_cpu" != ia64
; then
16333 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16334 *** to be unable to reliably create shared libraries on AIX.
16335 *** Therefore, libtool is disabling shared libraries support. If you
16336 *** really care for shared libraries, you may want to modify your PATH
16337 *** so that a non-GNU linker is found, and then restart.
16344 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)'
16345 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16346 hardcode_minus_L_GCJ
=yes
16348 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16349 # that the semantics of dynamic libraries on AmigaOS, at least up
16350 # to version 4, is to share data among multiple programs linked
16351 # with the same dynamic library. Since this doesn't match the
16352 # behavior of shared libraries on other platforms, we can't use
16358 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16359 allow_undefined_flag_GCJ
=unsupported
16360 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16361 # support --undefined. This deserves some investigation. FIXME
16362 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16368 cygwin
* | mingw
* | pw32
*)
16369 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16370 # as there is no search path for DLLs.
16371 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16372 allow_undefined_flag_GCJ
=unsupported
16373 always_export_symbols_GCJ
=no
16374 enable_shared_with_static_runtimes_GCJ
=yes
16375 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16377 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16378 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16379 # If the export-symbols file already is a .def file (1st line
16380 # is EXPORTS), use it as is; otherwise, prepend...
16381 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16382 cp $export_symbols $output_objdir/$soname.def;
16384 echo EXPORTS > $output_objdir/$soname.def;
16385 cat $export_symbols >> $output_objdir/$soname.def;
16387 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16394 hardcode_direct_GCJ
=no
16395 hardcode_shlibpath_var_GCJ
=no
16396 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16397 export_dynamic_flag_spec_GCJ
='${wl}-E'
16398 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16399 # Instead, shared libraries are loaded at an image base (0x10000000 by
16400 # default) and relocated if they conflict, which is a slow very memory
16401 # consuming and fragmenting process. To avoid this, we pick a random,
16402 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16403 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16404 archive_cmds_GCJ
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16405 archive_expsym_cmds_GCJ
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16409 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16411 case $cc_basename,$host_cpu in
16412 pgcc
*) # Portland Group C compiler
16413 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16414 tmp_addflag
=' $pic_flag'
16416 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16417 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16418 tmp_addflag
=' $pic_flag -Mnomain' ;;
16419 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16420 tmp_addflag
=' -i_dynamic' ;;
16421 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16422 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16423 ifc
* | ifort
*) # Intel Fortran compiler
16424 tmp_addflag
=' -nofor_main' ;;
16426 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16428 if test $supports_anon_versioning = yes; then
16429 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16431 $echo "local: *; };" >> $output_objdir/$libname.ver~
16432 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16440 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16441 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16444 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16445 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16450 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16454 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16455 *** create shared libraries on Solaris systems. Therefore, libtool
16456 *** is disabling shared libraries support. We urge you to upgrade GNU
16457 *** binutils to release 2.9.1 or newer. Another option is to modify
16458 *** your PATH or compiler configuration so that the native linker is
16459 *** used, and then restart.
16462 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16463 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16464 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16470 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16471 case `$LD -v 2>&1` in
16472 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16476 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16477 *** reliably create shared libraries on SCO systems. Therefore, libtool
16478 *** is disabling shared libraries support. We urge you to upgrade GNU
16479 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16480 *** your PATH or compiler configuration so that the native linker is
16481 *** used, and then restart.
16486 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16487 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16488 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16489 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16498 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16500 hardcode_direct_GCJ
=yes
16501 hardcode_shlibpath_var_GCJ
=no
16505 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16506 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16507 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16514 if test "$ld_shlibs_GCJ" = no
; then
16516 hardcode_libdir_flag_spec_GCJ
=
16517 export_dynamic_flag_spec_GCJ
=
16518 whole_archive_flag_spec_GCJ
=
16521 # PORTME fill in a description of your system's linker (not GNU ld)
16524 allow_undefined_flag_GCJ
=unsupported
16525 always_export_symbols_GCJ
=yes
16526 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'
16527 # Note: this linker hardcodes the directories in LIBPATH if there
16528 # are no directories specified by -L.
16529 hardcode_minus_L_GCJ
=yes
16530 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16531 # Neither direct hardcoding nor static linking is supported with a
16533 hardcode_direct_GCJ
=unsupported
16538 if test "$host_cpu" = ia64
; then
16539 # On IA64, the linker does run time linking by default, so we don't
16540 # have to do anything special.
16541 aix_use_runtimelinking
=no
16542 exp_sym_flag
='-Bexport'
16545 # If we're using GNU nm, then we don't want the "-C" option.
16546 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16547 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16548 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'
16550 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'
16552 aix_use_runtimelinking
=no
16554 # Test if we are trying to use run time linking or normal
16555 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16556 # need to do runtime linking.
16557 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16558 for ld_flag
in $LDFLAGS; do
16559 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16560 aix_use_runtimelinking
=yes
16567 exp_sym_flag
='-bexport'
16568 no_entry_flag
='-bnoentry'
16571 # When large executables or shared objects are built, AIX ld can
16572 # have problems creating the table of contents. If linking a library
16573 # or program results in "error TOC overflow" add -mminimal-toc to
16574 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16575 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16577 archive_cmds_GCJ
=''
16578 hardcode_direct_GCJ
=yes
16579 hardcode_libdir_separator_GCJ
=':'
16580 link_all_deplibs_GCJ
=yes
16582 if test "$GCC" = yes; then
16583 case $host_os in aix4.
[012]|aix4.
[012].
*)
16584 # We only want to do this on AIX 4.2 and lower, the check
16585 # below for broken collect2 doesn't work under 4.3+
16586 collect2name
=`${CC} -print-prog-name=collect2`
16587 if test -f "$collect2name" && \
16588 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16590 # We have reworked collect2
16591 hardcode_direct_GCJ
=yes
16593 # We have old collect2
16594 hardcode_direct_GCJ
=unsupported
16595 # It fails to find uninstalled libraries when the uninstalled
16596 # path is not listed in the libpath. Setting hardcode_minus_L
16597 # to unsupported forces relinking
16598 hardcode_minus_L_GCJ
=yes
16599 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16600 hardcode_libdir_separator_GCJ
=
16604 shared_flag
='-shared'
16605 if test "$aix_use_runtimelinking" = yes; then
16606 shared_flag
="$shared_flag "'${wl}-G'
16610 if test "$host_cpu" = ia64
; then
16611 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16612 # chokes on -Wl,-G. The following line is correct:
16615 if test "$aix_use_runtimelinking" = yes; then
16616 shared_flag
='${wl}-G'
16618 shared_flag
='${wl}-bM:SRE'
16623 # It seems that -bexpall does not export symbols beginning with
16624 # underscore (_), so it is better to generate a list of symbols to export.
16625 always_export_symbols_GCJ
=yes
16626 if test "$aix_use_runtimelinking" = yes; then
16627 # Warning - without using the other runtime loading flags (-brtl),
16628 # -berok will link without error, but may produce a broken library.
16629 allow_undefined_flag_GCJ
='-berok'
16630 # Determine the default libpath from the value encoded in an empty executable.
16631 cat >conftest.
$ac_ext <<_ACEOF
16634 cat confdefs.h
>>conftest.
$ac_ext
16635 cat >>conftest.
$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16646 rm -f conftest.
$ac_objext conftest
$ac_exeext
16647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16648 (eval $ac_link) 2>conftest.er1
16650 grep -v '^ *+' conftest.er1
>conftest.err
16652 cat conftest.err
>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try
='test -z "$ac_c_werror_flag"
16656 || test ! -s conftest.err'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try
='test -s conftest$ac_exeext'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16669 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16671 # Check for a 64-bit object if we didn't find anything.
16672 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; }
16675 echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.
$ac_ext >&5
16679 rm -f conftest.err conftest.
$ac_objext \
16680 conftest
$ac_exeext conftest.
$ac_ext
16681 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16683 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16684 archive_expsym_cmds_GCJ
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16686 if test "$host_cpu" = ia64
; then
16687 hardcode_libdir_flag_spec_GCJ
='${wl}-R $libdir:/usr/lib:/lib'
16688 allow_undefined_flag_GCJ
="-z nodefs"
16689 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16691 # Determine the default libpath from the value encoded in an empty executable.
16692 cat >conftest.
$ac_ext <<_ACEOF
16695 cat confdefs.h
>>conftest.
$ac_ext
16696 cat >>conftest.
$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16707 rm -f conftest.
$ac_objext conftest
$ac_exeext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709 (eval $ac_link) 2>conftest.er1
16711 grep -v '^ *+' conftest.er1
>conftest.err
16713 cat conftest.err
>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try
='test -z "$ac_c_werror_flag"
16717 || test ! -s conftest.err'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try
='test -s conftest$ac_exeext'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16730 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16732 # Check for a 64-bit object if we didn't find anything.
16733 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; }
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.
$ac_ext >&5
16740 rm -f conftest.err conftest.
$ac_objext \
16741 conftest
$ac_exeext conftest.
$ac_ext
16742 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16744 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16745 # Warning - without using the other run time loading flags,
16746 # -berok will link without error, but may produce a broken library.
16747 no_undefined_flag_GCJ
=' ${wl}-bernotok'
16748 allow_undefined_flag_GCJ
=' ${wl}-berok'
16749 # Exported symbols can be pulled into shared objects from archives
16750 whole_archive_flag_spec_GCJ
='$convenience'
16751 archive_cmds_need_lc_GCJ
=yes
16752 # This is similar to how AIX traditionally builds its shared libraries.
16753 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16759 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)'
16760 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16761 hardcode_minus_L_GCJ
=yes
16762 # see comment about different semantics on the GNU ld section
16767 export_dynamic_flag_spec_GCJ
=-rdynamic
16770 cygwin
* | mingw
* | pw32
*)
16771 # When not using gcc, we currently assume that we are using
16772 # Microsoft Visual C++.
16773 # hardcode_libdir_flag_spec is actually meaningless, as there is
16774 # no search path for DLLs.
16775 hardcode_libdir_flag_spec_GCJ
=' '
16776 allow_undefined_flag_GCJ
=unsupported
16777 # Tell ltmain to make .lib files, not .a files.
16779 # Tell ltmain to make .dll files, not .so files.
16781 # FIXME: Setting linknames here is a bad hack.
16782 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16783 # The linker will automatically build a .lib file if we build a DLL.
16784 old_archive_From_new_cmds_GCJ
='true'
16785 # FIXME: Should let the user specify the lib program.
16786 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
16787 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
16788 enable_shared_with_static_runtimes_GCJ
=yes
16791 darwin
* | rhapsody
*)
16793 rhapsody
* | darwin1.
[012])
16794 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
16797 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16798 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16800 case ${MACOSX_DEPLOYMENT_TARGET} in
16802 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16805 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
16811 archive_cmds_need_lc_GCJ
=no
16812 hardcode_direct_GCJ
=no
16813 hardcode_automatic_GCJ
=yes
16814 hardcode_shlibpath_var_GCJ
=unsupported
16815 whole_archive_flag_spec_GCJ
=''
16816 link_all_deplibs_GCJ
=yes
16817 if test "$GCC" = yes ; then
16818 output_verbose_link_cmd
='echo'
16819 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16820 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16821 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16822 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}'
16823 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}'
16825 case $cc_basename in
16827 output_verbose_link_cmd
='echo'
16828 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16829 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16831 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}'
16832 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}'
16842 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16844 hardcode_shlibpath_var_GCJ
=no
16851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16852 # support. Future versions do this automatically, but an explicit c++rt0.o
16853 # does not break anything, and helps significantly (at the cost of a little
16856 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16857 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16858 hardcode_direct_GCJ
=yes
16859 hardcode_shlibpath_var_GCJ
=no
16862 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16864 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16865 hardcode_direct_GCJ
=yes
16866 hardcode_minus_L_GCJ
=yes
16867 hardcode_shlibpath_var_GCJ
=no
16870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16871 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
16872 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16873 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16874 hardcode_direct_GCJ
=yes
16875 hardcode_shlibpath_var_GCJ
=no
16879 if test "$GCC" = yes; then
16880 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'
16882 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'
16884 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16885 hardcode_libdir_separator_GCJ
=:
16886 hardcode_direct_GCJ
=yes
16888 # hardcode_minus_L: Not really in the search PATH,
16889 # but as the default location of the library.
16890 hardcode_minus_L_GCJ
=yes
16891 export_dynamic_flag_spec_GCJ
='${wl}-E'
16895 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16896 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16898 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16900 if test "$with_gnu_ld" = no
; then
16901 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16902 hardcode_libdir_separator_GCJ
=:
16904 hardcode_direct_GCJ
=yes
16905 export_dynamic_flag_spec_GCJ
='${wl}-E'
16907 # hardcode_minus_L: Not really in the search PATH,
16908 # but as the default location of the library.
16909 hardcode_minus_L_GCJ
=yes
16914 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16917 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16920 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16923 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16929 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16932 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16935 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16939 if test "$with_gnu_ld" = no
; then
16940 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16941 hardcode_libdir_separator_GCJ
=:
16945 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
16946 hardcode_direct_GCJ
=no
16947 hardcode_shlibpath_var_GCJ
=no
16950 hardcode_direct_GCJ
=yes
16951 export_dynamic_flag_spec_GCJ
='${wl}-E'
16953 # hardcode_minus_L: Not really in the search PATH,
16954 # but as the default location of the library.
16955 hardcode_minus_L_GCJ
=yes
16961 irix5
* | irix6
* | nonstopux
*)
16962 if test "$GCC" = yes; then
16963 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'
16965 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'
16966 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
16968 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16969 hardcode_libdir_separator_GCJ
=:
16970 link_all_deplibs_GCJ
=yes
16974 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16975 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16977 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16979 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16980 hardcode_direct_GCJ
=yes
16981 hardcode_shlibpath_var_GCJ
=no
16985 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16986 hardcode_direct_GCJ
=yes
16987 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16988 hardcode_libdir_separator_GCJ
=:
16989 hardcode_shlibpath_var_GCJ
=no
16993 hardcode_direct_GCJ
=yes
16994 hardcode_shlibpath_var_GCJ
=no
16995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16996 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16997 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16998 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16999 export_dynamic_flag_spec_GCJ
='${wl}-E'
17002 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17003 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17004 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17007 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17008 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17015 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17016 hardcode_minus_L_GCJ
=yes
17017 allow_undefined_flag_GCJ
=unsupported
17018 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'
17019 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17023 if test "$GCC" = yes; then
17024 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17025 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'
17027 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17028 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'
17030 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17031 hardcode_libdir_separator_GCJ
=:
17034 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17035 if test "$GCC" = yes; then
17036 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17037 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'
17038 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17040 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17041 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'
17042 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~
17043 $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'
17045 # Both c and cxx compiler support -rpath directly
17046 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17048 hardcode_libdir_separator_GCJ
=:
17052 no_undefined_flag_GCJ
=' -z text'
17053 if test "$GCC" = yes; then
17055 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17056 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17057 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17060 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17061 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17064 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17065 hardcode_shlibpath_var_GCJ
=no
17067 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17069 # The compiler driver will combine linker options so we
17070 # cannot just pass the convience library names through
17071 # without $wl, iff we do not link with $LD.
17072 # Luckily, gcc supports the same syntax we need for Sun Studio.
17073 # Supported since Solaris 2.6 (maybe 2.5.1?)
17076 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
17078 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' ;;
17081 link_all_deplibs_GCJ
=yes
17085 if test "x$host_vendor" = xsequent
; then
17086 # Use $CC to link under sequent, because it throws in some extra .o
17087 # files that make .init and .fini sections work.
17088 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17090 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17092 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17093 hardcode_direct_GCJ
=yes
17094 hardcode_minus_L_GCJ
=yes
17095 hardcode_shlibpath_var_GCJ
=no
17099 case $host_vendor in
17101 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102 hardcode_direct_GCJ
=yes # is this really true???
17105 ## LD is ld it makes a PLAMLIB
17106 ## CC just makes a GrossModule.
17107 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17108 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17109 hardcode_direct_GCJ
=no
17112 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17113 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17116 runpath_var
='LD_RUN_PATH'
17117 hardcode_shlibpath_var_GCJ
=no
17121 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17122 hardcode_shlibpath_var_GCJ
=no
17123 export_dynamic_flag_spec_GCJ
='-Bexport'
17127 if test -d /usr
/nec
; then
17128 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17129 hardcode_shlibpath_var_GCJ
=no
17130 runpath_var
=LD_RUN_PATH
17131 hardcode_runpath_var
=yes
17136 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
17137 no_undefined_flag_GCJ
='${wl}-z,text'
17138 archive_cmds_need_lc_GCJ
=no
17139 hardcode_shlibpath_var_GCJ
=no
17140 runpath_var
='LD_RUN_PATH'
17142 if test "$GCC" = yes; then
17143 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17144 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17146 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17147 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17151 sysv5
* | sco3.2v5
* | sco5v6
*)
17152 # Note: We can NOT use -z defs as we might desire, because we do not
17153 # link with -lc, and that would cause any symbols used from libc to
17154 # always be unresolved, which means just about no library would
17155 # ever link correctly. If we're not using GNU ld we use -z text
17156 # though, which does catch some bad symbols but isn't as heavy-handed
17158 no_undefined_flag_GCJ
='${wl}-z,text'
17159 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17160 archive_cmds_need_lc_GCJ
=no
17161 hardcode_shlibpath_var_GCJ
=no
17162 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17163 hardcode_libdir_separator_GCJ
=':'
17164 link_all_deplibs_GCJ
=yes
17165 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17166 runpath_var
='LD_RUN_PATH'
17168 if test "$GCC" = yes; then
17169 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17170 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17172 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17173 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17178 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17179 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17180 hardcode_shlibpath_var_GCJ
=no
17189 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17190 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17191 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17194 # Do we need to explicitly link libc?
17196 case "x$archive_cmds_need_lc_GCJ" in
17198 # Assume -lc should be added
17199 archive_cmds_need_lc_GCJ
=yes
17201 if test "$enable_shared" = yes && test "$GCC" = yes; then
17202 case $archive_cmds_GCJ in
17204 # FIXME: we may have to deal with multi-command sequences.
17207 # Test whether the compiler implicitly links with -lc since on some
17208 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17209 # to ld, don't add -lc before -lgcc.
17210 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17211 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17213 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17216 (eval $ac_compile) 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } 2>conftest.err
; then
17222 libobjs
=conftest.
$ac_objext
17224 wl
=$lt_prog_compiler_wl_GCJ
17225 pic_flag
=$lt_prog_compiler_pic_GCJ
17231 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17232 allow_undefined_flag_GCJ
=
17233 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17234 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }
17239 archive_cmds_need_lc_GCJ
=no
17241 archive_cmds_need_lc_GCJ
=yes
17243 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17245 cat conftest.err
1>&5
17248 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17249 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17256 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17257 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17258 library_names_spec
=
17259 libname_spec
='lib$name'
17263 postuninstall_cmds
=
17267 shlibpath_overrides_runpath
=unknown
17269 dynamic_linker
="$host_os ld.so"
17270 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17271 if test "$GCC" = yes; then
17272 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17273 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17274 # if the path contains ";" then we assume it to be the separator
17275 # otherwise default to the standard path separator (i.e. ":") - it is
17276 # assumed that no part of a normal pathname contains ";" but that should
17277 # okay in the real world where ";" in dirpaths is itself problematic.
17278 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17280 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17283 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17285 need_lib_prefix
=unknown
17286 hardcode_into_libs
=no
17288 # when you set need_version to no, make sure it does not cause -set_version
17289 # flags to be left without arguments
17290 need_version
=unknown
17295 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17296 shlibpath_var
=LIBPATH
17298 # AIX 3 has no versioning support, so we append a major version to the name.
17299 soname_spec
='${libname}${release}${shared_ext}$major'
17306 hardcode_into_libs
=yes
17307 if test "$host_cpu" = ia64
; then
17308 # AIX 5 supports IA64
17309 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17310 shlibpath_var
=LD_LIBRARY_PATH
17312 # With GCC up to 2.95.x, collect2 would create an import file
17313 # for dependence libraries. The import file would start with
17314 # the line `#! .'. This would cause the generated library to
17315 # depend on `.', always an invalid library. This was fixed in
17316 # development snapshots of GCC prior to 3.0.
17318 aix4 | aix4.
[01] | aix4.
[01].
*)
17319 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17321 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17324 can_build_shared
=no
17328 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17329 # soname into executable. Probably we can add versioning support to
17330 # collect2, so additional links can be useful in future.
17331 if test "$aix_use_runtimelinking" = yes; then
17332 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17333 # instead of lib<name>.a to let people know that these are not
17334 # typical AIX shared libraries.
17335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337 # We preserve .a as extension for shared libraries through AIX4.2
17338 # and later when we are not doing run time linking.
17339 library_names_spec
='${libname}${release}.a $libname.a'
17340 soname_spec
='${libname}${release}${shared_ext}$major'
17342 shlibpath_var
=LIBPATH
17347 library_names_spec
='$libname.ixlibrary $libname.a'
17348 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17349 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'
17353 library_names_spec
='${libname}${shared_ext}'
17354 dynamic_linker
="$host_os ld.so"
17355 shlibpath_var
=LIBRARY_PATH
17361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362 soname_spec
='${libname}${release}${shared_ext}$major'
17363 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17364 shlibpath_var
=LD_LIBRARY_PATH
17365 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17366 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17367 # the default ld.so.conf also contains /usr/contrib/lib and
17368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17369 # libtool to hard-code these into programs
17372 cygwin
* | mingw
* | pw32
*)
17373 version_type
=windows
17378 case $GCC,$host_os in
17379 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17380 library_names_spec
='$libname.dll.a'
17381 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17382 postinstall_cmds
='base_file=`basename \${file}`~
17383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17384 dldir=$destdir/`dirname \$dlpath`~
17385 test -d \$dldir || mkdir -p \$dldir~
17386 $install_prog $dir/$dlname \$dldir/$dlname~
17387 chmod a+x \$dldir/$dlname'
17388 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17389 dlpath=$dir/\$dldll~
17391 shlibpath_overrides_runpath
=yes
17395 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17396 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17397 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17400 # MinGW DLLs use traditional 'lib' prefix
17401 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17402 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17403 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17404 # It is most probably a Windows format PATH printed by
17405 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17406 # path with ; separators, and with drive letters. We can handle the
17407 # drive letters (cygwin fileutils understands them), so leave them,
17408 # especially as we might pass files found there to a mingw objdump,
17409 # which wouldn't understand a cygwinified path. Ahh.
17410 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17412 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17416 # pw32 DLLs use 'pw' prefix rather than 'lib'
17417 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17423 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17426 dynamic_linker
='Win32 ld.exe'
17427 # FIXME: first we should search . and the directory the executable is in
17431 darwin
* | rhapsody
*)
17432 dynamic_linker
="$host_os dyld"
17433 version_type
=darwin
17436 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17437 soname_spec
='${libname}${release}${major}$shared_ext'
17438 shlibpath_overrides_runpath
=yes
17439 shlibpath_var
=DYLD_LIBRARY_PATH
17440 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17441 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17442 if test "$GCC" = yes; then
17443 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"`
17445 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17447 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17455 soname_spec
='${libname}${release}${shared_ext}$major'
17456 shlibpath_var
=LD_LIBRARY_PATH
17467 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17468 soname_spec
='${libname}${release}${shared_ext}$major'
17469 shlibpath_var
=LD_LIBRARY_PATH
17470 shlibpath_overrides_runpath
=no
17471 hardcode_into_libs
=yes
17472 dynamic_linker
='GNU ld.so'
17475 freebsd
* | dragonfly
*)
17476 # DragonFly does not have aout. When/if they implement a new
17477 # versioning mechanism, adjust this.
17478 if test -x /usr
/bin
/objformat
; then
17479 objformat
=`/usr/bin/objformat`
17482 freebsd
[123]*) objformat
=aout
;;
17483 *) objformat
=elf
;;
17486 version_type
=freebsd-
$objformat
17487 case $version_type in
17489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17494 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17498 shlibpath_var
=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath
=yes
17503 freebsd3.
[01]* | freebsdelf3.
[01]*)
17504 shlibpath_overrides_runpath
=yes
17505 hardcode_into_libs
=yes
17507 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17508 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17509 shlibpath_overrides_runpath
=no
17510 hardcode_into_libs
=yes
17512 freebsd
*) # from 4.6 on
17513 shlibpath_overrides_runpath
=yes
17514 hardcode_into_libs
=yes
17523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17524 soname_spec
='${libname}${release}${shared_ext}$major'
17525 shlibpath_var
=LD_LIBRARY_PATH
17526 hardcode_into_libs
=yes
17529 hpux9
* | hpux10
* | hpux11
*)
17530 # Give a soname corresponding to the major version so that dld.sl refuses to
17531 # link against other versions.
17538 hardcode_into_libs
=yes
17539 dynamic_linker
="$host_os dld.so"
17540 shlibpath_var
=LD_LIBRARY_PATH
17541 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17543 soname_spec
='${libname}${release}${shared_ext}$major'
17544 if test "X$HPUX_IA64_MODE" = X32
; then
17545 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17547 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17549 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17553 hardcode_into_libs
=yes
17554 dynamic_linker
="$host_os dld.sl"
17555 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17556 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17558 soname_spec
='${libname}${release}${shared_ext}$major'
17559 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17560 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17564 dynamic_linker
="$host_os dld.sl"
17565 shlibpath_var
=SHLIB_PATH
17566 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568 soname_spec
='${libname}${release}${shared_ext}$major'
17571 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17572 postinstall_cmds
='chmod 555 $lib'
17579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17580 soname_spec
='${libname}${release}${shared_ext}$major'
17581 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17582 shlibpath_var
=LD_LIBRARY_PATH
17583 shlibpath_overrides_runpath
=no
17584 hardcode_into_libs
=yes
17587 irix5
* | irix6
* | nonstopux
*)
17589 nonstopux
*) version_type
=nonstopux
;;
17591 if test "$lt_cv_prog_gnu_ld" = yes; then
17599 soname_spec
='${libname}${release}${shared_ext}$major'
17600 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17602 irix5
* | nonstopux
*)
17603 libsuff
= shlibsuff
=
17606 case $LD in # libtool.m4 will add one of these switches to LD
17607 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17608 libsuff
= shlibsuff
= libmagic
=32-bit;;
17609 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17610 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17611 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17612 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17613 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17617 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17618 shlibpath_overrides_runpath
=no
17619 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17620 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17621 hardcode_into_libs
=yes
17624 # No shared lib support for Linux oldld, aout, or coff.
17625 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17629 # This must be Linux ELF.
17634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 soname_spec
='${libname}${release}${shared_ext}$major'
17636 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17637 shlibpath_var
=LD_LIBRARY_PATH
17638 shlibpath_overrides_runpath
=no
17639 # This implies no fast_install, which is unacceptable.
17640 # Some rework will be needed to allow for fast_install
17641 # before this can be enabled.
17642 hardcode_into_libs
=yes
17644 # find out which ABI we are using
17646 case "$host_cpu" in
17647 x86_64
*|s390x
*|powerpc64
*)
17648 echo '#line 17648 "configure"' > conftest.
$ac_ext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17650 (eval $ac_compile) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; then
17654 case `/usr/bin/file conftest.$ac_objext` in
17657 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17665 # Append ld.so.conf contents to the search path
17666 if test -f /etc
/ld.so.conf
; then
17667 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17668 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17671 # We used to test for /lib/ld.so.1 and disable shared libraries on
17672 # powerpc, because MkLinux only supported shared libraries with the
17673 # GNU dynamic linker. Since this was broken with cross compilers,
17674 # most powerpc-linux boxes support dynamic linking these days and
17675 # people can always --disable-shared, the test was removed, and we
17676 # assume the GNU/Linux dynamic linker is in use.
17677 dynamic_linker
='GNU/Linux ld.so'
17684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17685 soname_spec
='${libname}${release}${shared_ext}$major'
17686 shlibpath_var
=LD_LIBRARY_PATH
17687 shlibpath_overrides_runpath
=no
17688 hardcode_into_libs
=yes
17689 dynamic_linker
='GNU ld.so'
17696 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17697 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17698 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17699 dynamic_linker
='NetBSD (a.out) ld.so'
17701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17702 soname_spec
='${libname}${release}${shared_ext}$major'
17703 dynamic_linker
='NetBSD ld.elf_so'
17705 shlibpath_var
=LD_LIBRARY_PATH
17706 shlibpath_overrides_runpath
=yes
17707 hardcode_into_libs
=yes
17712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17713 shlibpath_var
=LD_LIBRARY_PATH
17714 shlibpath_overrides_runpath
=yes
17721 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17722 soname_spec
='${libname}${release}${shared_ext}$major'
17723 shlibpath_var
=LD_LIBRARY_PATH
17724 shlibpath_overrides_runpath
=yes
17729 sys_lib_dlsearch_path_spec
="/usr/lib"
17731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17733 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17734 *) need_version
=no
;;
17736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17737 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17738 shlibpath_var
=LD_LIBRARY_PATH
17739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17741 openbsd2.
[89] | openbsd2.
[89].
*)
17742 shlibpath_overrides_runpath
=no
17745 shlibpath_overrides_runpath
=yes
17749 shlibpath_overrides_runpath
=yes
17754 libname_spec
='$name'
17757 library_names_spec
='$libname${shared_ext} $libname.a'
17758 dynamic_linker
='OS/2 ld.exe'
17759 shlibpath_var
=LIBPATH
17762 osf3
* | osf4
* | osf5
*)
17766 soname_spec
='${libname}${release}${shared_ext}$major'
17767 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17768 shlibpath_var
=LD_LIBRARY_PATH
17769 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17770 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17778 soname_spec
='${libname}${release}${shared_ext}$major'
17779 shlibpath_var
=LD_LIBRARY_PATH
17780 shlibpath_overrides_runpath
=yes
17781 hardcode_into_libs
=yes
17782 # ldd complains unless libraries are executable
17783 postinstall_cmds
='chmod +x $lib'
17788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17789 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17790 shlibpath_var
=LD_LIBRARY_PATH
17791 shlibpath_overrides_runpath
=yes
17792 if test "$with_gnu_ld" = yes; then
17800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17801 soname_spec
='${libname}${release}${shared_ext}$major'
17802 shlibpath_var
=LD_LIBRARY_PATH
17803 case $host_vendor in
17805 shlibpath_overrides_runpath
=no
17807 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17808 runpath_var
=LD_RUN_PATH
17816 shlibpath_overrides_runpath
=no
17817 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17823 if test -d /usr
/nec
;then
17825 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17826 soname_spec
='$libname${shared_ext}.$major'
17827 shlibpath_var
=LD_LIBRARY_PATH
17831 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17832 version_type
=freebsd-elf
17835 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17836 soname_spec
='${libname}${release}${shared_ext}$major'
17837 shlibpath_var
=LD_LIBRARY_PATH
17838 hardcode_into_libs
=yes
17839 if test "$with_gnu_ld" = yes; then
17840 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17841 shlibpath_overrides_runpath
=no
17843 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17844 shlibpath_overrides_runpath
=yes
17847 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17851 sys_lib_dlsearch_path_spec
='/usr/lib'
17856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 soname_spec
='${libname}${release}${shared_ext}$major'
17858 shlibpath_var
=LD_LIBRARY_PATH
17865 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17866 echo "${ECHO_T}$dynamic_linker" >&6
17867 test "$dynamic_linker" = no
&& can_build_shared
=no
17869 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17870 if test "$GCC" = yes; then
17871 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17874 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17876 hardcode_action_GCJ
=
17877 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17878 test -n "$runpath_var_GCJ" || \
17879 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17881 # We can hardcode non-existant directories.
17882 if test "$hardcode_direct_GCJ" != no
&&
17883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17884 # have to relink, otherwise we might link with an installed library
17885 # when we should be linking with a yet-to-be-installed one
17886 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17887 test "$hardcode_minus_L_GCJ" != no
; then
17888 # Linking always hardcodes the temporary library directory.
17889 hardcode_action_GCJ
=relink
17891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17892 hardcode_action_GCJ
=immediate
17895 # We cannot hardcode anything, or else we can only hardcode existing
17897 hardcode_action_GCJ
=unsupported
17899 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17900 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17902 if test "$hardcode_action_GCJ" = relink
; then
17903 # Fast installation is not supported
17904 enable_fast_install
=no
17905 elif test "$shlibpath_overrides_runpath" = yes ||
17906 test "$enable_shared" = no
; then
17907 # Fast installation is not necessary
17908 enable_fast_install
=needless
17912 # The else clause should only fire when bootstrapping the
17913 # libtool distribution, otherwise you forgot to ship ltmain.sh
17914 # with your package, and you will get complaints that there are
17915 # no rules to generate ltmain.sh.
17916 if test -f "$ltmain"; then
17917 # See if we are running on zsh, and set the options which allow our commands through
17918 # without removal of \ escapes.
17919 if test -n "${ZSH_VERSION+set}" ; then
17920 setopt NO_GLOB_SUBST
17922 # Now quote all the things that may contain metacharacters while being
17923 # careful not to overquote the AC_SUBSTed values. We take copies of the
17924 # variables and quote the copies for generation of the libtool script.
17925 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17927 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17928 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17929 deplibs_check_method reload_flag reload_cmds need_locks \
17930 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17931 lt_cv_sys_global_symbol_to_c_name_address \
17932 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17933 old_postinstall_cmds old_postuninstall_cmds \
17937 lt_prog_compiler_wl_GCJ \
17938 lt_prog_compiler_pic_GCJ \
17939 lt_prog_compiler_static_GCJ \
17940 lt_prog_compiler_no_builtin_flag_GCJ \
17941 export_dynamic_flag_spec_GCJ \
17942 thread_safe_flag_spec_GCJ \
17943 whole_archive_flag_spec_GCJ \
17944 enable_shared_with_static_runtimes_GCJ \
17945 old_archive_cmds_GCJ \
17946 old_archive_from_new_cmds_GCJ \
17947 predep_objects_GCJ \
17948 postdep_objects_GCJ \
17951 compiler_lib_search_path_GCJ \
17953 archive_expsym_cmds_GCJ \
17954 postinstall_cmds_GCJ \
17955 postuninstall_cmds_GCJ \
17956 old_archive_from_expsyms_cmds_GCJ \
17957 allow_undefined_flag_GCJ \
17958 no_undefined_flag_GCJ \
17959 export_symbols_cmds_GCJ \
17960 hardcode_libdir_flag_spec_GCJ \
17961 hardcode_libdir_flag_spec_ld_GCJ \
17962 hardcode_libdir_separator_GCJ \
17963 hardcode_automatic_GCJ \
17965 module_expsym_cmds_GCJ \
17966 lt_cv_prog_compiler_c_o_GCJ \
17967 exclude_expsyms_GCJ \
17968 include_expsyms_GCJ
; do
17971 old_archive_cmds_GCJ | \
17972 old_archive_from_new_cmds_GCJ | \
17973 archive_cmds_GCJ | \
17974 archive_expsym_cmds_GCJ | \
17975 module_cmds_GCJ | \
17976 module_expsym_cmds_GCJ | \
17977 old_archive_from_expsyms_cmds_GCJ | \
17978 export_symbols_cmds_GCJ | \
17979 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17980 postinstall_cmds | postuninstall_cmds | \
17981 old_postinstall_cmds | old_postuninstall_cmds | \
17982 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
17983 # Double-quote double-evaled strings.
17984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17987 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17993 *'\$0 --fallback-echo"')
17994 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18000 cat <<__EOF__ >> "$cfgfile"
18001 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18003 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18005 # Shell to use when invoking shell scripts.
18008 # Whether or not to build shared libraries.
18009 build_libtool_libs=$enable_shared
18011 # Whether or not to build static libraries.
18012 build_old_libs=$enable_static
18014 # Whether or not to add -lc for building shared libraries.
18015 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18017 # Whether or not to disallow shared libs when runtime libs are static
18018 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18020 # Whether or not to optimize for fast installation.
18021 fast_install=$enable_fast_install
18024 host_alias=$host_alias
18028 # The build system.
18029 build_alias=$build_alias
18033 # An echo program that does not interpret backslashes.
18038 AR_FLAGS=$lt_AR_FLAGS
18043 # LTCC compiler flags.
18044 LTCFLAGS=$lt_LTCFLAGS
18046 # A language-specific compiler.
18047 CC=$lt_compiler_GCJ
18049 # Is the compiler the GNU C compiler?
18052 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18053 gcc_ver=\`gcc -dumpversion\`
18058 # The linker used to build libraries.
18061 # Whether we need hard or soft links.
18064 # A BSD-compatible nm program.
18067 # A symbol stripping program
18070 # Used to examine libraries when file_magic_cmd begins "file"
18071 MAGIC_CMD=$MAGIC_CMD
18073 # Used on cygwin: DLL creation program.
18076 # Used on cygwin: object dumper.
18079 # Used on cygwin: assembler.
18082 # The name of the directory that contains temporary libtool files.
18085 # How to create reloadable object files.
18086 reload_flag=$lt_reload_flag
18087 reload_cmds=$lt_reload_cmds
18089 # How to pass a linker flag through the compiler.
18090 wl=$lt_lt_prog_compiler_wl_GCJ
18092 # Object file suffix (normally "o").
18093 objext="$ac_objext"
18095 # Old archive suffix (normally "a").
18098 # Shared library suffix (normally ".so").
18099 shrext_cmds='$shrext_cmds'
18101 # Executable file suffix (normally "").
18104 # Additional compiler flags for building library objects.
18105 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18108 # What is the maximum length of a command?
18109 max_cmd_len=$lt_cv_sys_max_cmd_len
18111 # Does compiler simultaneously support -c and -o options?
18112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18114 # Must we lock files when doing compilation?
18115 need_locks=$lt_need_locks
18117 # Do we need the lib prefix for modules?
18118 need_lib_prefix=$need_lib_prefix
18120 # Do we need a version for libraries?
18121 need_version=$need_version
18123 # Whether dlopen is supported.
18124 dlopen_support=$enable_dlopen
18126 # Whether dlopen of programs is supported.
18127 dlopen_self=$enable_dlopen_self
18129 # Whether dlopen of statically linked programs is supported.
18130 dlopen_self_static=$enable_dlopen_self_static
18132 # Compiler flag to prevent dynamic linking.
18133 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18135 # Compiler flag to turn off builtin functions.
18136 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18138 # Compiler flag to allow reflexive dlopens.
18139 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18141 # Compiler flag to generate shared objects directly from archives.
18142 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18144 # Compiler flag to generate thread-safe objects.
18145 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18147 # Library versioning type.
18148 version_type=$version_type
18150 # Format of library name prefix.
18151 libname_spec=$lt_libname_spec
18153 # List of archive names. First name is the real one, the rest are links.
18154 # The last name is the one that the linker finds with -lNAME.
18155 library_names_spec=$lt_library_names_spec
18157 # The coded name of the library, if different from the real name.
18158 soname_spec=$lt_soname_spec
18160 # Commands used to build and install an old-style archive.
18162 old_archive_cmds=$lt_old_archive_cmds_GCJ
18163 old_postinstall_cmds=$lt_old_postinstall_cmds
18164 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18166 # Create an old-style archive from a shared archive.
18167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18169 # Create a temporary old-style archive to link instead of a shared archive.
18170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18172 # Commands used to build and install a shared archive.
18173 archive_cmds=$lt_archive_cmds_GCJ
18174 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18175 postinstall_cmds=$lt_postinstall_cmds
18176 postuninstall_cmds=$lt_postuninstall_cmds
18178 # Commands used to build a loadable module (assumed same as above if empty)
18179 module_cmds=$lt_module_cmds_GCJ
18180 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18182 # Commands to strip libraries.
18183 old_striplib=$lt_old_striplib
18184 striplib=$lt_striplib
18186 # Dependencies to place before the objects being linked to create a
18188 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18190 # Dependencies to place after the objects being linked to create a
18192 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18194 # Dependencies to place before the objects being linked to create a
18196 predeps=$lt_predeps_GCJ
18198 # Dependencies to place after the objects being linked to create a
18200 postdeps=$lt_postdeps_GCJ
18202 # The library search path used internally by the compiler when linking
18203 # a shared library.
18204 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18206 # Method to check whether dependent libraries are shared objects.
18207 deplibs_check_method=$lt_deplibs_check_method
18209 # Command to use when deplibs_check_method == file_magic.
18210 file_magic_cmd=$lt_file_magic_cmd
18212 # Flag that allows shared libraries with undefined symbols to be built.
18213 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18215 # Flag that forces no undefined symbols.
18216 no_undefined_flag=$lt_no_undefined_flag_GCJ
18218 # Commands used to finish a libtool library installation in a directory.
18219 finish_cmds=$lt_finish_cmds
18221 # Same as above, but a single script fragment to be evaled but not shown.
18222 finish_eval=$lt_finish_eval
18224 # Take the output of nm and produce a listing of raw symbols and C names.
18225 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18227 # Transform the output of nm in a proper C declaration
18228 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18230 # Transform the output of nm in a C name address pair
18231 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18233 # This is the shared library runtime path variable.
18234 runpath_var=$runpath_var
18236 # This is the shared library path variable.
18237 shlibpath_var=$shlibpath_var
18239 # Is shlibpath searched before the hard-coded library search path?
18240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18242 # How to hardcode a shared library path into an executable.
18243 hardcode_action=$hardcode_action_GCJ
18245 # Whether we should hardcode library paths into libraries.
18246 hardcode_into_libs=$hardcode_into_libs
18248 # Flag to hardcode \$libdir into a binary during linking.
18249 # This must work even if \$libdir does not exist.
18250 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18252 # If ld is used when linking, flag to hardcode \$libdir into
18253 # a binary during linking. This must work even if \$libdir does
18255 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18257 # Whether we need a single -rpath flag with a separated argument.
18258 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18260 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18261 # resulting binary.
18262 hardcode_direct=$hardcode_direct_GCJ
18264 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18265 # resulting binary.
18266 hardcode_minus_L=$hardcode_minus_L_GCJ
18268 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18269 # the resulting binary.
18270 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18272 # Set to yes if building a shared library automatically hardcodes DIR into the library
18273 # and all subsequent libraries and executables linked against it.
18274 hardcode_automatic=$hardcode_automatic_GCJ
18276 # Variables whose values should be saved in libtool wrapper scripts and
18277 # restored at relink time.
18278 variables_saved_for_relink="$variables_saved_for_relink"
18280 # Whether libtool must link a program against all its dependency libraries.
18281 link_all_deplibs=$link_all_deplibs_GCJ
18283 # Compile-time system search path for libraries
18284 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18286 # Run-time system search path for libraries
18287 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18289 # Fix the shell variable \$srcfile for the compiler.
18290 fix_srcfile_path="$fix_srcfile_path_GCJ"
18292 # Set to yes if exported symbols are required.
18293 always_export_symbols=$always_export_symbols_GCJ
18295 # The commands to list exported symbols.
18296 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18298 # The commands to extract the exported symbol list from a shared archive.
18299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18301 # Symbols that should not be listed in the preloaded symbols.
18302 exclude_expsyms=$lt_exclude_expsyms_GCJ
18304 # Symbols that must always be exported.
18305 include_expsyms=$lt_include_expsyms_GCJ
18307 # ### END LIBTOOL TAG CONFIG: $tagname
18313 # If there is no Makefile yet, we rely on a make rule to execute
18314 # `config.status --recheck' to rerun these tests and create the
18315 # libtool script then.
18316 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18317 if test -f "$ltmain_in"; then
18318 test -f Makefile
&& make "$ltmain"
18324 ac_cpp
='$CPP $CPPFLAGS'
18325 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18326 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18327 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18340 # Source file extension for RC test sources.
18343 # Object file extension for compiled RC test sources.
18347 # Code to be used in simple compile tests
18348 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18350 # Code to be used in simple link tests
18351 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18353 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18355 # If no C compiler was specified, use CC.
18358 # If no C compiler flags were specified, use CFLAGS.
18359 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18361 # Allow CC to be a program name with arguments.
18365 # save warnings/boilerplate of simple test code
18366 ac_outfile
=conftest.
$ac_objext
18367 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
18368 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18369 _lt_compiler_boilerplate
=`cat conftest.err`
18372 ac_outfile
=conftest.
$ac_objext
18373 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
18374 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18375 _lt_linker_boilerplate
=`cat conftest.err`
18379 # Allow CC to be a program name with arguments.
18384 for cc_temp
in $compiler""; do
18386 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18387 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18392 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18394 lt_cv_prog_compiler_c_o_RC
=yes
18396 # The else clause should only fire when bootstrapping the
18397 # libtool distribution, otherwise you forgot to ship ltmain.sh
18398 # with your package, and you will get complaints that there are
18399 # no rules to generate ltmain.sh.
18400 if test -f "$ltmain"; then
18401 # See if we are running on zsh, and set the options which allow our commands through
18402 # without removal of \ escapes.
18403 if test -n "${ZSH_VERSION+set}" ; then
18404 setopt NO_GLOB_SUBST
18406 # Now quote all the things that may contain metacharacters while being
18407 # careful not to overquote the AC_SUBSTed values. We take copies of the
18408 # variables and quote the copies for generation of the libtool script.
18409 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18411 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18412 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18413 deplibs_check_method reload_flag reload_cmds need_locks \
18414 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18415 lt_cv_sys_global_symbol_to_c_name_address \
18416 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18417 old_postinstall_cmds old_postuninstall_cmds \
18421 lt_prog_compiler_wl_RC \
18422 lt_prog_compiler_pic_RC \
18423 lt_prog_compiler_static_RC \
18424 lt_prog_compiler_no_builtin_flag_RC \
18425 export_dynamic_flag_spec_RC \
18426 thread_safe_flag_spec_RC \
18427 whole_archive_flag_spec_RC \
18428 enable_shared_with_static_runtimes_RC \
18429 old_archive_cmds_RC \
18430 old_archive_from_new_cmds_RC \
18431 predep_objects_RC \
18432 postdep_objects_RC \
18435 compiler_lib_search_path_RC \
18437 archive_expsym_cmds_RC \
18438 postinstall_cmds_RC \
18439 postuninstall_cmds_RC \
18440 old_archive_from_expsyms_cmds_RC \
18441 allow_undefined_flag_RC \
18442 no_undefined_flag_RC \
18443 export_symbols_cmds_RC \
18444 hardcode_libdir_flag_spec_RC \
18445 hardcode_libdir_flag_spec_ld_RC \
18446 hardcode_libdir_separator_RC \
18447 hardcode_automatic_RC \
18449 module_expsym_cmds_RC \
18450 lt_cv_prog_compiler_c_o_RC \
18451 exclude_expsyms_RC \
18452 include_expsyms_RC
; do
18455 old_archive_cmds_RC | \
18456 old_archive_from_new_cmds_RC | \
18457 archive_cmds_RC | \
18458 archive_expsym_cmds_RC | \
18460 module_expsym_cmds_RC | \
18461 old_archive_from_expsyms_cmds_RC | \
18462 export_symbols_cmds_RC | \
18463 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18464 postinstall_cmds | postuninstall_cmds | \
18465 old_postinstall_cmds | old_postuninstall_cmds | \
18466 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18467 # Double-quote double-evaled strings.
18468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18477 *'\$0 --fallback-echo"')
18478 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18484 cat <<__EOF__ >> "$cfgfile"
18485 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18489 # Shell to use when invoking shell scripts.
18492 # Whether or not to build shared libraries.
18493 build_libtool_libs=$enable_shared
18495 # Whether or not to build static libraries.
18496 build_old_libs=$enable_static
18498 # Whether or not to add -lc for building shared libraries.
18499 build_libtool_need_lc=$archive_cmds_need_lc_RC
18501 # Whether or not to disallow shared libs when runtime libs are static
18502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18504 # Whether or not to optimize for fast installation.
18505 fast_install=$enable_fast_install
18508 host_alias=$host_alias
18512 # The build system.
18513 build_alias=$build_alias
18517 # An echo program that does not interpret backslashes.
18522 AR_FLAGS=$lt_AR_FLAGS
18527 # LTCC compiler flags.
18528 LTCFLAGS=$lt_LTCFLAGS
18530 # A language-specific compiler.
18533 # Is the compiler the GNU C compiler?
18536 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18537 gcc_ver=\`gcc -dumpversion\`
18542 # The linker used to build libraries.
18545 # Whether we need hard or soft links.
18548 # A BSD-compatible nm program.
18551 # A symbol stripping program
18554 # Used to examine libraries when file_magic_cmd begins "file"
18555 MAGIC_CMD=$MAGIC_CMD
18557 # Used on cygwin: DLL creation program.
18560 # Used on cygwin: object dumper.
18563 # Used on cygwin: assembler.
18566 # The name of the directory that contains temporary libtool files.
18569 # How to create reloadable object files.
18570 reload_flag=$lt_reload_flag
18571 reload_cmds=$lt_reload_cmds
18573 # How to pass a linker flag through the compiler.
18574 wl=$lt_lt_prog_compiler_wl_RC
18576 # Object file suffix (normally "o").
18577 objext="$ac_objext"
18579 # Old archive suffix (normally "a").
18582 # Shared library suffix (normally ".so").
18583 shrext_cmds='$shrext_cmds'
18585 # Executable file suffix (normally "").
18588 # Additional compiler flags for building library objects.
18589 pic_flag=$lt_lt_prog_compiler_pic_RC
18592 # What is the maximum length of a command?
18593 max_cmd_len=$lt_cv_sys_max_cmd_len
18595 # Does compiler simultaneously support -c and -o options?
18596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18598 # Must we lock files when doing compilation?
18599 need_locks=$lt_need_locks
18601 # Do we need the lib prefix for modules?
18602 need_lib_prefix=$need_lib_prefix
18604 # Do we need a version for libraries?
18605 need_version=$need_version
18607 # Whether dlopen is supported.
18608 dlopen_support=$enable_dlopen
18610 # Whether dlopen of programs is supported.
18611 dlopen_self=$enable_dlopen_self
18613 # Whether dlopen of statically linked programs is supported.
18614 dlopen_self_static=$enable_dlopen_self_static
18616 # Compiler flag to prevent dynamic linking.
18617 link_static_flag=$lt_lt_prog_compiler_static_RC
18619 # Compiler flag to turn off builtin functions.
18620 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18622 # Compiler flag to allow reflexive dlopens.
18623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18625 # Compiler flag to generate shared objects directly from archives.
18626 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18628 # Compiler flag to generate thread-safe objects.
18629 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18631 # Library versioning type.
18632 version_type=$version_type
18634 # Format of library name prefix.
18635 libname_spec=$lt_libname_spec
18637 # List of archive names. First name is the real one, the rest are links.
18638 # The last name is the one that the linker finds with -lNAME.
18639 library_names_spec=$lt_library_names_spec
18641 # The coded name of the library, if different from the real name.
18642 soname_spec=$lt_soname_spec
18644 # Commands used to build and install an old-style archive.
18646 old_archive_cmds=$lt_old_archive_cmds_RC
18647 old_postinstall_cmds=$lt_old_postinstall_cmds
18648 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18650 # Create an old-style archive from a shared archive.
18651 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18653 # Create a temporary old-style archive to link instead of a shared archive.
18654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18656 # Commands used to build and install a shared archive.
18657 archive_cmds=$lt_archive_cmds_RC
18658 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18659 postinstall_cmds=$lt_postinstall_cmds
18660 postuninstall_cmds=$lt_postuninstall_cmds
18662 # Commands used to build a loadable module (assumed same as above if empty)
18663 module_cmds=$lt_module_cmds_RC
18664 module_expsym_cmds=$lt_module_expsym_cmds_RC
18666 # Commands to strip libraries.
18667 old_striplib=$lt_old_striplib
18668 striplib=$lt_striplib
18670 # Dependencies to place before the objects being linked to create a
18672 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18674 # Dependencies to place after the objects being linked to create a
18676 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18678 # Dependencies to place before the objects being linked to create a
18680 predeps=$lt_predeps_RC
18682 # Dependencies to place after the objects being linked to create a
18684 postdeps=$lt_postdeps_RC
18686 # The library search path used internally by the compiler when linking
18687 # a shared library.
18688 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18690 # Method to check whether dependent libraries are shared objects.
18691 deplibs_check_method=$lt_deplibs_check_method
18693 # Command to use when deplibs_check_method == file_magic.
18694 file_magic_cmd=$lt_file_magic_cmd
18696 # Flag that allows shared libraries with undefined symbols to be built.
18697 allow_undefined_flag=$lt_allow_undefined_flag_RC
18699 # Flag that forces no undefined symbols.
18700 no_undefined_flag=$lt_no_undefined_flag_RC
18702 # Commands used to finish a libtool library installation in a directory.
18703 finish_cmds=$lt_finish_cmds
18705 # Same as above, but a single script fragment to be evaled but not shown.
18706 finish_eval=$lt_finish_eval
18708 # Take the output of nm and produce a listing of raw symbols and C names.
18709 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18711 # Transform the output of nm in a proper C declaration
18712 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18714 # Transform the output of nm in a C name address pair
18715 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18717 # This is the shared library runtime path variable.
18718 runpath_var=$runpath_var
18720 # This is the shared library path variable.
18721 shlibpath_var=$shlibpath_var
18723 # Is shlibpath searched before the hard-coded library search path?
18724 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18726 # How to hardcode a shared library path into an executable.
18727 hardcode_action=$hardcode_action_RC
18729 # Whether we should hardcode library paths into libraries.
18730 hardcode_into_libs=$hardcode_into_libs
18732 # Flag to hardcode \$libdir into a binary during linking.
18733 # This must work even if \$libdir does not exist.
18734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18736 # If ld is used when linking, flag to hardcode \$libdir into
18737 # a binary during linking. This must work even if \$libdir does
18739 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18741 # Whether we need a single -rpath flag with a separated argument.
18742 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18744 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18745 # resulting binary.
18746 hardcode_direct=$hardcode_direct_RC
18748 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18749 # resulting binary.
18750 hardcode_minus_L=$hardcode_minus_L_RC
18752 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18753 # the resulting binary.
18754 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18756 # Set to yes if building a shared library automatically hardcodes DIR into the library
18757 # and all subsequent libraries and executables linked against it.
18758 hardcode_automatic=$hardcode_automatic_RC
18760 # Variables whose values should be saved in libtool wrapper scripts and
18761 # restored at relink time.
18762 variables_saved_for_relink="$variables_saved_for_relink"
18764 # Whether libtool must link a program against all its dependency libraries.
18765 link_all_deplibs=$link_all_deplibs_RC
18767 # Compile-time system search path for libraries
18768 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18770 # Run-time system search path for libraries
18771 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18773 # Fix the shell variable \$srcfile for the compiler.
18774 fix_srcfile_path="$fix_srcfile_path_RC"
18776 # Set to yes if exported symbols are required.
18777 always_export_symbols=$always_export_symbols_RC
18779 # The commands to list exported symbols.
18780 export_symbols_cmds=$lt_export_symbols_cmds_RC
18782 # The commands to extract the exported symbol list from a shared archive.
18783 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18785 # Symbols that should not be listed in the preloaded symbols.
18786 exclude_expsyms=$lt_exclude_expsyms_RC
18788 # Symbols that must always be exported.
18789 include_expsyms=$lt_include_expsyms_RC
18791 # ### END LIBTOOL TAG CONFIG: $tagname
18797 # If there is no Makefile yet, we rely on a make rule to execute
18798 # `config.status --recheck' to rerun these tests and create the
18799 # libtool script then.
18800 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18801 if test -f "$ltmain_in"; then
18802 test -f Makefile
&& make "$ltmain"
18808 ac_cpp
='$CPP $CPPFLAGS'
18809 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18810 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18811 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18818 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18819 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18820 { (exit 1); exit 1; }; }
18824 # Append the new tag name to the list of available tags.
18825 if test -n "$tagname" ; then
18826 available_tags
="$available_tags $tagname"
18832 # Now substitute the updated list of available tags.
18833 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18834 mv "${ofile}T" "$ofile"
18838 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18839 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18840 { (exit 1); exit 1; }; }
18846 # This can be used to rebuild libtool when needed
18847 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
18849 # Always use our own libtool.
18850 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
18852 # Prevent multiple expansion
18874 if test "$GCC" = yes ; then
18875 CXXFLAGS
="$CXXFLAGS -Wall"
18876 CFLAGS
="$CFLAGS -Wall"
18880 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18881 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18882 if test "${ac_cv_header_stdc+set}" = set; then
18883 echo $ECHO_N "(cached) $ECHO_C" >&6
18885 cat >conftest.
$ac_ext <<_ACEOF
18888 cat confdefs.h
>>conftest.
$ac_ext
18889 cat >>conftest.
$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18891 #include <stdlib.h>
18892 #include <stdarg.h>
18893 #include <string.h>
18904 rm -f conftest.
$ac_objext
18905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18906 (eval $ac_compile) 2>conftest.er1
18908 grep -v '^ *+' conftest.er1
>conftest.err
18910 cat conftest.err
>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try
='test -z "$ac_c_werror_flag"
18914 || test ! -s conftest.err'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try
='test -s conftest.$ac_objext'
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; }; then
18926 ac_cv_header_stdc
=yes
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.
$ac_ext >&5
18931 ac_cv_header_stdc
=no
18933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18935 if test $ac_cv_header_stdc = yes; then
18936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18937 cat >conftest.
$ac_ext <<_ACEOF
18940 cat confdefs.h
>>conftest.
$ac_ext
18941 cat >>conftest.
$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18943 #include <string.h>
18946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18947 $EGREP "memchr" >/dev
/null
2>&1; then
18950 ac_cv_header_stdc
=no
18956 if test $ac_cv_header_stdc = yes; then
18957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18958 cat >conftest.
$ac_ext <<_ACEOF
18961 cat confdefs.h
>>conftest.
$ac_ext
18962 cat >>conftest.
$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18964 #include <stdlib.h>
18967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18968 $EGREP "free" >/dev
/null
2>&1; then
18971 ac_cv_header_stdc
=no
18977 if test $ac_cv_header_stdc = yes; then
18978 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18979 if test "$cross_compiling" = yes; then
18982 cat >conftest.
$ac_ext <<_ACEOF
18985 cat confdefs.h
>>conftest.
$ac_ext
18986 cat >>conftest.
$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18989 #if ((' ' & 0x0FF) == 0x020)
18990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18993 # define ISLOWER(c) \
18994 (('a' <= (c) && (c) <= 'i') \
18995 || ('j' <= (c) && (c) <= 'r') \
18996 || ('s' <= (c) && (c) <= 'z'))
18997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19005 for (i = 0; i < 256; i++)
19006 if (XOR (islower (i), ISLOWER (i))
19007 || toupper (i) != TOUPPER (i))
19012 rm -f conftest
$ac_exeext
19013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19014 (eval $ac_link) 2>&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019 (eval $ac_try) 2>&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19025 echo "$as_me: program exited with status $ac_status" >&5
19026 echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.
$ac_ext >&5
19029 ( exit $ac_status )
19030 ac_cv_header_stdc
=no
19032 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19036 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19037 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19038 if test $ac_cv_header_stdc = yes; then
19040 cat >>confdefs.h
<<\_ACEOF
19041 #define STDC_HEADERS 1
19047 for ac_header
in locale.h
19049 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19051 echo "$as_me:$LINENO: checking for $ac_header" >&5
19052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19059 # Is the header compilable?
19060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19062 cat >conftest.
$ac_ext <<_ACEOF
19065 cat confdefs.h
>>conftest.
$ac_ext
19066 cat >>conftest.
$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19068 $ac_includes_default
19069 #include <$ac_header>
19071 rm -f conftest.
$ac_objext
19072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19073 (eval $ac_compile) 2>conftest.er1
19075 grep -v '^ *+' conftest.er1
>conftest.err
19077 cat conftest.err
>&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
19080 { ac_try
='test -z "$ac_c_werror_flag"
19081 || test ! -s conftest.err'
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; } &&
19087 { ac_try
='test -s conftest.$ac_objext'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19093 ac_header_compiler
=yes
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.
$ac_ext >&5
19098 ac_header_compiler
=no
19100 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19102 echo "${ECHO_T}$ac_header_compiler" >&6
19104 # Is the header present?
19105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19107 cat >conftest.
$ac_ext <<_ACEOF
19110 cat confdefs.h
>>conftest.
$ac_ext
19111 cat >>conftest.
$ac_ext <<_ACEOF
19112 /* end confdefs.h. */
19113 #include <$ac_header>
19115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19116 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19118 grep -v '^ *+' conftest.er1
>conftest.err
19120 cat conftest.err
>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } >/dev
/null
; then
19123 if test -s conftest.err
; then
19124 ac_cpp_err
=$ac_c_preproc_warn_flag
19125 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19132 if test -z "$ac_cpp_err"; then
19133 ac_header_preproc
=yes
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.
$ac_ext >&5
19138 ac_header_preproc
=no
19140 rm -f conftest.err conftest.
$ac_ext
19141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19142 echo "${ECHO_T}$ac_header_preproc" >&6
19144 # So? What about this header?
19145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19151 ac_header_preproc
=yes
19154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19168 ## -------------------------------------------------- ##
19169 ## Report this to courier-users@lists.sourceforge.net ##
19170 ## -------------------------------------------------- ##
19173 sed "s/^/$as_me: WARNING: /" >&2
19176 echo "$as_me:$LINENO: checking for $ac_header" >&5
19177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19181 eval "$as_ac_Header=\$ac_header_preproc"
19183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19188 cat >>confdefs.h
<<_ACEOF
19189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19197 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19198 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19199 if test "${ac_cv_c_const+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19202 cat >conftest.
$ac_ext <<_ACEOF
19205 cat confdefs.h
>>conftest.
$ac_ext
19206 cat >>conftest.
$ac_ext <<_ACEOF
19207 /* end confdefs.h. */
19212 /* FIXME: Include the comments suggested by Paul. */
19213 #ifndef __cplusplus
19214 /* Ultrix mips cc rejects this. */
19215 typedef int charset[2];
19217 /* SunOS 4.1.1 cc rejects this. */
19218 char const *const *ccp;
19220 /* NEC SVR4.0.2 mips cc rejects this. */
19221 struct point {int x, y;};
19222 static struct point const zero = {0,0};
19223 /* AIX XL C 1.02.0.0 rejects this.
19224 It does not let you subtract one const X* pointer from another in
19225 an arm of an if-expression whose if-part is not a constant
19227 const char *g = "string";
19228 ccp = &g + (g ? g-g : 0);
19229 /* HPUX 7.0 cc rejects these. */
19232 ccp = (char const *const *) p;
19233 { /* SCO 3.2v4 cc rejects this. */
19235 char const *s = 0 ? (char *) 0 : (char const *) 0;
19239 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19240 int x[] = {25, 17};
19241 const int *foo = &x[0];
19244 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19245 typedef const int *iptr;
19249 { /* AIX XL C 1.02.0.0 rejects this saying
19250 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19251 struct s { int j; const int *ap[3]; };
19252 struct s *b; b->j = 5;
19254 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19255 const int foo = 10;
19263 rm -f conftest.
$ac_objext
19264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19265 (eval $ac_compile) 2>conftest.er1
19267 grep -v '^ *+' conftest.er1
>conftest.err
19269 cat conftest.err
>&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } &&
19272 { ac_try
='test -z "$ac_c_werror_flag"
19273 || test ! -s conftest.err'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try
='test -s conftest.$ac_objext'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.
$ac_ext >&5
19292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19294 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19295 echo "${ECHO_T}$ac_cv_c_const" >&6
19296 if test $ac_cv_c_const = no
; then
19298 cat >>confdefs.h
<<\_ACEOF
19304 echo "$as_me:$LINENO: checking for size_t" >&5
19305 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19306 if test "${ac_cv_type_size_t+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 cat >conftest.
$ac_ext <<_ACEOF
19312 cat confdefs.h
>>conftest.
$ac_ext
19313 cat >>conftest.
$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19315 $ac_includes_default
19321 if (sizeof (size_t))
19327 rm -f conftest.
$ac_objext
19328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19329 (eval $ac_compile) 2>conftest.er1
19331 grep -v '^ *+' conftest.er1
>conftest.err
19333 cat conftest.err
>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } &&
19336 { ac_try
='test -z "$ac_c_werror_flag"
19337 || test ! -s conftest.err'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try
='test -s conftest.$ac_objext'
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349 ac_cv_type_size_t
=yes
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.
$ac_ext >&5
19354 ac_cv_type_size_t
=no
19356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19358 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19359 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19360 if test $ac_cv_type_size_t = yes; then
19364 cat >>confdefs.h
<<_ACEOF
19365 #define size_t unsigned
19370 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19371 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19372 if test "${ac_cv_struct_tm+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 cat >conftest.
$ac_ext <<_ACEOF
19378 cat confdefs.h
>>conftest.
$ac_ext
19379 cat >>conftest.
$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19381 #include <sys/types.h>
19387 struct tm *tp; tp->tm_sec;
19392 rm -f conftest.
$ac_objext
19393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19394 (eval $ac_compile) 2>conftest.er1
19396 grep -v '^ *+' conftest.er1
>conftest.err
19398 cat conftest.err
>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } &&
19401 { ac_try
='test -z "$ac_c_werror_flag"
19402 || test ! -s conftest.err'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try
='test -s conftest.$ac_objext'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_cv_struct_tm
=time.h
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.
$ac_ext >&5
19419 ac_cv_struct_tm
=sys
/time.h
19421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19423 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19424 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19425 if test $ac_cv_struct_tm = sys
/time.h
; then
19427 cat >>confdefs.h
<<\_ACEOF
19428 #define TM_IN_SYS_TIME 1
19438 for ac_func
in strcasecmp strncasecmp setlocale
19440 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19441 echo "$as_me:$LINENO: checking for $ac_func" >&5
19442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19443 if eval "test \"\${$as_ac_var+set}\" = set"; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19446 cat >conftest.
$ac_ext <<_ACEOF
19449 cat confdefs.h
>>conftest.
$ac_ext
19450 cat >>conftest.
$ac_ext <<_ACEOF
19451 /* end confdefs.h. */
19452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19454 #define $ac_func innocuous_$ac_func
19456 /* System header to define __stub macros and hopefully few prototypes,
19457 which can conflict with char $ac_func (); below.
19458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19459 <limits.h> exists even on freestanding compilers. */
19462 # include <limits.h>
19464 # include <assert.h>
19469 /* Override any gcc2 internal prototype to avoid an error. */
19474 /* We use char because int might match the return type of a gcc2
19475 builtin and then its argument prototype would still apply. */
19477 /* The GNU C library defines this for functions which it implements
19478 to always fail with ENOSYS. Some functions are actually named
19479 something starting with __ and the normal name is an alias. */
19480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19483 char (*f) () = $ac_func;
19492 return f != $ac_func;
19497 rm -f conftest.
$ac_objext conftest
$ac_exeext
19498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19499 (eval $ac_link) 2>conftest.er1
19501 grep -v '^ *+' conftest.er1
>conftest.err
19503 cat conftest.err
>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try
='test -z "$ac_c_werror_flag"
19507 || test ! -s conftest.err'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; } &&
19513 { ac_try
='test -s conftest$ac_exeext'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19519 eval "$as_ac_var=yes"
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.
$ac_ext >&5
19524 eval "$as_ac_var=no"
19526 rm -f conftest.err conftest.
$ac_objext \
19527 conftest
$ac_exeext conftest.
$ac_ext
19529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19531 if test `eval echo '${'$as_ac_var'}'` = yes; then
19532 cat >>confdefs.h
<<_ACEOF
19533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19540 echo "$as_me:$LINENO: checking how to calculate alternate timezone" >&5
19541 echo $ECHO_N "checking how to calculate alternate timezone... $ECHO_C" >&6
19542 if test "${librfc822_cv_SYS_TIMEZONE+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 cat >conftest.
$ac_ext <<_ACEOF
19548 cat confdefs.h
>>conftest.
$ac_ext
19549 cat >>conftest.
$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19569 rm -f conftest.
$ac_objext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19571 (eval $ac_compile) 2>conftest.er1
19573 grep -v '^ *+' conftest.er1
>conftest.err
19575 cat conftest.err
>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); } &&
19578 { ac_try
='test -z "$ac_c_werror_flag"
19579 || test ! -s conftest.err'
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; } &&
19585 { ac_try
='test -s conftest.$ac_objext'
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; }; then
19591 librfc822_cv_SYS_TIMEZONE
=altzone
19593 echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.
$ac_ext >&5
19596 cat >conftest.
$ac_ext <<_ACEOF
19599 cat confdefs.h
>>conftest.
$ac_ext
19600 cat >>conftest.
$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19620 rm -f conftest.
$ac_objext
19621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19622 (eval $ac_compile) 2>conftest.er1
19624 grep -v '^ *+' conftest.er1
>conftest.err
19626 cat conftest.err
>&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try
='test -z "$ac_c_werror_flag"
19630 || test ! -s conftest.err'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; } &&
19636 { ac_try
='test -s conftest.$ac_objext'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 librfc822_cv_SYS_TIMEZONE
=daylight
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.
$ac_ext >&5
19647 cat >conftest.
$ac_ext <<_ACEOF
19650 cat confdefs.h
>>conftest.
$ac_ext
19651 cat >>conftest.
$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19656 extern struct tm dummy;
19664 long n=dummy.tm_gmtoff;
19673 rm -f conftest.
$ac_objext
19674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19675 (eval $ac_compile) 2>conftest.er1
19677 grep -v '^ *+' conftest.er1
>conftest.err
19679 cat conftest.err
>&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } &&
19682 { ac_try
='test -z "$ac_c_werror_flag"
19683 || test ! -s conftest.err'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try
='test -s conftest.$ac_objext'
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 librfc822_cv_SYS_TIMEZONE
=tm_gmtoff
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.
$ac_ext >&5
19700 librfc822_cv_SYS_TIMEZONE
=unknown
19703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19709 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19712 echo "$as_me:$LINENO: result: $librfc822_cv_SYS_TIMEZONE" >&5
19713 echo "${ECHO_T}$librfc822_cv_SYS_TIMEZONE" >&6
19715 case $librfc822_cv_SYS_TIMEZONE in
19718 cat >>confdefs.h
<<_ACEOF
19719 #define USE_TIME_GMTOFF 1
19725 cat >>confdefs.h
<<_ACEOF
19726 #define USE_TIME_ALTZONE 1
19732 cat >>confdefs.h
<<_ACEOF
19733 #define USE_TIME_DAYLIGHT 1
19738 { echo "$as_me:$LINENO: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&5
19739 echo "$as_me: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&2;}
19743 if test -d ..
/unicode
19746 cat >>confdefs.h
<<_ACEOF
19747 #define HAVE_LIBUNICODE 1
19754 if test -d ${srcdir}/..
/docbook
; then
19756 HAVE_SGML_FALSE
='#'
19763 ac_config_files
="$ac_config_files Makefile"
19764 cat >confcache
<<\_ACEOF
19765 # This file is a shell script that caches the results of configure
19766 # tests run on this system so they can be shared between configure
19767 # scripts and configure runs, see configure's option --config-cache.
19768 # It is not useful on other systems. If it contains results you don't
19769 # want to keep, you may remove or edit it.
19771 # config.status only pays attention to the cache file if you give it
19772 # the --recheck option to rerun configure.
19774 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19775 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19776 # following values.
19780 # The following way of writing the cache mishandles newlines in values,
19781 # but we know of no workaround that is simple, portable, and efficient.
19782 # So, don't put newlines in cache variables' values.
19783 # Ultrix sh set writes to stderr and can't be redirected directly,
19784 # and sets the high bit in the cache file unless we assign to the vars.
19787 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19789 # `set' does not quote correctly, so add quotes (double-quote
19790 # substitution turns \\\\ into \\, and sed turns \\ into \).
19793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19796 # `set' quotes correctly as required by POSIX, so do not add quotes.
19798 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19805 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19807 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19809 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19810 if test -w $cache_file; then
19811 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19812 cat confcache
>$cache_file
19814 echo "not updating unwritable cache $cache_file"
19819 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19820 # Let make expand exec_prefix.
19821 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19823 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19824 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19825 # trailing colons and then remove the whole line if VPATH becomes empty
19826 # (actually we leave an empty line to preserve line numbers).
19827 if test "x$srcdir" = x.
; then
19828 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19829 s/:*\$(srcdir):*/:/;
19830 s/:*\${srcdir}:*/:/;
19832 s/^\([^=]*=[ ]*\):*/\1/;
19838 DEFS
=-DHAVE_CONFIG_H
19842 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19843 # 1. Remove the extension, and $U if already installed.
19844 ac_i
=`echo "$ac_i" |
19845 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19847 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19848 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19850 LIBOBJS
=$ac_libobjs
19852 LTLIBOBJS
=$ac_ltlibobjs
19855 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19856 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19857 Usually this means the macro was only invoked conditionally." >&5
19858 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19859 Usually this means the macro was only invoked conditionally." >&2;}
19860 { (exit 1); exit 1; }; }
19862 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19863 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19864 Usually this means the macro was only invoked conditionally." >&5
19865 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19866 Usually this means the macro was only invoked conditionally." >&2;}
19867 { (exit 1); exit 1; }; }
19869 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19870 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19871 Usually this means the macro was only invoked conditionally." >&5
19872 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19873 Usually this means the macro was only invoked conditionally." >&2;}
19874 { (exit 1); exit 1; }; }
19876 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
19877 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
19878 Usually this means the macro was only invoked conditionally." >&5
19879 echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
19880 Usually this means the macro was only invoked conditionally." >&2;}
19881 { (exit 1); exit 1; }; }
19884 : ${CONFIG_STATUS=./config.status}
19885 ac_clean_files_save
=$ac_clean_files
19886 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19887 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19888 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19889 cat >$CONFIG_STATUS <<_ACEOF
19891 # Generated by $as_me.
19892 # Run this file to recreate the current configuration.
19893 # Compiler output produced by configure, useful for debugging
19894 # configure, is in config.log if it exists.
19897 ac_cs_recheck=false
19899 SHELL=\${CONFIG_SHELL-$SHELL}
19902 cat >>$CONFIG_STATUS <<\_ACEOF
19903 ## --------------------- ##
19904 ## M4sh Initialization. ##
19905 ## --------------------- ##
19907 # Be Bourne compatible
19908 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19911 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19912 # is contrary to our usage. Disable this feature.
19913 alias -g '${1+"$@"}'='"$@"'
19914 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19917 DUALCASE
=1; export DUALCASE
# for MKS sh
19919 # Support unset when possible.
19920 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19927 # Work around bugs in pre-3.0 UWIN ksh.
19928 $as_unset ENV MAIL MAILPATH
19935 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19936 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19937 LC_TELEPHONE LC_TIME
19939 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19940 eval $as_var=C
; export $as_var
19946 # Required to use basename.
19947 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19953 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19954 as_basename
=basename
19960 # Name of the executable.
19961 as_me
=`$as_basename "$0" ||
19962 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19963 X"$0" : 'X\(//\)$' \| \
19964 X"$0" : 'X\(/\)$' \| \
19965 . : '\(.\)' 2>/dev/null ||
19967 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19968 /^X\/\(\/\/\)$/{ s//\1/; q; }
19969 /^X\/\(\/\).*/{ s//\1/; q; }
19973 # PATH needs CR, and LINENO needs CR and PATH.
19974 # Avoid depending upon Character Ranges.
19975 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19976 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19977 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19978 as_cr_digits
='0123456789'
19979 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19981 # The user is always right.
19982 if test "${PATH_SEPARATOR+set}" != set; then
19983 echo "#! /bin/sh" >conf$$.sh
19984 echo "exit 0" >>conf$$.sh
19986 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19995 as_lineno_1
=$LINENO
19996 as_lineno_2
=$LINENO
19997 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19998 test "x$as_lineno_1" != "x$as_lineno_2" &&
19999 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
20000 # Find who we are. Look in the path if we contain no path at all
20003 *[\\/]* ) as_myself
=$0 ;;
20004 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20005 for as_dir
in $PATH
20008 test -z "$as_dir" && as_dir
=.
20009 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20014 # We did not find ourselves, most probably we were run as `sh COMMAND'
20015 # in which case we are not to be found in the path.
20016 if test "x$as_myself" = x
; then
20019 if test ! -f "$as_myself"; then
20020 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20021 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20022 { (exit 1); exit 1; }; }
20024 case $CONFIG_SHELL in
20026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20027 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
20030 test -z "$as_dir" && as_dir
=.
20031 for as_base
in sh bash ksh sh5
; do
20034 if ("$as_dir/$as_base" -c '
20035 as_lineno_1=$LINENO
20036 as_lineno_2=$LINENO
20037 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20038 test "x$as_lineno_1" != "x$as_lineno_2" &&
20039 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
20040 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
20041 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
20042 CONFIG_SHELL
=$as_dir/$as_base
20043 export CONFIG_SHELL
20044 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20052 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20053 # uniformly replaced by the line number. The first 'sed' inserts a
20054 # line-number line before each line; the second 'sed' does the real
20055 # work. The second script uses 'N' to pair each line-number line
20056 # with the numbered line, and appends trailing '-' during
20057 # substitution so that $LINENO is not a special case at line end.
20058 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20059 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20060 sed '=' <$as_myself |
20065 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20068 s,^['$as_cr_digits']*\n,,
20069 ' >$as_me.lineno
&&
20070 chmod +x
$as_me.lineno ||
20071 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20072 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20073 { (exit 1); exit 1; }; }
20075 # Don't try to exec as it changes $[0], causing all sort of problems
20076 # (the dirname of $[0] is not the place where we might find the
20077 # original and so on. Autoconf is especially sensible to this).
20079 # Exit status is that of the last command.
20084 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20085 *c
*,-n*) ECHO_N
= ECHO_C
='
20087 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
20088 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
20091 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20097 rm -f conf$$ conf$$.exe conf$$.
file
20099 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20100 # We could just check for DJGPP; but this test a) works b) is more generic
20101 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20102 if test -f conf$$.exe
; then
20103 # Don't use ln at all; we don't have any links
20108 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20113 rm -f conf$$ conf$$.exe conf$$.
file
20115 if mkdir
-p .
2>/dev
/null
; then
20118 test -d .
/-p && rmdir .
/-p
20122 as_executable_p
="test -f"
20124 # Sed expression to map a string onto a valid CPP name.
20125 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20127 # Sed expression to map a string onto a valid variable name.
20128 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20132 # We need space, tab and new line, in precisely that order.
20142 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20143 # report actual input values of CONFIG_FILES etc. instead of their
20144 # values after options handling. Logging --version etc. is OK.
20148 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20149 ## Running $as_me. ##
20154 This file was extended by rfc822lib $as_me 0.12, which was
20155 generated by GNU Autoconf 2.59. Invocation command line was
20157 CONFIG_FILES = $CONFIG_FILES
20158 CONFIG_HEADERS = $CONFIG_HEADERS
20159 CONFIG_LINKS = $CONFIG_LINKS
20160 CONFIG_COMMANDS = $CONFIG_COMMANDS
20164 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20168 # Files that config.status was made for.
20169 if test -n "$ac_config_files"; then
20170 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20173 if test -n "$ac_config_headers"; then
20174 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20177 if test -n "$ac_config_links"; then
20178 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20181 if test -n "$ac_config_commands"; then
20182 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20185 cat >>$CONFIG_STATUS <<\_ACEOF
20188 \`$as_me' instantiates files from templates according to the
20189 current configuration.
20191 Usage: $0 [OPTIONS] [FILE]...
20193 -h, --help print this help, then exit
20194 -V, --version print version number, then exit
20195 -q, --quiet do not print progress messages
20196 -d, --debug don't remove temporary files
20197 --recheck update $as_me by reconfiguring in the same conditions
20198 --file=FILE[:TEMPLATE]
20199 instantiate the configuration file FILE
20200 --header=FILE[:TEMPLATE]
20201 instantiate the configuration header FILE
20203 Configuration files:
20206 Configuration headers:
20209 Configuration commands:
20212 Report bugs to <bug-autoconf@gnu.org>."
20215 cat >>$CONFIG_STATUS <<_ACEOF
20217 rfc822lib config.status 0.12
20218 configured by $0, generated by GNU Autoconf 2.59,
20219 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20221 Copyright (C) 2003 Free Software Foundation, Inc.
20222 This config.status script is free software; the Free Software Foundation
20223 gives unlimited permission to copy, distribute and modify it."
20228 cat >>$CONFIG_STATUS <<\_ACEOF
20229 # If no file are specified by the user, then we need to provide default
20230 # value. By we need to know if files were specified by the user.
20236 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
20237 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
20245 *) # This is not an option, so the user has probably given explicit
20248 ac_need_defaults
=false
;;
20252 # Handling of the options.
20254 cat >>$CONFIG_STATUS <<\_ACEOF
20255 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20257 --version |
--vers* |
-V )
20258 echo "$ac_cs_version"; exit 0 ;;
20260 # Conflict between --help and --header
20261 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20262 Try \`$0 --help' for more information." >&5
20263 echo "$as_me: error: ambiguous option: $1
20264 Try \`$0 --help' for more information." >&2;}
20265 { (exit 1); exit 1; }; };;
20266 --help |
--hel |
-h )
20267 echo "$ac_cs_usage"; exit 0 ;;
20268 --debug |
--d* |
-d )
20270 --file |
--fil |
--fi |
--f )
20272 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20273 ac_need_defaults
=false
;;
20274 --header |
--heade |
--head |
--hea )
20276 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20277 ac_need_defaults
=false
;;
20278 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20279 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20282 # This is an error.
20283 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20284 Try \`$0 --help' for more information." >&5
20285 echo "$as_me: error: unrecognized option: $1
20286 Try \`$0 --help' for more information." >&2;}
20287 { (exit 1); exit 1; }; } ;;
20289 *) ac_config_targets
="$ac_config_targets $1" ;;
20295 ac_configure_extra_args
=
20297 if $ac_cs_silent; then
20299 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20303 cat >>$CONFIG_STATUS <<_ACEOF
20304 if \$ac_cs_recheck; then
20305 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20306 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20311 cat >>$CONFIG_STATUS <<_ACEOF
20313 # INIT-COMMANDS section.
20316 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20322 cat >>$CONFIG_STATUS <<\_ACEOF
20323 for ac_config_target
in $ac_config_targets
20325 case "$ac_config_target" in
20326 # Handling of arguments.
20327 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20328 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20329 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20330 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20331 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20332 { (exit 1); exit 1; }; };;
20336 # If the user did not use the arguments to specify the items to instantiate,
20337 # then the envvar interface is used. Set only those that are not.
20338 # We use the long form for the default assignment because of an extremely
20339 # bizarre bug on SunOS 4.1.3.
20340 if $ac_need_defaults; then
20341 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20342 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20343 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20346 # Have a temporary directory for convenience. Make it in the build tree
20347 # simply because there is no reason to put it here, and in addition,
20348 # creating and moving files from /tmp can sometimes cause problems.
20349 # Create a temporary directory, and hook for its removal unless debugging.
20352 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20353 trap '{ (exit 1); exit 1; }' 1 2 13 15
20356 # Create a (secure) tmp directory for tmp files.
20359 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20360 test -n "$tmp" && test -d "$tmp"
20363 tmp
=.
/confstat$$
-$RANDOM
20364 (umask 077 && mkdir
$tmp)
20367 echo "$me: cannot create a temporary directory in ." >&2
20368 { (exit 1); exit 1; }
20373 cat >>$CONFIG_STATUS <<_ACEOF
20376 # CONFIG_FILES section.
20379 # No need to generate the scripts if there are no CONFIG_FILES.
20380 # This happens for instance when ./config.status config.h
20381 if test -n "\$CONFIG_FILES"; then
20382 # Protect against being on the right side of a sed subst in config.status.
20383 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20384 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20385 s,@SHELL@,$SHELL,;t t
20386 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20387 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20388 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20389 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20390 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20391 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20392 s,@exec_prefix@,$exec_prefix,;t t
20393 s,@prefix@,$prefix,;t t
20394 s,@program_transform_name@,$program_transform_name,;t t
20395 s,@bindir@,$bindir,;t t
20396 s,@sbindir@,$sbindir,;t t
20397 s,@libexecdir@,$libexecdir,;t t
20398 s,@datadir@,$datadir,;t t
20399 s,@sysconfdir@,$sysconfdir,;t t
20400 s,@sharedstatedir@,$sharedstatedir,;t t
20401 s,@localstatedir@,$localstatedir,;t t
20402 s,@libdir@,$libdir,;t t
20403 s,@includedir@,$includedir,;t t
20404 s,@oldincludedir@,$oldincludedir,;t t
20405 s,@infodir@,$infodir,;t t
20406 s,@mandir@,$mandir,;t t
20407 s,@build_alias@,$build_alias,;t t
20408 s,@host_alias@,$host_alias,;t t
20409 s,@target_alias@,$target_alias,;t t
20410 s,@DEFS@,$DEFS,;t t
20411 s,@ECHO_C@,$ECHO_C,;t t
20412 s,@ECHO_N@,$ECHO_N,;t t
20413 s,@ECHO_T@,$ECHO_T,;t t
20414 s,@LIBS@,$LIBS,;t t
20415 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20416 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20417 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20418 s,@CYGPATH_W@,$CYGPATH_W,;t t
20419 s,@PACKAGE@,$PACKAGE,;t t
20420 s,@VERSION@,$VERSION,;t t
20421 s,@ACLOCAL@,$ACLOCAL,;t t
20422 s,@AUTOCONF@,$AUTOCONF,;t t
20423 s,@AUTOMAKE@,$AUTOMAKE,;t t
20424 s,@AUTOHEADER@,$AUTOHEADER,;t t
20425 s,@MAKEINFO@,$MAKEINFO,;t t
20426 s,@install_sh@,$install_sh,;t t
20427 s,@STRIP@,$STRIP,;t t
20428 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20429 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20430 s,@mkdir_p@,$mkdir_p,;t t
20432 s,@SET_MAKE@,$SET_MAKE,;t t
20433 s,@am__leading_dot@,$am__leading_dot,;t t
20434 s,@AMTAR@,$AMTAR,;t t
20435 s,@am__tar@,$am__tar,;t t
20436 s,@am__untar@,$am__untar,;t t
20438 s,@CFLAGS@,$CFLAGS,;t t
20439 s,@LDFLAGS@,$LDFLAGS,;t t
20440 s,@CPPFLAGS@,$CPPFLAGS,;t t
20441 s,@ac_ct_CC@,$ac_ct_CC,;t t
20442 s,@EXEEXT@,$EXEEXT,;t t
20443 s,@OBJEXT@,$OBJEXT,;t t
20444 s,@DEPDIR@,$DEPDIR,;t t
20445 s,@am__include@,$am__include,;t t
20446 s,@am__quote@,$am__quote,;t t
20447 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20448 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20449 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20450 s,@CCDEPMODE@,$CCDEPMODE,;t t
20451 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20452 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20454 s,@EGREP@,$EGREP,;t t
20455 s,@build@,$build,;t t
20456 s,@build_cpu@,$build_cpu,;t t
20457 s,@build_vendor@,$build_vendor,;t t
20458 s,@build_os@,$build_os,;t t
20459 s,@host@,$host,;t t
20460 s,@host_cpu@,$host_cpu,;t t
20461 s,@host_vendor@,$host_vendor,;t t
20462 s,@host_os@,$host_os,;t t
20464 s,@LN_S@,$LN_S,;t t
20465 s,@ECHO@,$ECHO,;t t
20467 s,@ac_ct_AR@,$ac_ct_AR,;t t
20468 s,@RANLIB@,$RANLIB,;t t
20469 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20471 s,@CXXFLAGS@,$CXXFLAGS,;t t
20472 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20473 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20474 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20475 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20476 s,@CXXCPP@,$CXXCPP,;t t
20478 s,@FFLAGS@,$FFLAGS,;t t
20479 s,@ac_ct_F77@,$ac_ct_F77,;t t
20480 s,@LIBTOOL@,$LIBTOOL,;t t
20481 s,@HAVE_SGML_TRUE@,$HAVE_SGML_TRUE,;t t
20482 s,@HAVE_SGML_FALSE@,$HAVE_SGML_FALSE,;t t
20483 s,@LIBOBJS@,$LIBOBJS,;t t
20484 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20489 cat >>$CONFIG_STATUS <<\_ACEOF
20490 # Split the substitutions into bite-sized pieces for seds with
20491 # small command number limits, like on Digital OSF/1 and HP-UX.
20492 ac_max_sed_lines
=48
20493 ac_sed_frag
=1 # Number of current file.
20494 ac_beg
=1 # First line for current file.
20495 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20498 while $ac_more_lines; do
20499 if test $ac_beg -gt 1; then
20500 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20502 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20504 if test ! -s $tmp/subs.frag
; then
20505 ac_more_lines
=false
20507 # The purpose of the label and of the branching condition is to
20508 # speed up the sed processing (if there are no `@' at all, there
20509 # is no need to browse any of the substitutions).
20510 # These are the two extra sed commands mentioned above.
20512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20513 if test -z "$ac_sed_cmds"; then
20514 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20516 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20518 ac_sed_frag
=`expr $ac_sed_frag + 1`
20520 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20523 if test -z "$ac_sed_cmds"; then
20526 fi # test -n "$CONFIG_FILES"
20529 cat >>$CONFIG_STATUS <<\_ACEOF
20530 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20533 - |
*:- |
*:-:* ) # input from stdin
20535 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20536 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20537 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20538 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20539 * ) ac_file_in
=$ac_file.
in ;;
20542 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20543 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20545 X"$ac_file" : 'X\(//\)[^/]' \| \
20546 X"$ac_file" : 'X\(//\)$' \| \
20547 X"$ac_file" : 'X\(/\)' \| \
20548 . : '\(.\)' 2>/dev/null ||
20550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20552 /^X\(\/\/\)$/{ s//\1/; q; }
20553 /^X\(\/\).*/{ s//\1/; q; }
20555 { if $as_mkdir_p; then
20560 while test ! -d "$as_dir"; do
20561 as_dirs
="$as_dir $as_dirs"
20562 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20564 X"$as_dir" : 'X\(//\)[^/]' \| \
20565 X"$as_dir" : 'X\(//\)$' \| \
20566 X"$as_dir" : 'X\(/\)' \| \
20567 . : '\(.\)' 2>/dev/null ||
20569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20571 /^X\(\/\/\)$/{ s//\1/; q; }
20572 /^X\(\/\).*/{ s//\1/; q; }
20575 test ! -n "$as_dirs" || mkdir
$as_dirs
20576 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20577 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20578 { (exit 1); exit 1; }; }; }
20582 if test "$ac_dir" != .
; then
20583 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20584 # A "../" for each directory in $ac_dir_suffix.
20585 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20587 ac_dir_suffix
= ac_top_builddir
=
20591 .
) # No --srcdir option. We are building in place.
20593 if test -z "$ac_top_builddir"; then
20596 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20598 [\\/]* | ?
:[\\/]* ) # Absolute path.
20599 ac_srcdir
=$srcdir$ac_dir_suffix;
20600 ac_top_srcdir
=$srcdir ;;
20601 *) # Relative path.
20602 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20603 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20606 # Do not use `cd foo && pwd` to compute absolute paths, because
20607 # the directories may not exist.
20609 .
) ac_abs_builddir
="$ac_dir";;
20612 .
) ac_abs_builddir
=`pwd`;;
20613 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20614 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20617 case $ac_abs_builddir in
20618 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20620 case ${ac_top_builddir}.
in
20621 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20622 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20623 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20626 case $ac_abs_builddir in
20627 .
) ac_abs_srcdir
=$ac_srcdir;;
20630 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20631 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20632 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20635 case $ac_abs_builddir in
20636 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20638 case $ac_top_srcdir in
20639 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20640 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20641 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20647 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20648 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20651 if test x
"$ac_file" != x-
; then
20652 { echo "$as_me:$LINENO: creating $ac_file" >&5
20653 echo "$as_me: creating $ac_file" >&6;}
20656 # Let's still pretend it is `configure' which instantiates (i.e., don't
20657 # use $as_me), people would be surprised to read:
20658 # /* config.h. Generated by config.status. */
20659 if test x
"$ac_file" = x-
; then
20662 configure_input
="$ac_file. "
20664 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20665 sed 's,.*/,,'` by configure."
20667 # First look for the input files in the build tree, otherwise in the
20669 ac_file_inputs
=`IFS=:
20670 for f in $ac_file_in; do
20672 -) echo $tmp/stdin ;;
20674 # Absolute (can't be DOS-style, as IFS=:)
20675 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20676 echo "$as_me: error: cannot find input file: $f" >&2;}
20677 { (exit 1); exit 1; }; }
20680 if test -f "$f"; then
20683 elif test -f "$srcdir/$f"; then
20688 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20689 echo "$as_me: error: cannot find input file: $f" >&2;}
20690 { (exit 1); exit 1; }; }
20693 done` ||
{ (exit 1); exit 1; }
20695 cat >>$CONFIG_STATUS <<_ACEOF
20699 cat >>$CONFIG_STATUS <<\_ACEOF
20701 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20702 s
,@configure_input@
,$configure_input,;t t
20703 s
,@srcdir@
,$ac_srcdir,;t t
20704 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20705 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20706 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20707 s
,@builddir@
,$ac_builddir,;t t
20708 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20709 s
,@top_builddir@
,$ac_top_builddir,;t t
20710 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20711 s
,@INSTALL@
,$ac_INSTALL,;t t
20712 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20714 if test x"$ac_file" != x-; then
20715 mv $tmp/out $ac_file
20723 cat >>$CONFIG_STATUS <<\_ACEOF
20726 # CONFIG_HEADER section.
20729 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20730 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20732 # ac_d sets the value in "#define NAME VALUE" lines.
20733 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20734 ac_dB
='[ ].*$,\1#\2'
20737 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20738 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20739 ac_uB
='$,\1#\2define\3'
20743 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20744 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20746 - |
*:- |
*:-:* ) # input from stdin
20748 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20749 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20750 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20751 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20752 * ) ac_file_in
=$ac_file.
in ;;
20755 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20756 echo "$as_me: creating $ac_file" >&6;}
20758 # First look for the input files in the build tree, otherwise in the
20760 ac_file_inputs
=`IFS=:
20761 for f in $ac_file_in; do
20763 -) echo $tmp/stdin ;;
20765 # Absolute (can't be DOS-style, as IFS=:)
20766 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20767 echo "$as_me: error: cannot find input file: $f" >&2;}
20768 { (exit 1); exit 1; }; }
20769 # Do quote $f, to prevent DOS paths from being IFS'd.
20772 if test -f "$f"; then
20775 elif test -f "$srcdir/$f"; then
20780 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20781 echo "$as_me: error: cannot find input file: $f" >&2;}
20782 { (exit 1); exit 1; }; }
20785 done` ||
{ (exit 1); exit 1; }
20786 # Remove the trailing spaces.
20787 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20791 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20792 # `conftest.undefs', that substitutes the proper values into
20793 # config.h.in to produce config.h. The first handles `#define'
20794 # templates, and the second `#undef' templates.
20795 # And first: Protect against being on the right side of a sed subst in
20796 # config.status. Protect against being in an unquoted here document
20797 # in config.status.
20798 rm -f conftest.defines conftest.undefs
20799 # Using a here document instead of a string reduces the quoting nightmare.
20800 # Putting comments in sed scripts is not portable.
20802 # `end' is used to avoid that the second main sed command (meant for
20803 # 0-ary CPP macros) applies to n-ary macro definitions.
20804 # See the Autoconf documentation for `clear'.
20805 cat >confdef2sed.
sed <<\_ACEOF
20810 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20812 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20815 # If some macros were called several times there might be several times
20816 # the same #defines, which is useless. Nevertheless, we may not want to
20817 # sort them, since we want the *last* AC-DEFINE to be honored.
20818 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20819 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20820 rm -f confdef2sed.sed
20822 # This sed command replaces #undef with comments. This is necessary, for
20823 # example, in the case of _POSIX_SOURCE, which is predefined and required
20824 # on some systems where configure will not decide to define it.
20825 cat >>conftest.undefs <<\_ACEOF
20826 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20829 # Break up conftest.defines because some shells have a limit on the size
20830 # of here documents, and old seds have small limits too (100 cmds).
20831 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20832 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20833 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20834 echo ' :' >>$CONFIG_STATUS
20835 rm -f conftest.tail
20836 while grep . conftest.defines >/dev/null
20838 # Write a limited-size here document to $tmp/defines.sed.
20839 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20840 # Speed up: don't consider the non `#define' lines.
20841 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20842 # Work around the forget-to-reset-the-flag bug.
20843 echo 't clr' >>$CONFIG_STATUS
20844 echo ': clr' >>$CONFIG_STATUS
20845 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20847 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20849 mv $tmp/out $tmp/in
20851 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20852 rm -f conftest.defines
20853 mv conftest.
tail conftest.defines
20855 rm -f conftest.defines
20856 echo ' fi # grep' >>$CONFIG_STATUS
20857 echo >>$CONFIG_STATUS
20859 # Break up conftest.undefs because some shells have a limit on the size
20860 # of here documents, and old seds have small limits too (100 cmds).
20861 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20862 rm -f conftest.
tail
20863 while grep . conftest.undefs
>/dev
/null
20865 # Write a limited-size here document to $tmp/undefs.sed.
20866 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20867 # Speed up: don't consider the non
`#undef'
20868 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20869 # Work around the forget-to-reset-the-flag bug.
20870 echo 't clr' >>$CONFIG_STATUS
20871 echo ': clr' >>$CONFIG_STATUS
20872 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20874 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20876 mv $tmp/out $tmp/in
20878 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20879 rm -f conftest.undefs
20880 mv conftest.tail conftest.undefs
20882 rm -f conftest.undefs
20884 cat >>$CONFIG_STATUS <<\_ACEOF
20885 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20886 # use $as_me), people would be surprised to read:
20887 # /* config.h. Generated by config.status. */
20888 if test x
"$ac_file" = x-
; then
20889 echo "/* Generated by configure. */" >$tmp/config.h
20891 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20893 cat $tmp/in >>$tmp/config.h
20895 if test x
"$ac_file" != x-
; then
20896 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20897 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20898 echo "$as_me: $ac_file is unchanged" >&6;}
20900 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20902 X"$ac_file" : 'X\(//\)[^/]' \| \
20903 X"$ac_file" : 'X\(//\)$' \| \
20904 X"$ac_file" : 'X\(/\)' \| \
20905 . : '\(.\)' 2>/dev/null ||
20907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20909 /^X\(\/\/\)$/{ s//\1/; q; }
20910 /^X\(\/\).*/{ s//\1/; q; }
20912 { if $as_mkdir_p; then
20917 while test ! -d "$as_dir"; do
20918 as_dirs
="$as_dir $as_dirs"
20919 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20921 X"$as_dir" : 'X\(//\)[^/]' \| \
20922 X"$as_dir" : 'X\(//\)$' \| \
20923 X"$as_dir" : 'X\(/\)' \| \
20924 . : '\(.\)' 2>/dev/null ||
20926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20928 /^X\(\/\/\)$/{ s//\1/; q; }
20929 /^X\(\/\).*/{ s//\1/; q; }
20932 test ! -n "$as_dirs" || mkdir
$as_dirs
20933 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20934 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20935 { (exit 1); exit 1; }; }; }
20938 mv $tmp/config.h
$ac_file
20942 rm -f $tmp/config.h
20944 # Compute $ac_file's index in $config_headers.
20946 for _am_header
in $config_headers :; do
20947 case $_am_header in
20948 $ac_file |
$ac_file:* )
20951 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20954 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20955 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20956 X$ac_file : 'X\(//\)[^/]' \| \
20957 X$ac_file : 'X\(//\)$' \| \
20958 X$ac_file : 'X\(/\)' \| \
20959 . : '\(.\)' 2>/dev/null ||
20961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20962 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20963 /^X\(\/\/\)$/{ s//\1/; q; }
20964 /^X\(\/\).*/{ s//\1/; q; }
20965 s/.*/./; q'`/stamp-h
$_am_stamp_count
20968 cat >>$CONFIG_STATUS <<\_ACEOF
20971 # CONFIG_COMMANDS section.
20973 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20974 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20975 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20976 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20977 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20978 X"$ac_dest" : 'X\(//\)[^/]' \| \
20979 X"$ac_dest" : 'X\(//\)$' \| \
20980 X"$ac_dest" : 'X\(/\)' \| \
20981 . : '\(.\)' 2>/dev/null ||
20983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20985 /^X\(\/\/\)$/{ s//\1/; q; }
20986 /^X\(\/\).*/{ s//\1/; q; }
20988 { if $as_mkdir_p; then
20993 while test ! -d "$as_dir"; do
20994 as_dirs
="$as_dir $as_dirs"
20995 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20997 X"$as_dir" : 'X\(//\)[^/]' \| \
20998 X"$as_dir" : 'X\(//\)$' \| \
20999 X"$as_dir" : 'X\(/\)' \| \
21000 . : '\(.\)' 2>/dev/null ||
21002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21004 /^X\(\/\/\)$/{ s//\1/; q; }
21005 /^X\(\/\).*/{ s//\1/; q; }
21008 test ! -n "$as_dirs" || mkdir
$as_dirs
21009 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21010 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21011 { (exit 1); exit 1; }; }; }
21015 if test "$ac_dir" != .
; then
21016 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21017 # A "../" for each directory in $ac_dir_suffix.
21018 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21020 ac_dir_suffix
= ac_top_builddir
=
21024 .
) # No --srcdir option. We are building in place.
21026 if test -z "$ac_top_builddir"; then
21029 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21031 [\\/]* | ?
:[\\/]* ) # Absolute path.
21032 ac_srcdir
=$srcdir$ac_dir_suffix;
21033 ac_top_srcdir
=$srcdir ;;
21034 *) # Relative path.
21035 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21036 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21039 # Do not use `cd foo && pwd` to compute absolute paths, because
21040 # the directories may not exist.
21042 .
) ac_abs_builddir
="$ac_dir";;
21045 .
) ac_abs_builddir
=`pwd`;;
21046 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
21047 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
21050 case $ac_abs_builddir in
21051 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21053 case ${ac_top_builddir}.
in
21054 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
21055 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21056 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
21059 case $ac_abs_builddir in
21060 .
) ac_abs_srcdir
=$ac_srcdir;;
21063 .
) ac_abs_srcdir
=$ac_abs_builddir;;
21064 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
21065 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
21068 case $ac_abs_builddir in
21069 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
21071 case $ac_top_srcdir in
21072 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
21073 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
21074 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
21079 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21080 echo "$as_me: executing $ac_dest commands" >&6;}
21082 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
21083 # Strip MF so we end up with the name of the file.
21084 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21085 # Check whether this is an Automake generated Makefile or not.
21086 # We used to match only the files named `Makefile.in', but
21087 # some people rename them; so instead we look at the file content.
21088 # Grep'ing the first line is not enough: some people post-process
21089 # each Makefile.in and add a new line on top of each file to say so.
21090 # So let's grep whole file.
21091 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
21092 dirpart
=`(dirname "$mf") 2>/dev/null ||
21093 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21094 X"$mf" : 'X\(//\)[^/]' \| \
21095 X"$mf" : 'X\(//\)$' \| \
21096 X"$mf" : 'X\(/\)' \| \
21097 . : '\(.\)' 2>/dev/null ||
21099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21101 /^X\(\/\/\)$/{ s//\1/; q; }
21102 /^X\(\/\).*/{ s//\1/; q; }
21107 # Extract the definition of DEPDIR, am__include, and am__quote
21108 # from the Makefile without running `make'.
21109 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21110 test -z "$DEPDIR" && continue
21111 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21112 test -z "am__include" && continue
21113 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21114 # When using ansi2knr, U may be empty or an underscore; expand it
21115 U
=`sed -n 's/^U = //p' < "$mf"`
21116 # Find all dependency output files, they are included files with
21117 # $(DEPDIR) in their names. We invoke sed twice because it is the
21118 # simplest approach to changing $(DEPDIR) to its actual value in the
21120 for file in `sed -n "
21121 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21122 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21123 # Make sure the directory exists.
21124 test -f "$dirpart/$file" && continue
21125 fdir
=`(dirname "$file") 2>/dev/null ||
21126 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21127 X"$file" : 'X\(//\)[^/]' \| \
21128 X"$file" : 'X\(//\)$' \| \
21129 X"$file" : 'X\(/\)' \| \
21130 . : '\(.\)' 2>/dev/null ||
21132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21134 /^X\(\/\/\)$/{ s//\1/; q; }
21135 /^X\(\/\).*/{ s//\1/; q; }
21137 { if $as_mkdir_p; then
21138 mkdir
-p $dirpart/$fdir
21140 as_dir
=$dirpart/$fdir
21142 while test ! -d "$as_dir"; do
21143 as_dirs
="$as_dir $as_dirs"
21144 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21146 X"$as_dir" : 'X\(//\)[^/]' \| \
21147 X"$as_dir" : 'X\(//\)$' \| \
21148 X"$as_dir" : 'X\(/\)' \| \
21149 . : '\(.\)' 2>/dev/null ||
21151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21153 /^X\(\/\/\)$/{ s//\1/; q; }
21154 /^X\(\/\).*/{ s//\1/; q; }
21157 test ! -n "$as_dirs" || mkdir
$as_dirs
21158 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21159 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21160 { (exit 1); exit 1; }; }; }
21162 # echo "creating $dirpart/$file"
21163 echo '# dummy' > "$dirpart/$file"
21171 cat >>$CONFIG_STATUS <<\_ACEOF
21173 { (exit 0); exit 0; }
21175 chmod +x
$CONFIG_STATUS
21176 ac_clean_files
=$ac_clean_files_save
21179 # configure is writing to config.log, and then calls config.status.
21180 # config.status does its own redirection, appending to config.log.
21181 # Unfortunately, on DOS this fails, as config.log is still kept open
21182 # by configure, so config.status won't be able to write to it; its
21183 # output is simply discarded. So we exec the FD to /dev/null,
21184 # effectively closing config.log, so it can be properly (re)opened and
21185 # appended to by config.status. When coming back to configure, we
21186 # need to make the FD available again.
21187 if test "$no_create" != yes; then
21189 ac_config_status_args
=
21190 test "$silent" = yes &&
21191 ac_config_status_args
="$ac_config_status_args --quiet"
21193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21196 # would make configure fail if this is the last instruction.
21197 $ac_cs_success ||
{ (exit 1); exit 1; }