2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL
=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec
; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo
; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo
; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset
; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
597 echo_test_string
=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
617 for dir
in $PATH /usr
/ucb
; do
619 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho
; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL
=/bin
/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
658 SHELL
="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string
=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames
=${tagnames+${tagnames},}CXX
704 tagnames
=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev
/null
6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix
=/usr
/local
718 ac_config_libobj_dir
=.
724 SHELL
=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file
="configure.in"
734 # Factoring default headers for most tests.
735 ac_includes_default
="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
821 INSTALL_STRIP_PROGRAM
880 ac_precious_vars
='build_alias
899 # Initialize some variables set by options.
901 ac_init_version
=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
911 program_transform_name
=s
,x
,x
,
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir
='${exec_prefix}/bin'
926 sbindir
='${exec_prefix}/sbin'
927 libexecdir
='${exec_prefix}/libexec'
928 datarootdir
='${prefix}/share'
929 datadir
='${datarootdir}'
930 sysconfdir
='${prefix}/etc'
931 sharedstatedir
='${prefix}/com'
932 localstatedir
='${prefix}/var'
933 includedir
='${prefix}/include'
934 oldincludedir
='/usr/include'
935 docdir
='${datarootdir}/doc/${PACKAGE}'
936 infodir
='${datarootdir}/info'
941 libdir
='${exec_prefix}/lib'
942 localedir
='${datarootdir}/locale'
943 mandir
='${datarootdir}/man'
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\
$ac_option
957 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 # Accept the important Cygnus configure options, so we can diagnose typos.
963 case $ac_dashdash$ac_option in
967 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
969 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
972 -build |
--build |
--buil |
--bui |
--bu)
973 ac_prev
=build_alias
;;
974 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
975 build_alias
=$ac_optarg ;;
977 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
978 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
979 ac_prev
=cache_file
;;
980 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
981 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
982 cache_file
=$ac_optarg ;;
985 cache_file
=config.cache
;;
987 -datadir |
--datadir |
--datadi |
--datad)
989 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
990 datadir
=$ac_optarg ;;
992 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
993 |
--dataroo |
--dataro |
--datar)
994 ac_prev
=datarootdir
;;
995 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
996 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
997 datarootdir
=$ac_optarg ;;
999 -disable-* |
--disable-*)
1000 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004 { (exit 1); exit 1; }; }
1005 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1006 eval enable_
$ac_feature=no
;;
1008 -docdir |
--docdir |
--docdi |
--doc |
--do)
1010 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1011 docdir
=$ac_optarg ;;
1013 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1015 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1016 dvidir
=$ac_optarg ;;
1018 -enable-* |
--enable-*)
1019 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_
$ac_feature=\
$ac_optarg ;;
1027 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1028 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1029 |
--exec |
--exe |
--ex)
1030 ac_prev
=exec_prefix
;;
1031 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1032 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1033 |
--exec=* |
--exe=* |
--ex=*)
1034 exec_prefix
=$ac_optarg ;;
1036 -gas |
--gas |
--ga |
--g)
1037 # Obsolete; use --with-gas.
1040 -help |
--help |
--hel |
--he |
-h)
1041 ac_init_help
=long
;;
1042 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1043 ac_init_help
=recursive
;;
1044 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1045 ac_init_help
=short
;;
1047 -host |
--host |
--hos |
--ho)
1048 ac_prev
=host_alias
;;
1049 -host=* |
--host=* |
--hos=* |
--ho=*)
1050 host_alias
=$ac_optarg ;;
1052 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1054 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1056 htmldir
=$ac_optarg ;;
1058 -includedir |
--includedir |
--includedi |
--included |
--include \
1059 |
--includ |
--inclu |
--incl |
--inc)
1060 ac_prev
=includedir
;;
1061 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1062 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1063 includedir
=$ac_optarg ;;
1065 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1067 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1068 infodir
=$ac_optarg ;;
1070 -libdir |
--libdir |
--libdi |
--libd)
1072 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1073 libdir
=$ac_optarg ;;
1075 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1076 |
--libexe |
--libex |
--libe)
1077 ac_prev
=libexecdir
;;
1078 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1079 |
--libexe=* |
--libex=* |
--libe=*)
1080 libexecdir
=$ac_optarg ;;
1082 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1083 ac_prev
=localedir
;;
1084 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1085 localedir
=$ac_optarg ;;
1087 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1088 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1089 ac_prev
=localstatedir
;;
1090 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1091 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1092 localstatedir
=$ac_optarg ;;
1094 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1096 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1097 mandir
=$ac_optarg ;;
1099 -nfp |
--nfp |
--nf)
1100 # Obsolete; use --without-fp.
1103 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1104 |
--no-cr |
--no-c |
-n)
1107 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1108 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1111 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1112 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1113 |
--oldin |
--oldi |
--old |
--ol |
--o)
1114 ac_prev
=oldincludedir
;;
1115 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1116 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1117 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1118 oldincludedir
=$ac_optarg ;;
1120 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1122 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1123 prefix
=$ac_optarg ;;
1125 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1126 |
--program-pre |
--program-pr |
--program-p)
1127 ac_prev
=program_prefix
;;
1128 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1129 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1130 program_prefix
=$ac_optarg ;;
1132 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1133 |
--program-suf |
--program-su |
--program-s)
1134 ac_prev
=program_suffix
;;
1135 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1136 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1137 program_suffix
=$ac_optarg ;;
1139 -program-transform-name |
--program-transform-name \
1140 |
--program-transform-nam |
--program-transform-na \
1141 |
--program-transform-n |
--program-transform- \
1142 |
--program-transform |
--program-transfor \
1143 |
--program-transfo |
--program-transf \
1144 |
--program-trans |
--program-tran \
1145 |
--progr-tra |
--program-tr |
--program-t)
1146 ac_prev
=program_transform_name
;;
1147 -program-transform-name=* |
--program-transform-name=* \
1148 |
--program-transform-nam=* |
--program-transform-na=* \
1149 |
--program-transform-n=* |
--program-transform-=* \
1150 |
--program-transform=* |
--program-transfor=* \
1151 |
--program-transfo=* |
--program-transf=* \
1152 |
--program-trans=* |
--program-tran=* \
1153 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1154 program_transform_name
=$ac_optarg ;;
1156 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1158 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1159 pdfdir
=$ac_optarg ;;
1161 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1163 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1166 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1167 |
-silent |
--silent |
--silen |
--sile |
--sil)
1170 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1172 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1174 sbindir
=$ac_optarg ;;
1176 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1177 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1178 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1180 ac_prev
=sharedstatedir
;;
1181 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1182 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1183 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1185 sharedstatedir
=$ac_optarg ;;
1187 -site |
--site |
--sit)
1189 -site=* |
--site=* |
--sit=*)
1192 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1194 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1195 srcdir
=$ac_optarg ;;
1197 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1198 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1199 ac_prev
=sysconfdir
;;
1200 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1201 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1202 sysconfdir
=$ac_optarg ;;
1204 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1205 ac_prev
=target_alias
;;
1206 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1207 target_alias
=$ac_optarg ;;
1209 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1212 -version |
--version |
--versio |
--versi |
--vers |
-V)
1213 ac_init_version
=: ;;
1216 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1222 eval with_
$ac_package=\
$ac_optarg ;;
1224 -without-* |
--without-*)
1225 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_
$ac_package=no
;;
1234 # Obsolete; use --with-x.
1237 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1238 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1239 ac_prev
=x_includes
;;
1240 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1241 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1242 x_includes
=$ac_optarg ;;
1244 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1245 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1246 ac_prev
=x_libraries
;;
1247 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1248 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1249 x_libraries
=$ac_optarg ;;
1251 -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1257 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\
$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 if test -n "$ac_prev"; then
1277 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1278 { echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 # Be sure to have absolute directory names.
1283 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val
=\$
$ac_var
1290 [\\/$
]* | ?
:[\\/]* ) continue;;
1291 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target
=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x
; then
1306 if test "x$build_alias" = x
; then
1307 cross_compiling
=maybe
1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1318 test "$silent" = yes && exec 6>/dev
/null
1321 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di
=`ls -di .` &&
1323 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1324 { echo "$as_me: error: Working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted
=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir
=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$0" : 'X\(//\)[^/]' \| \
1338 X"$0" : 'X\(//\)$' \| \
1339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1363 ac_srcdir_defaulted
=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368 { (exit 1); exit 1; }; }
1370 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373 { (exit 1); exit 1; }; }
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1383 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 for ac_var
in $ac_precious_vars; do
1386 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1388 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1399 \`configure' configures this package to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1462 --build=BUILD configure
for building on BUILD
[guessed
]
1463 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1467 if test -n "$ac_init_help"; then
1472 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1473 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1474 --disable-dependency-tracking speeds up one-time build
1475 --enable-dependency-tracking do not reject slow dependency extractors
1476 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1477 --enable-static[=PKGS
] build static libraries
[default
=yes]
1478 --enable-fast-install[=PKGS
]
1479 optimize
for fast installation
[default
=yes]
1480 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1483 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1484 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1485 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1486 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1488 --with-tags[=TAGS
] include additional configurations
[automatic
]
1490 Some influential environment variables
:
1491 CXX C
++ compiler
command
1492 CXXFLAGS C
++ compiler flags
1493 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1494 nonstandard directory
<lib dir
>
1495 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1496 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1497 you have headers
in a nonstandard directory
<include dir
>
1498 CC C compiler
command
1499 CFLAGS C compiler flags
1501 CXXCPP C
++ preprocessor
1502 F77 Fortran
77 compiler
command
1503 FFLAGS Fortran
77 compiler flags
1504 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1505 the first program found out of: `bison
-y', `byacc', `yacc'.
1506 YFLAGS The list of arguments that will be passed by default to $YACC.
1507 This script will default YFLAGS to the empty string to avoid a
1508 default value of `-d' given by some make applications.
1510 Use these variables to override the choices made by `configure' or to
help
1511 it to
find libraries and programs with nonstandard names
/locations.
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1520 test -d "$ac_dir" ||
continue
1524 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1526 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1531 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1534 ac_abs_top_builddir
=$ac_pwd
1535 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir
=$ac_top_build_prefix
1540 .
) # We are building in place.
1542 ac_top_srcdir
=$ac_top_builddir_sub
1543 ac_abs_top_srcdir
=$ac_pwd ;;
1544 [\\/]* | ?
:[\\/]* ) # Absolute name.
1545 ac_srcdir
=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir
=$srcdir
1547 ac_abs_top_srcdir
=$srcdir ;;
1549 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1553 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1555 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1564 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1574 generated by GNU Autoconf
2.61
1576 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1577 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1578 This configure
script is free software
; the Free Software Foundation
1579 gives unlimited permission to copy
, distribute and modify it.
1583 cat >config.log
<<_ACEOF
1584 This file contains any messages produced by compilers while
1585 running configure, to aid debugging if configure makes a mistake.
1587 It was created by $as_me, which was
1588 generated by GNU Autoconf 2.61. Invocation command line was
1600 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1601 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1602 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1603 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1604 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1606 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1607 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1609 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1610 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1611 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1612 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1613 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1614 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1615 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir
=.
1624 echo "PATH: $as_dir"
1640 # Keep a trace of the command line.
1641 # Strip out --no-create and --no-recursion so they do not pile up.
1642 # Strip out --silent because we don't want to record it for future runs.
1643 # Also quote any args containing shell meta-characters.
1644 # Make two passes to allow for proper duplicate-argument suppression.
1648 ac_must_keep_next
=false
1654 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1655 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1656 |
-silent |
--silent |
--silen |
--sile |
--sil)
1659 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1664 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1665 if test $ac_must_keep_next = true
; then
1666 ac_must_keep_next
=false
# Got value, back to normal.
1669 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1670 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1671 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1672 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1673 case "$ac_configure_args0 " in
1674 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677 -* ) ac_must_keep_next
=true
;;
1680 ac_configure_args
="$ac_configure_args '$ac_arg'"
1685 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1686 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1688 # When interrupted or exit'd, cleanup temporary files, and complete
1689 # config.log. We remove comments because anyway the quotes in there
1690 # would cause problems or look ugly.
1691 # WARNING: Use '\'' to represent an apostrophe within the trap.
1692 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1693 trap 'exit_status=$?
1694 # Save into config.log some information that might help in debugging.
1699 ## ---------------- ##
1700 ## Cache variables. ##
1701 ## ---------------- ##
1704 # The following way of writing the cache mishandles newlines in values,
1706 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1707 eval ac_val=\$$ac_var
1711 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1712 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715 _ | IFS | as_nl) ;; #(
1716 *) $as_unset $ac_var ;;
1721 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1722 *${as_nl}ac_space=\ *)
1724 "s/'\''/'\''\\\\'\'''\''/g;
1725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736 ## ----------------- ##
1737 ## Output variables. ##
1738 ## ----------------- ##
1741 for ac_var in $ac_subst_vars
1743 eval ac_val=\$$ac_var
1745 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 echo "$ac_var='\''$ac_val'\''"
1751 if test -n "$ac_subst_files"; then
1753 ## ------------------- ##
1754 ## File substitutions. ##
1755 ## ------------------- ##
1758 for ac_var
in $ac_subst_files
1760 eval ac_val
=\$
$ac_var
1762 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 echo "$ac_var='\''$ac_val'\''"
1769 if test -s confdefs.h; then
1779 test "$ac_signal" != 0 &&
1780 echo "$as_me: caught signal $ac_signal"
1781 echo "$as_me: exit $exit_status"
1783 rm -f core *.core core.conftest.* &&
1784 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1787 for ac_signal
in 1 2 13 15; do
1788 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1793 rm -f -r conftest
* confdefs.h
1795 # Predefined preprocessor variables.
1797 cat >>confdefs.h
<<_ACEOF
1798 #define PACKAGE_NAME "$PACKAGE_NAME"
1802 cat >>confdefs.h
<<_ACEOF
1803 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 cat >>confdefs.h
<<_ACEOF
1808 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812 cat >>confdefs.h
<<_ACEOF
1813 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 cat >>confdefs.h
<<_ACEOF
1818 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822 # Let the site file select an alternate cache file if it wants to.
1823 # Prefer explicitly selected file to automatically selected ones.
1824 if test -n "$CONFIG_SITE"; then
1825 set x
"$CONFIG_SITE"
1826 elif test "x$prefix" != xNONE
; then
1827 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1829 set x
"$ac_default_prefix/share/config.site" \
1830 "$ac_default_prefix/etc/config.site"
1835 if test -r "$ac_site_file"; then
1836 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1837 echo "$as_me: loading site script $ac_site_file" >&6;}
1838 sed 's/^/| /' "$ac_site_file" >&5
1843 if test -r "$cache_file"; then
1844 # Some versions of bash will fail to source /dev/null (special
1845 # files actually), so we avoid doing that.
1846 if test -f "$cache_file"; then
1847 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1848 echo "$as_me: loading cache $cache_file" >&6;}
1850 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1851 *) .
"./$cache_file";;
1855 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1856 echo "$as_me: creating cache $cache_file" >&6;}
1860 # Check that the precious variables saved in the cache have kept the same
1862 ac_cache_corrupted
=false
1863 for ac_var
in $ac_precious_vars; do
1864 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1865 eval ac_new_set
=\
$ac_env_${ac_var}_set
1866 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1867 eval ac_new_val
=\
$ac_env_${ac_var}_value
1868 case $ac_old_set,$ac_new_set in
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872 ac_cache_corrupted
=: ;;
1874 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1875 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876 ac_cache_corrupted
=: ;;
1879 if test "x$ac_old_val" != "x$ac_new_val"; then
1880 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1881 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1882 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1883 echo "$as_me: former value: $ac_old_val" >&2;}
1884 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1885 echo "$as_me: current value: $ac_new_val" >&2;}
1886 ac_cache_corrupted
=:
1889 # Pass precious variables to config.status.
1890 if test "$ac_new_set" = set; then
1892 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1893 *) ac_arg
=$ac_var=$ac_new_val ;;
1895 case " $ac_configure_args " in
1896 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1897 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1901 if $ac_cache_corrupted; then
1902 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1903 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1904 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1905 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1906 { (exit 1); exit 1; }; }
1926 ac_cpp
='$CPP $CPPFLAGS'
1927 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1933 ac_config_headers
="$ac_config_headers config.h"
1935 am__api_version
='1.10'
1938 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1939 if test -f "$ac_dir/install-sh"; then
1941 ac_install_sh
="$ac_aux_dir/install-sh -c"
1943 elif test -f "$ac_dir/install.sh"; then
1945 ac_install_sh
="$ac_aux_dir/install.sh -c"
1947 elif test -f "$ac_dir/shtool"; then
1949 ac_install_sh
="$ac_aux_dir/shtool install -c"
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 # Find a good install program. We prefer a C program (faster),
1969 # so one script is as good as another. But avoid the broken or
1970 # incompatible versions:
1971 # SysV /etc/install, /usr/sbin/install
1972 # SunOS /usr/etc/install
1973 # IRIX /sbin/install
1975 # AmigaOS /C/install, which installs bootblocks on floppy discs
1976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1979 # OS/2's system install, which has a completely different semantic
1980 # ./install, which can be erroneously created by make from ./install.sh.
1981 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1982 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1983 if test -z "$INSTALL"; then
1984 if test "${ac_cv_path_install+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir
=.
1992 # Account for people who put trailing slashes in PATH elements.
1994 .
/ | .
// |
/cC
/* | \
1995 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1996 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1999 # OSF1 and SCO ODT 3.0 have their own names for install.
2000 # Don't use installbsd from OSF since it installs stuff as root
2002 for ac_prog
in ginstall scoinst
install; do
2003 for ac_exec_ext
in '' $ac_executable_extensions; do
2004 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2005 if test $ac_prog = install &&
2006 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2007 # AIX install. It has an incompatible calling convention.
2009 elif test $ac_prog = install &&
2010 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2011 # program-specific install script used by HP pwplus--don't use.
2014 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2027 if test "${ac_cv_path_install+set}" = set; then
2028 INSTALL
=$ac_cv_path_install
2030 # As a last resort, use the slow shell script. Don't cache a
2031 # value for INSTALL within a source directory, because that will
2032 # break other packages using the cache if that directory is
2033 # removed, or if the value is a relative name.
2034 INSTALL
=$ac_install_sh
2037 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2038 echo "${ECHO_T}$INSTALL" >&6; }
2040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2041 # It thinks the first close brace ends the variable substitution.
2042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2046 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2048 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2049 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2052 echo timestamp
> conftest.
file
2053 # Do `set' in a subshell so we don't clobber the current shell's
2054 # arguments. Must try -L first in case configure is actually a
2055 # symlink; some systems play weird games with the mod time of symlinks
2056 # (eg FreeBSD returns the mod time of the symlink's containing
2059 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2060 if test "$*" = "X"; then
2062 set X
`ls -t $srcdir/configure conftest.file`
2065 if test "$*" != "X $srcdir/configure conftest.file" \
2066 && test "$*" != "X conftest.file $srcdir/configure"; then
2068 # If neither matched, then we have a broken ls. This can happen
2069 # if, for instance, CONFIG_SHELL is bash and it inherits a
2070 # broken ls alias from the environment. This has actually
2071 # happened. Such a system could not be considered "sane".
2072 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2073 alias in your environment" >&5
2074 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2075 alias in your environment" >&2;}
2076 { (exit 1); exit 1; }; }
2079 test "$2" = conftest.
file
2085 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2086 Check your system clock" >&5
2087 echo "$as_me: error: newly created file is older than distributed files!
2088 Check your system clock" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: result: yes" >&5
2092 echo "${ECHO_T}yes" >&6; }
2093 test "$program_prefix" != NONE
&&
2094 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2095 # Use a double $ so make ignores it.
2096 test "$program_suffix" != NONE
&&
2097 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2098 # Double any \ or $. echo might interpret backslashes.
2099 # By default was `s,x,x', remove it if useless.
2100 cat <<\_ACEOF
>conftest.
sed
2101 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2103 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2106 # expand $ac_aux_dir to an absolute path
2107 am_aux_dir
=`cd $ac_aux_dir && pwd`
2109 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2110 # Use eval to expand $SHELL
2111 if eval "$MISSING --run true"; then
2112 am_missing_run
="$MISSING --run "
2115 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2116 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2119 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2120 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2121 if test -z "$MKDIR_P"; then
2122 if test "${ac_cv_path_mkdir+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2126 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2129 test -z "$as_dir" && as_dir
=.
2130 for ac_prog
in mkdir gmkdir
; do
2131 for ac_exec_ext
in '' $ac_executable_extensions; do
2132 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2133 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2134 'mkdir (GNU coreutils) '* | \
2135 'mkdir (coreutils) '* | \
2136 'mkdir (fileutils) '4.1*)
2137 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2147 if test "${ac_cv_path_mkdir+set}" = set; then
2148 MKDIR_P
="$ac_cv_path_mkdir -p"
2150 # As a last resort, use the slow shell script. Don't cache a
2151 # value for MKDIR_P within a source directory, because that will
2152 # break other packages using the cache if that directory is
2153 # removed, or if the value is a relative name.
2154 test -d .
/--version && rmdir .
/--version
2155 MKDIR_P
="$ac_install_sh -d"
2158 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2159 echo "${ECHO_T}$MKDIR_P" >&6; }
2163 [\\/$
]* | ?
:[\\/]*) ;;
2164 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2167 for ac_prog
in gawk mawk nawk
awk
2169 # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy
$ac_prog; ac_word
=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_AWK+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$AWK"; then
2177 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir
=.
2184 for ac_exec_ext
in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_AWK
="$ac_prog"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 if test -n "$AWK"; then
2198 { echo "$as_me:$LINENO: result: $AWK" >&5
2199 echo "${ECHO_T}$AWK" >&6; }
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2206 test -n "$AWK" && break
2209 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2210 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2211 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2212 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 cat >conftest.
make <<\_ACEOF
2218 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2223 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2225 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2229 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2230 { echo "$as_me:$LINENO: result: yes" >&5
2231 echo "${ECHO_T}yes" >&6; }
2234 { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2236 SET_MAKE
="MAKE=${MAKE-make}"
2239 rm -rf .tst
2>/dev
/null
2240 mkdir .tst
2>/dev
/null
2241 if test -d .tst
; then
2246 rmdir .tst
2>/dev
/null
2248 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2249 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2250 # is not polluted with repeated "-I."
2251 am__isrc
=' -I$(srcdir)'
2252 # test to see if srcdir already configured
2253 if test -f $srcdir/config.status
; then
2254 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2255 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2256 { (exit 1); exit 1; }; }
2260 # test whether we have cygpath
2261 if test -z "$CYGPATH_W"; then
2262 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2263 CYGPATH_W
='cygpath -w'
2270 # Define the identity of the package.
2275 cat >>confdefs.h
<<_ACEOF
2276 #define PACKAGE "$PACKAGE"
2280 cat >>confdefs.h
<<_ACEOF
2281 #define VERSION "$VERSION"
2284 # Some tools Automake needs.
2286 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2289 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2292 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2295 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2298 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2300 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2302 # Installed binaries are usually stripped using `strip' when the user
2303 # run `make install-strip'. However `strip' might not be the right
2304 # tool to use in cross-compilation environments, therefore Automake
2305 # will honor the `STRIP' environment variable to overrule this program.
2306 if test "$cross_compiling" != no
; then
2307 if test -n "$ac_tool_prefix"; then
2308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2309 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312 if test "${ac_cv_prog_STRIP+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$STRIP"; then
2316 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir
=.
2323 for ac_exec_ext
in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 STRIP
=$ac_cv_prog_STRIP
2336 if test -n "$STRIP"; then
2337 { echo "$as_me:$LINENO: result: $STRIP" >&5
2338 echo "${ECHO_T}$STRIP" >&6; }
2340 { echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6; }
2346 if test -z "$ac_cv_prog_STRIP"; then
2348 # Extract the first word of "strip", so it can be a program name with args.
2349 set dummy strip
; ac_word
=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 if test -n "$ac_ct_STRIP"; then
2356 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir
=.
2363 for ac_exec_ext
in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_ac_ct_STRIP
="strip"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2376 if test -n "$ac_ct_STRIP"; then
2377 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2378 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2384 if test "x$ac_ct_STRIP" = x
; then
2387 case $cross_compiling:$ac_tool_warned in
2389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&5
2392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2393 whose name does not start with the host triplet. If you think this
2394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2395 ac_tool_warned
=yes ;;
2400 STRIP
="$ac_cv_prog_STRIP"
2404 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2406 # We need awk for the "check" target. The system "awk" is bad on
2408 # Always define AMTAR for backward compatibility.
2410 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2412 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2420 ac_cpp
='$CXXCPP $CPPFLAGS'
2421 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2426 ac_cpp
='$CXXCPP $CPPFLAGS'
2427 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2430 if test -z "$CXX"; then
2431 if test -n "$CCC"; then
2434 if test -n "$ac_tool_prefix"; then
2435 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2438 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_CXX+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 if test -n "$CXX"; then
2445 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir
=.
2452 for ac_exec_ext
in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 if test -n "$CXX"; then
2466 { echo "$as_me:$LINENO: result: $CXX" >&5
2467 echo "${ECHO_T}$CXX" >&6; }
2469 { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2474 test -n "$CXX" && break
2477 if test -z "$CXX"; then
2479 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2481 # Extract the first word of "$ac_prog", so it can be a program name with args.
2482 set dummy
$ac_prog; ac_word
=$2
2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 if test -n "$ac_ct_CXX"; then
2489 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2495 test -z "$as_dir" && as_dir
=.
2496 for ac_exec_ext
in '' $ac_executable_extensions; do
2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2509 if test -n "$ac_ct_CXX"; then
2510 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2511 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2513 { echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6; }
2518 test -n "$ac_ct_CXX" && break
2521 if test "x$ac_ct_CXX" = x
; then
2524 case $cross_compiling:$ac_tool_warned in
2526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet. If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&5
2529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet. If you think this
2531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2532 ac_tool_warned
=yes ;;
2540 # Provide some information about the compiler.
2541 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2542 ac_compiler
=`set X $ac_compile; echo $2`
2543 { (ac_try
="$ac_compiler --version >&5"
2545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_compiler --version >&5") 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2553 { (ac_try="$ac_compiler -v >&5"
2555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2556 *) ac_try_echo
=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compiler -v >&5") 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }
2563 { (ac_try
="$ac_compiler -V >&5"
2565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compiler -V >&5") 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }
2574 cat >conftest.$ac_ext <<_ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2589 ac_clean_files_save=$ac_clean_files
2590 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2591 # Try to create an executable without -o first, disregard a.out.
2592 # It will help us diagnose broken compilers, and finding out an intuition
2594 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2595 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2596 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2598 # List of possible output files, starting from the most likely.
2599 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2600 # only as a last resort. b.out is created by i960 compilers.
2601 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2603 # The IRIX 6 linker writes into existing files which may not be
2604 # executable, retaining their permissions. Remove them first so a
2605 # subsequent execution test works.
2607 for ac_file in $ac_files
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2611 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2616 if { (ac_try="$ac_link_default"
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_link_default") 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2628 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2629 # so that the user can short-circuit this test for compilers unknown to
2631 for ac_file
in $ac_files ''
2633 test -f "$ac_file" ||
continue
2635 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2638 # We found the default executable, but exeext='' is most
2642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2644 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646 # We set ac_cv_exeext here because the later test for it is not
2647 # safe: cross compilers may not add the suffix if given an `-o'
2648 # argument, so we may need to know it at that point already.
2649 # Even if this section looks crufty: it has the advantage of
2656 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2662 { echo "$as_me:$LINENO: result: $ac_file" >&5
2663 echo "${ECHO_T}$ac_file" >&6; }
2664 if test -z "$ac_file"; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.
$ac_ext >&5
2668 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: C++ compiler cannot create executables
2671 See \`config.log' for more details." >&2;}
2672 { (exit 77); exit 77; }; }
2675 ac_exeext
=$ac_cv_exeext
2677 # Check that the compiler produces executables we can run. If not, either
2678 # the compiler is broken, or we cross compile.
2679 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2680 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2681 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2682 # If not cross compiling, check that we can run a simple program.
2683 if test "$cross_compiling" != yes; then
2684 if { ac_try
='./$ac_file'
2685 { (case "(($ac_try" in
2686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_try") 2>&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2696 if test "$cross_compiling" = maybe; then
2699 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2700 If you meant to cross compile, use \`--host'.
2701 See \`config.log' for more details.
" >&5
2702 echo "$as_me: error
: cannot run C
++ compiled programs.
2703 If you meant to cross compile
, use \
`--host'.
2704 See \`config.log
' for more details." >&2;}
2705 { (exit 1); exit 1; }; }
2709 { echo "$as_me:$LINENO: result: yes" >&5
2710 echo "${ECHO_T}yes" >&6; }
2712 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2713 ac_clean_files=$ac_clean_files_save
2714 # Check that the compiler produces executables we can run. If not, either
2715 # the compiler is broken, or we cross compile.
2716 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2717 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2718 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2719 echo "${ECHO_T}$cross_compiling" >&6; }
2721 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2722 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2723 if { (ac_try="$ac_link"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_link") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; then
2733 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2734 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2735 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2737 for ac_file
in conftest.exe conftest conftest.
*; do
2738 test -f "$ac_file" ||
continue
2740 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2741 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2747 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2748 See \`config.log' for more details." >&5
2749 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&2;}
2751 { (exit 1); exit 1; }; }
2754 rm -f conftest
$ac_cv_exeext
2755 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2756 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2758 rm -f conftest.
$ac_ext
2759 EXEEXT
=$ac_cv_exeext
2761 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2762 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2763 if test "${ac_cv_objext+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 cat >conftest.
$ac_ext <<_ACEOF
2769 cat confdefs.h
>>conftest.
$ac_ext
2770 cat >>conftest.
$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2781 rm -f conftest.o conftest.obj
2782 if { (ac_try
="$ac_compile"
2784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compile") 2>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; then
2792 for ac_file in conftest.o conftest.obj conftest.*; do
2793 test -f "$ac_file" || continue;
2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2805 See \`config.log
' for more details." >&5
2806 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2807 See \`config.log' for more details.
" >&2;}
2808 { (exit 1); exit 1; }; }
2811 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2813 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2814 echo "${ECHO_T}$ac_cv_objext" >&6; }
2815 OBJEXT=$ac_cv_objext
2817 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
2818 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
2819 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2820 echo $ECHO_N "(cached
) $ECHO_C" >&6
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compile") 2>conftest.er1
2849 grep -v '^ *+' conftest.er1 >conftest.err
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2853 (exit $ac_status); } && {
2854 test -z "$ac_cxx_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.$ac_objext; then
2859 echo "$as_me: failed program was
:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2869 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
2870 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2871 GXX=`test $ac_compiler_gnu = yes && echo yes`
2872 ac_test_CXXFLAGS=${CXXFLAGS+set}
2873 ac_save_CXXFLAGS=$CXXFLAGS
2874 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
2875 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
2876 if test "${ac_cv_prog_cxx_g+set}" = set; then
2877 echo $ECHO_N "(cached
) $ECHO_C" >&6
2879 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2880 ac_cxx_werror_flag=yes
2883 cat >conftest.$ac_ext <<_ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2898 rm -f conftest.$ac_objext
2899 if { (ac_try="$ac_compile"
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compile") 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2911 (exit $ac_status); } && {
2912 test -z "$ac_cxx_werror_flag" ||
2913 test ! -s conftest.err
2914 } && test -s conftest.$ac_objext; then
2915 ac_cv_prog_cxx_g=yes
2917 echo "$as_me: failed program was
:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2949 (exit $ac_status); } && {
2950 test -z "$ac_cxx_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
2955 echo "$as_me: failed program was
:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2975 rm -f conftest.$ac_objext
2976 if { (ac_try="$ac_compile"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2988 (exit $ac_status); } && {
2989 test -z "$ac_cxx_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
2992 ac_cv_prog_cxx_g=yes
2994 echo "$as_me: failed program was
:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3009 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
3010 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3011 if test "$ac_test_CXXFLAGS" = set; then
3012 CXXFLAGS=$ac_save_CXXFLAGS
3013 elif test $ac_cv_prog_cxx_g = yes; then
3014 if test "$GXX" = yes; then
3020 if test "$GXX" = yes; then
3027 ac_cpp='$CXXCPP $CPPFLAGS'
3028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3031 DEPDIR="${am__leading_dot}deps
"
3033 ac_config_commands="$ac_config_commands depfiles
"
3036 am_make=${MAKE-make}
3037 cat > confinc << 'END'
3042 # If we don't find an include directive, just comment out the code.
3043 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3044 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3048 # First try GNU make style include.
3049 echo "include confinc" > confmf
3050 # We grep out `Entering directory' and `Leaving directory'
3051 # messages which can occur if `w' ends up in MAKEFLAGS.
3052 # In particular we don't look at `^make:' because GNU make might
3053 # be invoked under some other name (usually "gmake"), in which
3054 # case it prints its new name instead of `make'.
3055 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3060 # Now try BSD make style include.
3061 if test "$am__include" = "#"; then
3062 echo '.include "confinc"' > confmf
3063 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3064 am__include
=.include
3071 { echo "$as_me:$LINENO: result: $_am_result" >&5
3072 echo "${ECHO_T}$_am_result" >&6; }
3073 rm -f confinc confmf
3075 # Check whether --enable-dependency-tracking was given.
3076 if test "${enable_dependency_tracking+set}" = set; then
3077 enableval
=$enable_dependency_tracking;
3080 if test "x$enable_dependency_tracking" != xno
; then
3081 am_depcomp
="$ac_aux_dir/depcomp"
3084 if test "x$enable_dependency_tracking" != xno; then
3094 depcc
="$CXX" am_compiler_list
=
3096 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3097 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3098 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3102 # We make a subdir and do the tests there. Otherwise we can end up
3103 # making bogus files that we don't know about and never remove. For
3104 # instance it was reported that on HP-UX the gcc test will end up
3105 # making a dummy file named `D' -- because `-MD' means `put the output
3108 # Copy depcomp to subdir because otherwise we won't find it if we're
3109 # using a relative directory.
3110 cp "$am_depcomp" conftest.dir
3112 # We will build objects and dependencies in a subdirectory because
3113 # it helps to detect inapplicable dependency modes. For instance
3114 # both Tru64's cc and ICC support -MD to output dependencies as a
3115 # side effect of compilation, but ICC will put the dependencies in
3116 # the current directory while Tru64 will put them in the object
3120 am_cv_CXX_dependencies_compiler_type
=none
3121 if test "$am_compiler_list" = ""; then
3122 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3124 for depmode
in $am_compiler_list; do
3125 # Setup a source with many dependencies, because some compilers
3126 # like to wrap large dependency lists on column 80 (with \), and
3127 # we should not choose a depcomp mode which is confused by this.
3129 # We need to recreate these files for each test, as the compiler may
3130 # overwrite some of them when testing with obscure command lines.
3131 # This happens at least with the AIX C compiler.
3133 for i
in 1 2 3 4 5 6; do
3134 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3135 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3136 # Solaris 8's {/usr,}/bin/sh.
3137 touch sub
/conftst
$i.h
3139 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3143 # after this tag, mechanisms are not by side-effect, so they'll
3144 # only be used when explicitly requested
3145 if test "x$enable_dependency_tracking" = xyes
; then
3153 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3154 # mode. It turns out that the SunPro C++ compiler does not properly
3155 # handle `-M -o', and we need to detect this.
3156 if depmode
=$depmode \
3157 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3158 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3159 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3160 >/dev
/null
2>conftest.err
&&
3161 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3162 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3163 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3164 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3165 # icc doesn't choke on unknown options, it will just issue warnings
3166 # or remarks (even with -Werror). So we grep stderr for any message
3167 # that says an option was ignored or not supported.
3168 # When given -MP, icc 7.0 and 7.1 complain thusly:
3169 # icc: Command line warning: ignoring option '-M'; no argument required
3170 # The diagnosis changed in icc 8.0:
3171 # icc: Command line remark: option '-MP' not supported
3172 if (grep 'ignoring option' conftest.err ||
3173 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3174 am_cv_CXX_dependencies_compiler_type
=$depmode
3183 am_cv_CXX_dependencies_compiler_type
=none
3187 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3188 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3189 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
3192 test "x$enable_dependency_tracking" != xno \
3193 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
3194 am__fastdepCXX_TRUE
=
3195 am__fastdepCXX_FALSE
='#'
3197 am__fastdepCXX_TRUE
='#'
3198 am__fastdepCXX_FALSE
=
3203 # Check whether --enable-shared was given.
3204 if test "${enable_shared+set}" = set; then
3205 enableval
=$enable_shared; p
=${PACKAGE-default}
3207 yes) enable_shared
=yes ;;
3208 no
) enable_shared
=no
;;
3211 # Look at the argument we got. We use all the common list separators.
3212 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3213 for pkg
in $enableval; do
3215 if test "X$pkg" = "X$p"; then
3227 # Check whether --enable-static was given.
3228 if test "${enable_static+set}" = set; then
3229 enableval
=$enable_static; p
=${PACKAGE-default}
3231 yes) enable_static
=yes ;;
3232 no
) enable_static
=no
;;
3235 # Look at the argument we got. We use all the common list separators.
3236 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3237 for pkg
in $enableval; do
3239 if test "X$pkg" = "X$p"; then
3251 # Check whether --enable-fast-install was given.
3252 if test "${enable_fast_install+set}" = set; then
3253 enableval
=$enable_fast_install; p
=${PACKAGE-default}
3255 yes) enable_fast_install
=yes ;;
3256 no
) enable_fast_install
=no
;;
3258 enable_fast_install
=no
3259 # Look at the argument we got. We use all the common list separators.
3260 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3261 for pkg
in $enableval; do
3263 if test "X$pkg" = "X$p"; then
3264 enable_fast_install
=yes
3271 enable_fast_install
=yes
3275 # Make sure we can run config.sub.
3276 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3277 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3278 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3279 { (exit 1); exit 1; }; }
3281 { echo "$as_me:$LINENO: checking build system type" >&5
3282 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3283 if test "${ac_cv_build+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 ac_build_alias
=$build_alias
3287 test "x$ac_build_alias" = x
&&
3288 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3289 test "x$ac_build_alias" = x
&&
3290 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3291 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3292 { (exit 1); exit 1; }; }
3293 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3294 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3295 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3296 { (exit 1); exit 1; }; }
3299 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3300 echo "${ECHO_T}$ac_cv_build" >&6; }
3301 case $ac_cv_build in
3303 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3304 echo "$as_me: error: invalid value of canonical build" >&2;}
3305 { (exit 1); exit 1; }; };;
3308 ac_save_IFS
=$IFS; IFS
='-'
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3318 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3321 { echo "$as_me:$LINENO: checking host system type" >&5
3322 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3323 if test "${ac_cv_host+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 if test "x$host_alias" = x
; then
3327 ac_cv_host
=$ac_cv_build
3329 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3330 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3331 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3332 { (exit 1); exit 1; }; }
3336 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3337 echo "${ECHO_T}$ac_cv_host" >&6; }
3340 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3341 echo "$as_me: error: invalid value of canonical host" >&2;}
3342 { (exit 1); exit 1; }; };;
3345 ac_save_IFS
=$IFS; IFS
='-'
3351 # Remember, the first character of IFS is used to create $*,
3352 # except with old shells:
3355 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3359 ac_cpp
='$CPP $CPPFLAGS'
3360 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3363 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3365 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_CC+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC
="$CC" # Let the user override the test.
3374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir
=.
3379 for ac_exec_ext
in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$CC"; then
3393 { echo "$as_me:$LINENO: result: $CC" >&5
3394 echo "${ECHO_T}$CC" >&6; }
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3402 if test -z "$ac_cv_prog_CC"; then
3404 # Extract the first word of "gcc", so it can be a program name with args.
3405 set dummy gcc
; ac_word
=$2
3406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 if test -n "$ac_ct_CC"; then
3412 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir
=.
3419 for ac_exec_ext
in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_ac_ct_CC
="gcc"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3432 if test -n "$ac_ct_CC"; then
3433 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3434 echo "${ECHO_T}$ac_ct_CC" >&6; }
3436 { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3440 if test "x$ac_ct_CC" = x
; then
3443 case $cross_compiling:$ac_tool_warned in
3445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3446 whose name does not start with the host triplet. If you think this
3447 configuration is useful to you, please write to autoconf@gnu.org." >&5
3448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3449 whose name does not start with the host triplet. If you think this
3450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3451 ac_tool_warned
=yes ;;
3459 if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3462 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3465 if test "${ac_cv_prog_CC+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC
="$CC" # Let the user override the test.
3471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir
=.
3476 for ac_exec_ext
in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 if test -n "$CC"; then
3490 { echo "$as_me:$LINENO: result: $CC" >&5
3491 echo "${ECHO_T}$CC" >&6; }
3493 { echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6; }
3500 if test -z "$CC"; then
3501 # Extract the first word of "cc", so it can be a program name with args.
3502 set dummy cc
; ac_word
=$2
3503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3505 if test "${ac_cv_prog_CC+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC
="$CC" # Let the user override the test.
3512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir
=.
3517 for ac_exec_ext
in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3520 ac_prog_rejected
=yes
3524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test $ac_prog_rejected = yes; then
3532 # We found a bogon in the path, so make sure we never use it.
3533 set dummy
$ac_cv_prog_CC
3535 if test $# != 0; then
3536 # We chose a different compiler from the bogus one.
3537 # However, it has the same basename, so the bogon will be chosen
3538 # first if we set CC to just the basename; use the full file name.
3540 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3546 if test -n "$CC"; then
3547 { echo "$as_me:$LINENO: result: $CC" >&5
3548 echo "${ECHO_T}$CC" >&6; }
3550 { echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6; }
3556 if test -z "$CC"; then
3557 if test -n "$ac_tool_prefix"; then
3558 for ac_prog
in cl.exe
3560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3561 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3564 if test "${ac_cv_prog_CC+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 if test -n "$CC"; then
3568 ac_cv_prog_CC
="$CC" # Let the user override the test.
3570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3574 test -z "$as_dir" && as_dir
=.
3575 for ac_exec_ext
in '' $ac_executable_extensions; do
3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 if test -n "$CC"; then
3589 { echo "$as_me:$LINENO: result: $CC" >&5
3590 echo "${ECHO_T}$CC" >&6; }
3592 { echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6; }
3597 test -n "$CC" && break
3600 if test -z "$CC"; then
3602 for ac_prog
in cl.exe
3604 # Extract the first word of "$ac_prog", so it can be a program name with args.
3605 set dummy
$ac_prog; ac_word
=$2
3606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 if test -n "$ac_ct_CC"; then
3612 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3618 test -z "$as_dir" && as_dir
=.
3619 for ac_exec_ext
in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 ac_cv_prog_ac_ct_CC
="$ac_prog"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3632 if test -n "$ac_ct_CC"; then
3633 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3634 echo "${ECHO_T}$ac_ct_CC" >&6; }
3636 { echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6; }
3641 test -n "$ac_ct_CC" && break
3644 if test "x$ac_ct_CC" = x
; then
3647 case $cross_compiling:$ac_tool_warned in
3649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3650 whose name does not start with the host triplet. If you think this
3651 configuration is useful to you, please write to autoconf@gnu.org." >&5
3652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3653 whose name does not start with the host triplet. If you think this
3654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3655 ac_tool_warned
=yes ;;
3664 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3665 See \`config.log' for more details." >&5
3666 echo "$as_me: error: no acceptable C compiler found in \$PATH
3667 See \`config.log' for more details." >&2;}
3668 { (exit 1); exit 1; }; }
3670 # Provide some information about the compiler.
3671 echo "$as_me:$LINENO: checking for C compiler version" >&5
3672 ac_compiler
=`set X $ac_compile; echo $2`
3673 { (ac_try
="$ac_compiler --version >&5"
3675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compiler --version >&5") 2>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }
3683 { (ac_try="$ac_compiler -v >&5"
3685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3686 *) ac_try_echo
=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_compiler -v >&5") 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }
3693 { (ac_try
="$ac_compiler -V >&5"
3695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_compiler -V >&5") 2>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }
3704 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3705 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3706 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 cat >conftest.$ac_ext <<_ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3727 rm -f conftest.$ac_objext
3728 if { (ac_try="$ac_compile"
3730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3731 *) ac_try_echo
=$ac_try;;
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_compile") 2>conftest.er1
3736 grep -v '^ *+' conftest.er1
>conftest.err
3738 cat conftest.err
>&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } && {
3741 test -z "$ac_c_werror_flag" ||
3742 test ! -s conftest.err
3743 } && test -s conftest.
$ac_objext; then
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.
$ac_ext >&5
3752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3753 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3756 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3757 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3758 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3759 ac_test_CFLAGS
=${CFLAGS+set}
3760 ac_save_CFLAGS
=$CFLAGS
3761 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3762 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3763 if test "${ac_cv_prog_cc_g+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 ac_save_c_werror_flag
=$ac_c_werror_flag
3767 ac_c_werror_flag
=yes
3770 cat >conftest.
$ac_ext <<_ACEOF
3773 cat confdefs.h
>>conftest.
$ac_ext
3774 cat >>conftest.
$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3785 rm -f conftest.
$ac_objext
3786 if { (ac_try
="$ac_compile"
3788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_compile") 2>conftest.er1
3794 grep -v '^ *+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } && {
3799 test -z "$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3801 } && test -s conftest.$ac_objext; then
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3808 cat >conftest.$ac_ext <<_ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3823 rm -f conftest.$ac_objext
3824 if { (ac_try="$ac_compile"
3826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3827 *) ac_try_echo
=$ac_try;;
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_compile") 2>conftest.er1
3832 grep -v '^ *+' conftest.er1
>conftest.err
3834 cat conftest.err
>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } && {
3837 test -z "$ac_c_werror_flag" ||
3838 test ! -s conftest.err
3839 } && test -s conftest.
$ac_objext; then
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.
$ac_ext >&5
3845 ac_c_werror_flag
=$ac_save_c_werror_flag
3847 cat >conftest.
$ac_ext <<_ACEOF
3850 cat confdefs.h
>>conftest.
$ac_ext
3851 cat >>conftest.
$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3862 rm -f conftest.
$ac_objext
3863 if { (ac_try
="$ac_compile"
3865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_compile") 2>conftest.er1
3871 grep -v '^ *+' conftest.er1 >conftest.err
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && {
3876 test -z "$ac_c_werror_flag" ||
3877 test ! -s conftest.err
3878 } && test -s conftest.$ac_objext; then
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_c_werror_flag=$ac_save_c_werror_flag
3896 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3897 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3898 if test "$ac_test_CFLAGS" = set; then
3899 CFLAGS=$ac_save_CFLAGS
3900 elif test $ac_cv_prog_cc_g = yes; then
3901 if test "$GCC" = yes; then
3907 if test "$GCC" = yes; then
3913 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3914 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3915 if test "${ac_cv_prog_cc_c89+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_cv_prog_cc_c89=no
3920 cat >conftest.$ac_ext <<_ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3928 #include <sys/types.h>
3929 #include <sys/stat.h>
3930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3931 struct buf { int x; };
3932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3933 static char *e (p, i)
3939 static char *f (char * (*g) (char **, int), char **p, ...)
3944 s = g (p, va_arg (v,int));
3949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3950 function prototypes and stuff, but not '\xHH' hex character constants.
3951 These don't provoke an error unfortunately, instead are silently treated
3952 as 'x'. The following induces an error, until -std is added to get
3953 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3954 array size at least. It's necessary to write '\x00'==0 to get something
3955 that's true only with -std. */
3956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3959 inside strings and character constants. */
3961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3963 int test (int i, double x);
3964 struct s1 {int (*f) (int a);};
3965 struct s2 {int (*f) (double a);};
3966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3978 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3980 CC="$ac_save_CC $ac_arg"
3981 rm -f conftest.$ac_objext
3982 if { (ac_try="$ac_compile"
3984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3985 *) ac_try_echo
=$ac_try;;
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3990 grep -v '^ *+' conftest.er1
>conftest.err
3992 cat conftest.err
>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.
$ac_objext; then
3998 ac_cv_prog_cc_c89
=$ac_arg
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.
$ac_ext >&5
4006 rm -f core conftest.err conftest.
$ac_objext
4007 test "x$ac_cv_prog_cc_c89" != "xno" && break
4009 rm -f conftest.
$ac_ext
4014 case "x$ac_cv_prog_cc_c89" in
4016 { echo "$as_me:$LINENO: result: none needed" >&5
4017 echo "${ECHO_T}none needed" >&6; } ;;
4019 { echo "$as_me:$LINENO: result: unsupported" >&5
4020 echo "${ECHO_T}unsupported" >&6; } ;;
4022 CC
="$CC $ac_cv_prog_cc_c89"
4023 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4024 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4029 ac_cpp
='$CXXCPP $CPPFLAGS'
4030 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4034 depcc
="$CC" am_compiler_list
=
4036 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4037 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4038 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4042 # We make a subdir and do the tests there. Otherwise we can end up
4043 # making bogus files that we don't know about and never remove. For
4044 # instance it was reported that on HP-UX the gcc test will end up
4045 # making a dummy file named `D' -- because `-MD' means `put the output
4048 # Copy depcomp to subdir because otherwise we won't find it if we're
4049 # using a relative directory.
4050 cp "$am_depcomp" conftest.dir
4052 # We will build objects and dependencies in a subdirectory because
4053 # it helps to detect inapplicable dependency modes. For instance
4054 # both Tru64's cc and ICC support -MD to output dependencies as a
4055 # side effect of compilation, but ICC will put the dependencies in
4056 # the current directory while Tru64 will put them in the object
4060 am_cv_CC_dependencies_compiler_type
=none
4061 if test "$am_compiler_list" = ""; then
4062 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4064 for depmode
in $am_compiler_list; do
4065 # Setup a source with many dependencies, because some compilers
4066 # like to wrap large dependency lists on column 80 (with \), and
4067 # we should not choose a depcomp mode which is confused by this.
4069 # We need to recreate these files for each test, as the compiler may
4070 # overwrite some of them when testing with obscure command lines.
4071 # This happens at least with the AIX C compiler.
4073 for i
in 1 2 3 4 5 6; do
4074 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4075 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4076 # Solaris 8's {/usr,}/bin/sh.
4077 touch sub
/conftst
$i.h
4079 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4083 # after this tag, mechanisms are not by side-effect, so they'll
4084 # only be used when explicitly requested
4085 if test "x$enable_dependency_tracking" = xyes
; then
4093 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4094 # mode. It turns out that the SunPro C++ compiler does not properly
4095 # handle `-M -o', and we need to detect this.
4096 if depmode
=$depmode \
4097 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
4098 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4099 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
4100 >/dev
/null
2>conftest.err
&&
4101 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4102 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4103 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
4104 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4105 # icc doesn't choke on unknown options, it will just issue warnings
4106 # or remarks (even with -Werror). So we grep stderr for any message
4107 # that says an option was ignored or not supported.
4108 # When given -MP, icc 7.0 and 7.1 complain thusly:
4109 # icc: Command line warning: ignoring option '-M'; no argument required
4110 # The diagnosis changed in icc 8.0:
4111 # icc: Command line remark: option '-MP' not supported
4112 if (grep 'ignoring option' conftest.err ||
4113 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4114 am_cv_CC_dependencies_compiler_type
=$depmode
4123 am_cv_CC_dependencies_compiler_type
=none
4127 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4128 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4129 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4132 test "x$enable_dependency_tracking" != xno \
4133 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4135 am__fastdepCC_FALSE
='#'
4137 am__fastdepCC_TRUE
='#'
4138 am__fastdepCC_FALSE
=
4142 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4143 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4144 if test "${lt_cv_path_SED+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 # Loop through the user's path and test for sed and gsed.
4148 # Then use that list of sed's as ones to test for truncation.
4149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir
=.
4154 for lt_ac_prog
in sed gsed
; do
4155 for ac_exec_ext
in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4157 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4165 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4166 # along with /bin/sed that truncates output.
4167 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
4168 test ! -f $lt_ac_sed && continue
4169 cat /dev
/null
> conftest.
in
4171 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
4172 # Check for GNU sed and select it if it is found.
4173 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
4174 lt_cv_path_SED
=$lt_ac_sed
4178 cat conftest.
in conftest.
in >conftest.tmp
4179 mv conftest.tmp conftest.
in
4180 cp conftest.
in conftest.
nl
4182 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
4183 cmp -s conftest.out conftest.
nl ||
break
4184 # 10000 chars as input seems more than enough
4185 test $lt_ac_count -gt 10 && break
4186 lt_ac_count
=`expr $lt_ac_count + 1`
4187 if test $lt_ac_count -gt $lt_ac_max; then
4188 lt_ac_max
=$lt_ac_count
4189 lt_cv_path_SED
=$lt_ac_sed
4198 { echo "$as_me:$LINENO: result: $SED" >&5
4199 echo "${ECHO_T}$SED" >&6; }
4201 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4202 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4203 if test "${ac_cv_path_GREP+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 # Extract the first word of "grep ggrep" to use in msg output
4207 if test -z "$GREP"; then
4208 set dummy
grep ggrep
; ac_prog_name
=$2
4209 if test "${ac_cv_path_GREP+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 ac_path_GREP_found
=false
4213 # Loop through the user's path and test for each of PROGNAME-LIST
4214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4215 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4218 test -z "$as_dir" && as_dir
=.
4219 for ac_prog
in grep ggrep
; do
4220 for ac_exec_ext
in '' $ac_executable_extensions; do
4221 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4222 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4223 # Check for GNU ac_path_GREP and select it if it is found.
4224 # Check for GNU $ac_path_GREP
4225 case `"$ac_path_GREP" --version 2>&1` in
4227 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4230 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4233 cat "conftest.in" "conftest.in" >"conftest.tmp"
4234 mv "conftest.tmp" "conftest.in"
4235 cp "conftest.in" "conftest.nl"
4236 echo 'GREP' >> "conftest.nl"
4237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4238 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4239 ac_count
=`expr $ac_count + 1`
4240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4241 # Best one so far, save it but keep looking for a better one
4242 ac_cv_path_GREP
="$ac_path_GREP"
4243 ac_path_GREP_max
=$ac_count
4245 # 10*(2^10) chars as input seems more than enough
4246 test $ac_count -gt 10 && break
4248 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4252 $ac_path_GREP_found && break 3
4262 GREP
="$ac_cv_path_GREP"
4263 if test -z "$GREP"; then
4264 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4265 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4266 { (exit 1); exit 1; }; }
4270 ac_cv_path_GREP
=$GREP
4275 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4276 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4277 GREP
="$ac_cv_path_GREP"
4280 { echo "$as_me:$LINENO: checking for egrep" >&5
4281 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4282 if test "${ac_cv_path_EGREP+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4286 then ac_cv_path_EGREP
="$GREP -E"
4288 # Extract the first word of "egrep" to use in msg output
4289 if test -z "$EGREP"; then
4290 set dummy
egrep; ac_prog_name
=$2
4291 if test "${ac_cv_path_EGREP+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 ac_path_EGREP_found
=false
4295 # Loop through the user's path and test for each of PROGNAME-LIST
4296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4300 test -z "$as_dir" && as_dir
=.
4301 for ac_prog
in egrep; do
4302 for ac_exec_ext
in '' $ac_executable_extensions; do
4303 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4304 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4305 # Check for GNU ac_path_EGREP and select it if it is found.
4306 # Check for GNU $ac_path_EGREP
4307 case `"$ac_path_EGREP" --version 2>&1` in
4309 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4312 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4315 cat "conftest.in" "conftest.in" >"conftest.tmp"
4316 mv "conftest.tmp" "conftest.in"
4317 cp "conftest.in" "conftest.nl"
4318 echo 'EGREP' >> "conftest.nl"
4319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4320 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4321 ac_count
=`expr $ac_count + 1`
4322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4323 # Best one so far, save it but keep looking for a better one
4324 ac_cv_path_EGREP
="$ac_path_EGREP"
4325 ac_path_EGREP_max
=$ac_count
4327 # 10*(2^10) chars as input seems more than enough
4328 test $ac_count -gt 10 && break
4330 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4334 $ac_path_EGREP_found && break 3
4344 EGREP
="$ac_cv_path_EGREP"
4345 if test -z "$EGREP"; then
4346 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4347 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4348 { (exit 1); exit 1; }; }
4352 ac_cv_path_EGREP
=$EGREP
4358 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4359 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4360 EGREP
="$ac_cv_path_EGREP"
4364 # Check whether --with-gnu-ld was given.
4365 if test "${with_gnu_ld+set}" = set; then
4366 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4372 if test "$GCC" = yes; then
4373 # Check if gcc -print-prog-name=ld gives a path.
4374 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4375 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4378 # gcc leaves a trailing carriage return which upsets mingw
4379 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4381 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4384 # Accept absolute paths.
4386 re_direlt
='/[^/][^/]*/\.\./'
4387 # Canonicalize the pathname of ld
4388 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
4389 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4390 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4392 test -z "$LD" && LD
="$ac_prog"
4395 # If it fails, then pretend we aren't using GCC.
4399 # If it is relative, then search for the first ld in PATH.
4403 elif test "$with_gnu_ld" = yes; then
4404 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4405 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4407 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4408 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4410 if test "${lt_cv_path_LD+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 if test -z "$LD"; then
4414 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4415 for ac_dir
in $PATH; do
4417 test -z "$ac_dir" && ac_dir
=.
4418 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4419 lt_cv_path_LD
="$ac_dir/$ac_prog"
4420 # Check to see if the program is GNU ld. I'd rather use --version,
4421 # but apparently some variants of GNU ld only accept -v.
4422 # Break only if it was the GNU/non-GNU ld that we prefer.
4423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4424 *GNU
* |
*'with BFD'*)
4425 test "$with_gnu_ld" != no
&& break
4428 test "$with_gnu_ld" != yes && break
4435 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4440 if test -n "$LD"; then
4441 { echo "$as_me:$LINENO: result: $LD" >&5
4442 echo "${ECHO_T}$LD" >&6; }
4444 { echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6; }
4447 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4448 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4449 { (exit 1); exit 1; }; }
4450 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4451 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4452 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4456 case `$LD -v 2>&1 </dev/null` in
4457 *GNU
* |
*'with BFD'*)
4458 lt_cv_prog_gnu_ld
=yes
4461 lt_cv_prog_gnu_ld
=no
4465 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4466 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4467 with_gnu_ld
=$lt_cv_prog_gnu_ld
4470 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4471 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4472 if test "${lt_cv_ld_reload_flag+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 lt_cv_ld_reload_flag
='-r'
4477 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4478 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4479 reload_flag
=$lt_cv_ld_reload_flag
4480 case $reload_flag in
4482 *) reload_flag
=" $reload_flag" ;;
4484 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4487 if test "$GCC" = yes; then
4488 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4490 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4495 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4496 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4497 if test "${lt_cv_path_NM+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$NM"; then
4501 # Let the user override the test.
4504 lt_nm_to_check
="${ac_tool_prefix}nm"
4505 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4506 lt_nm_to_check
="$lt_nm_to_check nm"
4508 for lt_tmp_nm
in $lt_nm_to_check; do
4509 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4510 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4512 test -z "$ac_dir" && ac_dir
=.
4513 tmp_nm
="$ac_dir/$lt_tmp_nm"
4514 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4515 # Check to see if the nm accepts a BSD-compat flag.
4516 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4517 # nm: unknown option "B" ignored
4518 # Tru64's nm complains that /dev/null is an invalid object file
4519 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4520 */dev
/null
* |
*'Invalid file or object type'*)
4521 lt_cv_path_NM
="$tmp_nm -B"
4525 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4527 lt_cv_path_NM
="$tmp_nm -p"
4531 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4532 continue # so that we can try to find one that supports BSD flags
4541 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4544 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4545 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4548 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4549 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4551 if test "$LN_S" = "ln -s"; then
4552 { echo "$as_me:$LINENO: result: yes" >&5
4553 echo "${ECHO_T}yes" >&6; }
4555 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4556 echo "${ECHO_T}no, using $LN_S" >&6; }
4559 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4560 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4561 if test "${lt_cv_deplibs_check_method+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4565 lt_cv_file_magic_test_file
=
4566 lt_cv_deplibs_check_method
='unknown'
4567 # Need to set the preceding variable on all platforms that support
4568 # interlibrary dependencies.
4569 # 'none' -- dependencies not supported.
4570 # `unknown' -- same as none, but documents that we really don't know.
4571 # 'pass_all' -- all dependencies passed with no checks.
4572 # 'test_compile' -- check by making test program.
4573 # 'file_magic [[regex]]' -- check by looking for files in library path
4574 # which responds to the $file_magic_cmd with a given extended regex.
4575 # If you have `file' or equivalent on your system and you're not sure
4576 # whether `pass_all' will *always* work, you probably want this one.
4580 lt_cv_deplibs_check_method
=pass_all
4584 lt_cv_deplibs_check_method
=pass_all
4588 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4589 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4590 lt_cv_file_magic_test_file
=/shlib
/libc.so
4594 # func_win32_libid is a shell function defined in ltmain.sh
4595 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4596 lt_cv_file_magic_cmd
='func_win32_libid'
4600 # Base MSYS/MinGW do not provide the 'file' command needed by
4601 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4602 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4603 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4606 darwin
* | rhapsody
*)
4607 lt_cv_deplibs_check_method
=pass_all
4610 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
4611 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4614 # Not sure whether the presence of OpenBSD here was a mistake.
4615 # Let's accept both of them until this is cleared up.
4616 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4617 lt_cv_file_magic_cmd
=/usr
/bin
/file
4618 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4622 lt_cv_deplibs_check_method
=pass_all
4627 lt_cv_deplibs_check_method
=pass_all
4630 hpux10.20
* | hpux11
*)
4631 lt_cv_file_magic_cmd
=/usr
/bin
/file
4634 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4635 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4638 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]'
4639 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4642 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4643 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4649 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4650 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4653 irix5
* | irix6
* | nonstopux
*)
4655 *-32|
*"-32 ") libmagic
=32-bit;;
4656 *-n32|
*"-n32 ") libmagic
=N32
;;
4657 *-64|
*"-64 ") libmagic
=64-bit;;
4658 *) libmagic
=never-match
;;
4660 lt_cv_deplibs_check_method
=pass_all
4663 # This must be Linux ELF.
4665 lt_cv_deplibs_check_method
=pass_all
4669 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4670 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4672 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4677 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4678 lt_cv_file_magic_cmd
=/usr
/bin
/file
4679 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4683 lt_cv_deplibs_check_method
=unknown
4687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4688 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4690 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4694 osf3
* | osf4
* | osf5
*)
4695 lt_cv_deplibs_check_method
=pass_all
4699 lt_cv_deplibs_check_method
=pass_all
4703 case $host_vendor in
4705 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]'
4706 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4709 lt_cv_deplibs_check_method
=pass_all
4712 lt_cv_file_magic_cmd
='/bin/file'
4713 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4716 lt_cv_file_magic_cmd
='/bin/file'
4717 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4718 lt_cv_file_magic_test_file
=/lib
/libc.so
4721 lt_cv_deplibs_check_method
=pass_all
4724 lt_cv_deplibs_check_method
=pass_all
4729 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4730 lt_cv_deplibs_check_method
=pass_all
4735 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4736 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4737 file_magic_cmd
=$lt_cv_file_magic_cmd
4738 deplibs_check_method
=$lt_cv_deplibs_check_method
4739 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4744 # If no C compiler was specified, use CC.
4747 # If no C compiler flags were specified, use CFLAGS.
4748 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4750 # Allow CC to be a program name with arguments.
4754 # Check whether --enable-libtool-lock was given.
4755 if test "${enable_libtool_lock+set}" = set; then
4756 enableval
=$enable_libtool_lock;
4759 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4761 # Some flags need to be propagated to the compiler or linker for good
4765 # Find out which ABI we are using.
4766 echo 'int i;' > conftest.
$ac_ext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; then
4772 case `/usr/bin/file conftest.$ac_objext` in
4784 # Find out which ABI we are using.
4785 echo '#line 4785 "configure"' > conftest.
$ac_ext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; then
4791 if test "$lt_cv_prog_gnu_ld" = yes; then
4792 case `/usr/bin/file conftest.$ac_objext` in
4794 LD
="${LD-ld} -melf32bsmip"
4797 LD
="${LD-ld} -melf32bmipn32"
4800 LD
="${LD-ld} -melf64bmip"
4804 case `/usr/bin/file conftest.$ac_objext` in
4820 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4821 # Find out which ABI we are using.
4822 echo 'int i;' > conftest.
$ac_ext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; then
4828 case `/usr/bin/file conftest.o` in
4832 LD
="${LD-ld} -m elf_i386"
4834 ppc64-
*linux
*|powerpc64-
*linux
*)
4835 LD
="${LD-ld} -m elf32ppclinux"
4838 LD
="${LD-ld} -m elf_s390"
4841 LD
="${LD-ld} -m elf32_sparc"
4848 LD
="${LD-ld} -m elf_x86_64"
4850 ppc
*-*linux
*|powerpc
*-*linux
*)
4851 LD
="${LD-ld} -m elf64ppc"
4854 LD
="${LD-ld} -m elf64_s390"
4857 LD
="${LD-ld} -m elf64_sparc"
4867 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4868 SAVE_CFLAGS
="$CFLAGS"
4869 CFLAGS
="$CFLAGS -belf"
4870 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4871 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4872 if test "${lt_cv_cc_needs_belf+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 ac_cpp
='$CPP $CPPFLAGS'
4877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4881 cat >conftest.
$ac_ext <<_ACEOF
4884 cat confdefs.h
>>conftest.
$ac_ext
4885 cat >>conftest.
$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4896 rm -f conftest.
$ac_objext conftest
$ac_exeext
4897 if { (ac_try
="$ac_link"
4899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_link") 2>conftest.er1
4905 grep -v '^ *+' conftest.er1 >conftest.err
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && {
4910 test -z "$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest$ac_exeext &&
4913 $as_test_x conftest$ac_exeext; then
4914 lt_cv_cc_needs_belf=yes
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 lt_cv_cc_needs_belf=no
4922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4923 conftest$ac_exeext conftest.$ac_ext
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4932 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4933 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4934 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4935 CFLAGS="$SAVE_CFLAGS"
4939 # Find out which ABI we are using.
4940 echo 'int i;' > conftest.$ac_ext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4942 (eval $ac_compile) 2>&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; then
4946 case `/usr
/bin
/file conftest.o
` in
4948 case $lt_cv_prog_gnu_ld in
4949 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4950 *) LD="${LD-ld} -64" ;;
4961 need_locks="$enable_libtool_lock"
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4970 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4971 # On Suns, sometimes $CPP names a directory.
4972 if test -n "$CPP" && test -d "$CPP"; then
4975 if test -z "$CPP"; then
4976 if test "${ac_cv_prog_CPP+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 # Double quotes because CPP needs to be expanded
4980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4983 for ac_c_preproc_warn_flag in '' yes
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat >conftest.$ac_ext <<_ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4998 # include <limits.h>
5000 # include <assert.h>
5004 if { (ac_try="$ac_cpp conftest.$ac_ext"
5006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5007 *) ac_try_echo
=$ac_try;;
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5012 grep -v '^ *+' conftest.er1
>conftest.err
5014 cat conftest.err
>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } >/dev
/null
&& {
5017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5018 test ! -s conftest.err
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5025 # Broken: fails on valid input.
5029 rm -f conftest.err conftest.
$ac_ext
5031 # OK, works on sane cases. Now check whether nonexistent headers
5032 # can be detected and how.
5033 cat >conftest.
$ac_ext <<_ACEOF
5036 cat confdefs.h
>>conftest.
$ac_ext
5037 cat >>conftest.
$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 #include <ac_nonexistent.h>
5041 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5049 grep -v '^ *+' conftest.er1 >conftest.err
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } >/dev/null && {
5054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5057 # Broken: success on invalid input.
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 # Passes both tests.
5068 rm -f conftest.err conftest.$ac_ext
5071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5072 rm -f conftest.err conftest.
$ac_ext
5073 if $ac_preproc_ok; then
5085 { echo "$as_me:$LINENO: result: $CPP" >&5
5086 echo "${ECHO_T}$CPP" >&6; }
5088 for ac_c_preproc_warn_flag
in '' yes
5090 # Use a header file that comes with gcc, so configuring glibc
5091 # with a fresh cross-compiler works.
5092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5093 # <limits.h> exists even on freestanding compilers.
5094 # On the NeXT, cc -E runs the code through the compiler's parser,
5095 # not just through cpp. "Syntax error" is here to catch this case.
5096 cat >conftest.
$ac_ext <<_ACEOF
5099 cat confdefs.h
>>conftest.
$ac_ext
5100 cat >>conftest.
$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5103 # include <limits.h>
5105 # include <assert.h>
5109 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5117 grep -v '^ *+' conftest.er1 >conftest.err
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null && {
5122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5123 test ! -s conftest.err
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 # Broken: fails on valid input.
5134 rm -f conftest.err conftest.$ac_ext
5136 # OK, works on sane cases. Now check whether nonexistent headers
5137 # can be detected and how.
5138 cat >conftest.$ac_ext <<_ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 #include <ac_nonexistent.h>
5146 if { (ac_try="$ac_cpp conftest.$ac_ext"
5148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5149 *) ac_try_echo
=$ac_try;;
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5154 grep -v '^ *+' conftest.er1
>conftest.err
5156 cat conftest.err
>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } >/dev
/null
&& {
5159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5160 test ! -s conftest.err
5162 # Broken: success on invalid input.
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.
$ac_ext >&5
5168 # Passes both tests.
5173 rm -f conftest.err conftest.
$ac_ext
5176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5177 rm -f conftest.err conftest.
$ac_ext
5178 if $ac_preproc_ok; then
5181 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5182 See \`config.log' for more details." >&5
5183 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5184 See \`config.log' for more details." >&2;}
5185 { (exit 1); exit 1; }; }
5189 ac_cpp
='$CPP $CPPFLAGS'
5190 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5195 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5197 if test "${ac_cv_header_stdc+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 cat >conftest.
$ac_ext <<_ACEOF
5203 cat confdefs.h
>>conftest.
$ac_ext
5204 cat >>conftest.
$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5219 rm -f conftest.
$ac_objext
5220 if { (ac_try
="$ac_compile"
5222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_compile") 2>conftest.er1
5228 grep -v '^ *+' conftest.er1 >conftest.err
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } && {
5233 test -z "$ac_c_werror_flag" ||
5234 test ! -s conftest.err
5235 } && test -s conftest.$ac_objext; then
5236 ac_cv_header_stdc=yes
5238 echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5241 ac_cv_header_stdc=no
5244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 if test $ac_cv_header_stdc = yes; then
5247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5248 cat >conftest.$ac_ext <<_ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5258 $EGREP "memchr" >/dev/null 2>&1; then
5261 ac_cv_header_stdc=no
5267 if test $ac_cv_header_stdc = yes; then
5268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5269 cat >conftest.$ac_ext <<_ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5279 $EGREP "free" >/dev/null 2>&1; then
5282 ac_cv_header_stdc=no
5288 if test $ac_cv_header_stdc = yes; then
5289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5290 if test "$cross_compiling" = yes; then
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 # define ISLOWER(c) \
5306 (('a' <= (c) && (c) <= 'i') \
5307 || ('j' <= (c) && (c) <= 'r') \
5308 || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5317 for (i = 0; i < 256; i++)
5318 if (XOR (islower (i), ISLOWER (i))
5319 || toupper (i) != TOUPPER (i))
5324 rm -f conftest$ac_exeext
5325 if { (ac_try="$ac_link"
5327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5328 *) ac_try_echo
=$ac_try;;
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_link") 2>&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5335 { (case "(($ac_try" in
5336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_try") 2>&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5346 echo "$as_me: program exited with status $ac_status" >&5
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_cv_header_stdc=no
5353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5359 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5360 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5361 if test $ac_cv_header_stdc = yes; then
5363 cat >>confdefs.h <<\_ACEOF
5364 #define STDC_HEADERS 1
5369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5380 inttypes.h stdint.h unistd.h
5382 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 cat >conftest.$ac_ext <<_ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 $ac_includes_default
5396 #include <$ac_header>
5398 rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5402 *) ac_try_echo
=$ac_try;;
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5407 grep -v '^ *+' conftest.er1
>conftest.err
5409 cat conftest.err
>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && {
5412 test -z "$ac_c_werror_flag" ||
5413 test ! -s conftest.err
5414 } && test -s conftest.
$ac_objext; then
5415 eval "$as_ac_Header=yes"
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.
$ac_ext >&5
5420 eval "$as_ac_Header=no"
5423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5425 ac_res
=`eval echo '${'$as_ac_Header'}'`
5426 { echo "$as_me:$LINENO: result: $ac_res" >&5
5427 echo "${ECHO_T}$ac_res" >&6; }
5428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5429 cat >>confdefs.h
<<_ACEOF
5430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5439 for ac_header
in dlfcn.h
5441 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5442 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5445 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 ac_res
=`eval echo '${'$as_ac_Header'}'`
5449 { echo "$as_me:$LINENO: result: $ac_res" >&5
5450 echo "${ECHO_T}$ac_res" >&6; }
5452 # Is the header compilable?
5453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5455 cat >conftest.
$ac_ext <<_ACEOF
5458 cat confdefs.h
>>conftest.
$ac_ext
5459 cat >>conftest.
$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 $ac_includes_default
5462 #include <$ac_header>
5464 rm -f conftest.
$ac_objext
5465 if { (ac_try
="$ac_compile"
5467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5473 grep -v '^ *+' conftest.er1 >conftest.err
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_c_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_header_compiler=yes
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 ac_header_compiler=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5491 echo "${ECHO_T}$ac_header_compiler" >&6; }
5493 # Is the header present?
5494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5496 cat >conftest.$ac_ext <<_ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 #include <$ac_header>
5504 if { (ac_try="$ac_cpp conftest.$ac_ext"
5506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5507 *) ac_try_echo
=$ac_try;;
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5512 grep -v '^ *+' conftest.er1
>conftest.err
5514 cat conftest.err
>&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } >/dev
/null
&& {
5517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5518 test ! -s conftest.err
5520 ac_header_preproc
=yes
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.
$ac_ext >&5
5525 ac_header_preproc
=no
5528 rm -f conftest.err conftest.
$ac_ext
5529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5530 echo "${ECHO_T}$ac_header_preproc" >&6; }
5532 # So? What about this header?
5533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5539 ac_header_preproc
=yes
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5559 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 eval "$as_ac_Header=\$ac_header_preproc"
5564 ac_res
=`eval echo '${'$as_ac_Header'}'`
5565 { echo "$as_me:$LINENO: result: $ac_res" >&5
5566 echo "${ECHO_T}$ac_res" >&6; }
5569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5570 cat >>confdefs.h
<<_ACEOF
5571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5580 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5581 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5582 (test "X$CXX" != "Xg++"))) ; then
5584 ac_cpp
='$CXXCPP $CPPFLAGS'
5585 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5588 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5589 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5590 if test -z "$CXXCPP"; then
5591 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 # Double quotes because CXXCPP needs to be expanded
5595 for CXXCPP
in "$CXX -E" "/lib/cpp"
5598 for ac_cxx_preproc_warn_flag
in '' yes
5600 # Use a header file that comes with gcc, so configuring glibc
5601 # with a fresh cross-compiler works.
5602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5603 # <limits.h> exists even on freestanding compilers.
5604 # On the NeXT, cc -E runs the code through the compiler's parser,
5605 # not just through cpp. "Syntax error" is here to catch this case.
5606 cat >conftest.
$ac_ext <<_ACEOF
5609 cat confdefs.h
>>conftest.
$ac_ext
5610 cat >>conftest.
$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5613 # include <limits.h>
5615 # include <assert.h>
5619 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5627 grep -v '^ *+' conftest.er1 >conftest.err
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } >/dev/null && {
5632 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5633 test ! -s conftest.err
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 # Broken: fails on valid input.
5644 rm -f conftest.err conftest.$ac_ext
5646 # OK, works on sane cases. Now check whether nonexistent headers
5647 # can be detected and how.
5648 cat >conftest.$ac_ext <<_ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <ac_nonexistent.h>
5656 if { (ac_try="$ac_cpp conftest.$ac_ext"
5658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5659 *) ac_try_echo
=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5664 grep -v '^ *+' conftest.er1
>conftest.err
5666 cat conftest.err
>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } >/dev
/null
&& {
5669 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5670 test ! -s conftest.err
5672 # Broken: success on invalid input.
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.
$ac_ext >&5
5678 # Passes both tests.
5683 rm -f conftest.err conftest.
$ac_ext
5686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5687 rm -f conftest.err conftest.
$ac_ext
5688 if $ac_preproc_ok; then
5693 ac_cv_prog_CXXCPP
=$CXXCPP
5696 CXXCPP
=$ac_cv_prog_CXXCPP
5698 ac_cv_prog_CXXCPP
=$CXXCPP
5700 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5701 echo "${ECHO_T}$CXXCPP" >&6; }
5703 for ac_cxx_preproc_warn_flag
in '' yes
5705 # Use a header file that comes with gcc, so configuring glibc
5706 # with a fresh cross-compiler works.
5707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5708 # <limits.h> exists even on freestanding compilers.
5709 # On the NeXT, cc -E runs the code through the compiler's parser,
5710 # not just through cpp. "Syntax error" is here to catch this case.
5711 cat >conftest.
$ac_ext <<_ACEOF
5714 cat confdefs.h
>>conftest.
$ac_ext
5715 cat >>conftest.
$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5718 # include <limits.h>
5720 # include <assert.h>
5724 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5732 grep -v '^ *+' conftest.er1 >conftest.err
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } >/dev/null && {
5737 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5738 test ! -s conftest.err
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 # Broken: fails on valid input.
5749 rm -f conftest.err conftest.$ac_ext
5751 # OK, works on sane cases. Now check whether nonexistent headers
5752 # can be detected and how.
5753 cat >conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <ac_nonexistent.h>
5761 if { (ac_try="$ac_cpp conftest.$ac_ext"
5763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5764 *) ac_try_echo
=$ac_try;;
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5769 grep -v '^ *+' conftest.er1
>conftest.err
5771 cat conftest.err
>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } >/dev
/null
&& {
5774 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5775 test ! -s conftest.err
5777 # Broken: success on invalid input.
5780 echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.
$ac_ext >&5
5783 # Passes both tests.
5788 rm -f conftest.err conftest.
$ac_ext
5791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5792 rm -f conftest.err conftest.
$ac_ext
5793 if $ac_preproc_ok; then
5796 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5797 See \`config.log' for more details." >&5
5798 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5799 See \`config.log' for more details." >&2;}
5800 { (exit 1); exit 1; }; }
5804 ac_cpp
='$CXXCPP $CPPFLAGS'
5805 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5813 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5814 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5816 if test -n "$ac_tool_prefix"; then
5817 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5820 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_prog_F77+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 if test -n "$F77"; then
5827 ac_cv_prog_F77
="$F77" # Let the user override the test.
5829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir
=.
5834 for ac_exec_ext
in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 if test -n "$F77"; then
5848 { echo "$as_me:$LINENO: result: $F77" >&5
5849 echo "${ECHO_T}$F77" >&6; }
5851 { echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6; }
5856 test -n "$F77" && break
5859 if test -z "$F77"; then
5861 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5863 # Extract the first word of "$ac_prog", so it can be a program name with args.
5864 set dummy
$ac_prog; ac_word
=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 if test -n "$ac_ct_F77"; then
5871 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir
=.
5878 for ac_exec_ext
in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_prog_ac_ct_F77
="$ac_prog"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5891 if test -n "$ac_ct_F77"; then
5892 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5893 echo "${ECHO_T}$ac_ct_F77" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 test -n "$ac_ct_F77" && break
5903 if test "x$ac_ct_F77" = x
; then
5906 case $cross_compiling:$ac_tool_warned in
5908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5909 whose name does not start with the host triplet. If you think this
5910 configuration is useful to you, please write to autoconf@gnu.org." >&5
5911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5912 whose name does not start with the host triplet. If you think this
5913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5914 ac_tool_warned
=yes ;;
5921 # Provide some information about the compiler.
5922 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5923 ac_compiler
=`set X $ac_compile; echo $2`
5924 { (ac_try
="$ac_compiler --version >&5"
5926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_compiler --version >&5") 2>&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }
5934 { (ac_try="$ac_compiler -v >&5"
5936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5937 *) ac_try_echo
=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compiler -v >&5") 2>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }
5944 { (ac_try
="$ac_compiler -V >&5"
5946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compiler -V >&5") 2>&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }
5956 # If we don't use `.F
' as extension, the preprocessor is not run on the
5957 # input file. (Note that this only needs to work for GNU compilers.)
5960 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5961 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5962 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5973 rm -f conftest.$ac_objext
5974 if { (ac_try="$ac_compile"
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_compile") 2>conftest.er1
5982 grep -v '^
*+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && {
5987 test -z "$ac_f77_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest.$ac_objext; then
5992 echo "$as_me: failed program was:" >&5
5993 sed 's
/^
/|
/' conftest.$ac_ext >&5
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6002 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6003 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6005 ac_test_FFLAGS=${FFLAGS+set}
6006 ac_save_FFLAGS=$FFLAGS
6008 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6009 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6010 if test "${ac_cv_prog_f77_g+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 cat >conftest.$ac_ext <<_ACEOF
6019 rm -f conftest.$ac_objext
6020 if { (ac_try="$ac_compile"
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_compile") 2>conftest.er1
6028 grep -v '^
*+' conftest.er1 >conftest.err
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && {
6033 test -z "$ac_f77_werror_flag" ||
6034 test ! -s conftest.err
6035 } && test -s conftest.$ac_objext; then
6036 ac_cv_prog_f77_g=yes
6038 echo "$as_me: failed program was:" >&5
6039 sed 's
/^
/|
/' conftest.$ac_ext >&5
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6048 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6049 if test "$ac_test_FFLAGS" = set; then
6050 FFLAGS=$ac_save_FFLAGS
6051 elif test $ac_cv_prog_f77_g = yes; then
6052 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6058 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6065 G77=`test $ac_compiler_gnu = yes && echo yes`
6067 ac_cpp='$CXXCPP $CPPFLAGS'
6068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6069 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6074 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6076 # find the maximum length of command line arguments
6077 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6078 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6079 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 # On DJGPP, this test can blow up pretty badly due to problems in libc
6088 # (any single argument exceeding 2000 bytes causes a buffer overrun
6089 # during glob expansion). Even if it were fixed, the result of this
6090 # check would be larger than it should be.
6091 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6095 # Under GNU Hurd, this test is not required because there is
6096 # no limit to the length of command line arguments.
6097 # Libtool will interpret -1 as no limit whatsoever
6098 lt_cv_sys_max_cmd_len
=-1;
6102 # On Win9x/ME, this test blows up -- it succeeds, but takes
6103 # about 5 minutes as the teststring grows exponentially.
6104 # Worse, since 9x/ME are not pre-emptively multitasking,
6105 # you end up with a "frozen" computer, even though with patience
6106 # the test eventually succeeds (with a max line length of 256k).
6107 # Instead, let's just punt: use the minimum linelength reported by
6108 # all of the supported platforms: 8192 (on NT/2K/XP).
6109 lt_cv_sys_max_cmd_len
=8192;
6113 # On AmigaOS with pdksh, this test takes hours, literally.
6114 # So we just punt and use a minimum line length of 8192.
6115 lt_cv_sys_max_cmd_len
=8192;
6118 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6119 # This has been around since 386BSD, at least. Likely further.
6120 if test -x /sbin
/sysctl
; then
6121 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6122 elif test -x /usr
/sbin
/sysctl
; then
6123 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6125 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6127 # And add a safety zone
6128 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6129 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6133 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6134 lt_cv_sys_max_cmd_len
=196608
6138 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6139 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6140 # nice to cause kernel panics so lets avoid the loop below.
6141 # First set a reasonable default.
6142 lt_cv_sys_max_cmd_len
=16384
6144 if test -x /sbin
/sysconfig
; then
6145 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6146 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6151 lt_cv_sys_max_cmd_len
=102400
6153 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6154 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6155 if test -n "$kargmax"; then
6156 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6158 lt_cv_sys_max_cmd_len
=32768
6162 # If test is not a shell built-in, we'll probably end up computing a
6163 # maximum length that is only half of the actual maximum length, but
6165 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6166 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6167 = "XX$teststring") >/dev
/null
2>&1 &&
6168 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6169 lt_cv_sys_max_cmd_len
=$new_result &&
6170 test $i != 17 # 1/2 MB should be enough
6173 teststring
=$teststring$teststring
6176 # Add a significant safety factor because C++ compilers can tack on massive
6177 # amounts of additional arguments before passing them to the linker.
6178 # It appears as though 1/2 is a usable value.
6179 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6185 if test -n $lt_cv_sys_max_cmd_len ; then
6186 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6187 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6189 { echo "$as_me:$LINENO: result: none" >&5
6190 echo "${ECHO_T}none" >&6; }
6196 # Check for command to grab the raw symbol name followed by C symbol from nm.
6197 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6198 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6199 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 # These are sane defaults that work on at least a few old systems.
6204 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6206 # Character class describing NM global symbol codes.
6207 symcode
='[BCDEGRST]'
6209 # Regexp to match symbols that can be accessed directly from C.
6210 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6212 # Transform an extracted symbol line into a proper C declaration
6213 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6215 # Transform an extracted symbol line into symbol name and symbol address
6216 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'"
6218 # Define system-specific variables.
6223 cygwin
* | mingw
* | pw32
*)
6224 symcode
='[ABCDGISTW]'
6226 hpux
*) # Its linker distinguishes data from code symbols
6227 if test "$host_cpu" = ia64
; then
6228 symcode
='[ABCDEGRST]'
6230 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6231 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'"
6234 if test "$host_cpu" = ia64
; then
6235 symcode
='[ABCDGIRSTW]'
6236 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6237 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'"
6241 symcode
='[BCDEGRST]'
6244 symcode
='[BCDEGQRST]'
6255 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6263 # Handle CRLF in mingw tool chain
6267 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6271 # If we're using GNU nm, then use its standard symbol codes.
6272 case `$NM -V 2>&1` in
6273 *GNU
* |
*'with BFD'*)
6274 symcode
='[ABCDGIRSTW]' ;;
6277 # Try without a prefix undercore, then with it.
6278 for ac_symprfx
in "" "_"; do
6280 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6281 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6283 # Write the raw and C identifiers.
6284 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6286 # Check to see that the pipe works correctly.
6290 cat > conftest.
$ac_ext <<EOF
6295 void nm_test_func(){}
6299 int main(){nm_test_var='a';nm_test_func();return(0);}
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; then
6307 # Now try to grab the symbols.
6309 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6310 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } && test -s "$nlist"; then
6314 # Try sorting and uniquifying the output.
6315 if sort "$nlist" |
uniq > "$nlist"T
; then
6316 mv -f "$nlist"T
"$nlist"
6321 # Make sure that we snagged all the symbols we need.
6322 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6323 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6324 cat <<EOF > conftest.$ac_ext
6330 # Now generate the symbol file.
6331 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6333 cat <<EOF >> conftest.$ac_ext
6334 #if defined (__STDC__) && __STDC__
6335 # define lt_ptr_t void *
6337 # define lt_ptr_t char *
6341 /* The mapping between symbol names and symbols. */
6346 lt_preloaded_symbols[] =
6349 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6350 cat <<\EOF
>> conftest.
$ac_ext
6358 # Now try linking the two files.
6359 mv conftest.
$ac_objext conftstm.
$ac_objext
6360 lt_save_LIBS
="$LIBS"
6361 lt_save_CFLAGS
="$CFLAGS"
6362 LIBS
="conftstm.$ac_objext"
6363 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365 (eval $ac_link) 2>&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6371 LIBS
="$lt_save_LIBS"
6372 CFLAGS
="$lt_save_CFLAGS"
6374 echo "cannot find nm_test_func in $nlist" >&5
6377 echo "cannot find nm_test_var in $nlist" >&5
6380 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6383 echo "$progname: failed program was:" >&5
6384 cat conftest.
$ac_ext >&5
6386 rm -f conftest
* conftst
*
6388 # Do not use the global_symbol_pipe unless it works.
6389 if test "$pipe_works" = yes; then
6392 lt_cv_sys_global_symbol_pipe
=
6398 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6399 lt_cv_sys_global_symbol_to_cdecl
=
6401 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6402 { echo "$as_me:$LINENO: result: failed" >&5
6403 echo "${ECHO_T}failed" >&6; }
6405 { echo "$as_me:$LINENO: result: ok" >&5
6406 echo "${ECHO_T}ok" >&6; }
6409 { echo "$as_me:$LINENO: checking for objdir" >&5
6410 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6411 if test "${lt_cv_objdir+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 rm -f .libs
2>/dev
/null
6415 mkdir .libs
2>/dev
/null
6416 if test -d .libs
; then
6419 # MS-DOS does not allow filenames that begin with a dot.
6422 rmdir .libs
2>/dev
/null
6424 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6425 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6426 objdir
=$lt_cv_objdir
6434 # AIX sometimes has problems with the GCC collect2 program. For some
6435 # reason, if we set the COLLECT_NAMES environment variable, the problems
6436 # vanish in a puff of smoke.
6437 if test "X${COLLECT_NAMES+set}" != Xset
; then
6439 export COLLECT_NAMES
6444 # Sed substitution that helps us do robust quoting. It backslashifies
6445 # metacharacters that are still active within double-quoted strings.
6446 Xsed
='sed -e 1s/^X//'
6447 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6449 # Same as above, but do not quote variable references.
6450 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6452 # Sed substitution to delay expansion of an escaped shell variable in a
6453 # double_quote_subst'ed string.
6454 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6456 # Sed substitution to avoid accidental globbing in evaled expressions
6457 no_glob_subst
='s/\*/\\\*/g'
6463 default_ofile
=libtool
6464 can_build_shared
=yes
6466 # All known linkers require a `.a' archive for static linking (except MSVC,
6467 # which needs '.lib').
6469 ltmain
="$ac_aux_dir/ltmain.sh"
6470 ofile
="$default_ofile"
6471 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6475 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_AR+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 if test -n "$AR"; then
6482 ac_cv_prog_AR
="$AR" # Let the user override the test.
6484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir
=.
6489 for ac_exec_ext
in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 if test -n "$AR"; then
6503 { echo "$as_me:$LINENO: result: $AR" >&5
6504 echo "${ECHO_T}$AR" >&6; }
6506 { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6512 if test -z "$ac_cv_prog_AR"; then
6514 # Extract the first word of "ar", so it can be a program name with args.
6515 set dummy
ar; ac_word
=$2
6516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 if test -n "$ac_ct_AR"; then
6522 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir
=.
6529 for ac_exec_ext
in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_prog_ac_ct_AR
="ar"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6542 if test -n "$ac_ct_AR"; then
6543 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6544 echo "${ECHO_T}$ac_ct_AR" >&6; }
6546 { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6550 if test "x$ac_ct_AR" = x
; then
6553 case $cross_compiling:$ac_tool_warned in
6555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6556 whose name does not start with the host triplet. If you think this
6557 configuration is useful to you, please write to autoconf@gnu.org." >&5
6558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6559 whose name does not start with the host triplet. If you think this
6560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6561 ac_tool_warned
=yes ;;
6569 if test -n "$ac_tool_prefix"; then
6570 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6571 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_RANLIB+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 if test -n "$RANLIB"; then
6578 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir
=.
6585 for ac_exec_ext
in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 RANLIB
=$ac_cv_prog_RANLIB
6598 if test -n "$RANLIB"; then
6599 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6600 echo "${ECHO_T}$RANLIB" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6608 if test -z "$ac_cv_prog_RANLIB"; then
6609 ac_ct_RANLIB
=$RANLIB
6610 # Extract the first word of "ranlib", so it can be a program name with args.
6611 set dummy ranlib
; ac_word
=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 if test -n "$ac_ct_RANLIB"; then
6618 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir
=.
6625 for ac_exec_ext
in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6638 if test -n "$ac_ct_RANLIB"; then
6639 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6640 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6642 { echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6; }
6646 if test "x$ac_ct_RANLIB" = x
; then
6649 case $cross_compiling:$ac_tool_warned in
6651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet. If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&5
6654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6655 whose name does not start with the host triplet. If you think this
6656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6657 ac_tool_warned
=yes ;;
6659 RANLIB
=$ac_ct_RANLIB
6662 RANLIB
="$ac_cv_prog_RANLIB"
6665 if test -n "$ac_tool_prefix"; then
6666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6667 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_STRIP+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 if test -n "$STRIP"; then
6674 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir
=.
6681 for ac_exec_ext
in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 STRIP
=$ac_cv_prog_STRIP
6694 if test -n "$STRIP"; then
6695 { echo "$as_me:$LINENO: result: $STRIP" >&5
6696 echo "${ECHO_T}$STRIP" >&6; }
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6704 if test -z "$ac_cv_prog_STRIP"; then
6706 # Extract the first word of "strip", so it can be a program name with args.
6707 set dummy strip
; ac_word
=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 if test -n "$ac_ct_STRIP"; then
6714 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir
=.
6721 for ac_exec_ext
in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_prog_ac_ct_STRIP
="strip"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6734 if test -n "$ac_ct_STRIP"; then
6735 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6736 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6742 if test "x$ac_ct_STRIP" = x
; then
6745 case $cross_compiling:$ac_tool_warned in
6747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6748 whose name does not start with the host triplet. If you think this
6749 configuration is useful to you, please write to autoconf@gnu.org." >&5
6750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6751 whose name does not start with the host triplet. If you think this
6752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6753 ac_tool_warned
=yes ;;
6758 STRIP
="$ac_cv_prog_STRIP"
6763 old_CFLAGS
="$CFLAGS"
6765 # Set sane defaults for various variables
6766 test -z "$AR" && AR
=ar
6767 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6768 test -z "$AS" && AS
=as
6769 test -z "$CC" && CC
=cc
6770 test -z "$LTCC" && LTCC
=$CC
6771 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
6772 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6773 test -z "$LD" && LD
=ld
6774 test -z "$LN_S" && LN_S
="ln -s"
6775 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6776 test -z "$NM" && NM
=nm
6777 test -z "$SED" && SED
=sed
6778 test -z "$OBJDUMP" && OBJDUMP
=objdump
6779 test -z "$RANLIB" && RANLIB
=:
6780 test -z "$STRIP" && STRIP
=:
6781 test -z "$ac_objext" && ac_objext
=o
6783 # Determine commands to create old-style static archives.
6784 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6785 old_postinstall_cmds
='chmod 644 $oldlib'
6786 old_postuninstall_cmds
=
6788 if test -n "$RANLIB"; then
6791 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6794 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6797 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6800 for cc_temp
in $compiler""; do
6802 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6803 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
6808 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6811 # Only perform the check for file, if the check method requires it
6812 case $deplibs_check_method in
6814 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6815 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6816 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6817 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6825 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6826 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6827 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6828 for ac_dir
in $ac_dummy; do
6830 test -z "$ac_dir" && ac_dir
=.
6831 if test -f $ac_dir/${ac_tool_prefix}file; then
6832 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6833 if test -n "$file_magic_test_file"; then
6834 case $deplibs_check_method in
6836 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6837 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6838 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6839 $EGREP "$file_magic_regex" > /dev
/null
; then
6844 *** Warning: the command libtool uses to detect shared libraries,
6845 *** $file_magic_cmd, produces output that libtool cannot recognize.
6846 *** The result is that libtool may fail to recognize shared libraries
6847 *** as such. This will affect the creation of libtool libraries that
6848 *** depend on shared libraries, but programs linked with such libtool
6849 *** libraries will work regardless of this problem. Nevertheless, you
6850 *** may want to report the problem to your system manager and/or to
6851 *** bug-libtool@gnu.org
6861 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6866 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6867 if test -n "$MAGIC_CMD"; then
6868 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6869 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6871 { echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6; }
6875 if test -z "$lt_cv_path_MAGIC_CMD"; then
6876 if test -n "$ac_tool_prefix"; then
6877 { echo "$as_me:$LINENO: checking for file" >&5
6878 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6887 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6888 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6889 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6890 for ac_dir
in $ac_dummy; do
6892 test -z "$ac_dir" && ac_dir
=.
6893 if test -f $ac_dir/file; then
6894 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6895 if test -n "$file_magic_test_file"; then
6896 case $deplibs_check_method in
6898 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6899 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6900 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6901 $EGREP "$file_magic_regex" > /dev
/null
; then
6906 *** Warning: the command libtool uses to detect shared libraries,
6907 *** $file_magic_cmd, produces output that libtool cannot recognize.
6908 *** The result is that libtool may fail to recognize shared libraries
6909 *** as such. This will affect the creation of libtool libraries that
6910 *** depend on shared libraries, but programs linked with such libtool
6911 *** libraries will work regardless of this problem. Nevertheless, you
6912 *** may want to report the problem to your system manager and/or to
6913 *** bug-libtool@gnu.org
6923 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6928 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6929 if test -n "$MAGIC_CMD"; then
6930 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6931 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6933 { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6949 # Check whether --enable-libtool-lock was given.
6950 if test "${enable_libtool_lock+set}" = set; then
6951 enableval
=$enable_libtool_lock;
6954 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6957 # Check whether --with-pic was given.
6958 if test "${with_pic+set}" = set; then
6959 withval
=$with_pic; pic_mode
="$withval"
6964 test -z "$pic_mode" && pic_mode
=default
6966 # Use C for the default configuration in the libtool script
6970 ac_cpp
='$CPP $CPPFLAGS'
6971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6976 # Source file extension for C test sources.
6979 # Object file extension for compiled C test sources.
6983 # Code to be used in simple compile tests
6984 lt_simple_compile_test_code
="int some_variable = 0;\n"
6986 # Code to be used in simple link tests
6987 lt_simple_link_test_code
='int main(){return(0);}\n'
6990 # If no C compiler was specified, use CC.
6993 # If no C compiler flags were specified, use CFLAGS.
6994 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6996 # Allow CC to be a program name with arguments.
7000 # save warnings/boilerplate of simple test code
7001 ac_outfile
=conftest.
$ac_objext
7002 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
7003 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7004 _lt_compiler_boilerplate
=`cat conftest.err`
7007 ac_outfile
=conftest.
$ac_objext
7008 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
7009 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7010 _lt_linker_boilerplate
=`cat conftest.err`
7015 lt_prog_compiler_no_builtin_flag
=
7017 if test "$GCC" = yes; then
7018 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7021 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7022 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7023 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 lt_cv_prog_compiler_rtti_exceptions
=no
7027 ac_outfile
=conftest.
$ac_objext
7028 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7029 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7030 # Insert the option either (1) after the last *FLAGS variable, or
7031 # (2) before a word containing "conftest.", or (3) at the end.
7032 # Note that $ac_compile itself does not contain backslashes and begins
7033 # with a dollar sign (not a hyphen), so the echo should work correctly.
7034 # The option is referenced via a variable to avoid confusing sed.
7035 lt_compile
=`echo "$ac_compile" | $SED \
7036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7038 -e 's:$: $lt_compiler_flag:'`
7039 (eval echo "\"\$as_me:7039: $lt_compile\"" >&5)
7040 (eval "$lt_compile" 2>conftest.err
)
7042 cat conftest.err
>&5
7043 echo "$as_me:7043: \$? = $ac_status" >&5
7044 if (exit $ac_status) && test -s "$ac_outfile"; then
7045 # The compiler can only warn and ignore the option if not recognized
7046 # So say no if there are warnings other than the usual output.
7047 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7048 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7049 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7050 lt_cv_prog_compiler_rtti_exceptions
=yes
7056 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7057 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7059 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7060 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7067 lt_prog_compiler_wl
=
7068 lt_prog_compiler_pic
=
7069 lt_prog_compiler_static
=
7071 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7072 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7074 if test "$GCC" = yes; then
7075 lt_prog_compiler_wl
='-Wl,'
7076 lt_prog_compiler_static
='-static'
7080 # All AIX code is PIC.
7081 if test "$host_cpu" = ia64
; then
7082 # AIX 5 now supports IA64 processor
7083 lt_prog_compiler_static
='-Bstatic'
7088 # FIXME: we need at least 68020 code to build shared libraries, but
7089 # adding the `-m68020' flag to GCC prevents building anything better,
7091 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7094 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7095 # PIC is the default for these OSes.
7098 mingw
* | pw32
* | os2
*)
7099 # This hack is so that the source file can tell whether it is being
7100 # built for inclusion in a dll (and should export symbols for example).
7101 lt_prog_compiler_pic
='-DDLL_EXPORT'
7104 darwin
* | rhapsody
*)
7105 # PIC is the default on this platform
7106 # Common symbols not allowed in MH_DYLIB files
7107 lt_prog_compiler_pic
='-fno-common'
7111 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7112 # Instead, we relocate shared libraries at runtime.
7116 # Just because we use GCC doesn't mean we suddenly get shared libraries
7117 # on systems that don't support them.
7118 lt_prog_compiler_can_build_shared
=no
7123 if test -d /usr
/nec
; then
7124 lt_prog_compiler_pic
=-Kconform_pic
7129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7136 lt_prog_compiler_pic
='-fPIC'
7142 lt_prog_compiler_pic
='-fPIC'
7146 # PORTME Check for flag to pass linker flags through the system compiler.
7149 lt_prog_compiler_wl
='-Wl,'
7150 if test "$host_cpu" = ia64
; then
7151 # AIX 5 now supports IA64 processor
7152 lt_prog_compiler_static
='-Bstatic'
7154 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7158 # PIC is the default on this platform
7159 # Common symbols not allowed in MH_DYLIB files
7160 case $cc_basename in
7162 lt_prog_compiler_pic
='-qnocommon'
7163 lt_prog_compiler_wl
='-Wl,'
7168 mingw
* | pw32
* | os2
*)
7169 # This hack is so that the source file can tell whether it is being
7170 # built for inclusion in a dll (and should export symbols for example).
7171 lt_prog_compiler_pic
='-DDLL_EXPORT'
7174 hpux9
* | hpux10
* | hpux11
*)
7175 lt_prog_compiler_wl
='-Wl,'
7176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7183 lt_prog_compiler_pic
='+Z'
7186 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7187 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7190 irix5
* | irix6
* | nonstopux
*)
7191 lt_prog_compiler_wl
='-Wl,'
7192 # PIC (with -KPIC) is the default.
7193 lt_prog_compiler_static
='-non_shared'
7197 lt_prog_compiler_pic
='-KPIC'
7198 lt_prog_compiler_static
='-Bstatic'
7202 case $cc_basename in
7204 lt_prog_compiler_wl
='-Wl,'
7205 lt_prog_compiler_pic
='-KPIC'
7206 lt_prog_compiler_static
='-static'
7208 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7209 # Portland Group compilers (*not* the Pentium gcc compiler,
7210 # which looks to be a dead project)
7211 lt_prog_compiler_wl
='-Wl,'
7212 lt_prog_compiler_pic
='-fpic'
7213 lt_prog_compiler_static
='-Bstatic'
7216 lt_prog_compiler_wl
='-Wl,'
7217 # All Alpha code is PIC.
7218 lt_prog_compiler_static
='-non_shared'
7223 osf3
* | osf4
* | osf5
*)
7224 lt_prog_compiler_wl
='-Wl,'
7225 # All OSF/1 code is PIC.
7226 lt_prog_compiler_static
='-non_shared'
7230 lt_prog_compiler_pic
='-KPIC'
7231 lt_prog_compiler_static
='-Bstatic'
7232 case $cc_basename in
7234 lt_prog_compiler_wl
='-Qoption ld ';;
7236 lt_prog_compiler_wl
='-Wl,';;
7241 lt_prog_compiler_wl
='-Qoption ld '
7242 lt_prog_compiler_pic
='-PIC'
7243 lt_prog_compiler_static
='-Bstatic'
7246 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7247 lt_prog_compiler_wl
='-Wl,'
7248 lt_prog_compiler_pic
='-KPIC'
7249 lt_prog_compiler_static
='-Bstatic'
7253 if test -d /usr
/nec
;then
7254 lt_prog_compiler_pic
='-Kconform_pic'
7255 lt_prog_compiler_static
='-Bstatic'
7259 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7260 lt_prog_compiler_wl
='-Wl,'
7261 lt_prog_compiler_pic
='-KPIC'
7262 lt_prog_compiler_static
='-Bstatic'
7266 lt_prog_compiler_wl
='-Wl,'
7267 lt_prog_compiler_can_build_shared
=no
7271 lt_prog_compiler_pic
='-pic'
7272 lt_prog_compiler_static
='-Bstatic'
7276 lt_prog_compiler_can_build_shared
=no
7281 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7282 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7285 # Check to make sure the PIC flag actually works.
7287 if test -n "$lt_prog_compiler_pic"; then
7289 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7290 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7291 if test "${lt_prog_compiler_pic_works+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 lt_prog_compiler_pic_works
=no
7295 ac_outfile
=conftest.
$ac_objext
7296 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7297 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7298 # Insert the option either (1) after the last *FLAGS variable, or
7299 # (2) before a word containing "conftest.", or (3) at the end.
7300 # Note that $ac_compile itself does not contain backslashes and begins
7301 # with a dollar sign (not a hyphen), so the echo should work correctly.
7302 # The option is referenced via a variable to avoid confusing sed.
7303 lt_compile
=`echo "$ac_compile" | $SED \
7304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7306 -e 's:$: $lt_compiler_flag:'`
7307 (eval echo "\"\$as_me:7307: $lt_compile\"" >&5)
7308 (eval "$lt_compile" 2>conftest.err
)
7310 cat conftest.err
>&5
7311 echo "$as_me:7311: \$? = $ac_status" >&5
7312 if (exit $ac_status) && test -s "$ac_outfile"; then
7313 # The compiler can only warn and ignore the option if not recognized
7314 # So say no if there are warnings other than the usual output.
7315 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7316 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7317 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7318 lt_prog_compiler_pic_works
=yes
7324 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7325 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7327 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7328 case $lt_prog_compiler_pic in
7330 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7333 lt_prog_compiler_pic
=
7334 lt_prog_compiler_can_build_shared
=no
7339 # For platforms which do not support PIC, -DPIC is meaningless:
7341 lt_prog_compiler_pic
=
7344 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7349 # Check to make sure the static flag actually works.
7351 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7352 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7353 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7354 if test "${lt_prog_compiler_static_works+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 lt_prog_compiler_static_works
=no
7358 save_LDFLAGS
="$LDFLAGS"
7359 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7360 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
7361 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7362 # The linker can only warn and ignore the option if not recognized
7363 # So say no if there are warnings
7364 if test -s conftest.err
; then
7365 # Append any errors to the config.log.
7366 cat conftest.err
1>&5
7367 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7368 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7369 if diff conftest.exp conftest.er2
>/dev
/null
; then
7370 lt_prog_compiler_static_works
=yes
7373 lt_prog_compiler_static_works
=yes
7377 LDFLAGS
="$save_LDFLAGS"
7380 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7381 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7383 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7386 lt_prog_compiler_static
=
7390 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7391 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 lt_cv_prog_compiler_c_o
=no
7396 $rm -r conftest
2>/dev
/null
7400 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7402 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7403 # Insert the option either (1) after the last *FLAGS variable, or
7404 # (2) before a word containing "conftest.", or (3) at the end.
7405 # Note that $ac_compile itself does not contain backslashes and begins
7406 # with a dollar sign (not a hyphen), so the echo should work correctly.
7407 lt_compile
=`echo "$ac_compile" | $SED \
7408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7410 -e 's:$: $lt_compiler_flag:'`
7411 (eval echo "\"\$as_me:7411: $lt_compile\"" >&5)
7412 (eval "$lt_compile" 2>out
/conftest.err
)
7414 cat out
/conftest.err
>&5
7415 echo "$as_me:7415: \$? = $ac_status" >&5
7416 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7418 # The compiler can only warn and ignore the option if not recognized
7419 # So say no if there are warnings
7420 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7421 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7422 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7423 lt_cv_prog_compiler_c_o
=yes
7428 # SGI C++ compiler will create directory out/ii_files/ for
7429 # template instantiation
7430 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7431 $rm out
/* && rmdir out
7437 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7438 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7441 hard_links
="nottested"
7442 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7443 # do not overwrite the value of need_locks provided by the user
7444 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7445 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7448 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7450 ln conftest.a conftest.b
2>&5 || hard_links
=no
7451 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7452 { echo "$as_me:$LINENO: result: $hard_links" >&5
7453 echo "${ECHO_T}$hard_links" >&6; }
7454 if test "$hard_links" = no
; then
7455 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7456 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7463 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7464 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7467 allow_undefined_flag
=
7468 enable_shared_with_static_runtimes
=no
7470 archive_expsym_cmds
=
7471 old_archive_From_new_cmds
=
7472 old_archive_from_expsyms_cmds
=
7473 export_dynamic_flag_spec
=
7474 whole_archive_flag_spec
=
7475 thread_safe_flag_spec
=
7476 hardcode_libdir_flag_spec
=
7477 hardcode_libdir_flag_spec_ld
=
7478 hardcode_libdir_separator
=
7481 hardcode_shlibpath_var
=unsupported
7482 link_all_deplibs
=unknown
7483 hardcode_automatic
=no
7486 always_export_symbols
=no
7487 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7488 # include_expsyms should be a list of space-separated symbols to be *always*
7489 # included in the symbol list
7491 # exclude_expsyms can be an extended regexp of symbols to exclude
7492 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7493 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7494 # as well as any symbol that contains `d'.
7495 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7496 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7497 # platforms (ab)use it in PIC code, but their linkers get confused if
7498 # the symbol is explicitly referenced. Since portable code cannot
7499 # rely on this symbol name, it's probably fine to never include it in
7500 # preloaded symbol tables.
7501 extract_expsyms_cmds
=
7502 # Just being paranoid about ensuring that cc_basename is set.
7503 for cc_temp
in $compiler""; do
7505 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7506 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7511 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7514 cygwin
* | mingw
* | pw32
*)
7515 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7516 # When not using gcc, we currently assume that we are using
7517 # Microsoft Visual C++.
7518 if test "$GCC" != yes; then
7523 # we just hope/assume this is gcc and not c89 (= MSVC++)
7532 if test "$with_gnu_ld" = yes; then
7533 # If archive_cmds runs LD, not CC, wlarc should be empty
7536 # Set some defaults for GNU ld with shared library support. These
7537 # are reset later if shared libraries are not supported. Putting them
7538 # here allows them to be overridden if necessary.
7539 runpath_var
=LD_RUN_PATH
7540 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7541 export_dynamic_flag_spec
='${wl}--export-dynamic'
7542 # ancient GNU ld didn't support --whole-archive et. al.
7543 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7544 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7546 whole_archive_flag_spec
=
7548 supports_anon_versioning
=no
7549 case `$LD -v 2>/dev/null` in
7550 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7551 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7552 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7553 *\
2.11.
*) ;; # other 2.11 versions
7554 *) supports_anon_versioning
=yes ;;
7557 # See if GNU ld supports shared libraries.
7559 aix3
* | aix4
* | aix5
*)
7560 # On AIX/PPC, the GNU linker is very broken
7561 if test "$host_cpu" != ia64
; then
7565 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7566 *** to be unable to reliably create shared libraries on AIX.
7567 *** Therefore, libtool is disabling shared libraries support. If you
7568 *** really care for shared libraries, you may want to modify your PATH
7569 *** so that a non-GNU linker is found, and then restart.
7576 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)'
7577 hardcode_libdir_flag_spec
='-L$libdir'
7578 hardcode_minus_L
=yes
7580 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7581 # that the semantics of dynamic libraries on AmigaOS, at least up
7582 # to version 4, is to share data among multiple programs linked
7583 # with the same dynamic library. Since this doesn't match the
7584 # behavior of shared libraries on other platforms, we can't use
7590 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7591 allow_undefined_flag
=unsupported
7592 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7593 # support --undefined. This deserves some investigation. FIXME
7594 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7600 cygwin
* | mingw
* | pw32
*)
7601 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7602 # as there is no search path for DLLs.
7603 hardcode_libdir_flag_spec
='-L$libdir'
7604 allow_undefined_flag
=unsupported
7605 always_export_symbols
=no
7606 enable_shared_with_static_runtimes
=yes
7607 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7609 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7610 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7611 # If the export-symbols file already is a .def file (1st line
7612 # is EXPORTS), use it as is; otherwise, prepend...
7613 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7614 cp $export_symbols $output_objdir/$soname.def;
7616 echo EXPORTS > $output_objdir/$soname.def;
7617 cat $export_symbols >> $output_objdir/$soname.def;
7619 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7627 hardcode_shlibpath_var
=no
7628 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7629 export_dynamic_flag_spec
='${wl}-E'
7630 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7631 # Instead, shared libraries are loaded at an image base (0x10000000 by
7632 # default) and relocated if they conflict, which is a slow very memory
7633 # consuming and fragmenting process. To avoid this, we pick a random,
7634 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7635 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7636 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7637 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'
7641 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7643 case $cc_basename,$host_cpu in
7644 pgcc
*) # Portland Group C compiler
7645 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'
7646 tmp_addflag
=' $pic_flag'
7648 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7649 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'
7650 tmp_addflag
=' $pic_flag -Mnomain' ;;
7651 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7652 tmp_addflag
=' -i_dynamic' ;;
7653 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7654 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7655 ifc
* | ifort
*) # Intel Fortran compiler
7656 tmp_addflag
=' -nofor_main' ;;
7658 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 if test $supports_anon_versioning = yes; then
7661 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7663 $echo "local: *; };" >> $output_objdir/$libname.ver~
7664 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7672 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7673 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7676 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7677 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7682 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7686 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7687 *** create shared libraries on Solaris systems. Therefore, libtool
7688 *** is disabling shared libraries support. We urge you to upgrade GNU
7689 *** binutils to release 2.9.1 or newer. Another option is to modify
7690 *** your PATH or compiler configuration so that the native linker is
7691 *** used, and then restart.
7694 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7695 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7696 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7702 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7703 case `$LD -v 2>&1` in
7704 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7708 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7709 *** reliably create shared libraries on SCO systems. Therefore, libtool
7710 *** is disabling shared libraries support. We urge you to upgrade GNU
7711 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7712 *** your PATH or compiler configuration so that the native linker is
7713 *** used, and then restart.
7718 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7719 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7720 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7721 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7730 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7733 hardcode_shlibpath_var
=no
7737 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7738 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7739 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7746 if test "$ld_shlibs" = no
; then
7748 hardcode_libdir_flag_spec
=
7749 export_dynamic_flag_spec
=
7750 whole_archive_flag_spec
=
7753 # PORTME fill in a description of your system's linker (not GNU ld)
7756 allow_undefined_flag
=unsupported
7757 always_export_symbols
=yes
7758 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'
7759 # Note: this linker hardcodes the directories in LIBPATH if there
7760 # are no directories specified by -L.
7761 hardcode_minus_L
=yes
7762 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7763 # Neither direct hardcoding nor static linking is supported with a
7765 hardcode_direct
=unsupported
7770 if test "$host_cpu" = ia64
; then
7771 # On IA64, the linker does run time linking by default, so we don't
7772 # have to do anything special.
7773 aix_use_runtimelinking
=no
7774 exp_sym_flag
='-Bexport'
7777 # If we're using GNU nm, then we don't want the "-C" option.
7778 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7779 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7780 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'
7782 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'
7784 aix_use_runtimelinking
=no
7786 # Test if we are trying to use run time linking or normal
7787 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7788 # need to do runtime linking.
7789 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7790 for ld_flag
in $LDFLAGS; do
7791 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7792 aix_use_runtimelinking
=yes
7799 exp_sym_flag
='-bexport'
7800 no_entry_flag
='-bnoentry'
7803 # When large executables or shared objects are built, AIX ld can
7804 # have problems creating the table of contents. If linking a library
7805 # or program results in "error TOC overflow" add -mminimal-toc to
7806 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7807 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7811 hardcode_libdir_separator
=':'
7812 link_all_deplibs
=yes
7814 if test "$GCC" = yes; then
7815 case $host_os in aix4.
[012]|aix4.
[012].
*)
7816 # We only want to do this on AIX 4.2 and lower, the check
7817 # below for broken collect2 doesn't work under 4.3+
7818 collect2name
=`${CC} -print-prog-name=collect2`
7819 if test -f "$collect2name" && \
7820 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7822 # We have reworked collect2
7825 # We have old collect2
7826 hardcode_direct
=unsupported
7827 # It fails to find uninstalled libraries when the uninstalled
7828 # path is not listed in the libpath. Setting hardcode_minus_L
7829 # to unsupported forces relinking
7830 hardcode_minus_L
=yes
7831 hardcode_libdir_flag_spec
='-L$libdir'
7832 hardcode_libdir_separator
=
7836 shared_flag
='-shared'
7837 if test "$aix_use_runtimelinking" = yes; then
7838 shared_flag
="$shared_flag "'${wl}-G'
7842 if test "$host_cpu" = ia64
; then
7843 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7844 # chokes on -Wl,-G. The following line is correct:
7847 if test "$aix_use_runtimelinking" = yes; then
7848 shared_flag
='${wl}-G'
7850 shared_flag
='${wl}-bM:SRE'
7855 # It seems that -bexpall does not export symbols beginning with
7856 # underscore (_), so it is better to generate a list of symbols to export.
7857 always_export_symbols
=yes
7858 if test "$aix_use_runtimelinking" = yes; then
7859 # Warning - without using the other runtime loading flags (-brtl),
7860 # -berok will link without error, but may produce a broken library.
7861 allow_undefined_flag
='-berok'
7862 # Determine the default libpath from the value encoded in an empty executable.
7863 cat >conftest.
$ac_ext <<_ACEOF
7866 cat confdefs.h
>>conftest.
$ac_ext
7867 cat >>conftest.
$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7878 rm -f conftest.
$ac_objext conftest
$ac_exeext
7879 if { (ac_try
="$ac_link"
7881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_link") 2>conftest.er1
7887 grep -v '^ *+' conftest.er1 >conftest.err
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest$ac_exeext &&
7895 $as_test_x conftest$ac_exeext; then
7897 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7899 # Check for a 64-bit object if we didn't find anything.
7900 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; }
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7910 conftest$ac_exeext conftest.$ac_ext
7911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7913 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7914 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"
7916 if test "$host_cpu" = ia64; then
7917 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7918 allow_undefined_flag="-z nodefs"
7919 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"
7921 # Determine the default libpath from the value encoded in an empty executable.
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (ac_try="$ac_link"
7940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7941 *) ac_try_echo
=$ac_try;;
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_link") 2>conftest.er1
7946 grep -v '^ *+' conftest.er1
>conftest.err
7948 cat conftest.err
>&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } && {
7951 test -z "$ac_c_werror_flag" ||
7952 test ! -s conftest.err
7953 } && test -s conftest
$ac_exeext &&
7954 $as_test_x conftest
$ac_exeext; then
7956 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7958 # Check for a 64-bit object if we didn't find anything.
7959 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; }
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.
$ac_ext >&5
7968 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7969 conftest
$ac_exeext conftest.
$ac_ext
7970 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7972 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7973 # Warning - without using the other run time loading flags,
7974 # -berok will link without error, but may produce a broken library.
7975 no_undefined_flag
=' ${wl}-bernotok'
7976 allow_undefined_flag
=' ${wl}-berok'
7977 # Exported symbols can be pulled into shared objects from archives
7978 whole_archive_flag_spec
='$convenience'
7979 archive_cmds_need_lc
=yes
7980 # This is similar to how AIX traditionally builds its shared libraries.
7981 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'
7987 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)'
7988 hardcode_libdir_flag_spec
='-L$libdir'
7989 hardcode_minus_L
=yes
7990 # see comment about different semantics on the GNU ld section
7995 export_dynamic_flag_spec
=-rdynamic
7998 cygwin
* | mingw
* | pw32
*)
7999 # When not using gcc, we currently assume that we are using
8000 # Microsoft Visual C++.
8001 # hardcode_libdir_flag_spec is actually meaningless, as there is
8002 # no search path for DLLs.
8003 hardcode_libdir_flag_spec
=' '
8004 allow_undefined_flag
=unsupported
8005 # Tell ltmain to make .lib files, not .a files.
8007 # Tell ltmain to make .dll files, not .so files.
8009 # FIXME: Setting linknames here is a bad hack.
8010 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8011 # The linker will automatically build a .lib file if we build a DLL.
8012 old_archive_From_new_cmds
='true'
8013 # FIXME: Should let the user specify the lib program.
8014 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
8015 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8016 enable_shared_with_static_runtimes
=yes
8019 darwin
* | rhapsody
*)
8021 rhapsody
* | darwin1.
[012])
8022 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8025 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8026 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8028 case ${MACOSX_DEPLOYMENT_TARGET} in
8030 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8033 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8039 archive_cmds_need_lc
=no
8041 hardcode_automatic
=yes
8042 hardcode_shlibpath_var
=unsupported
8043 whole_archive_flag_spec
=''
8044 link_all_deplibs
=yes
8045 if test "$GCC" = yes ; then
8046 output_verbose_link_cmd
='echo'
8047 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8048 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8049 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8050 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}'
8051 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}'
8053 case $cc_basename in
8055 output_verbose_link_cmd
='echo'
8056 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8057 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8058 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8059 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}'
8060 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}'
8070 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8071 hardcode_libdir_flag_spec
='-L$libdir'
8072 hardcode_shlibpath_var
=no
8079 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8080 # support. Future versions do this automatically, but an explicit c++rt0.o
8081 # does not break anything, and helps significantly (at the cost of a little
8084 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8085 hardcode_libdir_flag_spec
='-R$libdir'
8087 hardcode_shlibpath_var
=no
8090 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8092 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8094 hardcode_minus_L
=yes
8095 hardcode_shlibpath_var
=no
8098 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8099 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
8100 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8101 hardcode_libdir_flag_spec
='-R$libdir'
8103 hardcode_shlibpath_var
=no
8107 if test "$GCC" = yes; then
8108 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'
8110 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'
8112 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8113 hardcode_libdir_separator
=:
8116 # hardcode_minus_L: Not really in the search PATH,
8117 # but as the default location of the library.
8118 hardcode_minus_L
=yes
8119 export_dynamic_flag_spec
='${wl}-E'
8123 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8124 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8126 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8128 if test "$with_gnu_ld" = no
; then
8129 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8130 hardcode_libdir_separator
=:
8133 export_dynamic_flag_spec
='${wl}-E'
8135 # hardcode_minus_L: Not really in the search PATH,
8136 # but as the default location of the library.
8137 hardcode_minus_L
=yes
8142 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8145 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8148 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8151 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8157 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8160 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8163 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8167 if test "$with_gnu_ld" = no
; then
8168 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8169 hardcode_libdir_separator
=:
8173 hardcode_libdir_flag_spec_ld
='+b $libdir'
8175 hardcode_shlibpath_var
=no
8179 export_dynamic_flag_spec
='${wl}-E'
8181 # hardcode_minus_L: Not really in the search PATH,
8182 # but as the default location of the library.
8183 hardcode_minus_L
=yes
8189 irix5
* | irix6
* | nonstopux
*)
8190 if test "$GCC" = yes; then
8191 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'
8193 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'
8194 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8196 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8197 hardcode_libdir_separator
=:
8198 link_all_deplibs
=yes
8202 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8203 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8205 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8207 hardcode_libdir_flag_spec
='-R$libdir'
8209 hardcode_shlibpath_var
=no
8213 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8215 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8216 hardcode_libdir_separator
=:
8217 hardcode_shlibpath_var
=no
8222 hardcode_shlibpath_var
=no
8223 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8224 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8225 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8226 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8227 export_dynamic_flag_spec
='${wl}-E'
8230 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8231 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8232 hardcode_libdir_flag_spec
='-R$libdir'
8235 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8236 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8243 hardcode_libdir_flag_spec
='-L$libdir'
8244 hardcode_minus_L
=yes
8245 allow_undefined_flag
=unsupported
8246 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'
8247 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8251 if test "$GCC" = yes; then
8252 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8253 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'
8255 allow_undefined_flag
=' -expect_unresolved \*'
8256 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'
8258 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8259 hardcode_libdir_separator
=:
8262 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8263 if test "$GCC" = yes; then
8264 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8265 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'
8266 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8268 allow_undefined_flag
=' -expect_unresolved \*'
8269 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'
8270 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8271 $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'
8273 # Both c and cxx compiler support -rpath directly
8274 hardcode_libdir_flag_spec
='-rpath $libdir'
8276 hardcode_libdir_separator
=:
8280 no_undefined_flag
=' -z text'
8281 if test "$GCC" = yes; then
8283 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8284 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8285 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8288 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8289 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8290 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8292 hardcode_libdir_flag_spec
='-R$libdir'
8293 hardcode_shlibpath_var
=no
8295 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8297 # The compiler driver will combine linker options so we
8298 # cannot just pass the convience library names through
8299 # without $wl, iff we do not link with $LD.
8300 # Luckily, gcc supports the same syntax we need for Sun Studio.
8301 # Supported since Solaris 2.6 (maybe 2.5.1?)
8304 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
8306 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' ;;
8309 link_all_deplibs
=yes
8313 if test "x$host_vendor" = xsequent
; then
8314 # Use $CC to link under sequent, because it throws in some extra .o
8315 # files that make .init and .fini sections work.
8316 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8318 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8320 hardcode_libdir_flag_spec
='-L$libdir'
8322 hardcode_minus_L
=yes
8323 hardcode_shlibpath_var
=no
8327 case $host_vendor in
8329 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8330 hardcode_direct
=yes # is this really true???
8333 ## LD is ld it makes a PLAMLIB
8334 ## CC just makes a GrossModule.
8335 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8336 reload_cmds
='$CC -r -o $output$reload_objs'
8340 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8341 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8344 runpath_var
='LD_RUN_PATH'
8345 hardcode_shlibpath_var
=no
8349 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8350 hardcode_shlibpath_var
=no
8351 export_dynamic_flag_spec
='-Bexport'
8355 if test -d /usr
/nec
; then
8356 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357 hardcode_shlibpath_var
=no
8358 runpath_var
=LD_RUN_PATH
8359 hardcode_runpath_var
=yes
8364 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
8365 no_undefined_flag
='${wl}-z,text'
8366 archive_cmds_need_lc
=no
8367 hardcode_shlibpath_var
=no
8368 runpath_var
='LD_RUN_PATH'
8370 if test "$GCC" = yes; then
8371 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8372 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8374 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8375 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8379 sysv5
* | sco3.2v5
* | sco5v6
*)
8380 # Note: We can NOT use -z defs as we might desire, because we do not
8381 # link with -lc, and that would cause any symbols used from libc to
8382 # always be unresolved, which means just about no library would
8383 # ever link correctly. If we're not using GNU ld we use -z text
8384 # though, which does catch some bad symbols but isn't as heavy-handed
8386 no_undefined_flag
='${wl}-z,text'
8387 allow_undefined_flag
='${wl}-z,nodefs'
8388 archive_cmds_need_lc
=no
8389 hardcode_shlibpath_var
=no
8390 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8391 hardcode_libdir_separator
=':'
8392 link_all_deplibs
=yes
8393 export_dynamic_flag_spec
='${wl}-Bexport'
8394 runpath_var
='LD_RUN_PATH'
8396 if test "$GCC" = yes; then
8397 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8400 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8401 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8406 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8407 hardcode_libdir_flag_spec
='-L$libdir'
8408 hardcode_shlibpath_var
=no
8417 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8418 echo "${ECHO_T}$ld_shlibs" >&6; }
8419 test "$ld_shlibs" = no
&& can_build_shared
=no
8422 # Do we need to explicitly link libc?
8424 case "x$archive_cmds_need_lc" in
8426 # Assume -lc should be added
8427 archive_cmds_need_lc
=yes
8429 if test "$enable_shared" = yes && test "$GCC" = yes; then
8430 case $archive_cmds in
8432 # FIXME: we may have to deal with multi-command sequences.
8435 # Test whether the compiler implicitly links with -lc since on some
8436 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8437 # to ld, don't add -lc before -lgcc.
8438 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8439 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8441 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } 2>conftest.err
; then
8450 libobjs
=conftest.
$ac_objext
8452 wl
=$lt_prog_compiler_wl
8453 pic_flag
=$lt_prog_compiler_pic
8459 lt_save_allow_undefined_flag
=$allow_undefined_flag
8460 allow_undefined_flag
=
8461 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8462 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }
8467 archive_cmds_need_lc
=no
8469 archive_cmds_need_lc
=yes
8471 allow_undefined_flag
=$lt_save_allow_undefined_flag
8473 cat conftest.err
1>&5
8476 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8477 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8484 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8487 libname_spec
='lib$name'
8495 shlibpath_overrides_runpath
=unknown
8497 dynamic_linker
="$host_os ld.so"
8498 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8499 if test "$GCC" = yes; then
8500 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8501 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8502 # if the path contains ";" then we assume it to be the separator
8503 # otherwise default to the standard path separator (i.e. ":") - it is
8504 # assumed that no part of a normal pathname contains ";" but that should
8505 # okay in the real world where ";" in dirpaths is itself problematic.
8506 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8508 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8511 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8513 need_lib_prefix
=unknown
8514 hardcode_into_libs
=no
8516 # when you set need_version to no, make sure it does not cause -set_version
8517 # flags to be left without arguments
8518 need_version
=unknown
8523 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8524 shlibpath_var
=LIBPATH
8526 # AIX 3 has no versioning support, so we append a major version to the name.
8527 soname_spec
='${libname}${release}${shared_ext}$major'
8534 hardcode_into_libs
=yes
8535 if test "$host_cpu" = ia64
; then
8536 # AIX 5 supports IA64
8537 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8538 shlibpath_var
=LD_LIBRARY_PATH
8540 # With GCC up to 2.95.x, collect2 would create an import file
8541 # for dependence libraries. The import file would start with
8542 # the line `#! .'. This would cause the generated library to
8543 # depend on `.', always an invalid library. This was fixed in
8544 # development snapshots of GCC prior to 3.0.
8546 aix4 | aix4.
[01] | aix4.
[01].
*)
8547 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8549 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8556 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8557 # soname into executable. Probably we can add versioning support to
8558 # collect2, so additional links can be useful in future.
8559 if test "$aix_use_runtimelinking" = yes; then
8560 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8561 # instead of lib<name>.a to let people know that these are not
8562 # typical AIX shared libraries.
8563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8565 # We preserve .a as extension for shared libraries through AIX4.2
8566 # and later when we are not doing run time linking.
8567 library_names_spec
='${libname}${release}.a $libname.a'
8568 soname_spec
='${libname}${release}${shared_ext}$major'
8570 shlibpath_var
=LIBPATH
8575 library_names_spec
='$libname.ixlibrary $libname.a'
8576 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8577 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'
8581 library_names_spec
='${libname}${shared_ext}'
8582 dynamic_linker
="$host_os ld.so"
8583 shlibpath_var
=LIBRARY_PATH
8589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8590 soname_spec
='${libname}${release}${shared_ext}$major'
8591 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8592 shlibpath_var
=LD_LIBRARY_PATH
8593 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8594 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8595 # the default ld.so.conf also contains /usr/contrib/lib and
8596 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8597 # libtool to hard-code these into programs
8600 cygwin
* | mingw
* | pw32
*)
8601 version_type
=windows
8606 case $GCC,$host_os in
8607 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8608 library_names_spec
='$libname.dll.a'
8609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8610 postinstall_cmds
='base_file=`basename \${file}`~
8611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8612 dldir=$destdir/`dirname \$dlpath`~
8613 test -d \$dldir || mkdir -p \$dldir~
8614 $install_prog $dir/$dlname \$dldir/$dlname~
8615 chmod a+x \$dldir/$dlname'
8616 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8617 dlpath=$dir/\$dldll~
8619 shlibpath_overrides_runpath
=yes
8623 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8624 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8625 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8628 # MinGW DLLs use traditional 'lib' prefix
8629 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8630 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8631 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8632 # It is most probably a Windows format PATH printed by
8633 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8634 # path with ; separators, and with drive letters. We can handle the
8635 # drive letters (cygwin fileutils understands them), so leave them,
8636 # especially as we might pass files found there to a mingw objdump,
8637 # which wouldn't understand a cygwinified path. Ahh.
8638 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8640 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8644 # pw32 DLLs use 'pw' prefix rather than 'lib'
8645 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8651 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8654 dynamic_linker
='Win32 ld.exe'
8655 # FIXME: first we should search . and the directory the executable is in
8659 darwin
* | rhapsody
*)
8660 dynamic_linker
="$host_os dyld"
8664 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8665 soname_spec
='${libname}${release}${major}$shared_ext'
8666 shlibpath_overrides_runpath
=yes
8667 shlibpath_var
=DYLD_LIBRARY_PATH
8668 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8669 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8670 if test "$GCC" = yes; then
8671 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"`
8673 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8675 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8683 soname_spec
='${libname}${release}${shared_ext}$major'
8684 shlibpath_var
=LD_LIBRARY_PATH
8695 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8696 soname_spec
='${libname}${release}${shared_ext}$major'
8697 shlibpath_var
=LD_LIBRARY_PATH
8698 shlibpath_overrides_runpath
=no
8699 hardcode_into_libs
=yes
8700 dynamic_linker
='GNU ld.so'
8703 freebsd
* | dragonfly
*)
8704 # DragonFly does not have aout. When/if they implement a new
8705 # versioning mechanism, adjust this.
8706 if test -x /usr
/bin
/objformat
; then
8707 objformat
=`/usr/bin/objformat`
8710 freebsd
[123]*) objformat
=aout
;;
8714 version_type
=freebsd-
$objformat
8715 case $version_type in
8717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8722 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8726 shlibpath_var
=LD_LIBRARY_PATH
8729 shlibpath_overrides_runpath
=yes
8731 freebsd3.
[01]* | freebsdelf3.
[01]*)
8732 shlibpath_overrides_runpath
=yes
8733 hardcode_into_libs
=yes
8735 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8736 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8737 shlibpath_overrides_runpath
=no
8738 hardcode_into_libs
=yes
8740 freebsd
*) # from 4.6 on
8741 shlibpath_overrides_runpath
=yes
8742 hardcode_into_libs
=yes
8751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8752 soname_spec
='${libname}${release}${shared_ext}$major'
8753 shlibpath_var
=LD_LIBRARY_PATH
8754 hardcode_into_libs
=yes
8757 hpux9
* | hpux10
* | hpux11
*)
8758 # Give a soname corresponding to the major version so that dld.sl refuses to
8759 # link against other versions.
8766 hardcode_into_libs
=yes
8767 dynamic_linker
="$host_os dld.so"
8768 shlibpath_var
=LD_LIBRARY_PATH
8769 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8771 soname_spec
='${libname}${release}${shared_ext}$major'
8772 if test "X$HPUX_IA64_MODE" = X32
; then
8773 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8775 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8777 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8781 hardcode_into_libs
=yes
8782 dynamic_linker
="$host_os dld.sl"
8783 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8784 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8785 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786 soname_spec
='${libname}${release}${shared_ext}$major'
8787 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8788 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8792 dynamic_linker
="$host_os dld.sl"
8793 shlibpath_var
=SHLIB_PATH
8794 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8796 soname_spec
='${libname}${release}${shared_ext}$major'
8799 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8800 postinstall_cmds
='chmod 555 $lib'
8807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8808 soname_spec
='${libname}${release}${shared_ext}$major'
8809 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8810 shlibpath_var
=LD_LIBRARY_PATH
8811 shlibpath_overrides_runpath
=no
8812 hardcode_into_libs
=yes
8815 irix5
* | irix6
* | nonstopux
*)
8817 nonstopux
*) version_type
=nonstopux
;;
8819 if test "$lt_cv_prog_gnu_ld" = yes; then
8827 soname_spec
='${libname}${release}${shared_ext}$major'
8828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8830 irix5
* | nonstopux
*)
8834 case $LD in # libtool.m4 will add one of these switches to LD
8835 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8836 libsuff
= shlibsuff
= libmagic
=32-bit;;
8837 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8838 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8839 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8840 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8841 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8845 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8846 shlibpath_overrides_runpath
=no
8847 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8848 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8849 hardcode_into_libs
=yes
8852 # No shared lib support for Linux oldld, aout, or coff.
8853 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8857 # This must be Linux ELF.
8862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863 soname_spec
='${libname}${release}${shared_ext}$major'
8864 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8865 shlibpath_var
=LD_LIBRARY_PATH
8866 shlibpath_overrides_runpath
=no
8867 # This implies no fast_install, which is unacceptable.
8868 # Some rework will be needed to allow for fast_install
8869 # before this can be enabled.
8870 hardcode_into_libs
=yes
8872 # find out which ABI we are using
8875 x86_64
*|s390x
*|powerpc64
*)
8876 echo '#line 8876 "configure"' > conftest.
$ac_ext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; then
8882 case `/usr/bin/file conftest.$ac_objext` in
8885 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8893 # Append ld.so.conf contents to the search path
8894 if test -f /etc
/ld.so.conf
; then
8895 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/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8896 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8899 # We used to test for /lib/ld.so.1 and disable shared libraries on
8900 # powerpc, because MkLinux only supported shared libraries with the
8901 # GNU dynamic linker. Since this was broken with cross compilers,
8902 # most powerpc-linux boxes support dynamic linking these days and
8903 # people can always --disable-shared, the test was removed, and we
8904 # assume the GNU/Linux dynamic linker is in use.
8905 dynamic_linker
='GNU/Linux ld.so'
8912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8913 soname_spec
='${libname}${release}${shared_ext}$major'
8914 shlibpath_var
=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath
=no
8916 hardcode_into_libs
=yes
8917 dynamic_linker
='GNU ld.so'
8924 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8926 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8927 dynamic_linker
='NetBSD (a.out) ld.so'
8929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8930 soname_spec
='${libname}${release}${shared_ext}$major'
8931 dynamic_linker
='NetBSD ld.elf_so'
8933 shlibpath_var
=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath
=yes
8935 hardcode_into_libs
=yes
8940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941 shlibpath_var
=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath
=yes
8949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec
='${libname}${release}${shared_ext}$major'
8951 shlibpath_var
=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath
=yes
8957 sys_lib_dlsearch_path_spec
="/usr/lib"
8959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8961 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
8962 *) need_version
=no
;;
8964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8965 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8966 shlibpath_var
=LD_LIBRARY_PATH
8967 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8969 openbsd2.
[89] | openbsd2.
[89].
*)
8970 shlibpath_overrides_runpath
=no
8973 shlibpath_overrides_runpath
=yes
8977 shlibpath_overrides_runpath
=yes
8982 libname_spec
='$name'
8985 library_names_spec
='$libname${shared_ext} $libname.a'
8986 dynamic_linker
='OS/2 ld.exe'
8987 shlibpath_var
=LIBPATH
8990 osf3
* | osf4
* | osf5
*)
8994 soname_spec
='${libname}${release}${shared_ext}$major'
8995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 shlibpath_var
=LD_LIBRARY_PATH
8997 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8998 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec
='${libname}${release}${shared_ext}$major'
9007 shlibpath_var
=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath
=yes
9009 hardcode_into_libs
=yes
9010 # ldd complains unless libraries are executable
9011 postinstall_cmds
='chmod +x $lib'
9016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9018 shlibpath_var
=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath
=yes
9020 if test "$with_gnu_ld" = yes; then
9028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec
='${libname}${release}${shared_ext}$major'
9030 shlibpath_var
=LD_LIBRARY_PATH
9031 case $host_vendor in
9033 shlibpath_overrides_runpath
=no
9035 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9036 runpath_var
=LD_RUN_PATH
9044 shlibpath_overrides_runpath
=no
9045 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9051 if test -d /usr
/nec
;then
9053 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9054 soname_spec
='$libname${shared_ext}.$major'
9055 shlibpath_var
=LD_LIBRARY_PATH
9059 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9060 version_type
=freebsd-elf
9063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 soname_spec
='${libname}${release}${shared_ext}$major'
9065 shlibpath_var
=LD_LIBRARY_PATH
9066 hardcode_into_libs
=yes
9067 if test "$with_gnu_ld" = yes; then
9068 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9069 shlibpath_overrides_runpath
=no
9071 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9072 shlibpath_overrides_runpath
=yes
9075 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9079 sys_lib_dlsearch_path_spec
='/usr/lib'
9084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec
='${libname}${release}${shared_ext}$major'
9086 shlibpath_var
=LD_LIBRARY_PATH
9093 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9094 echo "${ECHO_T}$dynamic_linker" >&6; }
9095 test "$dynamic_linker" = no
&& can_build_shared
=no
9097 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9098 if test "$GCC" = yes; then
9099 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9102 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9103 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9105 if test -n "$hardcode_libdir_flag_spec" || \
9106 test -n "$runpath_var" || \
9107 test "X$hardcode_automatic" = "Xyes" ; then
9109 # We can hardcode non-existant directories.
9110 if test "$hardcode_direct" != no
&&
9111 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9112 # have to relink, otherwise we might link with an installed library
9113 # when we should be linking with a yet-to-be-installed one
9114 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9115 test "$hardcode_minus_L" != no
; then
9116 # Linking always hardcodes the temporary library directory.
9117 hardcode_action
=relink
9119 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9120 hardcode_action
=immediate
9123 # We cannot hardcode anything, or else we can only hardcode existing
9125 hardcode_action
=unsupported
9127 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9128 echo "${ECHO_T}$hardcode_action" >&6; }
9130 if test "$hardcode_action" = relink
; then
9131 # Fast installation is not supported
9132 enable_fast_install
=no
9133 elif test "$shlibpath_overrides_runpath" = yes ||
9134 test "$enable_shared" = no
; then
9135 # Fast installation is not necessary
9136 enable_fast_install
=needless
9141 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9142 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9143 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9144 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9145 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9146 { echo "$as_me:$LINENO: result: yes" >&5
9147 echo "${ECHO_T}yes" >&6; }
9149 # FIXME - insert some real tests, host_os isn't really good enough
9152 if test -n "$STRIP" ; then
9153 striplib
="$STRIP -x"
9154 { echo "$as_me:$LINENO: result: yes" >&5
9155 echo "${ECHO_T}yes" >&6; }
9157 { echo "$as_me:$LINENO: result: no" >&5
9158 echo "${ECHO_T}no" >&6; }
9162 { echo "$as_me:$LINENO: result: no" >&5
9163 echo "${ECHO_T}no" >&6; }
9168 if test "x$enable_dlopen" != xyes
; then
9169 enable_dlopen
=unknown
9170 enable_dlopen_self
=unknown
9171 enable_dlopen_self_static
=unknown
9178 lt_cv_dlopen
="load_add_on"
9180 lt_cv_dlopen_self
=yes
9184 lt_cv_dlopen
="LoadLibrary"
9189 lt_cv_dlopen
="dlopen"
9194 # if libdl is installed we need to link against it
9195 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9196 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 ac_check_lib_save_LIBS
=$LIBS
9202 cat >conftest.
$ac_ext <<_ACEOF
9205 cat confdefs.h
>>conftest.
$ac_ext
9206 cat >>conftest.
$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9209 /* Override any GCC internal prototype to avoid an error.
9210 Use char because int might match the return type of a GCC
9211 builtin and then its argument prototype would still apply. */
9224 rm -f conftest.
$ac_objext conftest
$ac_exeext
9225 if { (ac_try
="$ac_link"
9227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_link") 2>conftest.er1
9233 grep -v '^ *+' conftest.er1 >conftest.err
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && {
9238 test -z "$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 } && test -s conftest$ac_exeext &&
9241 $as_test_x conftest$ac_exeext; then
9242 ac_cv_lib_dl_dlopen=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9247 ac_cv_lib_dl_dlopen=no
9250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9251 conftest$ac_exeext conftest.$ac_ext
9252 LIBS=$ac_check_lib_save_LIBS
9254 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9255 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9256 if test $ac_cv_lib_dl_dlopen = yes; then
9257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9262 lt_cv_dlopen_self=yes
9269 { echo "$as_me:$LINENO: checking for shl_load" >&5
9270 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9271 if test "${ac_cv_func_shl_load+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 cat >conftest.$ac_ext <<_ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9282 #define shl_load innocuous_shl_load
9284 /* System header to define __stub macros and hopefully few prototypes,
9285 which can conflict with char shl_load (); below.
9286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9287 <limits.h> exists even on freestanding compilers. */
9290 # include <limits.h>
9292 # include <assert.h>
9297 /* Override any GCC internal prototype to avoid an error.
9298 Use char because int might match the return type of a GCC
9299 builtin and then its argument prototype would still apply. */
9304 /* The GNU C library defines this for functions which it implements
9305 to always fail with ENOSYS. Some functions are actually named
9306 something starting with __ and the normal name is an alias. */
9307 #if defined __stub_shl_load || defined __stub___shl_load
9319 rm -f conftest.$ac_objext conftest$ac_exeext
9320 if { (ac_try="$ac_link"
9322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9323 *) ac_try_echo
=$ac_try;;
9325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9326 (eval "$ac_link") 2>conftest.er1
9328 grep -v '^ *+' conftest.er1
>conftest.err
9330 cat conftest.err
>&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } && {
9333 test -z "$ac_c_werror_flag" ||
9334 test ! -s conftest.err
9335 } && test -s conftest
$ac_exeext &&
9336 $as_test_x conftest
$ac_exeext; then
9337 ac_cv_func_shl_load
=yes
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.
$ac_ext >&5
9342 ac_cv_func_shl_load
=no
9345 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9346 conftest
$ac_exeext conftest.
$ac_ext
9348 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9349 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9350 if test $ac_cv_func_shl_load = yes; then
9351 lt_cv_dlopen
="shl_load"
9353 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9354 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9355 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 ac_check_lib_save_LIBS
=$LIBS
9360 cat >conftest.
$ac_ext <<_ACEOF
9363 cat confdefs.h
>>conftest.
$ac_ext
9364 cat >>conftest.
$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9367 /* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9382 rm -f conftest.
$ac_objext conftest
$ac_exeext
9383 if { (ac_try
="$ac_link"
9385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9386 *) ac_try_echo=$ac_try;;
9388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389 (eval "$ac_link") 2>conftest.er1
9391 grep -v '^ *+' conftest.er1 >conftest.err
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } && {
9396 test -z "$ac_c_werror_flag" ||
9397 test ! -s conftest.err
9398 } && test -s conftest$ac_exeext &&
9399 $as_test_x conftest$ac_exeext; then
9400 ac_cv_lib_dld_shl_load=yes
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_cv_lib_dld_shl_load=no
9408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9409 conftest$ac_exeext conftest.$ac_ext
9410 LIBS=$ac_check_lib_save_LIBS
9412 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9413 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9414 if test $ac_cv_lib_dld_shl_load = yes; then
9415 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9417 { echo "$as_me:$LINENO: checking for dlopen" >&5
9418 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9419 if test "${ac_cv_func_dlopen+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 cat >conftest.$ac_ext <<_ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9430 #define dlopen innocuous_dlopen
9432 /* System header to define __stub macros and hopefully few prototypes,
9433 which can conflict with char dlopen (); below.
9434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9435 <limits.h> exists even on freestanding compilers. */
9438 # include <limits.h>
9440 # include <assert.h>
9445 /* Override any GCC internal prototype to avoid an error.
9446 Use char because int might match the return type of a GCC
9447 builtin and then its argument prototype would still apply. */
9452 /* The GNU C library defines this for functions which it implements
9453 to always fail with ENOSYS. Some functions are actually named
9454 something starting with __ and the normal name is an alias. */
9455 #if defined __stub_dlopen || defined __stub___dlopen
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (ac_try="$ac_link"
9470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9471 *) ac_try_echo
=$ac_try;;
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_link") 2>conftest.er1
9476 grep -v '^ *+' conftest.er1
>conftest.err
9478 cat conftest.err
>&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && {
9481 test -z "$ac_c_werror_flag" ||
9482 test ! -s conftest.err
9483 } && test -s conftest
$ac_exeext &&
9484 $as_test_x conftest
$ac_exeext; then
9485 ac_cv_func_dlopen
=yes
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.
$ac_ext >&5
9490 ac_cv_func_dlopen
=no
9493 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9494 conftest
$ac_exeext conftest.
$ac_ext
9496 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9497 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9498 if test $ac_cv_func_dlopen = yes; then
9499 lt_cv_dlopen
="dlopen"
9501 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 ac_check_lib_save_LIBS
=$LIBS
9508 cat >conftest.
$ac_ext <<_ACEOF
9511 cat confdefs.h
>>conftest.
$ac_ext
9512 cat >>conftest.
$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9530 rm -f conftest.
$ac_objext conftest
$ac_exeext
9531 if { (ac_try
="$ac_link"
9533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_link") 2>conftest.er1
9539 grep -v '^ *+' conftest.er1 >conftest.err
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest$ac_exeext &&
9547 $as_test_x conftest$ac_exeext; then
9548 ac_cv_lib_dl_dlopen=yes
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_cv_lib_dl_dlopen=no
9556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9557 conftest$ac_exeext conftest.$ac_ext
9558 LIBS=$ac_check_lib_save_LIBS
9560 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9561 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9562 if test $ac_cv_lib_dl_dlopen = yes; then
9563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9565 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9566 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9567 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 ac_check_lib_save_LIBS=$LIBS
9572 cat >conftest.$ac_ext <<_ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (ac_try="$ac_link"
9597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9598 *) ac_try_echo
=$ac_try;;
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_link") 2>conftest.er1
9603 grep -v '^ *+' conftest.er1
>conftest.err
9605 cat conftest.err
>&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest
$ac_exeext &&
9611 $as_test_x conftest
$ac_exeext; then
9612 ac_cv_lib_svld_dlopen
=yes
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.
$ac_ext >&5
9617 ac_cv_lib_svld_dlopen
=no
9620 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9621 conftest
$ac_exeext conftest.
$ac_ext
9622 LIBS
=$ac_check_lib_save_LIBS
9624 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9625 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9626 if test $ac_cv_lib_svld_dlopen = yes; then
9627 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9629 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9630 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9631 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 ac_check_lib_save_LIBS
=$LIBS
9636 cat >conftest.
$ac_ext <<_ACEOF
9639 cat confdefs.h
>>conftest.
$ac_ext
9640 cat >>conftest.
$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9658 rm -f conftest.
$ac_objext conftest
$ac_exeext
9659 if { (ac_try
="$ac_link"
9661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1 >conftest.err
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest$ac_exeext &&
9675 $as_test_x conftest$ac_exeext; then
9676 ac_cv_lib_dld_dld_link=yes
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_cv_lib_dld_dld_link=no
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685 conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9688 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9689 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9690 if test $ac_cv_lib_dld_dld_link = yes; then
9691 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9712 if test "x$lt_cv_dlopen" != xno; then
9718 case $lt_cv_dlopen in
9720 save_CPPFLAGS="$CPPFLAGS"
9721 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9723 save_LDFLAGS="$LDFLAGS"
9724 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9727 LIBS="$lt_cv_dlopen_libs $LIBS"
9729 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9730 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9731 if test "${lt_cv_dlopen_self+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 if test "$cross_compiling" = yes; then :
9735 lt_cv_dlopen_self=cross
9737 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9738 lt_status=$lt_dlunknown
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9740 "configure"
9741 #include "confdefs.h"
9750 # define LT_DLGLOBAL RTLD_GLOBAL
9753 # define LT_DLGLOBAL DL_GLOBAL
9755 # define LT_DLGLOBAL 0
9759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9760 find out it does not work in some platform. */
9761 #ifndef LT_DLLAZY_OR_NOW
9763 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9766 # define LT_DLLAZY_OR_NOW DL_LAZY
9769 # define LT_DLLAZY_OR_NOW RTLD_NOW
9772 # define LT_DLLAZY_OR_NOW DL_NOW
9774 # define LT_DLLAZY_OR_NOW 0
9782 extern "C" void exit (int);
9785 void fnord() { int i=42;}
9788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9789 int status = $lt_dlunknown;
9793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9794 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9795 /* dlclose (self); */
9803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9804 (eval $ac_link) 2>&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9808 (./conftest; exit; ) >&5 2>/dev/null
9811 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9812 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9813 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9816 # compilation failed
9817 lt_cv_dlopen_self=no
9824 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9825 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9827 if test "x$lt_cv_dlopen_self" = xyes; then
9828 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9829 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9830 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9831 if test "${lt_cv_dlopen_self_static+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 if test "$cross_compiling" = yes; then :
9835 lt_cv_dlopen_self_static=cross
9837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9838 lt_status=$lt_dlunknown
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9840 "configure"
9841 #include "confdefs.h"
9850 # define LT_DLGLOBAL RTLD_GLOBAL
9853 # define LT_DLGLOBAL DL_GLOBAL
9855 # define LT_DLGLOBAL 0
9859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9860 find out it does not work in some platform. */
9861 #ifndef LT_DLLAZY_OR_NOW
9863 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9866 # define LT_DLLAZY_OR_NOW DL_LAZY
9869 # define LT_DLLAZY_OR_NOW RTLD_NOW
9872 # define LT_DLLAZY_OR_NOW DL_NOW
9874 # define LT_DLLAZY_OR_NOW 0
9882 extern "C" void exit (int);
9885 void fnord() { int i=42;}
9888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9889 int status = $lt_dlunknown;
9893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9894 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9895 /* dlclose (self); */
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904 (eval $ac_link) 2>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9908 (./conftest; exit; ) >&5 2>/dev/null
9911 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9912 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9913 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9916 # compilation failed
9917 lt_cv_dlopen_self_static=no
9924 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9925 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9928 CPPFLAGS="$save_CPPFLAGS"
9929 LDFLAGS="$save_LDFLAGS"
9934 case $lt_cv_dlopen_self in
9935 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9936 *) enable_dlopen_self=unknown ;;
9939 case $lt_cv_dlopen_self_static in
9940 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9941 *) enable_dlopen_self_static=unknown ;;
9946 # Report which library types will actually be built
9947 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9949 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9950 echo "${ECHO_T}$can_build_shared" >&6; }
9952 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9954 test "$can_build_shared" = "no" && enable_shared=no
9956 # On AIX, shared libraries and static libraries use the same namespace, and
9957 # are all built from PIC.
9960 test "$enable_shared" = yes && enable_static=no
9961 if test -n "$RANLIB"; then
9962 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9963 postinstall_cmds='$RANLIB $lib'
9968 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9969 test "$enable_shared" = yes && enable_static=no
9973 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9974 echo "${ECHO_T}$enable_shared" >&6; }
9976 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9977 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9978 # Make sure either enable_shared or enable_static is yes.
9979 test "$enable_shared" = yes || enable_static=yes
9980 { echo "$as_me:$LINENO: result: $enable_static" >&5
9981 echo "${ECHO_T}$enable_static" >&6; }
9983 # The else clause should only fire when bootstrapping the
9984 # libtool distribution, otherwise you forgot to ship ltmain.sh
9985 # with your package, and you will get complaints that there are
9986 # no rules to generate ltmain.sh.
9987 if test -f "$ltmain"; then
9988 # See if we are running on zsh, and set the options which allow our commands through
9989 # without removal of \ escapes.
9990 if test -n "${ZSH_VERSION+set}" ; then
9991 setopt NO_GLOB_SUBST
9993 # Now quote all the things that may contain metacharacters while being
9994 # careful not to overquote the AC_SUBSTed values. We take copies of the
9995 # variables and quote the copies for generation of the libtool script.
9996 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9998 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9999 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10000 deplibs_check_method reload_flag reload_cmds need_locks \
10001 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10002 lt_cv_sys_global_symbol_to_c_name_address \
10003 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10004 old_postinstall_cmds old_postuninstall_cmds \
10008 lt_prog_compiler_wl \
10009 lt_prog_compiler_pic \
10010 lt_prog_compiler_static \
10011 lt_prog_compiler_no_builtin_flag \
10012 export_dynamic_flag_spec \
10013 thread_safe_flag_spec \
10014 whole_archive_flag_spec \
10015 enable_shared_with_static_runtimes \
10017 old_archive_from_new_cmds \
10022 compiler_lib_search_path \
10024 archive_expsym_cmds \
10026 postuninstall_cmds \
10027 old_archive_from_expsyms_cmds \
10028 allow_undefined_flag \
10029 no_undefined_flag \
10030 export_symbols_cmds \
10031 hardcode_libdir_flag_spec \
10032 hardcode_libdir_flag_spec_ld \
10033 hardcode_libdir_separator \
10034 hardcode_automatic \
10036 module_expsym_cmds \
10037 lt_cv_prog_compiler_c_o \
10039 include_expsyms; do
10042 old_archive_cmds | \
10043 old_archive_from_new_cmds | \
10045 archive_expsym_cmds | \
10047 module_expsym_cmds | \
10048 old_archive_from_expsyms_cmds | \
10049 export_symbols_cmds | \
10050 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10051 postinstall_cmds | postuninstall_cmds | \
10052 old_postinstall_cmds | old_postuninstall_cmds | \
10053 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10054 # Double-quote double-evaled strings.
10055 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10058 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10064 *'\$0 --fallback-echo"')
10065 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10069 cfgfile="${ofile}T"
10070 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10072 { echo "$as_me:$LINENO: creating $ofile" >&5
10073 echo "$as_me: creating $ofile" >&6;}
10075 cat <<__EOF__ >> "$cfgfile"
10078 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10079 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10080 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10082 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10083 # Free Software Foundation, Inc.
10085 # This file is part of GNU Libtool:
10086 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10088 # This program is free software; you can redistribute it and/or modify
10089 # it under the terms of the GNU General Public License as published by
10090 # the Free Software Foundation; either version 2 of the License, or
10091 # (at your option) any later version.
10093 # This program is distributed in the hope that it will be useful, but
10094 # WITHOUT ANY WARRANTY; without even the implied warranty of
10095 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10096 # General Public License for more details.
10098 # You should have received a copy of the GNU General Public License
10099 # along with this program; if not, write to the Free Software
10100 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10102 # As a special exception to the GNU General Public License, if you
10103 # distribute this file as part of a program that contains a
10104 # configuration script generated by Autoconf, you may include it under
10105 # the same distribution terms that you use for the rest of that program.
10107 # A sed program that does not truncate output.
10110 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10111 Xsed="$SED -e 1s/^X//"
10113 # The HP-UX ksh and POSIX shell print the target directory to stdout
10114 # if CDPATH is set.
10115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10117 # The names of the tagged configurations supported by this script.
10120 # ### BEGIN LIBTOOL CONFIG
10122 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10124 # Shell to use when invoking shell scripts.
10127 # Whether or not to build shared libraries.
10128 build_libtool_libs=$enable_shared
10130 # Whether or not to build static libraries.
10131 build_old_libs=$enable_static
10133 # Whether or not to add -lc for building shared libraries.
10134 build_libtool_need_lc=$archive_cmds_need_lc
10136 # Whether or not to disallow shared libs when runtime libs are static
10137 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10139 # Whether or not to optimize for fast installation.
10140 fast_install=$enable_fast_install
10143 host_alias=$host_alias
10147 # The build system.
10148 build_alias=$build_alias
10152 # An echo program that does not interpret backslashes.
10157 AR_FLAGS=$lt_AR_FLAGS
10162 # LTCC compiler flags.
10163 LTCFLAGS=$lt_LTCFLAGS
10165 # A language-specific compiler.
10168 # Is the compiler the GNU C compiler?
10174 # The linker used to build libraries.
10177 # Whether we need hard or soft links.
10180 # A BSD-compatible nm program.
10183 # A symbol stripping program
10186 # Used to examine libraries when file_magic_cmd begins "file"
10187 MAGIC_CMD=$MAGIC_CMD
10189 # Used on cygwin: DLL creation program.
10192 # Used on cygwin: object dumper.
10195 # Used on cygwin: assembler.
10198 # The name of the directory that contains temporary libtool files.
10201 # How to create reloadable object files.
10202 reload_flag=$lt_reload_flag
10203 reload_cmds=$lt_reload_cmds
10205 # How to pass a linker flag through the compiler.
10206 wl=$lt_lt_prog_compiler_wl
10208 # Object file suffix (normally "o").
10209 objext="$ac_objext"
10211 # Old archive suffix (normally "a").
10214 # Shared library suffix (normally ".so").
10215 shrext_cmds='$shrext_cmds'
10217 # Executable file suffix (normally "").
10220 # Additional compiler flags for building library objects.
10221 pic_flag=$lt_lt_prog_compiler_pic
10224 # What is the maximum length of a command?
10225 max_cmd_len=$lt_cv_sys_max_cmd_len
10227 # Does compiler simultaneously support -c and -o options?
10228 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10230 # Must we lock files when doing compilation?
10231 need_locks=$lt_need_locks
10233 # Do we need the lib prefix for modules?
10234 need_lib_prefix=$need_lib_prefix
10236 # Do we need a version for libraries?
10237 need_version=$need_version
10239 # Whether dlopen is supported.
10240 dlopen_support=$enable_dlopen
10242 # Whether dlopen of programs is supported.
10243 dlopen_self=$enable_dlopen_self
10245 # Whether dlopen of statically linked programs is supported.
10246 dlopen_self_static=$enable_dlopen_self_static
10248 # Compiler flag to prevent dynamic linking.
10249 link_static_flag=$lt_lt_prog_compiler_static
10251 # Compiler flag to turn off builtin functions.
10252 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10254 # Compiler flag to allow reflexive dlopens.
10255 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10257 # Compiler flag to generate shared objects directly from archives.
10258 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10260 # Compiler flag to generate thread-safe objects.
10261 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10263 # Library versioning type.
10264 version_type=$version_type
10266 # Format of library name prefix.
10267 libname_spec=$lt_libname_spec
10269 # List of archive names. First name is the real one, the rest are links.
10270 # The last name is the one that the linker finds with -lNAME.
10271 library_names_spec=$lt_library_names_spec
10273 # The coded name of the library, if different from the real name.
10274 soname_spec=$lt_soname_spec
10276 # Commands used to build and install an old-style archive.
10278 old_archive_cmds=$lt_old_archive_cmds
10279 old_postinstall_cmds=$lt_old_postinstall_cmds
10280 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10282 # Create an old-style archive from a shared archive.
10283 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10285 # Create a temporary old-style archive to link instead of a shared archive.
10286 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10288 # Commands used to build and install a shared archive.
10289 archive_cmds=$lt_archive_cmds
10290 archive_expsym_cmds=$lt_archive_expsym_cmds
10291 postinstall_cmds=$lt_postinstall_cmds
10292 postuninstall_cmds=$lt_postuninstall_cmds
10294 # Commands used to build a loadable module (assumed same as above if empty)
10295 module_cmds=$lt_module_cmds
10296 module_expsym_cmds=$lt_module_expsym_cmds
10298 # Commands to strip libraries.
10299 old_striplib=$lt_old_striplib
10300 striplib=$lt_striplib
10302 # Dependencies to place before the objects being linked to create a
10304 predep_objects=$lt_predep_objects
10306 # Dependencies to place after the objects being linked to create a
10308 postdep_objects=$lt_postdep_objects
10310 # Dependencies to place before the objects being linked to create a
10312 predeps=$lt_predeps
10314 # Dependencies to place after the objects being linked to create a
10316 postdeps=$lt_postdeps
10318 # The library search path used internally by the compiler when linking
10319 # a shared library.
10320 compiler_lib_search_path=$lt_compiler_lib_search_path
10322 # Method to check whether dependent libraries are shared objects.
10323 deplibs_check_method=$lt_deplibs_check_method
10325 # Command to use when deplibs_check_method == file_magic.
10326 file_magic_cmd=$lt_file_magic_cmd
10328 # Flag that allows shared libraries with undefined symbols to be built.
10329 allow_undefined_flag=$lt_allow_undefined_flag
10331 # Flag that forces no undefined symbols.
10332 no_undefined_flag=$lt_no_undefined_flag
10334 # Commands used to finish a libtool library installation in a directory.
10335 finish_cmds=$lt_finish_cmds
10337 # Same as above, but a single script fragment to be evaled but not shown.
10338 finish_eval=$lt_finish_eval
10340 # Take the output of nm and produce a listing of raw symbols and C names.
10341 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10343 # Transform the output of nm in a proper C declaration
10344 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10346 # Transform the output of nm in a C name address pair
10347 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10349 # This is the shared library runtime path variable.
10350 runpath_var=$runpath_var
10352 # This is the shared library path variable.
10353 shlibpath_var=$shlibpath_var
10355 # Is shlibpath searched before the hard-coded library search path?
10356 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10358 # How to hardcode a shared library path into an executable.
10359 hardcode_action=$hardcode_action
10361 # Whether we should hardcode library paths into libraries.
10362 hardcode_into_libs=$hardcode_into_libs
10364 # Flag to hardcode \$libdir into a binary during linking.
10365 # This must work even if \$libdir does not exist.
10366 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10368 # If ld is used when linking, flag to hardcode \$libdir into
10369 # a binary during linking. This must work even if \$libdir does
10371 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10373 # Whether we need a single -rpath flag with a separated argument.
10374 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10376 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10377 # resulting binary.
10378 hardcode_direct=$hardcode_direct
10380 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10381 # resulting binary.
10382 hardcode_minus_L=$hardcode_minus_L
10384 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10385 # the resulting binary.
10386 hardcode_shlibpath_var=$hardcode_shlibpath_var
10388 # Set to yes if building a shared library automatically hardcodes DIR into the library
10389 # and all subsequent libraries and executables linked against it.
10390 hardcode_automatic=$hardcode_automatic
10392 # Variables whose values should be saved in libtool wrapper scripts and
10393 # restored at relink time.
10394 variables_saved_for_relink="$variables_saved_for_relink"
10396 # Whether libtool must link a program against all its dependency libraries.
10397 link_all_deplibs=$link_all_deplibs
10399 # Compile-time system search path for libraries
10400 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10402 # Run-time system search path for libraries
10403 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10405 # Fix the shell variable \$srcfile for the compiler.
10406 fix_srcfile_path="$fix_srcfile_path"
10408 # Set to yes if exported symbols are required.
10409 always_export_symbols=$always_export_symbols
10411 # The commands to list exported symbols.
10412 export_symbols_cmds=$lt_export_symbols_cmds
10414 # The commands to extract the exported symbol list from a shared archive.
10415 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10417 # Symbols that should not be listed in the preloaded symbols.
10418 exclude_expsyms=$lt_exclude_expsyms
10420 # Symbols that must always be exported.
10421 include_expsyms=$lt_include_expsyms
10423 # ### END LIBTOOL CONFIG
10430 cat <<\EOF >> "$cfgfile"
10432 # AIX sometimes has problems with the GCC collect2 program. For some
10433 # reason, if we set the COLLECT_NAMES environment variable, the problems
10434 # vanish in a puff of smoke.
10435 if test "X${COLLECT_NAMES+set}" != Xset; then
10437 export COLLECT_NAMES
10443 # We use sed instead of cat because bash on DJGPP gets confused if
10444 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10445 # text mode, it properly converts lines to CR/LF. This bash problem
10446 # is reportedly fixed, but why not run on old versions too?
10447 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10449 mv -f "$cfgfile" "$ofile" || \
10450 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10454 # If there is no Makefile yet, we rely on a make rule to execute
10455 # `config.status
--recheck' to rerun these tests and create the
10456 # libtool script then.
10457 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10458 if test -f "$ltmain_in"; then
10459 test -f Makefile && make "$ltmain"
10465 ac_cpp='$CXXCPP $CPPFLAGS'
10466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10467 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10473 # Check whether --with-tags was given.
10474 if test "${with_tags+set}" = set; then
10475 withval=$with_tags; tagnames="$withval"
10479 if test -f "$ltmain" && test -n "$tagnames"; then
10480 if test ! -f "${ofile}"; then
10481 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10482 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10485 if test -z "$LTCC"; then
10486 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10487 if test -z "$LTCC"; then
10488 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10489 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10491 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10492 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10495 if test -z "$LTCFLAGS"; then
10496 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10499 # Extract list of available tagged configurations in $ofile.
10500 # Note that this assumes the entire list is on one line.
10501 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10504 for tagname in $tagnames; do
10506 # Check whether tagname contains only valid characters
10507 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10509 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10510 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10511 { (exit 1); exit 1; }; }
10515 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10517 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10518 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10519 { (exit 1); exit 1; }; }
10522 # Update the list of available tags.
10523 if test -n "$tagname"; then
10524 echo appending configuration tag \"$tagname\" to $ofile
10528 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10529 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10530 (test "X$CXX" != "Xg++"))) ; then
10532 ac_cpp='$CXXCPP $CPPFLAGS'
10533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10540 archive_cmds_need_lc_CXX=no
10541 allow_undefined_flag_CXX=
10542 always_export_symbols_CXX=no
10543 archive_expsym_cmds_CXX=
10544 export_dynamic_flag_spec_CXX=
10545 hardcode_direct_CXX=no
10546 hardcode_libdir_flag_spec_CXX=
10547 hardcode_libdir_flag_spec_ld_CXX=
10548 hardcode_libdir_separator_CXX=
10549 hardcode_minus_L_CXX=no
10550 hardcode_shlibpath_var_CXX=unsupported
10551 hardcode_automatic_CXX=no
10553 module_expsym_cmds_CXX=
10554 link_all_deplibs_CXX=unknown
10555 old_archive_cmds_CXX=$old_archive_cmds
10556 no_undefined_flag_CXX=
10557 whole_archive_flag_spec_CXX=
10558 enable_shared_with_static_runtimes_CXX=no
10560 # Dependencies to place before and after the object being linked:
10561 predep_objects_CXX=
10562 postdep_objects_CXX=
10565 compiler_lib_search_path_CXX=
10567 # Source file extension for C++ test sources.
10570 # Object file extension for compiled C++ test sources.
10574 # Code to be used in simple compile tests
10575 lt_simple_compile_test_code="int some_variable = 0;\n"
10577 # Code to be used in simple link tests
10578 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10580 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10582 # If no C compiler was specified, use CC.
10585 # If no C compiler flags were specified, use CFLAGS.
10586 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10588 # Allow CC to be a program name with arguments.
10592 # save warnings/boilerplate of simple test code
10593 ac_outfile=conftest.$ac_objext
10594 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10596 _lt_compiler_boilerplate=`cat conftest.err
`
10599 ac_outfile=conftest.$ac_objext
10600 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10602 _lt_linker_boilerplate=`cat conftest.err
`
10606 # Allow CC to be a program name with arguments.
10611 lt_save_with_gnu_ld=$with_gnu_ld
10612 lt_save_path_LD=$lt_cv_path_LD
10613 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10614 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10616 $as_unset lt_cv_prog_gnu_ld
10618 if test -n "${lt_cv_path_LDCXX+set}"; then
10619 lt_cv_path_LD=$lt_cv_path_LDCXX
10621 $as_unset lt_cv_path_LD
10623 test -z "${LDCXX+set}" || LD=$LDCXX
10627 for cc_temp in $compiler""; do
10629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10635 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10638 # We don't want -fno-exception wen compiling C++ code, so set the
10639 # no_builtin_flag separately
10640 if test "$GXX" = yes; then
10641 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10643 lt_prog_compiler_no_builtin_flag_CXX=
10646 if test "$GXX" = yes; then
10647 # Set up default GNU C++ configuration
10650 # Check whether --with-gnu-ld was given.
10651 if test "${with_gnu_ld+set}" = set; then
10652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10658 if test "$GCC" = yes; then
10659 # Check if gcc -print-prog-name=ld gives a path.
10660 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10661 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10664 # gcc leaves a trailing carriage return which upsets mingw
10665 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
10667 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
10670 # Accept absolute paths.
10672 re_direlt='/[^/][^/]*/\.\./'
10673 # Canonicalize the pathname of ld
10674 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
10675 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10676 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
10678 test -z "$LD" && LD="$ac_prog"
10681 # If it fails, then pretend we aren't using GCC.
10685 # If it is relative, then search for the first ld in PATH.
10686 with_gnu_ld=unknown
10689 elif test "$with_gnu_ld" = yes; then
10690 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10691 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10693 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10694 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10696 if test "${lt_cv_path_LD+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 if test -z "$LD"; then
10700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10701 for ac_dir in $PATH; do
10703 test -z "$ac_dir" && ac_dir=.
10704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10705 lt_cv_path_LD="$ac_dir/$ac_prog"
10706 # Check to see if the program is GNU ld. I'd rather use --version,
10707 # but apparently some variants of GNU ld only accept -v.
10708 # Break only if it was the GNU/non-GNU ld that we prefer.
10709 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
10710 *GNU* | *'with BFD'*)
10711 test "$with_gnu_ld" != no && break
10714 test "$with_gnu_ld" != yes && break
10721 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10725 LD="$lt_cv_path_LD"
10726 if test -n "$LD"; then
10727 { echo "$as_me:$LINENO: result: $LD" >&5
10728 echo "${ECHO_T}$LD" >&6; }
10730 { echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6; }
10733 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10734 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10735 { (exit 1); exit 1; }; }
10736 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10737 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10738 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10742 case `$LD -v 2>&1 </dev
/null
` in
10743 *GNU* | *'with BFD'*)
10744 lt_cv_prog_gnu_ld=yes
10747 lt_cv_prog_gnu_ld=no
10751 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10752 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10753 with_gnu_ld=$lt_cv_prog_gnu_ld
10757 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10758 # archiving commands below assume that GNU ld is being used.
10759 if test "$with_gnu_ld" = yes; then
10760 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10761 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'
10763 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10764 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10766 # If archive_cmds runs LD, not CC, wlarc should be empty
10767 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10768 # investigate it a little bit more. (MM)
10771 # ancient GNU ld didn't support --whole-archive et. al.
10772 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
10773 grep 'no-whole-archive' > /dev/null; then
10774 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10776 whole_archive_flag_spec_CXX=
10782 # A generic and very simple default shared library creation
10783 # command for GNU C++ for the case where it uses the native
10784 # linker, instead of GNU ld. If possible, this setting should
10785 # overridden to take advantage of the native linker features on
10786 # the platform it is being used on.
10787 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10790 # Commands to make compiler produce verbose output that lists
10791 # what "hidden" libraries, object files and flags are used when
10792 # linking a shared library.
10793 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10801 # PORTME: fill in a description of your system's C++ link characteristics
10802 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10803 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10807 # FIXME: insert proper C++ library support
10811 if test "$host_cpu" = ia64; then
10812 # On IA64, the linker does run time linking by default, so we don't
10813 # have to do anything special.
10814 aix_use_runtimelinking=no
10815 exp_sym_flag='-Bexport'
10818 aix_use_runtimelinking=no
10820 # Test if we are trying to use run time linking or normal
10821 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10822 # need to do runtime linking.
10823 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10824 for ld_flag in $LDFLAGS; do
10827 aix_use_runtimelinking=yes
10835 exp_sym_flag='-bexport'
10836 no_entry_flag='-bnoentry'
10839 # When large executables or shared objects are built, AIX ld can
10840 # have problems creating the table of contents. If linking a library
10841 # or program results in "error TOC overflow" add -mminimal-toc to
10842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10845 archive_cmds_CXX=''
10846 hardcode_direct_CXX=yes
10847 hardcode_libdir_separator_CXX=':'
10848 link_all_deplibs_CXX=yes
10850 if test "$GXX" = yes; then
10851 case $host_os in aix4.[012]|aix4.[012].*)
10852 # We only want to do this on AIX 4.2 and lower, the check
10853 # below for broken collect2 doesn't work under 4.3+
10854 collect2name=`${CC} -print-prog-name=collect2
`
10855 if test -f "$collect2name" && \
10856 strings "$collect2name" | grep resolve_lib_name >/dev/null
10858 # We have reworked collect2
10859 hardcode_direct_CXX=yes
10861 # We have old collect2
10862 hardcode_direct_CXX=unsupported
10863 # It fails to find uninstalled libraries when the uninstalled
10864 # path is not listed in the libpath. Setting hardcode_minus_L
10865 # to unsupported forces relinking
10866 hardcode_minus_L_CXX=yes
10867 hardcode_libdir_flag_spec_CXX='-L$libdir'
10868 hardcode_libdir_separator_CXX=
10872 shared_flag='-shared'
10873 if test "$aix_use_runtimelinking" = yes; then
10874 shared_flag="$shared_flag "'${wl}-G'
10878 if test "$host_cpu" = ia64; then
10879 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10880 # chokes on -Wl,-G. The following line is correct:
10883 if test "$aix_use_runtimelinking" = yes; then
10884 shared_flag='${wl}-G'
10886 shared_flag='${wl}-bM:SRE'
10891 # It seems that -bexpall does not export symbols beginning with
10892 # underscore (_), so it is better to generate a list of symbols to export.
10893 always_export_symbols_CXX=yes
10894 if test "$aix_use_runtimelinking" = yes; then
10895 # Warning - without using the other runtime loading flags (-brtl),
10896 # -berok will link without error, but may produce a broken library.
10897 allow_undefined_flag_CXX='-berok'
10898 # Determine the default libpath from the value encoded in an empty executable.
10899 cat >conftest.$ac_ext <<_ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10914 rm -f conftest.$ac_objext conftest$ac_exeext
10915 if { (ac_try="$ac_link"
10916 case "(($ac_try" in
10917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10918 *) ac_try_echo
=$ac_try;;
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_link") 2>conftest.er1
10923 grep -v '^ *+' conftest.er1
>conftest.err
10925 cat conftest.err
>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } && {
10928 test -z "$ac_cxx_werror_flag" ||
10929 test ! -s conftest.err
10930 } && test -s conftest
$ac_exeext &&
10931 $as_test_x conftest
$ac_exeext; then
10933 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10935 # Check for a 64-bit object if we didn't find anything.
10936 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; }
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.
$ac_ext >&5
10945 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10946 conftest
$ac_exeext conftest.
$ac_ext
10947 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10949 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10951 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"
10953 if test "$host_cpu" = ia64
; then
10954 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
10955 allow_undefined_flag_CXX
="-z nodefs"
10956 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"
10958 # Determine the default libpath from the value encoded in an empty executable.
10959 cat >conftest.
$ac_ext <<_ACEOF
10962 cat confdefs.h
>>conftest.
$ac_ext
10963 cat >>conftest.
$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10974 rm -f conftest.
$ac_objext conftest
$ac_exeext
10975 if { (ac_try
="$ac_link"
10976 case "(($ac_try" in
10977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10983 grep -v '^ *+' conftest.er1 >conftest.err
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } && {
10988 test -z "$ac_cxx_werror_flag" ||
10989 test ! -s conftest.err
10990 } && test -s conftest$ac_exeext &&
10991 $as_test_x conftest$ac_exeext; then
10993 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10995 # Check for a 64-bit object if we didn't find anything.
10996 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; }
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11006 conftest$ac_exeext conftest.$ac_ext
11007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11009 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11010 # Warning - without using the other run time loading flags,
11011 # -berok will link without error, but may produce a broken library.
11012 no_undefined_flag_CXX=' ${wl}-bernotok'
11013 allow_undefined_flag_CXX=' ${wl}-berok'
11014 # Exported symbols can be pulled into shared objects from archives
11015 whole_archive_flag_spec_CXX='$convenience'
11016 archive_cmds_need_lc_CXX=yes
11017 # This is similar to how AIX traditionally builds its shared libraries.
11018 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'
11024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11025 allow_undefined_flag_CXX=unsupported
11026 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11027 # support --undefined. This deserves some investigation. FIXME
11028 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11035 case $cc_basename in
11037 # FIXME: insert proper C++ library support
11043 cygwin* | mingw* | pw32*)
11044 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11045 # as there is no search path for DLLs.
11046 hardcode_libdir_flag_spec_CXX='-L$libdir'
11047 allow_undefined_flag_CXX=unsupported
11048 always_export_symbols_CXX=no
11049 enable_shared_with_static_runtimes_CXX=yes
11051 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11052 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'
11053 # If the export-symbols file already is a .def file (1st line
11054 # is EXPORTS), use it as is; otherwise, prepend...
11055 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11056 cp $export_symbols $output_objdir/$soname.def;
11058 echo EXPORTS > $output_objdir/$soname.def;
11059 cat $export_symbols >> $output_objdir/$soname.def;
11061 $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'
11066 darwin* | rhapsody*)
11068 rhapsody* | darwin1.[012])
11069 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11072 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11073 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11075 case ${MACOSX_DEPLOYMENT_TARGET} in
11077 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11080 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11086 archive_cmds_need_lc_CXX=no
11087 hardcode_direct_CXX=no
11088 hardcode_automatic_CXX=yes
11089 hardcode_shlibpath_var_CXX=unsupported
11090 whole_archive_flag_spec_CXX=''
11091 link_all_deplibs_CXX=yes
11093 if test "$GXX" = yes ; then
11094 lt_int_apple_cc_single_mod=no
11095 output_verbose_link_cmd='echo'
11096 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11097 lt_int_apple_cc_single_mod=yes
11099 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11100 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11102 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'
11104 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11105 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11106 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11107 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}'
11109 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}'
11111 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}'
11113 case $cc_basename in
11115 output_verbose_link_cmd='echo'
11116 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'
11117 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11118 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11119 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}'
11120 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}'
11130 case $cc_basename in
11132 # FIXME: insert proper C++ library support
11136 # Green Hills C++ Compiler
11137 # FIXME: insert proper C++ library support
11141 # FIXME: insert proper C++ library support
11147 # C++ shared libraries reported to be fairly broken before switch to ELF
11151 archive_cmds_need_lc_CXX=no
11153 freebsd* | kfreebsd*-gnu | dragonfly*)
11154 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11161 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11162 hardcode_libdir_separator_CXX=:
11163 export_dynamic_flag_spec_CXX='${wl}-E'
11164 hardcode_direct_CXX=yes
11165 hardcode_minus_L_CXX=yes # Not in the search PATH,
11166 # but as the default
11167 # location of the library.
11169 case $cc_basename in
11171 # FIXME: insert proper C++ library support
11175 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'
11176 # Commands to make compiler produce verbose output that lists
11177 # what "hidden" libraries, object files and flags are used when
11178 # linking a shared library.
11180 # There doesn't appear to be a way to prevent this compiler from
11181 # explicitly linking system object files so we need to strip them
11182 # from the output so that they don't get included in the library
11184 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'
11187 if test "$GXX" = yes; then
11188 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'
11190 # FIXME: insert proper C++ library support
11197 if test $with_gnu_ld = no; then
11198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11199 hardcode_libdir_separator_CXX=:
11203 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11206 export_dynamic_flag_spec_CXX='${wl}-E'
11212 hardcode_direct_CXX=no
11213 hardcode_shlibpath_var_CXX=no
11216 hardcode_direct_CXX=yes
11217 hardcode_minus_L_CXX=yes # Not in the search PATH,
11218 # but as the default
11219 # location of the library.
11223 case $cc_basename in
11225 # FIXME: insert proper C++ library support
11231 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11234 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11237 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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.
11244 # There doesn't appear to be a way to prevent this compiler from
11245 # explicitly linking system object files so we need to strip them
11246 # from the output so that they don't get included in the library
11248 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'
11251 if test "$GXX" = yes; then
11252 if test $with_gnu_ld = no; then
11255 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11258 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11261 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'
11266 # FIXME: insert proper C++ library support
11273 hardcode_direct_CXX=no
11274 hardcode_shlibpath_var_CXX=no
11275 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11276 export_dynamic_flag_spec_CXX='${wl}-E'
11277 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11278 # Instead, shared libraries are loaded at an image base (0x10000000 by
11279 # default) and relocated if they conflict, which is a slow very memory
11280 # consuming and fragmenting process. To avoid this, we pick a random,
11281 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11282 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11283 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'
11284 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'
11287 case $cc_basename in
11290 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'
11292 # Archives containing C++ object files must be created using
11293 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11294 # necessary to make sure instantiated templates are included
11296 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11299 if test "$GXX" = yes; then
11300 if test "$with_gnu_ld" = no; then
11301 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'
11303 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'
11306 link_all_deplibs_CXX=yes
11309 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11310 hardcode_libdir_separator_CXX=:
11313 case $cc_basename in
11315 # Kuck and Associates, Inc. (KAI) C++ Compiler
11317 # KCC will only create a shared library if the output file
11318 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11319 # to its proper name (with version) after linking.
11320 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'
11321 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'
11322 # Commands to make compiler produce verbose output that lists
11323 # what "hidden" libraries, object files and flags are used when
11324 # linking a shared library.
11326 # There doesn't appear to be a way to prevent this compiler from
11327 # explicitly linking system object files so we need to strip them
11328 # from the output so that they don't get included in the library
11330 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'
11332 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11333 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11335 # Archives containing C++ object files must be created using
11336 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11337 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11342 # version 8.0 and above of icpc choke on multiply defined symbols
11343 # if we add $predep_objects and $postdep_objects, however 7.1 and
11344 # earlier do not add the objects themselves.
11345 case `$CC -V 2>&1` in
11347 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11348 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'
11350 *) # Version 8.0 or newer
11353 ia64
*) tmp_idyn
=' -i_dynamic';;
11355 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11356 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'
11359 archive_cmds_need_lc_CXX
=no
11360 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11361 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11362 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11365 # Portland Group C++ compiler
11366 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11367 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'
11369 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11370 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11371 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'
11375 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11376 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'
11378 runpath_var
=LD_RUN_PATH
11379 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11380 hardcode_libdir_separator_CXX
=:
11382 # Commands to make compiler produce verbose output that lists
11383 # what "hidden" libraries, object files and flags are used when
11384 # linking a shared library.
11386 # There doesn't appear to be a way to prevent this compiler from
11387 # explicitly linking system object files so we need to strip them
11388 # from the output so that they don't get included in the library
11390 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'
11395 # FIXME: insert proper C++ library support
11399 # FIXME: insert proper C++ library support
11403 case $cc_basename in
11405 # FIXME: insert proper C++ library support
11409 # FIXME: insert proper C++ library support
11415 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11416 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11418 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11419 hardcode_direct_CXX
=yes
11420 hardcode_shlibpath_var_CXX
=no
11422 # Workaround some broken pre-1.5 toolchains
11423 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11426 # C++ shared libraries are fairly broken
11430 hardcode_direct_CXX
=yes
11431 hardcode_shlibpath_var_CXX
=no
11432 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11433 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11435 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11436 export_dynamic_flag_spec_CXX
='${wl}-E'
11437 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11439 output_verbose_link_cmd
='echo'
11442 case $cc_basename in
11444 # Kuck and Associates, Inc. (KAI) C++ Compiler
11446 # KCC will only create a shared library if the output file
11447 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11448 # to its proper name (with version) after linking.
11449 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'
11451 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11452 hardcode_libdir_separator_CXX
=:
11454 # Archives containing C++ object files must be created using
11455 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11456 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11460 # Rational C++ 2.4.1
11461 # FIXME: insert proper C++ library support
11465 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11466 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'
11468 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11469 hardcode_libdir_separator_CXX
=:
11471 # Commands to make compiler produce verbose output that lists
11472 # what "hidden" libraries, object files and flags are used when
11473 # linking a shared library.
11475 # There doesn't appear to be a way to prevent this compiler from
11476 # explicitly linking system object files so we need to strip them
11477 # from the output so that they don't get included in the library
11479 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'
11482 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11483 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11484 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'
11486 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11487 hardcode_libdir_separator_CXX
=:
11489 # Commands to make compiler produce verbose output that lists
11490 # what "hidden" libraries, object files and flags are used when
11491 # linking a shared library.
11492 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11495 # FIXME: insert proper C++ library support
11502 case $cc_basename in
11504 # Kuck and Associates, Inc. (KAI) C++ Compiler
11506 # KCC will only create a shared library if the output file
11507 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11508 # to its proper name (with version) after linking.
11509 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'
11511 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11512 hardcode_libdir_separator_CXX
=:
11514 # Archives containing C++ object files must be created using
11515 # the KAI C++ compiler.
11516 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11519 # Rational C++ 2.4.1
11520 # FIXME: insert proper C++ library support
11524 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11525 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'
11526 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11527 echo "-hidden">> $lib.exp~
11528 $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~
11531 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11532 hardcode_libdir_separator_CXX
=:
11534 # Commands to make compiler produce verbose output that lists
11535 # what "hidden" libraries, object files and flags are used when
11536 # linking a shared library.
11538 # There doesn't appear to be a way to prevent this compiler from
11539 # explicitly linking system object files so we need to strip them
11540 # from the output so that they don't get included in the library
11542 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'
11545 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11546 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11547 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'
11549 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11550 hardcode_libdir_separator_CXX
=:
11552 # Commands to make compiler produce verbose output that lists
11553 # what "hidden" libraries, object files and flags are used when
11554 # linking a shared library.
11555 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11558 # FIXME: insert proper C++ library support
11565 # FIXME: insert proper C++ library support
11569 case $cc_basename in
11572 # FIXME: insert proper C++ library support
11577 # FIXME: insert proper C++ library support
11581 # FIXME: insert proper C++ library support
11587 case $cc_basename in
11589 # Sun C++ 4.2, 5.x and Centerline C++
11590 archive_cmds_need_lc_CXX
=yes
11591 no_undefined_flag_CXX
=' -zdefs'
11592 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11593 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11594 $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'
11596 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11597 hardcode_shlibpath_var_CXX
=no
11599 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11601 # The C++ compiler is used as linker so we must use $wl
11602 # flag to pass the commands to the underlying system
11603 # linker. We must also pass each convience library through
11604 # to the system linker between allextract/defaultextract.
11605 # The C++ compiler will combine linker options so we
11606 # cannot just pass the convience library names through
11608 # Supported since Solaris 2.6 (maybe 2.5.1?)
11609 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'
11612 link_all_deplibs_CXX
=yes
11614 output_verbose_link_cmd
='echo'
11616 # Archives containing C++ object files must be created using
11617 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11618 # necessary to make sure instantiated templates are included
11620 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11623 # Green Hills C++ Compiler
11624 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11626 # The C++ compiler must be used to create the archive.
11627 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11630 # GNU C++ compiler with Solaris linker
11631 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11632 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11633 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11634 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11635 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11636 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11638 # Commands to make compiler produce verbose output that lists
11639 # what "hidden" libraries, object files and flags are used when
11640 # linking a shared library.
11641 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11643 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11645 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11646 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11647 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11649 # Commands to make compiler produce verbose output that lists
11650 # what "hidden" libraries, object files and flags are used when
11651 # linking a shared library.
11652 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11655 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11660 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11661 no_undefined_flag_CXX
='${wl}-z,text'
11662 archive_cmds_need_lc_CXX
=no
11663 hardcode_shlibpath_var_CXX
=no
11664 runpath_var
='LD_RUN_PATH'
11666 case $cc_basename in
11668 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11669 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11672 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11673 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11677 sysv5
* | sco3.2v5
* | sco5v6
*)
11678 # Note: We can NOT use -z defs as we might desire, because we do not
11679 # link with -lc, and that would cause any symbols used from libc to
11680 # always be unresolved, which means just about no library would
11681 # ever link correctly. If we're not using GNU ld we use -z text
11682 # though, which does catch some bad symbols but isn't as heavy-handed
11684 # For security reasons, it is highly recommended that you always
11685 # use absolute paths for naming shared libraries, and exclude the
11686 # DT_RUNPATH tag from executables and libraries. But doing so
11687 # requires that you compile everything twice, which is a pain.
11688 # So that behaviour is only enabled if SCOABSPATH is set to a
11689 # non-empty value in the environment. Most likely only useful for
11690 # creating official distributions of packages.
11691 # This is a hack until libtool officially supports absolute path
11692 # names for shared libraries.
11693 no_undefined_flag_CXX
='${wl}-z,text'
11694 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11695 archive_cmds_need_lc_CXX
=no
11696 hardcode_shlibpath_var_CXX
=no
11697 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11698 hardcode_libdir_separator_CXX
=':'
11699 link_all_deplibs_CXX
=yes
11700 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11701 runpath_var
='LD_RUN_PATH'
11703 case $cc_basename in
11705 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11706 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11709 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11710 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11715 case $cc_basename in
11717 # NonStop-UX NCC 3.20
11718 # FIXME: insert proper C++ library support
11722 # FIXME: insert proper C++ library support
11728 # FIXME: insert proper C++ library support
11732 # FIXME: insert proper C++ library support
11736 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11737 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11738 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11744 cat > conftest.
$ac_ext <<EOF
11748 Foo (void) { a = 0; }
11754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755 (eval $ac_compile) 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; then
11759 # Parse the compiler output and extract the necessary
11760 # objects, libraries and library flags.
11762 # Sentinel used to keep track of whether or not we are before
11763 # the conftest object file.
11764 pre_test_object_deps_done
=no
11766 # The `*' in the case matches for architectures that use `case' in
11767 # $output_verbose_cmd can trigger glob expansion during the loop
11768 # eval without this substitution.
11769 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11771 for p
in `eval $output_verbose_link_cmd`; do
11775 # Some compilers place space between "-{L,R}" and the path.
11776 # Remove the space.
11777 if test $p = "-L" \
11778 ||
test $p = "-R"; then
11785 if test "$pre_test_object_deps_done" = no
; then
11788 # Internal compiler library paths should come after those
11789 # provided the user. The postdeps already come after the
11790 # user supplied libs so there is no need to process them.
11791 if test -z "$compiler_lib_search_path_CXX"; then
11792 compiler_lib_search_path_CXX
="${prev}${p}"
11794 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11797 # The "-l" case would never come before the object being
11798 # linked, so don't bother handling this case.
11801 if test -z "$postdeps_CXX"; then
11802 postdeps_CXX
="${prev}${p}"
11804 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11810 # This assumes that the test object file only shows up
11811 # once in the compiler output.
11812 if test "$p" = "conftest.$objext"; then
11813 pre_test_object_deps_done
=yes
11817 if test "$pre_test_object_deps_done" = no
; then
11818 if test -z "$predep_objects_CXX"; then
11819 predep_objects_CXX
="$p"
11821 predep_objects_CXX
="$predep_objects_CXX $p"
11824 if test -z "$postdep_objects_CXX"; then
11825 postdep_objects_CXX
="$p"
11827 postdep_objects_CXX
="$postdep_objects_CXX $p"
11832 *) ;; # Ignore the rest.
11840 echo "libtool.m4: error: problem compiling CXX test program"
11843 $rm -f confest.
$objext
11845 # PORTME: override above test on systems where it is broken
11848 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11849 # hack all around it, let's just trust "g++" to DTRT.
11850 predep_objects_CXX
=
11851 postdep_objects_CXX
=
11856 case $cc_basename in
11858 # Adding this requires a known-good setup of shared libraries for
11859 # Sun compiler versions before 5.6, else PIC objects from an old
11860 # archive will be linked into the output, leading to subtle bugs.
11861 postdeps_CXX
='-lCstd -lCrun'
11868 case " $postdeps_CXX " in
11869 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
11872 lt_prog_compiler_wl_CXX
=
11873 lt_prog_compiler_pic_CXX
=
11874 lt_prog_compiler_static_CXX
=
11876 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11877 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11879 # C++ specific cases for pic, static, wl, etc.
11880 if test "$GXX" = yes; then
11881 lt_prog_compiler_wl_CXX
='-Wl,'
11882 lt_prog_compiler_static_CXX
='-static'
11886 # All AIX code is PIC.
11887 if test "$host_cpu" = ia64
; then
11888 # AIX 5 now supports IA64 processor
11889 lt_prog_compiler_static_CXX
='-Bstatic'
11893 # FIXME: we need at least 68020 code to build shared libraries, but
11894 # adding the `-m68020' flag to GCC prevents building anything better,
11896 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11898 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11899 # PIC is the default for these OSes.
11901 mingw
* | os2
* | pw32
*)
11902 # This hack is so that the source file can tell whether it is being
11903 # built for inclusion in a dll (and should export symbols for example).
11904 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11906 darwin
* | rhapsody
*)
11907 # PIC is the default on this platform
11908 # Common symbols not allowed in MH_DYLIB files
11909 lt_prog_compiler_pic_CXX
='-fno-common'
11912 # DJGPP does not support shared libraries at all
11913 lt_prog_compiler_pic_CXX
=
11916 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11917 # Instead, we relocate shared libraries at runtime.
11920 if test -d /usr
/nec
; then
11921 lt_prog_compiler_pic_CXX
=-Kconform_pic
11925 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11926 # not for PA HP-UX.
11931 lt_prog_compiler_pic_CXX
='-fPIC'
11936 lt_prog_compiler_pic_CXX
='-fPIC'
11942 # All AIX code is PIC.
11943 if test "$host_cpu" = ia64
; then
11944 # AIX 5 now supports IA64 processor
11945 lt_prog_compiler_static_CXX
='-Bstatic'
11947 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11951 case $cc_basename in
11953 # Green Hills C++ Compiler
11954 # _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"
11959 # PIC is the default on this platform
11960 # Common symbols not allowed in MH_DYLIB files
11961 case $cc_basename in
11963 lt_prog_compiler_pic_CXX
='-qnocommon'
11964 lt_prog_compiler_wl_CXX
='-Wl,'
11969 case $cc_basename in
11971 lt_prog_compiler_pic_CXX
='-KPIC'
11974 # Green Hills C++ Compiler
11975 lt_prog_compiler_pic_CXX
='-pic'
11981 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
11982 # FreeBSD uses GNU C++
11984 hpux9
* | hpux10
* | hpux11
*)
11985 case $cc_basename in
11987 lt_prog_compiler_wl_CXX
='-Wl,'
11988 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11989 if test "$host_cpu" != ia64
; then
11990 lt_prog_compiler_pic_CXX
='+Z'
11994 lt_prog_compiler_wl_CXX
='-Wl,'
11995 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12001 lt_prog_compiler_pic_CXX
='+Z'
12010 # This is c89, which is MS Visual C++ (no shared libs)
12011 # Anyone wants to do a port?
12013 irix5
* | irix6
* | nonstopux
*)
12014 case $cc_basename in
12016 lt_prog_compiler_wl_CXX
='-Wl,'
12017 lt_prog_compiler_static_CXX
='-non_shared'
12018 # CC pic flag -KPIC is the default.
12025 case $cc_basename in
12028 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12029 lt_prog_compiler_pic_CXX
='-fPIC'
12033 lt_prog_compiler_wl_CXX
='-Wl,'
12034 lt_prog_compiler_pic_CXX
='-KPIC'
12035 lt_prog_compiler_static_CXX
='-static'
12038 # Portland Group C++ compiler.
12039 lt_prog_compiler_wl_CXX
='-Wl,'
12040 lt_prog_compiler_pic_CXX
='-fpic'
12041 lt_prog_compiler_static_CXX
='-Bstatic'
12045 # Make sure the PIC flag is empty. It appears that all Alpha
12046 # Linux and Compaq Tru64 Unix objects are PIC.
12047 lt_prog_compiler_pic_CXX
=
12048 lt_prog_compiler_static_CXX
='-non_shared'
12059 case $cc_basename in
12061 lt_prog_compiler_pic_CXX
='-W c,exportall'
12069 osf3
* | osf4
* | osf5
*)
12070 case $cc_basename in
12072 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12075 # Rational C++ 2.4.1
12076 lt_prog_compiler_pic_CXX
='-pic'
12079 # Digital/Compaq C++
12080 lt_prog_compiler_wl_CXX
='-Wl,'
12081 # Make sure the PIC flag is empty. It appears that all Alpha
12082 # Linux and Compaq Tru64 Unix objects are PIC.
12083 lt_prog_compiler_pic_CXX
=
12084 lt_prog_compiler_static_CXX
='-non_shared'
12093 case $cc_basename in
12095 # Sun C++ 4.2, 5.x and Centerline C++
12096 lt_prog_compiler_pic_CXX
='-KPIC'
12097 lt_prog_compiler_static_CXX
='-Bstatic'
12098 lt_prog_compiler_wl_CXX
='-Qoption ld '
12101 # Green Hills C++ Compiler
12102 lt_prog_compiler_pic_CXX
='-PIC'
12109 case $cc_basename in
12112 lt_prog_compiler_pic_CXX
='-pic'
12113 lt_prog_compiler_static_CXX
='-Bstatic'
12117 lt_prog_compiler_pic_CXX
='-pic'
12124 case $cc_basename in
12126 # NonStop-UX NCC 3.20
12127 lt_prog_compiler_pic_CXX
='-KPIC'
12133 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12134 case $cc_basename in
12136 lt_prog_compiler_wl_CXX
='-Wl,'
12137 lt_prog_compiler_pic_CXX
='-KPIC'
12138 lt_prog_compiler_static_CXX
='-Bstatic'
12145 lt_prog_compiler_can_build_shared_CXX
=no
12150 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12151 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12154 # Check to make sure the PIC flag actually works.
12156 if test -n "$lt_prog_compiler_pic_CXX"; then
12158 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12159 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12160 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 lt_prog_compiler_pic_works_CXX
=no
12164 ac_outfile
=conftest.
$ac_objext
12165 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12166 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12167 # Insert the option either (1) after the last *FLAGS variable, or
12168 # (2) before a word containing "conftest.", or (3) at the end.
12169 # Note that $ac_compile itself does not contain backslashes and begins
12170 # with a dollar sign (not a hyphen), so the echo should work correctly.
12171 # The option is referenced via a variable to avoid confusing sed.
12172 lt_compile
=`echo "$ac_compile" | $SED \
12173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12175 -e 's:$: $lt_compiler_flag:'`
12176 (eval echo "\"\$as_me:12176: $lt_compile\"" >&5)
12177 (eval "$lt_compile" 2>conftest.err
)
12179 cat conftest.err
>&5
12180 echo "$as_me:12180: \$? = $ac_status" >&5
12181 if (exit $ac_status) && test -s "$ac_outfile"; then
12182 # The compiler can only warn and ignore the option if not recognized
12183 # So say no if there are warnings other than the usual output.
12184 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12185 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12186 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12187 lt_prog_compiler_pic_works_CXX
=yes
12193 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12194 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12196 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12197 case $lt_prog_compiler_pic_CXX in
12199 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12202 lt_prog_compiler_pic_CXX
=
12203 lt_prog_compiler_can_build_shared_CXX
=no
12208 # For platforms which do not support PIC, -DPIC is meaningless:
12210 lt_prog_compiler_pic_CXX
=
12213 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12218 # Check to make sure the static flag actually works.
12220 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12221 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12222 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12223 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 lt_prog_compiler_static_works_CXX
=no
12227 save_LDFLAGS
="$LDFLAGS"
12228 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12229 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
12230 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12231 # The linker can only warn and ignore the option if not recognized
12232 # So say no if there are warnings
12233 if test -s conftest.err
; then
12234 # Append any errors to the config.log.
12235 cat conftest.err
1>&5
12236 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12237 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12238 if diff conftest.exp conftest.er2
>/dev
/null
; then
12239 lt_prog_compiler_static_works_CXX
=yes
12242 lt_prog_compiler_static_works_CXX
=yes
12246 LDFLAGS
="$save_LDFLAGS"
12249 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12250 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12252 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12255 lt_prog_compiler_static_CXX
=
12259 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12260 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12261 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 lt_cv_prog_compiler_c_o_CXX
=no
12265 $rm -r conftest
2>/dev
/null
12269 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12271 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12272 # Insert the option either (1) after the last *FLAGS variable, or
12273 # (2) before a word containing "conftest.", or (3) at the end.
12274 # Note that $ac_compile itself does not contain backslashes and begins
12275 # with a dollar sign (not a hyphen), so the echo should work correctly.
12276 lt_compile
=`echo "$ac_compile" | $SED \
12277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12279 -e 's:$: $lt_compiler_flag:'`
12280 (eval echo "\"\$as_me:12280: $lt_compile\"" >&5)
12281 (eval "$lt_compile" 2>out
/conftest.err
)
12283 cat out
/conftest.err
>&5
12284 echo "$as_me:12284: \$? = $ac_status" >&5
12285 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12287 # The compiler can only warn and ignore the option if not recognized
12288 # So say no if there are warnings
12289 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12290 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12291 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12292 lt_cv_prog_compiler_c_o_CXX
=yes
12297 # SGI C++ compiler will create directory out/ii_files/ for
12298 # template instantiation
12299 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12300 $rm out
/* && rmdir out
12306 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12307 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12310 hard_links
="nottested"
12311 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12312 # do not overwrite the value of need_locks provided by the user
12313 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12314 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12317 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12319 ln conftest.a conftest.b
2>&5 || hard_links
=no
12320 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12321 { echo "$as_me:$LINENO: result: $hard_links" >&5
12322 echo "${ECHO_T}$hard_links" >&6; }
12323 if test "$hard_links" = no
; then
12324 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12325 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12332 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12333 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12335 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12338 # If we're using GNU nm, then we don't want the "-C" option.
12339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12340 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12341 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'
12343 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'
12347 export_symbols_cmds_CXX
="$ltdll_cmds"
12350 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'
12353 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12357 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12358 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12359 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12362 # Do we need to explicitly link libc?
12364 case "x$archive_cmds_need_lc_CXX" in
12366 # Assume -lc should be added
12367 archive_cmds_need_lc_CXX
=yes
12369 if test "$enable_shared" = yes && test "$GCC" = yes; then
12370 case $archive_cmds_CXX in
12372 # FIXME: we may have to deal with multi-command sequences.
12375 # Test whether the compiler implicitly links with -lc since on some
12376 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12377 # to ld, don't add -lc before -lgcc.
12378 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12379 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12381 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12384 (eval $ac_compile) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } 2>conftest.err
; then
12390 libobjs
=conftest.
$ac_objext
12392 wl
=$lt_prog_compiler_wl_CXX
12393 pic_flag
=$lt_prog_compiler_pic_CXX
12399 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12400 allow_undefined_flag_CXX
=
12401 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12402 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }
12407 archive_cmds_need_lc_CXX
=no
12409 archive_cmds_need_lc_CXX
=yes
12411 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12413 cat conftest.err
1>&5
12416 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12417 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12424 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12425 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12426 library_names_spec
=
12427 libname_spec
='lib$name'
12431 postuninstall_cmds
=
12435 shlibpath_overrides_runpath
=unknown
12437 dynamic_linker
="$host_os ld.so"
12438 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12439 if test "$GCC" = yes; then
12440 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12441 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
12442 # if the path contains ";" then we assume it to be the separator
12443 # otherwise default to the standard path separator (i.e. ":") - it is
12444 # assumed that no part of a normal pathname contains ";" but that should
12445 # okay in the real world where ";" in dirpaths is itself problematic.
12446 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12448 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12451 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12453 need_lib_prefix
=unknown
12454 hardcode_into_libs
=no
12456 # when you set need_version to no, make sure it does not cause -set_version
12457 # flags to be left without arguments
12458 need_version
=unknown
12463 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12464 shlibpath_var
=LIBPATH
12466 # AIX 3 has no versioning support, so we append a major version to the name.
12467 soname_spec
='${libname}${release}${shared_ext}$major'
12474 hardcode_into_libs
=yes
12475 if test "$host_cpu" = ia64
; then
12476 # AIX 5 supports IA64
12477 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12478 shlibpath_var
=LD_LIBRARY_PATH
12480 # With GCC up to 2.95.x, collect2 would create an import file
12481 # for dependence libraries. The import file would start with
12482 # the line `#! .'. This would cause the generated library to
12483 # depend on `.', always an invalid library. This was fixed in
12484 # development snapshots of GCC prior to 3.0.
12486 aix4 | aix4.
[01] | aix4.
[01].
*)
12487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12489 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12492 can_build_shared
=no
12496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12497 # soname into executable. Probably we can add versioning support to
12498 # collect2, so additional links can be useful in future.
12499 if test "$aix_use_runtimelinking" = yes; then
12500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12501 # instead of lib<name>.a to let people know that these are not
12502 # typical AIX shared libraries.
12503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12505 # We preserve .a as extension for shared libraries through AIX4.2
12506 # and later when we are not doing run time linking.
12507 library_names_spec
='${libname}${release}.a $libname.a'
12508 soname_spec
='${libname}${release}${shared_ext}$major'
12510 shlibpath_var
=LIBPATH
12515 library_names_spec
='$libname.ixlibrary $libname.a'
12516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12517 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'
12521 library_names_spec
='${libname}${shared_ext}'
12522 dynamic_linker
="$host_os ld.so"
12523 shlibpath_var
=LIBRARY_PATH
12529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12530 soname_spec
='${libname}${release}${shared_ext}$major'
12531 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12532 shlibpath_var
=LD_LIBRARY_PATH
12533 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12534 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12535 # the default ld.so.conf also contains /usr/contrib/lib and
12536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12537 # libtool to hard-code these into programs
12540 cygwin
* | mingw
* | pw32
*)
12541 version_type
=windows
12546 case $GCC,$host_os in
12547 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12548 library_names_spec
='$libname.dll.a'
12549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12550 postinstall_cmds
='base_file=`basename \${file}`~
12551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12552 dldir=$destdir/`dirname \$dlpath`~
12553 test -d \$dldir || mkdir -p \$dldir~
12554 $install_prog $dir/$dlname \$dldir/$dlname~
12555 chmod a+x \$dldir/$dlname'
12556 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12557 dlpath=$dir/\$dldll~
12559 shlibpath_overrides_runpath
=yes
12563 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12564 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12565 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12568 # MinGW DLLs use traditional 'lib' prefix
12569 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12570 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12571 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12572 # It is most probably a Windows format PATH printed by
12573 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12574 # path with ; separators, and with drive letters. We can handle the
12575 # drive letters (cygwin fileutils understands them), so leave them,
12576 # especially as we might pass files found there to a mingw objdump,
12577 # which wouldn't understand a cygwinified path. Ahh.
12578 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12580 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12584 # pw32 DLLs use 'pw' prefix rather than 'lib'
12585 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12591 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12594 dynamic_linker
='Win32 ld.exe'
12595 # FIXME: first we should search . and the directory the executable is in
12599 darwin
* | rhapsody
*)
12600 dynamic_linker
="$host_os dyld"
12601 version_type
=darwin
12604 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12605 soname_spec
='${libname}${release}${major}$shared_ext'
12606 shlibpath_overrides_runpath
=yes
12607 shlibpath_var
=DYLD_LIBRARY_PATH
12608 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12610 if test "$GCC" = yes; then
12611 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"`
12613 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12615 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12622 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12623 soname_spec
='${libname}${release}${shared_ext}$major'
12624 shlibpath_var
=LD_LIBRARY_PATH
12635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12636 soname_spec
='${libname}${release}${shared_ext}$major'
12637 shlibpath_var
=LD_LIBRARY_PATH
12638 shlibpath_overrides_runpath
=no
12639 hardcode_into_libs
=yes
12640 dynamic_linker
='GNU ld.so'
12643 freebsd
* | dragonfly
*)
12644 # DragonFly does not have aout. When/if they implement a new
12645 # versioning mechanism, adjust this.
12646 if test -x /usr
/bin
/objformat
; then
12647 objformat
=`/usr/bin/objformat`
12650 freebsd
[123]*) objformat
=aout
;;
12651 *) objformat
=elf
;;
12654 version_type
=freebsd-
$objformat
12655 case $version_type in
12657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12662 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12666 shlibpath_var
=LD_LIBRARY_PATH
12669 shlibpath_overrides_runpath
=yes
12671 freebsd3.
[01]* | freebsdelf3.
[01]*)
12672 shlibpath_overrides_runpath
=yes
12673 hardcode_into_libs
=yes
12675 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12676 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12677 shlibpath_overrides_runpath
=no
12678 hardcode_into_libs
=yes
12680 freebsd
*) # from 4.6 on
12681 shlibpath_overrides_runpath
=yes
12682 hardcode_into_libs
=yes
12691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12692 soname_spec
='${libname}${release}${shared_ext}$major'
12693 shlibpath_var
=LD_LIBRARY_PATH
12694 hardcode_into_libs
=yes
12697 hpux9
* | hpux10
* | hpux11
*)
12698 # Give a soname corresponding to the major version so that dld.sl refuses to
12699 # link against other versions.
12706 hardcode_into_libs
=yes
12707 dynamic_linker
="$host_os dld.so"
12708 shlibpath_var
=LD_LIBRARY_PATH
12709 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12710 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12711 soname_spec
='${libname}${release}${shared_ext}$major'
12712 if test "X$HPUX_IA64_MODE" = X32
; then
12713 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12715 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12717 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12721 hardcode_into_libs
=yes
12722 dynamic_linker
="$host_os dld.sl"
12723 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12724 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12726 soname_spec
='${libname}${release}${shared_ext}$major'
12727 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12728 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12732 dynamic_linker
="$host_os dld.sl"
12733 shlibpath_var
=SHLIB_PATH
12734 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12735 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12736 soname_spec
='${libname}${release}${shared_ext}$major'
12739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12740 postinstall_cmds
='chmod 555 $lib'
12747 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12748 soname_spec
='${libname}${release}${shared_ext}$major'
12749 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12750 shlibpath_var
=LD_LIBRARY_PATH
12751 shlibpath_overrides_runpath
=no
12752 hardcode_into_libs
=yes
12755 irix5
* | irix6
* | nonstopux
*)
12757 nonstopux
*) version_type
=nonstopux
;;
12759 if test "$lt_cv_prog_gnu_ld" = yes; then
12767 soname_spec
='${libname}${release}${shared_ext}$major'
12768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12770 irix5
* | nonstopux
*)
12771 libsuff
= shlibsuff
=
12774 case $LD in # libtool.m4 will add one of these switches to LD
12775 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12776 libsuff
= shlibsuff
= libmagic
=32-bit;;
12777 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12778 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12779 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12780 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12781 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12785 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12786 shlibpath_overrides_runpath
=no
12787 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12788 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12789 hardcode_into_libs
=yes
12792 # No shared lib support for Linux oldld, aout, or coff.
12793 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12797 # This must be Linux ELF.
12802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12803 soname_spec
='${libname}${release}${shared_ext}$major'
12804 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12805 shlibpath_var
=LD_LIBRARY_PATH
12806 shlibpath_overrides_runpath
=no
12807 # This implies no fast_install, which is unacceptable.
12808 # Some rework will be needed to allow for fast_install
12809 # before this can be enabled.
12810 hardcode_into_libs
=yes
12812 # find out which ABI we are using
12814 case "$host_cpu" in
12815 x86_64
*|s390x
*|powerpc64
*)
12816 echo '#line 12816 "configure"' > conftest.
$ac_ext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; then
12822 case `/usr/bin/file conftest.$ac_objext` in
12825 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12833 # Append ld.so.conf contents to the search path
12834 if test -f /etc
/ld.so.conf
; then
12835 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/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12836 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12839 # We used to test for /lib/ld.so.1 and disable shared libraries on
12840 # powerpc, because MkLinux only supported shared libraries with the
12841 # GNU dynamic linker. Since this was broken with cross compilers,
12842 # most powerpc-linux boxes support dynamic linking these days and
12843 # people can always --disable-shared, the test was removed, and we
12844 # assume the GNU/Linux dynamic linker is in use.
12845 dynamic_linker
='GNU/Linux ld.so'
12852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12853 soname_spec
='${libname}${release}${shared_ext}$major'
12854 shlibpath_var
=LD_LIBRARY_PATH
12855 shlibpath_overrides_runpath
=no
12856 hardcode_into_libs
=yes
12857 dynamic_linker
='GNU ld.so'
12864 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12866 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12867 dynamic_linker
='NetBSD (a.out) ld.so'
12869 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12870 soname_spec
='${libname}${release}${shared_ext}$major'
12871 dynamic_linker
='NetBSD ld.elf_so'
12873 shlibpath_var
=LD_LIBRARY_PATH
12874 shlibpath_overrides_runpath
=yes
12875 hardcode_into_libs
=yes
12880 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881 shlibpath_var
=LD_LIBRARY_PATH
12882 shlibpath_overrides_runpath
=yes
12889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12890 soname_spec
='${libname}${release}${shared_ext}$major'
12891 shlibpath_var
=LD_LIBRARY_PATH
12892 shlibpath_overrides_runpath
=yes
12897 sys_lib_dlsearch_path_spec
="/usr/lib"
12899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12901 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12902 *) need_version
=no
;;
12904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12905 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12906 shlibpath_var
=LD_LIBRARY_PATH
12907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12909 openbsd2.
[89] | openbsd2.
[89].
*)
12910 shlibpath_overrides_runpath
=no
12913 shlibpath_overrides_runpath
=yes
12917 shlibpath_overrides_runpath
=yes
12922 libname_spec
='$name'
12925 library_names_spec
='$libname${shared_ext} $libname.a'
12926 dynamic_linker
='OS/2 ld.exe'
12927 shlibpath_var
=LIBPATH
12930 osf3
* | osf4
* | osf5
*)
12934 soname_spec
='${libname}${release}${shared_ext}$major'
12935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 shlibpath_var
=LD_LIBRARY_PATH
12937 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12938 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946 soname_spec
='${libname}${release}${shared_ext}$major'
12947 shlibpath_var
=LD_LIBRARY_PATH
12948 shlibpath_overrides_runpath
=yes
12949 hardcode_into_libs
=yes
12950 # ldd complains unless libraries are executable
12951 postinstall_cmds
='chmod +x $lib'
12956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12957 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12958 shlibpath_var
=LD_LIBRARY_PATH
12959 shlibpath_overrides_runpath
=yes
12960 if test "$with_gnu_ld" = yes; then
12968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12969 soname_spec
='${libname}${release}${shared_ext}$major'
12970 shlibpath_var
=LD_LIBRARY_PATH
12971 case $host_vendor in
12973 shlibpath_overrides_runpath
=no
12975 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12976 runpath_var
=LD_RUN_PATH
12984 shlibpath_overrides_runpath
=no
12985 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12991 if test -d /usr
/nec
;then
12993 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12994 soname_spec
='$libname${shared_ext}.$major'
12995 shlibpath_var
=LD_LIBRARY_PATH
12999 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13000 version_type
=freebsd-elf
13003 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13004 soname_spec
='${libname}${release}${shared_ext}$major'
13005 shlibpath_var
=LD_LIBRARY_PATH
13006 hardcode_into_libs
=yes
13007 if test "$with_gnu_ld" = yes; then
13008 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13009 shlibpath_overrides_runpath
=no
13011 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13012 shlibpath_overrides_runpath
=yes
13015 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13019 sys_lib_dlsearch_path_spec
='/usr/lib'
13024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 soname_spec
='${libname}${release}${shared_ext}$major'
13026 shlibpath_var
=LD_LIBRARY_PATH
13033 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13034 echo "${ECHO_T}$dynamic_linker" >&6; }
13035 test "$dynamic_linker" = no
&& can_build_shared
=no
13037 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13038 if test "$GCC" = yes; then
13039 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13042 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13043 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13044 hardcode_action_CXX
=
13045 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13046 test -n "$runpath_var_CXX" || \
13047 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13049 # We can hardcode non-existant directories.
13050 if test "$hardcode_direct_CXX" != no
&&
13051 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13052 # have to relink, otherwise we might link with an installed library
13053 # when we should be linking with a yet-to-be-installed one
13054 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13055 test "$hardcode_minus_L_CXX" != no
; then
13056 # Linking always hardcodes the temporary library directory.
13057 hardcode_action_CXX
=relink
13059 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13060 hardcode_action_CXX
=immediate
13063 # We cannot hardcode anything, or else we can only hardcode existing
13065 hardcode_action_CXX
=unsupported
13067 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13068 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13070 if test "$hardcode_action_CXX" = relink
; then
13071 # Fast installation is not supported
13072 enable_fast_install
=no
13073 elif test "$shlibpath_overrides_runpath" = yes ||
13074 test "$enable_shared" = no
; then
13075 # Fast installation is not necessary
13076 enable_fast_install
=needless
13080 # The else clause should only fire when bootstrapping the
13081 # libtool distribution, otherwise you forgot to ship ltmain.sh
13082 # with your package, and you will get complaints that there are
13083 # no rules to generate ltmain.sh.
13084 if test -f "$ltmain"; then
13085 # See if we are running on zsh, and set the options which allow our commands through
13086 # without removal of \ escapes.
13087 if test -n "${ZSH_VERSION+set}" ; then
13088 setopt NO_GLOB_SUBST
13090 # Now quote all the things that may contain metacharacters while being
13091 # careful not to overquote the AC_SUBSTed values. We take copies of the
13092 # variables and quote the copies for generation of the libtool script.
13093 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13095 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13096 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13097 deplibs_check_method reload_flag reload_cmds need_locks \
13098 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13099 lt_cv_sys_global_symbol_to_c_name_address \
13100 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13101 old_postinstall_cmds old_postuninstall_cmds \
13105 lt_prog_compiler_wl_CXX \
13106 lt_prog_compiler_pic_CXX \
13107 lt_prog_compiler_static_CXX \
13108 lt_prog_compiler_no_builtin_flag_CXX \
13109 export_dynamic_flag_spec_CXX \
13110 thread_safe_flag_spec_CXX \
13111 whole_archive_flag_spec_CXX \
13112 enable_shared_with_static_runtimes_CXX \
13113 old_archive_cmds_CXX \
13114 old_archive_from_new_cmds_CXX \
13115 predep_objects_CXX \
13116 postdep_objects_CXX \
13119 compiler_lib_search_path_CXX \
13121 archive_expsym_cmds_CXX \
13122 postinstall_cmds_CXX \
13123 postuninstall_cmds_CXX \
13124 old_archive_from_expsyms_cmds_CXX \
13125 allow_undefined_flag_CXX \
13126 no_undefined_flag_CXX \
13127 export_symbols_cmds_CXX \
13128 hardcode_libdir_flag_spec_CXX \
13129 hardcode_libdir_flag_spec_ld_CXX \
13130 hardcode_libdir_separator_CXX \
13131 hardcode_automatic_CXX \
13133 module_expsym_cmds_CXX \
13134 lt_cv_prog_compiler_c_o_CXX \
13135 exclude_expsyms_CXX \
13136 include_expsyms_CXX
; do
13139 old_archive_cmds_CXX | \
13140 old_archive_from_new_cmds_CXX | \
13141 archive_cmds_CXX | \
13142 archive_expsym_cmds_CXX | \
13143 module_cmds_CXX | \
13144 module_expsym_cmds_CXX | \
13145 old_archive_from_expsyms_cmds_CXX | \
13146 export_symbols_cmds_CXX | \
13147 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13148 postinstall_cmds | postuninstall_cmds | \
13149 old_postinstall_cmds | old_postuninstall_cmds | \
13150 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13151 # Double-quote double-evaled strings.
13152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13161 *'\$0 --fallback-echo"')
13162 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13168 cat <<__EOF__ >> "$cfgfile"
13169 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13173 # Shell to use when invoking shell scripts.
13176 # Whether or not to build shared libraries.
13177 build_libtool_libs=$enable_shared
13179 # Whether or not to build static libraries.
13180 build_old_libs=$enable_static
13182 # Whether or not to add -lc for building shared libraries.
13183 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13185 # Whether or not to disallow shared libs when runtime libs are static
13186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13188 # Whether or not to optimize for fast installation.
13189 fast_install=$enable_fast_install
13192 host_alias=$host_alias
13196 # The build system.
13197 build_alias=$build_alias
13201 # An echo program that does not interpret backslashes.
13206 AR_FLAGS=$lt_AR_FLAGS
13211 # LTCC compiler flags.
13212 LTCFLAGS=$lt_LTCFLAGS
13214 # A language-specific compiler.
13215 CC=$lt_compiler_CXX
13217 # Is the compiler the GNU C compiler?
13223 # The linker used to build libraries.
13226 # Whether we need hard or soft links.
13229 # A BSD-compatible nm program.
13232 # A symbol stripping program
13235 # Used to examine libraries when file_magic_cmd begins "file"
13236 MAGIC_CMD=$MAGIC_CMD
13238 # Used on cygwin: DLL creation program.
13241 # Used on cygwin: object dumper.
13244 # Used on cygwin: assembler.
13247 # The name of the directory that contains temporary libtool files.
13250 # How to create reloadable object files.
13251 reload_flag=$lt_reload_flag
13252 reload_cmds=$lt_reload_cmds
13254 # How to pass a linker flag through the compiler.
13255 wl=$lt_lt_prog_compiler_wl_CXX
13257 # Object file suffix (normally "o").
13258 objext="$ac_objext"
13260 # Old archive suffix (normally "a").
13263 # Shared library suffix (normally ".so").
13264 shrext_cmds='$shrext_cmds'
13266 # Executable file suffix (normally "").
13269 # Additional compiler flags for building library objects.
13270 pic_flag=$lt_lt_prog_compiler_pic_CXX
13273 # What is the maximum length of a command?
13274 max_cmd_len=$lt_cv_sys_max_cmd_len
13276 # Does compiler simultaneously support -c and -o options?
13277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13279 # Must we lock files when doing compilation?
13280 need_locks=$lt_need_locks
13282 # Do we need the lib prefix for modules?
13283 need_lib_prefix=$need_lib_prefix
13285 # Do we need a version for libraries?
13286 need_version=$need_version
13288 # Whether dlopen is supported.
13289 dlopen_support=$enable_dlopen
13291 # Whether dlopen of programs is supported.
13292 dlopen_self=$enable_dlopen_self
13294 # Whether dlopen of statically linked programs is supported.
13295 dlopen_self_static=$enable_dlopen_self_static
13297 # Compiler flag to prevent dynamic linking.
13298 link_static_flag=$lt_lt_prog_compiler_static_CXX
13300 # Compiler flag to turn off builtin functions.
13301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13303 # Compiler flag to allow reflexive dlopens.
13304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13306 # Compiler flag to generate shared objects directly from archives.
13307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13309 # Compiler flag to generate thread-safe objects.
13310 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13312 # Library versioning type.
13313 version_type=$version_type
13315 # Format of library name prefix.
13316 libname_spec=$lt_libname_spec
13318 # List of archive names. First name is the real one, the rest are links.
13319 # The last name is the one that the linker finds with -lNAME.
13320 library_names_spec=$lt_library_names_spec
13322 # The coded name of the library, if different from the real name.
13323 soname_spec=$lt_soname_spec
13325 # Commands used to build and install an old-style archive.
13327 old_archive_cmds=$lt_old_archive_cmds_CXX
13328 old_postinstall_cmds=$lt_old_postinstall_cmds
13329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13331 # Create an old-style archive from a shared archive.
13332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13334 # Create a temporary old-style archive to link instead of a shared archive.
13335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13337 # Commands used to build and install a shared archive.
13338 archive_cmds=$lt_archive_cmds_CXX
13339 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13340 postinstall_cmds=$lt_postinstall_cmds
13341 postuninstall_cmds=$lt_postuninstall_cmds
13343 # Commands used to build a loadable module (assumed same as above if empty)
13344 module_cmds=$lt_module_cmds_CXX
13345 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13347 # Commands to strip libraries.
13348 old_striplib=$lt_old_striplib
13349 striplib=$lt_striplib
13351 # Dependencies to place before the objects being linked to create a
13353 predep_objects=$lt_predep_objects_CXX
13355 # Dependencies to place after the objects being linked to create a
13357 postdep_objects=$lt_postdep_objects_CXX
13359 # Dependencies to place before the objects being linked to create a
13361 predeps=$lt_predeps_CXX
13363 # Dependencies to place after the objects being linked to create a
13365 postdeps=$lt_postdeps_CXX
13367 # The library search path used internally by the compiler when linking
13368 # a shared library.
13369 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13371 # Method to check whether dependent libraries are shared objects.
13372 deplibs_check_method=$lt_deplibs_check_method
13374 # Command to use when deplibs_check_method == file_magic.
13375 file_magic_cmd=$lt_file_magic_cmd
13377 # Flag that allows shared libraries with undefined symbols to be built.
13378 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13380 # Flag that forces no undefined symbols.
13381 no_undefined_flag=$lt_no_undefined_flag_CXX
13383 # Commands used to finish a libtool library installation in a directory.
13384 finish_cmds=$lt_finish_cmds
13386 # Same as above, but a single script fragment to be evaled but not shown.
13387 finish_eval=$lt_finish_eval
13389 # Take the output of nm and produce a listing of raw symbols and C names.
13390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13392 # Transform the output of nm in a proper C declaration
13393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13395 # Transform the output of nm in a C name address pair
13396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13398 # This is the shared library runtime path variable.
13399 runpath_var=$runpath_var
13401 # This is the shared library path variable.
13402 shlibpath_var=$shlibpath_var
13404 # Is shlibpath searched before the hard-coded library search path?
13405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13407 # How to hardcode a shared library path into an executable.
13408 hardcode_action=$hardcode_action_CXX
13410 # Whether we should hardcode library paths into libraries.
13411 hardcode_into_libs=$hardcode_into_libs
13413 # Flag to hardcode \$libdir into a binary during linking.
13414 # This must work even if \$libdir does not exist.
13415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13417 # If ld is used when linking, flag to hardcode \$libdir into
13418 # a binary during linking. This must work even if \$libdir does
13420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13422 # Whether we need a single -rpath flag with a separated argument.
13423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13426 # resulting binary.
13427 hardcode_direct=$hardcode_direct_CXX
13429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13430 # resulting binary.
13431 hardcode_minus_L=$hardcode_minus_L_CXX
13433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13434 # the resulting binary.
13435 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13437 # Set to yes if building a shared library automatically hardcodes DIR into the library
13438 # and all subsequent libraries and executables linked against it.
13439 hardcode_automatic=$hardcode_automatic_CXX
13441 # Variables whose values should be saved in libtool wrapper scripts and
13442 # restored at relink time.
13443 variables_saved_for_relink="$variables_saved_for_relink"
13445 # Whether libtool must link a program against all its dependency libraries.
13446 link_all_deplibs=$link_all_deplibs_CXX
13448 # Compile-time system search path for libraries
13449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13451 # Run-time system search path for libraries
13452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13454 # Fix the shell variable \$srcfile for the compiler.
13455 fix_srcfile_path="$fix_srcfile_path_CXX"
13457 # Set to yes if exported symbols are required.
13458 always_export_symbols=$always_export_symbols_CXX
13460 # The commands to list exported symbols.
13461 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13463 # The commands to extract the exported symbol list from a shared archive.
13464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13466 # Symbols that should not be listed in the preloaded symbols.
13467 exclude_expsyms=$lt_exclude_expsyms_CXX
13469 # Symbols that must always be exported.
13470 include_expsyms=$lt_include_expsyms_CXX
13472 # ### END LIBTOOL TAG CONFIG: $tagname
13478 # If there is no Makefile yet, we rely on a make rule to execute
13479 # `config.status --recheck' to rerun these tests and create the
13480 # libtool script then.
13481 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13482 if test -f "$ltmain_in"; then
13483 test -f Makefile
&& make "$ltmain"
13489 ac_cpp
='$CXXCPP $CPPFLAGS'
13490 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13491 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13492 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13498 with_gnu_ldcxx
=$with_gnu_ld
13499 with_gnu_ld
=$lt_save_with_gnu_ld
13500 lt_cv_path_LDCXX
=$lt_cv_path_LD
13501 lt_cv_path_LD
=$lt_save_path_LD
13502 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13503 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13511 if test -n "$F77" && test "X$F77" != "Xno"; then
13514 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13515 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13516 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13519 archive_cmds_need_lc_F77
=no
13520 allow_undefined_flag_F77
=
13521 always_export_symbols_F77
=no
13522 archive_expsym_cmds_F77
=
13523 export_dynamic_flag_spec_F77
=
13524 hardcode_direct_F77
=no
13525 hardcode_libdir_flag_spec_F77
=
13526 hardcode_libdir_flag_spec_ld_F77
=
13527 hardcode_libdir_separator_F77
=
13528 hardcode_minus_L_F77
=no
13529 hardcode_automatic_F77
=no
13531 module_expsym_cmds_F77
=
13532 link_all_deplibs_F77
=unknown
13533 old_archive_cmds_F77
=$old_archive_cmds
13534 no_undefined_flag_F77
=
13535 whole_archive_flag_spec_F77
=
13536 enable_shared_with_static_runtimes_F77
=no
13538 # Source file extension for f77 test sources.
13541 # Object file extension for compiled f77 test sources.
13545 # Code to be used in simple compile tests
13546 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13548 # Code to be used in simple link tests
13549 lt_simple_link_test_code
=" program t\n end\n"
13551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13553 # If no C compiler was specified, use CC.
13556 # If no C compiler flags were specified, use CFLAGS.
13557 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13559 # Allow CC to be a program name with arguments.
13563 # save warnings/boilerplate of simple test code
13564 ac_outfile
=conftest.
$ac_objext
13565 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
13566 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13567 _lt_compiler_boilerplate
=`cat conftest.err`
13570 ac_outfile
=conftest.
$ac_objext
13571 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
13572 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13573 _lt_linker_boilerplate
=`cat conftest.err`
13577 # Allow CC to be a program name with arguments.
13582 for cc_temp
in $compiler""; do
13584 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13585 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13590 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13593 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13594 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13595 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13596 echo "${ECHO_T}$can_build_shared" >&6; }
13598 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13599 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13600 test "$can_build_shared" = "no" && enable_shared
=no
13602 # On AIX, shared libraries and static libraries use the same namespace, and
13603 # are all built from PIC.
13606 test "$enable_shared" = yes && enable_static
=no
13607 if test -n "$RANLIB"; then
13608 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13609 postinstall_cmds
='$RANLIB $lib'
13613 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13614 test "$enable_shared" = yes && enable_static
=no
13618 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13619 echo "${ECHO_T}$enable_shared" >&6; }
13621 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13622 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13623 # Make sure either enable_shared or enable_static is yes.
13624 test "$enable_shared" = yes || enable_static
=yes
13625 { echo "$as_me:$LINENO: result: $enable_static" >&5
13626 echo "${ECHO_T}$enable_static" >&6; }
13631 lt_prog_compiler_wl_F77
=
13632 lt_prog_compiler_pic_F77
=
13633 lt_prog_compiler_static_F77
=
13635 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13636 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13638 if test "$GCC" = yes; then
13639 lt_prog_compiler_wl_F77
='-Wl,'
13640 lt_prog_compiler_static_F77
='-static'
13644 # All AIX code is PIC.
13645 if test "$host_cpu" = ia64
; then
13646 # AIX 5 now supports IA64 processor
13647 lt_prog_compiler_static_F77
='-Bstatic'
13652 # FIXME: we need at least 68020 code to build shared libraries, but
13653 # adding the `-m68020' flag to GCC prevents building anything better,
13655 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13658 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13659 # PIC is the default for these OSes.
13662 mingw
* | pw32
* | os2
*)
13663 # This hack is so that the source file can tell whether it is being
13664 # built for inclusion in a dll (and should export symbols for example).
13665 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13668 darwin
* | rhapsody
*)
13669 # PIC is the default on this platform
13670 # Common symbols not allowed in MH_DYLIB files
13671 lt_prog_compiler_pic_F77
='-fno-common'
13675 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13676 # Instead, we relocate shared libraries at runtime.
13680 # Just because we use GCC doesn't mean we suddenly get shared libraries
13681 # on systems that don't support them.
13682 lt_prog_compiler_can_build_shared_F77
=no
13687 if test -d /usr
/nec
; then
13688 lt_prog_compiler_pic_F77
=-Kconform_pic
13693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13694 # not for PA HP-UX.
13700 lt_prog_compiler_pic_F77
='-fPIC'
13706 lt_prog_compiler_pic_F77
='-fPIC'
13710 # PORTME Check for flag to pass linker flags through the system compiler.
13713 lt_prog_compiler_wl_F77
='-Wl,'
13714 if test "$host_cpu" = ia64
; then
13715 # AIX 5 now supports IA64 processor
13716 lt_prog_compiler_static_F77
='-Bstatic'
13718 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13722 # PIC is the default on this platform
13723 # Common symbols not allowed in MH_DYLIB files
13724 case $cc_basename in
13726 lt_prog_compiler_pic_F77
='-qnocommon'
13727 lt_prog_compiler_wl_F77
='-Wl,'
13732 mingw
* | pw32
* | os2
*)
13733 # This hack is so that the source file can tell whether it is being
13734 # built for inclusion in a dll (and should export symbols for example).
13735 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13738 hpux9
* | hpux10
* | hpux11
*)
13739 lt_prog_compiler_wl_F77
='-Wl,'
13740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13741 # not for PA HP-UX.
13747 lt_prog_compiler_pic_F77
='+Z'
13750 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13751 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13754 irix5
* | irix6
* | nonstopux
*)
13755 lt_prog_compiler_wl_F77
='-Wl,'
13756 # PIC (with -KPIC) is the default.
13757 lt_prog_compiler_static_F77
='-non_shared'
13761 lt_prog_compiler_pic_F77
='-KPIC'
13762 lt_prog_compiler_static_F77
='-Bstatic'
13766 case $cc_basename in
13768 lt_prog_compiler_wl_F77
='-Wl,'
13769 lt_prog_compiler_pic_F77
='-KPIC'
13770 lt_prog_compiler_static_F77
='-static'
13772 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
13773 # Portland Group compilers (*not* the Pentium gcc compiler,
13774 # which looks to be a dead project)
13775 lt_prog_compiler_wl_F77
='-Wl,'
13776 lt_prog_compiler_pic_F77
='-fpic'
13777 lt_prog_compiler_static_F77
='-Bstatic'
13780 lt_prog_compiler_wl_F77
='-Wl,'
13781 # All Alpha code is PIC.
13782 lt_prog_compiler_static_F77
='-non_shared'
13787 osf3
* | osf4
* | osf5
*)
13788 lt_prog_compiler_wl_F77
='-Wl,'
13789 # All OSF/1 code is PIC.
13790 lt_prog_compiler_static_F77
='-non_shared'
13794 lt_prog_compiler_pic_F77
='-KPIC'
13795 lt_prog_compiler_static_F77
='-Bstatic'
13796 case $cc_basename in
13797 f77
* | f90
* | f95
*)
13798 lt_prog_compiler_wl_F77
='-Qoption ld ';;
13800 lt_prog_compiler_wl_F77
='-Wl,';;
13805 lt_prog_compiler_wl_F77
='-Qoption ld '
13806 lt_prog_compiler_pic_F77
='-PIC'
13807 lt_prog_compiler_static_F77
='-Bstatic'
13810 sysv4 | sysv4.2uw2
* | sysv4.3
*)
13811 lt_prog_compiler_wl_F77
='-Wl,'
13812 lt_prog_compiler_pic_F77
='-KPIC'
13813 lt_prog_compiler_static_F77
='-Bstatic'
13817 if test -d /usr
/nec
;then
13818 lt_prog_compiler_pic_F77
='-Kconform_pic'
13819 lt_prog_compiler_static_F77
='-Bstatic'
13823 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13824 lt_prog_compiler_wl_F77
='-Wl,'
13825 lt_prog_compiler_pic_F77
='-KPIC'
13826 lt_prog_compiler_static_F77
='-Bstatic'
13830 lt_prog_compiler_wl_F77
='-Wl,'
13831 lt_prog_compiler_can_build_shared_F77
=no
13835 lt_prog_compiler_pic_F77
='-pic'
13836 lt_prog_compiler_static_F77
='-Bstatic'
13840 lt_prog_compiler_can_build_shared_F77
=no
13845 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13846 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13849 # Check to make sure the PIC flag actually works.
13851 if test -n "$lt_prog_compiler_pic_F77"; then
13853 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13854 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13855 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 lt_prog_compiler_pic_works_F77
=no
13859 ac_outfile
=conftest.
$ac_objext
13860 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13861 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13862 # Insert the option either (1) after the last *FLAGS variable, or
13863 # (2) before a word containing "conftest.", or (3) at the end.
13864 # Note that $ac_compile itself does not contain backslashes and begins
13865 # with a dollar sign (not a hyphen), so the echo should work correctly.
13866 # The option is referenced via a variable to avoid confusing sed.
13867 lt_compile
=`echo "$ac_compile" | $SED \
13868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13870 -e 's:$: $lt_compiler_flag:'`
13871 (eval echo "\"\$as_me:13871: $lt_compile\"" >&5)
13872 (eval "$lt_compile" 2>conftest.err
)
13874 cat conftest.err
>&5
13875 echo "$as_me:13875: \$? = $ac_status" >&5
13876 if (exit $ac_status) && test -s "$ac_outfile"; then
13877 # The compiler can only warn and ignore the option if not recognized
13878 # So say no if there are warnings other than the usual output.
13879 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
13880 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13881 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13882 lt_prog_compiler_pic_works_F77
=yes
13888 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13889 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13891 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13892 case $lt_prog_compiler_pic_F77 in
13894 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13897 lt_prog_compiler_pic_F77
=
13898 lt_prog_compiler_can_build_shared_F77
=no
13903 # For platforms which do not support PIC, -DPIC is meaningless:
13905 lt_prog_compiler_pic_F77
=
13908 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13913 # Check to make sure the static flag actually works.
13915 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
13916 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13917 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13918 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 lt_prog_compiler_static_works_F77
=no
13922 save_LDFLAGS
="$LDFLAGS"
13923 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13924 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
13925 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13926 # The linker can only warn and ignore the option if not recognized
13927 # So say no if there are warnings
13928 if test -s conftest.err
; then
13929 # Append any errors to the config.log.
13930 cat conftest.err
1>&5
13931 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
13932 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13933 if diff conftest.exp conftest.er2
>/dev
/null
; then
13934 lt_prog_compiler_static_works_F77
=yes
13937 lt_prog_compiler_static_works_F77
=yes
13941 LDFLAGS
="$save_LDFLAGS"
13944 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13945 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13947 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
13950 lt_prog_compiler_static_F77
=
13954 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13955 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13956 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 lt_cv_prog_compiler_c_o_F77
=no
13960 $rm -r conftest
2>/dev
/null
13964 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13966 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13967 # Insert the option either (1) after the last *FLAGS variable, or
13968 # (2) before a word containing "conftest.", or (3) at the end.
13969 # Note that $ac_compile itself does not contain backslashes and begins
13970 # with a dollar sign (not a hyphen), so the echo should work correctly.
13971 lt_compile
=`echo "$ac_compile" | $SED \
13972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13974 -e 's:$: $lt_compiler_flag:'`
13975 (eval echo "\"\$as_me:13975: $lt_compile\"" >&5)
13976 (eval "$lt_compile" 2>out
/conftest.err
)
13978 cat out
/conftest.err
>&5
13979 echo "$as_me:13979: \$? = $ac_status" >&5
13980 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13982 # The compiler can only warn and ignore the option if not recognized
13983 # So say no if there are warnings
13984 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
13985 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13986 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13987 lt_cv_prog_compiler_c_o_F77
=yes
13992 # SGI C++ compiler will create directory out/ii_files/ for
13993 # template instantiation
13994 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13995 $rm out
/* && rmdir out
14001 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14002 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14005 hard_links
="nottested"
14006 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14007 # do not overwrite the value of need_locks provided by the user
14008 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14009 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14012 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14014 ln conftest.a conftest.b
2>&5 || hard_links
=no
14015 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14016 { echo "$as_me:$LINENO: result: $hard_links" >&5
14017 echo "${ECHO_T}$hard_links" >&6; }
14018 if test "$hard_links" = no
; then
14019 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14020 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14027 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14031 allow_undefined_flag_F77
=
14032 enable_shared_with_static_runtimes_F77
=no
14034 archive_expsym_cmds_F77
=
14035 old_archive_From_new_cmds_F77
=
14036 old_archive_from_expsyms_cmds_F77
=
14037 export_dynamic_flag_spec_F77
=
14038 whole_archive_flag_spec_F77
=
14039 thread_safe_flag_spec_F77
=
14040 hardcode_libdir_flag_spec_F77
=
14041 hardcode_libdir_flag_spec_ld_F77
=
14042 hardcode_libdir_separator_F77
=
14043 hardcode_direct_F77
=no
14044 hardcode_minus_L_F77
=no
14045 hardcode_shlibpath_var_F77
=unsupported
14046 link_all_deplibs_F77
=unknown
14047 hardcode_automatic_F77
=no
14049 module_expsym_cmds_F77
=
14050 always_export_symbols_F77
=no
14051 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14052 # include_expsyms should be a list of space-separated symbols to be *always*
14053 # included in the symbol list
14054 include_expsyms_F77
=
14055 # exclude_expsyms can be an extended regexp of symbols to exclude
14056 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14057 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14058 # as well as any symbol that contains `d'.
14059 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14060 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14061 # platforms (ab)use it in PIC code, but their linkers get confused if
14062 # the symbol is explicitly referenced. Since portable code cannot
14063 # rely on this symbol name, it's probably fine to never include it in
14064 # preloaded symbol tables.
14065 extract_expsyms_cmds
=
14066 # Just being paranoid about ensuring that cc_basename is set.
14067 for cc_temp
in $compiler""; do
14069 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14070 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14075 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14078 cygwin
* | mingw
* | pw32
*)
14079 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14080 # When not using gcc, we currently assume that we are using
14081 # Microsoft Visual C++.
14082 if test "$GCC" != yes; then
14087 # we just hope/assume this is gcc and not c89 (= MSVC++)
14096 if test "$with_gnu_ld" = yes; then
14097 # If archive_cmds runs LD, not CC, wlarc should be empty
14100 # Set some defaults for GNU ld with shared library support. These
14101 # are reset later if shared libraries are not supported. Putting them
14102 # here allows them to be overridden if necessary.
14103 runpath_var
=LD_RUN_PATH
14104 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14105 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14106 # ancient GNU ld didn't support --whole-archive et. al.
14107 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14108 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14110 whole_archive_flag_spec_F77
=
14112 supports_anon_versioning
=no
14113 case `$LD -v 2>/dev/null` in
14114 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14115 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14116 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14117 *\
2.11.
*) ;; # other 2.11 versions
14118 *) supports_anon_versioning
=yes ;;
14121 # See if GNU ld supports shared libraries.
14123 aix3
* | aix4
* | aix5
*)
14124 # On AIX/PPC, the GNU linker is very broken
14125 if test "$host_cpu" != ia64
; then
14129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14130 *** to be unable to reliably create shared libraries on AIX.
14131 *** Therefore, libtool is disabling shared libraries support. If you
14132 *** really care for shared libraries, you may want to modify your PATH
14133 *** so that a non-GNU linker is found, and then restart.
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
14144 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14145 # that the semantics of dynamic libraries on AmigaOS, at least up
14146 # to version 4, is to share data among multiple programs linked
14147 # with the same dynamic library. Since this doesn't match the
14148 # behavior of shared libraries on other platforms, we can't use
14154 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14155 allow_undefined_flag_F77
=unsupported
14156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14157 # support --undefined. This deserves some investigation. FIXME
14158 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14164 cygwin
* | mingw
* | pw32
*)
14165 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14166 # as there is no search path for DLLs.
14167 hardcode_libdir_flag_spec_F77
='-L$libdir'
14168 allow_undefined_flag_F77
=unsupported
14169 always_export_symbols_F77
=no
14170 enable_shared_with_static_runtimes_F77
=yes
14171 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14173 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14174 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14175 # If the export-symbols file already is a .def file (1st line
14176 # is EXPORTS), use it as is; otherwise, prepend...
14177 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14178 cp $export_symbols $output_objdir/$soname.def;
14180 echo EXPORTS > $output_objdir/$soname.def;
14181 cat $export_symbols >> $output_objdir/$soname.def;
14183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14190 hardcode_direct_F77
=no
14191 hardcode_shlibpath_var_F77
=no
14192 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14193 export_dynamic_flag_spec_F77
='${wl}-E'
14194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14195 # Instead, shared libraries are loaded at an image base (0x10000000 by
14196 # default) and relocated if they conflict, which is a slow very memory
14197 # consuming and fragmenting process. To avoid this, we pick a random,
14198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14199 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14200 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'
14201 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'
14205 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14207 case $cc_basename,$host_cpu in
14208 pgcc
*) # Portland Group C compiler
14209 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'
14210 tmp_addflag
=' $pic_flag'
14212 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14213 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'
14214 tmp_addflag
=' $pic_flag -Mnomain' ;;
14215 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14216 tmp_addflag
=' -i_dynamic' ;;
14217 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14218 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14219 ifc
* | ifort
*) # Intel Fortran compiler
14220 tmp_addflag
=' -nofor_main' ;;
14222 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14224 if test $supports_anon_versioning = yes; then
14225 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14227 $echo "local: *; };" >> $output_objdir/$libname.ver~
14228 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14236 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14237 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14240 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14241 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14246 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14250 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14251 *** create shared libraries on Solaris systems. Therefore, libtool
14252 *** is disabling shared libraries support. We urge you to upgrade GNU
14253 *** binutils to release 2.9.1 or newer. Another option is to modify
14254 *** your PATH or compiler configuration so that the native linker is
14255 *** used, and then restart.
14258 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14259 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14260 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14266 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14267 case `$LD -v 2>&1` in
14268 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14272 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14273 *** reliably create shared libraries on SCO systems. Therefore, libtool
14274 *** is disabling shared libraries support. We urge you to upgrade GNU
14275 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14276 *** your PATH or compiler configuration so that the native linker is
14277 *** used, and then restart.
14282 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14283 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14284 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14285 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14294 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14296 hardcode_direct_F77
=yes
14297 hardcode_shlibpath_var_F77
=no
14301 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14302 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14303 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14310 if test "$ld_shlibs_F77" = no
; then
14312 hardcode_libdir_flag_spec_F77
=
14313 export_dynamic_flag_spec_F77
=
14314 whole_archive_flag_spec_F77
=
14317 # PORTME fill in a description of your system's linker (not GNU ld)
14320 allow_undefined_flag_F77
=unsupported
14321 always_export_symbols_F77
=yes
14322 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'
14323 # Note: this linker hardcodes the directories in LIBPATH if there
14324 # are no directories specified by -L.
14325 hardcode_minus_L_F77
=yes
14326 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14327 # Neither direct hardcoding nor static linking is supported with a
14329 hardcode_direct_F77
=unsupported
14334 if test "$host_cpu" = ia64
; then
14335 # On IA64, the linker does run time linking by default, so we don't
14336 # have to do anything special.
14337 aix_use_runtimelinking
=no
14338 exp_sym_flag
='-Bexport'
14341 # If we're using GNU nm, then we don't want the "-C" option.
14342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14343 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14344 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'
14346 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'
14348 aix_use_runtimelinking
=no
14350 # Test if we are trying to use run time linking or normal
14351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14352 # need to do runtime linking.
14353 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14354 for ld_flag
in $LDFLAGS; do
14355 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14356 aix_use_runtimelinking
=yes
14363 exp_sym_flag
='-bexport'
14364 no_entry_flag
='-bnoentry'
14367 # When large executables or shared objects are built, AIX ld can
14368 # have problems creating the table of contents. If linking a library
14369 # or program results in "error TOC overflow" add -mminimal-toc to
14370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14373 archive_cmds_F77
=''
14374 hardcode_direct_F77
=yes
14375 hardcode_libdir_separator_F77
=':'
14376 link_all_deplibs_F77
=yes
14378 if test "$GCC" = yes; then
14379 case $host_os in aix4.
[012]|aix4.
[012].
*)
14380 # We only want to do this on AIX 4.2 and lower, the check
14381 # below for broken collect2 doesn't work under 4.3+
14382 collect2name
=`${CC} -print-prog-name=collect2`
14383 if test -f "$collect2name" && \
14384 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14386 # We have reworked collect2
14387 hardcode_direct_F77
=yes
14389 # We have old collect2
14390 hardcode_direct_F77
=unsupported
14391 # It fails to find uninstalled libraries when the uninstalled
14392 # path is not listed in the libpath. Setting hardcode_minus_L
14393 # to unsupported forces relinking
14394 hardcode_minus_L_F77
=yes
14395 hardcode_libdir_flag_spec_F77
='-L$libdir'
14396 hardcode_libdir_separator_F77
=
14400 shared_flag
='-shared'
14401 if test "$aix_use_runtimelinking" = yes; then
14402 shared_flag
="$shared_flag "'${wl}-G'
14406 if test "$host_cpu" = ia64
; then
14407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14408 # chokes on -Wl,-G. The following line is correct:
14411 if test "$aix_use_runtimelinking" = yes; then
14412 shared_flag
='${wl}-G'
14414 shared_flag
='${wl}-bM:SRE'
14419 # It seems that -bexpall does not export symbols beginning with
14420 # underscore (_), so it is better to generate a list of symbols to export.
14421 always_export_symbols_F77
=yes
14422 if test "$aix_use_runtimelinking" = yes; then
14423 # Warning - without using the other runtime loading flags (-brtl),
14424 # -berok will link without error, but may produce a broken library.
14425 allow_undefined_flag_F77
='-berok'
14426 # Determine the default libpath from the value encoded in an empty executable.
14427 cat >conftest.
$ac_ext <<_ACEOF
14432 rm -f conftest.
$ac_objext conftest
$ac_exeext
14433 if { (ac_try
="$ac_link"
14434 case "(($ac_try" in
14435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_link") 2>conftest.er1
14441 grep -v '^ *+' conftest.er1 >conftest.err
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } && {
14446 test -z "$ac_f77_werror_flag" ||
14447 test ! -s conftest.err
14448 } && test -s conftest$ac_exeext &&
14449 $as_test_x conftest$ac_exeext; then
14451 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14453 # Check for a 64-bit object if we didn't find anything.
14454 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; }
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14464 conftest$ac_exeext conftest.$ac_ext
14465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14467 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14468 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"
14470 if test "$host_cpu" = ia64; then
14471 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14472 allow_undefined_flag_F77="-z nodefs"
14473 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"
14475 # Determine the default libpath from the value encoded in an empty executable.
14476 cat >conftest.$ac_ext <<_ACEOF
14481 rm -f conftest.$ac_objext conftest$ac_exeext
14482 if { (ac_try="$ac_link"
14483 case "(($ac_try" in
14484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14485 *) ac_try_echo
=$ac_try;;
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_link") 2>conftest.er1
14490 grep -v '^ *+' conftest.er1
>conftest.err
14492 cat conftest.err
>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_f77_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest
$ac_exeext &&
14498 $as_test_x conftest
$ac_exeext; then
14500 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14502 # Check for a 64-bit object if we didn't find anything.
14503 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; }
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.
$ac_ext >&5
14512 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14513 conftest
$ac_exeext conftest.
$ac_ext
14514 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14516 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14517 # Warning - without using the other run time loading flags,
14518 # -berok will link without error, but may produce a broken library.
14519 no_undefined_flag_F77
=' ${wl}-bernotok'
14520 allow_undefined_flag_F77
=' ${wl}-berok'
14521 # Exported symbols can be pulled into shared objects from archives
14522 whole_archive_flag_spec_F77
='$convenience'
14523 archive_cmds_need_lc_F77
=yes
14524 # This is similar to how AIX traditionally builds its shared libraries.
14525 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'
14531 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)'
14532 hardcode_libdir_flag_spec_F77
='-L$libdir'
14533 hardcode_minus_L_F77
=yes
14534 # see comment about different semantics on the GNU ld section
14539 export_dynamic_flag_spec_F77
=-rdynamic
14542 cygwin
* | mingw
* | pw32
*)
14543 # When not using gcc, we currently assume that we are using
14544 # Microsoft Visual C++.
14545 # hardcode_libdir_flag_spec is actually meaningless, as there is
14546 # no search path for DLLs.
14547 hardcode_libdir_flag_spec_F77
=' '
14548 allow_undefined_flag_F77
=unsupported
14549 # Tell ltmain to make .lib files, not .a files.
14551 # Tell ltmain to make .dll files, not .so files.
14553 # FIXME: Setting linknames here is a bad hack.
14554 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14555 # The linker will automatically build a .lib file if we build a DLL.
14556 old_archive_From_new_cmds_F77
='true'
14557 # FIXME: Should let the user specify the lib program.
14558 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14559 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14560 enable_shared_with_static_runtimes_F77
=yes
14563 darwin
* | rhapsody
*)
14565 rhapsody
* | darwin1.
[012])
14566 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14569 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14570 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14572 case ${MACOSX_DEPLOYMENT_TARGET} in
14574 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14577 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14583 archive_cmds_need_lc_F77
=no
14584 hardcode_direct_F77
=no
14585 hardcode_automatic_F77
=yes
14586 hardcode_shlibpath_var_F77
=unsupported
14587 whole_archive_flag_spec_F77
=''
14588 link_all_deplibs_F77
=yes
14589 if test "$GCC" = yes ; then
14590 output_verbose_link_cmd
='echo'
14591 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14592 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14594 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}'
14595 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}'
14597 case $cc_basename in
14599 output_verbose_link_cmd
='echo'
14600 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14601 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14602 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14603 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}'
14604 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}'
14614 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14615 hardcode_libdir_flag_spec_F77
='-L$libdir'
14616 hardcode_shlibpath_var_F77
=no
14623 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14624 # support. Future versions do this automatically, but an explicit c++rt0.o
14625 # does not break anything, and helps significantly (at the cost of a little
14628 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14629 hardcode_libdir_flag_spec_F77
='-R$libdir'
14630 hardcode_direct_F77
=yes
14631 hardcode_shlibpath_var_F77
=no
14634 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14636 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14637 hardcode_direct_F77
=yes
14638 hardcode_minus_L_F77
=yes
14639 hardcode_shlibpath_var_F77
=no
14642 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14643 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14644 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14645 hardcode_libdir_flag_spec_F77
='-R$libdir'
14646 hardcode_direct_F77
=yes
14647 hardcode_shlibpath_var_F77
=no
14651 if test "$GCC" = yes; then
14652 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'
14654 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'
14656 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14657 hardcode_libdir_separator_F77
=:
14658 hardcode_direct_F77
=yes
14660 # hardcode_minus_L: Not really in the search PATH,
14661 # but as the default location of the library.
14662 hardcode_minus_L_F77
=yes
14663 export_dynamic_flag_spec_F77
='${wl}-E'
14667 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14668 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14670 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14672 if test "$with_gnu_ld" = no
; then
14673 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14674 hardcode_libdir_separator_F77
=:
14676 hardcode_direct_F77
=yes
14677 export_dynamic_flag_spec_F77
='${wl}-E'
14679 # hardcode_minus_L: Not really in the search PATH,
14680 # but as the default location of the library.
14681 hardcode_minus_L_F77
=yes
14686 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14689 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14692 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14695 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14701 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14704 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14707 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14711 if test "$with_gnu_ld" = no
; then
14712 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14713 hardcode_libdir_separator_F77
=:
14717 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14718 hardcode_direct_F77
=no
14719 hardcode_shlibpath_var_F77
=no
14722 hardcode_direct_F77
=yes
14723 export_dynamic_flag_spec_F77
='${wl}-E'
14725 # hardcode_minus_L: Not really in the search PATH,
14726 # but as the default location of the library.
14727 hardcode_minus_L_F77
=yes
14733 irix5
* | irix6
* | nonstopux
*)
14734 if test "$GCC" = yes; then
14735 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'
14737 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'
14738 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14740 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14741 hardcode_libdir_separator_F77
=:
14742 link_all_deplibs_F77
=yes
14746 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14747 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14749 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14751 hardcode_libdir_flag_spec_F77
='-R$libdir'
14752 hardcode_direct_F77
=yes
14753 hardcode_shlibpath_var_F77
=no
14757 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14758 hardcode_direct_F77
=yes
14759 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14760 hardcode_libdir_separator_F77
=:
14761 hardcode_shlibpath_var_F77
=no
14765 hardcode_direct_F77
=yes
14766 hardcode_shlibpath_var_F77
=no
14767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14768 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14769 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14770 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14771 export_dynamic_flag_spec_F77
='${wl}-E'
14774 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14775 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14776 hardcode_libdir_flag_spec_F77
='-R$libdir'
14779 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14780 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14787 hardcode_libdir_flag_spec_F77
='-L$libdir'
14788 hardcode_minus_L_F77
=yes
14789 allow_undefined_flag_F77
=unsupported
14790 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'
14791 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14795 if test "$GCC" = yes; then
14796 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14797 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'
14799 allow_undefined_flag_F77
=' -expect_unresolved \*'
14800 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'
14802 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14803 hardcode_libdir_separator_F77
=:
14806 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14807 if test "$GCC" = yes; then
14808 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14809 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'
14810 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14812 allow_undefined_flag_F77
=' -expect_unresolved \*'
14813 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'
14814 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~
14815 $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'
14817 # Both c and cxx compiler support -rpath directly
14818 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14820 hardcode_libdir_separator_F77
=:
14824 no_undefined_flag_F77
=' -z text'
14825 if test "$GCC" = yes; then
14827 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14829 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14832 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14833 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14834 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14836 hardcode_libdir_flag_spec_F77
='-R$libdir'
14837 hardcode_shlibpath_var_F77
=no
14839 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14841 # The compiler driver will combine linker options so we
14842 # cannot just pass the convience library names through
14843 # without $wl, iff we do not link with $LD.
14844 # Luckily, gcc supports the same syntax we need for Sun Studio.
14845 # Supported since Solaris 2.6 (maybe 2.5.1?)
14848 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
14850 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' ;;
14853 link_all_deplibs_F77
=yes
14857 if test "x$host_vendor" = xsequent
; then
14858 # Use $CC to link under sequent, because it throws in some extra .o
14859 # files that make .init and .fini sections work.
14860 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14862 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14864 hardcode_libdir_flag_spec_F77
='-L$libdir'
14865 hardcode_direct_F77
=yes
14866 hardcode_minus_L_F77
=yes
14867 hardcode_shlibpath_var_F77
=no
14871 case $host_vendor in
14873 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14874 hardcode_direct_F77
=yes # is this really true???
14877 ## LD is ld it makes a PLAMLIB
14878 ## CC just makes a GrossModule.
14879 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14880 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14881 hardcode_direct_F77
=no
14884 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14885 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14888 runpath_var
='LD_RUN_PATH'
14889 hardcode_shlibpath_var_F77
=no
14893 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14894 hardcode_shlibpath_var_F77
=no
14895 export_dynamic_flag_spec_F77
='-Bexport'
14899 if test -d /usr
/nec
; then
14900 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14901 hardcode_shlibpath_var_F77
=no
14902 runpath_var
=LD_RUN_PATH
14903 hardcode_runpath_var
=yes
14908 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
14909 no_undefined_flag_F77
='${wl}-z,text'
14910 archive_cmds_need_lc_F77
=no
14911 hardcode_shlibpath_var_F77
=no
14912 runpath_var
='LD_RUN_PATH'
14914 if test "$GCC" = yes; then
14915 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14918 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14919 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14923 sysv5
* | sco3.2v5
* | sco5v6
*)
14924 # Note: We can NOT use -z defs as we might desire, because we do not
14925 # link with -lc, and that would cause any symbols used from libc to
14926 # always be unresolved, which means just about no library would
14927 # ever link correctly. If we're not using GNU ld we use -z text
14928 # though, which does catch some bad symbols but isn't as heavy-handed
14930 no_undefined_flag_F77
='${wl}-z,text'
14931 allow_undefined_flag_F77
='${wl}-z,nodefs'
14932 archive_cmds_need_lc_F77
=no
14933 hardcode_shlibpath_var_F77
=no
14934 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14935 hardcode_libdir_separator_F77
=':'
14936 link_all_deplibs_F77
=yes
14937 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14938 runpath_var
='LD_RUN_PATH'
14940 if test "$GCC" = yes; then
14941 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14942 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14944 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14945 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14950 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14951 hardcode_libdir_flag_spec_F77
='-L$libdir'
14952 hardcode_shlibpath_var_F77
=no
14961 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14962 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14963 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14966 # Do we need to explicitly link libc?
14968 case "x$archive_cmds_need_lc_F77" in
14970 # Assume -lc should be added
14971 archive_cmds_need_lc_F77
=yes
14973 if test "$enable_shared" = yes && test "$GCC" = yes; then
14974 case $archive_cmds_F77 in
14976 # FIXME: we may have to deal with multi-command sequences.
14979 # Test whether the compiler implicitly links with -lc since on some
14980 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14981 # to ld, don't add -lc before -lgcc.
14982 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14983 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14985 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14988 (eval $ac_compile) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } 2>conftest.err
; then
14994 libobjs
=conftest.
$ac_objext
14996 wl
=$lt_prog_compiler_wl_F77
14997 pic_flag
=$lt_prog_compiler_pic_F77
15003 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15004 allow_undefined_flag_F77
=
15005 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15006 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }
15011 archive_cmds_need_lc_F77
=no
15013 archive_cmds_need_lc_F77
=yes
15015 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15017 cat conftest.err
1>&5
15020 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15021 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15028 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15029 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15030 library_names_spec
=
15031 libname_spec
='lib$name'
15035 postuninstall_cmds
=
15039 shlibpath_overrides_runpath
=unknown
15041 dynamic_linker
="$host_os ld.so"
15042 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15043 if test "$GCC" = yes; then
15044 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15045 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15046 # if the path contains ";" then we assume it to be the separator
15047 # otherwise default to the standard path separator (i.e. ":") - it is
15048 # assumed that no part of a normal pathname contains ";" but that should
15049 # okay in the real world where ";" in dirpaths is itself problematic.
15050 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15052 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15055 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15057 need_lib_prefix
=unknown
15058 hardcode_into_libs
=no
15060 # when you set need_version to no, make sure it does not cause -set_version
15061 # flags to be left without arguments
15062 need_version
=unknown
15067 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15068 shlibpath_var
=LIBPATH
15070 # AIX 3 has no versioning support, so we append a major version to the name.
15071 soname_spec
='${libname}${release}${shared_ext}$major'
15078 hardcode_into_libs
=yes
15079 if test "$host_cpu" = ia64
; then
15080 # AIX 5 supports IA64
15081 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15082 shlibpath_var
=LD_LIBRARY_PATH
15084 # With GCC up to 2.95.x, collect2 would create an import file
15085 # for dependence libraries. The import file would start with
15086 # the line `#! .'. This would cause the generated library to
15087 # depend on `.', always an invalid library. This was fixed in
15088 # development snapshots of GCC prior to 3.0.
15090 aix4 | aix4.
[01] | aix4.
[01].
*)
15091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15093 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15096 can_build_shared
=no
15100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15101 # soname into executable. Probably we can add versioning support to
15102 # collect2, so additional links can be useful in future.
15103 if test "$aix_use_runtimelinking" = yes; then
15104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15105 # instead of lib<name>.a to let people know that these are not
15106 # typical AIX shared libraries.
15107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109 # We preserve .a as extension for shared libraries through AIX4.2
15110 # and later when we are not doing run time linking.
15111 library_names_spec
='${libname}${release}.a $libname.a'
15112 soname_spec
='${libname}${release}${shared_ext}$major'
15114 shlibpath_var
=LIBPATH
15119 library_names_spec
='$libname.ixlibrary $libname.a'
15120 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15121 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'
15125 library_names_spec
='${libname}${shared_ext}'
15126 dynamic_linker
="$host_os ld.so"
15127 shlibpath_var
=LIBRARY_PATH
15133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 soname_spec
='${libname}${release}${shared_ext}$major'
15135 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15136 shlibpath_var
=LD_LIBRARY_PATH
15137 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15138 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15139 # the default ld.so.conf also contains /usr/contrib/lib and
15140 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15141 # libtool to hard-code these into programs
15144 cygwin
* | mingw
* | pw32
*)
15145 version_type
=windows
15150 case $GCC,$host_os in
15151 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15152 library_names_spec
='$libname.dll.a'
15153 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15154 postinstall_cmds
='base_file=`basename \${file}`~
15155 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15156 dldir=$destdir/`dirname \$dlpath`~
15157 test -d \$dldir || mkdir -p \$dldir~
15158 $install_prog $dir/$dlname \$dldir/$dlname~
15159 chmod a+x \$dldir/$dlname'
15160 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15161 dlpath=$dir/\$dldll~
15163 shlibpath_overrides_runpath
=yes
15167 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15168 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15169 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15172 # MinGW DLLs use traditional 'lib' prefix
15173 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15174 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15175 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15176 # It is most probably a Windows format PATH printed by
15177 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15178 # path with ; separators, and with drive letters. We can handle the
15179 # drive letters (cygwin fileutils understands them), so leave them,
15180 # especially as we might pass files found there to a mingw objdump,
15181 # which wouldn't understand a cygwinified path. Ahh.
15182 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15184 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15188 # pw32 DLLs use 'pw' prefix rather than 'lib'
15189 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15195 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15198 dynamic_linker
='Win32 ld.exe'
15199 # FIXME: first we should search . and the directory the executable is in
15203 darwin
* | rhapsody
*)
15204 dynamic_linker
="$host_os dyld"
15205 version_type
=darwin
15208 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15209 soname_spec
='${libname}${release}${major}$shared_ext'
15210 shlibpath_overrides_runpath
=yes
15211 shlibpath_var
=DYLD_LIBRARY_PATH
15212 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15213 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15214 if test "$GCC" = yes; then
15215 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"`
15217 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15219 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15227 soname_spec
='${libname}${release}${shared_ext}$major'
15228 shlibpath_var
=LD_LIBRARY_PATH
15239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15240 soname_spec
='${libname}${release}${shared_ext}$major'
15241 shlibpath_var
=LD_LIBRARY_PATH
15242 shlibpath_overrides_runpath
=no
15243 hardcode_into_libs
=yes
15244 dynamic_linker
='GNU ld.so'
15247 freebsd
* | dragonfly
*)
15248 # DragonFly does not have aout. When/if they implement a new
15249 # versioning mechanism, adjust this.
15250 if test -x /usr
/bin
/objformat
; then
15251 objformat
=`/usr/bin/objformat`
15254 freebsd
[123]*) objformat
=aout
;;
15255 *) objformat
=elf
;;
15258 version_type
=freebsd-
$objformat
15259 case $version_type in
15261 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15266 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15270 shlibpath_var
=LD_LIBRARY_PATH
15273 shlibpath_overrides_runpath
=yes
15275 freebsd3.
[01]* | freebsdelf3.
[01]*)
15276 shlibpath_overrides_runpath
=yes
15277 hardcode_into_libs
=yes
15279 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15280 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15281 shlibpath_overrides_runpath
=no
15282 hardcode_into_libs
=yes
15284 freebsd
*) # from 4.6 on
15285 shlibpath_overrides_runpath
=yes
15286 hardcode_into_libs
=yes
15295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15296 soname_spec
='${libname}${release}${shared_ext}$major'
15297 shlibpath_var
=LD_LIBRARY_PATH
15298 hardcode_into_libs
=yes
15301 hpux9
* | hpux10
* | hpux11
*)
15302 # Give a soname corresponding to the major version so that dld.sl refuses to
15303 # link against other versions.
15310 hardcode_into_libs
=yes
15311 dynamic_linker
="$host_os dld.so"
15312 shlibpath_var
=LD_LIBRARY_PATH
15313 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315 soname_spec
='${libname}${release}${shared_ext}$major'
15316 if test "X$HPUX_IA64_MODE" = X32
; then
15317 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15319 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15321 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15325 hardcode_into_libs
=yes
15326 dynamic_linker
="$host_os dld.sl"
15327 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15328 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330 soname_spec
='${libname}${release}${shared_ext}$major'
15331 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15332 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15336 dynamic_linker
="$host_os dld.sl"
15337 shlibpath_var
=SHLIB_PATH
15338 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec
='${libname}${release}${shared_ext}$major'
15343 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15344 postinstall_cmds
='chmod 555 $lib'
15351 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15352 soname_spec
='${libname}${release}${shared_ext}$major'
15353 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15354 shlibpath_var
=LD_LIBRARY_PATH
15355 shlibpath_overrides_runpath
=no
15356 hardcode_into_libs
=yes
15359 irix5
* | irix6
* | nonstopux
*)
15361 nonstopux
*) version_type
=nonstopux
;;
15363 if test "$lt_cv_prog_gnu_ld" = yes; then
15371 soname_spec
='${libname}${release}${shared_ext}$major'
15372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15374 irix5
* | nonstopux
*)
15375 libsuff
= shlibsuff
=
15378 case $LD in # libtool.m4 will add one of these switches to LD
15379 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15380 libsuff
= shlibsuff
= libmagic
=32-bit;;
15381 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15382 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15383 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15384 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15385 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15389 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15390 shlibpath_overrides_runpath
=no
15391 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15392 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15393 hardcode_into_libs
=yes
15396 # No shared lib support for Linux oldld, aout, or coff.
15397 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15401 # This must be Linux ELF.
15406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 soname_spec
='${libname}${release}${shared_ext}$major'
15408 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15409 shlibpath_var
=LD_LIBRARY_PATH
15410 shlibpath_overrides_runpath
=no
15411 # This implies no fast_install, which is unacceptable.
15412 # Some rework will be needed to allow for fast_install
15413 # before this can be enabled.
15414 hardcode_into_libs
=yes
15416 # find out which ABI we are using
15418 case "$host_cpu" in
15419 x86_64
*|s390x
*|powerpc64
*)
15420 echo '#line 15420 "configure"' > conftest.
$ac_ext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422 (eval $ac_compile) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; then
15426 case `/usr/bin/file conftest.$ac_objext` in
15429 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15437 # Append ld.so.conf contents to the search path
15438 if test -f /etc
/ld.so.conf
; then
15439 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/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15440 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15443 # We used to test for /lib/ld.so.1 and disable shared libraries on
15444 # powerpc, because MkLinux only supported shared libraries with the
15445 # GNU dynamic linker. Since this was broken with cross compilers,
15446 # most powerpc-linux boxes support dynamic linking these days and
15447 # people can always --disable-shared, the test was removed, and we
15448 # assume the GNU/Linux dynamic linker is in use.
15449 dynamic_linker
='GNU/Linux ld.so'
15456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15457 soname_spec
='${libname}${release}${shared_ext}$major'
15458 shlibpath_var
=LD_LIBRARY_PATH
15459 shlibpath_overrides_runpath
=no
15460 hardcode_into_libs
=yes
15461 dynamic_linker
='GNU ld.so'
15468 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15469 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15470 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15471 dynamic_linker
='NetBSD (a.out) ld.so'
15473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15474 soname_spec
='${libname}${release}${shared_ext}$major'
15475 dynamic_linker
='NetBSD ld.elf_so'
15477 shlibpath_var
=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath
=yes
15479 hardcode_into_libs
=yes
15484 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485 shlibpath_var
=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath
=yes
15493 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15494 soname_spec
='${libname}${release}${shared_ext}$major'
15495 shlibpath_var
=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath
=yes
15501 sys_lib_dlsearch_path_spec
="/usr/lib"
15503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15505 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15506 *) need_version
=no
;;
15508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15509 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15510 shlibpath_var
=LD_LIBRARY_PATH
15511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15513 openbsd2.
[89] | openbsd2.
[89].
*)
15514 shlibpath_overrides_runpath
=no
15517 shlibpath_overrides_runpath
=yes
15521 shlibpath_overrides_runpath
=yes
15526 libname_spec
='$name'
15529 library_names_spec
='$libname${shared_ext} $libname.a'
15530 dynamic_linker
='OS/2 ld.exe'
15531 shlibpath_var
=LIBPATH
15534 osf3
* | osf4
* | osf5
*)
15538 soname_spec
='${libname}${release}${shared_ext}$major'
15539 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15540 shlibpath_var
=LD_LIBRARY_PATH
15541 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15542 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15549 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550 soname_spec
='${libname}${release}${shared_ext}$major'
15551 shlibpath_var
=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath
=yes
15553 hardcode_into_libs
=yes
15554 # ldd complains unless libraries are executable
15555 postinstall_cmds
='chmod +x $lib'
15560 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15561 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15562 shlibpath_var
=LD_LIBRARY_PATH
15563 shlibpath_overrides_runpath
=yes
15564 if test "$with_gnu_ld" = yes; then
15572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 soname_spec
='${libname}${release}${shared_ext}$major'
15574 shlibpath_var
=LD_LIBRARY_PATH
15575 case $host_vendor in
15577 shlibpath_overrides_runpath
=no
15579 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15580 runpath_var
=LD_RUN_PATH
15588 shlibpath_overrides_runpath
=no
15589 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15595 if test -d /usr
/nec
;then
15597 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15598 soname_spec
='$libname${shared_ext}.$major'
15599 shlibpath_var
=LD_LIBRARY_PATH
15603 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15604 version_type
=freebsd-elf
15607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15608 soname_spec
='${libname}${release}${shared_ext}$major'
15609 shlibpath_var
=LD_LIBRARY_PATH
15610 hardcode_into_libs
=yes
15611 if test "$with_gnu_ld" = yes; then
15612 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15613 shlibpath_overrides_runpath
=no
15615 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15616 shlibpath_overrides_runpath
=yes
15619 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15623 sys_lib_dlsearch_path_spec
='/usr/lib'
15628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629 soname_spec
='${libname}${release}${shared_ext}$major'
15630 shlibpath_var
=LD_LIBRARY_PATH
15637 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15638 echo "${ECHO_T}$dynamic_linker" >&6; }
15639 test "$dynamic_linker" = no
&& can_build_shared
=no
15641 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15642 if test "$GCC" = yes; then
15643 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15646 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15648 hardcode_action_F77
=
15649 if test -n "$hardcode_libdir_flag_spec_F77" || \
15650 test -n "$runpath_var_F77" || \
15651 test "X$hardcode_automatic_F77" = "Xyes" ; then
15653 # We can hardcode non-existant directories.
15654 if test "$hardcode_direct_F77" != no
&&
15655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15656 # have to relink, otherwise we might link with an installed library
15657 # when we should be linking with a yet-to-be-installed one
15658 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15659 test "$hardcode_minus_L_F77" != no
; then
15660 # Linking always hardcodes the temporary library directory.
15661 hardcode_action_F77
=relink
15663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15664 hardcode_action_F77
=immediate
15667 # We cannot hardcode anything, or else we can only hardcode existing
15669 hardcode_action_F77
=unsupported
15671 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15672 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15674 if test "$hardcode_action_F77" = relink
; then
15675 # Fast installation is not supported
15676 enable_fast_install
=no
15677 elif test "$shlibpath_overrides_runpath" = yes ||
15678 test "$enable_shared" = no
; then
15679 # Fast installation is not necessary
15680 enable_fast_install
=needless
15684 # The else clause should only fire when bootstrapping the
15685 # libtool distribution, otherwise you forgot to ship ltmain.sh
15686 # with your package, and you will get complaints that there are
15687 # no rules to generate ltmain.sh.
15688 if test -f "$ltmain"; then
15689 # See if we are running on zsh, and set the options which allow our commands through
15690 # without removal of \ escapes.
15691 if test -n "${ZSH_VERSION+set}" ; then
15692 setopt NO_GLOB_SUBST
15694 # Now quote all the things that may contain metacharacters while being
15695 # careful not to overquote the AC_SUBSTed values. We take copies of the
15696 # variables and quote the copies for generation of the libtool script.
15697 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15701 deplibs_check_method reload_flag reload_cmds need_locks \
15702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15703 lt_cv_sys_global_symbol_to_c_name_address \
15704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15705 old_postinstall_cmds old_postuninstall_cmds \
15709 lt_prog_compiler_wl_F77 \
15710 lt_prog_compiler_pic_F77 \
15711 lt_prog_compiler_static_F77 \
15712 lt_prog_compiler_no_builtin_flag_F77 \
15713 export_dynamic_flag_spec_F77 \
15714 thread_safe_flag_spec_F77 \
15715 whole_archive_flag_spec_F77 \
15716 enable_shared_with_static_runtimes_F77 \
15717 old_archive_cmds_F77 \
15718 old_archive_from_new_cmds_F77 \
15719 predep_objects_F77 \
15720 postdep_objects_F77 \
15723 compiler_lib_search_path_F77 \
15725 archive_expsym_cmds_F77 \
15726 postinstall_cmds_F77 \
15727 postuninstall_cmds_F77 \
15728 old_archive_from_expsyms_cmds_F77 \
15729 allow_undefined_flag_F77 \
15730 no_undefined_flag_F77 \
15731 export_symbols_cmds_F77 \
15732 hardcode_libdir_flag_spec_F77 \
15733 hardcode_libdir_flag_spec_ld_F77 \
15734 hardcode_libdir_separator_F77 \
15735 hardcode_automatic_F77 \
15737 module_expsym_cmds_F77 \
15738 lt_cv_prog_compiler_c_o_F77 \
15739 exclude_expsyms_F77 \
15740 include_expsyms_F77
; do
15743 old_archive_cmds_F77 | \
15744 old_archive_from_new_cmds_F77 | \
15745 archive_cmds_F77 | \
15746 archive_expsym_cmds_F77 | \
15747 module_cmds_F77 | \
15748 module_expsym_cmds_F77 | \
15749 old_archive_from_expsyms_cmds_F77 | \
15750 export_symbols_cmds_F77 | \
15751 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15752 postinstall_cmds | postuninstall_cmds | \
15753 old_postinstall_cmds | old_postuninstall_cmds | \
15754 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15755 # Double-quote double-evaled strings.
15756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15765 *'\$0 --fallback-echo"')
15766 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15772 cat <<__EOF__ >> "$cfgfile"
15773 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15777 # Shell to use when invoking shell scripts.
15780 # Whether or not to build shared libraries.
15781 build_libtool_libs=$enable_shared
15783 # Whether or not to build static libraries.
15784 build_old_libs=$enable_static
15786 # Whether or not to add -lc for building shared libraries.
15787 build_libtool_need_lc=$archive_cmds_need_lc_F77
15789 # Whether or not to disallow shared libs when runtime libs are static
15790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15792 # Whether or not to optimize for fast installation.
15793 fast_install=$enable_fast_install
15796 host_alias=$host_alias
15800 # The build system.
15801 build_alias=$build_alias
15805 # An echo program that does not interpret backslashes.
15810 AR_FLAGS=$lt_AR_FLAGS
15815 # LTCC compiler flags.
15816 LTCFLAGS=$lt_LTCFLAGS
15818 # A language-specific compiler.
15819 CC=$lt_compiler_F77
15821 # Is the compiler the GNU C compiler?
15827 # The linker used to build libraries.
15830 # Whether we need hard or soft links.
15833 # A BSD-compatible nm program.
15836 # A symbol stripping program
15839 # Used to examine libraries when file_magic_cmd begins "file"
15840 MAGIC_CMD=$MAGIC_CMD
15842 # Used on cygwin: DLL creation program.
15845 # Used on cygwin: object dumper.
15848 # Used on cygwin: assembler.
15851 # The name of the directory that contains temporary libtool files.
15854 # How to create reloadable object files.
15855 reload_flag=$lt_reload_flag
15856 reload_cmds=$lt_reload_cmds
15858 # How to pass a linker flag through the compiler.
15859 wl=$lt_lt_prog_compiler_wl_F77
15861 # Object file suffix (normally "o").
15862 objext="$ac_objext"
15864 # Old archive suffix (normally "a").
15867 # Shared library suffix (normally ".so").
15868 shrext_cmds='$shrext_cmds'
15870 # Executable file suffix (normally "").
15873 # Additional compiler flags for building library objects.
15874 pic_flag=$lt_lt_prog_compiler_pic_F77
15877 # What is the maximum length of a command?
15878 max_cmd_len=$lt_cv_sys_max_cmd_len
15880 # Does compiler simultaneously support -c and -o options?
15881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15883 # Must we lock files when doing compilation?
15884 need_locks=$lt_need_locks
15886 # Do we need the lib prefix for modules?
15887 need_lib_prefix=$need_lib_prefix
15889 # Do we need a version for libraries?
15890 need_version=$need_version
15892 # Whether dlopen is supported.
15893 dlopen_support=$enable_dlopen
15895 # Whether dlopen of programs is supported.
15896 dlopen_self=$enable_dlopen_self
15898 # Whether dlopen of statically linked programs is supported.
15899 dlopen_self_static=$enable_dlopen_self_static
15901 # Compiler flag to prevent dynamic linking.
15902 link_static_flag=$lt_lt_prog_compiler_static_F77
15904 # Compiler flag to turn off builtin functions.
15905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15907 # Compiler flag to allow reflexive dlopens.
15908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15910 # Compiler flag to generate shared objects directly from archives.
15911 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15913 # Compiler flag to generate thread-safe objects.
15914 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15916 # Library versioning type.
15917 version_type=$version_type
15919 # Format of library name prefix.
15920 libname_spec=$lt_libname_spec
15922 # List of archive names. First name is the real one, the rest are links.
15923 # The last name is the one that the linker finds with -lNAME.
15924 library_names_spec=$lt_library_names_spec
15926 # The coded name of the library, if different from the real name.
15927 soname_spec=$lt_soname_spec
15929 # Commands used to build and install an old-style archive.
15931 old_archive_cmds=$lt_old_archive_cmds_F77
15932 old_postinstall_cmds=$lt_old_postinstall_cmds
15933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15935 # Create an old-style archive from a shared archive.
15936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15938 # Create a temporary old-style archive to link instead of a shared archive.
15939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15941 # Commands used to build and install a shared archive.
15942 archive_cmds=$lt_archive_cmds_F77
15943 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15944 postinstall_cmds=$lt_postinstall_cmds
15945 postuninstall_cmds=$lt_postuninstall_cmds
15947 # Commands used to build a loadable module (assumed same as above if empty)
15948 module_cmds=$lt_module_cmds_F77
15949 module_expsym_cmds=$lt_module_expsym_cmds_F77
15951 # Commands to strip libraries.
15952 old_striplib=$lt_old_striplib
15953 striplib=$lt_striplib
15955 # Dependencies to place before the objects being linked to create a
15957 predep_objects=$lt_predep_objects_F77
15959 # Dependencies to place after the objects being linked to create a
15961 postdep_objects=$lt_postdep_objects_F77
15963 # Dependencies to place before the objects being linked to create a
15965 predeps=$lt_predeps_F77
15967 # Dependencies to place after the objects being linked to create a
15969 postdeps=$lt_postdeps_F77
15971 # The library search path used internally by the compiler when linking
15972 # a shared library.
15973 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15975 # Method to check whether dependent libraries are shared objects.
15976 deplibs_check_method=$lt_deplibs_check_method
15978 # Command to use when deplibs_check_method == file_magic.
15979 file_magic_cmd=$lt_file_magic_cmd
15981 # Flag that allows shared libraries with undefined symbols to be built.
15982 allow_undefined_flag=$lt_allow_undefined_flag_F77
15984 # Flag that forces no undefined symbols.
15985 no_undefined_flag=$lt_no_undefined_flag_F77
15987 # Commands used to finish a libtool library installation in a directory.
15988 finish_cmds=$lt_finish_cmds
15990 # Same as above, but a single script fragment to be evaled but not shown.
15991 finish_eval=$lt_finish_eval
15993 # Take the output of nm and produce a listing of raw symbols and C names.
15994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15996 # Transform the output of nm in a proper C declaration
15997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15999 # Transform the output of nm in a C name address pair
16000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16002 # This is the shared library runtime path variable.
16003 runpath_var=$runpath_var
16005 # This is the shared library path variable.
16006 shlibpath_var=$shlibpath_var
16008 # Is shlibpath searched before the hard-coded library search path?
16009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16011 # How to hardcode a shared library path into an executable.
16012 hardcode_action=$hardcode_action_F77
16014 # Whether we should hardcode library paths into libraries.
16015 hardcode_into_libs=$hardcode_into_libs
16017 # Flag to hardcode \$libdir into a binary during linking.
16018 # This must work even if \$libdir does not exist.
16019 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16021 # If ld is used when linking, flag to hardcode \$libdir into
16022 # a binary during linking. This must work even if \$libdir does
16024 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16026 # Whether we need a single -rpath flag with a separated argument.
16027 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16029 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16030 # resulting binary.
16031 hardcode_direct=$hardcode_direct_F77
16033 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16034 # resulting binary.
16035 hardcode_minus_L=$hardcode_minus_L_F77
16037 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16038 # the resulting binary.
16039 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16041 # Set to yes if building a shared library automatically hardcodes DIR into the library
16042 # and all subsequent libraries and executables linked against it.
16043 hardcode_automatic=$hardcode_automatic_F77
16045 # Variables whose values should be saved in libtool wrapper scripts and
16046 # restored at relink time.
16047 variables_saved_for_relink="$variables_saved_for_relink"
16049 # Whether libtool must link a program against all its dependency libraries.
16050 link_all_deplibs=$link_all_deplibs_F77
16052 # Compile-time system search path for libraries
16053 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16055 # Run-time system search path for libraries
16056 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16058 # Fix the shell variable \$srcfile for the compiler.
16059 fix_srcfile_path="$fix_srcfile_path_F77"
16061 # Set to yes if exported symbols are required.
16062 always_export_symbols=$always_export_symbols_F77
16064 # The commands to list exported symbols.
16065 export_symbols_cmds=$lt_export_symbols_cmds_F77
16067 # The commands to extract the exported symbol list from a shared archive.
16068 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16070 # Symbols that should not be listed in the preloaded symbols.
16071 exclude_expsyms=$lt_exclude_expsyms_F77
16073 # Symbols that must always be exported.
16074 include_expsyms=$lt_include_expsyms_F77
16076 # ### END LIBTOOL TAG CONFIG: $tagname
16082 # If there is no Makefile yet, we rely on a make rule to execute
16083 # `config.status --recheck' to rerun these tests and create the
16084 # libtool script then.
16085 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16086 if test -f "$ltmain_in"; then
16087 test -f Makefile
&& make "$ltmain"
16093 ac_cpp
='$CXXCPP $CPPFLAGS'
16094 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16095 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16096 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16106 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16109 # Source file extension for Java test sources.
16112 # Object file extension for compiled Java test sources.
16116 # Code to be used in simple compile tests
16117 lt_simple_compile_test_code
="class foo {}\n"
16119 # Code to be used in simple link tests
16120 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
16122 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16124 # If no C compiler was specified, use CC.
16127 # If no C compiler flags were specified, use CFLAGS.
16128 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16130 # Allow CC to be a program name with arguments.
16134 # save warnings/boilerplate of simple test code
16135 ac_outfile
=conftest.
$ac_objext
16136 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
16137 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16138 _lt_compiler_boilerplate
=`cat conftest.err`
16141 ac_outfile
=conftest.
$ac_objext
16142 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
16143 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16144 _lt_linker_boilerplate
=`cat conftest.err`
16148 # Allow CC to be a program name with arguments.
16153 for cc_temp
in $compiler""; do
16155 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16156 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16161 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16164 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16165 archive_cmds_need_lc_GCJ
=no
16167 old_archive_cmds_GCJ
=$old_archive_cmds
16170 lt_prog_compiler_no_builtin_flag_GCJ
=
16172 if test "$GCC" = yes; then
16173 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16176 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16177 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16178 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 lt_cv_prog_compiler_rtti_exceptions
=no
16182 ac_outfile
=conftest.
$ac_objext
16183 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16184 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16185 # Insert the option either (1) after the last *FLAGS variable, or
16186 # (2) before a word containing "conftest.", or (3) at the end.
16187 # Note that $ac_compile itself does not contain backslashes and begins
16188 # with a dollar sign (not a hyphen), so the echo should work correctly.
16189 # The option is referenced via a variable to avoid confusing sed.
16190 lt_compile
=`echo "$ac_compile" | $SED \
16191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16193 -e 's:$: $lt_compiler_flag:'`
16194 (eval echo "\"\$as_me:16194: $lt_compile\"" >&5)
16195 (eval "$lt_compile" 2>conftest.err
)
16197 cat conftest.err
>&5
16198 echo "$as_me:16198: \$? = $ac_status" >&5
16199 if (exit $ac_status) && test -s "$ac_outfile"; then
16200 # The compiler can only warn and ignore the option if not recognized
16201 # So say no if there are warnings other than the usual output.
16202 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16203 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16204 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16205 lt_cv_prog_compiler_rtti_exceptions
=yes
16211 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16212 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16214 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16215 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16222 lt_prog_compiler_wl_GCJ
=
16223 lt_prog_compiler_pic_GCJ
=
16224 lt_prog_compiler_static_GCJ
=
16226 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16229 if test "$GCC" = yes; then
16230 lt_prog_compiler_wl_GCJ
='-Wl,'
16231 lt_prog_compiler_static_GCJ
='-static'
16235 # All AIX code is PIC.
16236 if test "$host_cpu" = ia64
; then
16237 # AIX 5 now supports IA64 processor
16238 lt_prog_compiler_static_GCJ
='-Bstatic'
16243 # FIXME: we need at least 68020 code to build shared libraries, but
16244 # adding the `-m68020' flag to GCC prevents building anything better,
16246 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16249 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16250 # PIC is the default for these OSes.
16253 mingw
* | pw32
* | os2
*)
16254 # This hack is so that the source file can tell whether it is being
16255 # built for inclusion in a dll (and should export symbols for example).
16256 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16259 darwin
* | rhapsody
*)
16260 # PIC is the default on this platform
16261 # Common symbols not allowed in MH_DYLIB files
16262 lt_prog_compiler_pic_GCJ
='-fno-common'
16266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16267 # Instead, we relocate shared libraries at runtime.
16271 # Just because we use GCC doesn't mean we suddenly get shared libraries
16272 # on systems that don't support them.
16273 lt_prog_compiler_can_build_shared_GCJ
=no
16278 if test -d /usr
/nec
; then
16279 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16285 # not for PA HP-UX.
16291 lt_prog_compiler_pic_GCJ
='-fPIC'
16297 lt_prog_compiler_pic_GCJ
='-fPIC'
16301 # PORTME Check for flag to pass linker flags through the system compiler.
16304 lt_prog_compiler_wl_GCJ
='-Wl,'
16305 if test "$host_cpu" = ia64
; then
16306 # AIX 5 now supports IA64 processor
16307 lt_prog_compiler_static_GCJ
='-Bstatic'
16309 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16313 # PIC is the default on this platform
16314 # Common symbols not allowed in MH_DYLIB files
16315 case $cc_basename in
16317 lt_prog_compiler_pic_GCJ
='-qnocommon'
16318 lt_prog_compiler_wl_GCJ
='-Wl,'
16323 mingw
* | pw32
* | os2
*)
16324 # This hack is so that the source file can tell whether it is being
16325 # built for inclusion in a dll (and should export symbols for example).
16326 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16329 hpux9
* | hpux10
* | hpux11
*)
16330 lt_prog_compiler_wl_GCJ
='-Wl,'
16331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16332 # not for PA HP-UX.
16338 lt_prog_compiler_pic_GCJ
='+Z'
16341 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16342 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16345 irix5
* | irix6
* | nonstopux
*)
16346 lt_prog_compiler_wl_GCJ
='-Wl,'
16347 # PIC (with -KPIC) is the default.
16348 lt_prog_compiler_static_GCJ
='-non_shared'
16352 lt_prog_compiler_pic_GCJ
='-KPIC'
16353 lt_prog_compiler_static_GCJ
='-Bstatic'
16357 case $cc_basename in
16359 lt_prog_compiler_wl_GCJ
='-Wl,'
16360 lt_prog_compiler_pic_GCJ
='-KPIC'
16361 lt_prog_compiler_static_GCJ
='-static'
16363 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16364 # Portland Group compilers (*not* the Pentium gcc compiler,
16365 # which looks to be a dead project)
16366 lt_prog_compiler_wl_GCJ
='-Wl,'
16367 lt_prog_compiler_pic_GCJ
='-fpic'
16368 lt_prog_compiler_static_GCJ
='-Bstatic'
16371 lt_prog_compiler_wl_GCJ
='-Wl,'
16372 # All Alpha code is PIC.
16373 lt_prog_compiler_static_GCJ
='-non_shared'
16378 osf3
* | osf4
* | osf5
*)
16379 lt_prog_compiler_wl_GCJ
='-Wl,'
16380 # All OSF/1 code is PIC.
16381 lt_prog_compiler_static_GCJ
='-non_shared'
16385 lt_prog_compiler_pic_GCJ
='-KPIC'
16386 lt_prog_compiler_static_GCJ
='-Bstatic'
16387 case $cc_basename in
16388 f77
* | f90
* | f95
*)
16389 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16391 lt_prog_compiler_wl_GCJ
='-Wl,';;
16396 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16397 lt_prog_compiler_pic_GCJ
='-PIC'
16398 lt_prog_compiler_static_GCJ
='-Bstatic'
16401 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16402 lt_prog_compiler_wl_GCJ
='-Wl,'
16403 lt_prog_compiler_pic_GCJ
='-KPIC'
16404 lt_prog_compiler_static_GCJ
='-Bstatic'
16408 if test -d /usr
/nec
;then
16409 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16410 lt_prog_compiler_static_GCJ
='-Bstatic'
16414 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16415 lt_prog_compiler_wl_GCJ
='-Wl,'
16416 lt_prog_compiler_pic_GCJ
='-KPIC'
16417 lt_prog_compiler_static_GCJ
='-Bstatic'
16421 lt_prog_compiler_wl_GCJ
='-Wl,'
16422 lt_prog_compiler_can_build_shared_GCJ
=no
16426 lt_prog_compiler_pic_GCJ
='-pic'
16427 lt_prog_compiler_static_GCJ
='-Bstatic'
16431 lt_prog_compiler_can_build_shared_GCJ
=no
16436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16437 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16440 # Check to make sure the PIC flag actually works.
16442 if test -n "$lt_prog_compiler_pic_GCJ"; then
16444 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16445 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16446 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 lt_prog_compiler_pic_works_GCJ
=no
16450 ac_outfile
=conftest.
$ac_objext
16451 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16452 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16453 # Insert the option either (1) after the last *FLAGS variable, or
16454 # (2) before a word containing "conftest.", or (3) at the end.
16455 # Note that $ac_compile itself does not contain backslashes and begins
16456 # with a dollar sign (not a hyphen), so the echo should work correctly.
16457 # The option is referenced via a variable to avoid confusing sed.
16458 lt_compile
=`echo "$ac_compile" | $SED \
16459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16461 -e 's:$: $lt_compiler_flag:'`
16462 (eval echo "\"\$as_me:16462: $lt_compile\"" >&5)
16463 (eval "$lt_compile" 2>conftest.err
)
16465 cat conftest.err
>&5
16466 echo "$as_me:16466: \$? = $ac_status" >&5
16467 if (exit $ac_status) && test -s "$ac_outfile"; then
16468 # The compiler can only warn and ignore the option if not recognized
16469 # So say no if there are warnings other than the usual output.
16470 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16471 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16472 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16473 lt_prog_compiler_pic_works_GCJ
=yes
16479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16480 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16482 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16483 case $lt_prog_compiler_pic_GCJ in
16485 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16488 lt_prog_compiler_pic_GCJ
=
16489 lt_prog_compiler_can_build_shared_GCJ
=no
16494 # For platforms which do not support PIC, -DPIC is meaningless:
16496 lt_prog_compiler_pic_GCJ
=
16499 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16504 # Check to make sure the static flag actually works.
16506 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16507 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16508 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16509 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 lt_prog_compiler_static_works_GCJ
=no
16513 save_LDFLAGS
="$LDFLAGS"
16514 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16515 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
16516 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16517 # The linker can only warn and ignore the option if not recognized
16518 # So say no if there are warnings
16519 if test -s conftest.err
; then
16520 # Append any errors to the config.log.
16521 cat conftest.err
1>&5
16522 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16523 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16524 if diff conftest.exp conftest.er2
>/dev
/null
; then
16525 lt_prog_compiler_static_works_GCJ
=yes
16528 lt_prog_compiler_static_works_GCJ
=yes
16532 LDFLAGS
="$save_LDFLAGS"
16535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16536 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16538 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
16541 lt_prog_compiler_static_GCJ
=
16545 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16547 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 lt_cv_prog_compiler_c_o_GCJ
=no
16551 $rm -r conftest
2>/dev
/null
16555 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16557 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16558 # Insert the option either (1) after the last *FLAGS variable, or
16559 # (2) before a word containing "conftest.", or (3) at the end.
16560 # Note that $ac_compile itself does not contain backslashes and begins
16561 # with a dollar sign (not a hyphen), so the echo should work correctly.
16562 lt_compile
=`echo "$ac_compile" | $SED \
16563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16565 -e 's:$: $lt_compiler_flag:'`
16566 (eval echo "\"\$as_me:16566: $lt_compile\"" >&5)
16567 (eval "$lt_compile" 2>out
/conftest.err
)
16569 cat out
/conftest.err
>&5
16570 echo "$as_me:16570: \$? = $ac_status" >&5
16571 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16573 # The compiler can only warn and ignore the option if not recognized
16574 # So say no if there are warnings
16575 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16576 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16577 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16578 lt_cv_prog_compiler_c_o_GCJ
=yes
16583 # SGI C++ compiler will create directory out/ii_files/ for
16584 # template instantiation
16585 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16586 $rm out
/* && rmdir out
16592 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16596 hard_links
="nottested"
16597 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16598 # do not overwrite the value of need_locks provided by the user
16599 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16603 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16605 ln conftest.a conftest.b
2>&5 || hard_links
=no
16606 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16607 { echo "$as_me:$LINENO: result: $hard_links" >&5
16608 echo "${ECHO_T}$hard_links" >&6; }
16609 if test "$hard_links" = no
; then
16610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16618 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16622 allow_undefined_flag_GCJ
=
16623 enable_shared_with_static_runtimes_GCJ
=no
16625 archive_expsym_cmds_GCJ
=
16626 old_archive_From_new_cmds_GCJ
=
16627 old_archive_from_expsyms_cmds_GCJ
=
16628 export_dynamic_flag_spec_GCJ
=
16629 whole_archive_flag_spec_GCJ
=
16630 thread_safe_flag_spec_GCJ
=
16631 hardcode_libdir_flag_spec_GCJ
=
16632 hardcode_libdir_flag_spec_ld_GCJ
=
16633 hardcode_libdir_separator_GCJ
=
16634 hardcode_direct_GCJ
=no
16635 hardcode_minus_L_GCJ
=no
16636 hardcode_shlibpath_var_GCJ
=unsupported
16637 link_all_deplibs_GCJ
=unknown
16638 hardcode_automatic_GCJ
=no
16640 module_expsym_cmds_GCJ
=
16641 always_export_symbols_GCJ
=no
16642 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16643 # include_expsyms should be a list of space-separated symbols to be *always*
16644 # included in the symbol list
16645 include_expsyms_GCJ
=
16646 # exclude_expsyms can be an extended regexp of symbols to exclude
16647 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16648 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16649 # as well as any symbol that contains `d'.
16650 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16652 # platforms (ab)use it in PIC code, but their linkers get confused if
16653 # the symbol is explicitly referenced. Since portable code cannot
16654 # rely on this symbol name, it's probably fine to never include it in
16655 # preloaded symbol tables.
16656 extract_expsyms_cmds
=
16657 # Just being paranoid about ensuring that cc_basename is set.
16658 for cc_temp
in $compiler""; do
16660 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16661 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16666 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16669 cygwin
* | mingw
* | pw32
*)
16670 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16671 # When not using gcc, we currently assume that we are using
16672 # Microsoft Visual C++.
16673 if test "$GCC" != yes; then
16678 # we just hope/assume this is gcc and not c89 (= MSVC++)
16687 if test "$with_gnu_ld" = yes; then
16688 # If archive_cmds runs LD, not CC, wlarc should be empty
16691 # Set some defaults for GNU ld with shared library support. These
16692 # are reset later if shared libraries are not supported. Putting them
16693 # here allows them to be overridden if necessary.
16694 runpath_var
=LD_RUN_PATH
16695 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16696 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16697 # ancient GNU ld didn't support --whole-archive et. al.
16698 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16699 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16701 whole_archive_flag_spec_GCJ
=
16703 supports_anon_versioning
=no
16704 case `$LD -v 2>/dev/null` in
16705 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16706 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16707 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16708 *\
2.11.
*) ;; # other 2.11 versions
16709 *) supports_anon_versioning
=yes ;;
16712 # See if GNU ld supports shared libraries.
16714 aix3
* | aix4
* | aix5
*)
16715 # On AIX/PPC, the GNU linker is very broken
16716 if test "$host_cpu" != ia64
; then
16720 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16721 *** to be unable to reliably create shared libraries on AIX.
16722 *** Therefore, libtool is disabling shared libraries support. If you
16723 *** really care for shared libraries, you may want to modify your PATH
16724 *** so that a non-GNU linker is found, and then restart.
16731 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)'
16732 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16733 hardcode_minus_L_GCJ
=yes
16735 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16736 # that the semantics of dynamic libraries on AmigaOS, at least up
16737 # to version 4, is to share data among multiple programs linked
16738 # with the same dynamic library. Since this doesn't match the
16739 # behavior of shared libraries on other platforms, we can't use
16745 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16746 allow_undefined_flag_GCJ
=unsupported
16747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16748 # support --undefined. This deserves some investigation. FIXME
16749 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16755 cygwin
* | mingw
* | pw32
*)
16756 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16757 # as there is no search path for DLLs.
16758 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16759 allow_undefined_flag_GCJ
=unsupported
16760 always_export_symbols_GCJ
=no
16761 enable_shared_with_static_runtimes_GCJ
=yes
16762 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16764 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16765 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16766 # If the export-symbols file already is a .def file (1st line
16767 # is EXPORTS), use it as is; otherwise, prepend...
16768 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16769 cp $export_symbols $output_objdir/$soname.def;
16771 echo EXPORTS > $output_objdir/$soname.def;
16772 cat $export_symbols >> $output_objdir/$soname.def;
16774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16781 hardcode_direct_GCJ
=no
16782 hardcode_shlibpath_var_GCJ
=no
16783 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16784 export_dynamic_flag_spec_GCJ
='${wl}-E'
16785 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16786 # Instead, shared libraries are loaded at an image base (0x10000000 by
16787 # default) and relocated if they conflict, which is a slow very memory
16788 # consuming and fragmenting process. To avoid this, we pick a random,
16789 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16790 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16791 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'
16792 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'
16796 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16798 case $cc_basename,$host_cpu in
16799 pgcc
*) # Portland Group C compiler
16800 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'
16801 tmp_addflag
=' $pic_flag'
16803 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16804 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'
16805 tmp_addflag
=' $pic_flag -Mnomain' ;;
16806 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16807 tmp_addflag
=' -i_dynamic' ;;
16808 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16809 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16810 ifc
* | ifort
*) # Intel Fortran compiler
16811 tmp_addflag
=' -nofor_main' ;;
16813 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16815 if test $supports_anon_versioning = yes; then
16816 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16818 $echo "local: *; };" >> $output_objdir/$libname.ver~
16819 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16827 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16828 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16831 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16832 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16837 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16842 *** create shared libraries on Solaris systems. Therefore, libtool
16843 *** is disabling shared libraries support. We urge you to upgrade GNU
16844 *** binutils to release 2.9.1 or newer. Another option is to modify
16845 *** your PATH or compiler configuration so that the native linker is
16846 *** used, and then restart.
16849 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16850 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16851 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16857 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16858 case `$LD -v 2>&1` in
16859 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16864 *** reliably create shared libraries on SCO systems. Therefore, libtool
16865 *** is disabling shared libraries support. We urge you to upgrade GNU
16866 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16867 *** your PATH or compiler configuration so that the native linker is
16868 *** used, and then restart.
16873 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16874 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16875 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16876 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16885 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16887 hardcode_direct_GCJ
=yes
16888 hardcode_shlibpath_var_GCJ
=no
16892 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16893 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16894 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16901 if test "$ld_shlibs_GCJ" = no
; then
16903 hardcode_libdir_flag_spec_GCJ
=
16904 export_dynamic_flag_spec_GCJ
=
16905 whole_archive_flag_spec_GCJ
=
16908 # PORTME fill in a description of your system's linker (not GNU ld)
16911 allow_undefined_flag_GCJ
=unsupported
16912 always_export_symbols_GCJ
=yes
16913 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'
16914 # Note: this linker hardcodes the directories in LIBPATH if there
16915 # are no directories specified by -L.
16916 hardcode_minus_L_GCJ
=yes
16917 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16918 # Neither direct hardcoding nor static linking is supported with a
16920 hardcode_direct_GCJ
=unsupported
16925 if test "$host_cpu" = ia64
; then
16926 # On IA64, the linker does run time linking by default, so we don't
16927 # have to do anything special.
16928 aix_use_runtimelinking
=no
16929 exp_sym_flag
='-Bexport'
16932 # If we're using GNU nm, then we don't want the "-C" option.
16933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16934 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16935 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'
16937 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'
16939 aix_use_runtimelinking
=no
16941 # Test if we are trying to use run time linking or normal
16942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16943 # need to do runtime linking.
16944 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16945 for ld_flag
in $LDFLAGS; do
16946 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16947 aix_use_runtimelinking
=yes
16954 exp_sym_flag
='-bexport'
16955 no_entry_flag
='-bnoentry'
16958 # When large executables or shared objects are built, AIX ld can
16959 # have problems creating the table of contents. If linking a library
16960 # or program results in "error TOC overflow" add -mminimal-toc to
16961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16964 archive_cmds_GCJ
=''
16965 hardcode_direct_GCJ
=yes
16966 hardcode_libdir_separator_GCJ
=':'
16967 link_all_deplibs_GCJ
=yes
16969 if test "$GCC" = yes; then
16970 case $host_os in aix4.
[012]|aix4.
[012].
*)
16971 # We only want to do this on AIX 4.2 and lower, the check
16972 # below for broken collect2 doesn't work under 4.3+
16973 collect2name
=`${CC} -print-prog-name=collect2`
16974 if test -f "$collect2name" && \
16975 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16977 # We have reworked collect2
16978 hardcode_direct_GCJ
=yes
16980 # We have old collect2
16981 hardcode_direct_GCJ
=unsupported
16982 # It fails to find uninstalled libraries when the uninstalled
16983 # path is not listed in the libpath. Setting hardcode_minus_L
16984 # to unsupported forces relinking
16985 hardcode_minus_L_GCJ
=yes
16986 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16987 hardcode_libdir_separator_GCJ
=
16991 shared_flag
='-shared'
16992 if test "$aix_use_runtimelinking" = yes; then
16993 shared_flag
="$shared_flag "'${wl}-G'
16997 if test "$host_cpu" = ia64
; then
16998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16999 # chokes on -Wl,-G. The following line is correct:
17002 if test "$aix_use_runtimelinking" = yes; then
17003 shared_flag
='${wl}-G'
17005 shared_flag
='${wl}-bM:SRE'
17010 # It seems that -bexpall does not export symbols beginning with
17011 # underscore (_), so it is better to generate a list of symbols to export.
17012 always_export_symbols_GCJ
=yes
17013 if test "$aix_use_runtimelinking" = yes; then
17014 # Warning - without using the other runtime loading flags (-brtl),
17015 # -berok will link without error, but may produce a broken library.
17016 allow_undefined_flag_GCJ
='-berok'
17017 # Determine the default libpath from the value encoded in an empty executable.
17018 cat >conftest.
$ac_ext <<_ACEOF
17021 cat confdefs.h
>>conftest.
$ac_ext
17022 cat >>conftest.
$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17033 rm -f conftest.
$ac_objext conftest
$ac_exeext
17034 if { (ac_try
="$ac_link"
17035 case "(($ac_try" in
17036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_link") 2>conftest.er1
17042 grep -v '^ *+' conftest.er1 >conftest.err
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } && {
17047 test -z "$ac_cxx_werror_flag" ||
17048 test ! -s conftest.err
17049 } && test -s conftest$ac_exeext &&
17050 $as_test_x conftest$ac_exeext; then
17052 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17054 # Check for a 64-bit object if we didn't find anything.
17055 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; }
17058 echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17065 conftest$ac_exeext conftest.$ac_ext
17066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17068 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17069 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"
17071 if test "$host_cpu" = ia64; then
17072 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17073 allow_undefined_flag_GCJ="-z nodefs"
17074 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"
17076 # Determine the default libpath from the value encoded in an empty executable.
17077 cat >conftest.$ac_ext <<_ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17096 *) ac_try_echo
=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17101 grep -v '^ *+' conftest.er1
>conftest.err
17103 cat conftest.err
>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_cxx_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest
$ac_exeext &&
17109 $as_test_x conftest
$ac_exeext; then
17111 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17113 # Check for a 64-bit object if we didn't find anything.
17114 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; }
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.
$ac_ext >&5
17123 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17124 conftest
$ac_exeext conftest.
$ac_ext
17125 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17127 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17128 # Warning - without using the other run time loading flags,
17129 # -berok will link without error, but may produce a broken library.
17130 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17131 allow_undefined_flag_GCJ
=' ${wl}-berok'
17132 # Exported symbols can be pulled into shared objects from archives
17133 whole_archive_flag_spec_GCJ
='$convenience'
17134 archive_cmds_need_lc_GCJ
=yes
17135 # This is similar to how AIX traditionally builds its shared libraries.
17136 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'
17142 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)'
17143 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17144 hardcode_minus_L_GCJ
=yes
17145 # see comment about different semantics on the GNU ld section
17150 export_dynamic_flag_spec_GCJ
=-rdynamic
17153 cygwin
* | mingw
* | pw32
*)
17154 # When not using gcc, we currently assume that we are using
17155 # Microsoft Visual C++.
17156 # hardcode_libdir_flag_spec is actually meaningless, as there is
17157 # no search path for DLLs.
17158 hardcode_libdir_flag_spec_GCJ
=' '
17159 allow_undefined_flag_GCJ
=unsupported
17160 # Tell ltmain to make .lib files, not .a files.
17162 # Tell ltmain to make .dll files, not .so files.
17164 # FIXME: Setting linknames here is a bad hack.
17165 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17166 # The linker will automatically build a .lib file if we build a DLL.
17167 old_archive_From_new_cmds_GCJ
='true'
17168 # FIXME: Should let the user specify the lib program.
17169 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
17170 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17171 enable_shared_with_static_runtimes_GCJ
=yes
17174 darwin
* | rhapsody
*)
17176 rhapsody
* | darwin1.
[012])
17177 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17180 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17181 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17183 case ${MACOSX_DEPLOYMENT_TARGET} in
17185 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17188 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17194 archive_cmds_need_lc_GCJ
=no
17195 hardcode_direct_GCJ
=no
17196 hardcode_automatic_GCJ
=yes
17197 hardcode_shlibpath_var_GCJ
=unsupported
17198 whole_archive_flag_spec_GCJ
=''
17199 link_all_deplibs_GCJ
=yes
17200 if test "$GCC" = yes ; then
17201 output_verbose_link_cmd
='echo'
17202 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17203 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17204 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17205 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}'
17206 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}'
17208 case $cc_basename in
17210 output_verbose_link_cmd
='echo'
17211 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17212 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17214 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}'
17215 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}'
17225 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17227 hardcode_shlibpath_var_GCJ
=no
17234 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17235 # support. Future versions do this automatically, but an explicit c++rt0.o
17236 # does not break anything, and helps significantly (at the cost of a little
17239 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17240 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17241 hardcode_direct_GCJ
=yes
17242 hardcode_shlibpath_var_GCJ
=no
17245 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17247 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17248 hardcode_direct_GCJ
=yes
17249 hardcode_minus_L_GCJ
=yes
17250 hardcode_shlibpath_var_GCJ
=no
17253 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17254 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
17255 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17256 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17257 hardcode_direct_GCJ
=yes
17258 hardcode_shlibpath_var_GCJ
=no
17262 if test "$GCC" = yes; then
17263 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'
17265 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'
17267 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17268 hardcode_libdir_separator_GCJ
=:
17269 hardcode_direct_GCJ
=yes
17271 # hardcode_minus_L: Not really in the search PATH,
17272 # but as the default location of the library.
17273 hardcode_minus_L_GCJ
=yes
17274 export_dynamic_flag_spec_GCJ
='${wl}-E'
17278 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17279 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17281 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17283 if test "$with_gnu_ld" = no
; then
17284 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17285 hardcode_libdir_separator_GCJ
=:
17287 hardcode_direct_GCJ
=yes
17288 export_dynamic_flag_spec_GCJ
='${wl}-E'
17290 # hardcode_minus_L: Not really in the search PATH,
17291 # but as the default location of the library.
17292 hardcode_minus_L_GCJ
=yes
17297 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17300 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17303 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17306 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17312 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17315 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17318 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17322 if test "$with_gnu_ld" = no
; then
17323 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17324 hardcode_libdir_separator_GCJ
=:
17328 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17329 hardcode_direct_GCJ
=no
17330 hardcode_shlibpath_var_GCJ
=no
17333 hardcode_direct_GCJ
=yes
17334 export_dynamic_flag_spec_GCJ
='${wl}-E'
17336 # hardcode_minus_L: Not really in the search PATH,
17337 # but as the default location of the library.
17338 hardcode_minus_L_GCJ
=yes
17344 irix5
* | irix6
* | nonstopux
*)
17345 if test "$GCC" = yes; then
17346 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'
17348 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'
17349 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17351 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17352 hardcode_libdir_separator_GCJ
=:
17353 link_all_deplibs_GCJ
=yes
17357 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17358 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17360 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17362 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17363 hardcode_direct_GCJ
=yes
17364 hardcode_shlibpath_var_GCJ
=no
17368 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17369 hardcode_direct_GCJ
=yes
17370 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17371 hardcode_libdir_separator_GCJ
=:
17372 hardcode_shlibpath_var_GCJ
=no
17376 hardcode_direct_GCJ
=yes
17377 hardcode_shlibpath_var_GCJ
=no
17378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17379 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17380 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17381 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17382 export_dynamic_flag_spec_GCJ
='${wl}-E'
17385 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17386 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17387 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17390 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17391 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17398 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17399 hardcode_minus_L_GCJ
=yes
17400 allow_undefined_flag_GCJ
=unsupported
17401 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'
17402 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17406 if test "$GCC" = yes; then
17407 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17408 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'
17410 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17411 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'
17413 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17414 hardcode_libdir_separator_GCJ
=:
17417 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17418 if test "$GCC" = yes; then
17419 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17420 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'
17421 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17423 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17424 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'
17425 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~
17426 $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'
17428 # Both c and cxx compiler support -rpath directly
17429 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17431 hardcode_libdir_separator_GCJ
=:
17435 no_undefined_flag_GCJ
=' -z text'
17436 if test "$GCC" = yes; then
17438 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17439 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17440 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17443 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17444 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17445 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17447 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17448 hardcode_shlibpath_var_GCJ
=no
17450 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17452 # The compiler driver will combine linker options so we
17453 # cannot just pass the convience library names through
17454 # without $wl, iff we do not link with $LD.
17455 # Luckily, gcc supports the same syntax we need for Sun Studio.
17456 # Supported since Solaris 2.6 (maybe 2.5.1?)
17459 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
17461 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' ;;
17464 link_all_deplibs_GCJ
=yes
17468 if test "x$host_vendor" = xsequent
; then
17469 # Use $CC to link under sequent, because it throws in some extra .o
17470 # files that make .init and .fini sections work.
17471 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17473 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17475 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17476 hardcode_direct_GCJ
=yes
17477 hardcode_minus_L_GCJ
=yes
17478 hardcode_shlibpath_var_GCJ
=no
17482 case $host_vendor in
17484 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17485 hardcode_direct_GCJ
=yes # is this really true???
17488 ## LD is ld it makes a PLAMLIB
17489 ## CC just makes a GrossModule.
17490 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17491 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17492 hardcode_direct_GCJ
=no
17495 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17496 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17499 runpath_var
='LD_RUN_PATH'
17500 hardcode_shlibpath_var_GCJ
=no
17504 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17505 hardcode_shlibpath_var_GCJ
=no
17506 export_dynamic_flag_spec_GCJ
='-Bexport'
17510 if test -d /usr
/nec
; then
17511 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17512 hardcode_shlibpath_var_GCJ
=no
17513 runpath_var
=LD_RUN_PATH
17514 hardcode_runpath_var
=yes
17519 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
17520 no_undefined_flag_GCJ
='${wl}-z,text'
17521 archive_cmds_need_lc_GCJ
=no
17522 hardcode_shlibpath_var_GCJ
=no
17523 runpath_var
='LD_RUN_PATH'
17525 if test "$GCC" = yes; then
17526 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17527 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17529 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17530 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17534 sysv5
* | sco3.2v5
* | sco5v6
*)
17535 # Note: We can NOT use -z defs as we might desire, because we do not
17536 # link with -lc, and that would cause any symbols used from libc to
17537 # always be unresolved, which means just about no library would
17538 # ever link correctly. If we're not using GNU ld we use -z text
17539 # though, which does catch some bad symbols but isn't as heavy-handed
17541 no_undefined_flag_GCJ
='${wl}-z,text'
17542 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17543 archive_cmds_need_lc_GCJ
=no
17544 hardcode_shlibpath_var_GCJ
=no
17545 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17546 hardcode_libdir_separator_GCJ
=':'
17547 link_all_deplibs_GCJ
=yes
17548 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17549 runpath_var
='LD_RUN_PATH'
17551 if test "$GCC" = yes; then
17552 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17553 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17555 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17556 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17561 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17562 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17563 hardcode_shlibpath_var_GCJ
=no
17572 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17573 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17574 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17577 # Do we need to explicitly link libc?
17579 case "x$archive_cmds_need_lc_GCJ" in
17581 # Assume -lc should be added
17582 archive_cmds_need_lc_GCJ
=yes
17584 if test "$enable_shared" = yes && test "$GCC" = yes; then
17585 case $archive_cmds_GCJ in
17587 # FIXME: we may have to deal with multi-command sequences.
17590 # Test whether the compiler implicitly links with -lc since on some
17591 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17592 # to ld, don't add -lc before -lgcc.
17593 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17594 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17596 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17599 (eval $ac_compile) 2>&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } 2>conftest.err
; then
17605 libobjs
=conftest.
$ac_objext
17607 wl
=$lt_prog_compiler_wl_GCJ
17608 pic_flag
=$lt_prog_compiler_pic_GCJ
17614 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17615 allow_undefined_flag_GCJ
=
17616 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17617 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }
17622 archive_cmds_need_lc_GCJ
=no
17624 archive_cmds_need_lc_GCJ
=yes
17626 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17628 cat conftest.err
1>&5
17631 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17632 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17639 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17640 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17641 library_names_spec
=
17642 libname_spec
='lib$name'
17646 postuninstall_cmds
=
17650 shlibpath_overrides_runpath
=unknown
17652 dynamic_linker
="$host_os ld.so"
17653 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17654 if test "$GCC" = yes; then
17655 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17656 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17657 # if the path contains ";" then we assume it to be the separator
17658 # otherwise default to the standard path separator (i.e. ":") - it is
17659 # assumed that no part of a normal pathname contains ";" but that should
17660 # okay in the real world where ";" in dirpaths is itself problematic.
17661 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17663 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17666 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17668 need_lib_prefix
=unknown
17669 hardcode_into_libs
=no
17671 # when you set need_version to no, make sure it does not cause -set_version
17672 # flags to be left without arguments
17673 need_version
=unknown
17678 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17679 shlibpath_var
=LIBPATH
17681 # AIX 3 has no versioning support, so we append a major version to the name.
17682 soname_spec
='${libname}${release}${shared_ext}$major'
17689 hardcode_into_libs
=yes
17690 if test "$host_cpu" = ia64
; then
17691 # AIX 5 supports IA64
17692 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17693 shlibpath_var
=LD_LIBRARY_PATH
17695 # With GCC up to 2.95.x, collect2 would create an import file
17696 # for dependence libraries. The import file would start with
17697 # the line `#! .'. This would cause the generated library to
17698 # depend on `.', always an invalid library. This was fixed in
17699 # development snapshots of GCC prior to 3.0.
17701 aix4 | aix4.
[01] | aix4.
[01].
*)
17702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17704 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17707 can_build_shared
=no
17711 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17712 # soname into executable. Probably we can add versioning support to
17713 # collect2, so additional links can be useful in future.
17714 if test "$aix_use_runtimelinking" = yes; then
17715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17716 # instead of lib<name>.a to let people know that these are not
17717 # typical AIX shared libraries.
17718 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720 # We preserve .a as extension for shared libraries through AIX4.2
17721 # and later when we are not doing run time linking.
17722 library_names_spec
='${libname}${release}.a $libname.a'
17723 soname_spec
='${libname}${release}${shared_ext}$major'
17725 shlibpath_var
=LIBPATH
17730 library_names_spec
='$libname.ixlibrary $libname.a'
17731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17732 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'
17736 library_names_spec
='${libname}${shared_ext}'
17737 dynamic_linker
="$host_os ld.so"
17738 shlibpath_var
=LIBRARY_PATH
17744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17745 soname_spec
='${libname}${release}${shared_ext}$major'
17746 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17747 shlibpath_var
=LD_LIBRARY_PATH
17748 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17749 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17750 # the default ld.so.conf also contains /usr/contrib/lib and
17751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17752 # libtool to hard-code these into programs
17755 cygwin
* | mingw
* | pw32
*)
17756 version_type
=windows
17761 case $GCC,$host_os in
17762 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17763 library_names_spec
='$libname.dll.a'
17764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17765 postinstall_cmds
='base_file=`basename \${file}`~
17766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17767 dldir=$destdir/`dirname \$dlpath`~
17768 test -d \$dldir || mkdir -p \$dldir~
17769 $install_prog $dir/$dlname \$dldir/$dlname~
17770 chmod a+x \$dldir/$dlname'
17771 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17772 dlpath=$dir/\$dldll~
17774 shlibpath_overrides_runpath
=yes
17778 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17779 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17780 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17783 # MinGW DLLs use traditional 'lib' prefix
17784 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17785 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17786 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17787 # It is most probably a Windows format PATH printed by
17788 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17789 # path with ; separators, and with drive letters. We can handle the
17790 # drive letters (cygwin fileutils understands them), so leave them,
17791 # especially as we might pass files found there to a mingw objdump,
17792 # which wouldn't understand a cygwinified path. Ahh.
17793 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17795 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17799 # pw32 DLLs use 'pw' prefix rather than 'lib'
17800 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17806 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17809 dynamic_linker
='Win32 ld.exe'
17810 # FIXME: first we should search . and the directory the executable is in
17814 darwin
* | rhapsody
*)
17815 dynamic_linker
="$host_os dyld"
17816 version_type
=darwin
17819 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17820 soname_spec
='${libname}${release}${major}$shared_ext'
17821 shlibpath_overrides_runpath
=yes
17822 shlibpath_var
=DYLD_LIBRARY_PATH
17823 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17824 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17825 if test "$GCC" = yes; then
17826 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"`
17828 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17830 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17838 soname_spec
='${libname}${release}${shared_ext}$major'
17839 shlibpath_var
=LD_LIBRARY_PATH
17850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17851 soname_spec
='${libname}${release}${shared_ext}$major'
17852 shlibpath_var
=LD_LIBRARY_PATH
17853 shlibpath_overrides_runpath
=no
17854 hardcode_into_libs
=yes
17855 dynamic_linker
='GNU ld.so'
17858 freebsd
* | dragonfly
*)
17859 # DragonFly does not have aout. When/if they implement a new
17860 # versioning mechanism, adjust this.
17861 if test -x /usr
/bin
/objformat
; then
17862 objformat
=`/usr/bin/objformat`
17865 freebsd
[123]*) objformat
=aout
;;
17866 *) objformat
=elf
;;
17869 version_type
=freebsd-
$objformat
17870 case $version_type in
17872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17877 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17881 shlibpath_var
=LD_LIBRARY_PATH
17884 shlibpath_overrides_runpath
=yes
17886 freebsd3.
[01]* | freebsdelf3.
[01]*)
17887 shlibpath_overrides_runpath
=yes
17888 hardcode_into_libs
=yes
17890 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17891 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17892 shlibpath_overrides_runpath
=no
17893 hardcode_into_libs
=yes
17895 freebsd
*) # from 4.6 on
17896 shlibpath_overrides_runpath
=yes
17897 hardcode_into_libs
=yes
17906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17907 soname_spec
='${libname}${release}${shared_ext}$major'
17908 shlibpath_var
=LD_LIBRARY_PATH
17909 hardcode_into_libs
=yes
17912 hpux9
* | hpux10
* | hpux11
*)
17913 # Give a soname corresponding to the major version so that dld.sl refuses to
17914 # link against other versions.
17921 hardcode_into_libs
=yes
17922 dynamic_linker
="$host_os dld.so"
17923 shlibpath_var
=LD_LIBRARY_PATH
17924 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17926 soname_spec
='${libname}${release}${shared_ext}$major'
17927 if test "X$HPUX_IA64_MODE" = X32
; then
17928 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17930 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17932 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17936 hardcode_into_libs
=yes
17937 dynamic_linker
="$host_os dld.sl"
17938 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17939 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941 soname_spec
='${libname}${release}${shared_ext}$major'
17942 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17943 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17947 dynamic_linker
="$host_os dld.sl"
17948 shlibpath_var
=SHLIB_PATH
17949 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951 soname_spec
='${libname}${release}${shared_ext}$major'
17954 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17955 postinstall_cmds
='chmod 555 $lib'
17962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17963 soname_spec
='${libname}${release}${shared_ext}$major'
17964 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17965 shlibpath_var
=LD_LIBRARY_PATH
17966 shlibpath_overrides_runpath
=no
17967 hardcode_into_libs
=yes
17970 irix5
* | irix6
* | nonstopux
*)
17972 nonstopux
*) version_type
=nonstopux
;;
17974 if test "$lt_cv_prog_gnu_ld" = yes; then
17982 soname_spec
='${libname}${release}${shared_ext}$major'
17983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17985 irix5
* | nonstopux
*)
17986 libsuff
= shlibsuff
=
17989 case $LD in # libtool.m4 will add one of these switches to LD
17990 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17991 libsuff
= shlibsuff
= libmagic
=32-bit;;
17992 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17993 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17994 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17995 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17996 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18000 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18001 shlibpath_overrides_runpath
=no
18002 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18003 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18004 hardcode_into_libs
=yes
18007 # No shared lib support for Linux oldld, aout, or coff.
18008 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18012 # This must be Linux ELF.
18017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18018 soname_spec
='${libname}${release}${shared_ext}$major'
18019 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18020 shlibpath_var
=LD_LIBRARY_PATH
18021 shlibpath_overrides_runpath
=no
18022 # This implies no fast_install, which is unacceptable.
18023 # Some rework will be needed to allow for fast_install
18024 # before this can be enabled.
18025 hardcode_into_libs
=yes
18027 # find out which ABI we are using
18029 case "$host_cpu" in
18030 x86_64
*|s390x
*|powerpc64
*)
18031 echo '#line 18031 "configure"' > conftest.
$ac_ext
18032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18033 (eval $ac_compile) 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; then
18037 case `/usr/bin/file conftest.$ac_objext` in
18040 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18048 # Append ld.so.conf contents to the search path
18049 if test -f /etc
/ld.so.conf
; then
18050 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/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18051 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18054 # We used to test for /lib/ld.so.1 and disable shared libraries on
18055 # powerpc, because MkLinux only supported shared libraries with the
18056 # GNU dynamic linker. Since this was broken with cross compilers,
18057 # most powerpc-linux boxes support dynamic linking these days and
18058 # people can always --disable-shared, the test was removed, and we
18059 # assume the GNU/Linux dynamic linker is in use.
18060 dynamic_linker
='GNU/Linux ld.so'
18067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18068 soname_spec
='${libname}${release}${shared_ext}$major'
18069 shlibpath_var
=LD_LIBRARY_PATH
18070 shlibpath_overrides_runpath
=no
18071 hardcode_into_libs
=yes
18072 dynamic_linker
='GNU ld.so'
18079 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18081 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18082 dynamic_linker
='NetBSD (a.out) ld.so'
18084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085 soname_spec
='${libname}${release}${shared_ext}$major'
18086 dynamic_linker
='NetBSD ld.elf_so'
18088 shlibpath_var
=LD_LIBRARY_PATH
18089 shlibpath_overrides_runpath
=yes
18090 hardcode_into_libs
=yes
18095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096 shlibpath_var
=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath
=yes
18104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105 soname_spec
='${libname}${release}${shared_ext}$major'
18106 shlibpath_var
=LD_LIBRARY_PATH
18107 shlibpath_overrides_runpath
=yes
18112 sys_lib_dlsearch_path_spec
="/usr/lib"
18114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18116 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18117 *) need_version
=no
;;
18119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18120 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18121 shlibpath_var
=LD_LIBRARY_PATH
18122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18124 openbsd2.
[89] | openbsd2.
[89].
*)
18125 shlibpath_overrides_runpath
=no
18128 shlibpath_overrides_runpath
=yes
18132 shlibpath_overrides_runpath
=yes
18137 libname_spec
='$name'
18140 library_names_spec
='$libname${shared_ext} $libname.a'
18141 dynamic_linker
='OS/2 ld.exe'
18142 shlibpath_var
=LIBPATH
18145 osf3
* | osf4
* | osf5
*)
18149 soname_spec
='${libname}${release}${shared_ext}$major'
18150 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151 shlibpath_var
=LD_LIBRARY_PATH
18152 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18153 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161 soname_spec
='${libname}${release}${shared_ext}$major'
18162 shlibpath_var
=LD_LIBRARY_PATH
18163 shlibpath_overrides_runpath
=yes
18164 hardcode_into_libs
=yes
18165 # ldd complains unless libraries are executable
18166 postinstall_cmds
='chmod +x $lib'
18171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18172 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18173 shlibpath_var
=LD_LIBRARY_PATH
18174 shlibpath_overrides_runpath
=yes
18175 if test "$with_gnu_ld" = yes; then
18183 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184 soname_spec
='${libname}${release}${shared_ext}$major'
18185 shlibpath_var
=LD_LIBRARY_PATH
18186 case $host_vendor in
18188 shlibpath_overrides_runpath
=no
18190 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18191 runpath_var
=LD_RUN_PATH
18199 shlibpath_overrides_runpath
=no
18200 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18206 if test -d /usr
/nec
;then
18208 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18209 soname_spec
='$libname${shared_ext}.$major'
18210 shlibpath_var
=LD_LIBRARY_PATH
18214 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18215 version_type
=freebsd-elf
18218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18219 soname_spec
='${libname}${release}${shared_ext}$major'
18220 shlibpath_var
=LD_LIBRARY_PATH
18221 hardcode_into_libs
=yes
18222 if test "$with_gnu_ld" = yes; then
18223 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18224 shlibpath_overrides_runpath
=no
18226 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18227 shlibpath_overrides_runpath
=yes
18230 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18234 sys_lib_dlsearch_path_spec
='/usr/lib'
18239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240 soname_spec
='${libname}${release}${shared_ext}$major'
18241 shlibpath_var
=LD_LIBRARY_PATH
18248 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18249 echo "${ECHO_T}$dynamic_linker" >&6; }
18250 test "$dynamic_linker" = no
&& can_build_shared
=no
18252 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18253 if test "$GCC" = yes; then
18254 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18257 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18258 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18259 hardcode_action_GCJ
=
18260 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18261 test -n "$runpath_var_GCJ" || \
18262 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18264 # We can hardcode non-existant directories.
18265 if test "$hardcode_direct_GCJ" != no
&&
18266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18267 # have to relink, otherwise we might link with an installed library
18268 # when we should be linking with a yet-to-be-installed one
18269 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18270 test "$hardcode_minus_L_GCJ" != no
; then
18271 # Linking always hardcodes the temporary library directory.
18272 hardcode_action_GCJ
=relink
18274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18275 hardcode_action_GCJ
=immediate
18278 # We cannot hardcode anything, or else we can only hardcode existing
18280 hardcode_action_GCJ
=unsupported
18282 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18283 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18285 if test "$hardcode_action_GCJ" = relink
; then
18286 # Fast installation is not supported
18287 enable_fast_install
=no
18288 elif test "$shlibpath_overrides_runpath" = yes ||
18289 test "$enable_shared" = no
; then
18290 # Fast installation is not necessary
18291 enable_fast_install
=needless
18295 # The else clause should only fire when bootstrapping the
18296 # libtool distribution, otherwise you forgot to ship ltmain.sh
18297 # with your package, and you will get complaints that there are
18298 # no rules to generate ltmain.sh.
18299 if test -f "$ltmain"; then
18300 # See if we are running on zsh, and set the options which allow our commands through
18301 # without removal of \ escapes.
18302 if test -n "${ZSH_VERSION+set}" ; then
18303 setopt NO_GLOB_SUBST
18305 # Now quote all the things that may contain metacharacters while being
18306 # careful not to overquote the AC_SUBSTed values. We take copies of the
18307 # variables and quote the copies for generation of the libtool script.
18308 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18310 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18311 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18312 deplibs_check_method reload_flag reload_cmds need_locks \
18313 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18314 lt_cv_sys_global_symbol_to_c_name_address \
18315 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18316 old_postinstall_cmds old_postuninstall_cmds \
18320 lt_prog_compiler_wl_GCJ \
18321 lt_prog_compiler_pic_GCJ \
18322 lt_prog_compiler_static_GCJ \
18323 lt_prog_compiler_no_builtin_flag_GCJ \
18324 export_dynamic_flag_spec_GCJ \
18325 thread_safe_flag_spec_GCJ \
18326 whole_archive_flag_spec_GCJ \
18327 enable_shared_with_static_runtimes_GCJ \
18328 old_archive_cmds_GCJ \
18329 old_archive_from_new_cmds_GCJ \
18330 predep_objects_GCJ \
18331 postdep_objects_GCJ \
18334 compiler_lib_search_path_GCJ \
18336 archive_expsym_cmds_GCJ \
18337 postinstall_cmds_GCJ \
18338 postuninstall_cmds_GCJ \
18339 old_archive_from_expsyms_cmds_GCJ \
18340 allow_undefined_flag_GCJ \
18341 no_undefined_flag_GCJ \
18342 export_symbols_cmds_GCJ \
18343 hardcode_libdir_flag_spec_GCJ \
18344 hardcode_libdir_flag_spec_ld_GCJ \
18345 hardcode_libdir_separator_GCJ \
18346 hardcode_automatic_GCJ \
18348 module_expsym_cmds_GCJ \
18349 lt_cv_prog_compiler_c_o_GCJ \
18350 exclude_expsyms_GCJ \
18351 include_expsyms_GCJ
; do
18354 old_archive_cmds_GCJ | \
18355 old_archive_from_new_cmds_GCJ | \
18356 archive_cmds_GCJ | \
18357 archive_expsym_cmds_GCJ | \
18358 module_cmds_GCJ | \
18359 module_expsym_cmds_GCJ | \
18360 old_archive_from_expsyms_cmds_GCJ | \
18361 export_symbols_cmds_GCJ | \
18362 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18363 postinstall_cmds | postuninstall_cmds | \
18364 old_postinstall_cmds | old_postuninstall_cmds | \
18365 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18366 # Double-quote double-evaled strings.
18367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18376 *'\$0 --fallback-echo"')
18377 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18383 cat <<__EOF__ >> "$cfgfile"
18384 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18388 # Shell to use when invoking shell scripts.
18391 # Whether or not to build shared libraries.
18392 build_libtool_libs=$enable_shared
18394 # Whether or not to build static libraries.
18395 build_old_libs=$enable_static
18397 # Whether or not to add -lc for building shared libraries.
18398 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18400 # Whether or not to disallow shared libs when runtime libs are static
18401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18403 # Whether or not to optimize for fast installation.
18404 fast_install=$enable_fast_install
18407 host_alias=$host_alias
18411 # The build system.
18412 build_alias=$build_alias
18416 # An echo program that does not interpret backslashes.
18421 AR_FLAGS=$lt_AR_FLAGS
18426 # LTCC compiler flags.
18427 LTCFLAGS=$lt_LTCFLAGS
18429 # A language-specific compiler.
18430 CC=$lt_compiler_GCJ
18432 # Is the compiler the GNU C compiler?
18438 # The linker used to build libraries.
18441 # Whether we need hard or soft links.
18444 # A BSD-compatible nm program.
18447 # A symbol stripping program
18450 # Used to examine libraries when file_magic_cmd begins "file"
18451 MAGIC_CMD=$MAGIC_CMD
18453 # Used on cygwin: DLL creation program.
18456 # Used on cygwin: object dumper.
18459 # Used on cygwin: assembler.
18462 # The name of the directory that contains temporary libtool files.
18465 # How to create reloadable object files.
18466 reload_flag=$lt_reload_flag
18467 reload_cmds=$lt_reload_cmds
18469 # How to pass a linker flag through the compiler.
18470 wl=$lt_lt_prog_compiler_wl_GCJ
18472 # Object file suffix (normally "o").
18473 objext="$ac_objext"
18475 # Old archive suffix (normally "a").
18478 # Shared library suffix (normally ".so").
18479 shrext_cmds='$shrext_cmds'
18481 # Executable file suffix (normally "").
18484 # Additional compiler flags for building library objects.
18485 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18488 # What is the maximum length of a command?
18489 max_cmd_len=$lt_cv_sys_max_cmd_len
18491 # Does compiler simultaneously support -c and -o options?
18492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18494 # Must we lock files when doing compilation?
18495 need_locks=$lt_need_locks
18497 # Do we need the lib prefix for modules?
18498 need_lib_prefix=$need_lib_prefix
18500 # Do we need a version for libraries?
18501 need_version=$need_version
18503 # Whether dlopen is supported.
18504 dlopen_support=$enable_dlopen
18506 # Whether dlopen of programs is supported.
18507 dlopen_self=$enable_dlopen_self
18509 # Whether dlopen of statically linked programs is supported.
18510 dlopen_self_static=$enable_dlopen_self_static
18512 # Compiler flag to prevent dynamic linking.
18513 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18515 # Compiler flag to turn off builtin functions.
18516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18518 # Compiler flag to allow reflexive dlopens.
18519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18521 # Compiler flag to generate shared objects directly from archives.
18522 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18524 # Compiler flag to generate thread-safe objects.
18525 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18527 # Library versioning type.
18528 version_type=$version_type
18530 # Format of library name prefix.
18531 libname_spec=$lt_libname_spec
18533 # List of archive names. First name is the real one, the rest are links.
18534 # The last name is the one that the linker finds with -lNAME.
18535 library_names_spec=$lt_library_names_spec
18537 # The coded name of the library, if different from the real name.
18538 soname_spec=$lt_soname_spec
18540 # Commands used to build and install an old-style archive.
18542 old_archive_cmds=$lt_old_archive_cmds_GCJ
18543 old_postinstall_cmds=$lt_old_postinstall_cmds
18544 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18546 # Create an old-style archive from a shared archive.
18547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18549 # Create a temporary old-style archive to link instead of a shared archive.
18550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18552 # Commands used to build and install a shared archive.
18553 archive_cmds=$lt_archive_cmds_GCJ
18554 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18555 postinstall_cmds=$lt_postinstall_cmds
18556 postuninstall_cmds=$lt_postuninstall_cmds
18558 # Commands used to build a loadable module (assumed same as above if empty)
18559 module_cmds=$lt_module_cmds_GCJ
18560 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18562 # Commands to strip libraries.
18563 old_striplib=$lt_old_striplib
18564 striplib=$lt_striplib
18566 # Dependencies to place before the objects being linked to create a
18568 predep_objects=$lt_predep_objects_GCJ
18570 # Dependencies to place after the objects being linked to create a
18572 postdep_objects=$lt_postdep_objects_GCJ
18574 # Dependencies to place before the objects being linked to create a
18576 predeps=$lt_predeps_GCJ
18578 # Dependencies to place after the objects being linked to create a
18580 postdeps=$lt_postdeps_GCJ
18582 # The library search path used internally by the compiler when linking
18583 # a shared library.
18584 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18586 # Method to check whether dependent libraries are shared objects.
18587 deplibs_check_method=$lt_deplibs_check_method
18589 # Command to use when deplibs_check_method == file_magic.
18590 file_magic_cmd=$lt_file_magic_cmd
18592 # Flag that allows shared libraries with undefined symbols to be built.
18593 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18595 # Flag that forces no undefined symbols.
18596 no_undefined_flag=$lt_no_undefined_flag_GCJ
18598 # Commands used to finish a libtool library installation in a directory.
18599 finish_cmds=$lt_finish_cmds
18601 # Same as above, but a single script fragment to be evaled but not shown.
18602 finish_eval=$lt_finish_eval
18604 # Take the output of nm and produce a listing of raw symbols and C names.
18605 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18607 # Transform the output of nm in a proper C declaration
18608 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18610 # Transform the output of nm in a C name address pair
18611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18613 # This is the shared library runtime path variable.
18614 runpath_var=$runpath_var
18616 # This is the shared library path variable.
18617 shlibpath_var=$shlibpath_var
18619 # Is shlibpath searched before the hard-coded library search path?
18620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18622 # How to hardcode a shared library path into an executable.
18623 hardcode_action=$hardcode_action_GCJ
18625 # Whether we should hardcode library paths into libraries.
18626 hardcode_into_libs=$hardcode_into_libs
18628 # Flag to hardcode \$libdir into a binary during linking.
18629 # This must work even if \$libdir does not exist.
18630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18632 # If ld is used when linking, flag to hardcode \$libdir into
18633 # a binary during linking. This must work even if \$libdir does
18635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18637 # Whether we need a single -rpath flag with a separated argument.
18638 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18640 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18641 # resulting binary.
18642 hardcode_direct=$hardcode_direct_GCJ
18644 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18645 # resulting binary.
18646 hardcode_minus_L=$hardcode_minus_L_GCJ
18648 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18649 # the resulting binary.
18650 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18652 # Set to yes if building a shared library automatically hardcodes DIR into the library
18653 # and all subsequent libraries and executables linked against it.
18654 hardcode_automatic=$hardcode_automatic_GCJ
18656 # Variables whose values should be saved in libtool wrapper scripts and
18657 # restored at relink time.
18658 variables_saved_for_relink="$variables_saved_for_relink"
18660 # Whether libtool must link a program against all its dependency libraries.
18661 link_all_deplibs=$link_all_deplibs_GCJ
18663 # Compile-time system search path for libraries
18664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18666 # Run-time system search path for libraries
18667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18669 # Fix the shell variable \$srcfile for the compiler.
18670 fix_srcfile_path="$fix_srcfile_path_GCJ"
18672 # Set to yes if exported symbols are required.
18673 always_export_symbols=$always_export_symbols_GCJ
18675 # The commands to list exported symbols.
18676 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18678 # The commands to extract the exported symbol list from a shared archive.
18679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18681 # Symbols that should not be listed in the preloaded symbols.
18682 exclude_expsyms=$lt_exclude_expsyms_GCJ
18684 # Symbols that must always be exported.
18685 include_expsyms=$lt_include_expsyms_GCJ
18687 # ### END LIBTOOL TAG CONFIG: $tagname
18693 # If there is no Makefile yet, we rely on a make rule to execute
18694 # `config.status --recheck' to rerun these tests and create the
18695 # libtool script then.
18696 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18697 if test -f "$ltmain_in"; then
18698 test -f Makefile
&& make "$ltmain"
18704 ac_cpp
='$CXXCPP $CPPFLAGS'
18705 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18719 # Source file extension for RC test sources.
18722 # Object file extension for compiled RC test sources.
18726 # Code to be used in simple compile tests
18727 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18729 # Code to be used in simple link tests
18730 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18734 # If no C compiler was specified, use CC.
18737 # If no C compiler flags were specified, use CFLAGS.
18738 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18740 # Allow CC to be a program name with arguments.
18744 # save warnings/boilerplate of simple test code
18745 ac_outfile
=conftest.
$ac_objext
18746 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
18747 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18748 _lt_compiler_boilerplate
=`cat conftest.err`
18751 ac_outfile
=conftest.
$ac_objext
18752 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
18753 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18754 _lt_linker_boilerplate
=`cat conftest.err`
18758 # Allow CC to be a program name with arguments.
18763 for cc_temp
in $compiler""; do
18765 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18766 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18771 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18773 lt_cv_prog_compiler_c_o_RC
=yes
18775 # The else clause should only fire when bootstrapping the
18776 # libtool distribution, otherwise you forgot to ship ltmain.sh
18777 # with your package, and you will get complaints that there are
18778 # no rules to generate ltmain.sh.
18779 if test -f "$ltmain"; then
18780 # See if we are running on zsh, and set the options which allow our commands through
18781 # without removal of \ escapes.
18782 if test -n "${ZSH_VERSION+set}" ; then
18783 setopt NO_GLOB_SUBST
18785 # Now quote all the things that may contain metacharacters while being
18786 # careful not to overquote the AC_SUBSTed values. We take copies of the
18787 # variables and quote the copies for generation of the libtool script.
18788 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18790 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18791 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18792 deplibs_check_method reload_flag reload_cmds need_locks \
18793 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18794 lt_cv_sys_global_symbol_to_c_name_address \
18795 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18796 old_postinstall_cmds old_postuninstall_cmds \
18800 lt_prog_compiler_wl_RC \
18801 lt_prog_compiler_pic_RC \
18802 lt_prog_compiler_static_RC \
18803 lt_prog_compiler_no_builtin_flag_RC \
18804 export_dynamic_flag_spec_RC \
18805 thread_safe_flag_spec_RC \
18806 whole_archive_flag_spec_RC \
18807 enable_shared_with_static_runtimes_RC \
18808 old_archive_cmds_RC \
18809 old_archive_from_new_cmds_RC \
18810 predep_objects_RC \
18811 postdep_objects_RC \
18814 compiler_lib_search_path_RC \
18816 archive_expsym_cmds_RC \
18817 postinstall_cmds_RC \
18818 postuninstall_cmds_RC \
18819 old_archive_from_expsyms_cmds_RC \
18820 allow_undefined_flag_RC \
18821 no_undefined_flag_RC \
18822 export_symbols_cmds_RC \
18823 hardcode_libdir_flag_spec_RC \
18824 hardcode_libdir_flag_spec_ld_RC \
18825 hardcode_libdir_separator_RC \
18826 hardcode_automatic_RC \
18828 module_expsym_cmds_RC \
18829 lt_cv_prog_compiler_c_o_RC \
18830 exclude_expsyms_RC \
18831 include_expsyms_RC
; do
18834 old_archive_cmds_RC | \
18835 old_archive_from_new_cmds_RC | \
18836 archive_cmds_RC | \
18837 archive_expsym_cmds_RC | \
18839 module_expsym_cmds_RC | \
18840 old_archive_from_expsyms_cmds_RC | \
18841 export_symbols_cmds_RC | \
18842 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18843 postinstall_cmds | postuninstall_cmds | \
18844 old_postinstall_cmds | old_postuninstall_cmds | \
18845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18846 # Double-quote double-evaled strings.
18847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18856 *'\$0 --fallback-echo"')
18857 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18863 cat <<__EOF__ >> "$cfgfile"
18864 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18866 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18868 # Shell to use when invoking shell scripts.
18871 # Whether or not to build shared libraries.
18872 build_libtool_libs=$enable_shared
18874 # Whether or not to build static libraries.
18875 build_old_libs=$enable_static
18877 # Whether or not to add -lc for building shared libraries.
18878 build_libtool_need_lc=$archive_cmds_need_lc_RC
18880 # Whether or not to disallow shared libs when runtime libs are static
18881 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18883 # Whether or not to optimize for fast installation.
18884 fast_install=$enable_fast_install
18887 host_alias=$host_alias
18891 # The build system.
18892 build_alias=$build_alias
18896 # An echo program that does not interpret backslashes.
18901 AR_FLAGS=$lt_AR_FLAGS
18906 # LTCC compiler flags.
18907 LTCFLAGS=$lt_LTCFLAGS
18909 # A language-specific compiler.
18912 # Is the compiler the GNU C compiler?
18918 # The linker used to build libraries.
18921 # Whether we need hard or soft links.
18924 # A BSD-compatible nm program.
18927 # A symbol stripping program
18930 # Used to examine libraries when file_magic_cmd begins "file"
18931 MAGIC_CMD=$MAGIC_CMD
18933 # Used on cygwin: DLL creation program.
18936 # Used on cygwin: object dumper.
18939 # Used on cygwin: assembler.
18942 # The name of the directory that contains temporary libtool files.
18945 # How to create reloadable object files.
18946 reload_flag=$lt_reload_flag
18947 reload_cmds=$lt_reload_cmds
18949 # How to pass a linker flag through the compiler.
18950 wl=$lt_lt_prog_compiler_wl_RC
18952 # Object file suffix (normally "o").
18953 objext="$ac_objext"
18955 # Old archive suffix (normally "a").
18958 # Shared library suffix (normally ".so").
18959 shrext_cmds='$shrext_cmds'
18961 # Executable file suffix (normally "").
18964 # Additional compiler flags for building library objects.
18965 pic_flag=$lt_lt_prog_compiler_pic_RC
18968 # What is the maximum length of a command?
18969 max_cmd_len=$lt_cv_sys_max_cmd_len
18971 # Does compiler simultaneously support -c and -o options?
18972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18974 # Must we lock files when doing compilation?
18975 need_locks=$lt_need_locks
18977 # Do we need the lib prefix for modules?
18978 need_lib_prefix=$need_lib_prefix
18980 # Do we need a version for libraries?
18981 need_version=$need_version
18983 # Whether dlopen is supported.
18984 dlopen_support=$enable_dlopen
18986 # Whether dlopen of programs is supported.
18987 dlopen_self=$enable_dlopen_self
18989 # Whether dlopen of statically linked programs is supported.
18990 dlopen_self_static=$enable_dlopen_self_static
18992 # Compiler flag to prevent dynamic linking.
18993 link_static_flag=$lt_lt_prog_compiler_static_RC
18995 # Compiler flag to turn off builtin functions.
18996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18998 # Compiler flag to allow reflexive dlopens.
18999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19001 # Compiler flag to generate shared objects directly from archives.
19002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19004 # Compiler flag to generate thread-safe objects.
19005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19007 # Library versioning type.
19008 version_type=$version_type
19010 # Format of library name prefix.
19011 libname_spec=$lt_libname_spec
19013 # List of archive names. First name is the real one, the rest are links.
19014 # The last name is the one that the linker finds with -lNAME.
19015 library_names_spec=$lt_library_names_spec
19017 # The coded name of the library, if different from the real name.
19018 soname_spec=$lt_soname_spec
19020 # Commands used to build and install an old-style archive.
19022 old_archive_cmds=$lt_old_archive_cmds_RC
19023 old_postinstall_cmds=$lt_old_postinstall_cmds
19024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19026 # Create an old-style archive from a shared archive.
19027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19029 # Create a temporary old-style archive to link instead of a shared archive.
19030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19032 # Commands used to build and install a shared archive.
19033 archive_cmds=$lt_archive_cmds_RC
19034 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19035 postinstall_cmds=$lt_postinstall_cmds
19036 postuninstall_cmds=$lt_postuninstall_cmds
19038 # Commands used to build a loadable module (assumed same as above if empty)
19039 module_cmds=$lt_module_cmds_RC
19040 module_expsym_cmds=$lt_module_expsym_cmds_RC
19042 # Commands to strip libraries.
19043 old_striplib=$lt_old_striplib
19044 striplib=$lt_striplib
19046 # Dependencies to place before the objects being linked to create a
19048 predep_objects=$lt_predep_objects_RC
19050 # Dependencies to place after the objects being linked to create a
19052 postdep_objects=$lt_postdep_objects_RC
19054 # Dependencies to place before the objects being linked to create a
19056 predeps=$lt_predeps_RC
19058 # Dependencies to place after the objects being linked to create a
19060 postdeps=$lt_postdeps_RC
19062 # The library search path used internally by the compiler when linking
19063 # a shared library.
19064 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19066 # Method to check whether dependent libraries are shared objects.
19067 deplibs_check_method=$lt_deplibs_check_method
19069 # Command to use when deplibs_check_method == file_magic.
19070 file_magic_cmd=$lt_file_magic_cmd
19072 # Flag that allows shared libraries with undefined symbols to be built.
19073 allow_undefined_flag=$lt_allow_undefined_flag_RC
19075 # Flag that forces no undefined symbols.
19076 no_undefined_flag=$lt_no_undefined_flag_RC
19078 # Commands used to finish a libtool library installation in a directory.
19079 finish_cmds=$lt_finish_cmds
19081 # Same as above, but a single script fragment to be evaled but not shown.
19082 finish_eval=$lt_finish_eval
19084 # Take the output of nm and produce a listing of raw symbols and C names.
19085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19087 # Transform the output of nm in a proper C declaration
19088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19090 # Transform the output of nm in a C name address pair
19091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19093 # This is the shared library runtime path variable.
19094 runpath_var=$runpath_var
19096 # This is the shared library path variable.
19097 shlibpath_var=$shlibpath_var
19099 # Is shlibpath searched before the hard-coded library search path?
19100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19102 # How to hardcode a shared library path into an executable.
19103 hardcode_action=$hardcode_action_RC
19105 # Whether we should hardcode library paths into libraries.
19106 hardcode_into_libs=$hardcode_into_libs
19108 # Flag to hardcode \$libdir into a binary during linking.
19109 # This must work even if \$libdir does not exist.
19110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19112 # If ld is used when linking, flag to hardcode \$libdir into
19113 # a binary during linking. This must work even if \$libdir does
19115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19117 # Whether we need a single -rpath flag with a separated argument.
19118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19121 # resulting binary.
19122 hardcode_direct=$hardcode_direct_RC
19124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19125 # resulting binary.
19126 hardcode_minus_L=$hardcode_minus_L_RC
19128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19129 # the resulting binary.
19130 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19132 # Set to yes if building a shared library automatically hardcodes DIR into the library
19133 # and all subsequent libraries and executables linked against it.
19134 hardcode_automatic=$hardcode_automatic_RC
19136 # Variables whose values should be saved in libtool wrapper scripts and
19137 # restored at relink time.
19138 variables_saved_for_relink="$variables_saved_for_relink"
19140 # Whether libtool must link a program against all its dependency libraries.
19141 link_all_deplibs=$link_all_deplibs_RC
19143 # Compile-time system search path for libraries
19144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19146 # Run-time system search path for libraries
19147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19149 # Fix the shell variable \$srcfile for the compiler.
19150 fix_srcfile_path="$fix_srcfile_path_RC"
19152 # Set to yes if exported symbols are required.
19153 always_export_symbols=$always_export_symbols_RC
19155 # The commands to list exported symbols.
19156 export_symbols_cmds=$lt_export_symbols_cmds_RC
19158 # The commands to extract the exported symbol list from a shared archive.
19159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19161 # Symbols that should not be listed in the preloaded symbols.
19162 exclude_expsyms=$lt_exclude_expsyms_RC
19164 # Symbols that must always be exported.
19165 include_expsyms=$lt_include_expsyms_RC
19167 # ### END LIBTOOL TAG CONFIG: $tagname
19173 # If there is no Makefile yet, we rely on a make rule to execute
19174 # `config.status --recheck' to rerun these tests and create the
19175 # libtool script then.
19176 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19177 if test -f "$ltmain_in"; then
19178 test -f Makefile
&& make "$ltmain"
19184 ac_cpp
='$CXXCPP $CPPFLAGS'
19185 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19194 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19195 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19196 { (exit 1); exit 1; }; }
19200 # Append the new tag name to the list of available tags.
19201 if test -n "$tagname" ; then
19202 available_tags
="$available_tags $tagname"
19208 # Now substitute the updated list of available tags.
19209 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19210 mv "${ofile}T" "$ofile"
19214 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19215 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19216 { (exit 1); exit 1; }; }
19222 # This can be used to rebuild libtool when needed
19223 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19225 # Always use our own libtool.
19226 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19228 # Prevent multiple expansion
19249 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19250 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
19251 if test "${ac_cv_c_bigendian+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19254 # See if sys/param.h defines the BYTE_ORDER macro.
19255 cat >conftest.
$ac_ext <<_ACEOF
19258 cat confdefs.h
>>conftest.
$ac_ext
19259 cat >>conftest.
$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19261 #include <sys/types.h>
19262 #include <sys/param.h>
19267 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
19268 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
19269 bogus endian macros
19276 rm -f conftest.
$ac_objext
19277 if { (ac_try
="$ac_compile"
19278 case "(($ac_try" in
19279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19285 grep -v '^ *+' conftest.er1 >conftest.err
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } && {
19290 test -z "$ac_cxx_werror_flag" ||
19291 test ! -s conftest.err
19292 } && test -s conftest.$ac_objext; then
19293 # It does; now see whether it defined to BIG_ENDIAN or not.
19294 cat >conftest.$ac_ext <<_ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 #include <sys/types.h>
19301 #include <sys/param.h>
19306 #if BYTE_ORDER != BIG_ENDIAN
19314 rm -f conftest.$ac_objext
19315 if { (ac_try="$ac_compile"
19316 case "(($ac_try" in
19317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19318 *) ac_try_echo
=$ac_try;;
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_compile") 2>conftest.er1
19323 grep -v '^ *+' conftest.er1
>conftest.err
19325 cat conftest.err
>&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } && {
19328 test -z "$ac_cxx_werror_flag" ||
19329 test ! -s conftest.err
19330 } && test -s conftest.
$ac_objext; then
19331 ac_cv_c_bigendian
=yes
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.
$ac_ext >&5
19336 ac_cv_c_bigendian
=no
19339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.
$ac_ext >&5
19344 # It does not; compile a test program.
19345 if test "$cross_compiling" = yes; then
19346 # try to guess the endianness by grepping values into an object file
19347 ac_cv_c_bigendian
=unknown
19348 cat >conftest.
$ac_ext <<_ACEOF
19351 cat confdefs.h
>>conftest.
$ac_ext
19352 cat >>conftest.
$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19354 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19355 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19356 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19357 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19358 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19359 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19363 _ascii (); _ebcdic ();
19368 rm -f conftest.
$ac_objext
19369 if { (ac_try
="$ac_compile"
19370 case "(($ac_try" in
19371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_compile") 2>conftest.er1
19377 grep -v '^ *+' conftest.er1 >conftest.err
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } && {
19382 test -z "$ac_cxx_werror_flag" ||
19383 test ! -s conftest.err
19384 } && test -s conftest.$ac_objext; then
19385 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19386 ac_cv_c_bigendian=yes
19388 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19389 if test "$ac_cv_c_bigendian" = unknown; then
19390 ac_cv_c_bigendian=no
19392 # finding both strings is unlikely to happen, but who knows?
19393 ac_cv_c_bigendian=unknown
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19405 cat >conftest.$ac_ext <<_ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19411 $ac_includes_default
19416 /* Are we little or big endian? From Harbison&Steele. */
19420 char c[sizeof (long int)];
19423 return u.c[sizeof (long int) - 1] == 1;
19429 rm -f conftest$ac_exeext
19430 if { (ac_try="$ac_link"
19431 case "(($ac_try" in
19432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19433 *) ac_try_echo
=$ac_try;;
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_link") 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19440 { (case "(($ac_try" in
19441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_try") 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; }; then
19449 ac_cv_c_bigendian=no
19451 echo "$as_me: program exited with status $ac_status" >&5
19452 echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 ( exit $ac_status )
19456 ac_cv_c_bigendian=yes
19458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19467 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
19468 case $ac_cv_c_bigendian in
19471 cat >>confdefs.h <<\_ACEOF
19472 #define WORDS_BIGENDIAN 1
19478 { { echo "$as_me:$LINENO: error: unknown endianness
19479 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19480 echo "$as_me: error: unknown endianness
19481 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19482 { (exit 1); exit 1; }; } ;;
19485 { echo "$as_me:$LINENO: checking host system type" >&5
19486 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19487 if test "${ac_cv_host+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 if test "x$host_alias" = x; then
19491 ac_cv_host=$ac_cv_build
19493 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19494 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19495 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19496 { (exit 1); exit 1; }; }
19500 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19501 echo "${ECHO_T}$ac_cv_host" >&6; }
19502 case $ac_cv_host in
19504 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19505 echo "$as_me: error: invalid value of canonical host" >&2;}
19506 { (exit 1); exit 1; }; };;
19509 ac_save_IFS=$IFS; IFS='-'
19515 # Remember, the first character of IFS is used to create $*,
19516 # except with old shells:
19519 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
19522 for ac_prog in 'bison -y' byacc
19524 # Extract the first word of "$ac_prog", so it can be a program name with args.
19525 set dummy $ac_prog; ac_word=$2
19526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19528 if test "${ac_cv_prog_YACC+set}" = set; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 if test -n "$YACC"; then
19532 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19535 for as_dir in $PATH
19538 test -z "$as_dir" && as_dir=.
19539 for ac_exec_ext in '' $ac_executable_extensions; do
19540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19541 ac_cv_prog_YACC="$ac_prog"
19542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19551 YACC=$ac_cv_prog_YACC
19552 if test -n "$YACC"; then
19553 { echo "$as_me:$LINENO: result: $YACC" >&5
19554 echo "${ECHO_T}$YACC" >&6; }
19556 { echo "$as_me:$LINENO: result: no" >&5
19557 echo "${ECHO_T}no" >&6; }
19561 test -n "$YACC" && break
19563 test -n "$YACC" || YACC="yacc"
19565 for ac_prog in flex lex
19567 # Extract the first word of "$ac_prog", so it can be a program name with args.
19568 set dummy $ac_prog; ac_word=$2
19569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19571 if test "${ac_cv_prog_LEX+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19574 if test -n "$LEX"; then
19575 ac_cv_prog_LEX="$LEX" # Let the user override the test.
19577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19578 for as_dir in $PATH
19581 test -z "$as_dir" && as_dir=.
19582 for ac_exec_ext in '' $ac_executable_extensions; do
19583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19584 ac_cv_prog_LEX="$ac_prog"
19585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19594 LEX=$ac_cv_prog_LEX
19595 if test -n "$LEX"; then
19596 { echo "$as_me:$LINENO: result: $LEX" >&5
19597 echo "${ECHO_T}$LEX" >&6; }
19599 { echo "$as_me:$LINENO: result: no" >&5
19600 echo "${ECHO_T}no" >&6; }
19604 test -n "$LEX" && break
19606 test -n "$LEX" || LEX=":"
19608 if test "x$LEX" != "x:"; then
19609 cat >conftest.l <<_ACEOF
19615 e { yyless (input () != 0); }
19616 f { unput (yytext[0]); }
19617 . { BEGIN INITIAL; }
19619 #ifdef YYTEXT_POINTER
19620 extern char *yytext;
19625 return ! yylex () + ! yywrap ();
19628 { (ac_try="$LEX conftest.l"
19629 case "(($ac_try" in
19630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19631 *) ac_try_echo
=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$LEX conftest.l") 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }
19638 { echo "$as_me:$LINENO: checking lex output file root" >&5
19639 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
19640 if test "${ac_cv_prog_lex_root+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 if test -f lex.yy.c
; then
19645 ac_cv_prog_lex_root
=lex.yy
19646 elif test -f lexyy.c
; then
19647 ac_cv_prog_lex_root
=lexyy
19649 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
19650 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
19651 { (exit 1); exit 1; }; }
19654 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
19655 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
19656 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
19658 if test -z "${LEXLIB+set}"; then
19659 { echo "$as_me:$LINENO: checking lex library" >&5
19660 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
19661 if test "${ac_cv_lib_lex+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19666 ac_cv_lib_lex
='none needed'
19667 for ac_lib
in '' -lfl -ll; do
19668 LIBS
="$ac_lib $ac_save_LIBS"
19669 cat >conftest.
$ac_ext <<_ACEOF
19670 `cat $LEX_OUTPUT_ROOT.c`
19672 rm -f conftest.
$ac_objext conftest
$ac_exeext
19673 if { (ac_try
="$ac_link"
19674 case "(($ac_try" in
19675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_link") 2>conftest.er1
19681 grep -v '^ *+' conftest.er1 >conftest.err
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } && {
19686 test -z "$ac_cxx_werror_flag" ||
19687 test ! -s conftest.err
19688 } && test -s conftest$ac_exeext &&
19689 $as_test_x conftest$ac_exeext; then
19690 ac_cv_lib_lex=$ac_lib
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19699 conftest$ac_exeext conftest.$ac_ext
19700 test "$ac_cv_lib_lex" != 'none needed' && break
19705 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
19706 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
19707 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
19711 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
19712 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
19713 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 # POSIX says lex can declare yytext either as a pointer or an array; the
19717 # default is implementation-dependent. Figure out which it is, since
19718 # not all implementations provide the %pointer and %array declarations.
19719 ac_cv_prog_lex_yytext_pointer=no
19721 LIBS="$LEXLIB $ac_save_LIBS"
19722 cat >conftest.$ac_ext <<_ACEOF
19723 #define YYTEXT_POINTER 1
19724 `cat $LEX_OUTPUT_ROOT.c
`
19726 rm -f conftest.$ac_objext conftest$ac_exeext
19727 if { (ac_try="$ac_link"
19728 case "(($ac_try" in
19729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19730 *) ac_try_echo
=$ac_try;;
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_link") 2>conftest.er1
19735 grep -v '^ *+' conftest.er1
>conftest.err
19737 cat conftest.err
>&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } && {
19740 test -z "$ac_cxx_werror_flag" ||
19741 test ! -s conftest.err
19742 } && test -s conftest
$ac_exeext &&
19743 $as_test_x conftest
$ac_exeext; then
19744 ac_cv_prog_lex_yytext_pointer
=yes
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.
$ac_ext >&5
19752 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19753 conftest
$ac_exeext conftest.
$ac_ext
19757 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
19758 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
19759 if test $ac_cv_prog_lex_yytext_pointer = yes; then
19761 cat >>confdefs.h
<<\_ACEOF
19762 #define YYTEXT_POINTER 1
19766 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
19769 if test "$LEX" = :; then
19770 LEX
=${am_missing_run}flex
19773 case "${host_os}" in
19778 case "${host_cpu}" in
19783 echo "#ifndef BUILD_H" >build.h
19784 echo "#define BUILD_H" >>build.h
19785 echo "#define CSQL" >>build.h
19786 echo "#define ${OSTYPE}" >>build.h
19787 echo "#define ${CPUTYPE}" >>build.h
19788 echo "#endif " >>build.h
19805 for ac_header
in stdio.h sys
/mman.h sys
/shm.h sys
/errno.h
crypt.h unistd.h \
19806 string.h sys
/types.h sys
/stat.h fcntl.h pthread.h math.h \
19809 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19810 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19813 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19816 ac_res
=`eval echo '${'$as_ac_Header'}'`
19817 { echo "$as_me:$LINENO: result: $ac_res" >&5
19818 echo "${ECHO_T}$ac_res" >&6; }
19820 # Is the header compilable?
19821 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19823 cat >conftest.
$ac_ext <<_ACEOF
19826 cat confdefs.h
>>conftest.
$ac_ext
19827 cat >>conftest.
$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19829 $ac_includes_default
19830 #include <$ac_header>
19832 rm -f conftest.
$ac_objext
19833 if { (ac_try
="$ac_compile"
19834 case "(($ac_try" in
19835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_compile") 2>conftest.er1
19841 grep -v '^ *+' conftest.er1 >conftest.err
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } && {
19846 test -z "$ac_cxx_werror_flag" ||
19847 test ! -s conftest.err
19848 } && test -s conftest.$ac_objext; then
19849 ac_header_compiler=yes
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 ac_header_compiler=no
19857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19859 echo "${ECHO_T}$ac_header_compiler" >&6; }
19861 # Is the header present?
19862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19864 cat >conftest.$ac_ext <<_ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 #include <$ac_header>
19872 if { (ac_try="$ac_cpp conftest.$ac_ext"
19873 case "(($ac_try" in
19874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19875 *) ac_try_echo
=$ac_try;;
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19880 grep -v '^ *+' conftest.er1
>conftest.err
19882 cat conftest.err
>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } >/dev
/null
&& {
19885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19886 test ! -s conftest.err
19888 ac_header_preproc
=yes
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.
$ac_ext >&5
19893 ac_header_preproc
=no
19896 rm -f conftest.err conftest.
$ac_ext
19897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19898 echo "${ECHO_T}$ac_header_preproc" >&6; }
19900 # So? What about this header?
19901 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19907 ac_header_preproc
=yes
19910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19927 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19930 eval "$as_ac_Header=\$ac_header_preproc"
19932 ac_res
=`eval echo '${'$as_ac_Header'}'`
19933 { echo "$as_me:$LINENO: result: $ac_res" >&5
19934 echo "${ECHO_T}$ac_res" >&6; }
19937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19938 cat >>confdefs.h
<<_ACEOF
19939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19949 ac_config_files
="$ac_config_files Makefile src/Makefile include/Makefile src/server/Makefile src/sql/Makefile src/jdbc/Makefile src/cache/Makefile src/tools/Makefile"
19951 cat >confcache
<<\_ACEOF
19952 # This file is a shell script that caches the results of configure
19953 # tests run on this system so they can be shared between configure
19954 # scripts and configure runs, see configure's option --config-cache.
19955 # It is not useful on other systems. If it contains results you don't
19956 # want to keep, you may remove or edit it.
19958 # config.status only pays attention to the cache file if you give it
19959 # the --recheck option to rerun configure.
19961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19963 # following values.
19967 # The following way of writing the cache mishandles newlines in values,
19968 # but we know of no workaround that is simple, portable, and efficient.
19969 # So, we kill variables containing newlines.
19970 # Ultrix sh set writes to stderr and can't be redirected directly,
19971 # and sets the high bit in the cache file unless we assign to the vars.
19973 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19974 eval ac_val
=\$
$ac_var
19978 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19979 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19982 _ | IFS | as_nl
) ;; #(
19983 *) $as_unset $ac_var ;;
19989 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19990 *${as_nl}ac_space
=\
*)
19991 # `set' does not quote correctly, so add quotes (double-quote
19992 # substitution turns \\\\ into \\, and sed turns \\ into \).
19995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19998 # `set' quotes correctly as required by POSIX, so do not add quotes.
19999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20008 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20010 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20012 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20013 if test -w "$cache_file"; then
20014 test "x$cache_file" != "x/dev/null" &&
20015 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20016 echo "$as_me: updating cache $cache_file" >&6;}
20017 cat confcache
>$cache_file
20019 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20020 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20025 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20026 # Let make expand exec_prefix.
20027 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20029 DEFS
=-DHAVE_CONFIG_H
20033 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20034 # 1. Remove the extension, and $U if already installed.
20035 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20036 ac_i
=`echo "$ac_i" | sed "$ac_script"`
20037 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20038 # will be set to the directory where LIBOBJS objects are built.
20039 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20040 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20042 LIBOBJS
=$ac_libobjs
20044 LTLIBOBJS
=$ac_ltlibobjs
20047 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20048 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20049 Usually this means the macro was only invoked conditionally." >&5
20050 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20051 Usually this means the macro was only invoked conditionally." >&2;}
20052 { (exit 1); exit 1; }; }
20054 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20055 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20056 Usually this means the macro was only invoked conditionally." >&5
20057 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20058 Usually this means the macro was only invoked conditionally." >&2;}
20059 { (exit 1); exit 1; }; }
20061 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20062 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20063 Usually this means the macro was only invoked conditionally." >&5
20064 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20065 Usually this means the macro was only invoked conditionally." >&2;}
20066 { (exit 1); exit 1; }; }
20069 : ${CONFIG_STATUS=./config.status}
20070 ac_clean_files_save
=$ac_clean_files
20071 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20072 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20073 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20074 cat >$CONFIG_STATUS <<_ACEOF
20076 # Generated by $as_me.
20077 # Run this file to recreate the current configuration.
20078 # Compiler output produced by configure, useful for debugging
20079 # configure, is in config.log if it exists.
20082 ac_cs_recheck=false
20084 SHELL=\${CONFIG_SHELL-$SHELL}
20087 cat >>$CONFIG_STATUS <<\_ACEOF
20088 ## --------------------- ##
20089 ## M4sh Initialization. ##
20090 ## --------------------- ##
20092 # Be more Bourne compatible
20093 DUALCASE
=1; export DUALCASE
# for MKS sh
20094 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20097 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20098 # is contrary to our usage. Disable this feature.
20099 alias -g '${1+"$@"}'='"$@"'
20100 setopt NO_GLOB_SUBST
20102 case `(set -o) 2>/dev/null` in
20103 *posix
*) set -o posix
;;
20112 # Avoid depending upon Character Ranges.
20113 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20114 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20115 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20116 as_cr_digits
='0123456789'
20117 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20119 # The user is always right.
20120 if test "${PATH_SEPARATOR+set}" != set; then
20121 echo "#! /bin/sh" >conf$$.sh
20122 echo "exit 0" >>conf$$.sh
20124 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20132 # Support unset when possible.
20133 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
20141 # We need space, tab and new line, in precisely that order. Quoting is
20142 # there to prevent editors from complaining about space-tab.
20143 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20144 # splitting by setting IFS to empty value.)
20149 # Find who we are. Look in the path if we contain no directory separator.
20151 *[\\/]* ) as_myself
=$0 ;;
20152 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20153 for as_dir
in $PATH
20156 test -z "$as_dir" && as_dir
=.
20157 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20163 # We did not find ourselves, most probably we were run as `sh COMMAND'
20164 # in which case we are not to be found in the path.
20165 if test "x$as_myself" = x
; then
20168 if test ! -f "$as_myself"; then
20169 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20170 { (exit 1); exit 1; }
20173 # Work around bugs in pre-3.0 UWIN ksh.
20174 for as_var
in ENV MAIL MAILPATH
20175 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20183 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20184 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20185 LC_TELEPHONE LC_TIME
20187 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20188 eval $as_var=C
; export $as_var
20190 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20194 # Required to use basename.
20195 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20196 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20202 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20203 as_basename
=basename
20209 # Name of the executable.
20210 as_me
=`$as_basename -- "$0" ||
20211 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20212 X"$0" : 'X\(//\)$' \| \
20213 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20215 sed '/^.*\/\([^/][^/]*\)\/*$/{
20234 as_lineno_1
=$LINENO
20235 as_lineno_2
=$LINENO
20236 test "x$as_lineno_1" != "x$as_lineno_2" &&
20237 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
20239 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20240 # uniformly replaced by the line number. The first 'sed' inserts a
20241 # line-number line after each line using $LINENO; the second 'sed'
20242 # does the real work. The second script uses 'N' to pair each
20243 # line-number line with the line containing $LINENO, and appends
20244 # trailing '-' during substitution so that $LINENO is not a special
20245 # case at line end.
20246 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20247 # scripts with optimization help from Paolo Bonzini. Blame Lee
20248 # E. McMahon (1931-1989) for sed's syntax. :-)
20260 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20263 ' >$as_me.lineno
&&
20264 chmod +x
"$as_me.lineno" ||
20265 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20266 { (exit 1); exit 1; }; }
20268 # Don't try to exec as it changes $[0], causing all sort of problems
20269 # (the dirname of $[0] is not the place where we might find the
20270 # original and so on. Autoconf is especially sensitive to this).
20271 .
"./$as_me.lineno"
20272 # Exit status is that of the last command.
20277 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20283 ECHO_C
= ECHO_N
= ECHO_T
=
20284 case `echo -n x` in
20286 case `echo 'x\c'` in
20287 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20294 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20295 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20301 rm -f conf$$ conf$$.exe conf$$.
file
20302 if test -d conf$$.dir
; then
20303 rm -f conf$$.dir
/conf$$.
file
20309 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20311 # ... but there are two gotchas:
20312 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20313 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20314 # In both cases, we have to default to `cp -p'.
20315 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20317 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20322 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20323 rmdir conf$$.dir
2>/dev
/null
20325 if mkdir
-p .
2>/dev
/null
; then
20328 test -d .
/-p && rmdir .
/-p
20332 if test -x / >/dev
/null
2>&1; then
20333 as_test_x
='test -x'
20335 if ls -dL / >/dev
/null
2>&1; then
20342 if test -d "$1"; then
20348 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20349 ???[sx]*):;;*)false;;esac;fi
20353 as_executable_p
=$as_test_x
20355 # Sed expression to map a string onto a valid CPP name.
20356 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20358 # Sed expression to map a string onto a valid variable name.
20359 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20364 # Save the log message, to keep $[0] and so on meaningful, and to
20365 # report actual input values of CONFIG_FILES etc. instead of their
20366 # values after options handling.
20368 This file was extended by $as_me, which was
20369 generated by GNU Autoconf 2.61. Invocation command line was
20371 CONFIG_FILES = $CONFIG_FILES
20372 CONFIG_HEADERS = $CONFIG_HEADERS
20373 CONFIG_LINKS = $CONFIG_LINKS
20374 CONFIG_COMMANDS = $CONFIG_COMMANDS
20377 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20382 cat >>$CONFIG_STATUS <<_ACEOF
20383 # Files that config.status was made for.
20384 config_files="$ac_config_files"
20385 config_headers="$ac_config_headers"
20386 config_commands="$ac_config_commands"
20390 cat >>$CONFIG_STATUS <<\_ACEOF
20392 \`$as_me' instantiates files from templates according to the
20393 current configuration.
20395 Usage: $0 [OPTIONS] [FILE]...
20397 -h, --help print this help, then exit
20398 -V, --version print version number and configuration settings, then exit
20399 -q, --quiet do not print progress messages
20400 -d, --debug don't remove temporary files
20401 --recheck update $as_me by reconfiguring in the same conditions
20402 --file=FILE[:TEMPLATE]
20403 instantiate the configuration file FILE
20404 --header=FILE[:TEMPLATE]
20405 instantiate the configuration header FILE
20407 Configuration files:
20410 Configuration headers:
20413 Configuration commands:
20416 Report bugs to <bug-autoconf@gnu.org>."
20419 cat >>$CONFIG_STATUS <<_ACEOF
20422 configured by $0, generated by GNU Autoconf 2.61,
20423 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20425 Copyright (C) 2006 Free Software Foundation, Inc.
20426 This config.status script is free software; the Free Software Foundation
20427 gives unlimited permission to copy, distribute and modify it."
20435 cat >>$CONFIG_STATUS <<\_ACEOF
20436 # If no file are specified by the user, then we need to provide default
20437 # value. By we need to know if files were specified by the user.
20443 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20444 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20455 # Handling of the options.
20456 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20458 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20459 echo "$ac_cs_version"; exit ;;
20460 --debug |
--debu |
--deb |
--de |
--d |
-d )
20462 --file |
--fil |
--fi |
--f )
20464 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20465 ac_need_defaults
=false
;;
20466 --header |
--heade |
--head |
--hea )
20468 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20469 ac_need_defaults
=false
;;
20471 # Conflict between --help and --header
20472 { echo "$as_me: error: ambiguous option: $1
20473 Try \`$0 --help' for more information." >&2
20474 { (exit 1); exit 1; }; };;
20475 --help |
--hel |
-h )
20476 echo "$ac_cs_usage"; exit ;;
20477 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20478 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20481 # This is an error.
20482 -*) { echo "$as_me: error: unrecognized option: $1
20483 Try \`$0 --help' for more information." >&2
20484 { (exit 1); exit 1; }; } ;;
20486 *) ac_config_targets
="$ac_config_targets $1"
20487 ac_need_defaults
=false
;;
20493 ac_configure_extra_args
=
20495 if $ac_cs_silent; then
20497 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20501 cat >>$CONFIG_STATUS <<_ACEOF
20502 if \$ac_cs_recheck; then
20503 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20504 CONFIG_SHELL=$SHELL
20505 export CONFIG_SHELL
20506 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20510 cat >>$CONFIG_STATUS <<\_ACEOF
20514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20515 ## Running $as_me. ##
20521 cat >>$CONFIG_STATUS <<_ACEOF
20525 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20529 cat >>$CONFIG_STATUS <<\_ACEOF
20531 # Handling of arguments.
20532 for ac_config_target
in $ac_config_targets
20534 case $ac_config_target in
20535 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20536 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20537 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20538 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20539 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
20540 "src/server/Makefile") CONFIG_FILES
="$CONFIG_FILES src/server/Makefile" ;;
20541 "src/sql/Makefile") CONFIG_FILES
="$CONFIG_FILES src/sql/Makefile" ;;
20542 "src/jdbc/Makefile") CONFIG_FILES
="$CONFIG_FILES src/jdbc/Makefile" ;;
20543 "src/cache/Makefile") CONFIG_FILES
="$CONFIG_FILES src/cache/Makefile" ;;
20544 "src/tools/Makefile") CONFIG_FILES
="$CONFIG_FILES src/tools/Makefile" ;;
20546 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20547 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20548 { (exit 1); exit 1; }; };;
20553 # If the user did not use the arguments to specify the items to instantiate,
20554 # then the envvar interface is used. Set only those that are not.
20555 # We use the long form for the default assignment because of an extremely
20556 # bizarre bug on SunOS 4.1.3.
20557 if $ac_need_defaults; then
20558 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20559 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20560 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20563 # Have a temporary directory for convenience. Make it in the build tree
20564 # simply because there is no reason against having it here, and in addition,
20565 # creating and moving files from /tmp can sometimes cause problems.
20566 # Hook for its removal unless debugging.
20567 # Note that there is a small window in which the directory will not be cleaned:
20568 # after its creation but before its name has been assigned to `$tmp'.
20572 trap 'exit_status=$?
20573 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20575 trap '{ (exit 1); exit 1; }' 1 2 13 15
20577 # Create a (secure) tmp directory for tmp files.
20580 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20581 test -n "$tmp" && test -d "$tmp"
20584 tmp
=.
/conf$$
-$RANDOM
20585 (umask 077 && mkdir
"$tmp")
20588 echo "$me: cannot create a temporary directory in ." >&2
20589 { (exit 1); exit 1; }
20593 # Set up the sed scripts for CONFIG_FILES section.
20596 # No need to generate the scripts if there are no CONFIG_FILES.
20597 # This happens for instance when ./config.status config.h
20598 if test -n "$CONFIG_FILES"; then
20605 for ac_last_try
in false false false false false
:; do
20606 cat >conf$
$subs.
sed <<_ACEOF
20607 SHELL!$SHELL$ac_delim
20608 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20609 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20610 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20611 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20612 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20613 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20614 exec_prefix!$exec_prefix$ac_delim
20615 prefix!$prefix$ac_delim
20616 program_transform_name!$program_transform_name$ac_delim
20617 bindir!$bindir$ac_delim
20618 sbindir!$sbindir$ac_delim
20619 libexecdir!$libexecdir$ac_delim
20620 datarootdir!$datarootdir$ac_delim
20621 datadir!$datadir$ac_delim
20622 sysconfdir!$sysconfdir$ac_delim
20623 sharedstatedir!$sharedstatedir$ac_delim
20624 localstatedir!$localstatedir$ac_delim
20625 includedir!$includedir$ac_delim
20626 oldincludedir!$oldincludedir$ac_delim
20627 docdir!$docdir$ac_delim
20628 infodir!$infodir$ac_delim
20629 htmldir!$htmldir$ac_delim
20630 dvidir!$dvidir$ac_delim
20631 pdfdir!$pdfdir$ac_delim
20632 psdir!$psdir$ac_delim
20633 libdir!$libdir$ac_delim
20634 localedir!$localedir$ac_delim
20635 mandir!$mandir$ac_delim
20636 DEFS!$DEFS$ac_delim
20637 ECHO_C!$ECHO_C$ac_delim
20638 ECHO_N!$ECHO_N$ac_delim
20639 ECHO_T!$ECHO_T$ac_delim
20640 LIBS!$LIBS$ac_delim
20641 build_alias!$build_alias$ac_delim
20642 host_alias!$host_alias$ac_delim
20643 target_alias!$target_alias$ac_delim
20644 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20645 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20646 INSTALL_DATA!$INSTALL_DATA$ac_delim
20647 am__isrc!$am__isrc$ac_delim
20648 CYGPATH_W!$CYGPATH_W$ac_delim
20649 PACKAGE!$PACKAGE$ac_delim
20650 VERSION!$VERSION$ac_delim
20651 ACLOCAL!$ACLOCAL$ac_delim
20652 AUTOCONF!$AUTOCONF$ac_delim
20653 AUTOMAKE!$AUTOMAKE$ac_delim
20654 AUTOHEADER!$AUTOHEADER$ac_delim
20655 MAKEINFO!$MAKEINFO$ac_delim
20656 install_sh!$install_sh$ac_delim
20657 STRIP!$STRIP$ac_delim
20658 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20659 mkdir_p!$mkdir_p$ac_delim
20661 SET_MAKE!$SET_MAKE$ac_delim
20662 am__leading_dot!$am__leading_dot$ac_delim
20663 AMTAR!$AMTAR$ac_delim
20664 am__tar!$am__tar$ac_delim
20665 am__untar!$am__untar$ac_delim
20667 CXXFLAGS!$CXXFLAGS$ac_delim
20668 LDFLAGS!$LDFLAGS$ac_delim
20669 CPPFLAGS!$CPPFLAGS$ac_delim
20670 ac_ct_CXX!$ac_ct_CXX$ac_delim
20671 EXEEXT!$EXEEXT$ac_delim
20672 OBJEXT!$OBJEXT$ac_delim
20673 DEPDIR!$DEPDIR$ac_delim
20674 am__include!$am__include$ac_delim
20675 am__quote!$am__quote$ac_delim
20676 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20677 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20678 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20679 CXXDEPMODE!$CXXDEPMODE$ac_delim
20680 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20681 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20682 build!$build$ac_delim
20683 build_cpu!$build_cpu$ac_delim
20684 build_vendor!$build_vendor$ac_delim
20685 build_os!$build_os$ac_delim
20686 host!$host$ac_delim
20687 host_cpu!$host_cpu$ac_delim
20688 host_vendor!$host_vendor$ac_delim
20689 host_os!$host_os$ac_delim
20691 CFLAGS!$CFLAGS$ac_delim
20692 ac_ct_CC!$ac_ct_CC$ac_delim
20693 CCDEPMODE!$CCDEPMODE$ac_delim
20694 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20695 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20697 GREP!$GREP$ac_delim
20698 EGREP!$EGREP$ac_delim
20699 LN_S!$LN_S$ac_delim
20700 ECHO!$ECHO$ac_delim
20702 RANLIB!$RANLIB$ac_delim
20706 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20708 elif $ac_last_try; then
20709 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20710 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20711 { (exit 1); exit 1; }; }
20713 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
20717 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20718 if test -n "$ac_eof"; then
20719 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
20720 ac_eof
=`expr $ac_eof + 1`
20723 cat >>$CONFIG_STATUS <<_ACEOF
20724 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20728 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20729 s/^/s,@/; s/!/@,|#_!!_#|/
20732 s/'"$ac_delim"'$/,g/; t
20734 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20735 ' >>$CONFIG_STATUS <conf$
$subs.
sed
20736 rm -f conf$
$subs.
sed
20737 cat >>$CONFIG_STATUS <<_ACEOF
20743 for ac_last_try
in false false false false false
:; do
20744 cat >conf$
$subs.
sed <<_ACEOF
20745 CXXCPP!$CXXCPP$ac_delim
20747 FFLAGS!$FFLAGS$ac_delim
20748 ac_ct_F77!$ac_ct_F77$ac_delim
20749 LIBTOOL!$LIBTOOL$ac_delim
20750 YACC!$YACC$ac_delim
20751 YFLAGS!$YFLAGS$ac_delim
20753 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
20754 LEXLIB!$LEXLIB$ac_delim
20755 LIBOBJS!$LIBOBJS$ac_delim
20756 LTLIBOBJS!$LTLIBOBJS$ac_delim
20759 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
20761 elif $ac_last_try; then
20762 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20763 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20764 { (exit 1); exit 1; }; }
20766 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
20770 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20771 if test -n "$ac_eof"; then
20772 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
20773 ac_eof
=`expr $ac_eof + 1`
20776 cat >>$CONFIG_STATUS <<_ACEOF
20777 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20781 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20782 s/^/s,@/; s/!/@,|#_!!_#|/
20785 s/'"$ac_delim"'$/,g/; t
20787 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20788 ' >>$CONFIG_STATUS <conf$
$subs.
sed
20789 rm -f conf$
$subs.
sed
20790 cat >>$CONFIG_STATUS <<_ACEOF
20797 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20798 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20799 # trailing colons and then remove the whole line if VPATH becomes empty
20800 # (actually we leave an empty line to preserve line numbers).
20801 if test "x$srcdir" = x.
; then
20802 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
20803 s/:*\$(srcdir):*/:/
20804 s/:*\${srcdir}:*/:/
20806 s/^\([^=]*=[ ]*\):*/\1/
20812 cat >>$CONFIG_STATUS <<\_ACEOF
20813 fi # test -n "$CONFIG_FILES"
20816 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
20819 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20821 case $ac_mode$ac_tag in
20823 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20824 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20825 { (exit 1); exit 1; }; };;
20826 :[FH
]-) ac_tag
=-:-;;
20827 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20844 -) ac_f
="$tmp/stdin";;
20845 *) # Look for the file first in the build tree, then in the source tree
20846 # (if the path is not absolute). The absolute path cannot be DOS-style,
20847 # because $ac_f cannot contain `:'.
20851 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20853 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20854 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20855 { (exit 1); exit 1; }; };;
20857 ac_file_inputs
="$ac_file_inputs $ac_f"
20860 # Let's still pretend it is `configure' which instantiates (i.e., don't
20861 # use $as_me), people would be surprised to read:
20862 # /* config.h. Generated by config.status. */
20863 configure_input
="Generated from "`IFS=:
20864 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20865 if test x
"$ac_file" != x-
; then
20866 configure_input
="$ac_file. $configure_input"
20867 { echo "$as_me:$LINENO: creating $ac_file" >&5
20868 echo "$as_me: creating $ac_file" >&6;}
20872 *:-:* |
*:-) cat >"$tmp/stdin";;
20877 ac_dir
=`$as_dirname -- "$ac_file" ||
20878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20879 X"$ac_file" : 'X\(//\)[^/]' \| \
20880 X"$ac_file" : 'X\(//\)$' \| \
20881 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20887 /^X\(\/\/\)[^/].*/{
20902 -*) as_dir
=.
/$as_dir;;
20904 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
20908 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20909 *) as_qdir
=$as_dir;;
20911 as_dirs
="'$as_qdir' $as_dirs"
20912 as_dir
=`$as_dirname -- "$as_dir" ||
20913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20914 X"$as_dir" : 'X\(//\)[^/]' \| \
20915 X"$as_dir" : 'X\(//\)$' \| \
20916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20922 /^X\(\/\/\)[^/].*/{
20935 test -d "$as_dir" && break
20937 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20938 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20940 { (exit 1); exit 1; }; }; }
20944 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20946 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20947 # A ".." for each directory in $ac_dir_suffix.
20948 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20949 case $ac_top_builddir_sub in
20950 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20951 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20954 ac_abs_top_builddir
=$ac_pwd
20955 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20956 # for backward compatibility:
20957 ac_top_builddir
=$ac_top_build_prefix
20960 .
) # We are building in place.
20962 ac_top_srcdir
=$ac_top_builddir_sub
20963 ac_abs_top_srcdir
=$ac_pwd ;;
20964 [\\/]* | ?
:[\\/]* ) # Absolute name.
20965 ac_srcdir
=$srcdir$ac_dir_suffix;
20966 ac_top_srcdir
=$srcdir
20967 ac_abs_top_srcdir
=$srcdir ;;
20968 *) # Relative name.
20969 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20970 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20971 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20973 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20983 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20984 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20986 ac_MKDIR_P
=$MKDIR_P
20988 [\\/$
]* | ?
:[\\/]* ) ;;
20989 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20993 cat >>$CONFIG_STATUS <<\_ACEOF
20994 # If the template does not know about datarootdir, expand it.
20995 # FIXME: This hack should be removed a few years after 2.60.
20996 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20998 case `sed -n '/datarootdir/ {
21007 ' $ac_file_inputs` in
21008 *datarootdir
*) ac_datarootdir_seen
=yes;;
21009 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21010 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21011 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21013 cat >>$CONFIG_STATUS <<_ACEOF
21014 ac_datarootdir_hack='
21015 s&@datadir@&$datadir&g
21016 s&@docdir@&$docdir&g
21017 s&@infodir@&$infodir&g
21018 s&@localedir@&$localedir&g
21019 s&@mandir@&$mandir&g
21020 s&\\\${datarootdir}&$datarootdir&g' ;;
21024 # Neutralize VPATH when `$srcdir' = `.'.
21025 # Shell code in configure.ac might set extrasub.
21026 # FIXME: do we really want to maintain this feature?
21027 cat >>$CONFIG_STATUS <<_ACEOF
21031 cat >>$CONFIG_STATUS <<\_ACEOF
21033 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21034 s
&@configure_input@
&$configure_input&;t t
21035 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21036 s
&@srcdir@
&$ac_srcdir&;t t
21037 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21038 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21039 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21040 s
&@builddir@
&$ac_builddir&;t t
21041 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21042 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21043 s
&@INSTALL@
&$ac_INSTALL&;t t
21044 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21045 $ac_datarootdir_hack
21046 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
21048 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21049 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21051 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21052 which seems to be undefined. Please make sure it is defined." >&5
21053 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21054 which seems to be undefined. Please make sure it is defined." >&2;}
21058 -) cat "$tmp/out"; rm -f "$tmp/out";;
21059 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21068 # Transform confdefs.h into a sed script `conftest.defines', that
21069 # substitutes the proper values into config.h.in to produce config.h.
21070 rm -f conftest.defines conftest.
tail
21071 # First, append a space to every undef/define line, to ease matching.
21072 echo 's/$/ /' >conftest.defines
21073 # Then, protect against being on the right side of a sed subst, or in
21074 # an unquoted here document, in config.status. If some macros were
21075 # called several times there might be several #defines for the same
21076 # symbol, which is useless. But do not sort them, since the last
21077 # AC_DEFINE must be honored.
21078 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
21079 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21080 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21081 # PARAMS is the parameter list in the macro definition--in most cases, it's
21082 # just an empty string.
21083 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21084 ac_dB
='\\)[ (].*,\\1define\\2'
21092 s/^[ ]*#[ ]*define[ ][ ]*//
21097 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21098 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21099 ' >>conftest.defines
21101 # Remove the space that was appended to ease matching.
21102 # Then replace #undef with comments. This is necessary, for
21103 # example, in the case of _POSIX_SOURCE, which is predefined and required
21104 # on some systems where configure will not decide to define it.
21105 # (The regexp can be short, since the line contains either #define or #undef.)
21107 s,^[ #]*u.*,/* & */,' >>conftest.defines
21109 # Break up conftest.defines:
21110 ac_max_sed_lines
=50
21112 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21113 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21114 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21116 ac_in
='$ac_file_inputs'
21117 ac_out
='"$tmp/out1"'
21118 ac_nxt
='"$tmp/out2"'
21122 # Write a here document:
21123 cat >>$CONFIG_STATUS <<_ACEOF
21124 # First, check the format of the line:
21125 cat >"\$tmp/defines.sed" <<\\CEOF
21126 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21127 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21131 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
21133 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21134 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
21135 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
21136 grep . conftest.
tail >/dev
/null ||
break
21137 rm -f conftest.defines
21138 mv conftest.
tail conftest.defines
21140 rm -f conftest.defines conftest.
tail
21142 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21143 cat >>$CONFIG_STATUS <<\_ACEOF
21144 if test x
"$ac_file" != x-
; then
21145 echo "/* $configure_input */" >"$tmp/config.h"
21146 cat "$ac_result" >>"$tmp/config.h"
21147 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
21148 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21149 echo "$as_me: $ac_file is unchanged" >&6;}
21152 mv "$tmp/config.h" $ac_file
21155 echo "/* $configure_input */"
21159 # Compute $ac_file's index in $config_headers.
21161 for _am_header
in $config_headers :; do
21162 case $_am_header in
21163 $ac_file |
$ac_file:* )
21166 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21169 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21170 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21171 X$ac_file : 'X\(//\)[^/]' \| \
21172 X$ac_file : 'X\(//\)$' \| \
21173 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21179 /^X\(\/\/\)[^/].*/{
21191 s/.*/./; q'`/stamp-h
$_am_stamp_count
21194 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21195 echo "$as_me: executing $ac_file commands" >&6;}
21200 case $ac_file$ac_mode in
21201 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
21202 # Strip MF so we end up with the name of the file.
21203 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21204 # Check whether this is an Automake generated Makefile or not.
21205 # We used to match only the files named `Makefile.in', but
21206 # some people rename them; so instead we look at the file content.
21207 # Grep'ing the first line is not enough: some people post-process
21208 # each Makefile.in and add a new line on top of each file to say so.
21209 # Grep'ing the whole file is not good either: AIX grep has a line
21210 # limit of 2048, but all sed's we know have understand at least 4000.
21211 if sed 10q
"$mf" |
grep '^#.*generated by automake' > /dev
/null
2>&1; then
21212 dirpart
=`$as_dirname -- "$mf" ||
21213 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21214 X"$mf" : 'X\(//\)[^/]' \| \
21215 X"$mf" : 'X\(//\)$' \| \
21216 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21222 /^X\(\/\/\)[^/].*/{
21238 # Extract the definition of DEPDIR, am__include, and am__quote
21239 # from the Makefile without running `make'.
21240 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21241 test -z "$DEPDIR" && continue
21242 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21243 test -z "am__include" && continue
21244 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21245 # When using ansi2knr, U may be empty or an underscore; expand it
21246 U
=`sed -n 's/^U = //p' < "$mf"`
21247 # Find all dependency output files, they are included files with
21248 # $(DEPDIR) in their names. We invoke sed twice because it is the
21249 # simplest approach to changing $(DEPDIR) to its actual value in the
21251 for file in `sed -n "
21252 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21253 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21254 # Make sure the directory exists.
21255 test -f "$dirpart/$file" && continue
21256 fdir
=`$as_dirname -- "$file" ||
21257 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21258 X"$file" : 'X\(//\)[^/]' \| \
21259 X"$file" : 'X\(//\)$' \| \
21260 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21266 /^X\(\/\/\)[^/].*/{
21279 { as_dir
=$dirpart/$fdir
21281 -*) as_dir
=.
/$as_dir;;
21283 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21287 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21288 *) as_qdir
=$as_dir;;
21290 as_dirs
="'$as_qdir' $as_dirs"
21291 as_dir
=`$as_dirname -- "$as_dir" ||
21292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21293 X"$as_dir" : 'X\(//\)[^/]' \| \
21294 X"$as_dir" : 'X\(//\)$' \| \
21295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21301 /^X\(\/\/\)[^/].*/{
21314 test -d "$as_dir" && break
21316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21317 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21318 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21319 { (exit 1); exit 1; }; }; }
21320 # echo "creating $dirpart/$file"
21321 echo '# dummy' > "$dirpart/$file"
21330 { (exit 0); exit 0; }
21332 chmod +x
$CONFIG_STATUS
21333 ac_clean_files
=$ac_clean_files_save
21336 # configure is writing to config.log, and then calls config.status.
21337 # config.status does its own redirection, appending to config.log.
21338 # Unfortunately, on DOS this fails, as config.log is still kept open
21339 # by configure, so config.status won't be able to write to it; its
21340 # output is simply discarded. So we exec the FD to /dev/null,
21341 # effectively closing config.log, so it can be properly (re)opened and
21342 # appended to by config.status. When coming back to configure, we
21343 # need to make the FD available again.
21344 if test "$no_create" != yes; then
21346 ac_config_status_args
=
21347 test "$silent" = yes &&
21348 ac_config_status_args
="$ac_config_status_args --quiet"
21350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21353 # would make configure fail if this is the last instruction.
21354 $ac_cs_success ||
{ (exit 1); exit 1; }