2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libffi 3.0.5.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits
='0123456789'
40 as_cr_alnum
=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x
; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var
in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me
=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev
/null
; then
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
238 for as_shell
in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) ||
{ (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x
; then
345 for as_var
in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no
; then
354 echo This
script requires a shell
more modern than all the
355 echo shells that I found on your system. Please
install a
356 echo modern shell
, or manually run the
script under such a
357 echo shell
if you
do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") ||
{
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system
,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x
"$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
514 rmdir conf$$.dir
2>/dev
/null
516 if mkdir
-p .
2>/dev
/null
; then
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p
=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL
=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec
; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo
; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo
; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset
; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
599 echo_test_string
=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
619 for dir
in $PATH /usr
/ucb
; do
621 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho
; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL
=/bin
/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
660 SHELL
="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string
=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames
=${tagnames+${tagnames},}CXX
706 tagnames
=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev
/null
6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix
=/usr
/local
720 ac_config_libobj_dir
=.
726 SHELL
=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME
='libffi'
730 PACKAGE_TARNAME
='libffi'
731 PACKAGE_VERSION
='3.0.5'
732 PACKAGE_STRING
='libffi 3.0.5'
733 PACKAGE_BUGREPORT
='http://gcc.gnu.org/bugs.html'
735 # Factoring default headers for most tests.
736 ac_includes_default
="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
834 INSTALL_STRIP_PROGRAM
862 am__fastdepCCAS_FALSE
883 MAINTAINER_MODE_FALSE
915 POWERPC_FREEBSD_FALSE
945 ac_precious_vars
='build_alias
962 # Initialize some variables set by options.
964 ac_init_version
=false
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
974 program_transform_name
=s
,x
,x
,
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir
='${exec_prefix}/bin'
989 sbindir
='${exec_prefix}/sbin'
990 libexecdir
='${exec_prefix}/libexec'
991 datarootdir
='${prefix}/share'
992 datadir
='${datarootdir}'
993 sysconfdir
='${prefix}/etc'
994 sharedstatedir
='${prefix}/com'
995 localstatedir
='${prefix}/var'
996 includedir
='${prefix}/include'
997 oldincludedir
='/usr/include'
998 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
999 infodir
='${datarootdir}/info'
1004 libdir
='${exec_prefix}/lib'
1005 localedir
='${datarootdir}/locale'
1006 mandir
='${datarootdir}/man'
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\
$ac_option
1020 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1030 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1032 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1033 bindir
=$ac_optarg ;;
1035 -build |
--build |
--buil |
--bui |
--bu)
1036 ac_prev
=build_alias
;;
1037 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1038 build_alias
=$ac_optarg ;;
1040 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1041 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1042 ac_prev
=cache_file
;;
1043 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1044 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1045 cache_file
=$ac_optarg ;;
1047 --config-cache |
-C)
1048 cache_file
=config.cache
;;
1050 -datadir |
--datadir |
--datadi |
--datad)
1052 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1053 datadir
=$ac_optarg ;;
1055 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1056 |
--dataroo |
--dataro |
--datar)
1057 ac_prev
=datarootdir
;;
1058 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1059 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1060 datarootdir
=$ac_optarg ;;
1062 -disable-* |
--disable-*)
1063 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1066 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1069 eval enable_
$ac_feature=no
;;
1071 -docdir |
--docdir |
--docdi |
--doc |
--do)
1073 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1074 docdir
=$ac_optarg ;;
1076 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1078 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1079 dvidir
=$ac_optarg ;;
1081 -enable-* |
--enable-*)
1082 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1085 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1088 eval enable_
$ac_feature=\
$ac_optarg ;;
1090 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1091 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1092 |
--exec |
--exe |
--ex)
1093 ac_prev
=exec_prefix
;;
1094 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1095 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1096 |
--exec=* |
--exe=* |
--ex=*)
1097 exec_prefix
=$ac_optarg ;;
1099 -gas |
--gas |
--ga |
--g)
1100 # Obsolete; use --with-gas.
1103 -help |
--help |
--hel |
--he |
-h)
1104 ac_init_help
=long
;;
1105 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1106 ac_init_help
=recursive
;;
1107 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1108 ac_init_help
=short
;;
1110 -host |
--host |
--hos |
--ho)
1111 ac_prev
=host_alias
;;
1112 -host=* |
--host=* |
--hos=* |
--ho=*)
1113 host_alias
=$ac_optarg ;;
1115 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1117 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1119 htmldir
=$ac_optarg ;;
1121 -includedir |
--includedir |
--includedi |
--included |
--include \
1122 |
--includ |
--inclu |
--incl |
--inc)
1123 ac_prev
=includedir
;;
1124 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1125 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1126 includedir
=$ac_optarg ;;
1128 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1130 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1131 infodir
=$ac_optarg ;;
1133 -libdir |
--libdir |
--libdi |
--libd)
1135 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1136 libdir
=$ac_optarg ;;
1138 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1139 |
--libexe |
--libex |
--libe)
1140 ac_prev
=libexecdir
;;
1141 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1142 |
--libexe=* |
--libex=* |
--libe=*)
1143 libexecdir
=$ac_optarg ;;
1145 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1146 ac_prev
=localedir
;;
1147 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1148 localedir
=$ac_optarg ;;
1150 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1151 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1152 ac_prev
=localstatedir
;;
1153 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1154 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1155 localstatedir
=$ac_optarg ;;
1157 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1159 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1160 mandir
=$ac_optarg ;;
1162 -nfp |
--nfp |
--nf)
1163 # Obsolete; use --without-fp.
1166 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1167 |
--no-cr |
--no-c |
-n)
1170 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1171 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1174 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1175 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1176 |
--oldin |
--oldi |
--old |
--ol |
--o)
1177 ac_prev
=oldincludedir
;;
1178 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1179 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1180 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1181 oldincludedir
=$ac_optarg ;;
1183 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1185 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1186 prefix
=$ac_optarg ;;
1188 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1189 |
--program-pre |
--program-pr |
--program-p)
1190 ac_prev
=program_prefix
;;
1191 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1192 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1193 program_prefix
=$ac_optarg ;;
1195 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1196 |
--program-suf |
--program-su |
--program-s)
1197 ac_prev
=program_suffix
;;
1198 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1199 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1200 program_suffix
=$ac_optarg ;;
1202 -program-transform-name |
--program-transform-name \
1203 |
--program-transform-nam |
--program-transform-na \
1204 |
--program-transform-n |
--program-transform- \
1205 |
--program-transform |
--program-transfor \
1206 |
--program-transfo |
--program-transf \
1207 |
--program-trans |
--program-tran \
1208 |
--progr-tra |
--program-tr |
--program-t)
1209 ac_prev
=program_transform_name
;;
1210 -program-transform-name=* |
--program-transform-name=* \
1211 |
--program-transform-nam=* |
--program-transform-na=* \
1212 |
--program-transform-n=* |
--program-transform-=* \
1213 |
--program-transform=* |
--program-transfor=* \
1214 |
--program-transfo=* |
--program-transf=* \
1215 |
--program-trans=* |
--program-tran=* \
1216 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1217 program_transform_name
=$ac_optarg ;;
1219 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1221 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1222 pdfdir
=$ac_optarg ;;
1224 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1226 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1229 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1230 |
-silent |
--silent |
--silen |
--sile |
--sil)
1233 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1235 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1237 sbindir
=$ac_optarg ;;
1239 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1240 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1241 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1243 ac_prev
=sharedstatedir
;;
1244 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1245 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1246 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1248 sharedstatedir
=$ac_optarg ;;
1250 -site |
--site |
--sit)
1252 -site=* |
--site=* |
--sit=*)
1255 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1257 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1258 srcdir
=$ac_optarg ;;
1260 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1261 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1262 ac_prev
=sysconfdir
;;
1263 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1264 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1265 sysconfdir
=$ac_optarg ;;
1267 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1268 ac_prev
=target_alias
;;
1269 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1270 target_alias
=$ac_optarg ;;
1272 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1275 -version |
--version |
--versio |
--versi |
--vers |
-V)
1276 ac_init_version
=: ;;
1279 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1285 eval with_
$ac_package=\
$ac_optarg ;;
1287 -without-* |
--without-*)
1288 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1291 { echo "$as_me: error: invalid package name: $ac_package" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1294 eval with_
$ac_package=no
;;
1297 # Obsolete; use --with-x.
1300 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1301 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1302 ac_prev
=x_includes
;;
1303 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1304 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1305 x_includes
=$ac_optarg ;;
1307 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1308 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1309 ac_prev
=x_libraries
;;
1310 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1311 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1312 x_libraries
=$ac_optarg ;;
1314 -*) { echo "$as_me: error: unrecognized option: $ac_option
1315 Try \`$0 --help' for more information." >&2
1316 { (exit 1); exit 1; }; }
1320 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1323 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324 { (exit 1); exit 1; }; }
1325 eval $ac_envvar=\
$ac_optarg
1326 export $ac_envvar ;;
1329 # FIXME: should be removed in autoconf 3.0.
1330 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1332 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339 if test -n "$ac_prev"; then
1340 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1341 { echo "$as_me: error: missing argument to $ac_option" >&2
1342 { (exit 1); exit 1; }; }
1345 # Be sure to have absolute directory names.
1346 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val
=\$
$ac_var
1353 [\\/$
]* | ?
:[\\/]* ) continue;;
1354 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1356 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1357 { (exit 1); exit 1; }; }
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1365 target
=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x
; then
1369 if test "x$build_alias" = x
; then
1370 cross_compiling
=maybe
1371 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372 If a cross compiler is detected then cross compile mode will be used." >&2
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1381 test "$silent" = yes && exec 6>/dev
/null
1384 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di
=`ls -di .` &&
1386 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1387 { echo "$as_me: error: Working directory cannot be determined" >&2
1388 { (exit 1); exit 1; }; }
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 { echo "$as_me: error: pwd does not report name of working directory" >&2
1391 { (exit 1); exit 1; }; }
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted
=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir
=`$as_dirname -- "$0" ||
1399 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$0" : 'X\(//\)[^/]' \| \
1401 X"$0" : 'X\(//\)$' \| \
1402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1426 ac_srcdir_defaulted
=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1430 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1431 { (exit 1); exit 1; }; }
1433 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1436 { (exit 1); exit 1; }; }
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1446 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 for ac_var
in $ac_precious_vars; do
1449 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1451 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1456 # Report the --help message.
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1462 \`configure' configures libffi 3.0.5 to adapt to many kinds of systems.
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 Defaults for the options are specified in brackets.
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1493 For better control, use the options below.
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1520 --program-prefix=PREFIX prepend PREFIX to installed program names
1521 --program-suffix=SUFFIX append SUFFIX to installed program names
1522 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1525 --build=BUILD configure
for building on BUILD
[guessed
]
1526 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1527 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1531 if test -n "$ac_init_help"; then
1532 case $ac_init_help in
1533 short | recursive
) echo "Configuration of libffi 3.0.5:";;
1538 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1539 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1540 --disable-dependency-tracking speeds up one-time build
1541 --enable-dependency-tracking do not reject slow dependency extractors
1542 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1543 --enable-static[=PKGS
] build static libraries
[default
=yes]
1544 --enable-fast-install[=PKGS
]
1545 optimize
for fast installation
[default
=yes]
1546 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1547 --enable-maintainer-mode enable make rules and dependencies not useful
1548 (and sometimes confusing
) to the casual installer
1549 --enable-debug debugging mode
1550 --disable-structs omit code
for struct support
1551 --disable-raw-api make the raw api unavailable
1552 --enable-purify-safety purify-safe mode
1555 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1556 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1557 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1558 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1560 --with-tags[=TAGS
] include additional configurations
[automatic
]
1562 Some influential environment variables
:
1563 CC C compiler
command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1566 nonstandard directory
<lib dir
>
1567 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1568 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1569 you have headers
in a nonstandard directory
<include dir
>
1570 CCAS assembler compiler
command (defaults to CC
)
1571 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1573 CXX C
++ compiler
command
1574 CXXFLAGS C
++ compiler flags
1575 CXXCPP C
++ preprocessor
1576 F77 Fortran
77 compiler
command
1577 FFLAGS Fortran
77 compiler flags
1579 Use these variables to override the choices made by
`configure' or to help
1580 it to find libraries and programs with nonstandard names/locations.
1582 Report bugs to <http://gcc.gnu.org/bugs.html>.
1587 if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590 test -d "$ac_dir" || continue
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1610 .) # We are building in place.
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
1615 ac_srcdir=$srcdir$ac_dir_suffix;
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1632 $SHELL "$ac_srcdir/configure" --help=recursive
1634 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 cd "$ac_pwd" || { ac_status=$?; break; }
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1643 libffi configure 3.0.5
1644 generated by GNU Autoconf 2.61
1646 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1647 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1653 cat >config.log <<_ACEOF
1654 This file contains any messages produced by compilers while
1655 running configure, to aid debugging if configure makes a mistake.
1657 It was created by libffi $as_me 3.0.5, which was
1658 generated by GNU Autoconf 2.61. Invocation command line was
1670 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1671 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1672 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1673 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1674 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1676 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1677 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1679 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1680 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1681 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1682 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1683 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1684 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1685 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir=.
1694 echo "PATH: $as_dir"
1710 # Keep a trace of the command line.
1711 # Strip out --no-create and --no-recursion so they do not pile up.
1712 # Strip out --silent because we don't want to record it for future runs.
1713 # Also quote any args containing shell meta-characters.
1714 # Make two passes to allow for proper duplicate-argument suppression.
1718 ac_must_keep_next=false
1724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1726 | -silent | --silent | --silen | --sile | --sil)
1729 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1732 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1734 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1735 if test $ac_must_keep_next = true; then
1736 ac_must_keep_next=false # Got value, back to normal.
1739 *=* | --config-cache | -C | -disable-* | --disable-* \
1740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1742 | -with-* | --with-* | -without-* | --without-* | --x)
1743 case "$ac_configure_args0 " in
1744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1747 -* ) ac_must_keep_next=true ;;
1750 ac_configure_args="$ac_configure_args '$ac_arg'"
1755 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1756 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1758 # When interrupted or exit'd, cleanup temporary files, and complete
1759 # config.log. We remove comments because anyway the quotes in there
1760 # would cause problems or look ugly.
1761 # WARNING: Use '\'' to represent an apostrophe within the trap.
1762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1763 trap 'exit_status=$?
1764 # Save into config.log some information that might help in debugging.
1769 ## ---------------- ##
1770 ## Cache variables. ##
1771 ## ---------------- ##
1774 # The following way of writing the cache mishandles newlines in values,
1776 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1777 eval ac_val=\$$ac_var
1781 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1782 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1785 _ | IFS | as_nl) ;; #(
1786 *) $as_unset $ac_var ;;
1791 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1792 *${as_nl}ac_space=\ *)
1794 "s/'\''/'\''\\\\'\'''\''/g;
1795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1806 ## ----------------- ##
1807 ## Output variables. ##
1808 ## ----------------- ##
1811 for ac_var in $ac_subst_vars
1813 eval ac_val=\$$ac_var
1815 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817 echo "$ac_var='\''$ac_val'\''"
1821 if test -n "$ac_subst_files"; then
1823 ## ------------------- ##
1824 ## File substitutions. ##
1825 ## ------------------- ##
1828 for ac_var in $ac_subst_files
1830 eval ac_val=\$$ac_var
1832 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 echo "$ac_var='\''$ac_val'\''"
1839 if test -s confdefs.h; then
1849 test "$ac_signal" != 0 &&
1850 echo "$as_me: caught signal $ac_signal"
1851 echo "$as_me: exit $exit_status"
1853 rm -f core *.core core.conftest.* &&
1854 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1857 for ac_signal in 1 2 13 15; do
1858 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1862 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1863 rm -f -r conftest* confdefs.h
1865 # Predefined preprocessor variables.
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_NAME "$PACKAGE_NAME"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_STRING "$PACKAGE_STRING"
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1892 # Let the site file select an alternate cache file if it wants to.
1893 # Prefer explicitly selected file to automatically selected ones.
1894 if test -n "$CONFIG_SITE"; then
1895 set x "$CONFIG_SITE"
1896 elif test "x$prefix" != xNONE; then
1897 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1899 set x "$ac_default_prefix/share/config.site" \
1900 "$ac_default_prefix/etc/config.site"
1905 if test -r "$ac_site_file"; then
1906 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1907 echo "$as_me: loading site script $ac_site_file" >&6;}
1908 sed 's/^/| /' "$ac_site_file" >&5
1913 if test -r "$cache_file"; then
1914 # Some versions of bash will fail to source /dev/null (special
1915 # files actually), so we avoid doing that.
1916 if test -f "$cache_file"; then
1917 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1918 echo "$as_me: loading cache $cache_file" >&6;}
1920 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1921 *) . "./$cache_file";;
1925 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1926 echo "$as_me: creating cache $cache_file" >&6;}
1930 # Check that the precious variables saved in the cache have kept the same
1932 ac_cache_corrupted=false
1933 for ac_var in $ac_precious_vars; do
1934 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1935 eval ac_new_set=\$ac_env_${ac_var}_set
1936 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1937 eval ac_new_val=\$ac_env_${ac_var}_value
1938 case $ac_old_set,$ac_new_set in
1940 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1941 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1944 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1945 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1949 if test "x$ac_old_val" != "x$ac_new_val"; then
1950 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1951 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1952 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1953 echo "$as_me: former value
: $ac_old_val" >&2;}
1954 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1955 echo "$as_me: current value
: $ac_new_val" >&2;}
1956 ac_cache_corrupted=:
1959 # Pass precious variables to config.status.
1960 if test "$ac_new_set" = set; then
1962 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1963 *) ac_arg=$ac_var=$ac_new_val ;;
1965 case " $ac_configure_args " in
1966 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1967 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971 if $ac_cache_corrupted; then
1972 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1973 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1974 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1975 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1976 { (exit 1); exit 1; }; }
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 ac_config_headers="$ac_config_headers fficonfig.h"
2014 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2015 if test -f "$ac_dir/install-sh"; then
2017 ac_install_sh="$ac_aux_dir/install-sh -c"
2019 elif test -f "$ac_dir/install.sh"; then
2021 ac_install_sh="$ac_aux_dir/install.sh -c"
2023 elif test -f "$ac_dir/shtool"; then
2025 ac_install_sh="$ac_aux_dir/shtool install -c"
2029 if test -z "$ac_aux_dir"; then
2030 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2031 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2032 { (exit 1); exit 1; }; }
2035 # These three variables are undocumented and unsupported,
2036 # and are intended to be withdrawn in a future Autoconf release.
2037 # They can cause serious problems if a builder's source tree is in a directory
2038 # whose full name contains unusual characters.
2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2041 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2044 # Make sure we can run config.sub.
2045 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2046 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2047 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2048 { (exit 1); exit 1; }; }
2050 { echo "$as_me:$LINENO: checking build system type" >&5
2051 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2052 if test "${ac_cv_build+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 ac_build_alias=$build_alias
2056 test "x$ac_build_alias" = x &&
2057 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2058 test "x$ac_build_alias" = x &&
2059 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2060 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2061 { (exit 1); exit 1; }; }
2062 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2063 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2064 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2065 { (exit 1); exit 1; }; }
2068 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2069 echo "${ECHO_T}$ac_cv_build" >&6; }
2070 case $ac_cv_build in
2072 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2073 echo "$as_me: error: invalid value of canonical build" >&2;}
2074 { (exit 1); exit 1; }; };;
2077 ac_save_IFS=$IFS; IFS='-'
2083 # Remember, the first character of IFS is used to create $*,
2084 # except with old shells:
2087 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2090 { echo "$as_me:$LINENO: checking host system type" >&5
2091 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2092 if test "${ac_cv_host+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 if test "x$host_alias" = x; then
2096 ac_cv_host=$ac_cv_build
2098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2099 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2100 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2101 { (exit 1); exit 1; }; }
2105 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2106 echo "${ECHO_T}$ac_cv_host" >&6; }
2109 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2110 echo "$as_me: error: invalid value of canonical host" >&2;}
2111 { (exit 1); exit 1; }; };;
2114 ac_save_IFS=$IFS; IFS='-'
2120 # Remember, the first character of IFS is used to create $*,
2121 # except with old shells:
2124 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2127 { echo "$as_me:$LINENO: checking target system type" >&5
2128 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2129 if test "${ac_cv_target+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 if test "x$target_alias" = x; then
2133 ac_cv_target=$ac_cv_host
2135 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2137 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2138 { (exit 1); exit 1; }; }
2142 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2143 echo "${ECHO_T}$ac_cv_target" >&6; }
2144 case $ac_cv_target in
2146 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2147 echo "$as_me: error: invalid value of canonical target" >&2;}
2148 { (exit 1); exit 1; }; };;
2150 target=$ac_cv_target
2151 ac_save_IFS=$IFS; IFS='-'
2157 # Remember, the first character of IFS is used to create $*,
2158 # except with old shells:
2161 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2164 # The aliases save the names the user supplied, while $host etc.
2165 # will get canonicalized.
2166 test -n "$target_alias" &&
2167 test "$program_prefix$program_suffix$program_transform_name" = \
2169 program_prefix=${target_alias}-
2170 target_alias=${target_alias-$host_alias}
2172 . ${srcdir}/configure.host
2174 am__api_version='1.10'
2176 # Find a good install program. We prefer a C program (faster),
2177 # so one script is as good as another. But avoid the broken or
2178 # incompatible versions:
2179 # SysV /etc/install, /usr/sbin/install
2180 # SunOS /usr/etc/install
2181 # IRIX /sbin/install
2183 # AmigaOS /C/install, which installs bootblocks on floppy discs
2184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2187 # OS/2's system install, which has a completely different semantic
2188 # ./install, which can be erroneously created by make from ./install.sh.
2189 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2190 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2191 if test -z "$INSTALL"; then
2192 if test "${ac_cv_path_install+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 test -z "$as_dir" && as_dir=.
2200 # Account for people who put trailing slashes in PATH elements.
2202 ./ | .// | /cC/* | \
2203 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2204 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2207 # OSF1 and SCO ODT 3.0 have their own names for install.
2208 # Don't use installbsd from OSF since it installs stuff as root
2210 for ac_prog in ginstall scoinst install; do
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2213 if test $ac_prog = install &&
2214 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2215 # AIX install. It has an incompatible calling convention.
2217 elif test $ac_prog = install &&
2218 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2219 # program-specific install script used by HP pwplus--don't use.
2222 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2235 if test "${ac_cv_path_install+set}" = set; then
2236 INSTALL=$ac_cv_path_install
2238 # As a last resort, use the slow shell script. Don't cache a
2239 # value for INSTALL within a source directory, because that will
2240 # break other packages using the cache if that directory is
2241 # removed, or if the value is a relative name.
2242 INSTALL=$ac_install_sh
2245 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2246 echo "${ECHO_T}$INSTALL" >&6; }
2248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2249 # It thinks the first close brace ends the variable substitution.
2250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2252 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2254 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2256 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2257 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2260 echo timestamp > conftest.file
2261 # Do `set' in a subshell so we don't clobber the current shell
's
2262 # arguments. Must try -L first in case configure is actually a
2263 # symlink; some systems play weird games with the mod time of symlinks
2264 # (eg FreeBSD returns the mod time of the symlink's containing
2267 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2268 if test "$*" = "X"; then
2270 set X
`ls -t $srcdir/configure conftest.file`
2273 if test "$*" != "X $srcdir/configure conftest.file" \
2274 && test "$*" != "X conftest.file $srcdir/configure"; then
2276 # If neither matched, then we have a broken ls. This can happen
2277 # if, for instance, CONFIG_SHELL is bash and it inherits a
2278 # broken ls alias from the environment. This has actually
2279 # happened. Such a system could not be considered "sane".
2280 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2281 alias in your environment" >&5
2282 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2283 alias in your environment" >&2;}
2284 { (exit 1); exit 1; }; }
2287 test "$2" = conftest.
file
2293 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2294 Check your system clock" >&5
2295 echo "$as_me: error: newly created file is older than distributed files!
2296 Check your system clock" >&2;}
2297 { (exit 1); exit 1; }; }
2299 { echo "$as_me:$LINENO: result: yes" >&5
2300 echo "${ECHO_T}yes" >&6; }
2301 test "$program_prefix" != NONE
&&
2302 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2303 # Use a double $ so make ignores it.
2304 test "$program_suffix" != NONE
&&
2305 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2306 # Double any \ or $. echo might interpret backslashes.
2307 # By default was `s,x,x', remove it if useless.
2308 cat <<\_ACEOF
>conftest.
sed
2309 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2311 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2314 # expand $ac_aux_dir to an absolute path
2315 am_aux_dir
=`cd $ac_aux_dir && pwd`
2317 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2318 # Use eval to expand $SHELL
2319 if eval "$MISSING --run true"; then
2320 am_missing_run
="$MISSING --run "
2323 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2324 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2327 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2328 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2329 if test -z "$MKDIR_P"; then
2330 if test "${ac_cv_path_mkdir+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2334 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2337 test -z "$as_dir" && as_dir
=.
2338 for ac_prog
in mkdir gmkdir
; do
2339 for ac_exec_ext
in '' $ac_executable_extensions; do
2340 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2341 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2342 'mkdir (GNU coreutils) '* | \
2343 'mkdir (coreutils) '* | \
2344 'mkdir (fileutils) '4.1*)
2345 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2355 if test "${ac_cv_path_mkdir+set}" = set; then
2356 MKDIR_P
="$ac_cv_path_mkdir -p"
2358 # As a last resort, use the slow shell script. Don't cache a
2359 # value for MKDIR_P within a source directory, because that will
2360 # break other packages using the cache if that directory is
2361 # removed, or if the value is a relative name.
2362 test -d .
/--version && rmdir .
/--version
2363 MKDIR_P
="$ac_install_sh -d"
2366 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2367 echo "${ECHO_T}$MKDIR_P" >&6; }
2371 [\\/$
]* | ?
:[\\/]*) ;;
2372 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2375 for ac_prog
in gawk mawk nawk
awk
2377 # Extract the first word of "$ac_prog", so it can be a program name with args.
2378 set dummy
$ac_prog; ac_word
=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_AWK+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 if test -n "$AWK"; then
2385 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir
=.
2392 for ac_exec_ext
in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_AWK
="$ac_prog"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 if test -n "$AWK"; then
2406 { echo "$as_me:$LINENO: result: $AWK" >&5
2407 echo "${ECHO_T}$AWK" >&6; }
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2414 test -n "$AWK" && break
2417 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2418 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2419 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2420 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 cat >conftest.
make <<\_ACEOF
2426 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2428 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2429 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2431 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2433 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2437 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2438 { echo "$as_me:$LINENO: result: yes" >&5
2439 echo "${ECHO_T}yes" >&6; }
2442 { echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6; }
2444 SET_MAKE
="MAKE=${MAKE-make}"
2447 rm -rf .tst
2>/dev
/null
2448 mkdir .tst
2>/dev
/null
2449 if test -d .tst
; then
2454 rmdir .tst
2>/dev
/null
2456 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2457 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2458 # is not polluted with repeated "-I."
2459 am__isrc
=' -I$(srcdir)'
2460 # test to see if srcdir already configured
2461 if test -f $srcdir/config.status
; then
2462 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2463 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2464 { (exit 1); exit 1; }; }
2468 # test whether we have cygpath
2469 if test -z "$CYGPATH_W"; then
2470 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2471 CYGPATH_W
='cygpath -w'
2478 # Define the identity of the package.
2483 cat >>confdefs.h
<<_ACEOF
2484 #define PACKAGE "$PACKAGE"
2488 cat >>confdefs.h
<<_ACEOF
2489 #define VERSION "$VERSION"
2492 # Some tools Automake needs.
2494 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2497 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2500 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2503 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2506 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2508 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2510 # Installed binaries are usually stripped using `strip' when the user
2511 # run `make install-strip'. However `strip' might not be the right
2512 # tool to use in cross-compilation environments, therefore Automake
2513 # will honor the `STRIP' environment variable to overrule this program.
2514 if test "$cross_compiling" != no
; then
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2517 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_STRIP+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$STRIP"; then
2524 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir
=.
2531 for ac_exec_ext
in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 STRIP
=$ac_cv_prog_STRIP
2544 if test -n "$STRIP"; then
2545 { echo "$as_me:$LINENO: result: $STRIP" >&5
2546 echo "${ECHO_T}$STRIP" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2554 if test -z "$ac_cv_prog_STRIP"; then
2556 # Extract the first word of "strip", so it can be a program name with args.
2557 set dummy strip
; ac_word
=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$ac_ct_STRIP"; then
2564 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir
=.
2571 for ac_exec_ext
in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_ac_ct_STRIP
="strip"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2584 if test -n "$ac_ct_STRIP"; then
2585 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2586 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2592 if test "x$ac_ct_STRIP" = x
; then
2595 case $cross_compiling:$ac_tool_warned in
2597 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2598 whose name does not start with the host triplet. If you think this
2599 configuration is useful to you, please write to autoconf@gnu.org." >&5
2600 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2601 whose name does not start with the host triplet. If you think this
2602 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2603 ac_tool_warned
=yes ;;
2608 STRIP
="$ac_cv_prog_STRIP"
2612 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2614 # We need awk for the "check" target. The system "awk" is bad on
2616 # Always define AMTAR for backward compatibility.
2618 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2620 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2627 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2628 # We must force CC to /not/ be precious variables; otherwise
2629 # the wrong, non-multilib-adjusted value will be used in multilibs.
2630 # As a side effect, we have to subst CFLAGS ourselves.
2635 ac_cpp
='$CPP $CPPFLAGS'
2636 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2641 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_CC+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC
="$CC" # Let the user override the test.
2650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir
=.
2655 for ac_exec_ext
in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 if test -n "$CC"; then
2669 { echo "$as_me:$LINENO: result: $CC" >&5
2670 echo "${ECHO_T}$CC" >&6; }
2672 { echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6; }
2678 if test -z "$ac_cv_prog_CC"; then
2680 # Extract the first word of "gcc", so it can be a program name with args.
2681 set dummy gcc
; ac_word
=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir
=.
2695 for ac_exec_ext
in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_ac_ct_CC
="gcc"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 echo "${ECHO_T}$ac_ct_CC" >&6; }
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2716 if test "x$ac_ct_CC" = x
; then
2719 case $cross_compiling:$ac_tool_warned in
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned
=yes ;;
2735 if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2738 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2741 if test "${ac_cv_prog_CC+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC
="$CC" # Let the user override the test.
2747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir
=.
2752 for ac_exec_ext
in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 if test -n "$CC"; then
2766 { echo "$as_me:$LINENO: result: $CC" >&5
2767 echo "${ECHO_T}$CC" >&6; }
2769 { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2776 if test -z "$CC"; then
2777 # Extract the first word of "cc", so it can be a program name with args.
2778 set dummy cc
; ac_word
=$2
2779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2781 if test "${ac_cv_prog_CC+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC
="$CC" # Let the user override the test.
2788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir
=.
2793 for ac_exec_ext
in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2796 ac_prog_rejected
=yes
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test $ac_prog_rejected = yes; then
2808 # We found a bogon in the path, so make sure we never use it.
2809 set dummy
$ac_cv_prog_CC
2811 if test $# != 0; then
2812 # We chose a different compiler from the bogus one.
2813 # However, it has the same basename, so the bogon will be chosen
2814 # first if we set CC to just the basename; use the full file name.
2816 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2822 if test -n "$CC"; then
2823 { echo "$as_me:$LINENO: result: $CC" >&5
2824 echo "${ECHO_T}$CC" >&6; }
2826 { echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6; }
2832 if test -z "$CC"; then
2833 if test -n "$ac_tool_prefix"; then
2834 for ac_prog
in cl.exe
2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC
="$CC" # Let the user override the test.
2846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir
=.
2851 for ac_exec_ext
in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 if test -n "$CC"; then
2865 { echo "$as_me:$LINENO: result: $CC" >&5
2866 echo "${ECHO_T}$CC" >&6; }
2868 { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2873 test -n "$CC" && break
2876 if test -z "$CC"; then
2878 for ac_prog
in cl.exe
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881 set dummy
$ac_prog; ac_word
=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir
=.
2895 for ac_exec_ext
in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_ac_ct_CC
="$ac_prog"
2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2908 if test -n "$ac_ct_CC"; then
2909 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2910 echo "${ECHO_T}$ac_ct_CC" >&6; }
2912 { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2917 test -n "$ac_ct_CC" && break
2920 if test "x$ac_ct_CC" = x
; then
2923 case $cross_compiling:$ac_tool_warned in
2925 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2926 whose name does not start with the host triplet. If you think this
2927 configuration is useful to you, please write to autoconf@gnu.org." >&5
2928 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2929 whose name does not start with the host triplet. If you think this
2930 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2931 ac_tool_warned
=yes ;;
2940 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: no acceptable C compiler found in \$PATH
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2946 # Provide some information about the compiler.
2947 echo "$as_me:$LINENO: checking for C compiler version" >&5
2948 ac_compiler
=`set X $ac_compile; echo $2`
2949 { (ac_try
="$ac_compiler --version >&5"
2951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_compiler --version >&5") 2>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }
2959 { (ac_try="$ac_compiler -v >&5"
2961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2962 *) ac_try_echo
=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compiler -v >&5") 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }
2969 { (ac_try
="$ac_compiler -V >&5"
2971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_compiler -V >&5") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2980 cat >conftest.$ac_ext <<_ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2995 ac_clean_files_save=$ac_clean_files
2996 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2997 # Try to create an executable without -o first, disregard a.out.
2998 # It will help us diagnose broken compilers, and finding out an intuition
3000 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3001 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3002 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3004 # List of possible output files, starting from the most likely.
3005 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3006 # only as a last resort. b.out is created by i960 compilers.
3007 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3009 # The IRIX 6 linker writes into existing files which may not be
3010 # executable, retaining their permissions. Remove them first so a
3011 # subsequent execution test works.
3013 for ac_file in $ac_files
3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3017 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3022 if { (ac_try="$ac_link_default"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_link_default") 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; then
3032 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3033 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3034 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3035 # so that the user can short-circuit this test for compilers unknown to
3037 for ac_file
in $ac_files ''
3039 test -f "$ac_file" ||
continue
3041 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3044 # We found the default executable, but exeext='' is most
3048 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3050 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3052 # We set ac_cv_exeext here because the later test for it is not
3053 # safe: cross compilers may not add the suffix if given an `-o'
3054 # argument, so we may need to know it at that point already.
3055 # Even if this section looks crufty: it has the advantage of
3062 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3068 { echo "$as_me:$LINENO: result: $ac_file" >&5
3069 echo "${ECHO_T}$ac_file" >&6; }
3070 if test -z "$ac_file"; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.
$ac_ext >&5
3074 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3075 See \`config.log' for more details." >&5
3076 echo "$as_me: error: C compiler cannot create executables
3077 See \`config.log' for more details." >&2;}
3078 { (exit 77); exit 77; }; }
3081 ac_exeext
=$ac_cv_exeext
3083 # Check that the compiler produces executables we can run. If not, either
3084 # the compiler is broken, or we cross compile.
3085 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3086 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3087 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3088 # If not cross compiling, check that we can run a simple program.
3089 if test "$cross_compiling" != yes; then
3090 if { ac_try
='./$ac_file'
3091 { (case "(($ac_try" in
3092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3102 if test "$cross_compiling" = maybe; then
3105 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3106 If you meant to cross compile, use \`--host'.
3107 See \`config.log' for more details.
" >&5
3108 echo "$as_me: error
: cannot run C compiled programs.
3109 If you meant to cross compile
, use \
`--host'.
3110 See \`config.log
' for more details." >&2;}
3111 { (exit 1); exit 1; }; }
3115 { echo "$as_me:$LINENO: result: yes" >&5
3116 echo "${ECHO_T}yes" >&6; }
3118 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3119 ac_clean_files=$ac_clean_files_save
3120 # Check that the compiler produces executables we can run. If not, either
3121 # the compiler is broken, or we cross compile.
3122 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3123 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3124 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3125 echo "${ECHO_T}$cross_compiling" >&6; }
3127 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3128 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3129 if { (ac_try="$ac_link"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_link") 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; then
3139 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3140 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3141 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3143 for ac_file
in conftest.exe conftest conftest.
*; do
3144 test -f "$ac_file" ||
continue
3146 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3147 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3160 rm -f conftest
$ac_cv_exeext
3161 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3162 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3164 rm -f conftest.
$ac_ext
3165 EXEEXT
=$ac_cv_exeext
3167 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3168 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3169 if test "${ac_cv_objext+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 cat >conftest.
$ac_ext <<_ACEOF
3175 cat confdefs.h
>>conftest.
$ac_ext
3176 cat >>conftest.
$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3187 rm -f conftest.o conftest.obj
3188 if { (ac_try
="$ac_compile"
3190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_compile") 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; then
3198 for ac_file in conftest.o conftest.obj conftest.*; do
3199 test -f "$ac_file" || continue;
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3210 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log
' for more details." >&5
3212 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3213 See \`config.log' for more details.
" >&2;}
3214 { (exit 1); exit 1; }; }
3217 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3219 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3220 echo "${ECHO_T}$ac_cv_objext" >&6; }
3221 OBJEXT=$ac_cv_objext
3223 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3224 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3225 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3226 echo $ECHO_N "(cached
) $ECHO_C" >&6
3228 cat >conftest.$ac_ext <<_ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3246 rm -f conftest.$ac_objext
3247 if { (ac_try="$ac_compile"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_compile") 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3259 (exit $ac_status); } && {
3260 test -z "$ac_c_werror_flag" ||
3261 test ! -s conftest.err
3262 } && test -s conftest.$ac_objext; then
3265 echo "$as_me: failed program was
:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3275 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3276 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3277 GCC=`test $ac_compiler_gnu = yes && echo yes`
3278 ac_test_CFLAGS=${CFLAGS+set}
3279 ac_save_CFLAGS=$CFLAGS
3280 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3281 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3282 if test "${ac_cv_prog_cc_g+set}" = set; then
3283 echo $ECHO_N "(cached
) $ECHO_C" >&6
3285 ac_save_c_werror_flag=$ac_c_werror_flag
3286 ac_c_werror_flag=yes
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3313 grep -v '^ *+' conftest.er1 >conftest.err
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3317 (exit $ac_status); } && {
3318 test -z "$ac_c_werror_flag" ||
3319 test ! -s conftest.err
3320 } && test -s conftest.$ac_objext; then
3323 echo "$as_me: failed program was
:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>conftest.er1
3351 grep -v '^ *+' conftest.er1 >conftest.err
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3355 (exit $ac_status); } && {
3356 test -z "$ac_c_werror_flag" ||
3357 test ! -s conftest.err
3358 } && test -s conftest.$ac_objext; then
3361 echo "$as_me: failed program was
:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 ac_c_werror_flag=$ac_save_c_werror_flag
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3381 rm -f conftest.$ac_objext
3382 if { (ac_try="$ac_compile"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_compile") 2>conftest.er1
3390 grep -v '^ *+' conftest.er1 >conftest.err
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3394 (exit $ac_status); } && {
3395 test -z "$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3397 } && test -s conftest.$ac_objext; then
3400 echo "$as_me: failed program was
:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 ac_c_werror_flag=$ac_save_c_werror_flag
3415 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3416 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3417 if test "$ac_test_CFLAGS" = set; then
3418 CFLAGS=$ac_save_CFLAGS
3419 elif test $ac_cv_prog_cc_g = yes; then
3420 if test "$GCC" = yes; then
3426 if test "$GCC" = yes; then
3432 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3433 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3434 if test "${ac_cv_prog_cc_c89+set}" = set; then
3435 echo $ECHO_N "(cached
) $ECHO_C" >&6
3437 ac_cv_prog_cc_c89=no
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3447 #include <sys/types.h>
3448 #include <sys/stat.h>
3449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3450 struct buf { int x; };
3451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3452 static char *e (p, i)
3458 static char *f (char * (*g) (char **, int), char **p, ...)
3463 s = g (p, va_arg (v,int));
3468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3469 function prototypes and stuff, but not '\xHH' hex character constants.
3470 These don't provoke an error unfortunately, instead are silently treated
3471 as 'x'. The following induces an error, until -std is added to get
3472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3473 array size at least. It's necessary to write '\x00'==0 to get something
3474 that's true only with -std. */
3475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3478 inside strings and character constants. */
3480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3482 int test (int i, double x);
3483 struct s1 {int (*f) (int a);};
3484 struct s2 {int (*f) (double a);};
3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3499 CC="$ac_save_CC $ac_arg"
3500 rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_compile") 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3513 (exit $ac_status); } && {
3514 test -z "$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3516 } && test -s conftest.$ac_objext; then
3517 ac_cv_prog_cc_c89=$ac_arg
3519 echo "$as_me: failed program was
:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3525 rm -f core conftest.err conftest.$ac_objext
3526 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3528 rm -f conftest.$ac_ext
3533 case "x
$ac_cv_prog_cc_c89" in
3535 { echo "$as_me:$LINENO: result
: none needed
" >&5
3536 echo "${ECHO_T}none needed
" >&6; } ;;
3538 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3539 echo "${ECHO_T}unsupported
" >&6; } ;;
3541 CC="$CC $ac_cv_prog_cc_c89"
3542 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3543 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 DEPDIR="${am__leading_dot}deps
"
3554 ac_config_commands="$ac_config_commands depfiles
"
3557 am_make=${MAKE-make}
3558 cat > confinc << 'END'
3563 # If we don't find an include directive, just comment out the code.
3564 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3565 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3569 # First try GNU make style include.
3570 echo "include confinc" > confmf
3571 # We grep out `Entering directory' and `Leaving directory'
3572 # messages which can occur if `w' ends up in MAKEFLAGS.
3573 # In particular we don't look at `^make:' because GNU make might
3574 # be invoked under some other name (usually "gmake"), in which
3575 # case it prints its new name instead of `make'.
3576 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3581 # Now try BSD make style include.
3582 if test "$am__include" = "#"; then
3583 echo '.include "confinc"' > confmf
3584 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3585 am__include
=.include
3592 { echo "$as_me:$LINENO: result: $_am_result" >&5
3593 echo "${ECHO_T}$_am_result" >&6; }
3594 rm -f confinc confmf
3596 # Check whether --enable-dependency-tracking was given.
3597 if test "${enable_dependency_tracking+set}" = set; then
3598 enableval
=$enable_dependency_tracking;
3601 if test "x$enable_dependency_tracking" != xno
; then
3602 am_depcomp
="$ac_aux_dir/depcomp"
3605 if test "x$enable_dependency_tracking" != xno; then
3615 depcc
="$CC" am_compiler_list
=
3617 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3618 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3619 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3623 # We make a subdir and do the tests there. Otherwise we can end up
3624 # making bogus files that we don't know about and never remove. For
3625 # instance it was reported that on HP-UX the gcc test will end up
3626 # making a dummy file named `D' -- because `-MD' means `put the output
3629 # Copy depcomp to subdir because otherwise we won't find it if we're
3630 # using a relative directory.
3631 cp "$am_depcomp" conftest.dir
3633 # We will build objects and dependencies in a subdirectory because
3634 # it helps to detect inapplicable dependency modes. For instance
3635 # both Tru64's cc and ICC support -MD to output dependencies as a
3636 # side effect of compilation, but ICC will put the dependencies in
3637 # the current directory while Tru64 will put them in the object
3641 am_cv_CC_dependencies_compiler_type
=none
3642 if test "$am_compiler_list" = ""; then
3643 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3645 for depmode
in $am_compiler_list; do
3646 # Setup a source with many dependencies, because some compilers
3647 # like to wrap large dependency lists on column 80 (with \), and
3648 # we should not choose a depcomp mode which is confused by this.
3650 # We need to recreate these files for each test, as the compiler may
3651 # overwrite some of them when testing with obscure command lines.
3652 # This happens at least with the AIX C compiler.
3654 for i
in 1 2 3 4 5 6; do
3655 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3656 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3657 # Solaris 8's {/usr,}/bin/sh.
3658 touch sub
/conftst
$i.h
3660 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3664 # after this tag, mechanisms are not by side-effect, so they'll
3665 # only be used when explicitly requested
3666 if test "x$enable_dependency_tracking" = xyes
; then
3674 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3675 # mode. It turns out that the SunPro C++ compiler does not properly
3676 # handle `-M -o', and we need to detect this.
3677 if depmode
=$depmode \
3678 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3679 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3680 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3681 >/dev
/null
2>conftest.err
&&
3682 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3683 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3684 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3685 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3686 # icc doesn't choke on unknown options, it will just issue warnings
3687 # or remarks (even with -Werror). So we grep stderr for any message
3688 # that says an option was ignored or not supported.
3689 # When given -MP, icc 7.0 and 7.1 complain thusly:
3690 # icc: Command line warning: ignoring option '-M'; no argument required
3691 # The diagnosis changed in icc 8.0:
3692 # icc: Command line remark: option '-MP' not supported
3693 if (grep 'ignoring option' conftest.err ||
3694 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3695 am_cv_CC_dependencies_compiler_type
=$depmode
3704 am_cv_CC_dependencies_compiler_type
=none
3708 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3709 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3710 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3713 test "x$enable_dependency_tracking" != xno \
3714 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3716 am__fastdepCC_FALSE
='#'
3718 am__fastdepCC_TRUE
='#'
3719 am__fastdepCC_FALSE
=
3727 # By default we simply use the C compiler to build assembly code.
3729 test "${CCAS+set}" = set || CCAS
=$CC
3730 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
3734 depcc
="$CCAS" am_compiler_list
=
3736 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3737 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3738 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3742 # We make a subdir and do the tests there. Otherwise we can end up
3743 # making bogus files that we don't know about and never remove. For
3744 # instance it was reported that on HP-UX the gcc test will end up
3745 # making a dummy file named `D' -- because `-MD' means `put the output
3748 # Copy depcomp to subdir because otherwise we won't find it if we're
3749 # using a relative directory.
3750 cp "$am_depcomp" conftest.dir
3752 # We will build objects and dependencies in a subdirectory because
3753 # it helps to detect inapplicable dependency modes. For instance
3754 # both Tru64's cc and ICC support -MD to output dependencies as a
3755 # side effect of compilation, but ICC will put the dependencies in
3756 # the current directory while Tru64 will put them in the object
3760 am_cv_CCAS_dependencies_compiler_type
=none
3761 if test "$am_compiler_list" = ""; then
3762 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3764 for depmode
in $am_compiler_list; do
3765 # Setup a source with many dependencies, because some compilers
3766 # like to wrap large dependency lists on column 80 (with \), and
3767 # we should not choose a depcomp mode which is confused by this.
3769 # We need to recreate these files for each test, as the compiler may
3770 # overwrite some of them when testing with obscure command lines.
3771 # This happens at least with the AIX C compiler.
3773 for i
in 1 2 3 4 5 6; do
3774 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3775 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3776 # Solaris 8's {/usr,}/bin/sh.
3777 touch sub
/conftst
$i.h
3779 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3783 # after this tag, mechanisms are not by side-effect, so they'll
3784 # only be used when explicitly requested
3785 if test "x$enable_dependency_tracking" = xyes
; then
3793 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3794 # mode. It turns out that the SunPro C++ compiler does not properly
3795 # handle `-M -o', and we need to detect this.
3796 if depmode
=$depmode \
3797 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3798 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3799 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3800 >/dev
/null
2>conftest.err
&&
3801 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3802 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3803 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3804 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3805 # icc doesn't choke on unknown options, it will just issue warnings
3806 # or remarks (even with -Werror). So we grep stderr for any message
3807 # that says an option was ignored or not supported.
3808 # When given -MP, icc 7.0 and 7.1 complain thusly:
3809 # icc: Command line warning: ignoring option '-M'; no argument required
3810 # The diagnosis changed in icc 8.0:
3811 # icc: Command line remark: option '-MP' not supported
3812 if (grep 'ignoring option' conftest.err ||
3813 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3814 am_cv_CCAS_dependencies_compiler_type
=$depmode
3823 am_cv_CCAS_dependencies_compiler_type
=none
3827 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3828 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
3829 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
3832 test "x$enable_dependency_tracking" != xno \
3833 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
3834 am__fastdepCCAS_TRUE
=
3835 am__fastdepCCAS_FALSE
='#'
3837 am__fastdepCCAS_TRUE
='#'
3838 am__fastdepCCAS_FALSE
=
3842 if test "x$CC" != xcc
; then
3843 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3844 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3846 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3847 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3849 set dummy
$CC; ac_cc
=`echo $2 |
3850 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3851 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 cat >conftest.
$ac_ext <<_ACEOF
3857 cat confdefs.h
>>conftest.
$ac_ext
3858 cat >>conftest.
$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3869 # Make sure it works both with $CC and with simple cc.
3870 # We do the test twice because some compilers refuse to overwrite an
3871 # existing .o file with -o, though they will create one.
3872 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3874 if { (case "(($ac_try" in
3875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_try") 2>&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } &&
3883 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3885 *) ac_try_echo
=$ac_try;;
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 (eval "$ac_try") 2>&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); };
3893 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3894 if test "x$CC" != xcc
; then
3895 # Test first that cc exists at all.
3896 if { ac_try
='cc -c conftest.$ac_ext >&5'
3897 { (case "(($ac_try" in
3898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_try") 2>&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3908 if { (case "(($ac_try" in
3909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3910 *) ac_try_echo
=$ac_try;;
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_try") 2>&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 test -f conftest2.
$ac_objext && { (case "(($ac_try" in
3918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_try") 2>&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); };
3930 # cc exists but doesn't like -o.
3931 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3936 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3938 rm -f core conftest*
3941 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3942 { echo "$as_me:$LINENO: result: yes" >&5
3943 echo "${ECHO_T}yes" >&6; }
3945 { echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6; }
3948 cat >>confdefs.h <<\_ACEOF
3949 #define NO_MINUS_C_MINUS_O 1
3954 # FIXME: we rely on the cache variable name because
3955 # there is no other way.
3957 ac_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3958 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" != yes"; then
3959 # Losing compiler, so override with the script.
3960 # FIXME: It is wrong to rewrite CC.
3961 # But if we don't then we get into trouble of one sort or another.
3962 # A longer-term fix would be to have automake use am__CC in this case,
3963 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3964 CC="$am_aux_dir/compile $CC"
3968 # Check whether --enable-shared was given.
3969 if test "${enable_shared+set}" = set; then
3970 enableval=$enable_shared; p=${PACKAGE-default}
3972 yes) enable_shared=yes ;;
3973 no) enable_shared=no ;;
3976 # Look at the argument we got. We use all the common list separators.
3977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3978 for pkg in $enableval; do
3980 if test "X$pkg" = "X$p"; then
3992 # Check whether --enable-static was given.
3993 if test "${enable_static+set}" = set; then
3994 enableval=$enable_static; p=${PACKAGE-default}
3996 yes) enable_static=yes ;;
3997 no) enable_static=no ;;
4000 # Look at the argument we got. We use all the common list separators.
4001 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4002 for pkg in $enableval; do
4004 if test "X$pkg" = "X$p"; then
4016 # Check whether --enable-fast-install was given.
4017 if test "${enable_fast_install+set}" = set; then
4018 enableval=$enable_fast_install; p=${PACKAGE-default}
4020 yes) enable_fast_install=yes ;;
4021 no) enable_fast_install=no ;;
4023 enable_fast_install=no
4024 # Look at the argument we got. We use all the common list separators.
4025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4026 for pkg in $enableval; do
4028 if test "X$pkg" = "X$p"; then
4029 enable_fast_install=yes
4036 enable_fast_install=yes
4040 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4041 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4042 if test "${lt_cv_path_SED+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 # Loop through the user's path and test for sed and gsed.
4046 # Then use that list of sed's as ones to test for truncation.
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 test -z "$as_dir" && as_dir=.
4052 for lt_ac_prog in sed gsed; do
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4055 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4063 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4064 # along with /bin/sed that truncates output.
4065 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4066 test ! -f $lt_ac_sed && continue
4067 cat /dev/null > conftest.in
4069 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4070 # Check for GNU sed and select it if it is found.
4071 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4072 lt_cv_path_SED=$lt_ac_sed
4076 cat conftest.in conftest.in >conftest.tmp
4077 mv conftest.tmp conftest.in
4078 cp conftest.in conftest.nl
4080 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4081 cmp -s conftest.out conftest.nl || break
4082 # 10000 chars as input seems more than enough
4083 test $lt_ac_count -gt 10 && break
4084 lt_ac_count=`expr $lt_ac_count + 1`
4085 if test $lt_ac_count -gt $lt_ac_max; then
4086 lt_ac_max=$lt_ac_count
4087 lt_cv_path_SED=$lt_ac_sed
4096 { echo "$as_me:$LINENO: result: $SED" >&5
4097 echo "${ECHO_T}$SED" >&6; }
4099 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4100 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4101 if test "${ac_cv_path_GREP+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 # Extract the first word of "grep ggrep" to use in msg output
4105 if test -z "$GREP"; then
4106 set dummy grep ggrep; ac_prog_name=$2
4107 if test "${ac_cv_path_GREP+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 ac_path_GREP_found=false
4111 # Loop through the user's path and test for each of PROGNAME-LIST
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4116 test -z "$as_dir" && as_dir=.
4117 for ac_prog in grep ggrep; do
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4120 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4121 # Check for GNU ac_path_GREP and select it if it is found.
4122 # Check for GNU $ac_path_GREP
4123 case `"$ac_path_GREP" --version 2>&1` in
4125 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4128 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4131 cat "conftest.in" "conftest.in" >"conftest.tmp"
4132 mv "conftest.tmp" "conftest.in"
4133 cp "conftest.in" "conftest.nl"
4134 echo 'GREP' >> "conftest.nl"
4135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4137 ac_count=`expr $ac_count + 1`
4138 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4139 # Best one so far, save it but keep looking for a better one
4140 ac_cv_path_GREP="$ac_path_GREP"
4141 ac_path_GREP_max=$ac_count
4143 # 10*(2^10) chars as input seems more than enough
4144 test $ac_count -gt 10 && break
4146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4150 $ac_path_GREP_found && break 3
4160 GREP="$ac_cv_path_GREP"
4161 if test -z "$GREP"; then
4162 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4163 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4164 { (exit 1); exit 1; }; }
4168 ac_cv_path_GREP=$GREP
4173 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4174 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4175 GREP="$ac_cv_path_GREP"
4178 { echo "$as_me:$LINENO: checking for egrep" >&5
4179 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4180 if test "${ac_cv_path_EGREP+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4184 then ac_cv_path_EGREP="$GREP -E"
4186 # Extract the first word of "egrep" to use in msg output
4187 if test -z "$EGREP"; then
4188 set dummy egrep; ac_prog_name=$2
4189 if test "${ac_cv_path_EGREP+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 ac_path_EGREP_found=false
4193 # Loop through the user's path and test for each of PROGNAME-LIST
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198 test -z "$as_dir" && as_dir=.
4199 for ac_prog in egrep; do
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4202 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4203 # Check for GNU ac_path_EGREP and select it if it is found.
4204 # Check for GNU $ac_path_EGREP
4205 case `"$ac_path_EGREP" --version 2>&1` in
4207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4210 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4213 cat "conftest.in" "conftest.in" >"conftest.tmp"
4214 mv "conftest.tmp" "conftest.in"
4215 cp "conftest.in" "conftest.nl"
4216 echo 'EGREP' >> "conftest.nl"
4217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4219 ac_count=`expr $ac_count + 1`
4220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4221 # Best one so far, save it but keep looking for a better one
4222 ac_cv_path_EGREP="$ac_path_EGREP"
4223 ac_path_EGREP_max=$ac_count
4225 # 10*(2^10) chars as input seems more than enough
4226 test $ac_count -gt 10 && break
4228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232 $ac_path_EGREP_found && break 3
4242 EGREP="$ac_cv_path_EGREP"
4243 if test -z "$EGREP"; then
4244 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4245 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4246 { (exit 1); exit 1; }; }
4250 ac_cv_path_EGREP=$EGREP
4256 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4257 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4258 EGREP="$ac_cv_path_EGREP"
4262 # Check whether --with-gnu-ld was given.
4263 if test "${with_gnu_ld+set}" = set; then
4264 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4270 if test "$GCC" = yes; then
4271 # Check if gcc -print-prog-name=ld gives a path.
4272 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4273 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4276 # gcc leaves a trailing carriage return which upsets mingw
4277 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
4279 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
4282 # Accept absolute paths.
4284 re_direlt='/[^/][^/]*/\.\./'
4285 # Canonicalize the pathname of ld
4286 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
4287 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4288 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
4290 test -z "$LD" && LD="$ac_prog"
4293 # If it fails, then pretend we aren't using GCC.
4297 # If it is relative, then search for the first ld in PATH.
4301 elif test "$with_gnu_ld" = yes; then
4302 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4303 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4305 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4306 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4308 if test "${lt_cv_path_LD+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 if test -z "$LD"; then
4312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4313 for ac_dir in $PATH; do
4315 test -z "$ac_dir" && ac_dir=.
4316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4317 lt_cv_path_LD="$ac_dir/$ac_prog"
4318 # Check to see if the program is GNU ld. I'd rather use --version,
4319 # but apparently some variants of GNU ld only accept -v.
4320 # Break only if it was the GNU/non-GNU ld that we prefer.
4321 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
4322 *GNU* | *'with BFD'*)
4323 test "$with_gnu_ld" != no && break
4326 test "$with_gnu_ld" != yes && break
4333 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4338 if test -n "$LD"; then
4339 { echo "$as_me:$LINENO: result: $LD" >&5
4340 echo "${ECHO_T}$LD" >&6; }
4342 { echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6; }
4345 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4346 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4347 { (exit 1); exit 1; }; }
4348 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4349 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4350 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4354 case `$LD -v 2>&1 </dev
/null
` in
4355 *GNU* | *'with BFD'*)
4356 lt_cv_prog_gnu_ld=yes
4359 lt_cv_prog_gnu_ld=no
4363 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4364 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4365 with_gnu_ld=$lt_cv_prog_gnu_ld
4368 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4369 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4370 if test "${lt_cv_ld_reload_flag+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 lt_cv_ld_reload_flag='-r'
4375 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4376 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4377 reload_flag=$lt_cv_ld_reload_flag
4378 case $reload_flag in
4380 *) reload_flag=" $reload_flag" ;;
4382 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4385 if test "$GCC" = yes; then
4386 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4393 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4394 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4395 if test "${lt_cv_path_NM+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 if test -n "$NM"; then
4399 # Let the user override the test.
4402 lt_nm_to_check="${ac_tool_prefix}nm"
4403 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4404 lt_nm_to_check="$lt_nm_to_check nm"
4406 for lt_tmp_nm in $lt_nm_to_check; do
4407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4408 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4410 test -z "$ac_dir" && ac_dir=.
4411 tmp_nm="$ac_dir/$lt_tmp_nm"
4412 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4413 # Check to see if the nm accepts a BSD-compat flag.
4414 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
4415 # nm: unknown option "B" ignored
4416 # Tru64's nm complains that
/dev
/null is an invalid object
file
4417 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4418 */dev
/null
* |
*'Invalid file or object type'*)
4419 lt_cv_path_NM
="$tmp_nm -B"
4423 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4425 lt_cv_path_NM
="$tmp_nm -p"
4429 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4430 continue # so that we can try to find one that supports BSD flags
4439 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4442 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4443 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4446 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4447 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4449 if test "$LN_S" = "ln -s"; then
4450 { echo "$as_me:$LINENO: result: yes" >&5
4451 echo "${ECHO_T}yes" >&6; }
4453 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4454 echo "${ECHO_T}no, using $LN_S" >&6; }
4457 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4458 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4459 if test "${lt_cv_deplibs_check_method+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4463 lt_cv_file_magic_test_file
=
4464 lt_cv_deplibs_check_method
='unknown'
4465 # Need to set the preceding variable on all platforms that support
4466 # interlibrary dependencies.
4467 # 'none' -- dependencies not supported.
4468 # `unknown' -- same as none, but documents that we really don't know.
4469 # 'pass_all' -- all dependencies passed with no checks.
4470 # 'test_compile' -- check by making test program.
4471 # 'file_magic [[regex]]' -- check by looking for files in library path
4472 # which responds to the $file_magic_cmd with a given extended regex.
4473 # If you have `file' or equivalent on your system and you're not sure
4474 # whether `pass_all' will *always* work, you probably want this one.
4478 lt_cv_deplibs_check_method
=pass_all
4482 lt_cv_deplibs_check_method
=pass_all
4486 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4487 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4488 lt_cv_file_magic_test_file
=/shlib
/libc.so
4492 # func_win32_libid is a shell function defined in ltmain.sh
4493 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4494 lt_cv_file_magic_cmd
='func_win32_libid'
4498 # Base MSYS/MinGW do not provide the 'file' command needed by
4499 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4500 # unless we find 'file', for example because we are cross-compiling.
4501 if ( file / ) >/dev
/null
2>&1; then
4502 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4503 lt_cv_file_magic_cmd
='func_win32_libid'
4505 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4506 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4510 darwin
* | rhapsody
*)
4511 lt_cv_deplibs_check_method
=pass_all
4514 freebsd
* | dragonfly
*)
4515 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4518 # Not sure whether the presence of OpenBSD here was a mistake.
4519 # Let's accept both of them until this is cleared up.
4520 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4521 lt_cv_file_magic_cmd
=/usr
/bin
/file
4522 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4526 lt_cv_deplibs_check_method
=pass_all
4531 lt_cv_deplibs_check_method
=pass_all
4534 hpux10.20
* | hpux11
*)
4535 lt_cv_file_magic_cmd
=/usr
/bin
/file
4538 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4539 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4542 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]'
4543 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4546 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4547 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4553 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4554 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4557 irix5
* | irix6
* | nonstopux
*)
4559 *-32|
*"-32 ") libmagic
=32-bit;;
4560 *-n32|
*"-n32 ") libmagic
=N32
;;
4561 *-64|
*"-64 ") libmagic
=64-bit;;
4562 *) libmagic
=never-match
;;
4564 lt_cv_deplibs_check_method
=pass_all
4567 # This must be Linux ELF.
4568 linux
* | k
*bsd
*-gnu)
4569 lt_cv_deplibs_check_method
=pass_all
4573 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4574 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4576 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4581 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4582 lt_cv_file_magic_cmd
=/usr
/bin
/file
4583 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4587 lt_cv_deplibs_check_method
=unknown
4591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4592 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4594 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4598 osf3
* | osf4
* | osf5
*)
4599 lt_cv_deplibs_check_method
=pass_all
4603 lt_cv_deplibs_check_method
=pass_all
4607 lt_cv_deplibs_check_method
=pass_all
4611 case $host_vendor in
4613 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]'
4614 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4617 lt_cv_deplibs_check_method
=pass_all
4620 lt_cv_file_magic_cmd
='/bin/file'
4621 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4624 lt_cv_file_magic_cmd
='/bin/file'
4625 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4626 lt_cv_file_magic_test_file
=/lib
/libc.so
4629 lt_cv_deplibs_check_method
=pass_all
4632 lt_cv_deplibs_check_method
=pass_all
4637 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4638 lt_cv_deplibs_check_method
=pass_all
4643 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4645 file_magic_cmd
=$lt_cv_file_magic_cmd
4646 deplibs_check_method
=$lt_cv_deplibs_check_method
4647 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4652 # If no C compiler was specified, use CC.
4655 # If no C compiler flags were specified, use CFLAGS.
4656 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4658 # Allow CC to be a program name with arguments.
4662 # Check whether --enable-libtool-lock was given.
4663 if test "${enable_libtool_lock+set}" = set; then
4664 enableval
=$enable_libtool_lock;
4667 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4669 # Some flags need to be propagated to the compiler or linker for good
4673 # Find out which ABI we are using.
4674 echo 'int i;' > conftest.
$ac_ext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; then
4680 case `/usr/bin/file conftest.$ac_objext` in
4692 # Find out which ABI we are using.
4693 echo '#line 4693 "configure"' > conftest.
$ac_ext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; then
4699 if test "$lt_cv_prog_gnu_ld" = yes; then
4700 case `/usr/bin/file conftest.$ac_objext` in
4702 LD
="${LD-ld} -melf32bsmip"
4705 LD
="${LD-ld} -melf32bmipn32"
4708 LD
="${LD-ld} -melf64bmip"
4712 case `/usr/bin/file conftest.$ac_objext` in
4728 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
4729 s390
*-*linux
*|sparc
*-*linux
*)
4730 # Find out which ABI we are using.
4731 echo 'int i;' > conftest.
$ac_ext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; then
4737 case `/usr/bin/file conftest.o` in
4740 x86_64-
*kfreebsd
*-gnu)
4741 LD
="${LD-ld} -m elf_i386_fbsd"
4744 LD
="${LD-ld} -m elf_i386"
4746 ppc64-
*linux
*|powerpc64-
*linux
*)
4747 LD
="${LD-ld} -m elf32ppclinux"
4750 LD
="${LD-ld} -m elf_s390"
4753 LD
="${LD-ld} -m elf32_sparc"
4760 x86_64-
*kfreebsd
*-gnu)
4761 LD
="${LD-ld} -m elf_x86_64_fbsd"
4764 LD
="${LD-ld} -m elf_x86_64"
4766 ppc
*-*linux
*|powerpc
*-*linux
*)
4767 LD
="${LD-ld} -m elf64ppc"
4770 LD
="${LD-ld} -m elf64_s390"
4773 LD
="${LD-ld} -m elf64_sparc"
4783 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4784 SAVE_CFLAGS
="$CFLAGS"
4785 CFLAGS
="$CFLAGS -belf"
4786 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4787 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4788 if test "${lt_cv_cc_needs_belf+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 ac_cpp
='$CPP $CPPFLAGS'
4793 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4797 cat >conftest.
$ac_ext <<_ACEOF
4800 cat confdefs.h
>>conftest.
$ac_ext
4801 cat >>conftest.
$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4812 rm -f conftest.
$ac_objext conftest
$ac_exeext
4813 if { (ac_try
="$ac_link"
4815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819 (eval "$ac_link") 2>conftest.er1
4821 grep -v '^ *+' conftest.er1 >conftest.err
4823 cat conftest.err >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } && {
4826 test -z "$ac_c_werror_flag" ||
4827 test ! -s conftest.err
4828 } && test -s conftest$ac_exeext &&
4829 $as_test_x conftest$ac_exeext; then
4830 lt_cv_cc_needs_belf=yes
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 lt_cv_cc_needs_belf=no
4838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4839 conftest$ac_exeext conftest.$ac_ext
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4848 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4849 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4850 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4851 CFLAGS="$SAVE_CFLAGS"
4855 # Find out which ABI we are using.
4856 echo 'int i;' > conftest.$ac_ext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; then
4862 case `/usr
/bin
/file conftest.o
` in
4864 case $lt_cv_prog_gnu_ld in
4865 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4866 *) LD="${LD-ld} -64" ;;
4877 need_locks="$enable_libtool_lock"
4881 ac_cpp='$CPP $CPPFLAGS'
4882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4886 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4887 # On Suns, sometimes $CPP names a directory.
4888 if test -n "$CPP" && test -d "$CPP"; then
4891 if test -z "$CPP"; then
4892 if test "${ac_cv_prog_CPP+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 # Double quotes because CPP needs to be expanded
4896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4899 for ac_c_preproc_warn_flag in '' yes
4901 # Use a header file that comes with gcc, so configuring glibc
4902 # with a fresh cross-compiler works.
4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904 # <limits.h> exists even on freestanding compilers.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4914 # include <limits.h>
4916 # include <assert.h>
4920 if { (ac_try="$ac_cpp conftest.$ac_ext"
4922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4923 *) ac_try_echo
=$ac_try;;
4925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4928 grep -v '^ *+' conftest.er1
>conftest.err
4930 cat conftest.err
>&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } >/dev
/null
&& {
4933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4934 test ! -s conftest.err
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.
$ac_ext >&5
4941 # Broken: fails on valid input.
4945 rm -f conftest.err conftest.
$ac_ext
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat >conftest.
$ac_ext <<_ACEOF
4952 cat confdefs.h
>>conftest.
$ac_ext
4953 cat >>conftest.
$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 #include <ac_nonexistent.h>
4957 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4965 grep -v '^ *+' conftest.er1 >conftest.err
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } >/dev/null && {
4970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4971 test ! -s conftest.err
4973 # Broken: success on invalid input.
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4979 # Passes both tests.
4984 rm -f conftest.err conftest.$ac_ext
4987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4988 rm -f conftest.err conftest.
$ac_ext
4989 if $ac_preproc_ok; then
5001 { echo "$as_me:$LINENO: result: $CPP" >&5
5002 echo "${ECHO_T}$CPP" >&6; }
5004 for ac_c_preproc_warn_flag
in '' yes
5006 # Use a header file that comes with gcc, so configuring glibc
5007 # with a fresh cross-compiler works.
5008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5009 # <limits.h> exists even on freestanding compilers.
5010 # On the NeXT, cc -E runs the code through the compiler's parser,
5011 # not just through cpp. "Syntax error" is here to catch this case.
5012 cat >conftest.
$ac_ext <<_ACEOF
5015 cat confdefs.h
>>conftest.
$ac_ext
5016 cat >>conftest.
$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5019 # include <limits.h>
5021 # include <assert.h>
5025 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5033 grep -v '^ *+' conftest.er1 >conftest.err
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } >/dev/null && {
5038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5039 test ! -s conftest.err
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 # Broken: fails on valid input.
5050 rm -f conftest.err conftest.$ac_ext
5052 # OK, works on sane cases. Now check whether nonexistent headers
5053 # can be detected and how.
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 #include <ac_nonexistent.h>
5062 if { (ac_try="$ac_cpp conftest.$ac_ext"
5064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5065 *) ac_try_echo
=$ac_try;;
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5070 grep -v '^ *+' conftest.er1
>conftest.err
5072 cat conftest.err
>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } >/dev
/null
&& {
5075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5076 test ! -s conftest.err
5078 # Broken: success on invalid input.
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.
$ac_ext >&5
5084 # Passes both tests.
5089 rm -f conftest.err conftest.
$ac_ext
5092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5093 rm -f conftest.err conftest.
$ac_ext
5094 if $ac_preproc_ok; then
5097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5098 See \`config.log' for more details." >&5
5099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5100 See \`config.log' for more details." >&2;}
5101 { (exit 1); exit 1; }; }
5105 ac_cpp
='$CPP $CPPFLAGS'
5106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5111 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5112 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5113 if test "${ac_cv_header_stdc+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 cat >conftest.
$ac_ext <<_ACEOF
5119 cat confdefs.h
>>conftest.
$ac_ext
5120 cat >>conftest.
$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5135 rm -f conftest.
$ac_objext
5136 if { (ac_try
="$ac_compile"
5138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5144 grep -v '^ *+' conftest.er1 >conftest.err
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
5152 ac_cv_header_stdc=yes
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5157 ac_cv_header_stdc=no
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162 if test $ac_cv_header_stdc = yes; then
5163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5164 cat >conftest.$ac_ext <<_ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174 $EGREP "memchr" >/dev/null 2>&1; then
5177 ac_cv_header_stdc=no
5183 if test $ac_cv_header_stdc = yes; then
5184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5185 cat >conftest.$ac_ext <<_ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5195 $EGREP "free" >/dev/null 2>&1; then
5198 ac_cv_header_stdc=no
5204 if test $ac_cv_header_stdc = yes; then
5205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5206 if test "$cross_compiling" = yes; then
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5217 #if ((' ' & 0x0FF) == 0x020)
5218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5221 # define ISLOWER(c) \
5222 (('a' <= (c) && (c) <= 'i') \
5223 || ('j' <= (c) && (c) <= 'r') \
5224 || ('s' <= (c) && (c) <= 'z'))
5225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5233 for (i = 0; i < 256; i++)
5234 if (XOR (islower (i), ISLOWER (i))
5235 || toupper (i) != TOUPPER (i))
5240 rm -f conftest$ac_exeext
5241 if { (ac_try="$ac_link"
5243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5244 *) ac_try_echo
=$ac_try;;
5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_link") 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5251 { (case "(($ac_try" in
5252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_try") 2>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5262 echo "$as_me: program exited with status $ac_status" >&5
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5267 ac_cv_header_stdc=no
5269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5275 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5276 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5277 if test $ac_cv_header_stdc = yes; then
5279 cat >>confdefs.h <<\_ACEOF
5280 #define STDC_HEADERS 1
5285 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5295 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5296 inttypes.h stdint.h unistd.h
5298 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 $ac_includes_default
5312 #include <$ac_header>
5314 rm -f conftest.$ac_objext
5315 if { (ac_try="$ac_compile"
5317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5318 *) ac_try_echo
=$ac_try;;
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_compile") 2>conftest.er1
5323 grep -v '^ *+' conftest.er1
>conftest.err
5325 cat conftest.err
>&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } && {
5328 test -z "$ac_c_werror_flag" ||
5329 test ! -s conftest.err
5330 } && test -s conftest.
$ac_objext; then
5331 eval "$as_ac_Header=yes"
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.
$ac_ext >&5
5336 eval "$as_ac_Header=no"
5339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5341 ac_res
=`eval echo '${'$as_ac_Header'}'`
5342 { echo "$as_me:$LINENO: result: $ac_res" >&5
5343 echo "${ECHO_T}$ac_res" >&6; }
5344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5345 cat >>confdefs.h
<<_ACEOF
5346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5355 for ac_header
in dlfcn.h
5357 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5358 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5361 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 ac_res
=`eval echo '${'$as_ac_Header'}'`
5365 { echo "$as_me:$LINENO: result: $ac_res" >&5
5366 echo "${ECHO_T}$ac_res" >&6; }
5368 # Is the header compilable?
5369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5371 cat >conftest.
$ac_ext <<_ACEOF
5374 cat confdefs.h
>>conftest.
$ac_ext
5375 cat >>conftest.
$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 $ac_includes_default
5378 #include <$ac_header>
5380 rm -f conftest.
$ac_objext
5381 if { (ac_try
="$ac_compile"
5383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_compile") 2>conftest.er1
5389 grep -v '^ *+' conftest.er1 >conftest.err
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } && {
5394 test -z "$ac_c_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest.$ac_objext; then
5397 ac_header_compiler=yes
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5402 ac_header_compiler=no
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5407 echo "${ECHO_T}$ac_header_compiler" >&6; }
5409 # Is the header present?
5410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5412 cat >conftest.$ac_ext <<_ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 #include <$ac_header>
5420 if { (ac_try="$ac_cpp conftest.$ac_ext"
5422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5423 *) ac_try_echo
=$ac_try;;
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5428 grep -v '^ *+' conftest.er1
>conftest.err
5430 cat conftest.err
>&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } >/dev
/null
&& {
5433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5434 test ! -s conftest.err
5436 ac_header_preproc
=yes
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.
$ac_ext >&5
5441 ac_header_preproc
=no
5444 rm -f conftest.err conftest.
$ac_ext
5445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5446 echo "${ECHO_T}$ac_header_preproc" >&6; }
5448 # So? What about this header?
5449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5455 ac_header_preproc
=yes
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5471 ## ------------------------------------------- ##
5472 ## Report this to http://gcc.gnu.org/bugs.html ##
5473 ## ------------------------------------------- ##
5475 ) |
sed "s/^/$as_me: WARNING: /" >&2
5478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5480 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 eval "$as_ac_Header=\$ac_header_preproc"
5485 ac_res
=`eval echo '${'$as_ac_Header'}'`
5486 { echo "$as_me:$LINENO: result: $ac_res" >&5
5487 echo "${ECHO_T}$ac_res" >&6; }
5490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5491 cat >>confdefs.h
<<_ACEOF
5492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500 ac_cpp
='$CXXCPP $CPPFLAGS'
5501 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5504 if test -z "$CXX"; then
5505 if test -n "$CCC"; then
5508 if test -n "$ac_tool_prefix"; then
5509 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5512 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5515 if test "${ac_cv_prog_CXX+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 if test -n "$CXX"; then
5519 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir
=.
5526 for ac_exec_ext
in '' $ac_executable_extensions; do
5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5528 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 if test -n "$CXX"; then
5540 { echo "$as_me:$LINENO: result: $CXX" >&5
5541 echo "${ECHO_T}$CXX" >&6; }
5543 { echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6; }
5548 test -n "$CXX" && break
5551 if test -z "$CXX"; then
5553 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5555 # Extract the first word of "$ac_prog", so it can be a program name with args.
5556 set dummy
$ac_prog; ac_word
=$2
5557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5559 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 if test -n "$ac_ct_CXX"; then
5563 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir
=.
5570 for ac_exec_ext
in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5583 if test -n "$ac_ct_CXX"; then
5584 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5585 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5587 { echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6; }
5592 test -n "$ac_ct_CXX" && break
5595 if test "x$ac_ct_CXX" = x
; then
5598 case $cross_compiling:$ac_tool_warned in
5600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5601 whose name does not start with the host triplet. If you think this
5602 configuration is useful to you, please write to autoconf@gnu.org." >&5
5603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5604 whose name does not start with the host triplet. If you think this
5605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5606 ac_tool_warned
=yes ;;
5614 # Provide some information about the compiler.
5615 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5616 ac_compiler
=`set X $ac_compile; echo $2`
5617 { (ac_try
="$ac_compiler --version >&5"
5619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_compiler --version >&5") 2>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }
5627 { (ac_try="$ac_compiler -v >&5"
5629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5630 *) ac_try_echo
=$ac_try;;
5632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633 (eval "$ac_compiler -v >&5") 2>&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }
5637 { (ac_try
="$ac_compiler -V >&5"
5639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_compiler -V >&5") 2>&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }
5648 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5649 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5650 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5675 *) ac_try_echo
=$ac_try;;
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5680 grep -v '^ *+' conftest.er1
>conftest.err
5682 cat conftest.err
>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } && {
5685 test -z "$ac_cxx_werror_flag" ||
5686 test ! -s conftest.err
5687 } && test -s conftest.
$ac_objext; then
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.
$ac_ext >&5
5696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5697 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5700 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5701 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5702 GXX
=`test $ac_compiler_gnu = yes && echo yes`
5703 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5704 ac_save_CXXFLAGS
=$CXXFLAGS
5705 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5706 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5707 if test "${ac_cv_prog_cxx_g+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5711 ac_cxx_werror_flag
=yes
5714 cat >conftest.
$ac_ext <<_ACEOF
5717 cat confdefs.h
>>conftest.
$ac_ext
5718 cat >>conftest.
$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5729 rm -f conftest.
$ac_objext
5730 if { (ac_try
="$ac_compile"
5732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736 (eval "$ac_compile") 2>conftest.er1
5738 grep -v '^ *+' conftest.er1 >conftest.err
5740 cat conftest.err >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } && {
5743 test -z "$ac_cxx_werror_flag" ||
5744 test ! -s conftest.err
5745 } && test -s conftest.$ac_objext; then
5746 ac_cv_prog_cxx_g=yes
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5767 rm -f conftest.$ac_objext
5768 if { (ac_try="$ac_compile"
5770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5771 *) ac_try_echo
=$ac_try;;
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compile") 2>conftest.er1
5776 grep -v '^ *+' conftest.er1
>conftest.err
5778 cat conftest.err
>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } && {
5781 test -z "$ac_cxx_werror_flag" ||
5782 test ! -s conftest.err
5783 } && test -s conftest.
$ac_objext; then
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.
$ac_ext >&5
5789 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5791 cat >conftest.
$ac_ext <<_ACEOF
5794 cat confdefs.h
>>conftest.
$ac_ext
5795 cat >>conftest.
$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5806 rm -f conftest.
$ac_objext
5807 if { (ac_try
="$ac_compile"
5809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1 >conftest.err
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_cxx_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
5823 ac_cv_prog_cxx_g=yes
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5840 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5841 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5842 if test "$ac_test_CXXFLAGS" = set; then
5843 CXXFLAGS=$ac_save_CXXFLAGS
5844 elif test $ac_cv_prog_cxx_g = yes; then
5845 if test "$GXX" = yes; then
5851 if test "$GXX" = yes; then
5858 ac_cpp='$CXXCPP $CPPFLAGS'
5859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5863 depcc="$CXX" am_compiler_list=
5865 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5866 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5867 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5871 # We make a subdir and do the tests there. Otherwise we can end up
5872 # making bogus files that we don't know about and never remove. For
5873 # instance it was reported that on HP-UX the gcc test will end up
5874 # making a dummy file named `D
' -- because `-MD' means
`put the output
5877 # Copy depcomp to subdir because otherwise we won't find it if we're
5878 # using a relative directory.
5879 cp "$am_depcomp" conftest.dir
5881 # We will build objects and dependencies in a subdirectory because
5882 # it helps to detect inapplicable dependency modes. For instance
5883 # both Tru64's cc and ICC support -MD to output dependencies as a
5884 # side effect of compilation, but ICC will put the dependencies in
5885 # the current directory while Tru64 will put them in the object
5889 am_cv_CXX_dependencies_compiler_type=none
5890 if test "$am_compiler_list" = ""; then
5891 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5893 for depmode in $am_compiler_list; do
5894 # Setup a source with many dependencies, because some compilers
5895 # like to wrap large dependency lists on column 80 (with \), and
5896 # we should not choose a depcomp mode which is confused by this.
5898 # We need to recreate these files for each test, as the compiler may
5899 # overwrite some of them when testing with obscure command lines.
5900 # This happens at least with the AIX C compiler.
5902 for i in 1 2 3 4 5 6; do
5903 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5904 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
5905 # Solaris 8's
{/usr
,}/bin
/sh.
5906 touch sub
/conftst
$i.h
5908 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5912 # after this tag, mechanisms are not by side-effect, so they'll
5913 # only be used when explicitly requested
5914 if test "x$enable_dependency_tracking" = xyes
; then
5922 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5923 # mode. It turns out that the SunPro C++ compiler does not properly
5924 # handle `-M -o', and we need to detect this.
5925 if depmode
=$depmode \
5926 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5927 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5928 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5929 >/dev
/null
2>conftest.err
&&
5930 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5931 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5932 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5933 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5934 # icc doesn't choke on unknown options, it will just issue warnings
5935 # or remarks (even with -Werror). So we grep stderr for any message
5936 # that says an option was ignored or not supported.
5937 # When given -MP, icc 7.0 and 7.1 complain thusly:
5938 # icc: Command line warning: ignoring option '-M'; no argument required
5939 # The diagnosis changed in icc 8.0:
5940 # icc: Command line remark: option '-MP' not supported
5941 if (grep 'ignoring option' conftest.err ||
5942 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5943 am_cv_CXX_dependencies_compiler_type
=$depmode
5952 am_cv_CXX_dependencies_compiler_type
=none
5956 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5957 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5958 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5961 test "x$enable_dependency_tracking" != xno \
5962 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5963 am__fastdepCXX_TRUE
=
5964 am__fastdepCXX_FALSE
='#'
5966 am__fastdepCXX_TRUE
='#'
5967 am__fastdepCXX_FALSE
=
5973 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5974 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5975 (test "X$CXX" != "Xg++"))) ; then
5977 ac_cpp
='$CXXCPP $CPPFLAGS'
5978 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5979 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5980 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5981 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5982 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5983 if test -z "$CXXCPP"; then
5984 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 # Double quotes because CXXCPP needs to be expanded
5988 for CXXCPP
in "$CXX -E" "/lib/cpp"
5991 for ac_cxx_preproc_warn_flag
in '' yes
5993 # Use a header file that comes with gcc, so configuring glibc
5994 # with a fresh cross-compiler works.
5995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5996 # <limits.h> exists even on freestanding compilers.
5997 # On the NeXT, cc -E runs the code through the compiler's parser,
5998 # not just through cpp. "Syntax error" is here to catch this case.
5999 cat >conftest.
$ac_ext <<_ACEOF
6002 cat confdefs.h
>>conftest.
$ac_ext
6003 cat >>conftest.
$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6006 # include <limits.h>
6008 # include <assert.h>
6012 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6020 grep -v '^ *+' conftest.er1 >conftest.err
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } >/dev/null && {
6025 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6026 test ! -s conftest.err
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 # Broken: fails on valid input.
6037 rm -f conftest.err conftest.$ac_ext
6039 # OK, works on sane cases. Now check whether nonexistent headers
6040 # can be detected and how.
6041 cat >conftest.$ac_ext <<_ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #include <ac_nonexistent.h>
6049 if { (ac_try="$ac_cpp conftest.$ac_ext"
6051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6052 *) ac_try_echo
=$ac_try;;
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6057 grep -v '^ *+' conftest.er1
>conftest.err
6059 cat conftest.err
>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } >/dev
/null
&& {
6062 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6063 test ! -s conftest.err
6065 # Broken: success on invalid input.
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.
$ac_ext >&5
6071 # Passes both tests.
6076 rm -f conftest.err conftest.
$ac_ext
6079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6080 rm -f conftest.err conftest.
$ac_ext
6081 if $ac_preproc_ok; then
6086 ac_cv_prog_CXXCPP
=$CXXCPP
6089 CXXCPP
=$ac_cv_prog_CXXCPP
6091 ac_cv_prog_CXXCPP
=$CXXCPP
6093 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6094 echo "${ECHO_T}$CXXCPP" >&6; }
6096 for ac_cxx_preproc_warn_flag
in '' yes
6098 # Use a header file that comes with gcc, so configuring glibc
6099 # with a fresh cross-compiler works.
6100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6101 # <limits.h> exists even on freestanding compilers.
6102 # On the NeXT, cc -E runs the code through the compiler's parser,
6103 # not just through cpp. "Syntax error" is here to catch this case.
6104 cat >conftest.
$ac_ext <<_ACEOF
6107 cat confdefs.h
>>conftest.
$ac_ext
6108 cat >>conftest.
$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6111 # include <limits.h>
6113 # include <assert.h>
6117 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6125 grep -v '^ *+' conftest.er1 >conftest.err
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } >/dev/null && {
6130 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6131 test ! -s conftest.err
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 # Broken: fails on valid input.
6142 rm -f conftest.err conftest.$ac_ext
6144 # OK, works on sane cases. Now check whether nonexistent headers
6145 # can be detected and how.
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 #include <ac_nonexistent.h>
6154 if { (ac_try="$ac_cpp conftest.$ac_ext"
6156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6157 *) ac_try_echo
=$ac_try;;
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6162 grep -v '^ *+' conftest.er1
>conftest.err
6164 cat conftest.err
>&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } >/dev
/null
&& {
6167 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6168 test ! -s conftest.err
6170 # Broken: success on invalid input.
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.
$ac_ext >&5
6176 # Passes both tests.
6181 rm -f conftest.err conftest.
$ac_ext
6184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6185 rm -f conftest.err conftest.
$ac_ext
6186 if $ac_preproc_ok; then
6189 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6190 See \`config.log' for more details." >&5
6191 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6192 See \`config.log' for more details." >&2;}
6193 { (exit 1); exit 1; }; }
6197 ac_cpp
='$CXXCPP $CPPFLAGS'
6198 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6206 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6207 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
6209 if test -n "$ac_tool_prefix"; then
6210 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
6212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6213 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6216 if test "${ac_cv_prog_F77+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 if test -n "$F77"; then
6220 ac_cv_prog_F77
="$F77" # Let the user override the test.
6222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6226 test -z "$as_dir" && as_dir
=.
6227 for ac_exec_ext
in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
6230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 if test -n "$F77"; then
6241 { echo "$as_me:$LINENO: result: $F77" >&5
6242 echo "${ECHO_T}$F77" >&6; }
6244 { echo "$as_me:$LINENO: result: no" >&5
6245 echo "${ECHO_T}no" >&6; }
6249 test -n "$F77" && break
6252 if test -z "$F77"; then
6254 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
6256 # Extract the first word of "$ac_prog", so it can be a program name with args.
6257 set dummy
$ac_prog; ac_word
=$2
6258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 if test -n "$ac_ct_F77"; then
6264 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
6266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir
=.
6271 for ac_exec_ext
in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_ac_ct_F77
="$ac_prog"
6274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
6284 if test -n "$ac_ct_F77"; then
6285 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6286 echo "${ECHO_T}$ac_ct_F77" >&6; }
6288 { echo "$as_me:$LINENO: result: no" >&5
6289 echo "${ECHO_T}no" >&6; }
6293 test -n "$ac_ct_F77" && break
6296 if test "x$ac_ct_F77" = x
; then
6299 case $cross_compiling:$ac_tool_warned in
6301 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6302 whose name does not start with the host triplet. If you think this
6303 configuration is useful to you, please write to autoconf@gnu.org." >&5
6304 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6305 whose name does not start with the host triplet. If you think this
6306 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6307 ac_tool_warned
=yes ;;
6314 # Provide some information about the compiler.
6315 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6316 ac_compiler
=`set X $ac_compile; echo $2`
6317 { (ac_try
="$ac_compiler --version >&5"
6319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_compiler --version >&5") 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }
6327 { (ac_try="$ac_compiler -v >&5"
6329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6330 *) ac_try_echo
=$ac_try;;
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_compiler -v >&5") 2>&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }
6337 { (ac_try
="$ac_compiler -V >&5"
6339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compiler -V >&5") 2>&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }
6349 # If we don't use `.F
' as extension, the preprocessor is not run on the
6350 # input file. (Note that this only needs to work for GNU compilers.)
6353 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6354 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6355 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 cat >conftest.$ac_ext <<_ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (ac_try="$ac_compile"
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_compile") 2>conftest.er1
6375 grep -v '^
*+' conftest.er1 >conftest.err
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } && {
6380 test -z "$ac_f77_werror_flag" ||
6381 test ! -s conftest.err
6382 } && test -s conftest.$ac_objext; then
6385 echo "$as_me: failed program was:" >&5
6386 sed 's
/^
/|
/' conftest.$ac_ext >&5
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6395 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6396 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6398 ac_test_FFLAGS=${FFLAGS+set}
6399 ac_save_FFLAGS=$FFLAGS
6401 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6402 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6403 if test "${ac_cv_prog_f77_g+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 cat >conftest.$ac_ext <<_ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (ac_try="$ac_compile"
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_compile") 2>conftest.er1
6421 grep -v '^
*+' conftest.er1 >conftest.err
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } && {
6426 test -z "$ac_f77_werror_flag" ||
6427 test ! -s conftest.err
6428 } && test -s conftest.$ac_objext; then
6429 ac_cv_prog_f77_g=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's
/^
/|
/' conftest.$ac_ext >&5
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6441 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6442 if test "$ac_test_FFLAGS" = set; then
6443 FFLAGS=$ac_save_FFLAGS
6444 elif test $ac_cv_prog_f77_g = yes; then
6445 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6451 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6458 G77=`test $ac_compiler_gnu = yes && echo yes`
6460 ac_cpp='$CPP $CPPFLAGS'
6461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6462 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6467 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6469 # find the maximum length of command line arguments
6470 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6471 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6472 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 # On DJGPP, this test can blow up pretty badly due to problems in libc
6481 # (any single argument exceeding 2000 bytes causes a buffer overrun
6482 # during glob expansion). Even if it were fixed, the result of this
6483 # check would be larger than it should be.
6484 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6488 # Under GNU Hurd, this test is not required because there is
6489 # no limit to the length of command line arguments.
6490 # Libtool will interpret -1 as no limit whatsoever
6491 lt_cv_sys_max_cmd_len
=-1;
6495 # On Win9x/ME, this test blows up -- it succeeds, but takes
6496 # about 5 minutes as the teststring grows exponentially.
6497 # Worse, since 9x/ME are not pre-emptively multitasking,
6498 # you end up with a "frozen" computer, even though with patience
6499 # the test eventually succeeds (with a max line length of 256k).
6500 # Instead, let's just punt: use the minimum linelength reported by
6501 # all of the supported platforms: 8192 (on NT/2K/XP).
6502 lt_cv_sys_max_cmd_len
=8192;
6506 # On AmigaOS with pdksh, this test takes hours, literally.
6507 # So we just punt and use a minimum line length of 8192.
6508 lt_cv_sys_max_cmd_len
=8192;
6511 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6512 # This has been around since 386BSD, at least. Likely further.
6513 if test -x /sbin
/sysctl
; then
6514 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6515 elif test -x /usr
/sbin
/sysctl
; then
6516 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6518 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6520 # And add a safety zone
6521 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6522 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6526 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6527 lt_cv_sys_max_cmd_len
=196608
6531 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6532 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6533 # nice to cause kernel panics so lets avoid the loop below.
6534 # First set a reasonable default.
6535 lt_cv_sys_max_cmd_len
=16384
6537 if test -x /sbin
/sysconfig
; then
6538 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6539 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6544 lt_cv_sys_max_cmd_len
=102400
6546 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6547 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6548 if test -n "$kargmax"; then
6549 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6551 lt_cv_sys_max_cmd_len
=32768
6555 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6556 if test -n "$lt_cv_sys_max_cmd_len"; then
6557 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6558 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6560 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6561 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6562 = "XX$teststring") >/dev
/null
2>&1 &&
6563 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6564 lt_cv_sys_max_cmd_len
=$new_result &&
6565 test $i != 17 # 1/2 MB should be enough
6568 teststring
=$teststring$teststring
6571 # Add a significant safety factor because C++ compilers can tack on massive
6572 # amounts of additional arguments before passing them to the linker.
6573 # It appears as though 1/2 is a usable value.
6574 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6581 if test -n $lt_cv_sys_max_cmd_len ; then
6582 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6583 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6585 { echo "$as_me:$LINENO: result: none" >&5
6586 echo "${ECHO_T}none" >&6; }
6593 # Check for command to grab the raw symbol name followed by C symbol from nm.
6594 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6595 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6596 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 # These are sane defaults that work on at least a few old systems.
6601 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6603 # Character class describing NM global symbol codes.
6604 symcode
='[BCDEGRST]'
6606 # Regexp to match symbols that can be accessed directly from C.
6607 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6609 # Transform an extracted symbol line into a proper C declaration
6610 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6612 # Transform an extracted symbol line into symbol name and symbol address
6613 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'"
6615 # Define system-specific variables.
6620 cygwin
* | mingw
* | pw32
*)
6621 symcode
='[ABCDGISTW]'
6623 hpux
*) # Its linker distinguishes data from code symbols
6624 if test "$host_cpu" = ia64
; then
6625 symcode
='[ABCDEGRST]'
6627 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6628 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'"
6630 linux
* | k
*bsd
*-gnu)
6631 if test "$host_cpu" = ia64
; then
6632 symcode
='[ABCDGIRSTW]'
6633 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6634 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'"
6638 symcode
='[BCDEGRST]'
6641 symcode
='[BCDEGQRST]'
6652 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6660 # Handle CRLF in mingw tool chain
6664 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6668 # If we're using GNU nm, then use its standard symbol codes.
6669 case `$NM -V 2>&1` in
6670 *GNU
* |
*'with BFD'*)
6671 symcode
='[ABCDGIRSTW]' ;;
6674 # Try without a prefix undercore, then with it.
6675 for ac_symprfx
in "" "_"; do
6677 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6678 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6680 # Write the raw and C identifiers.
6681 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6683 # Check to see that the pipe works correctly.
6687 cat > conftest.
$ac_ext <<EOF
6692 void nm_test_func(){}
6696 int main(){nm_test_var='a';nm_test_func();return(0);}
6699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6700 (eval $ac_compile) 2>&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; then
6704 # Now try to grab the symbols.
6706 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6707 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && test -s "$nlist"; then
6711 # Try sorting and uniquifying the output.
6712 if sort "$nlist" |
uniq > "$nlist"T
; then
6713 mv -f "$nlist"T
"$nlist"
6718 # Make sure that we snagged all the symbols we need.
6719 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6720 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6721 cat <<EOF > conftest.$ac_ext
6727 # Now generate the symbol file.
6728 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6730 cat <<EOF >> conftest.$ac_ext
6731 #if defined (__STDC__) && __STDC__
6732 # define lt_ptr_t void *
6734 # define lt_ptr_t char *
6738 /* The mapping between symbol names and symbols. */
6743 lt_preloaded_symbols[] =
6746 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6747 cat <<\EOF
>> conftest.
$ac_ext
6755 # Now try linking the two files.
6756 mv conftest.
$ac_objext conftstm.
$ac_objext
6757 lt_save_LIBS
="$LIBS"
6758 lt_save_CFLAGS
="$CFLAGS"
6759 LIBS
="conftstm.$ac_objext"
6760 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762 (eval $ac_link) 2>&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6768 LIBS
="$lt_save_LIBS"
6769 CFLAGS
="$lt_save_CFLAGS"
6771 echo "cannot find nm_test_func in $nlist" >&5
6774 echo "cannot find nm_test_var in $nlist" >&5
6777 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6780 echo "$progname: failed program was:" >&5
6781 cat conftest.
$ac_ext >&5
6783 rm -f conftest
* conftst
*
6785 # Do not use the global_symbol_pipe unless it works.
6786 if test "$pipe_works" = yes; then
6789 lt_cv_sys_global_symbol_pipe
=
6795 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6796 lt_cv_sys_global_symbol_to_cdecl
=
6798 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6799 { echo "$as_me:$LINENO: result: failed" >&5
6800 echo "${ECHO_T}failed" >&6; }
6802 { echo "$as_me:$LINENO: result: ok" >&5
6803 echo "${ECHO_T}ok" >&6; }
6806 { echo "$as_me:$LINENO: checking for objdir" >&5
6807 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6808 if test "${lt_cv_objdir+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 rm -f .libs
2>/dev
/null
6812 mkdir .libs
2>/dev
/null
6813 if test -d .libs
; then
6816 # MS-DOS does not allow filenames that begin with a dot.
6819 rmdir .libs
2>/dev
/null
6821 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6822 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6823 objdir
=$lt_cv_objdir
6831 # AIX sometimes has problems with the GCC collect2 program. For some
6832 # reason, if we set the COLLECT_NAMES environment variable, the problems
6833 # vanish in a puff of smoke.
6834 if test "X${COLLECT_NAMES+set}" != Xset
; then
6836 export COLLECT_NAMES
6841 # Sed substitution that helps us do robust quoting. It backslashifies
6842 # metacharacters that are still active within double-quoted strings.
6843 Xsed
='sed -e 1s/^X//'
6844 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6846 # Same as above, but do not quote variable references.
6847 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6849 # Sed substitution to delay expansion of an escaped shell variable in a
6850 # double_quote_subst'ed string.
6851 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6853 # Sed substitution to avoid accidental globbing in evaled expressions
6854 no_glob_subst
='s/\*/\\\*/g'
6860 default_ofile
=libtool
6861 can_build_shared
=yes
6863 # All known linkers require a `.a' archive for static linking (except MSVC,
6864 # which needs '.lib').
6866 ltmain
="$ac_aux_dir/ltmain.sh"
6867 ofile
="$default_ofile"
6868 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6872 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875 if test "${ac_cv_prog_AR+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 if test -n "$AR"; then
6879 ac_cv_prog_AR
="$AR" # Let the user override the test.
6881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir
=.
6886 for ac_exec_ext
in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 if test -n "$AR"; then
6900 { echo "$as_me:$LINENO: result: $AR" >&5
6901 echo "${ECHO_T}$AR" >&6; }
6903 { echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6; }
6909 if test -z "$ac_cv_prog_AR"; then
6911 # Extract the first word of "ar", so it can be a program name with args.
6912 set dummy
ar; ac_word
=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 if test -n "$ac_ct_AR"; then
6919 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir
=.
6926 for ac_exec_ext
in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_ac_ct_AR
="ar"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6939 if test -n "$ac_ct_AR"; then
6940 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6941 echo "${ECHO_T}$ac_ct_AR" >&6; }
6943 { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6947 if test "x$ac_ct_AR" = x
; then
6950 case $cross_compiling:$ac_tool_warned in
6952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6953 whose name does not start with the host triplet. If you think this
6954 configuration is useful to you, please write to autoconf@gnu.org." >&5
6955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6956 whose name does not start with the host triplet. If you think this
6957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6958 ac_tool_warned
=yes ;;
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6968 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971 if test "${ac_cv_prog_RANLIB+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 if test -n "$RANLIB"; then
6975 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir
=.
6982 for ac_exec_ext
in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 RANLIB
=$ac_cv_prog_RANLIB
6995 if test -n "$RANLIB"; then
6996 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6997 echo "${ECHO_T}$RANLIB" >&6; }
6999 { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7005 if test -z "$ac_cv_prog_RANLIB"; then
7006 ac_ct_RANLIB
=$RANLIB
7007 # Extract the first word of "ranlib", so it can be a program name with args.
7008 set dummy ranlib
; ac_word
=$2
7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 if test -n "$ac_ct_RANLIB"; then
7015 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir
=.
7022 for ac_exec_ext
in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7035 if test -n "$ac_ct_RANLIB"; then
7036 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7037 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7039 { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7043 if test "x$ac_ct_RANLIB" = x
; then
7046 case $cross_compiling:$ac_tool_warned in
7048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7049 whose name does not start with the host triplet. If you think this
7050 configuration is useful to you, please write to autoconf@gnu.org." >&5
7051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7052 whose name does not start with the host triplet. If you think this
7053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7054 ac_tool_warned
=yes ;;
7056 RANLIB
=$ac_ct_RANLIB
7059 RANLIB
="$ac_cv_prog_RANLIB"
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7064 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_STRIP+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 if test -n "$STRIP"; then
7071 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir
=.
7078 for ac_exec_ext
in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 STRIP
=$ac_cv_prog_STRIP
7091 if test -n "$STRIP"; then
7092 { echo "$as_me:$LINENO: result: $STRIP" >&5
7093 echo "${ECHO_T}$STRIP" >&6; }
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7101 if test -z "$ac_cv_prog_STRIP"; then
7103 # Extract the first word of "strip", so it can be a program name with args.
7104 set dummy strip
; ac_word
=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 if test -n "$ac_ct_STRIP"; then
7111 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir
=.
7118 for ac_exec_ext
in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_ac_ct_STRIP
="strip"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7131 if test -n "$ac_ct_STRIP"; then
7132 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7133 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7139 if test "x$ac_ct_STRIP" = x
; then
7142 case $cross_compiling:$ac_tool_warned in
7144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7145 whose name does not start with the host triplet. If you think this
7146 configuration is useful to you, please write to autoconf@gnu.org." >&5
7147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet. If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7150 ac_tool_warned
=yes ;;
7155 STRIP
="$ac_cv_prog_STRIP"
7160 old_CFLAGS
="$CFLAGS"
7162 # Set sane defaults for various variables
7163 test -z "$AR" && AR
=ar
7164 test -z "$AR_FLAGS" && AR_FLAGS
=cru
7165 test -z "$AS" && AS
=as
7166 test -z "$CC" && CC
=cc
7167 test -z "$LTCC" && LTCC
=$CC
7168 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7169 test -z "$DLLTOOL" && DLLTOOL
=dlltool
7170 test -z "$LD" && LD
=ld
7171 test -z "$LN_S" && LN_S
="ln -s"
7172 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7173 test -z "$NM" && NM
=nm
7174 test -z "$SED" && SED
=sed
7175 test -z "$OBJDUMP" && OBJDUMP
=objdump
7176 test -z "$RANLIB" && RANLIB
=:
7177 test -z "$STRIP" && STRIP
=:
7178 test -z "$ac_objext" && ac_objext
=o
7180 # Determine commands to create old-style static archives.
7181 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7182 old_postinstall_cmds
='chmod 644 $oldlib'
7183 old_postuninstall_cmds
=
7185 if test -n "$RANLIB"; then
7188 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7191 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
7194 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
7197 for cc_temp
in $compiler""; do
7199 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7200 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7205 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7208 # Only perform the check for file, if the check method requires it
7209 case $deplibs_check_method in
7211 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7212 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7213 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7222 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7223 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7224 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7225 for ac_dir
in $ac_dummy; do
7227 test -z "$ac_dir" && ac_dir
=.
7228 if test -f $ac_dir/${ac_tool_prefix}file; then
7229 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7230 if test -n "$file_magic_test_file"; then
7231 case $deplibs_check_method in
7233 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7234 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7235 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7236 $EGREP "$file_magic_regex" > /dev
/null
; then
7241 *** Warning: the command libtool uses to detect shared libraries,
7242 *** $file_magic_cmd, produces output that libtool cannot recognize.
7243 *** The result is that libtool may fail to recognize shared libraries
7244 *** as such. This will affect the creation of libtool libraries that
7245 *** depend on shared libraries, but programs linked with such libtool
7246 *** libraries will work regardless of this problem. Nevertheless, you
7247 *** may want to report the problem to your system manager and/or to
7248 *** bug-libtool@gnu.org
7258 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7263 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7264 if test -n "$MAGIC_CMD"; then
7265 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7266 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7268 { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7272 if test -z "$lt_cv_path_MAGIC_CMD"; then
7273 if test -n "$ac_tool_prefix"; then
7274 { echo "$as_me:$LINENO: checking for file" >&5
7275 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7284 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7285 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7286 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7287 for ac_dir
in $ac_dummy; do
7289 test -z "$ac_dir" && ac_dir
=.
7290 if test -f $ac_dir/file; then
7291 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7292 if test -n "$file_magic_test_file"; then
7293 case $deplibs_check_method in
7295 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7296 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7297 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7298 $EGREP "$file_magic_regex" > /dev
/null
; then
7303 *** Warning: the command libtool uses to detect shared libraries,
7304 *** $file_magic_cmd, produces output that libtool cannot recognize.
7305 *** The result is that libtool may fail to recognize shared libraries
7306 *** as such. This will affect the creation of libtool libraries that
7307 *** depend on shared libraries, but programs linked with such libtool
7308 *** libraries will work regardless of this problem. Nevertheless, you
7309 *** may want to report the problem to your system manager and/or to
7310 *** bug-libtool@gnu.org
7320 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7325 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7326 if test -n "$MAGIC_CMD"; then
7327 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7328 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7330 { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7346 # Check whether --enable-libtool-lock was given.
7347 if test "${enable_libtool_lock+set}" = set; then
7348 enableval
=$enable_libtool_lock;
7351 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7354 # Check whether --with-pic was given.
7355 if test "${with_pic+set}" = set; then
7356 withval
=$with_pic; pic_mode
="$withval"
7361 test -z "$pic_mode" && pic_mode
=default
7363 # Use C for the default configuration in the libtool script
7367 ac_cpp
='$CPP $CPPFLAGS'
7368 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7369 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7370 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7373 # Source file extension for C test sources.
7376 # Object file extension for compiled C test sources.
7380 # Code to be used in simple compile tests
7381 lt_simple_compile_test_code
="int some_variable = 0;"
7383 # Code to be used in simple link tests
7384 lt_simple_link_test_code
='int main(){return(0);}'
7387 # If no C compiler was specified, use CC.
7390 # If no C compiler flags were specified, use CFLAGS.
7391 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7393 # Allow CC to be a program name with arguments.
7397 # save warnings/boilerplate of simple test code
7398 ac_outfile
=conftest.
$ac_objext
7399 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7400 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7401 _lt_compiler_boilerplate
=`cat conftest.err`
7404 ac_outfile
=conftest.
$ac_objext
7405 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7406 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7407 _lt_linker_boilerplate
=`cat conftest.err`
7412 lt_prog_compiler_no_builtin_flag
=
7414 if test "$GCC" = yes; then
7415 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7418 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7419 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7420 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 lt_cv_prog_compiler_rtti_exceptions
=no
7424 ac_outfile
=conftest.
$ac_objext
7425 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7426 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7427 # Insert the option either (1) after the last *FLAGS variable, or
7428 # (2) before a word containing "conftest.", or (3) at the end.
7429 # Note that $ac_compile itself does not contain backslashes and begins
7430 # with a dollar sign (not a hyphen), so the echo should work correctly.
7431 # The option is referenced via a variable to avoid confusing sed.
7432 lt_compile
=`echo "$ac_compile" | $SED \
7433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7435 -e 's:$: $lt_compiler_flag:'`
7436 (eval echo "\"\$as_me:7436: $lt_compile\"" >&5)
7437 (eval "$lt_compile" 2>conftest.err
)
7439 cat conftest.err
>&5
7440 echo "$as_me:7440: \$? = $ac_status" >&5
7441 if (exit $ac_status) && test -s "$ac_outfile"; then
7442 # The compiler can only warn and ignore the option if not recognized
7443 # So say no if there are warnings other than the usual output.
7444 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7445 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7446 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7447 lt_cv_prog_compiler_rtti_exceptions
=yes
7453 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7454 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7456 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7457 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7464 lt_prog_compiler_wl
=
7465 lt_prog_compiler_pic
=
7466 lt_prog_compiler_static
=
7468 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7469 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7471 if test "$GCC" = yes; then
7472 lt_prog_compiler_wl
='-Wl,'
7473 lt_prog_compiler_static
='-static'
7477 # All AIX code is PIC.
7478 if test "$host_cpu" = ia64
; then
7479 # AIX 5 now supports IA64 processor
7480 lt_prog_compiler_static
='-Bstatic'
7485 # FIXME: we need at least 68020 code to build shared libraries, but
7486 # adding the `-m68020' flag to GCC prevents building anything better,
7488 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7491 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7492 # PIC is the default for these OSes.
7495 mingw
* | cygwin
* | pw32
* | os2
*)
7496 # This hack is so that the source file can tell whether it is being
7497 # built for inclusion in a dll (and should export symbols for example).
7498 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7499 # (--disable-auto-import) libraries
7500 lt_prog_compiler_pic
='-DDLL_EXPORT'
7503 darwin
* | rhapsody
*)
7504 # PIC is the default on this platform
7505 # Common symbols not allowed in MH_DYLIB files
7506 lt_prog_compiler_pic
='-fno-common'
7510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7511 # Instead, we relocate shared libraries at runtime.
7515 # Just because we use GCC doesn't mean we suddenly get shared libraries
7516 # on systems that don't support them.
7517 lt_prog_compiler_can_build_shared
=no
7522 if test -d /usr
/nec
; then
7523 lt_prog_compiler_pic
=-Kconform_pic
7528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7535 lt_prog_compiler_pic
='-fPIC'
7541 lt_prog_compiler_pic
='-fPIC'
7545 # PORTME Check for flag to pass linker flags through the system compiler.
7548 lt_prog_compiler_wl
='-Wl,'
7549 if test "$host_cpu" = ia64
; then
7550 # AIX 5 now supports IA64 processor
7551 lt_prog_compiler_static
='-Bstatic'
7553 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7557 # PIC is the default on this platform
7558 # Common symbols not allowed in MH_DYLIB files
7559 case $cc_basename in
7561 lt_prog_compiler_pic
='-qnocommon'
7562 lt_prog_compiler_wl
='-Wl,'
7567 mingw
* | cygwin
* | pw32
* | os2
*)
7568 # This hack is so that the source file can tell whether it is being
7569 # built for inclusion in a dll (and should export symbols for example).
7570 lt_prog_compiler_pic
='-DDLL_EXPORT'
7573 hpux9
* | hpux10
* | hpux11
*)
7574 lt_prog_compiler_wl
='-Wl,'
7575 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7582 lt_prog_compiler_pic
='+Z'
7585 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7586 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7589 irix5
* | irix6
* | nonstopux
*)
7590 lt_prog_compiler_wl
='-Wl,'
7591 # PIC (with -KPIC) is the default.
7592 lt_prog_compiler_static
='-non_shared'
7596 lt_prog_compiler_pic
='-KPIC'
7597 lt_prog_compiler_static
='-Bstatic'
7600 linux
* | k
*bsd
*-gnu)
7601 case $cc_basename in
7603 lt_prog_compiler_wl
='-Wl,'
7604 lt_prog_compiler_pic
='-KPIC'
7605 lt_prog_compiler_static
='-static'
7607 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7608 # Portland Group compilers (*not* the Pentium gcc compiler,
7609 # which looks to be a dead project)
7610 lt_prog_compiler_wl
='-Wl,'
7611 lt_prog_compiler_pic
='-fpic'
7612 lt_prog_compiler_static
='-Bstatic'
7615 lt_prog_compiler_wl
='-Wl,'
7616 # All Alpha code is PIC.
7617 lt_prog_compiler_static
='-non_shared'
7620 case `$CC -V 2>&1 | sed 5q` in
7623 lt_prog_compiler_pic
='-KPIC'
7624 lt_prog_compiler_static
='-Bstatic'
7625 lt_prog_compiler_wl
='-Wl,'
7628 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7629 lt_prog_compiler_pic
='-KPIC'
7630 lt_prog_compiler_static
='-Bstatic'
7631 lt_prog_compiler_wl
=''
7638 osf3
* | osf4
* | osf5
*)
7639 lt_prog_compiler_wl
='-Wl,'
7640 # All OSF/1 code is PIC.
7641 lt_prog_compiler_static
='-non_shared'
7645 lt_prog_compiler_static
='-non_shared'
7649 lt_prog_compiler_pic
='-KPIC'
7650 lt_prog_compiler_static
='-Bstatic'
7651 case $cc_basename in
7653 lt_prog_compiler_wl
='-Qoption ld ';;
7655 lt_prog_compiler_wl
='-Wl,';;
7660 lt_prog_compiler_wl
='-Qoption ld '
7661 lt_prog_compiler_pic
='-PIC'
7662 lt_prog_compiler_static
='-Bstatic'
7665 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7666 lt_prog_compiler_wl
='-Wl,'
7667 lt_prog_compiler_pic
='-KPIC'
7668 lt_prog_compiler_static
='-Bstatic'
7672 if test -d /usr
/nec
;then
7673 lt_prog_compiler_pic
='-Kconform_pic'
7674 lt_prog_compiler_static
='-Bstatic'
7678 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7679 lt_prog_compiler_wl
='-Wl,'
7680 lt_prog_compiler_pic
='-KPIC'
7681 lt_prog_compiler_static
='-Bstatic'
7685 lt_prog_compiler_wl
='-Wl,'
7686 lt_prog_compiler_can_build_shared
=no
7690 lt_prog_compiler_pic
='-pic'
7691 lt_prog_compiler_static
='-Bstatic'
7695 lt_prog_compiler_can_build_shared
=no
7700 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7701 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7704 # Check to make sure the PIC flag actually works.
7706 if test -n "$lt_prog_compiler_pic"; then
7708 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7709 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7710 if test "${lt_prog_compiler_pic_works+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 lt_prog_compiler_pic_works
=no
7714 ac_outfile
=conftest.
$ac_objext
7715 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7716 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7717 # Insert the option either (1) after the last *FLAGS variable, or
7718 # (2) before a word containing "conftest.", or (3) at the end.
7719 # Note that $ac_compile itself does not contain backslashes and begins
7720 # with a dollar sign (not a hyphen), so the echo should work correctly.
7721 # The option is referenced via a variable to avoid confusing sed.
7722 lt_compile
=`echo "$ac_compile" | $SED \
7723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7725 -e 's:$: $lt_compiler_flag:'`
7726 (eval echo "\"\$as_me:7726: $lt_compile\"" >&5)
7727 (eval "$lt_compile" 2>conftest.err
)
7729 cat conftest.err
>&5
7730 echo "$as_me:7730: \$? = $ac_status" >&5
7731 if (exit $ac_status) && test -s "$ac_outfile"; then
7732 # The compiler can only warn and ignore the option if not recognized
7733 # So say no if there are warnings other than the usual output.
7734 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7735 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7736 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7737 lt_prog_compiler_pic_works
=yes
7743 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7744 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7746 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7747 case $lt_prog_compiler_pic in
7749 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7752 lt_prog_compiler_pic
=
7753 lt_prog_compiler_can_build_shared
=no
7758 # For platforms which do not support PIC, -DPIC is meaningless:
7760 lt_prog_compiler_pic
=
7763 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7768 # Check to make sure the static flag actually works.
7770 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7771 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7772 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7773 if test "${lt_prog_compiler_static_works+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 lt_prog_compiler_static_works
=no
7777 save_LDFLAGS
="$LDFLAGS"
7778 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7779 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7780 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7781 # The linker can only warn and ignore the option if not recognized
7782 # So say no if there are warnings
7783 if test -s conftest.err
; then
7784 # Append any errors to the config.log.
7785 cat conftest.err
1>&5
7786 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7787 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7788 if diff conftest.exp conftest.er2
>/dev
/null
; then
7789 lt_prog_compiler_static_works
=yes
7792 lt_prog_compiler_static_works
=yes
7796 LDFLAGS
="$save_LDFLAGS"
7799 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7800 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7802 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7805 lt_prog_compiler_static
=
7809 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7810 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7811 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 lt_cv_prog_compiler_c_o
=no
7815 $rm -r conftest
2>/dev
/null
7819 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7821 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7822 # Insert the option either (1) after the last *FLAGS variable, or
7823 # (2) before a word containing "conftest.", or (3) at the end.
7824 # Note that $ac_compile itself does not contain backslashes and begins
7825 # with a dollar sign (not a hyphen), so the echo should work correctly.
7826 lt_compile
=`echo "$ac_compile" | $SED \
7827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7829 -e 's:$: $lt_compiler_flag:'`
7830 (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
7831 (eval "$lt_compile" 2>out
/conftest.err
)
7833 cat out
/conftest.err
>&5
7834 echo "$as_me:7834: \$? = $ac_status" >&5
7835 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7837 # The compiler can only warn and ignore the option if not recognized
7838 # So say no if there are warnings
7839 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7840 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7841 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7842 lt_cv_prog_compiler_c_o
=yes
7847 # SGI C++ compiler will create directory out/ii_files/ for
7848 # template instantiation
7849 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7850 $rm out
/* && rmdir out
7856 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7857 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7860 hard_links
="nottested"
7861 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7862 # do not overwrite the value of need_locks provided by the user
7863 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7864 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7867 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7869 ln conftest.a conftest.b
2>&5 || hard_links
=no
7870 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7871 { echo "$as_me:$LINENO: result: $hard_links" >&5
7872 echo "${ECHO_T}$hard_links" >&6; }
7873 if test "$hard_links" = no
; then
7874 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7875 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7882 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7883 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7886 allow_undefined_flag
=
7887 enable_shared_with_static_runtimes
=no
7889 archive_expsym_cmds
=
7890 old_archive_From_new_cmds
=
7891 old_archive_from_expsyms_cmds
=
7892 export_dynamic_flag_spec
=
7893 whole_archive_flag_spec
=
7894 thread_safe_flag_spec
=
7895 hardcode_libdir_flag_spec
=
7896 hardcode_libdir_flag_spec_ld
=
7897 hardcode_libdir_separator
=
7900 hardcode_shlibpath_var
=unsupported
7901 link_all_deplibs
=unknown
7902 hardcode_automatic
=no
7905 always_export_symbols
=no
7906 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7907 # include_expsyms should be a list of space-separated symbols to be *always*
7908 # included in the symbol list
7910 # exclude_expsyms can be an extended regexp of symbols to exclude
7911 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7912 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7913 # as well as any symbol that contains `d'.
7914 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7915 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7916 # platforms (ab)use it in PIC code, but their linkers get confused if
7917 # the symbol is explicitly referenced. Since portable code cannot
7918 # rely on this symbol name, it's probably fine to never include it in
7919 # preloaded symbol tables.
7920 extract_expsyms_cmds
=
7921 # Just being paranoid about ensuring that cc_basename is set.
7922 for cc_temp
in $compiler""; do
7924 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7925 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7930 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7933 cygwin
* | mingw
* | pw32
*)
7934 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7935 # When not using gcc, we currently assume that we are using
7936 # Microsoft Visual C++.
7937 if test "$GCC" != yes; then
7942 # we just hope/assume this is gcc and not c89 (= MSVC++)
7951 if test "$with_gnu_ld" = yes; then
7952 # If archive_cmds runs LD, not CC, wlarc should be empty
7955 # Set some defaults for GNU ld with shared library support. These
7956 # are reset later if shared libraries are not supported. Putting them
7957 # here allows them to be overridden if necessary.
7958 runpath_var
=LD_RUN_PATH
7959 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7960 export_dynamic_flag_spec
='${wl}--export-dynamic'
7961 # ancient GNU ld didn't support --whole-archive et. al.
7962 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7963 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7965 whole_archive_flag_spec
=
7967 supports_anon_versioning
=no
7968 case `$LD -v 2>/dev/null` in
7969 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7970 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7971 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7972 *\
2.11.
*) ;; # other 2.11 versions
7973 *) supports_anon_versioning
=yes ;;
7976 # See if GNU ld supports shared libraries.
7978 aix3
* | aix4
* | aix5
*)
7979 # On AIX/PPC, the GNU linker is very broken
7980 if test "$host_cpu" != ia64
; then
7984 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7985 *** to be unable to reliably create shared libraries on AIX.
7986 *** Therefore, libtool is disabling shared libraries support. If you
7987 *** really care for shared libraries, you may want to modify your PATH
7988 *** so that a non-GNU linker is found, and then restart.
7995 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)'
7996 hardcode_libdir_flag_spec
='-L$libdir'
7997 hardcode_minus_L
=yes
7999 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8000 # that the semantics of dynamic libraries on AmigaOS, at least up
8001 # to version 4, is to share data among multiple programs linked
8002 # with the same dynamic library. Since this doesn't match the
8003 # behavior of shared libraries on other platforms, we can't use
8009 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8010 allow_undefined_flag
=unsupported
8011 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8012 # support --undefined. This deserves some investigation. FIXME
8013 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8019 cygwin
* | mingw
* | pw32
*)
8020 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8021 # as there is no search path for DLLs.
8022 hardcode_libdir_flag_spec
='-L$libdir'
8023 allow_undefined_flag
=unsupported
8024 always_export_symbols
=no
8025 enable_shared_with_static_runtimes
=yes
8026 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8028 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
8029 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8030 # If the export-symbols file already is a .def file (1st line
8031 # is EXPORTS), use it as is; otherwise, prepend...
8032 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8033 cp $export_symbols $output_objdir/$soname.def;
8035 echo EXPORTS > $output_objdir/$soname.def;
8036 cat $export_symbols >> $output_objdir/$soname.def;
8038 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8046 hardcode_shlibpath_var
=no
8047 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8048 export_dynamic_flag_spec
='${wl}-E'
8049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8050 # Instead, shared libraries are loaded at an image base (0x10000000 by
8051 # default) and relocated if they conflict, which is a slow very memory
8052 # consuming and fragmenting process. To avoid this, we pick a random,
8053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8055 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8056 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'
8059 gnu
* | linux
* | k
*bsd
*-gnu)
8060 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8062 case $cc_basename,$host_cpu in
8063 pgcc
*) # Portland Group C compiler
8064 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'
8065 tmp_addflag
=' $pic_flag'
8067 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8068 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'
8069 tmp_addflag
=' $pic_flag -Mnomain' ;;
8070 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8071 tmp_addflag
=' -i_dynamic' ;;
8072 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8073 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8074 ifc
* | ifort
*) # Intel Fortran compiler
8075 tmp_addflag
=' -nofor_main' ;;
8077 case `$CC -V 2>&1 | sed 5q` in
8078 *Sun\ C
*) # Sun C 5.9
8079 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8080 tmp_sharedflag
='-G' ;;
8081 *Sun\ F
*) # Sun Fortran 8.3
8082 tmp_sharedflag
='-G' ;;
8084 tmp_sharedflag
='-shared' ;;
8086 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8088 if test $supports_anon_versioning = yes; then
8089 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
8090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8091 $echo "local: *; };" >> $output_objdir/$libname.ver~
8092 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8100 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8101 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8104 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8105 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8110 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
8114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8115 *** create shared libraries on Solaris systems. Therefore, libtool
8116 *** is disabling shared libraries support. We urge you to upgrade GNU
8117 *** binutils to release 2.9.1 or newer. Another option is to modify
8118 *** your PATH or compiler configuration so that the native linker is
8119 *** used, and then restart.
8122 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8123 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8124 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8130 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8131 case `$LD -v 2>&1` in
8132 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8136 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8137 *** reliably create shared libraries on SCO systems. Therefore, libtool
8138 *** is disabling shared libraries support. We urge you to upgrade GNU
8139 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8140 *** your PATH or compiler configuration so that the native linker is
8141 *** used, and then restart.
8146 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8147 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8148 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8149 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8158 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8161 hardcode_shlibpath_var
=no
8165 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8166 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8167 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8174 if test "$ld_shlibs" = no
; then
8176 hardcode_libdir_flag_spec
=
8177 export_dynamic_flag_spec
=
8178 whole_archive_flag_spec
=
8181 # PORTME fill in a description of your system's linker (not GNU ld)
8184 allow_undefined_flag
=unsupported
8185 always_export_symbols
=yes
8186 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'
8187 # Note: this linker hardcodes the directories in LIBPATH if there
8188 # are no directories specified by -L.
8189 hardcode_minus_L
=yes
8190 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8191 # Neither direct hardcoding nor static linking is supported with a
8193 hardcode_direct
=unsupported
8198 if test "$host_cpu" = ia64
; then
8199 # On IA64, the linker does run time linking by default, so we don't
8200 # have to do anything special.
8201 aix_use_runtimelinking
=no
8202 exp_sym_flag
='-Bexport'
8205 # If we're using GNU nm, then we don't want the "-C" option.
8206 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8207 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
8208 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'
8210 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'
8212 aix_use_runtimelinking
=no
8214 # Test if we are trying to use run time linking or normal
8215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8216 # need to do runtime linking.
8217 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
8218 for ld_flag
in $LDFLAGS; do
8219 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8220 aix_use_runtimelinking
=yes
8227 exp_sym_flag
='-bexport'
8228 no_entry_flag
='-bnoentry'
8231 # When large executables or shared objects are built, AIX ld can
8232 # have problems creating the table of contents. If linking a library
8233 # or program results in "error TOC overflow" add -mminimal-toc to
8234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8239 hardcode_libdir_separator
=':'
8240 link_all_deplibs
=yes
8242 if test "$GCC" = yes; then
8243 case $host_os in aix4.
[012]|aix4.
[012].
*)
8244 # We only want to do this on AIX 4.2 and lower, the check
8245 # below for broken collect2 doesn't work under 4.3+
8246 collect2name
=`${CC} -print-prog-name=collect2`
8247 if test -f "$collect2name" && \
8248 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
8250 # We have reworked collect2
8253 # We have old collect2
8254 hardcode_direct
=unsupported
8255 # It fails to find uninstalled libraries when the uninstalled
8256 # path is not listed in the libpath. Setting hardcode_minus_L
8257 # to unsupported forces relinking
8258 hardcode_minus_L
=yes
8259 hardcode_libdir_flag_spec
='-L$libdir'
8260 hardcode_libdir_separator
=
8264 shared_flag
='-shared'
8265 if test "$aix_use_runtimelinking" = yes; then
8266 shared_flag
="$shared_flag "'${wl}-G'
8270 if test "$host_cpu" = ia64
; then
8271 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8272 # chokes on -Wl,-G. The following line is correct:
8275 if test "$aix_use_runtimelinking" = yes; then
8276 shared_flag
='${wl}-G'
8278 shared_flag
='${wl}-bM:SRE'
8283 # It seems that -bexpall does not export symbols beginning with
8284 # underscore (_), so it is better to generate a list of symbols to export.
8285 always_export_symbols
=yes
8286 if test "$aix_use_runtimelinking" = yes; then
8287 # Warning - without using the other runtime loading flags (-brtl),
8288 # -berok will link without error, but may produce a broken library.
8289 allow_undefined_flag
='-berok'
8290 # Determine the default libpath from the value encoded in an empty executable.
8291 cat >conftest.
$ac_ext <<_ACEOF
8294 cat confdefs.h
>>conftest.
$ac_ext
8295 cat >>conftest.
$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8306 rm -f conftest.
$ac_objext conftest
$ac_exeext
8307 if { (ac_try
="$ac_link"
8309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_link") 2>conftest.er1
8315 grep -v '^ *+' conftest.er1 >conftest.err
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && {
8320 test -z "$ac_c_werror_flag" ||
8321 test ! -s conftest.err
8322 } && test -s conftest$ac_exeext &&
8323 $as_test_x conftest$ac_exeext; then
8325 lt_aix_libpath_sed='
8326 /Import File Strings/,/^$/ {
8332 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8333 # Check for a 64-bit object if we didn't find anything.
8334 if test -z "$aix_libpath"; then
8335 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8345 conftest$ac_exeext conftest.$ac_ext
8346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8348 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8349 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"
8351 if test "$host_cpu" = ia64; then
8352 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8353 allow_undefined_flag="-z nodefs"
8354 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"
8356 # Determine the default libpath from the value encoded in an empty executable.
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (ac_try="$ac_link"
8375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8376 *) ac_try_echo
=$ac_try;;
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_link") 2>conftest.er1
8381 grep -v '^ *+' conftest.er1
>conftest.err
8383 cat conftest.err
>&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && {
8386 test -z "$ac_c_werror_flag" ||
8387 test ! -s conftest.err
8388 } && test -s conftest
$ac_exeext &&
8389 $as_test_x conftest
$ac_exeext; then
8391 lt_aix_libpath_sed
='
8392 /Import File Strings/,/^$/ {
8398 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399 # Check for a 64-bit object if we didn't find anything.
8400 if test -z "$aix_libpath"; then
8401 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.
$ac_ext >&5
8410 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8411 conftest
$ac_exeext conftest.
$ac_ext
8412 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8414 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8415 # Warning - without using the other run time loading flags,
8416 # -berok will link without error, but may produce a broken library.
8417 no_undefined_flag
=' ${wl}-bernotok'
8418 allow_undefined_flag
=' ${wl}-berok'
8419 # Exported symbols can be pulled into shared objects from archives
8420 whole_archive_flag_spec
='$convenience'
8421 archive_cmds_need_lc
=yes
8422 # This is similar to how AIX traditionally builds its shared libraries.
8423 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'
8429 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)'
8430 hardcode_libdir_flag_spec
='-L$libdir'
8431 hardcode_minus_L
=yes
8432 # see comment about different semantics on the GNU ld section
8437 export_dynamic_flag_spec
=-rdynamic
8440 cygwin
* | mingw
* | pw32
*)
8441 # When not using gcc, we currently assume that we are using
8442 # Microsoft Visual C++.
8443 # hardcode_libdir_flag_spec is actually meaningless, as there is
8444 # no search path for DLLs.
8445 hardcode_libdir_flag_spec
=' '
8446 allow_undefined_flag
=unsupported
8447 # Tell ltmain to make .lib files, not .a files.
8449 # Tell ltmain to make .dll files, not .so files.
8451 # FIXME: Setting linknames here is a bad hack.
8452 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8453 # The linker will automatically build a .lib file if we build a DLL.
8454 old_archive_From_new_cmds
='true'
8455 # FIXME: Should let the user specify the lib program.
8456 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8457 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8458 enable_shared_with_static_runtimes
=yes
8461 darwin
* | rhapsody
*)
8463 rhapsody
* | darwin1.
[012])
8464 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8467 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8468 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8470 case ${MACOSX_DEPLOYMENT_TARGET} in
8472 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8475 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8481 archive_cmds_need_lc
=no
8483 hardcode_automatic
=yes
8484 hardcode_shlibpath_var
=unsupported
8485 whole_archive_flag_spec
=''
8486 link_all_deplibs
=yes
8487 if test "$GCC" = yes ; then
8488 output_verbose_link_cmd
='echo'
8489 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8490 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8491 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8492 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}'
8493 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}'
8495 case $cc_basename in
8497 output_verbose_link_cmd
='echo'
8498 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8499 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8501 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8502 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}'
8512 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8513 hardcode_libdir_flag_spec
='-L$libdir'
8514 hardcode_shlibpath_var
=no
8521 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8522 # support. Future versions do this automatically, but an explicit c++rt0.o
8523 # does not break anything, and helps significantly (at the cost of a little
8526 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8527 hardcode_libdir_flag_spec
='-R$libdir'
8529 hardcode_shlibpath_var
=no
8532 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8534 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8536 hardcode_minus_L
=yes
8537 hardcode_shlibpath_var
=no
8540 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8541 freebsd
* | dragonfly
*)
8542 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8543 hardcode_libdir_flag_spec
='-R$libdir'
8545 hardcode_shlibpath_var
=no
8549 if test "$GCC" = yes; then
8550 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'
8552 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'
8554 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8555 hardcode_libdir_separator
=:
8558 # hardcode_minus_L: Not really in the search PATH,
8559 # but as the default location of the library.
8560 hardcode_minus_L
=yes
8561 export_dynamic_flag_spec
='${wl}-E'
8565 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8566 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8568 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8570 if test "$with_gnu_ld" = no
; then
8571 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8572 hardcode_libdir_separator
=:
8575 export_dynamic_flag_spec
='${wl}-E'
8577 # hardcode_minus_L: Not really in the search PATH,
8578 # but as the default location of the library.
8579 hardcode_minus_L
=yes
8584 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8587 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8590 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8593 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8599 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8602 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8605 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8609 if test "$with_gnu_ld" = no
; then
8610 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8611 hardcode_libdir_separator
=:
8615 hardcode_libdir_flag_spec_ld
='+b $libdir'
8617 hardcode_shlibpath_var
=no
8621 export_dynamic_flag_spec
='${wl}-E'
8623 # hardcode_minus_L: Not really in the search PATH,
8624 # but as the default location of the library.
8625 hardcode_minus_L
=yes
8631 irix5
* | irix6
* | nonstopux
*)
8632 if test "$GCC" = yes; then
8633 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'
8635 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'
8636 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8638 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8639 hardcode_libdir_separator
=:
8640 link_all_deplibs
=yes
8644 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8645 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8647 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8649 hardcode_libdir_flag_spec
='-R$libdir'
8651 hardcode_shlibpath_var
=no
8655 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8657 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8658 hardcode_libdir_separator
=:
8659 hardcode_shlibpath_var
=no
8663 if test -f /usr
/libexec
/ld.so
; then
8665 hardcode_shlibpath_var
=no
8666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8667 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8668 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8669 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8670 export_dynamic_flag_spec
='${wl}-E'
8673 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8674 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8675 hardcode_libdir_flag_spec
='-R$libdir'
8678 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8679 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8689 hardcode_libdir_flag_spec
='-L$libdir'
8690 hardcode_minus_L
=yes
8691 allow_undefined_flag
=unsupported
8692 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'
8693 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8697 if test "$GCC" = yes; then
8698 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8699 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'
8701 allow_undefined_flag
=' -expect_unresolved \*'
8702 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'
8704 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8705 hardcode_libdir_separator
=:
8708 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8709 if test "$GCC" = yes; then
8710 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8711 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'
8712 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8714 allow_undefined_flag
=' -expect_unresolved \*'
8715 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'
8716 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8717 $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'
8719 # Both c and cxx compiler support -rpath directly
8720 hardcode_libdir_flag_spec
='-rpath $libdir'
8722 hardcode_libdir_separator
=:
8726 no_undefined_flag
=' -z text'
8727 if test "$GCC" = yes; then
8729 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8731 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8734 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8735 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8736 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8738 hardcode_libdir_flag_spec
='-R$libdir'
8739 hardcode_shlibpath_var
=no
8741 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8743 # The compiler driver will combine and reorder linker options,
8744 # but understands `-z linker_flag'. GCC discards it without `$wl',
8745 # but is careful enough not to reorder.
8746 # Supported since Solaris 2.6 (maybe 2.5.1?)
8747 if test "$GCC" = yes; then
8748 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8750 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8754 link_all_deplibs
=yes
8758 if test "x$host_vendor" = xsequent
; then
8759 # Use $CC to link under sequent, because it throws in some extra .o
8760 # files that make .init and .fini sections work.
8761 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8763 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8765 hardcode_libdir_flag_spec
='-L$libdir'
8767 hardcode_minus_L
=yes
8768 hardcode_shlibpath_var
=no
8772 case $host_vendor in
8774 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775 hardcode_direct
=yes # is this really true???
8778 ## LD is ld it makes a PLAMLIB
8779 ## CC just makes a GrossModule.
8780 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8781 reload_cmds
='$CC -r -o $output$reload_objs'
8785 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8789 runpath_var
='LD_RUN_PATH'
8790 hardcode_shlibpath_var
=no
8794 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_shlibpath_var
=no
8796 export_dynamic_flag_spec
='-Bexport'
8800 if test -d /usr
/nec
; then
8801 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802 hardcode_shlibpath_var
=no
8803 runpath_var
=LD_RUN_PATH
8804 hardcode_runpath_var
=yes
8809 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8810 no_undefined_flag
='${wl}-z,text'
8811 archive_cmds_need_lc
=no
8812 hardcode_shlibpath_var
=no
8813 runpath_var
='LD_RUN_PATH'
8815 if test "$GCC" = yes; then
8816 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8819 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8820 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824 sysv5
* | sco3.2v5
* | sco5v6
*)
8825 # Note: We can NOT use -z defs as we might desire, because we do not
8826 # link with -lc, and that would cause any symbols used from libc to
8827 # always be unresolved, which means just about no library would
8828 # ever link correctly. If we're not using GNU ld we use -z text
8829 # though, which does catch some bad symbols but isn't as heavy-handed
8831 no_undefined_flag
='${wl}-z,text'
8832 allow_undefined_flag
='${wl}-z,nodefs'
8833 archive_cmds_need_lc
=no
8834 hardcode_shlibpath_var
=no
8835 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8836 hardcode_libdir_separator
=':'
8837 link_all_deplibs
=yes
8838 export_dynamic_flag_spec
='${wl}-Bexport'
8839 runpath_var
='LD_RUN_PATH'
8841 if test "$GCC" = yes; then
8842 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8845 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8846 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8852 hardcode_libdir_flag_spec
='-L$libdir'
8853 hardcode_shlibpath_var
=no
8862 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8863 echo "${ECHO_T}$ld_shlibs" >&6; }
8864 test "$ld_shlibs" = no
&& can_build_shared
=no
8867 # Do we need to explicitly link libc?
8869 case "x$archive_cmds_need_lc" in
8871 # Assume -lc should be added
8872 archive_cmds_need_lc
=yes
8874 if test "$enable_shared" = yes && test "$GCC" = yes; then
8875 case $archive_cmds in
8877 # FIXME: we may have to deal with multi-command sequences.
8880 # Test whether the compiler implicitly links with -lc since on some
8881 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8882 # to ld, don't add -lc before -lgcc.
8883 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8884 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8886 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8889 (eval $ac_compile) 2>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } 2>conftest.err
; then
8895 libobjs
=conftest.
$ac_objext
8897 wl
=$lt_prog_compiler_wl
8898 pic_flag
=$lt_prog_compiler_pic
8904 lt_save_allow_undefined_flag
=$allow_undefined_flag
8905 allow_undefined_flag
=
8906 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8907 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }
8912 archive_cmds_need_lc
=no
8914 archive_cmds_need_lc
=yes
8916 allow_undefined_flag
=$lt_save_allow_undefined_flag
8918 cat conftest.err
1>&5
8921 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8922 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8929 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8930 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8932 libname_spec
='lib$name'
8940 shlibpath_overrides_runpath
=unknown
8942 dynamic_linker
="$host_os ld.so"
8943 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8945 if test "$GCC" = yes; then
8947 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
8948 *) lt_awk_arg
="/^libraries:/" ;;
8950 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8951 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
8952 # if the path contains ";" then we assume it to be the separator
8953 # otherwise default to the standard path separator (i.e. ":") - it is
8954 # assumed that no part of a normal pathname contains ";" but that should
8955 # okay in the real world where ";" in dirpaths is itself problematic.
8956 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8958 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8960 # Ok, now we have the path, separated by spaces, we can step through it
8961 # and add multilib dir if necessary.
8962 lt_tmp_lt_search_path_spec
=
8963 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8964 for lt_sys_path
in $lt_search_path_spec; do
8965 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8966 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8968 test -d "$lt_sys_path" && \
8969 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
8972 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
8973 BEGIN {RS=" "; FS="/|\n";} {
8976 for (lt_i = NF; lt_i > 0; lt_i--) {
8977 if ($lt_i != "" && $lt_i != ".") {
8978 if ($lt_i == "..") {
8981 if (lt_count == 0) {
8982 lt_foo="/" $lt_i lt_foo;
8989 if (lt_foo != "") { lt_freq[lt_foo]++; }
8990 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8992 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
8994 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8996 need_lib_prefix
=unknown
8997 hardcode_into_libs
=no
8999 # when you set need_version to no, make sure it does not cause -set_version
9000 # flags to be left without arguments
9001 need_version
=unknown
9006 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9007 shlibpath_var
=LIBPATH
9009 # AIX 3 has no versioning support, so we append a major version to the name.
9010 soname_spec
='${libname}${release}${shared_ext}$major'
9017 hardcode_into_libs
=yes
9018 if test "$host_cpu" = ia64
; then
9019 # AIX 5 supports IA64
9020 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9021 shlibpath_var
=LD_LIBRARY_PATH
9023 # With GCC up to 2.95.x, collect2 would create an import file
9024 # for dependence libraries. The import file would start with
9025 # the line `#! .'. This would cause the generated library to
9026 # depend on `.', always an invalid library. This was fixed in
9027 # development snapshots of GCC prior to 3.0.
9029 aix4 | aix4.
[01] | aix4.
[01].
*)
9030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9032 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9039 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9040 # soname into executable. Probably we can add versioning support to
9041 # collect2, so additional links can be useful in future.
9042 if test "$aix_use_runtimelinking" = yes; then
9043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9044 # instead of lib<name>.a to let people know that these are not
9045 # typical AIX shared libraries.
9046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 # We preserve .a as extension for shared libraries through AIX4.2
9049 # and later when we are not doing run time linking.
9050 library_names_spec
='${libname}${release}.a $libname.a'
9051 soname_spec
='${libname}${release}${shared_ext}$major'
9053 shlibpath_var
=LIBPATH
9058 library_names_spec
='$libname.ixlibrary $libname.a'
9059 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9060 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'
9064 library_names_spec
='${libname}${shared_ext}'
9065 dynamic_linker
="$host_os ld.so"
9066 shlibpath_var
=LIBRARY_PATH
9072 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec
='${libname}${release}${shared_ext}$major'
9074 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9075 shlibpath_var
=LD_LIBRARY_PATH
9076 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9077 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9078 # the default ld.so.conf also contains /usr/contrib/lib and
9079 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9080 # libtool to hard-code these into programs
9083 cygwin
* | mingw
* | pw32
*)
9084 version_type
=windows
9089 case $GCC,$host_os in
9090 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9091 library_names_spec
='$libname.dll.a'
9092 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9093 postinstall_cmds
='base_file=`basename \${file}`~
9094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9095 dldir=$destdir/`dirname \$dlpath`~
9096 test -d \$dldir || mkdir -p \$dldir~
9097 $install_prog $dir/$dlname \$dldir/$dlname~
9098 chmod a+x \$dldir/$dlname'
9099 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9100 dlpath=$dir/\$dldll~
9102 shlibpath_overrides_runpath
=yes
9106 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9107 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9108 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9111 # MinGW DLLs use traditional 'lib' prefix
9112 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9113 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9114 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9115 # It is most probably a Windows format PATH printed by
9116 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9117 # path with ; separators, and with drive letters. We can handle the
9118 # drive letters (cygwin fileutils understands them), so leave them,
9119 # especially as we might pass files found there to a mingw objdump,
9120 # which wouldn't understand a cygwinified path. Ahh.
9121 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9123 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9127 # pw32 DLLs use 'pw' prefix rather than 'lib'
9128 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9134 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9137 dynamic_linker
='Win32 ld.exe'
9138 # FIXME: first we should search . and the directory the executable is in
9142 darwin
* | rhapsody
*)
9143 dynamic_linker
="$host_os dyld"
9147 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9148 soname_spec
='${libname}${release}${major}$shared_ext'
9149 shlibpath_overrides_runpath
=yes
9150 shlibpath_var
=DYLD_LIBRARY_PATH
9151 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9153 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9154 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9162 soname_spec
='${libname}${release}${shared_ext}$major'
9163 shlibpath_var
=LD_LIBRARY_PATH
9170 freebsd
* | dragonfly
*)
9171 # DragonFly does not have aout. When/if they implement a new
9172 # versioning mechanism, adjust this.
9173 if test -x /usr
/bin
/objformat
; then
9174 objformat
=`/usr/bin/objformat`
9177 freebsd
[123]*) objformat
=aout
;;
9181 version_type
=freebsd-
$objformat
9182 case $version_type in
9184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9189 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9193 shlibpath_var
=LD_LIBRARY_PATH
9196 shlibpath_overrides_runpath
=yes
9198 freebsd3.
[01]* | freebsdelf3.
[01]*)
9199 shlibpath_overrides_runpath
=yes
9200 hardcode_into_libs
=yes
9202 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9203 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9204 shlibpath_overrides_runpath
=no
9205 hardcode_into_libs
=yes
9207 *) # from 4.6 on, and DragonFly
9208 shlibpath_overrides_runpath
=yes
9209 hardcode_into_libs
=yes
9218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9219 soname_spec
='${libname}${release}${shared_ext}$major'
9220 shlibpath_var
=LD_LIBRARY_PATH
9221 hardcode_into_libs
=yes
9224 hpux9
* | hpux10
* | hpux11
*)
9225 # Give a soname corresponding to the major version so that dld.sl refuses to
9226 # link against other versions.
9233 hardcode_into_libs
=yes
9234 dynamic_linker
="$host_os dld.so"
9235 shlibpath_var
=LD_LIBRARY_PATH
9236 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 soname_spec
='${libname}${release}${shared_ext}$major'
9239 if test "X$HPUX_IA64_MODE" = X32
; then
9240 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9242 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9244 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9248 hardcode_into_libs
=yes
9249 dynamic_linker
="$host_os dld.sl"
9250 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9251 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec
='${libname}${release}${shared_ext}$major'
9254 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9255 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9259 dynamic_linker
="$host_os dld.sl"
9260 shlibpath_var
=SHLIB_PATH
9261 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9263 soname_spec
='${libname}${release}${shared_ext}$major'
9266 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9267 postinstall_cmds
='chmod 555 $lib'
9274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9275 soname_spec
='${libname}${release}${shared_ext}$major'
9276 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9277 shlibpath_var
=LD_LIBRARY_PATH
9278 shlibpath_overrides_runpath
=no
9279 hardcode_into_libs
=yes
9282 irix5
* | irix6
* | nonstopux
*)
9284 nonstopux
*) version_type
=nonstopux
;;
9286 if test "$lt_cv_prog_gnu_ld" = yes; then
9294 soname_spec
='${libname}${release}${shared_ext}$major'
9295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9297 irix5
* | nonstopux
*)
9301 case $LD in # libtool.m4 will add one of these switches to LD
9302 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9303 libsuff
= shlibsuff
= libmagic
=32-bit;;
9304 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9305 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9306 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9307 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9308 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9312 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9313 shlibpath_overrides_runpath
=no
9314 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9315 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9316 hardcode_into_libs
=yes
9319 # No shared lib support for Linux oldld, aout, or coff.
9320 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9324 # This must be Linux ELF.
9325 linux
* | k
*bsd
*-gnu)
9329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 soname_spec
='${libname}${release}${shared_ext}$major'
9331 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9332 shlibpath_var
=LD_LIBRARY_PATH
9333 shlibpath_overrides_runpath
=no
9334 # This implies no fast_install, which is unacceptable.
9335 # Some rework will be needed to allow for fast_install
9336 # before this can be enabled.
9337 hardcode_into_libs
=yes
9338 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9339 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9341 # Append ld.so.conf contents to the search path
9342 if test -f /etc
/ld.so.conf
; then
9343 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9344 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9347 # We used to test for /lib/ld.so.1 and disable shared libraries on
9348 # powerpc, because MkLinux only supported shared libraries with the
9349 # GNU dynamic linker. Since this was broken with cross compilers,
9350 # most powerpc-linux boxes support dynamic linking these days and
9351 # people can always --disable-shared, the test was removed, and we
9352 # assume the GNU/Linux dynamic linker is in use.
9353 dynamic_linker
='GNU/Linux ld.so'
9360 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9362 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9363 dynamic_linker
='NetBSD (a.out) ld.so'
9365 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9366 soname_spec
='${libname}${release}${shared_ext}$major'
9367 dynamic_linker
='NetBSD ld.elf_so'
9369 shlibpath_var
=LD_LIBRARY_PATH
9370 shlibpath_overrides_runpath
=yes
9371 hardcode_into_libs
=yes
9376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 shlibpath_var
=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath
=yes
9385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386 soname_spec
='${libname}${release}${shared_ext}$major'
9387 shlibpath_var
=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath
=yes
9393 sys_lib_dlsearch_path_spec
="/usr/lib"
9395 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9397 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9398 *) need_version
=no
;;
9400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9401 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9402 shlibpath_var
=LD_LIBRARY_PATH
9403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9405 openbsd2.
[89] | openbsd2.
[89].
*)
9406 shlibpath_overrides_runpath
=no
9409 shlibpath_overrides_runpath
=yes
9413 shlibpath_overrides_runpath
=yes
9418 libname_spec
='$name'
9421 library_names_spec
='$libname${shared_ext} $libname.a'
9422 dynamic_linker
='OS/2 ld.exe'
9423 shlibpath_var
=LIBPATH
9426 osf3
* | osf4
* | osf5
*)
9430 soname_spec
='${libname}${release}${shared_ext}$major'
9431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 shlibpath_var
=LD_LIBRARY_PATH
9433 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9434 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9445 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446 soname_spec
='${libname}${release}${shared_ext}$major'
9447 shlibpath_var
=LD_LIBRARY_PATH
9448 shlibpath_overrides_runpath
=yes
9449 hardcode_into_libs
=yes
9450 # ldd complains unless libraries are executable
9451 postinstall_cmds
='chmod +x $lib'
9456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9457 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9458 shlibpath_var
=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath
=yes
9460 if test "$with_gnu_ld" = yes; then
9468 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469 soname_spec
='${libname}${release}${shared_ext}$major'
9470 shlibpath_var
=LD_LIBRARY_PATH
9471 case $host_vendor in
9473 shlibpath_overrides_runpath
=no
9475 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9476 runpath_var
=LD_RUN_PATH
9484 shlibpath_overrides_runpath
=no
9485 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9491 if test -d /usr
/nec
;then
9493 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9494 soname_spec
='$libname${shared_ext}.$major'
9495 shlibpath_var
=LD_LIBRARY_PATH
9499 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9500 version_type
=freebsd-elf
9503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9504 soname_spec
='${libname}${release}${shared_ext}$major'
9505 shlibpath_var
=LD_LIBRARY_PATH
9506 hardcode_into_libs
=yes
9507 if test "$with_gnu_ld" = yes; then
9508 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9509 shlibpath_overrides_runpath
=no
9511 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9512 shlibpath_overrides_runpath
=yes
9515 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9519 sys_lib_dlsearch_path_spec
='/usr/lib'
9524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 soname_spec
='${libname}${release}${shared_ext}$major'
9526 shlibpath_var
=LD_LIBRARY_PATH
9533 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9534 echo "${ECHO_T}$dynamic_linker" >&6; }
9535 test "$dynamic_linker" = no
&& can_build_shared
=no
9537 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9538 if test "$GCC" = yes; then
9539 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9545 if test -n "$hardcode_libdir_flag_spec" || \
9546 test -n "$runpath_var" || \
9547 test "X$hardcode_automatic" = "Xyes" ; then
9549 # We can hardcode non-existent directories.
9550 if test "$hardcode_direct" != no
&&
9551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9552 # have to relink, otherwise we might link with an installed library
9553 # when we should be linking with a yet-to-be-installed one
9554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9555 test "$hardcode_minus_L" != no
; then
9556 # Linking always hardcodes the temporary library directory.
9557 hardcode_action
=relink
9559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9560 hardcode_action
=immediate
9563 # We cannot hardcode anything, or else we can only hardcode existing
9565 hardcode_action
=unsupported
9567 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9568 echo "${ECHO_T}$hardcode_action" >&6; }
9570 if test "$hardcode_action" = relink
; then
9571 # Fast installation is not supported
9572 enable_fast_install
=no
9573 elif test "$shlibpath_overrides_runpath" = yes ||
9574 test "$enable_shared" = no
; then
9575 # Fast installation is not necessary
9576 enable_fast_install
=needless
9581 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9582 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9583 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9584 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9585 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9586 { echo "$as_me:$LINENO: result: yes" >&5
9587 echo "${ECHO_T}yes" >&6; }
9589 # FIXME - insert some real tests, host_os isn't really good enough
9592 if test -n "$STRIP" ; then
9593 striplib
="$STRIP -x"
9594 old_striplib
="$STRIP -S"
9595 { echo "$as_me:$LINENO: result: yes" >&5
9596 echo "${ECHO_T}yes" >&6; }
9598 { echo "$as_me:$LINENO: result: no" >&5
9599 echo "${ECHO_T}no" >&6; }
9603 { echo "$as_me:$LINENO: result: no" >&5
9604 echo "${ECHO_T}no" >&6; }
9609 if test "x$enable_dlopen" != xyes
; then
9610 enable_dlopen
=unknown
9611 enable_dlopen_self
=unknown
9612 enable_dlopen_self_static
=unknown
9619 lt_cv_dlopen
="load_add_on"
9621 lt_cv_dlopen_self
=yes
9625 lt_cv_dlopen
="LoadLibrary"
9630 lt_cv_dlopen
="dlopen"
9635 # if libdl is installed we need to link against it
9636 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9637 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 ac_check_lib_save_LIBS
=$LIBS
9643 cat >conftest.
$ac_ext <<_ACEOF
9646 cat confdefs.h
>>conftest.
$ac_ext
9647 cat >>conftest.
$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9650 /* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
9665 rm -f conftest.
$ac_objext conftest
$ac_exeext
9666 if { (ac_try
="$ac_link"
9668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_link") 2>conftest.er1
9674 grep -v '^ *+' conftest.er1 >conftest.err
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest$ac_exeext &&
9682 $as_test_x conftest$ac_exeext; then
9683 ac_cv_lib_dl_dlopen=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_cv_lib_dl_dlopen=no
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692 conftest$ac_exeext conftest.$ac_ext
9693 LIBS=$ac_check_lib_save_LIBS
9695 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9696 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9697 if test $ac_cv_lib_dl_dlopen = yes; then
9698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9703 lt_cv_dlopen_self=yes
9710 { echo "$as_me:$LINENO: checking for shl_load" >&5
9711 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9712 if test "${ac_cv_func_shl_load+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define shl_load innocuous_shl_load
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char shl_load (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9731 # include <limits.h>
9733 # include <assert.h>
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined __stub_shl_load || defined __stub___shl_load
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9764 *) ac_try_echo
=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>conftest.er1
9769 grep -v '^ *+' conftest.er1
>conftest.err
9771 cat conftest.err
>&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest
$ac_exeext &&
9777 $as_test_x conftest
$ac_exeext; then
9778 ac_cv_func_shl_load
=yes
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.
$ac_ext >&5
9783 ac_cv_func_shl_load
=no
9786 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9787 conftest
$ac_exeext conftest.
$ac_ext
9789 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9790 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9791 if test $ac_cv_func_shl_load = yes; then
9792 lt_cv_dlopen
="shl_load"
9794 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9795 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9796 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 ac_check_lib_save_LIBS
=$LIBS
9801 cat >conftest.
$ac_ext <<_ACEOF
9804 cat confdefs.h
>>conftest.
$ac_ext
9805 cat >>conftest.
$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9808 /* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9823 rm -f conftest.
$ac_objext conftest
$ac_exeext
9824 if { (ac_try
="$ac_link"
9826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_link") 2>conftest.er1
9832 grep -v '^ *+' conftest.er1 >conftest.err
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } && {
9837 test -z "$ac_c_werror_flag" ||
9838 test ! -s conftest.err
9839 } && test -s conftest$ac_exeext &&
9840 $as_test_x conftest$ac_exeext; then
9841 ac_cv_lib_dld_shl_load=yes
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 ac_cv_lib_dld_shl_load=no
9849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9850 conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9853 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9854 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9855 if test $ac_cv_lib_dld_shl_load = yes; then
9856 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9858 { echo "$as_me:$LINENO: checking for dlopen" >&5
9859 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9860 if test "${ac_cv_func_dlopen+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 cat >conftest.$ac_ext <<_ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h. */
9869 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9871 #define dlopen innocuous_dlopen
9873 /* System header to define __stub macros and hopefully few prototypes,
9874 which can conflict with char dlopen (); below.
9875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9876 <limits.h> exists even on freestanding compilers. */
9879 # include <limits.h>
9881 # include <assert.h>
9886 /* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
9893 /* The GNU C library defines this for functions which it implements
9894 to always fail with ENOSYS. Some functions are actually named
9895 something starting with __ and the normal name is an alias. */
9896 #if defined __stub_dlopen || defined __stub___dlopen
9908 rm -f conftest.$ac_objext conftest$ac_exeext
9909 if { (ac_try="$ac_link"
9911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9912 *) ac_try_echo
=$ac_try;;
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_link") 2>conftest.er1
9917 grep -v '^ *+' conftest.er1
>conftest.err
9919 cat conftest.err
>&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } && {
9922 test -z "$ac_c_werror_flag" ||
9923 test ! -s conftest.err
9924 } && test -s conftest
$ac_exeext &&
9925 $as_test_x conftest
$ac_exeext; then
9926 ac_cv_func_dlopen
=yes
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.
$ac_ext >&5
9931 ac_cv_func_dlopen
=no
9934 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9935 conftest
$ac_exeext conftest.
$ac_ext
9937 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9938 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9939 if test $ac_cv_func_dlopen = yes; then
9940 lt_cv_dlopen
="dlopen"
9942 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 ac_check_lib_save_LIBS
=$LIBS
9949 cat >conftest.
$ac_ext <<_ACEOF
9952 cat confdefs.h
>>conftest.
$ac_ext
9953 cat >>conftest.
$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9956 /* Override any GCC internal prototype to avoid an error.
9957 Use char because int might match the return type of a GCC
9958 builtin and then its argument prototype would still apply. */
9971 rm -f conftest.
$ac_objext conftest
$ac_exeext
9972 if { (ac_try
="$ac_link"
9974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_link") 2>conftest.er1
9980 grep -v '^ *+' conftest.er1 >conftest.err
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } && {
9985 test -z "$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 } && test -s conftest$ac_exeext &&
9988 $as_test_x conftest$ac_exeext; then
9989 ac_cv_lib_dl_dlopen=yes
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_cv_lib_dl_dlopen=no
9997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9998 conftest$ac_exeext conftest.$ac_ext
9999 LIBS=$ac_check_lib_save_LIBS
10001 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10002 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10003 if test $ac_cv_lib_dl_dlopen = yes; then
10004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10006 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10007 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10008 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 ac_check_lib_save_LIBS=$LIBS
10012 LIBS="-lsvld $LIBS"
10013 cat >conftest.$ac_ext <<_ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (ac_try="$ac_link"
10037 case "(($ac_try" in
10038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10039 *) ac_try_echo
=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_link") 2>conftest.er1
10044 grep -v '^ *+' conftest.er1
>conftest.err
10046 cat conftest.err
>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest
$ac_exeext &&
10052 $as_test_x conftest
$ac_exeext; then
10053 ac_cv_lib_svld_dlopen
=yes
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.
$ac_ext >&5
10058 ac_cv_lib_svld_dlopen
=no
10061 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10062 conftest
$ac_exeext conftest.
$ac_ext
10063 LIBS
=$ac_check_lib_save_LIBS
10065 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10066 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10067 if test $ac_cv_lib_svld_dlopen = yes; then
10068 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10070 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10071 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10072 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 ac_check_lib_save_LIBS
=$LIBS
10077 cat >conftest.
$ac_ext <<_ACEOF
10080 cat confdefs.h
>>conftest.
$ac_ext
10081 cat >>conftest.
$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10084 /* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
10094 return dld_link ();
10099 rm -f conftest.
$ac_objext conftest
$ac_exeext
10100 if { (ac_try
="$ac_link"
10101 case "(($ac_try" in
10102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_link") 2>conftest.er1
10108 grep -v '^ *+' conftest.er1 >conftest.err
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } && {
10113 test -z "$ac_c_werror_flag" ||
10114 test ! -s conftest.err
10115 } && test -s conftest$ac_exeext &&
10116 $as_test_x conftest$ac_exeext; then
10117 ac_cv_lib_dld_dld_link=yes
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10122 ac_cv_lib_dld_dld_link=no
10125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10126 conftest$ac_exeext conftest.$ac_ext
10127 LIBS=$ac_check_lib_save_LIBS
10129 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10130 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10131 if test $ac_cv_lib_dld_dld_link = yes; then
10132 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10153 if test "x$lt_cv_dlopen" != xno; then
10159 case $lt_cv_dlopen in
10161 save_CPPFLAGS="$CPPFLAGS"
10162 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10164 save_LDFLAGS="$LDFLAGS"
10165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10168 LIBS="$lt_cv_dlopen_libs $LIBS"
10170 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10171 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10172 if test "${lt_cv_dlopen_self+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 if test "$cross_compiling" = yes; then :
10176 lt_cv_dlopen_self=cross
10178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10179 lt_status=$lt_dlunknown
10180 cat > conftest.$ac_ext <<EOF
10181 #line 10181 "configure"
10182 #include "confdefs.h"
10191 # define LT_DLGLOBAL RTLD_GLOBAL
10194 # define LT_DLGLOBAL DL_GLOBAL
10196 # define LT_DLGLOBAL 0
10200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10201 find out it does not work in some platform. */
10202 #ifndef LT_DLLAZY_OR_NOW
10204 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10207 # define LT_DLLAZY_OR_NOW DL_LAZY
10210 # define LT_DLLAZY_OR_NOW RTLD_NOW
10213 # define LT_DLLAZY_OR_NOW DL_NOW
10215 # define LT_DLLAZY_OR_NOW 0
10223 extern "C" void exit (int);
10226 void fnord() { int i=42;}
10229 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10230 int status = $lt_dlunknown;
10234 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10235 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10236 /* dlclose (self); */
10244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245 (eval $ac_link) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10249 (./conftest; exit; ) >&5 2>/dev/null
10251 case x$lt_status in
10252 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10253 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10254 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10257 # compilation failed
10258 lt_cv_dlopen_self=no
10265 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10266 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10268 if test "x$lt_cv_dlopen_self" = xyes; then
10269 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10270 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10271 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10272 if test "${lt_cv_dlopen_self_static+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 if test "$cross_compiling" = yes; then :
10276 lt_cv_dlopen_self_static=cross
10278 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10279 lt_status=$lt_dlunknown
10280 cat > conftest.$ac_ext <<EOF
10281 #line 10281 "configure"
10282 #include "confdefs.h"
10291 # define LT_DLGLOBAL RTLD_GLOBAL
10294 # define LT_DLGLOBAL DL_GLOBAL
10296 # define LT_DLGLOBAL 0
10300 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10301 find out it does not work in some platform. */
10302 #ifndef LT_DLLAZY_OR_NOW
10304 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10307 # define LT_DLLAZY_OR_NOW DL_LAZY
10310 # define LT_DLLAZY_OR_NOW RTLD_NOW
10313 # define LT_DLLAZY_OR_NOW DL_NOW
10315 # define LT_DLLAZY_OR_NOW 0
10323 extern "C" void exit (int);
10326 void fnord() { int i=42;}
10329 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10330 int status = $lt_dlunknown;
10334 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10335 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10336 /* dlclose (self); */
10344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345 (eval $ac_link) 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10349 (./conftest; exit; ) >&5 2>/dev/null
10351 case x$lt_status in
10352 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10353 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10354 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10357 # compilation failed
10358 lt_cv_dlopen_self_static=no
10365 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10366 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10369 CPPFLAGS="$save_CPPFLAGS"
10370 LDFLAGS="$save_LDFLAGS"
10375 case $lt_cv_dlopen_self in
10376 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10377 *) enable_dlopen_self=unknown ;;
10380 case $lt_cv_dlopen_self_static in
10381 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10382 *) enable_dlopen_self_static=unknown ;;
10387 # Report which library types will actually be built
10388 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10389 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10390 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10391 echo "${ECHO_T}$can_build_shared" >&6; }
10393 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10394 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10395 test "$can_build_shared" = "no" && enable_shared=no
10397 # On AIX, shared libraries and static libraries use the same namespace, and
10398 # are all built from PIC.
10401 test "$enable_shared" = yes && enable_static=no
10402 if test -n "$RANLIB"; then
10403 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10404 postinstall_cmds='$RANLIB $lib'
10409 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10410 test "$enable_shared" = yes && enable_static=no
10414 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10415 echo "${ECHO_T}$enable_shared" >&6; }
10417 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10418 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10419 # Make sure either enable_shared or enable_static is yes.
10420 test "$enable_shared" = yes || enable_static=yes
10421 { echo "$as_me:$LINENO: result: $enable_static" >&5
10422 echo "${ECHO_T}$enable_static" >&6; }
10424 # The else clause should only fire when bootstrapping the
10425 # libtool distribution, otherwise you forgot to ship ltmain.sh
10426 # with your package, and you will get complaints that there are
10427 # no rules to generate ltmain.sh.
10428 if test -f "$ltmain"; then
10429 # See if we are running on zsh, and set the options which allow our commands through
10430 # without removal of \ escapes.
10431 if test -n "${ZSH_VERSION+set}" ; then
10432 setopt NO_GLOB_SUBST
10434 # Now quote all the things that may contain metacharacters while being
10435 # careful not to overquote the AC_SUBSTed values. We take copies of the
10436 # variables and quote the copies for generation of the libtool script.
10437 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10439 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10440 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10441 deplibs_check_method reload_flag reload_cmds need_locks \
10442 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10443 lt_cv_sys_global_symbol_to_c_name_address \
10444 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10445 old_postinstall_cmds old_postuninstall_cmds \
10449 lt_prog_compiler_wl \
10450 lt_prog_compiler_pic \
10451 lt_prog_compiler_static \
10452 lt_prog_compiler_no_builtin_flag \
10453 export_dynamic_flag_spec \
10454 thread_safe_flag_spec \
10455 whole_archive_flag_spec \
10456 enable_shared_with_static_runtimes \
10458 old_archive_from_new_cmds \
10463 compiler_lib_search_path \
10465 archive_expsym_cmds \
10467 postuninstall_cmds \
10468 old_archive_from_expsyms_cmds \
10469 allow_undefined_flag \
10470 no_undefined_flag \
10471 export_symbols_cmds \
10472 hardcode_libdir_flag_spec \
10473 hardcode_libdir_flag_spec_ld \
10474 hardcode_libdir_separator \
10475 hardcode_automatic \
10477 module_expsym_cmds \
10478 lt_cv_prog_compiler_c_o \
10481 include_expsyms; do
10484 old_archive_cmds | \
10485 old_archive_from_new_cmds | \
10487 archive_expsym_cmds | \
10489 module_expsym_cmds | \
10490 old_archive_from_expsyms_cmds | \
10491 export_symbols_cmds | \
10492 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10493 postinstall_cmds | postuninstall_cmds | \
10494 old_postinstall_cmds | old_postuninstall_cmds | \
10495 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10496 # Double-quote double-evaled strings.
10497 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10500 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10506 *'\$0 --fallback-echo"')
10507 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10511 cfgfile="${ofile}T"
10512 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10514 { echo "$as_me:$LINENO: creating $ofile" >&5
10515 echo "$as_me: creating $ofile" >&6;}
10517 cat <<__EOF__ >> "$cfgfile"
10520 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10521 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10522 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10524 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10525 # Free Software Foundation, Inc.
10527 # This file is part of GNU Libtool:
10528 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10530 # This program is free software; you can redistribute it and/or modify
10531 # it under the terms of the GNU General Public License as published by
10532 # the Free Software Foundation; either version 2 of the License, or
10533 # (at your option) any later version.
10535 # This program is distributed in the hope that it will be useful, but
10536 # WITHOUT ANY WARRANTY; without even the implied warranty of
10537 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10538 # General Public License for more details.
10540 # You should have received a copy of the GNU General Public License
10541 # along with this program; if not, write to the Free Software
10542 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10544 # As a special exception to the GNU General Public License, if you
10545 # distribute this file as part of a program that contains a
10546 # configuration script generated by Autoconf, you may include it under
10547 # the same distribution terms that you use for the rest of that program.
10549 # A sed program that does not truncate output.
10552 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10553 Xsed="$SED -e 1s/^X//"
10555 # The HP-UX ksh and POSIX shell print the target directory to stdout
10556 # if CDPATH is set.
10557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10559 # The names of the tagged configurations supported by this script.
10562 # ### BEGIN LIBTOOL CONFIG
10564 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10566 # Shell to use when invoking shell scripts.
10569 # Whether or not to build shared libraries.
10570 build_libtool_libs=$enable_shared
10572 # Whether or not to build static libraries.
10573 build_old_libs=$enable_static
10575 # Whether or not to add -lc for building shared libraries.
10576 build_libtool_need_lc=$archive_cmds_need_lc
10578 # Whether or not to disallow shared libs when runtime libs are static
10579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10581 # Whether or not to optimize for fast installation.
10582 fast_install=$enable_fast_install
10585 host_alias=$host_alias
10589 # The build system.
10590 build_alias=$build_alias
10594 # An echo program that does not interpret backslashes.
10599 AR_FLAGS=$lt_AR_FLAGS
10604 # LTCC compiler flags.
10605 LTCFLAGS=$lt_LTCFLAGS
10607 # A language-specific compiler.
10610 # Is the compiler the GNU C compiler?
10616 # The linker used to build libraries.
10619 # Whether we need hard or soft links.
10622 # A BSD-compatible nm program.
10625 # A symbol stripping program
10628 # Used to examine libraries when file_magic_cmd begins "file"
10629 MAGIC_CMD=$MAGIC_CMD
10631 # Used on cygwin: DLL creation program.
10634 # Used on cygwin: object dumper.
10637 # Used on cygwin: assembler.
10640 # The name of the directory that contains temporary libtool files.
10643 # How to create reloadable object files.
10644 reload_flag=$lt_reload_flag
10645 reload_cmds=$lt_reload_cmds
10647 # How to pass a linker flag through the compiler.
10648 wl=$lt_lt_prog_compiler_wl
10650 # Object file suffix (normally "o").
10651 objext="$ac_objext"
10653 # Old archive suffix (normally "a").
10656 # Shared library suffix (normally ".so").
10657 shrext_cmds='$shrext_cmds'
10659 # Executable file suffix (normally "").
10662 # Additional compiler flags for building library objects.
10663 pic_flag=$lt_lt_prog_compiler_pic
10666 # What is the maximum length of a command?
10667 max_cmd_len=$lt_cv_sys_max_cmd_len
10669 # Does compiler simultaneously support -c and -o options?
10670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10672 # Must we lock files when doing compilation?
10673 need_locks=$lt_need_locks
10675 # Do we need the lib prefix for modules?
10676 need_lib_prefix=$need_lib_prefix
10678 # Do we need a version for libraries?
10679 need_version=$need_version
10681 # Whether dlopen is supported.
10682 dlopen_support=$enable_dlopen
10684 # Whether dlopen of programs is supported.
10685 dlopen_self=$enable_dlopen_self
10687 # Whether dlopen of statically linked programs is supported.
10688 dlopen_self_static=$enable_dlopen_self_static
10690 # Compiler flag to prevent dynamic linking.
10691 link_static_flag=$lt_lt_prog_compiler_static
10693 # Compiler flag to turn off builtin functions.
10694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10696 # Compiler flag to allow reflexive dlopens.
10697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10699 # Compiler flag to generate shared objects directly from archives.
10700 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10702 # Compiler flag to generate thread-safe objects.
10703 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10705 # Library versioning type.
10706 version_type=$version_type
10708 # Format of library name prefix.
10709 libname_spec=$lt_libname_spec
10711 # List of archive names. First name is the real one, the rest are links.
10712 # The last name is the one that the linker finds with -lNAME.
10713 library_names_spec=$lt_library_names_spec
10715 # The coded name of the library, if different from the real name.
10716 soname_spec=$lt_soname_spec
10718 # Commands used to build and install an old-style archive.
10720 old_archive_cmds=$lt_old_archive_cmds
10721 old_postinstall_cmds=$lt_old_postinstall_cmds
10722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10724 # Create an old-style archive from a shared archive.
10725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10727 # Create a temporary old-style archive to link instead of a shared archive.
10728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10730 # Commands used to build and install a shared archive.
10731 archive_cmds=$lt_archive_cmds
10732 archive_expsym_cmds=$lt_archive_expsym_cmds
10733 postinstall_cmds=$lt_postinstall_cmds
10734 postuninstall_cmds=$lt_postuninstall_cmds
10736 # Commands used to build a loadable module (assumed same as above if empty)
10737 module_cmds=$lt_module_cmds
10738 module_expsym_cmds=$lt_module_expsym_cmds
10740 # Commands to strip libraries.
10741 old_striplib=$lt_old_striplib
10742 striplib=$lt_striplib
10744 # Dependencies to place before the objects being linked to create a
10746 predep_objects=$lt_predep_objects
10748 # Dependencies to place after the objects being linked to create a
10750 postdep_objects=$lt_postdep_objects
10752 # Dependencies to place before the objects being linked to create a
10754 predeps=$lt_predeps
10756 # Dependencies to place after the objects being linked to create a
10758 postdeps=$lt_postdeps
10760 # The library search path used internally by the compiler when linking
10761 # a shared library.
10762 compiler_lib_search_path=$lt_compiler_lib_search_path
10764 # Method to check whether dependent libraries are shared objects.
10765 deplibs_check_method=$lt_deplibs_check_method
10767 # Command to use when deplibs_check_method == file_magic.
10768 file_magic_cmd=$lt_file_magic_cmd
10770 # Flag that allows shared libraries with undefined symbols to be built.
10771 allow_undefined_flag=$lt_allow_undefined_flag
10773 # Flag that forces no undefined symbols.
10774 no_undefined_flag=$lt_no_undefined_flag
10776 # Commands used to finish a libtool library installation in a directory.
10777 finish_cmds=$lt_finish_cmds
10779 # Same as above, but a single script fragment to be evaled but not shown.
10780 finish_eval=$lt_finish_eval
10782 # Take the output of nm and produce a listing of raw symbols and C names.
10783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10785 # Transform the output of nm in a proper C declaration
10786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10788 # Transform the output of nm in a C name address pair
10789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10791 # This is the shared library runtime path variable.
10792 runpath_var=$runpath_var
10794 # This is the shared library path variable.
10795 shlibpath_var=$shlibpath_var
10797 # Is shlibpath searched before the hard-coded library search path?
10798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10800 # How to hardcode a shared library path into an executable.
10801 hardcode_action=$hardcode_action
10803 # Whether we should hardcode library paths into libraries.
10804 hardcode_into_libs=$hardcode_into_libs
10806 # Flag to hardcode \$libdir into a binary during linking.
10807 # This must work even if \$libdir does not exist.
10808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10810 # If ld is used when linking, flag to hardcode \$libdir into
10811 # a binary during linking. This must work even if \$libdir does
10813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10815 # Whether we need a single -rpath flag with a separated argument.
10816 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10818 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10819 # resulting binary.
10820 hardcode_direct=$hardcode_direct
10822 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10823 # resulting binary.
10824 hardcode_minus_L=$hardcode_minus_L
10826 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10827 # the resulting binary.
10828 hardcode_shlibpath_var=$hardcode_shlibpath_var
10830 # Set to yes if building a shared library automatically hardcodes DIR into the library
10831 # and all subsequent libraries and executables linked against it.
10832 hardcode_automatic=$hardcode_automatic
10834 # Variables whose values should be saved in libtool wrapper scripts and
10835 # restored at relink time.
10836 variables_saved_for_relink="$variables_saved_for_relink"
10838 # Whether libtool must link a program against all its dependency libraries.
10839 link_all_deplibs=$link_all_deplibs
10841 # Compile-time system search path for libraries
10842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10844 # Run-time system search path for libraries
10845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10847 # Fix the shell variable \$srcfile for the compiler.
10848 fix_srcfile_path=$lt_fix_srcfile_path
10850 # Set to yes if exported symbols are required.
10851 always_export_symbols=$always_export_symbols
10853 # The commands to list exported symbols.
10854 export_symbols_cmds=$lt_export_symbols_cmds
10856 # The commands to extract the exported symbol list from a shared archive.
10857 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10859 # Symbols that should not be listed in the preloaded symbols.
10860 exclude_expsyms=$lt_exclude_expsyms
10862 # Symbols that must always be exported.
10863 include_expsyms=$lt_include_expsyms
10865 # ### END LIBTOOL CONFIG
10872 cat <<\EOF >> "$cfgfile"
10874 # AIX sometimes has problems with the GCC collect2 program. For some
10875 # reason, if we set the COLLECT_NAMES environment variable, the problems
10876 # vanish in a puff of smoke.
10877 if test "X${COLLECT_NAMES+set}" != Xset; then
10879 export COLLECT_NAMES
10885 # We use sed instead of cat because bash on DJGPP gets confused if
10886 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10887 # text mode, it properly converts lines to CR/LF. This bash problem
10888 # is reportedly fixed, but why not run on old versions too?
10889 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10891 mv -f "$cfgfile" "$ofile" || \
10892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10896 # If there is no Makefile yet, we rely on a make rule to execute
10897 # `config.status
--recheck' to rerun these tests and create the
10898 # libtool script then.
10899 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10900 if test -f "$ltmain_in"; then
10901 test -f Makefile && make "$ltmain"
10907 ac_cpp='$CPP $CPPFLAGS'
10908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10909 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10915 # Check whether --with-tags was given.
10916 if test "${with_tags+set}" = set; then
10917 withval=$with_tags; tagnames="$withval"
10921 if test -f "$ltmain" && test -n "$tagnames"; then
10922 if test ! -f "${ofile}"; then
10923 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10924 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10927 if test -z "$LTCC"; then
10928 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10929 if test -z "$LTCC"; then
10930 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10931 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10933 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10934 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10937 if test -z "$LTCFLAGS"; then
10938 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10941 # Extract list of available tagged configurations in $ofile.
10942 # Note that this assumes the entire list is on one line.
10943 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10945 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10946 for tagname in $tagnames; do
10948 # Check whether tagname contains only valid characters
10949 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10951 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10952 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10953 { (exit 1); exit 1; }; }
10957 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10959 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10960 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10961 { (exit 1); exit 1; }; }
10964 # Update the list of available tags.
10965 if test -n "$tagname"; then
10966 echo appending configuration tag \"$tagname\" to $ofile
10970 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10971 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10972 (test "X$CXX" != "Xg++"))) ; then
10974 ac_cpp='$CXXCPP $CPPFLAGS'
10975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10982 archive_cmds_need_lc_CXX=no
10983 allow_undefined_flag_CXX=
10984 always_export_symbols_CXX=no
10985 archive_expsym_cmds_CXX=
10986 export_dynamic_flag_spec_CXX=
10987 hardcode_direct_CXX=no
10988 hardcode_libdir_flag_spec_CXX=
10989 hardcode_libdir_flag_spec_ld_CXX=
10990 hardcode_libdir_separator_CXX=
10991 hardcode_minus_L_CXX=no
10992 hardcode_shlibpath_var_CXX=unsupported
10993 hardcode_automatic_CXX=no
10995 module_expsym_cmds_CXX=
10996 link_all_deplibs_CXX=unknown
10997 old_archive_cmds_CXX=$old_archive_cmds
10998 no_undefined_flag_CXX=
10999 whole_archive_flag_spec_CXX=
11000 enable_shared_with_static_runtimes_CXX=no
11002 # Dependencies to place before and after the object being linked:
11003 predep_objects_CXX=
11004 postdep_objects_CXX=
11007 compiler_lib_search_path_CXX=
11009 # Source file extension for C++ test sources.
11012 # Object file extension for compiled C++ test sources.
11016 # Code to be used in simple compile tests
11017 lt_simple_compile_test_code="int some_variable = 0;"
11019 # Code to be used in simple link tests
11020 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11022 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11024 # If no C compiler was specified, use CC.
11027 # If no C compiler flags were specified, use CFLAGS.
11028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11030 # Allow CC to be a program name with arguments.
11034 # save warnings/boilerplate of simple test code
11035 ac_outfile=conftest.$ac_objext
11036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11038 _lt_compiler_boilerplate=`cat conftest.err
`
11041 ac_outfile=conftest.$ac_objext
11042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11044 _lt_linker_boilerplate=`cat conftest.err
`
11048 # Allow CC to be a program name with arguments.
11053 lt_save_with_gnu_ld=$with_gnu_ld
11054 lt_save_path_LD=$lt_cv_path_LD
11055 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11056 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11058 $as_unset lt_cv_prog_gnu_ld
11060 if test -n "${lt_cv_path_LDCXX+set}"; then
11061 lt_cv_path_LD=$lt_cv_path_LDCXX
11063 $as_unset lt_cv_path_LD
11065 test -z "${LDCXX+set}" || LD=$LDCXX
11069 for cc_temp in $compiler""; do
11071 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11072 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11077 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11080 # We don't want -fno-exception wen compiling C++ code, so set the
11081 # no_builtin_flag separately
11082 if test "$GXX" = yes; then
11083 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11085 lt_prog_compiler_no_builtin_flag_CXX=
11088 if test "$GXX" = yes; then
11089 # Set up default GNU C++ configuration
11092 # Check whether --with-gnu-ld was given.
11093 if test "${with_gnu_ld+set}" = set; then
11094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11100 if test "$GCC" = yes; then
11101 # Check if gcc -print-prog-name=ld gives a path.
11102 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11103 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11106 # gcc leaves a trailing carriage return which upsets mingw
11107 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
11109 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
11112 # Accept absolute paths.
11114 re_direlt='/[^/][^/]*/\.\./'
11115 # Canonicalize the pathname of ld
11116 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
11117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11118 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
11120 test -z "$LD" && LD="$ac_prog"
11123 # If it fails, then pretend we aren't using GCC.
11127 # If it is relative, then search for the first ld in PATH.
11128 with_gnu_ld=unknown
11131 elif test "$with_gnu_ld" = yes; then
11132 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11133 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11135 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11136 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11138 if test "${lt_cv_path_LD+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 if test -z "$LD"; then
11142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11143 for ac_dir in $PATH; do
11145 test -z "$ac_dir" && ac_dir=.
11146 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11147 lt_cv_path_LD="$ac_dir/$ac_prog"
11148 # Check to see if the program is GNU ld. I'd rather use --version,
11149 # but apparently some variants of GNU ld only accept -v.
11150 # Break only if it was the GNU/non-GNU ld that we prefer.
11151 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
11152 *GNU* | *'with BFD'*)
11153 test "$with_gnu_ld" != no && break
11156 test "$with_gnu_ld" != yes && break
11163 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11167 LD="$lt_cv_path_LD"
11168 if test -n "$LD"; then
11169 { echo "$as_me:$LINENO: result: $LD" >&5
11170 echo "${ECHO_T}$LD" >&6; }
11172 { echo "$as_me:$LINENO: result: no" >&5
11173 echo "${ECHO_T}no" >&6; }
11175 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11176 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11177 { (exit 1); exit 1; }; }
11178 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11179 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11180 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11184 case `$LD -v 2>&1 </dev
/null
` in
11185 *GNU* | *'with BFD'*)
11186 lt_cv_prog_gnu_ld=yes
11189 lt_cv_prog_gnu_ld=no
11193 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11194 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11195 with_gnu_ld=$lt_cv_prog_gnu_ld
11199 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11200 # archiving commands below assume that GNU ld is being used.
11201 if test "$with_gnu_ld" = yes; then
11202 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11203 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'
11205 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11206 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11208 # If archive_cmds runs LD, not CC, wlarc should be empty
11209 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11210 # investigate it a little bit more. (MM)
11213 # ancient GNU ld didn't support --whole-archive et. al.
11214 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
11215 grep 'no-whole-archive' > /dev/null; then
11216 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11218 whole_archive_flag_spec_CXX=
11224 # A generic and very simple default shared library creation
11225 # command for GNU C++ for the case where it uses the native
11226 # linker, instead of GNU ld. If possible, this setting should
11227 # overridden to take advantage of the native linker features on
11228 # the platform it is being used on.
11229 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11232 # Commands to make compiler produce verbose output that lists
11233 # what "hidden" libraries, object files and flags are used when
11234 # linking a shared library.
11235 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11243 # PORTME: fill in a description of your system's C++ link characteristics
11244 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11245 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11249 # FIXME: insert proper C++ library support
11253 if test "$host_cpu" = ia64; then
11254 # On IA64, the linker does run time linking by default, so we don't
11255 # have to do anything special.
11256 aix_use_runtimelinking=no
11257 exp_sym_flag='-Bexport'
11260 aix_use_runtimelinking=no
11262 # Test if we are trying to use run time linking or normal
11263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11264 # need to do runtime linking.
11265 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11266 for ld_flag in $LDFLAGS; do
11269 aix_use_runtimelinking=yes
11277 exp_sym_flag='-bexport'
11278 no_entry_flag='-bnoentry'
11281 # When large executables or shared objects are built, AIX ld can
11282 # have problems creating the table of contents. If linking a library
11283 # or program results in "error TOC overflow" add -mminimal-toc to
11284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11287 archive_cmds_CXX=''
11288 hardcode_direct_CXX=yes
11289 hardcode_libdir_separator_CXX=':'
11290 link_all_deplibs_CXX=yes
11292 if test "$GXX" = yes; then
11293 case $host_os in aix4.[012]|aix4.[012].*)
11294 # We only want to do this on AIX 4.2 and lower, the check
11295 # below for broken collect2 doesn't work under 4.3+
11296 collect2name=`${CC} -print-prog-name=collect2
`
11297 if test -f "$collect2name" && \
11298 strings "$collect2name" | grep resolve_lib_name >/dev/null
11300 # We have reworked collect2
11303 # We have old collect2
11304 hardcode_direct_CXX=unsupported
11305 # It fails to find uninstalled libraries when the uninstalled
11306 # path is not listed in the libpath. Setting hardcode_minus_L
11307 # to unsupported forces relinking
11308 hardcode_minus_L_CXX=yes
11309 hardcode_libdir_flag_spec_CXX='-L$libdir'
11310 hardcode_libdir_separator_CXX=
11314 shared_flag='-shared'
11315 if test "$aix_use_runtimelinking" = yes; then
11316 shared_flag="$shared_flag "'${wl}-G'
11320 if test "$host_cpu" = ia64; then
11321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11322 # chokes on -Wl,-G. The following line is correct:
11325 if test "$aix_use_runtimelinking" = yes; then
11326 shared_flag='${wl}-G'
11328 shared_flag='${wl}-bM:SRE'
11333 # It seems that -bexpall does not export symbols beginning with
11334 # underscore (_), so it is better to generate a list of symbols to export.
11335 always_export_symbols_CXX=yes
11336 if test "$aix_use_runtimelinking" = yes; then
11337 # Warning - without using the other runtime loading flags (-brtl),
11338 # -berok will link without error, but may produce a broken library.
11339 allow_undefined_flag_CXX='-berok'
11340 # Determine the default libpath from the value encoded in an empty executable.
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11356 rm -f conftest.$ac_objext conftest$ac_exeext
11357 if { (ac_try="$ac_link"
11358 case "(($ac_try" in
11359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11360 *) ac_try_echo
=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_link") 2>conftest.er1
11365 grep -v '^ *+' conftest.er1
>conftest.err
11367 cat conftest.err
>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_cxx_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest
$ac_exeext &&
11373 $as_test_x conftest
$ac_exeext; then
11375 lt_aix_libpath_sed
='
11376 /Import File Strings/,/^$/ {
11382 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11383 # Check for a 64-bit object if we didn't find anything.
11384 if test -z "$aix_libpath"; then
11385 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.
$ac_ext >&5
11394 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11395 conftest
$ac_exeext conftest.
$ac_ext
11396 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11398 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11400 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"
11402 if test "$host_cpu" = ia64
; then
11403 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11404 allow_undefined_flag_CXX
="-z nodefs"
11405 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"
11407 # Determine the default libpath from the value encoded in an empty executable.
11408 cat >conftest.
$ac_ext <<_ACEOF
11411 cat confdefs.h
>>conftest.
$ac_ext
11412 cat >>conftest.
$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11423 rm -f conftest.
$ac_objext conftest
$ac_exeext
11424 if { (ac_try
="$ac_link"
11425 case "(($ac_try" in
11426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_link") 2>conftest.er1
11432 grep -v '^ *+' conftest.er1 >conftest.err
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && {
11437 test -z "$ac_cxx_werror_flag" ||
11438 test ! -s conftest.err
11439 } && test -s conftest$ac_exeext &&
11440 $as_test_x conftest$ac_exeext; then
11442 lt_aix_libpath_sed='
11443 /Import File Strings/,/^$/ {
11449 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11450 # Check for a 64-bit object if we didn't find anything.
11451 if test -z "$aix_libpath"; then
11452 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11462 conftest$ac_exeext conftest.$ac_ext
11463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11465 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11466 # Warning - without using the other run time loading flags,
11467 # -berok will link without error, but may produce a broken library.
11468 no_undefined_flag_CXX=' ${wl}-bernotok'
11469 allow_undefined_flag_CXX=' ${wl}-berok'
11470 # Exported symbols can be pulled into shared objects from archives
11471 whole_archive_flag_spec_CXX='$convenience'
11472 archive_cmds_need_lc_CXX=yes
11473 # This is similar to how AIX traditionally builds its shared libraries.
11474 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'
11480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11481 allow_undefined_flag_CXX=unsupported
11482 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11483 # support --undefined. This deserves some investigation. FIXME
11484 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11491 case $cc_basename in
11493 # FIXME: insert proper C++ library support
11499 cygwin* | mingw* | pw32*)
11500 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11501 # as there is no search path for DLLs.
11502 hardcode_libdir_flag_spec_CXX='-L$libdir'
11503 allow_undefined_flag_CXX=unsupported
11504 always_export_symbols_CXX=no
11505 enable_shared_with_static_runtimes_CXX=yes
11507 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11508 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'
11509 # If the export-symbols file already is a .def file (1st line
11510 # is EXPORTS), use it as is; otherwise, prepend...
11511 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11512 cp $export_symbols $output_objdir/$soname.def;
11514 echo EXPORTS > $output_objdir/$soname.def;
11515 cat $export_symbols >> $output_objdir/$soname.def;
11517 $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'
11522 darwin* | rhapsody*)
11524 rhapsody* | darwin1.[012])
11525 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11529 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11531 case ${MACOSX_DEPLOYMENT_TARGET} in
11533 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11536 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11542 archive_cmds_need_lc_CXX=no
11543 hardcode_direct_CXX=no
11544 hardcode_automatic_CXX=yes
11545 hardcode_shlibpath_var_CXX=unsupported
11546 whole_archive_flag_spec_CXX=''
11547 link_all_deplibs_CXX=yes
11549 if test "$GXX" = yes ; then
11550 lt_int_apple_cc_single_mod=no
11551 output_verbose_link_cmd='echo'
11552 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11553 lt_int_apple_cc_single_mod=yes
11555 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11556 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11558 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'
11560 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11562 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11563 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}'
11565 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}'
11567 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}'
11569 case $cc_basename in
11571 output_verbose_link_cmd='echo'
11572 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11573 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11575 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11576 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}'
11586 case $cc_basename in
11588 # FIXME: insert proper C++ library support
11592 # Green Hills C++ Compiler
11593 # FIXME: insert proper C++ library support
11597 # FIXME: insert proper C++ library support
11603 # C++ shared libraries reported to be fairly broken before switch to ELF
11607 archive_cmds_need_lc_CXX=no
11609 freebsd* | dragonfly*)
11610 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11618 hardcode_libdir_separator_CXX=:
11619 export_dynamic_flag_spec_CXX='${wl}-E'
11620 hardcode_direct_CXX=yes
11621 hardcode_minus_L_CXX=yes # Not in the search PATH,
11622 # but as the default
11623 # location of the library.
11625 case $cc_basename in
11627 # FIXME: insert proper C++ library support
11631 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'
11632 # Commands to make compiler produce verbose output that lists
11633 # what "hidden" libraries, object files and flags are used when
11634 # linking a shared library.
11636 # There doesn't appear to be a way to prevent this compiler from
11637 # explicitly linking system object files so we need to strip them
11638 # from the output so that they don't get included in the library
11640 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'
11643 if test "$GXX" = yes; then
11644 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'
11646 # FIXME: insert proper C++ library support
11653 if test $with_gnu_ld = no; then
11654 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11655 hardcode_libdir_separator_CXX=:
11660 export_dynamic_flag_spec_CXX='${wl}-E'
11666 hardcode_direct_CXX=no
11667 hardcode_shlibpath_var_CXX=no
11670 hardcode_direct_CXX=yes
11671 hardcode_minus_L_CXX=yes # Not in the search PATH,
11672 # but as the default
11673 # location of the library.
11677 case $cc_basename in
11679 # FIXME: insert proper C++ library support
11685 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11688 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11694 # Commands to make compiler produce verbose output that lists
11695 # what "hidden" libraries, object files and flags are used when
11696 # linking a shared library.
11698 # There doesn't appear to be a way to prevent this compiler from
11699 # explicitly linking system object files so we need to strip them
11700 # from the output so that they don't get included in the library
11702 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'
11705 if test "$GXX" = yes; then
11706 if test $with_gnu_ld = no; then
11709 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11712 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11715 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'
11720 # FIXME: insert proper C++ library support
11727 hardcode_direct_CXX=no
11728 hardcode_shlibpath_var_CXX=no
11729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11730 export_dynamic_flag_spec_CXX='${wl}-E'
11731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11732 # Instead, shared libraries are loaded at an image base (0x10000000 by
11733 # default) and relocated if they conflict, which is a slow very memory
11734 # consuming and fragmenting process. To avoid this, we pick a random,
11735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11736 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11737 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'
11738 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'
11741 case $cc_basename in
11744 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'
11746 # Archives containing C++ object files must be created using
11747 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11748 # necessary to make sure instantiated templates are included
11750 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11753 if test "$GXX" = yes; then
11754 if test "$with_gnu_ld" = no; then
11755 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'
11757 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'
11760 link_all_deplibs_CXX=yes
11763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11764 hardcode_libdir_separator_CXX=:
11766 linux* | k*bsd*-gnu)
11767 case $cc_basename in
11769 # Kuck and Associates, Inc. (KAI) C++ Compiler
11771 # KCC will only create a shared library if the output file
11772 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11773 # to its proper name (with version) after linking.
11774 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'
11775 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'
11776 # Commands to make compiler produce verbose output that lists
11777 # what "hidden" libraries, object files and flags are used when
11778 # linking a shared library.
11780 # There doesn't appear to be a way to prevent this compiler from
11781 # explicitly linking system object files so we need to strip them
11782 # from the output so that they don't get included in the library
11784 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'
11786 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11787 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11789 # Archives containing C++ object files must be created using
11790 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11791 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11796 # version 8.0 and above of icpc choke on multiply defined symbols
11797 # if we add $predep_objects and $postdep_objects, however 7.1 and
11798 # earlier do not add the objects themselves.
11799 case `$CC -V 2>&1` in
11801 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802 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'
11804 *) # Version 8.0 or newer
11807 ia64
*) tmp_idyn
=' -i_dynamic';;
11809 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810 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'
11813 archive_cmds_need_lc_CXX
=no
11814 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11815 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11816 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11819 # Portland Group C++ compiler
11820 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11821 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'
11823 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11824 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11825 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'
11829 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11830 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'
11832 runpath_var
=LD_RUN_PATH
11833 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11834 hardcode_libdir_separator_CXX
=:
11836 # Commands to make compiler produce verbose output that lists
11837 # what "hidden" libraries, object files and flags are used when
11838 # linking a shared library.
11840 # There doesn't appear to be a way to prevent this compiler from
11841 # explicitly linking system object files so we need to strip them
11842 # from the output so that they don't get included in the library
11844 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'
11847 case `$CC -V 2>&1 | sed 5q` in
11850 no_undefined_flag_CXX
=' -zdefs'
11851 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11852 archive_expsym_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11853 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11854 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11856 # Not sure whether something based on
11857 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11859 output_verbose_link_cmd
='echo'
11861 # Archives containing C++ object files must be created using
11862 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11863 # necessary to make sure instantiated templates are included
11865 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11872 # FIXME: insert proper C++ library support
11876 # FIXME: insert proper C++ library support
11880 case $cc_basename in
11882 # FIXME: insert proper C++ library support
11886 # FIXME: insert proper C++ library support
11892 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11893 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11895 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11896 hardcode_direct_CXX
=yes
11897 hardcode_shlibpath_var_CXX
=no
11899 # Workaround some broken pre-1.5 toolchains
11900 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11903 # C++ shared libraries are fairly broken
11907 if test -f /usr
/libexec
/ld.so
; then
11908 hardcode_direct_CXX
=yes
11909 hardcode_shlibpath_var_CXX
=no
11910 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11911 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11913 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11914 export_dynamic_flag_spec_CXX
='${wl}-E'
11915 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11917 output_verbose_link_cmd
='echo'
11923 case $cc_basename in
11925 # Kuck and Associates, Inc. (KAI) C++ Compiler
11927 # KCC will only create a shared library if the output file
11928 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11929 # to its proper name (with version) after linking.
11930 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'
11932 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11933 hardcode_libdir_separator_CXX
=:
11935 # Archives containing C++ object files must be created using
11936 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11937 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11941 # Rational C++ 2.4.1
11942 # FIXME: insert proper C++ library support
11946 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11947 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'
11949 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11950 hardcode_libdir_separator_CXX
=:
11952 # Commands to make compiler produce verbose output that lists
11953 # what "hidden" libraries, object files and flags are used when
11954 # linking a shared library.
11956 # There doesn't appear to be a way to prevent this compiler from
11957 # explicitly linking system object files so we need to strip them
11958 # from the output so that they don't get included in the library
11960 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'
11963 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11964 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11965 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'
11967 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11968 hardcode_libdir_separator_CXX
=:
11970 # Commands to make compiler produce verbose output that lists
11971 # what "hidden" libraries, object files and flags are used when
11972 # linking a shared library.
11973 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11976 # FIXME: insert proper C++ library support
11983 case $cc_basename in
11985 # Kuck and Associates, Inc. (KAI) C++ Compiler
11987 # KCC will only create a shared library if the output file
11988 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11989 # to its proper name (with version) after linking.
11990 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'
11992 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11993 hardcode_libdir_separator_CXX
=:
11995 # Archives containing C++ object files must be created using
11996 # the KAI C++ compiler.
11997 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
12000 # Rational C++ 2.4.1
12001 # FIXME: insert proper C++ library support
12005 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12006 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'
12007 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12008 echo "-hidden">> $lib.exp~
12009 $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~
12012 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12013 hardcode_libdir_separator_CXX
=:
12015 # Commands to make compiler produce verbose output that lists
12016 # what "hidden" libraries, object files and flags are used when
12017 # linking a shared library.
12019 # There doesn't appear to be a way to prevent this compiler from
12020 # explicitly linking system object files so we need to strip them
12021 # from the output so that they don't get included in the library
12023 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'
12026 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12027 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12028 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'
12030 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12031 hardcode_libdir_separator_CXX
=:
12033 # Commands to make compiler produce verbose output that lists
12034 # what "hidden" libraries, object files and flags are used when
12035 # linking a shared library.
12036 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12039 # FIXME: insert proper C++ library support
12046 # FIXME: insert proper C++ library support
12050 case $cc_basename in
12053 # FIXME: insert proper C++ library support
12058 # FIXME: insert proper C++ library support
12062 # FIXME: insert proper C++ library support
12068 case $cc_basename in
12070 # Sun C++ 4.2, 5.x and Centerline C++
12071 archive_cmds_need_lc_CXX
=yes
12072 no_undefined_flag_CXX
=' -zdefs'
12073 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12074 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12075 $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'
12077 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12078 hardcode_shlibpath_var_CXX
=no
12080 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12082 # The compiler driver will combine and reorder linker options,
12083 # but understands `-z linker_flag'.
12084 # Supported since Solaris 2.6 (maybe 2.5.1?)
12085 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
12088 link_all_deplibs_CXX
=yes
12090 output_verbose_link_cmd
='echo'
12092 # Archives containing C++ object files must be created using
12093 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12094 # necessary to make sure instantiated templates are included
12096 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12099 # Green Hills C++ Compiler
12100 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12102 # The C++ compiler must be used to create the archive.
12103 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12106 # GNU C++ compiler with Solaris linker
12107 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12108 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
12109 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
12110 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12112 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12114 # Commands to make compiler produce verbose output that lists
12115 # what "hidden" libraries, object files and flags are used when
12116 # linking a shared library.
12117 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12119 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12121 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12122 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12123 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12125 # Commands to make compiler produce verbose output that lists
12126 # what "hidden" libraries, object files and flags are used when
12127 # linking a shared library.
12128 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12131 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
12133 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12135 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12142 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12143 no_undefined_flag_CXX
='${wl}-z,text'
12144 archive_cmds_need_lc_CXX
=no
12145 hardcode_shlibpath_var_CXX
=no
12146 runpath_var
='LD_RUN_PATH'
12148 case $cc_basename in
12150 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12154 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12155 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12159 sysv5
* | sco3.2v5
* | sco5v6
*)
12160 # Note: We can NOT use -z defs as we might desire, because we do not
12161 # link with -lc, and that would cause any symbols used from libc to
12162 # always be unresolved, which means just about no library would
12163 # ever link correctly. If we're not using GNU ld we use -z text
12164 # though, which does catch some bad symbols but isn't as heavy-handed
12166 # For security reasons, it is highly recommended that you always
12167 # use absolute paths for naming shared libraries, and exclude the
12168 # DT_RUNPATH tag from executables and libraries. But doing so
12169 # requires that you compile everything twice, which is a pain.
12170 # So that behaviour is only enabled if SCOABSPATH is set to a
12171 # non-empty value in the environment. Most likely only useful for
12172 # creating official distributions of packages.
12173 # This is a hack until libtool officially supports absolute path
12174 # names for shared libraries.
12175 no_undefined_flag_CXX
='${wl}-z,text'
12176 allow_undefined_flag_CXX
='${wl}-z,nodefs'
12177 archive_cmds_need_lc_CXX
=no
12178 hardcode_shlibpath_var_CXX
=no
12179 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12180 hardcode_libdir_separator_CXX
=':'
12181 link_all_deplibs_CXX
=yes
12182 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
12183 runpath_var
='LD_RUN_PATH'
12185 case $cc_basename in
12187 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12188 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12191 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12192 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12197 case $cc_basename in
12199 # NonStop-UX NCC 3.20
12200 # FIXME: insert proper C++ library support
12204 # FIXME: insert proper C++ library support
12210 # FIXME: insert proper C++ library support
12214 # FIXME: insert proper C++ library support
12218 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12219 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12220 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12226 cat > conftest.
$ac_ext <<EOF
12230 Foo (void) { a = 0; }
12236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237 (eval $ac_compile) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; then
12241 # Parse the compiler output and extract the necessary
12242 # objects, libraries and library flags.
12244 # Sentinel used to keep track of whether or not we are before
12245 # the conftest object file.
12246 pre_test_object_deps_done
=no
12248 # The `*' in the case matches for architectures that use `case' in
12249 # $output_verbose_cmd can trigger glob expansion during the loop
12250 # eval without this substitution.
12251 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12253 for p
in `eval $output_verbose_link_cmd`; do
12257 # Some compilers place space between "-{L,R}" and the path.
12258 # Remove the space.
12259 if test $p = "-L" \
12260 ||
test $p = "-R"; then
12267 if test "$pre_test_object_deps_done" = no
; then
12270 # Internal compiler library paths should come after those
12271 # provided the user. The postdeps already come after the
12272 # user supplied libs so there is no need to process them.
12273 if test -z "$compiler_lib_search_path_CXX"; then
12274 compiler_lib_search_path_CXX
="${prev}${p}"
12276 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
12279 # The "-l" case would never come before the object being
12280 # linked, so don't bother handling this case.
12283 if test -z "$postdeps_CXX"; then
12284 postdeps_CXX
="${prev}${p}"
12286 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
12292 # This assumes that the test object file only shows up
12293 # once in the compiler output.
12294 if test "$p" = "conftest.$objext"; then
12295 pre_test_object_deps_done
=yes
12299 if test "$pre_test_object_deps_done" = no
; then
12300 if test -z "$predep_objects_CXX"; then
12301 predep_objects_CXX
="$p"
12303 predep_objects_CXX
="$predep_objects_CXX $p"
12306 if test -z "$postdep_objects_CXX"; then
12307 postdep_objects_CXX
="$p"
12309 postdep_objects_CXX
="$postdep_objects_CXX $p"
12314 *) ;; # Ignore the rest.
12322 echo "libtool.m4: error: problem compiling CXX test program"
12325 $rm -f confest.
$objext
12327 # PORTME: override above test on systems where it is broken
12330 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12331 # hack all around it, let's just trust "g++" to DTRT.
12332 predep_objects_CXX
=
12333 postdep_objects_CXX
=
12338 case `$CC -V 2>&1 | sed 5q` in
12342 # The more standards-conforming stlport4 library is
12343 # incompatible with the Cstd library. Avoid specifying
12344 # it if it's in CXXFLAGS. Ignore libCrun as
12345 # -library=stlport4 depends on it.
12346 case " $CXX $CXXFLAGS " in
12347 *" -library=stlport4 "*)
12348 solaris_use_stlport4
=yes
12351 if test "$solaris_use_stlport4" != yes; then
12352 postdeps_CXX
='-library=Cstd -library=Crun'
12359 case $cc_basename in
12361 # The more standards-conforming stlport4 library is
12362 # incompatible with the Cstd library. Avoid specifying
12363 # it if it's in CXXFLAGS. Ignore libCrun as
12364 # -library=stlport4 depends on it.
12365 case " $CXX $CXXFLAGS " in
12366 *" -library=stlport4 "*)
12367 solaris_use_stlport4
=yes
12371 # Adding this requires a known-good setup of shared libraries for
12372 # Sun compiler versions before 5.6, else PIC objects from an old
12373 # archive will be linked into the output, leading to subtle bugs.
12374 if test "$solaris_use_stlport4" != yes; then
12375 postdeps_CXX
='-library=Cstd -library=Crun'
12383 case " $postdeps_CXX " in
12384 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
12387 lt_prog_compiler_wl_CXX
=
12388 lt_prog_compiler_pic_CXX
=
12389 lt_prog_compiler_static_CXX
=
12391 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12392 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12394 # C++ specific cases for pic, static, wl, etc.
12395 if test "$GXX" = yes; then
12396 lt_prog_compiler_wl_CXX
='-Wl,'
12397 lt_prog_compiler_static_CXX
='-static'
12401 # All AIX code is PIC.
12402 if test "$host_cpu" = ia64
; then
12403 # AIX 5 now supports IA64 processor
12404 lt_prog_compiler_static_CXX
='-Bstatic'
12408 # FIXME: we need at least 68020 code to build shared libraries, but
12409 # adding the `-m68020' flag to GCC prevents building anything better,
12411 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12413 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12414 # PIC is the default for these OSes.
12416 mingw
* | cygwin
* | os2
* | pw32
*)
12417 # This hack is so that the source file can tell whether it is being
12418 # built for inclusion in a dll (and should export symbols for example).
12419 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12420 # (--disable-auto-import) libraries
12421 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12423 darwin
* | rhapsody
*)
12424 # PIC is the default on this platform
12425 # Common symbols not allowed in MH_DYLIB files
12426 lt_prog_compiler_pic_CXX
='-fno-common'
12429 # DJGPP does not support shared libraries at all
12430 lt_prog_compiler_pic_CXX
=
12433 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12434 # Instead, we relocate shared libraries at runtime.
12437 if test -d /usr
/nec
; then
12438 lt_prog_compiler_pic_CXX
=-Kconform_pic
12442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12443 # not for PA HP-UX.
12448 lt_prog_compiler_pic_CXX
='-fPIC'
12453 lt_prog_compiler_pic_CXX
='-fPIC'
12459 # All AIX code is PIC.
12460 if test "$host_cpu" = ia64
; then
12461 # AIX 5 now supports IA64 processor
12462 lt_prog_compiler_static_CXX
='-Bstatic'
12464 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12468 case $cc_basename in
12470 # Green Hills C++ Compiler
12471 # _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"
12476 # PIC is the default on this platform
12477 # Common symbols not allowed in MH_DYLIB files
12478 case $cc_basename in
12480 lt_prog_compiler_pic_CXX
='-qnocommon'
12481 lt_prog_compiler_wl_CXX
='-Wl,'
12486 case $cc_basename in
12488 lt_prog_compiler_pic_CXX
='-KPIC'
12491 # Green Hills C++ Compiler
12492 lt_prog_compiler_pic_CXX
='-pic'
12498 freebsd
* | dragonfly
*)
12499 # FreeBSD uses GNU C++
12501 hpux9
* | hpux10
* | hpux11
*)
12502 case $cc_basename in
12504 lt_prog_compiler_wl_CXX
='-Wl,'
12505 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12506 if test "$host_cpu" != ia64
; then
12507 lt_prog_compiler_pic_CXX
='+Z'
12511 lt_prog_compiler_wl_CXX
='-Wl,'
12512 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12518 lt_prog_compiler_pic_CXX
='+Z'
12527 # This is c89, which is MS Visual C++ (no shared libs)
12528 # Anyone wants to do a port?
12530 irix5
* | irix6
* | nonstopux
*)
12531 case $cc_basename in
12533 lt_prog_compiler_wl_CXX
='-Wl,'
12534 lt_prog_compiler_static_CXX
='-non_shared'
12535 # CC pic flag -KPIC is the default.
12541 linux
* | k
*bsd
*-gnu)
12542 case $cc_basename in
12545 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12546 lt_prog_compiler_pic_CXX
='-fPIC'
12550 lt_prog_compiler_wl_CXX
='-Wl,'
12551 lt_prog_compiler_pic_CXX
='-KPIC'
12552 lt_prog_compiler_static_CXX
='-static'
12555 # Portland Group C++ compiler.
12556 lt_prog_compiler_wl_CXX
='-Wl,'
12557 lt_prog_compiler_pic_CXX
='-fpic'
12558 lt_prog_compiler_static_CXX
='-Bstatic'
12562 # Make sure the PIC flag is empty. It appears that all Alpha
12563 # Linux and Compaq Tru64 Unix objects are PIC.
12564 lt_prog_compiler_pic_CXX
=
12565 lt_prog_compiler_static_CXX
='-non_shared'
12568 case `$CC -V 2>&1 | sed 5q` in
12571 lt_prog_compiler_pic_CXX
='-KPIC'
12572 lt_prog_compiler_static_CXX
='-Bstatic'
12573 lt_prog_compiler_wl_CXX
='-Qoption ld '
12584 case $cc_basename in
12586 lt_prog_compiler_pic_CXX
='-W c,exportall'
12594 osf3
* | osf4
* | osf5
*)
12595 case $cc_basename in
12597 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12600 # Rational C++ 2.4.1
12601 lt_prog_compiler_pic_CXX
='-pic'
12604 # Digital/Compaq C++
12605 lt_prog_compiler_wl_CXX
='-Wl,'
12606 # Make sure the PIC flag is empty. It appears that all Alpha
12607 # Linux and Compaq Tru64 Unix objects are PIC.
12608 lt_prog_compiler_pic_CXX
=
12609 lt_prog_compiler_static_CXX
='-non_shared'
12618 case $cc_basename in
12620 # Sun C++ 4.2, 5.x and Centerline C++
12621 lt_prog_compiler_pic_CXX
='-KPIC'
12622 lt_prog_compiler_static_CXX
='-Bstatic'
12623 lt_prog_compiler_wl_CXX
='-Qoption ld '
12626 # Green Hills C++ Compiler
12627 lt_prog_compiler_pic_CXX
='-PIC'
12634 case $cc_basename in
12637 lt_prog_compiler_pic_CXX
='-pic'
12638 lt_prog_compiler_static_CXX
='-Bstatic'
12642 lt_prog_compiler_pic_CXX
='-pic'
12649 case $cc_basename in
12651 # NonStop-UX NCC 3.20
12652 lt_prog_compiler_pic_CXX
='-KPIC'
12658 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12659 case $cc_basename in
12661 lt_prog_compiler_wl_CXX
='-Wl,'
12662 lt_prog_compiler_pic_CXX
='-KPIC'
12663 lt_prog_compiler_static_CXX
='-Bstatic'
12670 lt_prog_compiler_can_build_shared_CXX
=no
12675 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12676 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12679 # Check to make sure the PIC flag actually works.
12681 if test -n "$lt_prog_compiler_pic_CXX"; then
12683 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12684 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12685 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 lt_prog_compiler_pic_works_CXX
=no
12689 ac_outfile
=conftest.
$ac_objext
12690 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12691 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12692 # Insert the option either (1) after the last *FLAGS variable, or
12693 # (2) before a word containing "conftest.", or (3) at the end.
12694 # Note that $ac_compile itself does not contain backslashes and begins
12695 # with a dollar sign (not a hyphen), so the echo should work correctly.
12696 # The option is referenced via a variable to avoid confusing sed.
12697 lt_compile
=`echo "$ac_compile" | $SED \
12698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12700 -e 's:$: $lt_compiler_flag:'`
12701 (eval echo "\"\$as_me:12701: $lt_compile\"" >&5)
12702 (eval "$lt_compile" 2>conftest.err
)
12704 cat conftest.err
>&5
12705 echo "$as_me:12705: \$? = $ac_status" >&5
12706 if (exit $ac_status) && test -s "$ac_outfile"; then
12707 # The compiler can only warn and ignore the option if not recognized
12708 # So say no if there are warnings other than the usual output.
12709 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12710 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12711 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12712 lt_prog_compiler_pic_works_CXX
=yes
12718 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12719 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12721 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12722 case $lt_prog_compiler_pic_CXX in
12724 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12727 lt_prog_compiler_pic_CXX
=
12728 lt_prog_compiler_can_build_shared_CXX
=no
12733 # For platforms which do not support PIC, -DPIC is meaningless:
12735 lt_prog_compiler_pic_CXX
=
12738 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12743 # Check to make sure the static flag actually works.
12745 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12746 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12747 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12748 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 lt_prog_compiler_static_works_CXX
=no
12752 save_LDFLAGS
="$LDFLAGS"
12753 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12754 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12755 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12756 # The linker can only warn and ignore the option if not recognized
12757 # So say no if there are warnings
12758 if test -s conftest.err
; then
12759 # Append any errors to the config.log.
12760 cat conftest.err
1>&5
12761 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12762 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12763 if diff conftest.exp conftest.er2
>/dev
/null
; then
12764 lt_prog_compiler_static_works_CXX
=yes
12767 lt_prog_compiler_static_works_CXX
=yes
12771 LDFLAGS
="$save_LDFLAGS"
12774 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12775 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12777 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12780 lt_prog_compiler_static_CXX
=
12784 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12785 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12786 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 lt_cv_prog_compiler_c_o_CXX
=no
12790 $rm -r conftest
2>/dev
/null
12794 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12796 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12797 # Insert the option either (1) after the last *FLAGS variable, or
12798 # (2) before a word containing "conftest.", or (3) at the end.
12799 # Note that $ac_compile itself does not contain backslashes and begins
12800 # with a dollar sign (not a hyphen), so the echo should work correctly.
12801 lt_compile
=`echo "$ac_compile" | $SED \
12802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12804 -e 's:$: $lt_compiler_flag:'`
12805 (eval echo "\"\$as_me:12805: $lt_compile\"" >&5)
12806 (eval "$lt_compile" 2>out
/conftest.err
)
12808 cat out
/conftest.err
>&5
12809 echo "$as_me:12809: \$? = $ac_status" >&5
12810 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12812 # The compiler can only warn and ignore the option if not recognized
12813 # So say no if there are warnings
12814 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12815 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12816 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12817 lt_cv_prog_compiler_c_o_CXX
=yes
12822 # SGI C++ compiler will create directory out/ii_files/ for
12823 # template instantiation
12824 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12825 $rm out
/* && rmdir out
12831 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12832 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12835 hard_links
="nottested"
12836 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12837 # do not overwrite the value of need_locks provided by the user
12838 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12839 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12842 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12844 ln conftest.a conftest.b
2>&5 || hard_links
=no
12845 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12846 { echo "$as_me:$LINENO: result: $hard_links" >&5
12847 echo "${ECHO_T}$hard_links" >&6; }
12848 if test "$hard_links" = no
; then
12849 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12850 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12857 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12858 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12860 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12863 # If we're using GNU nm, then we don't want the "-C" option.
12864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12865 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12866 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'
12868 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'
12872 export_symbols_cmds_CXX
="$ltdll_cmds"
12875 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'
12878 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12882 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12883 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12884 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12887 # Do we need to explicitly link libc?
12889 case "x$archive_cmds_need_lc_CXX" in
12891 # Assume -lc should be added
12892 archive_cmds_need_lc_CXX
=yes
12894 if test "$enable_shared" = yes && test "$GCC" = yes; then
12895 case $archive_cmds_CXX in
12897 # FIXME: we may have to deal with multi-command sequences.
12900 # Test whether the compiler implicitly links with -lc since on some
12901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12902 # to ld, don't add -lc before -lgcc.
12903 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12904 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12906 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } 2>conftest.err
; then
12915 libobjs
=conftest.
$ac_objext
12917 wl
=$lt_prog_compiler_wl_CXX
12918 pic_flag
=$lt_prog_compiler_pic_CXX
12924 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12925 allow_undefined_flag_CXX
=
12926 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12927 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }
12932 archive_cmds_need_lc_CXX
=no
12934 archive_cmds_need_lc_CXX
=yes
12936 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12938 cat conftest.err
1>&5
12941 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12942 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12949 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12950 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12951 library_names_spec
=
12952 libname_spec
='lib$name'
12956 postuninstall_cmds
=
12960 shlibpath_overrides_runpath
=unknown
12962 dynamic_linker
="$host_os ld.so"
12963 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12965 need_lib_prefix
=unknown
12966 hardcode_into_libs
=no
12968 # when you set need_version to no, make sure it does not cause -set_version
12969 # flags to be left without arguments
12970 need_version
=unknown
12975 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12976 shlibpath_var
=LIBPATH
12978 # AIX 3 has no versioning support, so we append a major version to the name.
12979 soname_spec
='${libname}${release}${shared_ext}$major'
12986 hardcode_into_libs
=yes
12987 if test "$host_cpu" = ia64
; then
12988 # AIX 5 supports IA64
12989 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12990 shlibpath_var
=LD_LIBRARY_PATH
12992 # With GCC up to 2.95.x, collect2 would create an import file
12993 # for dependence libraries. The import file would start with
12994 # the line `#! .'. This would cause the generated library to
12995 # depend on `.', always an invalid library. This was fixed in
12996 # development snapshots of GCC prior to 3.0.
12998 aix4 | aix4.
[01] | aix4.
[01].
*)
12999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13001 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
13004 can_build_shared
=no
13008 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13009 # soname into executable. Probably we can add versioning support to
13010 # collect2, so additional links can be useful in future.
13011 if test "$aix_use_runtimelinking" = yes; then
13012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13013 # instead of lib<name>.a to let people know that these are not
13014 # typical AIX shared libraries.
13015 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13017 # We preserve .a as extension for shared libraries through AIX4.2
13018 # and later when we are not doing run time linking.
13019 library_names_spec
='${libname}${release}.a $libname.a'
13020 soname_spec
='${libname}${release}${shared_ext}$major'
13022 shlibpath_var
=LIBPATH
13027 library_names_spec
='$libname.ixlibrary $libname.a'
13028 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13029 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'
13033 library_names_spec
='${libname}${shared_ext}'
13034 dynamic_linker
="$host_os ld.so"
13035 shlibpath_var
=LIBRARY_PATH
13041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13042 soname_spec
='${libname}${release}${shared_ext}$major'
13043 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13044 shlibpath_var
=LD_LIBRARY_PATH
13045 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13046 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13047 # the default ld.so.conf also contains /usr/contrib/lib and
13048 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13049 # libtool to hard-code these into programs
13052 cygwin
* | mingw
* | pw32
*)
13053 version_type
=windows
13058 case $GCC,$host_os in
13059 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
13060 library_names_spec
='$libname.dll.a'
13061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13062 postinstall_cmds
='base_file=`basename \${file}`~
13063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13064 dldir=$destdir/`dirname \$dlpath`~
13065 test -d \$dldir || mkdir -p \$dldir~
13066 $install_prog $dir/$dlname \$dldir/$dlname~
13067 chmod a+x \$dldir/$dlname'
13068 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13069 dlpath=$dir/\$dldll~
13071 shlibpath_overrides_runpath
=yes
13075 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13076 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13077 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
13080 # MinGW DLLs use traditional 'lib' prefix
13081 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13082 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13083 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
13084 # It is most probably a Windows format PATH printed by
13085 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13086 # path with ; separators, and with drive letters. We can handle the
13087 # drive letters (cygwin fileutils understands them), so leave them,
13088 # especially as we might pass files found there to a mingw objdump,
13089 # which wouldn't understand a cygwinified path. Ahh.
13090 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13092 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13096 # pw32 DLLs use 'pw' prefix rather than 'lib'
13097 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13103 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13106 dynamic_linker
='Win32 ld.exe'
13107 # FIXME: first we should search . and the directory the executable is in
13111 darwin
* | rhapsody
*)
13112 dynamic_linker
="$host_os dyld"
13113 version_type
=darwin
13116 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13117 soname_spec
='${libname}${release}${major}$shared_ext'
13118 shlibpath_overrides_runpath
=yes
13119 shlibpath_var
=DYLD_LIBRARY_PATH
13120 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13122 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13130 soname_spec
='${libname}${release}${shared_ext}$major'
13131 shlibpath_var
=LD_LIBRARY_PATH
13138 freebsd
* | dragonfly
*)
13139 # DragonFly does not have aout. When/if they implement a new
13140 # versioning mechanism, adjust this.
13141 if test -x /usr
/bin
/objformat
; then
13142 objformat
=`/usr/bin/objformat`
13145 freebsd
[123]*) objformat
=aout
;;
13146 *) objformat
=elf
;;
13149 version_type
=freebsd-
$objformat
13150 case $version_type in
13152 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13157 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13161 shlibpath_var
=LD_LIBRARY_PATH
13164 shlibpath_overrides_runpath
=yes
13166 freebsd3.
[01]* | freebsdelf3.
[01]*)
13167 shlibpath_overrides_runpath
=yes
13168 hardcode_into_libs
=yes
13170 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13171 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13172 shlibpath_overrides_runpath
=no
13173 hardcode_into_libs
=yes
13175 *) # from 4.6 on, and DragonFly
13176 shlibpath_overrides_runpath
=yes
13177 hardcode_into_libs
=yes
13186 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13187 soname_spec
='${libname}${release}${shared_ext}$major'
13188 shlibpath_var
=LD_LIBRARY_PATH
13189 hardcode_into_libs
=yes
13192 hpux9
* | hpux10
* | hpux11
*)
13193 # Give a soname corresponding to the major version so that dld.sl refuses to
13194 # link against other versions.
13201 hardcode_into_libs
=yes
13202 dynamic_linker
="$host_os dld.so"
13203 shlibpath_var
=LD_LIBRARY_PATH
13204 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206 soname_spec
='${libname}${release}${shared_ext}$major'
13207 if test "X$HPUX_IA64_MODE" = X32
; then
13208 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13210 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13212 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13216 hardcode_into_libs
=yes
13217 dynamic_linker
="$host_os dld.sl"
13218 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
13219 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13220 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13221 soname_spec
='${libname}${release}${shared_ext}$major'
13222 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13223 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13227 dynamic_linker
="$host_os dld.sl"
13228 shlibpath_var
=SHLIB_PATH
13229 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13231 soname_spec
='${libname}${release}${shared_ext}$major'
13234 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13235 postinstall_cmds
='chmod 555 $lib'
13242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13243 soname_spec
='${libname}${release}${shared_ext}$major'
13244 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
13245 shlibpath_var
=LD_LIBRARY_PATH
13246 shlibpath_overrides_runpath
=no
13247 hardcode_into_libs
=yes
13250 irix5
* | irix6
* | nonstopux
*)
13252 nonstopux
*) version_type
=nonstopux
;;
13254 if test "$lt_cv_prog_gnu_ld" = yes; then
13262 soname_spec
='${libname}${release}${shared_ext}$major'
13263 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13265 irix5
* | nonstopux
*)
13266 libsuff
= shlibsuff
=
13269 case $LD in # libtool.m4 will add one of these switches to LD
13270 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
13271 libsuff
= shlibsuff
= libmagic
=32-bit;;
13272 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
13273 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13274 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
13275 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13276 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13280 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13281 shlibpath_overrides_runpath
=no
13282 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13283 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13284 hardcode_into_libs
=yes
13287 # No shared lib support for Linux oldld, aout, or coff.
13288 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13292 # This must be Linux ELF.
13293 linux
* | k
*bsd
*-gnu)
13297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298 soname_spec
='${libname}${release}${shared_ext}$major'
13299 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13300 shlibpath_var
=LD_LIBRARY_PATH
13301 shlibpath_overrides_runpath
=no
13302 # This implies no fast_install, which is unacceptable.
13303 # Some rework will be needed to allow for fast_install
13304 # before this can be enabled.
13305 hardcode_into_libs
=yes
13306 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13307 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13309 # Append ld.so.conf contents to the search path
13310 if test -f /etc
/ld.so.conf
; then
13311 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13312 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13315 # We used to test for /lib/ld.so.1 and disable shared libraries on
13316 # powerpc, because MkLinux only supported shared libraries with the
13317 # GNU dynamic linker. Since this was broken with cross compilers,
13318 # most powerpc-linux boxes support dynamic linking these days and
13319 # people can always --disable-shared, the test was removed, and we
13320 # assume the GNU/Linux dynamic linker is in use.
13321 dynamic_linker
='GNU/Linux ld.so'
13328 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13330 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13331 dynamic_linker
='NetBSD (a.out) ld.so'
13333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13334 soname_spec
='${libname}${release}${shared_ext}$major'
13335 dynamic_linker
='NetBSD ld.elf_so'
13337 shlibpath_var
=LD_LIBRARY_PATH
13338 shlibpath_overrides_runpath
=yes
13339 hardcode_into_libs
=yes
13344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13345 shlibpath_var
=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath
=yes
13353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354 soname_spec
='${libname}${release}${shared_ext}$major'
13355 shlibpath_var
=LD_LIBRARY_PATH
13356 shlibpath_overrides_runpath
=yes
13361 sys_lib_dlsearch_path_spec
="/usr/lib"
13363 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13365 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13366 *) need_version
=no
;;
13368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13369 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13370 shlibpath_var
=LD_LIBRARY_PATH
13371 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13373 openbsd2.
[89] | openbsd2.
[89].
*)
13374 shlibpath_overrides_runpath
=no
13377 shlibpath_overrides_runpath
=yes
13381 shlibpath_overrides_runpath
=yes
13386 libname_spec
='$name'
13389 library_names_spec
='$libname${shared_ext} $libname.a'
13390 dynamic_linker
='OS/2 ld.exe'
13391 shlibpath_var
=LIBPATH
13394 osf3
* | osf4
* | osf5
*)
13398 soname_spec
='${libname}${release}${shared_ext}$major'
13399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13400 shlibpath_var
=LD_LIBRARY_PATH
13401 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13402 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414 soname_spec
='${libname}${release}${shared_ext}$major'
13415 shlibpath_var
=LD_LIBRARY_PATH
13416 shlibpath_overrides_runpath
=yes
13417 hardcode_into_libs
=yes
13418 # ldd complains unless libraries are executable
13419 postinstall_cmds
='chmod +x $lib'
13424 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13425 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13426 shlibpath_var
=LD_LIBRARY_PATH
13427 shlibpath_overrides_runpath
=yes
13428 if test "$with_gnu_ld" = yes; then
13436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437 soname_spec
='${libname}${release}${shared_ext}$major'
13438 shlibpath_var
=LD_LIBRARY_PATH
13439 case $host_vendor in
13441 shlibpath_overrides_runpath
=no
13443 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13444 runpath_var
=LD_RUN_PATH
13452 shlibpath_overrides_runpath
=no
13453 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13459 if test -d /usr
/nec
;then
13461 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13462 soname_spec
='$libname${shared_ext}.$major'
13463 shlibpath_var
=LD_LIBRARY_PATH
13467 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13468 version_type
=freebsd-elf
13471 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13472 soname_spec
='${libname}${release}${shared_ext}$major'
13473 shlibpath_var
=LD_LIBRARY_PATH
13474 hardcode_into_libs
=yes
13475 if test "$with_gnu_ld" = yes; then
13476 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13477 shlibpath_overrides_runpath
=no
13479 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13480 shlibpath_overrides_runpath
=yes
13483 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13487 sys_lib_dlsearch_path_spec
='/usr/lib'
13492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13493 soname_spec
='${libname}${release}${shared_ext}$major'
13494 shlibpath_var
=LD_LIBRARY_PATH
13501 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13502 echo "${ECHO_T}$dynamic_linker" >&6; }
13503 test "$dynamic_linker" = no
&& can_build_shared
=no
13505 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13506 if test "$GCC" = yes; then
13507 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13510 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13511 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13512 hardcode_action_CXX
=
13513 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13514 test -n "$runpath_var_CXX" || \
13515 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13517 # We can hardcode non-existent directories.
13518 if test "$hardcode_direct_CXX" != no
&&
13519 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13520 # have to relink, otherwise we might link with an installed library
13521 # when we should be linking with a yet-to-be-installed one
13522 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13523 test "$hardcode_minus_L_CXX" != no
; then
13524 # Linking always hardcodes the temporary library directory.
13525 hardcode_action_CXX
=relink
13527 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13528 hardcode_action_CXX
=immediate
13531 # We cannot hardcode anything, or else we can only hardcode existing
13533 hardcode_action_CXX
=unsupported
13535 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13536 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13538 if test "$hardcode_action_CXX" = relink
; then
13539 # Fast installation is not supported
13540 enable_fast_install
=no
13541 elif test "$shlibpath_overrides_runpath" = yes ||
13542 test "$enable_shared" = no
; then
13543 # Fast installation is not necessary
13544 enable_fast_install
=needless
13548 # The else clause should only fire when bootstrapping the
13549 # libtool distribution, otherwise you forgot to ship ltmain.sh
13550 # with your package, and you will get complaints that there are
13551 # no rules to generate ltmain.sh.
13552 if test -f "$ltmain"; then
13553 # See if we are running on zsh, and set the options which allow our commands through
13554 # without removal of \ escapes.
13555 if test -n "${ZSH_VERSION+set}" ; then
13556 setopt NO_GLOB_SUBST
13558 # Now quote all the things that may contain metacharacters while being
13559 # careful not to overquote the AC_SUBSTed values. We take copies of the
13560 # variables and quote the copies for generation of the libtool script.
13561 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13563 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13564 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13565 deplibs_check_method reload_flag reload_cmds need_locks \
13566 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13567 lt_cv_sys_global_symbol_to_c_name_address \
13568 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13569 old_postinstall_cmds old_postuninstall_cmds \
13573 lt_prog_compiler_wl_CXX \
13574 lt_prog_compiler_pic_CXX \
13575 lt_prog_compiler_static_CXX \
13576 lt_prog_compiler_no_builtin_flag_CXX \
13577 export_dynamic_flag_spec_CXX \
13578 thread_safe_flag_spec_CXX \
13579 whole_archive_flag_spec_CXX \
13580 enable_shared_with_static_runtimes_CXX \
13581 old_archive_cmds_CXX \
13582 old_archive_from_new_cmds_CXX \
13583 predep_objects_CXX \
13584 postdep_objects_CXX \
13587 compiler_lib_search_path_CXX \
13589 archive_expsym_cmds_CXX \
13590 postinstall_cmds_CXX \
13591 postuninstall_cmds_CXX \
13592 old_archive_from_expsyms_cmds_CXX \
13593 allow_undefined_flag_CXX \
13594 no_undefined_flag_CXX \
13595 export_symbols_cmds_CXX \
13596 hardcode_libdir_flag_spec_CXX \
13597 hardcode_libdir_flag_spec_ld_CXX \
13598 hardcode_libdir_separator_CXX \
13599 hardcode_automatic_CXX \
13601 module_expsym_cmds_CXX \
13602 lt_cv_prog_compiler_c_o_CXX \
13603 fix_srcfile_path_CXX \
13604 exclude_expsyms_CXX \
13605 include_expsyms_CXX
; do
13608 old_archive_cmds_CXX | \
13609 old_archive_from_new_cmds_CXX | \
13610 archive_cmds_CXX | \
13611 archive_expsym_cmds_CXX | \
13612 module_cmds_CXX | \
13613 module_expsym_cmds_CXX | \
13614 old_archive_from_expsyms_cmds_CXX | \
13615 export_symbols_cmds_CXX | \
13616 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13617 postinstall_cmds | postuninstall_cmds | \
13618 old_postinstall_cmds | old_postuninstall_cmds | \
13619 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13620 # Double-quote double-evaled strings.
13621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13624 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13630 *'\$0 --fallback-echo"')
13631 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13637 cat <<__EOF__ >> "$cfgfile"
13638 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13640 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13642 # Shell to use when invoking shell scripts.
13645 # Whether or not to build shared libraries.
13646 build_libtool_libs=$enable_shared
13648 # Whether or not to build static libraries.
13649 build_old_libs=$enable_static
13651 # Whether or not to add -lc for building shared libraries.
13652 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13654 # Whether or not to disallow shared libs when runtime libs are static
13655 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13657 # Whether or not to optimize for fast installation.
13658 fast_install=$enable_fast_install
13661 host_alias=$host_alias
13665 # The build system.
13666 build_alias=$build_alias
13670 # An echo program that does not interpret backslashes.
13675 AR_FLAGS=$lt_AR_FLAGS
13680 # LTCC compiler flags.
13681 LTCFLAGS=$lt_LTCFLAGS
13683 # A language-specific compiler.
13684 CC=$lt_compiler_CXX
13686 # Is the compiler the GNU C compiler?
13692 # The linker used to build libraries.
13695 # Whether we need hard or soft links.
13698 # A BSD-compatible nm program.
13701 # A symbol stripping program
13704 # Used to examine libraries when file_magic_cmd begins "file"
13705 MAGIC_CMD=$MAGIC_CMD
13707 # Used on cygwin: DLL creation program.
13710 # Used on cygwin: object dumper.
13713 # Used on cygwin: assembler.
13716 # The name of the directory that contains temporary libtool files.
13719 # How to create reloadable object files.
13720 reload_flag=$lt_reload_flag
13721 reload_cmds=$lt_reload_cmds
13723 # How to pass a linker flag through the compiler.
13724 wl=$lt_lt_prog_compiler_wl_CXX
13726 # Object file suffix (normally "o").
13727 objext="$ac_objext"
13729 # Old archive suffix (normally "a").
13732 # Shared library suffix (normally ".so").
13733 shrext_cmds='$shrext_cmds'
13735 # Executable file suffix (normally "").
13738 # Additional compiler flags for building library objects.
13739 pic_flag=$lt_lt_prog_compiler_pic_CXX
13742 # What is the maximum length of a command?
13743 max_cmd_len=$lt_cv_sys_max_cmd_len
13745 # Does compiler simultaneously support -c and -o options?
13746 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13748 # Must we lock files when doing compilation?
13749 need_locks=$lt_need_locks
13751 # Do we need the lib prefix for modules?
13752 need_lib_prefix=$need_lib_prefix
13754 # Do we need a version for libraries?
13755 need_version=$need_version
13757 # Whether dlopen is supported.
13758 dlopen_support=$enable_dlopen
13760 # Whether dlopen of programs is supported.
13761 dlopen_self=$enable_dlopen_self
13763 # Whether dlopen of statically linked programs is supported.
13764 dlopen_self_static=$enable_dlopen_self_static
13766 # Compiler flag to prevent dynamic linking.
13767 link_static_flag=$lt_lt_prog_compiler_static_CXX
13769 # Compiler flag to turn off builtin functions.
13770 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13772 # Compiler flag to allow reflexive dlopens.
13773 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13775 # Compiler flag to generate shared objects directly from archives.
13776 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13778 # Compiler flag to generate thread-safe objects.
13779 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13781 # Library versioning type.
13782 version_type=$version_type
13784 # Format of library name prefix.
13785 libname_spec=$lt_libname_spec
13787 # List of archive names. First name is the real one, the rest are links.
13788 # The last name is the one that the linker finds with -lNAME.
13789 library_names_spec=$lt_library_names_spec
13791 # The coded name of the library, if different from the real name.
13792 soname_spec=$lt_soname_spec
13794 # Commands used to build and install an old-style archive.
13796 old_archive_cmds=$lt_old_archive_cmds_CXX
13797 old_postinstall_cmds=$lt_old_postinstall_cmds
13798 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13800 # Create an old-style archive from a shared archive.
13801 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13803 # Create a temporary old-style archive to link instead of a shared archive.
13804 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13806 # Commands used to build and install a shared archive.
13807 archive_cmds=$lt_archive_cmds_CXX
13808 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13809 postinstall_cmds=$lt_postinstall_cmds
13810 postuninstall_cmds=$lt_postuninstall_cmds
13812 # Commands used to build a loadable module (assumed same as above if empty)
13813 module_cmds=$lt_module_cmds_CXX
13814 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13816 # Commands to strip libraries.
13817 old_striplib=$lt_old_striplib
13818 striplib=$lt_striplib
13820 # Dependencies to place before the objects being linked to create a
13822 predep_objects=$lt_predep_objects_CXX
13824 # Dependencies to place after the objects being linked to create a
13826 postdep_objects=$lt_postdep_objects_CXX
13828 # Dependencies to place before the objects being linked to create a
13830 predeps=$lt_predeps_CXX
13832 # Dependencies to place after the objects being linked to create a
13834 postdeps=$lt_postdeps_CXX
13836 # The library search path used internally by the compiler when linking
13837 # a shared library.
13838 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13840 # Method to check whether dependent libraries are shared objects.
13841 deplibs_check_method=$lt_deplibs_check_method
13843 # Command to use when deplibs_check_method == file_magic.
13844 file_magic_cmd=$lt_file_magic_cmd
13846 # Flag that allows shared libraries with undefined symbols to be built.
13847 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13849 # Flag that forces no undefined symbols.
13850 no_undefined_flag=$lt_no_undefined_flag_CXX
13852 # Commands used to finish a libtool library installation in a directory.
13853 finish_cmds=$lt_finish_cmds
13855 # Same as above, but a single script fragment to be evaled but not shown.
13856 finish_eval=$lt_finish_eval
13858 # Take the output of nm and produce a listing of raw symbols and C names.
13859 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13861 # Transform the output of nm in a proper C declaration
13862 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13864 # Transform the output of nm in a C name address pair
13865 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13867 # This is the shared library runtime path variable.
13868 runpath_var=$runpath_var
13870 # This is the shared library path variable.
13871 shlibpath_var=$shlibpath_var
13873 # Is shlibpath searched before the hard-coded library search path?
13874 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13876 # How to hardcode a shared library path into an executable.
13877 hardcode_action=$hardcode_action_CXX
13879 # Whether we should hardcode library paths into libraries.
13880 hardcode_into_libs=$hardcode_into_libs
13882 # Flag to hardcode \$libdir into a binary during linking.
13883 # This must work even if \$libdir does not exist.
13884 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13886 # If ld is used when linking, flag to hardcode \$libdir into
13887 # a binary during linking. This must work even if \$libdir does
13889 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13891 # Whether we need a single -rpath flag with a separated argument.
13892 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13894 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13895 # resulting binary.
13896 hardcode_direct=$hardcode_direct_CXX
13898 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13899 # resulting binary.
13900 hardcode_minus_L=$hardcode_minus_L_CXX
13902 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13903 # the resulting binary.
13904 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13906 # Set to yes if building a shared library automatically hardcodes DIR into the library
13907 # and all subsequent libraries and executables linked against it.
13908 hardcode_automatic=$hardcode_automatic_CXX
13910 # Variables whose values should be saved in libtool wrapper scripts and
13911 # restored at relink time.
13912 variables_saved_for_relink="$variables_saved_for_relink"
13914 # Whether libtool must link a program against all its dependency libraries.
13915 link_all_deplibs=$link_all_deplibs_CXX
13917 # Compile-time system search path for libraries
13918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13920 # Run-time system search path for libraries
13921 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13923 # Fix the shell variable \$srcfile for the compiler.
13924 fix_srcfile_path=$lt_fix_srcfile_path
13926 # Set to yes if exported symbols are required.
13927 always_export_symbols=$always_export_symbols_CXX
13929 # The commands to list exported symbols.
13930 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13932 # The commands to extract the exported symbol list from a shared archive.
13933 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13935 # Symbols that should not be listed in the preloaded symbols.
13936 exclude_expsyms=$lt_exclude_expsyms_CXX
13938 # Symbols that must always be exported.
13939 include_expsyms=$lt_include_expsyms_CXX
13941 # ### END LIBTOOL TAG CONFIG: $tagname
13947 # If there is no Makefile yet, we rely on a make rule to execute
13948 # `config.status --recheck' to rerun these tests and create the
13949 # libtool script then.
13950 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13951 if test -f "$ltmain_in"; then
13952 test -f Makefile
&& make "$ltmain"
13958 ac_cpp
='$CPP $CPPFLAGS'
13959 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13967 with_gnu_ldcxx
=$with_gnu_ld
13968 with_gnu_ld
=$lt_save_with_gnu_ld
13969 lt_cv_path_LDCXX
=$lt_cv_path_LD
13970 lt_cv_path_LD
=$lt_save_path_LD
13971 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13972 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13980 if test -n "$F77" && test "X$F77" != "Xno"; then
13983 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13984 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13985 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13988 archive_cmds_need_lc_F77
=no
13989 allow_undefined_flag_F77
=
13990 always_export_symbols_F77
=no
13991 archive_expsym_cmds_F77
=
13992 export_dynamic_flag_spec_F77
=
13993 hardcode_direct_F77
=no
13994 hardcode_libdir_flag_spec_F77
=
13995 hardcode_libdir_flag_spec_ld_F77
=
13996 hardcode_libdir_separator_F77
=
13997 hardcode_minus_L_F77
=no
13998 hardcode_automatic_F77
=no
14000 module_expsym_cmds_F77
=
14001 link_all_deplibs_F77
=unknown
14002 old_archive_cmds_F77
=$old_archive_cmds
14003 no_undefined_flag_F77
=
14004 whole_archive_flag_spec_F77
=
14005 enable_shared_with_static_runtimes_F77
=no
14007 # Source file extension for f77 test sources.
14010 # Object file extension for compiled f77 test sources.
14014 # Code to be used in simple compile tests
14015 lt_simple_compile_test_code
="\
14021 # Code to be used in simple link tests
14022 lt_simple_link_test_code
="\
14027 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14029 # If no C compiler was specified, use CC.
14032 # If no C compiler flags were specified, use CFLAGS.
14033 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
14035 # Allow CC to be a program name with arguments.
14039 # save warnings/boilerplate of simple test code
14040 ac_outfile
=conftest.
$ac_objext
14041 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
14042 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14043 _lt_compiler_boilerplate
=`cat conftest.err`
14046 ac_outfile
=conftest.
$ac_objext
14047 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
14048 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14049 _lt_linker_boilerplate
=`cat conftest.err`
14053 # Allow CC to be a program name with arguments.
14058 for cc_temp
in $compiler""; do
14060 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14061 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14066 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14069 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14070 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14071 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14072 echo "${ECHO_T}$can_build_shared" >&6; }
14074 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14075 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14076 test "$can_build_shared" = "no" && enable_shared
=no
14078 # On AIX, shared libraries and static libraries use the same namespace, and
14079 # are all built from PIC.
14082 test "$enable_shared" = yes && enable_static
=no
14083 if test -n "$RANLIB"; then
14084 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
14085 postinstall_cmds
='$RANLIB $lib'
14089 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
14090 test "$enable_shared" = yes && enable_static
=no
14094 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14095 echo "${ECHO_T}$enable_shared" >&6; }
14097 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14098 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14099 # Make sure either enable_shared or enable_static is yes.
14100 test "$enable_shared" = yes || enable_static
=yes
14101 { echo "$as_me:$LINENO: result: $enable_static" >&5
14102 echo "${ECHO_T}$enable_static" >&6; }
14107 lt_prog_compiler_wl_F77
=
14108 lt_prog_compiler_pic_F77
=
14109 lt_prog_compiler_static_F77
=
14111 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14112 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14114 if test "$GCC" = yes; then
14115 lt_prog_compiler_wl_F77
='-Wl,'
14116 lt_prog_compiler_static_F77
='-static'
14120 # All AIX code is PIC.
14121 if test "$host_cpu" = ia64
; then
14122 # AIX 5 now supports IA64 processor
14123 lt_prog_compiler_static_F77
='-Bstatic'
14128 # FIXME: we need at least 68020 code to build shared libraries, but
14129 # adding the `-m68020' flag to GCC prevents building anything better,
14131 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
14134 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14135 # PIC is the default for these OSes.
14138 mingw
* | cygwin
* | pw32
* | os2
*)
14139 # This hack is so that the source file can tell whether it is being
14140 # built for inclusion in a dll (and should export symbols for example).
14141 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14142 # (--disable-auto-import) libraries
14143 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14146 darwin
* | rhapsody
*)
14147 # PIC is the default on this platform
14148 # Common symbols not allowed in MH_DYLIB files
14149 lt_prog_compiler_pic_F77
='-fno-common'
14153 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14154 # Instead, we relocate shared libraries at runtime.
14158 # Just because we use GCC doesn't mean we suddenly get shared libraries
14159 # on systems that don't support them.
14160 lt_prog_compiler_can_build_shared_F77
=no
14165 if test -d /usr
/nec
; then
14166 lt_prog_compiler_pic_F77
=-Kconform_pic
14171 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14172 # not for PA HP-UX.
14178 lt_prog_compiler_pic_F77
='-fPIC'
14184 lt_prog_compiler_pic_F77
='-fPIC'
14188 # PORTME Check for flag to pass linker flags through the system compiler.
14191 lt_prog_compiler_wl_F77
='-Wl,'
14192 if test "$host_cpu" = ia64
; then
14193 # AIX 5 now supports IA64 processor
14194 lt_prog_compiler_static_F77
='-Bstatic'
14196 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
14200 # PIC is the default on this platform
14201 # Common symbols not allowed in MH_DYLIB files
14202 case $cc_basename in
14204 lt_prog_compiler_pic_F77
='-qnocommon'
14205 lt_prog_compiler_wl_F77
='-Wl,'
14210 mingw
* | cygwin
* | pw32
* | os2
*)
14211 # This hack is so that the source file can tell whether it is being
14212 # built for inclusion in a dll (and should export symbols for example).
14213 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14216 hpux9
* | hpux10
* | hpux11
*)
14217 lt_prog_compiler_wl_F77
='-Wl,'
14218 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14219 # not for PA HP-UX.
14225 lt_prog_compiler_pic_F77
='+Z'
14228 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14229 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
14232 irix5
* | irix6
* | nonstopux
*)
14233 lt_prog_compiler_wl_F77
='-Wl,'
14234 # PIC (with -KPIC) is the default.
14235 lt_prog_compiler_static_F77
='-non_shared'
14239 lt_prog_compiler_pic_F77
='-KPIC'
14240 lt_prog_compiler_static_F77
='-Bstatic'
14243 linux
* | k
*bsd
*-gnu)
14244 case $cc_basename in
14246 lt_prog_compiler_wl_F77
='-Wl,'
14247 lt_prog_compiler_pic_F77
='-KPIC'
14248 lt_prog_compiler_static_F77
='-static'
14250 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14251 # Portland Group compilers (*not* the Pentium gcc compiler,
14252 # which looks to be a dead project)
14253 lt_prog_compiler_wl_F77
='-Wl,'
14254 lt_prog_compiler_pic_F77
='-fpic'
14255 lt_prog_compiler_static_F77
='-Bstatic'
14258 lt_prog_compiler_wl_F77
='-Wl,'
14259 # All Alpha code is PIC.
14260 lt_prog_compiler_static_F77
='-non_shared'
14263 case `$CC -V 2>&1 | sed 5q` in
14266 lt_prog_compiler_pic_F77
='-KPIC'
14267 lt_prog_compiler_static_F77
='-Bstatic'
14268 lt_prog_compiler_wl_F77
='-Wl,'
14271 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14272 lt_prog_compiler_pic_F77
='-KPIC'
14273 lt_prog_compiler_static_F77
='-Bstatic'
14274 lt_prog_compiler_wl_F77
=''
14281 osf3
* | osf4
* | osf5
*)
14282 lt_prog_compiler_wl_F77
='-Wl,'
14283 # All OSF/1 code is PIC.
14284 lt_prog_compiler_static_F77
='-non_shared'
14288 lt_prog_compiler_static_F77
='-non_shared'
14292 lt_prog_compiler_pic_F77
='-KPIC'
14293 lt_prog_compiler_static_F77
='-Bstatic'
14294 case $cc_basename in
14295 f77
* | f90
* | f95
*)
14296 lt_prog_compiler_wl_F77
='-Qoption ld ';;
14298 lt_prog_compiler_wl_F77
='-Wl,';;
14303 lt_prog_compiler_wl_F77
='-Qoption ld '
14304 lt_prog_compiler_pic_F77
='-PIC'
14305 lt_prog_compiler_static_F77
='-Bstatic'
14308 sysv4 | sysv4.2uw2
* | sysv4.3
*)
14309 lt_prog_compiler_wl_F77
='-Wl,'
14310 lt_prog_compiler_pic_F77
='-KPIC'
14311 lt_prog_compiler_static_F77
='-Bstatic'
14315 if test -d /usr
/nec
;then
14316 lt_prog_compiler_pic_F77
='-Kconform_pic'
14317 lt_prog_compiler_static_F77
='-Bstatic'
14321 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14322 lt_prog_compiler_wl_F77
='-Wl,'
14323 lt_prog_compiler_pic_F77
='-KPIC'
14324 lt_prog_compiler_static_F77
='-Bstatic'
14328 lt_prog_compiler_wl_F77
='-Wl,'
14329 lt_prog_compiler_can_build_shared_F77
=no
14333 lt_prog_compiler_pic_F77
='-pic'
14334 lt_prog_compiler_static_F77
='-Bstatic'
14338 lt_prog_compiler_can_build_shared_F77
=no
14343 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14344 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14347 # Check to make sure the PIC flag actually works.
14349 if test -n "$lt_prog_compiler_pic_F77"; then
14351 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14352 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14353 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 lt_prog_compiler_pic_works_F77
=no
14357 ac_outfile
=conftest.
$ac_objext
14358 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14359 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
14360 # Insert the option either (1) after the last *FLAGS variable, or
14361 # (2) before a word containing "conftest.", or (3) at the end.
14362 # Note that $ac_compile itself does not contain backslashes and begins
14363 # with a dollar sign (not a hyphen), so the echo should work correctly.
14364 # The option is referenced via a variable to avoid confusing sed.
14365 lt_compile
=`echo "$ac_compile" | $SED \
14366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14368 -e 's:$: $lt_compiler_flag:'`
14369 (eval echo "\"\$as_me:14369: $lt_compile\"" >&5)
14370 (eval "$lt_compile" 2>conftest.err
)
14372 cat conftest.err
>&5
14373 echo "$as_me:14373: \$? = $ac_status" >&5
14374 if (exit $ac_status) && test -s "$ac_outfile"; then
14375 # The compiler can only warn and ignore the option if not recognized
14376 # So say no if there are warnings other than the usual output.
14377 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14378 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14379 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14380 lt_prog_compiler_pic_works_F77
=yes
14386 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14387 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14389 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14390 case $lt_prog_compiler_pic_F77 in
14392 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14395 lt_prog_compiler_pic_F77
=
14396 lt_prog_compiler_can_build_shared_F77
=no
14401 # For platforms which do not support PIC, -DPIC is meaningless:
14403 lt_prog_compiler_pic_F77
=
14406 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14411 # Check to make sure the static flag actually works.
14413 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14414 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14415 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14416 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 lt_prog_compiler_static_works_F77
=no
14420 save_LDFLAGS
="$LDFLAGS"
14421 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14422 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14423 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14424 # The linker can only warn and ignore the option if not recognized
14425 # So say no if there are warnings
14426 if test -s conftest.err
; then
14427 # Append any errors to the config.log.
14428 cat conftest.err
1>&5
14429 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14430 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14431 if diff conftest.exp conftest.er2
>/dev
/null
; then
14432 lt_prog_compiler_static_works_F77
=yes
14435 lt_prog_compiler_static_works_F77
=yes
14439 LDFLAGS
="$save_LDFLAGS"
14442 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14443 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14445 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14448 lt_prog_compiler_static_F77
=
14452 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14453 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14454 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 lt_cv_prog_compiler_c_o_F77
=no
14458 $rm -r conftest
2>/dev
/null
14462 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14464 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14465 # Insert the option either (1) after the last *FLAGS variable, or
14466 # (2) before a word containing "conftest.", or (3) at the end.
14467 # Note that $ac_compile itself does not contain backslashes and begins
14468 # with a dollar sign (not a hyphen), so the echo should work correctly.
14469 lt_compile
=`echo "$ac_compile" | $SED \
14470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14472 -e 's:$: $lt_compiler_flag:'`
14473 (eval echo "\"\$as_me:14473: $lt_compile\"" >&5)
14474 (eval "$lt_compile" 2>out
/conftest.err
)
14476 cat out
/conftest.err
>&5
14477 echo "$as_me:14477: \$? = $ac_status" >&5
14478 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14480 # The compiler can only warn and ignore the option if not recognized
14481 # So say no if there are warnings
14482 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14483 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14484 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14485 lt_cv_prog_compiler_c_o_F77
=yes
14490 # SGI C++ compiler will create directory out/ii_files/ for
14491 # template instantiation
14492 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14493 $rm out
/* && rmdir out
14499 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14500 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14503 hard_links
="nottested"
14504 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14505 # do not overwrite the value of need_locks provided by the user
14506 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14507 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14510 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14512 ln conftest.a conftest.b
2>&5 || hard_links
=no
14513 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14514 { echo "$as_me:$LINENO: result: $hard_links" >&5
14515 echo "${ECHO_T}$hard_links" >&6; }
14516 if test "$hard_links" = no
; then
14517 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14518 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14525 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14526 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14529 allow_undefined_flag_F77
=
14530 enable_shared_with_static_runtimes_F77
=no
14532 archive_expsym_cmds_F77
=
14533 old_archive_From_new_cmds_F77
=
14534 old_archive_from_expsyms_cmds_F77
=
14535 export_dynamic_flag_spec_F77
=
14536 whole_archive_flag_spec_F77
=
14537 thread_safe_flag_spec_F77
=
14538 hardcode_libdir_flag_spec_F77
=
14539 hardcode_libdir_flag_spec_ld_F77
=
14540 hardcode_libdir_separator_F77
=
14541 hardcode_direct_F77
=no
14542 hardcode_minus_L_F77
=no
14543 hardcode_shlibpath_var_F77
=unsupported
14544 link_all_deplibs_F77
=unknown
14545 hardcode_automatic_F77
=no
14547 module_expsym_cmds_F77
=
14548 always_export_symbols_F77
=no
14549 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14550 # include_expsyms should be a list of space-separated symbols to be *always*
14551 # included in the symbol list
14552 include_expsyms_F77
=
14553 # exclude_expsyms can be an extended regexp of symbols to exclude
14554 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14555 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14556 # as well as any symbol that contains `d'.
14557 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14558 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14559 # platforms (ab)use it in PIC code, but their linkers get confused if
14560 # the symbol is explicitly referenced. Since portable code cannot
14561 # rely on this symbol name, it's probably fine to never include it in
14562 # preloaded symbol tables.
14563 extract_expsyms_cmds
=
14564 # Just being paranoid about ensuring that cc_basename is set.
14565 for cc_temp
in $compiler""; do
14567 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14568 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14573 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14576 cygwin
* | mingw
* | pw32
*)
14577 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14578 # When not using gcc, we currently assume that we are using
14579 # Microsoft Visual C++.
14580 if test "$GCC" != yes; then
14585 # we just hope/assume this is gcc and not c89 (= MSVC++)
14594 if test "$with_gnu_ld" = yes; then
14595 # If archive_cmds runs LD, not CC, wlarc should be empty
14598 # Set some defaults for GNU ld with shared library support. These
14599 # are reset later if shared libraries are not supported. Putting them
14600 # here allows them to be overridden if necessary.
14601 runpath_var
=LD_RUN_PATH
14602 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14603 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14604 # ancient GNU ld didn't support --whole-archive et. al.
14605 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14606 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14608 whole_archive_flag_spec_F77
=
14610 supports_anon_versioning
=no
14611 case `$LD -v 2>/dev/null` in
14612 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14613 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14614 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14615 *\
2.11.
*) ;; # other 2.11 versions
14616 *) supports_anon_versioning
=yes ;;
14619 # See if GNU ld supports shared libraries.
14621 aix3
* | aix4
* | aix5
*)
14622 # On AIX/PPC, the GNU linker is very broken
14623 if test "$host_cpu" != ia64
; then
14627 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14628 *** to be unable to reliably create shared libraries on AIX.
14629 *** Therefore, libtool is disabling shared libraries support. If you
14630 *** really care for shared libraries, you may want to modify your PATH
14631 *** so that a non-GNU linker is found, and then restart.
14638 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)'
14639 hardcode_libdir_flag_spec_F77
='-L$libdir'
14640 hardcode_minus_L_F77
=yes
14642 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14643 # that the semantics of dynamic libraries on AmigaOS, at least up
14644 # to version 4, is to share data among multiple programs linked
14645 # with the same dynamic library. Since this doesn't match the
14646 # behavior of shared libraries on other platforms, we can't use
14652 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14653 allow_undefined_flag_F77
=unsupported
14654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14655 # support --undefined. This deserves some investigation. FIXME
14656 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14662 cygwin
* | mingw
* | pw32
*)
14663 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14664 # as there is no search path for DLLs.
14665 hardcode_libdir_flag_spec_F77
='-L$libdir'
14666 allow_undefined_flag_F77
=unsupported
14667 always_export_symbols_F77
=no
14668 enable_shared_with_static_runtimes_F77
=yes
14669 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14671 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14672 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14673 # If the export-symbols file already is a .def file (1st line
14674 # is EXPORTS), use it as is; otherwise, prepend...
14675 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14676 cp $export_symbols $output_objdir/$soname.def;
14678 echo EXPORTS > $output_objdir/$soname.def;
14679 cat $export_symbols >> $output_objdir/$soname.def;
14681 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14688 hardcode_direct_F77
=no
14689 hardcode_shlibpath_var_F77
=no
14690 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14691 export_dynamic_flag_spec_F77
='${wl}-E'
14692 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14693 # Instead, shared libraries are loaded at an image base (0x10000000 by
14694 # default) and relocated if they conflict, which is a slow very memory
14695 # consuming and fragmenting process. To avoid this, we pick a random,
14696 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14697 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14698 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'
14699 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'
14702 gnu
* | linux
* | k
*bsd
*-gnu)
14703 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14705 case $cc_basename,$host_cpu in
14706 pgcc
*) # Portland Group C compiler
14707 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'
14708 tmp_addflag
=' $pic_flag'
14710 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14711 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'
14712 tmp_addflag
=' $pic_flag -Mnomain' ;;
14713 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14714 tmp_addflag
=' -i_dynamic' ;;
14715 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14716 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14717 ifc
* | ifort
*) # Intel Fortran compiler
14718 tmp_addflag
=' -nofor_main' ;;
14720 case `$CC -V 2>&1 | sed 5q` in
14721 *Sun\ C
*) # Sun C 5.9
14722 whole_archive_flag_spec_F77
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14723 tmp_sharedflag
='-G' ;;
14724 *Sun\ F
*) # Sun Fortran 8.3
14725 tmp_sharedflag
='-G' ;;
14727 tmp_sharedflag
='-shared' ;;
14729 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14731 if test $supports_anon_versioning = yes; then
14732 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14734 $echo "local: *; };" >> $output_objdir/$libname.ver~
14735 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14743 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14744 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14747 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14748 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14753 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14757 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14758 *** create shared libraries on Solaris systems. Therefore, libtool
14759 *** is disabling shared libraries support. We urge you to upgrade GNU
14760 *** binutils to release 2.9.1 or newer. Another option is to modify
14761 *** your PATH or compiler configuration so that the native linker is
14762 *** used, and then restart.
14765 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14766 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14767 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14773 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14774 case `$LD -v 2>&1` in
14775 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14779 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14780 *** reliably create shared libraries on SCO systems. Therefore, libtool
14781 *** is disabling shared libraries support. We urge you to upgrade GNU
14782 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14783 *** your PATH or compiler configuration so that the native linker is
14784 *** used, and then restart.
14789 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14790 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14791 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14792 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14801 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_direct_F77
=yes
14804 hardcode_shlibpath_var_F77
=no
14808 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14809 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14810 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14817 if test "$ld_shlibs_F77" = no
; then
14819 hardcode_libdir_flag_spec_F77
=
14820 export_dynamic_flag_spec_F77
=
14821 whole_archive_flag_spec_F77
=
14824 # PORTME fill in a description of your system's linker (not GNU ld)
14827 allow_undefined_flag_F77
=unsupported
14828 always_export_symbols_F77
=yes
14829 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'
14830 # Note: this linker hardcodes the directories in LIBPATH if there
14831 # are no directories specified by -L.
14832 hardcode_minus_L_F77
=yes
14833 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14834 # Neither direct hardcoding nor static linking is supported with a
14836 hardcode_direct_F77
=unsupported
14841 if test "$host_cpu" = ia64
; then
14842 # On IA64, the linker does run time linking by default, so we don't
14843 # have to do anything special.
14844 aix_use_runtimelinking
=no
14845 exp_sym_flag
='-Bexport'
14848 # If we're using GNU nm, then we don't want the "-C" option.
14849 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14850 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14851 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'
14853 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'
14855 aix_use_runtimelinking
=no
14857 # Test if we are trying to use run time linking or normal
14858 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14859 # need to do runtime linking.
14860 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14861 for ld_flag
in $LDFLAGS; do
14862 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14863 aix_use_runtimelinking
=yes
14870 exp_sym_flag
='-bexport'
14871 no_entry_flag
='-bnoentry'
14874 # When large executables or shared objects are built, AIX ld can
14875 # have problems creating the table of contents. If linking a library
14876 # or program results in "error TOC overflow" add -mminimal-toc to
14877 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14878 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14880 archive_cmds_F77
=''
14881 hardcode_direct_F77
=yes
14882 hardcode_libdir_separator_F77
=':'
14883 link_all_deplibs_F77
=yes
14885 if test "$GCC" = yes; then
14886 case $host_os in aix4.
[012]|aix4.
[012].
*)
14887 # We only want to do this on AIX 4.2 and lower, the check
14888 # below for broken collect2 doesn't work under 4.3+
14889 collect2name
=`${CC} -print-prog-name=collect2`
14890 if test -f "$collect2name" && \
14891 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14893 # We have reworked collect2
14896 # We have old collect2
14897 hardcode_direct_F77
=unsupported
14898 # It fails to find uninstalled libraries when the uninstalled
14899 # path is not listed in the libpath. Setting hardcode_minus_L
14900 # to unsupported forces relinking
14901 hardcode_minus_L_F77
=yes
14902 hardcode_libdir_flag_spec_F77
='-L$libdir'
14903 hardcode_libdir_separator_F77
=
14907 shared_flag
='-shared'
14908 if test "$aix_use_runtimelinking" = yes; then
14909 shared_flag
="$shared_flag "'${wl}-G'
14913 if test "$host_cpu" = ia64
; then
14914 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14915 # chokes on -Wl,-G. The following line is correct:
14918 if test "$aix_use_runtimelinking" = yes; then
14919 shared_flag
='${wl}-G'
14921 shared_flag
='${wl}-bM:SRE'
14926 # It seems that -bexpall does not export symbols beginning with
14927 # underscore (_), so it is better to generate a list of symbols to export.
14928 always_export_symbols_F77
=yes
14929 if test "$aix_use_runtimelinking" = yes; then
14930 # Warning - without using the other runtime loading flags (-brtl),
14931 # -berok will link without error, but may produce a broken library.
14932 allow_undefined_flag_F77
='-berok'
14933 # Determine the default libpath from the value encoded in an empty executable.
14934 cat >conftest.
$ac_ext <<_ACEOF
14939 rm -f conftest.
$ac_objext conftest
$ac_exeext
14940 if { (ac_try
="$ac_link"
14941 case "(($ac_try" in
14942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_link") 2>conftest.er1
14948 grep -v '^ *+' conftest.er1 >conftest.err
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } && {
14953 test -z "$ac_f77_werror_flag" ||
14954 test ! -s conftest.err
14955 } && test -s conftest$ac_exeext &&
14956 $as_test_x conftest$ac_exeext; then
14958 lt_aix_libpath_sed='
14959 /Import File Strings/,/^$/ {
14965 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14966 # Check for a 64-bit object if we didn't find anything.
14967 if test -z "$aix_libpath"; then
14968 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14978 conftest$ac_exeext conftest.$ac_ext
14979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14981 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14982 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"
14984 if test "$host_cpu" = ia64; then
14985 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14986 allow_undefined_flag_F77="-z nodefs"
14987 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"
14989 # Determine the default libpath from the value encoded in an empty executable.
14990 cat >conftest.$ac_ext <<_ACEOF
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (ac_try="$ac_link"
14997 case "(($ac_try" in
14998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14999 *) ac_try_echo
=$ac_try;;
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_link") 2>conftest.er1
15004 grep -v '^ *+' conftest.er1
>conftest.err
15006 cat conftest.err
>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } && {
15009 test -z "$ac_f77_werror_flag" ||
15010 test ! -s conftest.err
15011 } && test -s conftest
$ac_exeext &&
15012 $as_test_x conftest
$ac_exeext; then
15014 lt_aix_libpath_sed
='
15015 /Import File Strings/,/^$/ {
15021 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15022 # Check for a 64-bit object if we didn't find anything.
15023 if test -z "$aix_libpath"; then
15024 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.
$ac_ext >&5
15033 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15034 conftest
$ac_exeext conftest.
$ac_ext
15035 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15037 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
15038 # Warning - without using the other run time loading flags,
15039 # -berok will link without error, but may produce a broken library.
15040 no_undefined_flag_F77
=' ${wl}-bernotok'
15041 allow_undefined_flag_F77
=' ${wl}-berok'
15042 # Exported symbols can be pulled into shared objects from archives
15043 whole_archive_flag_spec_F77
='$convenience'
15044 archive_cmds_need_lc_F77
=yes
15045 # This is similar to how AIX traditionally builds its shared libraries.
15046 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'
15052 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)'
15053 hardcode_libdir_flag_spec_F77
='-L$libdir'
15054 hardcode_minus_L_F77
=yes
15055 # see comment about different semantics on the GNU ld section
15060 export_dynamic_flag_spec_F77
=-rdynamic
15063 cygwin
* | mingw
* | pw32
*)
15064 # When not using gcc, we currently assume that we are using
15065 # Microsoft Visual C++.
15066 # hardcode_libdir_flag_spec is actually meaningless, as there is
15067 # no search path for DLLs.
15068 hardcode_libdir_flag_spec_F77
=' '
15069 allow_undefined_flag_F77
=unsupported
15070 # Tell ltmain to make .lib files, not .a files.
15072 # Tell ltmain to make .dll files, not .so files.
15074 # FIXME: Setting linknames here is a bad hack.
15075 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15076 # The linker will automatically build a .lib file if we build a DLL.
15077 old_archive_From_new_cmds_F77
='true'
15078 # FIXME: Should let the user specify the lib program.
15079 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15080 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
15081 enable_shared_with_static_runtimes_F77
=yes
15084 darwin
* | rhapsody
*)
15086 rhapsody
* | darwin1.
[012])
15087 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
15090 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15091 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15093 case ${MACOSX_DEPLOYMENT_TARGET} in
15095 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15098 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
15104 archive_cmds_need_lc_F77
=no
15105 hardcode_direct_F77
=no
15106 hardcode_automatic_F77
=yes
15107 hardcode_shlibpath_var_F77
=unsupported
15108 whole_archive_flag_spec_F77
=''
15109 link_all_deplibs_F77
=yes
15110 if test "$GCC" = yes ; then
15111 output_verbose_link_cmd
='echo'
15112 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15113 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15115 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}'
15116 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}'
15118 case $cc_basename in
15120 output_verbose_link_cmd
='echo'
15121 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15122 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15124 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15125 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}'
15135 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136 hardcode_libdir_flag_spec_F77
='-L$libdir'
15137 hardcode_shlibpath_var_F77
=no
15144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15145 # support. Future versions do this automatically, but an explicit c++rt0.o
15146 # does not break anything, and helps significantly (at the cost of a little
15149 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15150 hardcode_libdir_flag_spec_F77
='-R$libdir'
15151 hardcode_direct_F77
=yes
15152 hardcode_shlibpath_var_F77
=no
15155 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15157 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15158 hardcode_direct_F77
=yes
15159 hardcode_minus_L_F77
=yes
15160 hardcode_shlibpath_var_F77
=no
15163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15164 freebsd
* | dragonfly
*)
15165 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15166 hardcode_libdir_flag_spec_F77
='-R$libdir'
15167 hardcode_direct_F77
=yes
15168 hardcode_shlibpath_var_F77
=no
15172 if test "$GCC" = yes; then
15173 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'
15175 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'
15177 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15178 hardcode_libdir_separator_F77
=:
15179 hardcode_direct_F77
=yes
15181 # hardcode_minus_L: Not really in the search PATH,
15182 # but as the default location of the library.
15183 hardcode_minus_L_F77
=yes
15184 export_dynamic_flag_spec_F77
='${wl}-E'
15188 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15189 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15191 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15193 if test "$with_gnu_ld" = no
; then
15194 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15195 hardcode_libdir_separator_F77
=:
15197 hardcode_direct_F77
=yes
15198 export_dynamic_flag_spec_F77
='${wl}-E'
15200 # hardcode_minus_L: Not really in the search PATH,
15201 # but as the default location of the library.
15202 hardcode_minus_L_F77
=yes
15207 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15210 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15213 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15216 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15222 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15225 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15228 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15232 if test "$with_gnu_ld" = no
; then
15233 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15234 hardcode_libdir_separator_F77
=:
15238 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
15239 hardcode_direct_F77
=no
15240 hardcode_shlibpath_var_F77
=no
15243 hardcode_direct_F77
=yes
15244 export_dynamic_flag_spec_F77
='${wl}-E'
15246 # hardcode_minus_L: Not really in the search PATH,
15247 # but as the default location of the library.
15248 hardcode_minus_L_F77
=yes
15254 irix5
* | irix6
* | nonstopux
*)
15255 if test "$GCC" = yes; then
15256 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'
15258 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'
15259 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
15261 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15262 hardcode_libdir_separator_F77
=:
15263 link_all_deplibs_F77
=yes
15267 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15268 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15270 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15272 hardcode_libdir_flag_spec_F77
='-R$libdir'
15273 hardcode_direct_F77
=yes
15274 hardcode_shlibpath_var_F77
=no
15278 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15279 hardcode_direct_F77
=yes
15280 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15281 hardcode_libdir_separator_F77
=:
15282 hardcode_shlibpath_var_F77
=no
15286 if test -f /usr
/libexec
/ld.so
; then
15287 hardcode_direct_F77
=yes
15288 hardcode_shlibpath_var_F77
=no
15289 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15290 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15291 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15292 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15293 export_dynamic_flag_spec_F77
='${wl}-E'
15296 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15297 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15298 hardcode_libdir_flag_spec_F77
='-R$libdir'
15301 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15302 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15312 hardcode_libdir_flag_spec_F77
='-L$libdir'
15313 hardcode_minus_L_F77
=yes
15314 allow_undefined_flag_F77
=unsupported
15315 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'
15316 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15320 if test "$GCC" = yes; then
15321 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15322 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'
15324 allow_undefined_flag_F77
=' -expect_unresolved \*'
15325 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'
15327 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15328 hardcode_libdir_separator_F77
=:
15331 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15332 if test "$GCC" = yes; then
15333 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15334 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'
15335 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15337 allow_undefined_flag_F77
=' -expect_unresolved \*'
15338 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'
15339 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~
15340 $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'
15342 # Both c and cxx compiler support -rpath directly
15343 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
15345 hardcode_libdir_separator_F77
=:
15349 no_undefined_flag_F77
=' -z text'
15350 if test "$GCC" = yes; then
15352 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15353 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15354 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15357 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15358 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15359 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15361 hardcode_libdir_flag_spec_F77
='-R$libdir'
15362 hardcode_shlibpath_var_F77
=no
15364 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15366 # The compiler driver will combine and reorder linker options,
15367 # but understands `-z linker_flag'. GCC discards it without `$wl',
15368 # but is careful enough not to reorder.
15369 # Supported since Solaris 2.6 (maybe 2.5.1?)
15370 if test "$GCC" = yes; then
15371 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15373 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
15377 link_all_deplibs_F77
=yes
15381 if test "x$host_vendor" = xsequent
; then
15382 # Use $CC to link under sequent, because it throws in some extra .o
15383 # files that make .init and .fini sections work.
15384 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15386 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15388 hardcode_libdir_flag_spec_F77
='-L$libdir'
15389 hardcode_direct_F77
=yes
15390 hardcode_minus_L_F77
=yes
15391 hardcode_shlibpath_var_F77
=no
15395 case $host_vendor in
15397 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15398 hardcode_direct_F77
=yes # is this really true???
15401 ## LD is ld it makes a PLAMLIB
15402 ## CC just makes a GrossModule.
15403 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15404 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15405 hardcode_direct_F77
=no
15408 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15409 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15412 runpath_var
='LD_RUN_PATH'
15413 hardcode_shlibpath_var_F77
=no
15417 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15418 hardcode_shlibpath_var_F77
=no
15419 export_dynamic_flag_spec_F77
='-Bexport'
15423 if test -d /usr
/nec
; then
15424 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15425 hardcode_shlibpath_var_F77
=no
15426 runpath_var
=LD_RUN_PATH
15427 hardcode_runpath_var
=yes
15432 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15433 no_undefined_flag_F77
='${wl}-z,text'
15434 archive_cmds_need_lc_F77
=no
15435 hardcode_shlibpath_var_F77
=no
15436 runpath_var
='LD_RUN_PATH'
15438 if test "$GCC" = yes; then
15439 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15440 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15442 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15443 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15447 sysv5
* | sco3.2v5
* | sco5v6
*)
15448 # Note: We can NOT use -z defs as we might desire, because we do not
15449 # link with -lc, and that would cause any symbols used from libc to
15450 # always be unresolved, which means just about no library would
15451 # ever link correctly. If we're not using GNU ld we use -z text
15452 # though, which does catch some bad symbols but isn't as heavy-handed
15454 no_undefined_flag_F77
='${wl}-z,text'
15455 allow_undefined_flag_F77
='${wl}-z,nodefs'
15456 archive_cmds_need_lc_F77
=no
15457 hardcode_shlibpath_var_F77
=no
15458 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15459 hardcode_libdir_separator_F77
=':'
15460 link_all_deplibs_F77
=yes
15461 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15462 runpath_var
='LD_RUN_PATH'
15464 if test "$GCC" = yes; then
15465 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15466 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15468 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15474 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15475 hardcode_libdir_flag_spec_F77
='-L$libdir'
15476 hardcode_shlibpath_var_F77
=no
15485 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15486 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15487 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15490 # Do we need to explicitly link libc?
15492 case "x$archive_cmds_need_lc_F77" in
15494 # Assume -lc should be added
15495 archive_cmds_need_lc_F77
=yes
15497 if test "$enable_shared" = yes && test "$GCC" = yes; then
15498 case $archive_cmds_F77 in
15500 # FIXME: we may have to deal with multi-command sequences.
15503 # Test whether the compiler implicitly links with -lc since on some
15504 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15505 # to ld, don't add -lc before -lgcc.
15506 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15507 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15509 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15512 (eval $ac_compile) 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } 2>conftest.err
; then
15518 libobjs
=conftest.
$ac_objext
15520 wl
=$lt_prog_compiler_wl_F77
15521 pic_flag
=$lt_prog_compiler_pic_F77
15527 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15528 allow_undefined_flag_F77
=
15529 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15530 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }
15535 archive_cmds_need_lc_F77
=no
15537 archive_cmds_need_lc_F77
=yes
15539 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15541 cat conftest.err
1>&5
15544 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15545 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15552 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15553 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15554 library_names_spec
=
15555 libname_spec
='lib$name'
15559 postuninstall_cmds
=
15563 shlibpath_overrides_runpath
=unknown
15565 dynamic_linker
="$host_os ld.so"
15566 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15568 need_lib_prefix
=unknown
15569 hardcode_into_libs
=no
15571 # when you set need_version to no, make sure it does not cause -set_version
15572 # flags to be left without arguments
15573 need_version
=unknown
15578 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15579 shlibpath_var
=LIBPATH
15581 # AIX 3 has no versioning support, so we append a major version to the name.
15582 soname_spec
='${libname}${release}${shared_ext}$major'
15589 hardcode_into_libs
=yes
15590 if test "$host_cpu" = ia64
; then
15591 # AIX 5 supports IA64
15592 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15593 shlibpath_var
=LD_LIBRARY_PATH
15595 # With GCC up to 2.95.x, collect2 would create an import file
15596 # for dependence libraries. The import file would start with
15597 # the line `#! .'. This would cause the generated library to
15598 # depend on `.', always an invalid library. This was fixed in
15599 # development snapshots of GCC prior to 3.0.
15601 aix4 | aix4.
[01] | aix4.
[01].
*)
15602 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15604 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15607 can_build_shared
=no
15611 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15612 # soname into executable. Probably we can add versioning support to
15613 # collect2, so additional links can be useful in future.
15614 if test "$aix_use_runtimelinking" = yes; then
15615 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15616 # instead of lib<name>.a to let people know that these are not
15617 # typical AIX shared libraries.
15618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 # We preserve .a as extension for shared libraries through AIX4.2
15621 # and later when we are not doing run time linking.
15622 library_names_spec
='${libname}${release}.a $libname.a'
15623 soname_spec
='${libname}${release}${shared_ext}$major'
15625 shlibpath_var
=LIBPATH
15630 library_names_spec
='$libname.ixlibrary $libname.a'
15631 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15632 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'
15636 library_names_spec
='${libname}${shared_ext}'
15637 dynamic_linker
="$host_os ld.so"
15638 shlibpath_var
=LIBRARY_PATH
15644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec
='${libname}${release}${shared_ext}$major'
15646 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15647 shlibpath_var
=LD_LIBRARY_PATH
15648 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15649 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15650 # the default ld.so.conf also contains /usr/contrib/lib and
15651 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15652 # libtool to hard-code these into programs
15655 cygwin
* | mingw
* | pw32
*)
15656 version_type
=windows
15661 case $GCC,$host_os in
15662 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15663 library_names_spec
='$libname.dll.a'
15664 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15665 postinstall_cmds
='base_file=`basename \${file}`~
15666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15667 dldir=$destdir/`dirname \$dlpath`~
15668 test -d \$dldir || mkdir -p \$dldir~
15669 $install_prog $dir/$dlname \$dldir/$dlname~
15670 chmod a+x \$dldir/$dlname'
15671 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15672 dlpath=$dir/\$dldll~
15674 shlibpath_overrides_runpath
=yes
15678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15679 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15680 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15683 # MinGW DLLs use traditional 'lib' prefix
15684 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15685 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15686 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15687 # It is most probably a Windows format PATH printed by
15688 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15689 # path with ; separators, and with drive letters. We can handle the
15690 # drive letters (cygwin fileutils understands them), so leave them,
15691 # especially as we might pass files found there to a mingw objdump,
15692 # which wouldn't understand a cygwinified path. Ahh.
15693 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15695 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15699 # pw32 DLLs use 'pw' prefix rather than 'lib'
15700 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15706 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15709 dynamic_linker
='Win32 ld.exe'
15710 # FIXME: first we should search . and the directory the executable is in
15714 darwin
* | rhapsody
*)
15715 dynamic_linker
="$host_os dyld"
15716 version_type
=darwin
15719 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15720 soname_spec
='${libname}${release}${major}$shared_ext'
15721 shlibpath_overrides_runpath
=yes
15722 shlibpath_var
=DYLD_LIBRARY_PATH
15723 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15725 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15733 soname_spec
='${libname}${release}${shared_ext}$major'
15734 shlibpath_var
=LD_LIBRARY_PATH
15741 freebsd
* | dragonfly
*)
15742 # DragonFly does not have aout. When/if they implement a new
15743 # versioning mechanism, adjust this.
15744 if test -x /usr
/bin
/objformat
; then
15745 objformat
=`/usr/bin/objformat`
15748 freebsd
[123]*) objformat
=aout
;;
15749 *) objformat
=elf
;;
15752 version_type
=freebsd-
$objformat
15753 case $version_type in
15755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15760 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15764 shlibpath_var
=LD_LIBRARY_PATH
15767 shlibpath_overrides_runpath
=yes
15769 freebsd3.
[01]* | freebsdelf3.
[01]*)
15770 shlibpath_overrides_runpath
=yes
15771 hardcode_into_libs
=yes
15773 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15774 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15775 shlibpath_overrides_runpath
=no
15776 hardcode_into_libs
=yes
15778 *) # from 4.6 on, and DragonFly
15779 shlibpath_overrides_runpath
=yes
15780 hardcode_into_libs
=yes
15789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15790 soname_spec
='${libname}${release}${shared_ext}$major'
15791 shlibpath_var
=LD_LIBRARY_PATH
15792 hardcode_into_libs
=yes
15795 hpux9
* | hpux10
* | hpux11
*)
15796 # Give a soname corresponding to the major version so that dld.sl refuses to
15797 # link against other versions.
15804 hardcode_into_libs
=yes
15805 dynamic_linker
="$host_os dld.so"
15806 shlibpath_var
=LD_LIBRARY_PATH
15807 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15808 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15809 soname_spec
='${libname}${release}${shared_ext}$major'
15810 if test "X$HPUX_IA64_MODE" = X32
; then
15811 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15813 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15815 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15819 hardcode_into_libs
=yes
15820 dynamic_linker
="$host_os dld.sl"
15821 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15822 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15824 soname_spec
='${libname}${release}${shared_ext}$major'
15825 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15826 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15830 dynamic_linker
="$host_os dld.sl"
15831 shlibpath_var
=SHLIB_PATH
15832 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 soname_spec
='${libname}${release}${shared_ext}$major'
15837 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15838 postinstall_cmds
='chmod 555 $lib'
15845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15846 soname_spec
='${libname}${release}${shared_ext}$major'
15847 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15848 shlibpath_var
=LD_LIBRARY_PATH
15849 shlibpath_overrides_runpath
=no
15850 hardcode_into_libs
=yes
15853 irix5
* | irix6
* | nonstopux
*)
15855 nonstopux
*) version_type
=nonstopux
;;
15857 if test "$lt_cv_prog_gnu_ld" = yes; then
15865 soname_spec
='${libname}${release}${shared_ext}$major'
15866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15868 irix5
* | nonstopux
*)
15869 libsuff
= shlibsuff
=
15872 case $LD in # libtool.m4 will add one of these switches to LD
15873 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15874 libsuff
= shlibsuff
= libmagic
=32-bit;;
15875 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15876 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15877 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15878 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15879 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15883 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15884 shlibpath_overrides_runpath
=no
15885 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15886 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15887 hardcode_into_libs
=yes
15890 # No shared lib support for Linux oldld, aout, or coff.
15891 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15895 # This must be Linux ELF.
15896 linux
* | k
*bsd
*-gnu)
15900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901 soname_spec
='${libname}${release}${shared_ext}$major'
15902 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15903 shlibpath_var
=LD_LIBRARY_PATH
15904 shlibpath_overrides_runpath
=no
15905 # This implies no fast_install, which is unacceptable.
15906 # Some rework will be needed to allow for fast_install
15907 # before this can be enabled.
15908 hardcode_into_libs
=yes
15909 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15910 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15912 # Append ld.so.conf contents to the search path
15913 if test -f /etc
/ld.so.conf
; then
15914 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15915 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15918 # We used to test for /lib/ld.so.1 and disable shared libraries on
15919 # powerpc, because MkLinux only supported shared libraries with the
15920 # GNU dynamic linker. Since this was broken with cross compilers,
15921 # most powerpc-linux boxes support dynamic linking these days and
15922 # people can always --disable-shared, the test was removed, and we
15923 # assume the GNU/Linux dynamic linker is in use.
15924 dynamic_linker
='GNU/Linux ld.so'
15931 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15933 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15934 dynamic_linker
='NetBSD (a.out) ld.so'
15936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15937 soname_spec
='${libname}${release}${shared_ext}$major'
15938 dynamic_linker
='NetBSD ld.elf_so'
15940 shlibpath_var
=LD_LIBRARY_PATH
15941 shlibpath_overrides_runpath
=yes
15942 hardcode_into_libs
=yes
15947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 shlibpath_var
=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath
=yes
15956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15957 soname_spec
='${libname}${release}${shared_ext}$major'
15958 shlibpath_var
=LD_LIBRARY_PATH
15959 shlibpath_overrides_runpath
=yes
15964 sys_lib_dlsearch_path_spec
="/usr/lib"
15966 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15968 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15969 *) need_version
=no
;;
15971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15972 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15973 shlibpath_var
=LD_LIBRARY_PATH
15974 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15976 openbsd2.
[89] | openbsd2.
[89].
*)
15977 shlibpath_overrides_runpath
=no
15980 shlibpath_overrides_runpath
=yes
15984 shlibpath_overrides_runpath
=yes
15989 libname_spec
='$name'
15992 library_names_spec
='$libname${shared_ext} $libname.a'
15993 dynamic_linker
='OS/2 ld.exe'
15994 shlibpath_var
=LIBPATH
15997 osf3
* | osf4
* | osf5
*)
16001 soname_spec
='${libname}${release}${shared_ext}$major'
16002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003 shlibpath_var
=LD_LIBRARY_PATH
16004 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16005 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16017 soname_spec
='${libname}${release}${shared_ext}$major'
16018 shlibpath_var
=LD_LIBRARY_PATH
16019 shlibpath_overrides_runpath
=yes
16020 hardcode_into_libs
=yes
16021 # ldd complains unless libraries are executable
16022 postinstall_cmds
='chmod +x $lib'
16027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16028 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16029 shlibpath_var
=LD_LIBRARY_PATH
16030 shlibpath_overrides_runpath
=yes
16031 if test "$with_gnu_ld" = yes; then
16039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040 soname_spec
='${libname}${release}${shared_ext}$major'
16041 shlibpath_var
=LD_LIBRARY_PATH
16042 case $host_vendor in
16044 shlibpath_overrides_runpath
=no
16046 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16047 runpath_var
=LD_RUN_PATH
16055 shlibpath_overrides_runpath
=no
16056 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16062 if test -d /usr
/nec
;then
16064 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16065 soname_spec
='$libname${shared_ext}.$major'
16066 shlibpath_var
=LD_LIBRARY_PATH
16070 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16071 version_type
=freebsd-elf
16074 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16075 soname_spec
='${libname}${release}${shared_ext}$major'
16076 shlibpath_var
=LD_LIBRARY_PATH
16077 hardcode_into_libs
=yes
16078 if test "$with_gnu_ld" = yes; then
16079 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16080 shlibpath_overrides_runpath
=no
16082 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16083 shlibpath_overrides_runpath
=yes
16086 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16090 sys_lib_dlsearch_path_spec
='/usr/lib'
16095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096 soname_spec
='${libname}${release}${shared_ext}$major'
16097 shlibpath_var
=LD_LIBRARY_PATH
16104 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16105 echo "${ECHO_T}$dynamic_linker" >&6; }
16106 test "$dynamic_linker" = no
&& can_build_shared
=no
16108 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16109 if test "$GCC" = yes; then
16110 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16113 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16114 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16115 hardcode_action_F77
=
16116 if test -n "$hardcode_libdir_flag_spec_F77" || \
16117 test -n "$runpath_var_F77" || \
16118 test "X$hardcode_automatic_F77" = "Xyes" ; then
16120 # We can hardcode non-existent directories.
16121 if test "$hardcode_direct_F77" != no
&&
16122 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16123 # have to relink, otherwise we might link with an installed library
16124 # when we should be linking with a yet-to-be-installed one
16125 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16126 test "$hardcode_minus_L_F77" != no
; then
16127 # Linking always hardcodes the temporary library directory.
16128 hardcode_action_F77
=relink
16130 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16131 hardcode_action_F77
=immediate
16134 # We cannot hardcode anything, or else we can only hardcode existing
16136 hardcode_action_F77
=unsupported
16138 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16139 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16141 if test "$hardcode_action_F77" = relink
; then
16142 # Fast installation is not supported
16143 enable_fast_install
=no
16144 elif test "$shlibpath_overrides_runpath" = yes ||
16145 test "$enable_shared" = no
; then
16146 # Fast installation is not necessary
16147 enable_fast_install
=needless
16151 # The else clause should only fire when bootstrapping the
16152 # libtool distribution, otherwise you forgot to ship ltmain.sh
16153 # with your package, and you will get complaints that there are
16154 # no rules to generate ltmain.sh.
16155 if test -f "$ltmain"; then
16156 # See if we are running on zsh, and set the options which allow our commands through
16157 # without removal of \ escapes.
16158 if test -n "${ZSH_VERSION+set}" ; then
16159 setopt NO_GLOB_SUBST
16161 # Now quote all the things that may contain metacharacters while being
16162 # careful not to overquote the AC_SUBSTed values. We take copies of the
16163 # variables and quote the copies for generation of the libtool script.
16164 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16166 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16167 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16168 deplibs_check_method reload_flag reload_cmds need_locks \
16169 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16170 lt_cv_sys_global_symbol_to_c_name_address \
16171 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16172 old_postinstall_cmds old_postuninstall_cmds \
16176 lt_prog_compiler_wl_F77 \
16177 lt_prog_compiler_pic_F77 \
16178 lt_prog_compiler_static_F77 \
16179 lt_prog_compiler_no_builtin_flag_F77 \
16180 export_dynamic_flag_spec_F77 \
16181 thread_safe_flag_spec_F77 \
16182 whole_archive_flag_spec_F77 \
16183 enable_shared_with_static_runtimes_F77 \
16184 old_archive_cmds_F77 \
16185 old_archive_from_new_cmds_F77 \
16186 predep_objects_F77 \
16187 postdep_objects_F77 \
16190 compiler_lib_search_path_F77 \
16192 archive_expsym_cmds_F77 \
16193 postinstall_cmds_F77 \
16194 postuninstall_cmds_F77 \
16195 old_archive_from_expsyms_cmds_F77 \
16196 allow_undefined_flag_F77 \
16197 no_undefined_flag_F77 \
16198 export_symbols_cmds_F77 \
16199 hardcode_libdir_flag_spec_F77 \
16200 hardcode_libdir_flag_spec_ld_F77 \
16201 hardcode_libdir_separator_F77 \
16202 hardcode_automatic_F77 \
16204 module_expsym_cmds_F77 \
16205 lt_cv_prog_compiler_c_o_F77 \
16206 fix_srcfile_path_F77 \
16207 exclude_expsyms_F77 \
16208 include_expsyms_F77
; do
16211 old_archive_cmds_F77 | \
16212 old_archive_from_new_cmds_F77 | \
16213 archive_cmds_F77 | \
16214 archive_expsym_cmds_F77 | \
16215 module_cmds_F77 | \
16216 module_expsym_cmds_F77 | \
16217 old_archive_from_expsyms_cmds_F77 | \
16218 export_symbols_cmds_F77 | \
16219 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16220 postinstall_cmds | postuninstall_cmds | \
16221 old_postinstall_cmds | old_postuninstall_cmds | \
16222 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
16223 # Double-quote double-evaled strings.
16224 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16233 *'\$0 --fallback-echo"')
16234 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16240 cat <<__EOF__ >> "$cfgfile"
16241 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16245 # Shell to use when invoking shell scripts.
16248 # Whether or not to build shared libraries.
16249 build_libtool_libs=$enable_shared
16251 # Whether or not to build static libraries.
16252 build_old_libs=$enable_static
16254 # Whether or not to add -lc for building shared libraries.
16255 build_libtool_need_lc=$archive_cmds_need_lc_F77
16257 # Whether or not to disallow shared libs when runtime libs are static
16258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16260 # Whether or not to optimize for fast installation.
16261 fast_install=$enable_fast_install
16264 host_alias=$host_alias
16268 # The build system.
16269 build_alias=$build_alias
16273 # An echo program that does not interpret backslashes.
16278 AR_FLAGS=$lt_AR_FLAGS
16283 # LTCC compiler flags.
16284 LTCFLAGS=$lt_LTCFLAGS
16286 # A language-specific compiler.
16287 CC=$lt_compiler_F77
16289 # Is the compiler the GNU C compiler?
16295 # The linker used to build libraries.
16298 # Whether we need hard or soft links.
16301 # A BSD-compatible nm program.
16304 # A symbol stripping program
16307 # Used to examine libraries when file_magic_cmd begins "file"
16308 MAGIC_CMD=$MAGIC_CMD
16310 # Used on cygwin: DLL creation program.
16313 # Used on cygwin: object dumper.
16316 # Used on cygwin: assembler.
16319 # The name of the directory that contains temporary libtool files.
16322 # How to create reloadable object files.
16323 reload_flag=$lt_reload_flag
16324 reload_cmds=$lt_reload_cmds
16326 # How to pass a linker flag through the compiler.
16327 wl=$lt_lt_prog_compiler_wl_F77
16329 # Object file suffix (normally "o").
16330 objext="$ac_objext"
16332 # Old archive suffix (normally "a").
16335 # Shared library suffix (normally ".so").
16336 shrext_cmds='$shrext_cmds'
16338 # Executable file suffix (normally "").
16341 # Additional compiler flags for building library objects.
16342 pic_flag=$lt_lt_prog_compiler_pic_F77
16345 # What is the maximum length of a command?
16346 max_cmd_len=$lt_cv_sys_max_cmd_len
16348 # Does compiler simultaneously support -c and -o options?
16349 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16351 # Must we lock files when doing compilation?
16352 need_locks=$lt_need_locks
16354 # Do we need the lib prefix for modules?
16355 need_lib_prefix=$need_lib_prefix
16357 # Do we need a version for libraries?
16358 need_version=$need_version
16360 # Whether dlopen is supported.
16361 dlopen_support=$enable_dlopen
16363 # Whether dlopen of programs is supported.
16364 dlopen_self=$enable_dlopen_self
16366 # Whether dlopen of statically linked programs is supported.
16367 dlopen_self_static=$enable_dlopen_self_static
16369 # Compiler flag to prevent dynamic linking.
16370 link_static_flag=$lt_lt_prog_compiler_static_F77
16372 # Compiler flag to turn off builtin functions.
16373 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16375 # Compiler flag to allow reflexive dlopens.
16376 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16378 # Compiler flag to generate shared objects directly from archives.
16379 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16381 # Compiler flag to generate thread-safe objects.
16382 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16384 # Library versioning type.
16385 version_type=$version_type
16387 # Format of library name prefix.
16388 libname_spec=$lt_libname_spec
16390 # List of archive names. First name is the real one, the rest are links.
16391 # The last name is the one that the linker finds with -lNAME.
16392 library_names_spec=$lt_library_names_spec
16394 # The coded name of the library, if different from the real name.
16395 soname_spec=$lt_soname_spec
16397 # Commands used to build and install an old-style archive.
16399 old_archive_cmds=$lt_old_archive_cmds_F77
16400 old_postinstall_cmds=$lt_old_postinstall_cmds
16401 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16403 # Create an old-style archive from a shared archive.
16404 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16406 # Create a temporary old-style archive to link instead of a shared archive.
16407 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16409 # Commands used to build and install a shared archive.
16410 archive_cmds=$lt_archive_cmds_F77
16411 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16412 postinstall_cmds=$lt_postinstall_cmds
16413 postuninstall_cmds=$lt_postuninstall_cmds
16415 # Commands used to build a loadable module (assumed same as above if empty)
16416 module_cmds=$lt_module_cmds_F77
16417 module_expsym_cmds=$lt_module_expsym_cmds_F77
16419 # Commands to strip libraries.
16420 old_striplib=$lt_old_striplib
16421 striplib=$lt_striplib
16423 # Dependencies to place before the objects being linked to create a
16425 predep_objects=$lt_predep_objects_F77
16427 # Dependencies to place after the objects being linked to create a
16429 postdep_objects=$lt_postdep_objects_F77
16431 # Dependencies to place before the objects being linked to create a
16433 predeps=$lt_predeps_F77
16435 # Dependencies to place after the objects being linked to create a
16437 postdeps=$lt_postdeps_F77
16439 # The library search path used internally by the compiler when linking
16440 # a shared library.
16441 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16443 # Method to check whether dependent libraries are shared objects.
16444 deplibs_check_method=$lt_deplibs_check_method
16446 # Command to use when deplibs_check_method == file_magic.
16447 file_magic_cmd=$lt_file_magic_cmd
16449 # Flag that allows shared libraries with undefined symbols to be built.
16450 allow_undefined_flag=$lt_allow_undefined_flag_F77
16452 # Flag that forces no undefined symbols.
16453 no_undefined_flag=$lt_no_undefined_flag_F77
16455 # Commands used to finish a libtool library installation in a directory.
16456 finish_cmds=$lt_finish_cmds
16458 # Same as above, but a single script fragment to be evaled but not shown.
16459 finish_eval=$lt_finish_eval
16461 # Take the output of nm and produce a listing of raw symbols and C names.
16462 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16464 # Transform the output of nm in a proper C declaration
16465 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16467 # Transform the output of nm in a C name address pair
16468 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16470 # This is the shared library runtime path variable.
16471 runpath_var=$runpath_var
16473 # This is the shared library path variable.
16474 shlibpath_var=$shlibpath_var
16476 # Is shlibpath searched before the hard-coded library search path?
16477 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16479 # How to hardcode a shared library path into an executable.
16480 hardcode_action=$hardcode_action_F77
16482 # Whether we should hardcode library paths into libraries.
16483 hardcode_into_libs=$hardcode_into_libs
16485 # Flag to hardcode \$libdir into a binary during linking.
16486 # This must work even if \$libdir does not exist.
16487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16489 # If ld is used when linking, flag to hardcode \$libdir into
16490 # a binary during linking. This must work even if \$libdir does
16492 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16494 # Whether we need a single -rpath flag with a separated argument.
16495 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16497 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16498 # resulting binary.
16499 hardcode_direct=$hardcode_direct_F77
16501 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16502 # resulting binary.
16503 hardcode_minus_L=$hardcode_minus_L_F77
16505 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16506 # the resulting binary.
16507 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16509 # Set to yes if building a shared library automatically hardcodes DIR into the library
16510 # and all subsequent libraries and executables linked against it.
16511 hardcode_automatic=$hardcode_automatic_F77
16513 # Variables whose values should be saved in libtool wrapper scripts and
16514 # restored at relink time.
16515 variables_saved_for_relink="$variables_saved_for_relink"
16517 # Whether libtool must link a program against all its dependency libraries.
16518 link_all_deplibs=$link_all_deplibs_F77
16520 # Compile-time system search path for libraries
16521 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16523 # Run-time system search path for libraries
16524 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16526 # Fix the shell variable \$srcfile for the compiler.
16527 fix_srcfile_path=$lt_fix_srcfile_path
16529 # Set to yes if exported symbols are required.
16530 always_export_symbols=$always_export_symbols_F77
16532 # The commands to list exported symbols.
16533 export_symbols_cmds=$lt_export_symbols_cmds_F77
16535 # The commands to extract the exported symbol list from a shared archive.
16536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16538 # Symbols that should not be listed in the preloaded symbols.
16539 exclude_expsyms=$lt_exclude_expsyms_F77
16541 # Symbols that must always be exported.
16542 include_expsyms=$lt_include_expsyms_F77
16544 # ### END LIBTOOL TAG CONFIG: $tagname
16550 # If there is no Makefile yet, we rely on a make rule to execute
16551 # `config.status --recheck' to rerun these tests and create the
16552 # libtool script then.
16553 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16554 if test -f "$ltmain_in"; then
16555 test -f Makefile
&& make "$ltmain"
16561 ac_cpp
='$CPP $CPPFLAGS'
16562 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16563 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16564 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16574 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16577 # Source file extension for Java test sources.
16580 # Object file extension for compiled Java test sources.
16584 # Code to be used in simple compile tests
16585 lt_simple_compile_test_code
="class foo {}"
16587 # Code to be used in simple link tests
16588 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
16590 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16592 # If no C compiler was specified, use CC.
16595 # If no C compiler flags were specified, use CFLAGS.
16596 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16598 # Allow CC to be a program name with arguments.
16602 # save warnings/boilerplate of simple test code
16603 ac_outfile
=conftest.
$ac_objext
16604 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16605 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16606 _lt_compiler_boilerplate
=`cat conftest.err`
16609 ac_outfile
=conftest.
$ac_objext
16610 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16611 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16612 _lt_linker_boilerplate
=`cat conftest.err`
16616 # Allow CC to be a program name with arguments.
16621 for cc_temp
in $compiler""; do
16623 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16624 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16629 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16632 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16633 archive_cmds_need_lc_GCJ
=no
16635 old_archive_cmds_GCJ
=$old_archive_cmds
16638 lt_prog_compiler_no_builtin_flag_GCJ
=
16640 if test "$GCC" = yes; then
16641 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16644 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16645 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16646 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 lt_cv_prog_compiler_rtti_exceptions
=no
16650 ac_outfile
=conftest.
$ac_objext
16651 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16652 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16653 # Insert the option either (1) after the last *FLAGS variable, or
16654 # (2) before a word containing "conftest.", or (3) at the end.
16655 # Note that $ac_compile itself does not contain backslashes and begins
16656 # with a dollar sign (not a hyphen), so the echo should work correctly.
16657 # The option is referenced via a variable to avoid confusing sed.
16658 lt_compile
=`echo "$ac_compile" | $SED \
16659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16661 -e 's:$: $lt_compiler_flag:'`
16662 (eval echo "\"\$as_me:16662: $lt_compile\"" >&5)
16663 (eval "$lt_compile" 2>conftest.err
)
16665 cat conftest.err
>&5
16666 echo "$as_me:16666: \$? = $ac_status" >&5
16667 if (exit $ac_status) && test -s "$ac_outfile"; then
16668 # The compiler can only warn and ignore the option if not recognized
16669 # So say no if there are warnings other than the usual output.
16670 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16671 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16672 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16673 lt_cv_prog_compiler_rtti_exceptions
=yes
16679 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16680 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16682 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16683 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16690 lt_prog_compiler_wl_GCJ
=
16691 lt_prog_compiler_pic_GCJ
=
16692 lt_prog_compiler_static_GCJ
=
16694 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16695 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16697 if test "$GCC" = yes; then
16698 lt_prog_compiler_wl_GCJ
='-Wl,'
16699 lt_prog_compiler_static_GCJ
='-static'
16703 # All AIX code is PIC.
16704 if test "$host_cpu" = ia64
; then
16705 # AIX 5 now supports IA64 processor
16706 lt_prog_compiler_static_GCJ
='-Bstatic'
16711 # FIXME: we need at least 68020 code to build shared libraries, but
16712 # adding the `-m68020' flag to GCC prevents building anything better,
16714 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16717 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16718 # PIC is the default for these OSes.
16721 mingw
* | cygwin
* | pw32
* | os2
*)
16722 # This hack is so that the source file can tell whether it is being
16723 # built for inclusion in a dll (and should export symbols for example).
16724 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16725 # (--disable-auto-import) libraries
16726 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16729 darwin
* | rhapsody
*)
16730 # PIC is the default on this platform
16731 # Common symbols not allowed in MH_DYLIB files
16732 lt_prog_compiler_pic_GCJ
='-fno-common'
16736 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16737 # Instead, we relocate shared libraries at runtime.
16741 # Just because we use GCC doesn't mean we suddenly get shared libraries
16742 # on systems that don't support them.
16743 lt_prog_compiler_can_build_shared_GCJ
=no
16748 if test -d /usr
/nec
; then
16749 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16755 # not for PA HP-UX.
16761 lt_prog_compiler_pic_GCJ
='-fPIC'
16767 lt_prog_compiler_pic_GCJ
='-fPIC'
16771 # PORTME Check for flag to pass linker flags through the system compiler.
16774 lt_prog_compiler_wl_GCJ
='-Wl,'
16775 if test "$host_cpu" = ia64
; then
16776 # AIX 5 now supports IA64 processor
16777 lt_prog_compiler_static_GCJ
='-Bstatic'
16779 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16783 # PIC is the default on this platform
16784 # Common symbols not allowed in MH_DYLIB files
16785 case $cc_basename in
16787 lt_prog_compiler_pic_GCJ
='-qnocommon'
16788 lt_prog_compiler_wl_GCJ
='-Wl,'
16793 mingw
* | cygwin
* | pw32
* | os2
*)
16794 # This hack is so that the source file can tell whether it is being
16795 # built for inclusion in a dll (and should export symbols for example).
16796 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16799 hpux9
* | hpux10
* | hpux11
*)
16800 lt_prog_compiler_wl_GCJ
='-Wl,'
16801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16802 # not for PA HP-UX.
16808 lt_prog_compiler_pic_GCJ
='+Z'
16811 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16812 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16815 irix5
* | irix6
* | nonstopux
*)
16816 lt_prog_compiler_wl_GCJ
='-Wl,'
16817 # PIC (with -KPIC) is the default.
16818 lt_prog_compiler_static_GCJ
='-non_shared'
16822 lt_prog_compiler_pic_GCJ
='-KPIC'
16823 lt_prog_compiler_static_GCJ
='-Bstatic'
16826 linux
* | k
*bsd
*-gnu)
16827 case $cc_basename in
16829 lt_prog_compiler_wl_GCJ
='-Wl,'
16830 lt_prog_compiler_pic_GCJ
='-KPIC'
16831 lt_prog_compiler_static_GCJ
='-static'
16833 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16834 # Portland Group compilers (*not* the Pentium gcc compiler,
16835 # which looks to be a dead project)
16836 lt_prog_compiler_wl_GCJ
='-Wl,'
16837 lt_prog_compiler_pic_GCJ
='-fpic'
16838 lt_prog_compiler_static_GCJ
='-Bstatic'
16841 lt_prog_compiler_wl_GCJ
='-Wl,'
16842 # All Alpha code is PIC.
16843 lt_prog_compiler_static_GCJ
='-non_shared'
16846 case `$CC -V 2>&1 | sed 5q` in
16849 lt_prog_compiler_pic_GCJ
='-KPIC'
16850 lt_prog_compiler_static_GCJ
='-Bstatic'
16851 lt_prog_compiler_wl_GCJ
='-Wl,'
16854 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16855 lt_prog_compiler_pic_GCJ
='-KPIC'
16856 lt_prog_compiler_static_GCJ
='-Bstatic'
16857 lt_prog_compiler_wl_GCJ
=''
16864 osf3
* | osf4
* | osf5
*)
16865 lt_prog_compiler_wl_GCJ
='-Wl,'
16866 # All OSF/1 code is PIC.
16867 lt_prog_compiler_static_GCJ
='-non_shared'
16871 lt_prog_compiler_static_GCJ
='-non_shared'
16875 lt_prog_compiler_pic_GCJ
='-KPIC'
16876 lt_prog_compiler_static_GCJ
='-Bstatic'
16877 case $cc_basename in
16878 f77
* | f90
* | f95
*)
16879 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16881 lt_prog_compiler_wl_GCJ
='-Wl,';;
16886 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16887 lt_prog_compiler_pic_GCJ
='-PIC'
16888 lt_prog_compiler_static_GCJ
='-Bstatic'
16891 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16892 lt_prog_compiler_wl_GCJ
='-Wl,'
16893 lt_prog_compiler_pic_GCJ
='-KPIC'
16894 lt_prog_compiler_static_GCJ
='-Bstatic'
16898 if test -d /usr
/nec
;then
16899 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16900 lt_prog_compiler_static_GCJ
='-Bstatic'
16904 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16905 lt_prog_compiler_wl_GCJ
='-Wl,'
16906 lt_prog_compiler_pic_GCJ
='-KPIC'
16907 lt_prog_compiler_static_GCJ
='-Bstatic'
16911 lt_prog_compiler_wl_GCJ
='-Wl,'
16912 lt_prog_compiler_can_build_shared_GCJ
=no
16916 lt_prog_compiler_pic_GCJ
='-pic'
16917 lt_prog_compiler_static_GCJ
='-Bstatic'
16921 lt_prog_compiler_can_build_shared_GCJ
=no
16926 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16927 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16930 # Check to make sure the PIC flag actually works.
16932 if test -n "$lt_prog_compiler_pic_GCJ"; then
16934 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16935 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16936 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 lt_prog_compiler_pic_works_GCJ
=no
16940 ac_outfile
=conftest.
$ac_objext
16941 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16942 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16943 # Insert the option either (1) after the last *FLAGS variable, or
16944 # (2) before a word containing "conftest.", or (3) at the end.
16945 # Note that $ac_compile itself does not contain backslashes and begins
16946 # with a dollar sign (not a hyphen), so the echo should work correctly.
16947 # The option is referenced via a variable to avoid confusing sed.
16948 lt_compile
=`echo "$ac_compile" | $SED \
16949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16951 -e 's:$: $lt_compiler_flag:'`
16952 (eval echo "\"\$as_me:16952: $lt_compile\"" >&5)
16953 (eval "$lt_compile" 2>conftest.err
)
16955 cat conftest.err
>&5
16956 echo "$as_me:16956: \$? = $ac_status" >&5
16957 if (exit $ac_status) && test -s "$ac_outfile"; then
16958 # The compiler can only warn and ignore the option if not recognized
16959 # So say no if there are warnings other than the usual output.
16960 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16961 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16962 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16963 lt_prog_compiler_pic_works_GCJ
=yes
16969 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16970 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16972 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16973 case $lt_prog_compiler_pic_GCJ in
16975 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16978 lt_prog_compiler_pic_GCJ
=
16979 lt_prog_compiler_can_build_shared_GCJ
=no
16984 # For platforms which do not support PIC, -DPIC is meaningless:
16986 lt_prog_compiler_pic_GCJ
=
16989 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16994 # Check to make sure the static flag actually works.
16996 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16997 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16998 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16999 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 lt_prog_compiler_static_works_GCJ
=no
17003 save_LDFLAGS
="$LDFLAGS"
17004 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17005 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17006 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17007 # The linker can only warn and ignore the option if not recognized
17008 # So say no if there are warnings
17009 if test -s conftest.err
; then
17010 # Append any errors to the config.log.
17011 cat conftest.err
1>&5
17012 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17013 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17014 if diff conftest.exp conftest.er2
>/dev
/null
; then
17015 lt_prog_compiler_static_works_GCJ
=yes
17018 lt_prog_compiler_static_works_GCJ
=yes
17022 LDFLAGS
="$save_LDFLAGS"
17025 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17026 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17028 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
17031 lt_prog_compiler_static_GCJ
=
17035 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17036 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17037 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 lt_cv_prog_compiler_c_o_GCJ
=no
17041 $rm -r conftest
2>/dev
/null
17045 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17047 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17048 # Insert the option either (1) after the last *FLAGS variable, or
17049 # (2) before a word containing "conftest.", or (3) at the end.
17050 # Note that $ac_compile itself does not contain backslashes and begins
17051 # with a dollar sign (not a hyphen), so the echo should work correctly.
17052 lt_compile
=`echo "$ac_compile" | $SED \
17053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17055 -e 's:$: $lt_compiler_flag:'`
17056 (eval echo "\"\$as_me:17056: $lt_compile\"" >&5)
17057 (eval "$lt_compile" 2>out
/conftest.err
)
17059 cat out
/conftest.err
>&5
17060 echo "$as_me:17060: \$? = $ac_status" >&5
17061 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17063 # The compiler can only warn and ignore the option if not recognized
17064 # So say no if there are warnings
17065 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17066 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17067 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17068 lt_cv_prog_compiler_c_o_GCJ
=yes
17073 # SGI C++ compiler will create directory out/ii_files/ for
17074 # template instantiation
17075 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
17076 $rm out
/* && rmdir out
17082 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17083 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17086 hard_links
="nottested"
17087 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
17088 # do not overwrite the value of need_locks provided by the user
17089 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17090 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17093 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17095 ln conftest.a conftest.b
2>&5 || hard_links
=no
17096 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17097 { echo "$as_me:$LINENO: result: $hard_links" >&5
17098 echo "${ECHO_T}$hard_links" >&6; }
17099 if test "$hard_links" = no
; then
17100 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17101 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17108 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17109 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17112 allow_undefined_flag_GCJ
=
17113 enable_shared_with_static_runtimes_GCJ
=no
17115 archive_expsym_cmds_GCJ
=
17116 old_archive_From_new_cmds_GCJ
=
17117 old_archive_from_expsyms_cmds_GCJ
=
17118 export_dynamic_flag_spec_GCJ
=
17119 whole_archive_flag_spec_GCJ
=
17120 thread_safe_flag_spec_GCJ
=
17121 hardcode_libdir_flag_spec_GCJ
=
17122 hardcode_libdir_flag_spec_ld_GCJ
=
17123 hardcode_libdir_separator_GCJ
=
17124 hardcode_direct_GCJ
=no
17125 hardcode_minus_L_GCJ
=no
17126 hardcode_shlibpath_var_GCJ
=unsupported
17127 link_all_deplibs_GCJ
=unknown
17128 hardcode_automatic_GCJ
=no
17130 module_expsym_cmds_GCJ
=
17131 always_export_symbols_GCJ
=no
17132 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17133 # include_expsyms should be a list of space-separated symbols to be *always*
17134 # included in the symbol list
17135 include_expsyms_GCJ
=
17136 # exclude_expsyms can be an extended regexp of symbols to exclude
17137 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17138 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17139 # as well as any symbol that contains `d'.
17140 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
17141 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17142 # platforms (ab)use it in PIC code, but their linkers get confused if
17143 # the symbol is explicitly referenced. Since portable code cannot
17144 # rely on this symbol name, it's probably fine to never include it in
17145 # preloaded symbol tables.
17146 extract_expsyms_cmds
=
17147 # Just being paranoid about ensuring that cc_basename is set.
17148 for cc_temp
in $compiler""; do
17150 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17151 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17156 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17159 cygwin
* | mingw
* | pw32
*)
17160 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17161 # When not using gcc, we currently assume that we are using
17162 # Microsoft Visual C++.
17163 if test "$GCC" != yes; then
17168 # we just hope/assume this is gcc and not c89 (= MSVC++)
17177 if test "$with_gnu_ld" = yes; then
17178 # If archive_cmds runs LD, not CC, wlarc should be empty
17181 # Set some defaults for GNU ld with shared library support. These
17182 # are reset later if shared libraries are not supported. Putting them
17183 # here allows them to be overridden if necessary.
17184 runpath_var
=LD_RUN_PATH
17185 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
17186 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
17187 # ancient GNU ld didn't support --whole-archive et. al.
17188 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
17189 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17191 whole_archive_flag_spec_GCJ
=
17193 supports_anon_versioning
=no
17194 case `$LD -v 2>/dev/null` in
17195 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17196 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17197 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17198 *\
2.11.
*) ;; # other 2.11 versions
17199 *) supports_anon_versioning
=yes ;;
17202 # See if GNU ld supports shared libraries.
17204 aix3
* | aix4
* | aix5
*)
17205 # On AIX/PPC, the GNU linker is very broken
17206 if test "$host_cpu" != ia64
; then
17210 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17211 *** to be unable to reliably create shared libraries on AIX.
17212 *** Therefore, libtool is disabling shared libraries support. If you
17213 *** really care for shared libraries, you may want to modify your PATH
17214 *** so that a non-GNU linker is found, and then restart.
17221 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)'
17222 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17223 hardcode_minus_L_GCJ
=yes
17225 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17226 # that the semantics of dynamic libraries on AmigaOS, at least up
17227 # to version 4, is to share data among multiple programs linked
17228 # with the same dynamic library. Since this doesn't match the
17229 # behavior of shared libraries on other platforms, we can't use
17235 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17236 allow_undefined_flag_GCJ
=unsupported
17237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17238 # support --undefined. This deserves some investigation. FIXME
17239 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17245 cygwin
* | mingw
* | pw32
*)
17246 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17247 # as there is no search path for DLLs.
17248 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17249 allow_undefined_flag_GCJ
=unsupported
17250 always_export_symbols_GCJ
=no
17251 enable_shared_with_static_runtimes_GCJ
=yes
17252 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17254 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
17255 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17256 # If the export-symbols file already is a .def file (1st line
17257 # is EXPORTS), use it as is; otherwise, prepend...
17258 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17259 cp $export_symbols $output_objdir/$soname.def;
17261 echo EXPORTS > $output_objdir/$soname.def;
17262 cat $export_symbols >> $output_objdir/$soname.def;
17264 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17271 hardcode_direct_GCJ
=no
17272 hardcode_shlibpath_var_GCJ
=no
17273 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17274 export_dynamic_flag_spec_GCJ
='${wl}-E'
17275 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17276 # Instead, shared libraries are loaded at an image base (0x10000000 by
17277 # default) and relocated if they conflict, which is a slow very memory
17278 # consuming and fragmenting process. To avoid this, we pick a random,
17279 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17280 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17281 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'
17282 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'
17285 gnu
* | linux
* | k
*bsd
*-gnu)
17286 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17288 case $cc_basename,$host_cpu in
17289 pgcc
*) # Portland Group C compiler
17290 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'
17291 tmp_addflag
=' $pic_flag'
17293 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17294 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'
17295 tmp_addflag
=' $pic_flag -Mnomain' ;;
17296 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17297 tmp_addflag
=' -i_dynamic' ;;
17298 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17299 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17300 ifc
* | ifort
*) # Intel Fortran compiler
17301 tmp_addflag
=' -nofor_main' ;;
17303 case `$CC -V 2>&1 | sed 5q` in
17304 *Sun\ C
*) # Sun C 5.9
17305 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17306 tmp_sharedflag
='-G' ;;
17307 *Sun\ F
*) # Sun Fortran 8.3
17308 tmp_sharedflag
='-G' ;;
17310 tmp_sharedflag
='-shared' ;;
17312 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17314 if test $supports_anon_versioning = yes; then
17315 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
17316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17317 $echo "local: *; };" >> $output_objdir/$libname.ver~
17318 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17326 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17327 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17330 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17331 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17336 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
17340 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17341 *** create shared libraries on Solaris systems. Therefore, libtool
17342 *** is disabling shared libraries support. We urge you to upgrade GNU
17343 *** binutils to release 2.9.1 or newer. Another option is to modify
17344 *** your PATH or compiler configuration so that the native linker is
17345 *** used, and then restart.
17348 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17349 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17350 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17356 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17357 case `$LD -v 2>&1` in
17358 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17362 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17363 *** reliably create shared libraries on SCO systems. Therefore, libtool
17364 *** is disabling shared libraries support. We urge you to upgrade GNU
17365 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17366 *** your PATH or compiler configuration so that the native linker is
17367 *** used, and then restart.
17372 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17373 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17374 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17375 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17384 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17386 hardcode_direct_GCJ
=yes
17387 hardcode_shlibpath_var_GCJ
=no
17391 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17392 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17393 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17400 if test "$ld_shlibs_GCJ" = no
; then
17402 hardcode_libdir_flag_spec_GCJ
=
17403 export_dynamic_flag_spec_GCJ
=
17404 whole_archive_flag_spec_GCJ
=
17407 # PORTME fill in a description of your system's linker (not GNU ld)
17410 allow_undefined_flag_GCJ
=unsupported
17411 always_export_symbols_GCJ
=yes
17412 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'
17413 # Note: this linker hardcodes the directories in LIBPATH if there
17414 # are no directories specified by -L.
17415 hardcode_minus_L_GCJ
=yes
17416 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17417 # Neither direct hardcoding nor static linking is supported with a
17419 hardcode_direct_GCJ
=unsupported
17424 if test "$host_cpu" = ia64
; then
17425 # On IA64, the linker does run time linking by default, so we don't
17426 # have to do anything special.
17427 aix_use_runtimelinking
=no
17428 exp_sym_flag
='-Bexport'
17431 # If we're using GNU nm, then we don't want the "-C" option.
17432 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17433 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17434 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'
17436 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'
17438 aix_use_runtimelinking
=no
17440 # Test if we are trying to use run time linking or normal
17441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17442 # need to do runtime linking.
17443 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17444 for ld_flag
in $LDFLAGS; do
17445 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17446 aix_use_runtimelinking
=yes
17453 exp_sym_flag
='-bexport'
17454 no_entry_flag
='-bnoentry'
17457 # When large executables or shared objects are built, AIX ld can
17458 # have problems creating the table of contents. If linking a library
17459 # or program results in "error TOC overflow" add -mminimal-toc to
17460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17463 archive_cmds_GCJ
=''
17464 hardcode_direct_GCJ
=yes
17465 hardcode_libdir_separator_GCJ
=':'
17466 link_all_deplibs_GCJ
=yes
17468 if test "$GCC" = yes; then
17469 case $host_os in aix4.
[012]|aix4.
[012].
*)
17470 # We only want to do this on AIX 4.2 and lower, the check
17471 # below for broken collect2 doesn't work under 4.3+
17472 collect2name
=`${CC} -print-prog-name=collect2`
17473 if test -f "$collect2name" && \
17474 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17476 # We have reworked collect2
17479 # We have old collect2
17480 hardcode_direct_GCJ
=unsupported
17481 # It fails to find uninstalled libraries when the uninstalled
17482 # path is not listed in the libpath. Setting hardcode_minus_L
17483 # to unsupported forces relinking
17484 hardcode_minus_L_GCJ
=yes
17485 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17486 hardcode_libdir_separator_GCJ
=
17490 shared_flag
='-shared'
17491 if test "$aix_use_runtimelinking" = yes; then
17492 shared_flag
="$shared_flag "'${wl}-G'
17496 if test "$host_cpu" = ia64
; then
17497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17498 # chokes on -Wl,-G. The following line is correct:
17501 if test "$aix_use_runtimelinking" = yes; then
17502 shared_flag
='${wl}-G'
17504 shared_flag
='${wl}-bM:SRE'
17509 # It seems that -bexpall does not export symbols beginning with
17510 # underscore (_), so it is better to generate a list of symbols to export.
17511 always_export_symbols_GCJ
=yes
17512 if test "$aix_use_runtimelinking" = yes; then
17513 # Warning - without using the other runtime loading flags (-brtl),
17514 # -berok will link without error, but may produce a broken library.
17515 allow_undefined_flag_GCJ
='-berok'
17516 # Determine the default libpath from the value encoded in an empty executable.
17517 cat >conftest.
$ac_ext <<_ACEOF
17520 cat confdefs.h
>>conftest.
$ac_ext
17521 cat >>conftest.
$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17532 rm -f conftest.
$ac_objext conftest
$ac_exeext
17533 if { (ac_try
="$ac_link"
17534 case "(($ac_try" in
17535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && {
17546 test -z "$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17548 } && test -s conftest$ac_exeext &&
17549 $as_test_x conftest$ac_exeext; then
17551 lt_aix_libpath_sed='
17552 /Import File Strings/,/^$/ {
17558 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17559 # Check for a 64-bit object if we didn't find anything.
17560 if test -z "$aix_libpath"; then
17561 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17564 echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17571 conftest$ac_exeext conftest.$ac_ext
17572 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17574 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17575 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"
17577 if test "$host_cpu" = ia64; then
17578 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17579 allow_undefined_flag_GCJ="-z nodefs"
17580 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"
17582 # Determine the default libpath from the value encoded in an empty executable.
17583 cat >conftest.$ac_ext <<_ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17598 rm -f conftest.$ac_objext conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17602 *) ac_try_echo
=$ac_try;;
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_link") 2>conftest.er1
17607 grep -v '^ *+' conftest.er1
>conftest.err
17609 cat conftest.err
>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } && {
17612 test -z "$ac_c_werror_flag" ||
17613 test ! -s conftest.err
17614 } && test -s conftest
$ac_exeext &&
17615 $as_test_x conftest
$ac_exeext; then
17617 lt_aix_libpath_sed
='
17618 /Import File Strings/,/^$/ {
17624 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17625 # Check for a 64-bit object if we didn't find anything.
17626 if test -z "$aix_libpath"; then
17627 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.
$ac_ext >&5
17636 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17637 conftest
$ac_exeext conftest.
$ac_ext
17638 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17640 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17641 # Warning - without using the other run time loading flags,
17642 # -berok will link without error, but may produce a broken library.
17643 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17644 allow_undefined_flag_GCJ
=' ${wl}-berok'
17645 # Exported symbols can be pulled into shared objects from archives
17646 whole_archive_flag_spec_GCJ
='$convenience'
17647 archive_cmds_need_lc_GCJ
=yes
17648 # This is similar to how AIX traditionally builds its shared libraries.
17649 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'
17655 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)'
17656 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17657 hardcode_minus_L_GCJ
=yes
17658 # see comment about different semantics on the GNU ld section
17663 export_dynamic_flag_spec_GCJ
=-rdynamic
17666 cygwin
* | mingw
* | pw32
*)
17667 # When not using gcc, we currently assume that we are using
17668 # Microsoft Visual C++.
17669 # hardcode_libdir_flag_spec is actually meaningless, as there is
17670 # no search path for DLLs.
17671 hardcode_libdir_flag_spec_GCJ
=' '
17672 allow_undefined_flag_GCJ
=unsupported
17673 # Tell ltmain to make .lib files, not .a files.
17675 # Tell ltmain to make .dll files, not .so files.
17677 # FIXME: Setting linknames here is a bad hack.
17678 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17679 # The linker will automatically build a .lib file if we build a DLL.
17680 old_archive_From_new_cmds_GCJ
='true'
17681 # FIXME: Should let the user specify the lib program.
17682 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17683 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17684 enable_shared_with_static_runtimes_GCJ
=yes
17687 darwin
* | rhapsody
*)
17689 rhapsody
* | darwin1.
[012])
17690 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17693 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17694 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17696 case ${MACOSX_DEPLOYMENT_TARGET} in
17698 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17701 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17707 archive_cmds_need_lc_GCJ
=no
17708 hardcode_direct_GCJ
=no
17709 hardcode_automatic_GCJ
=yes
17710 hardcode_shlibpath_var_GCJ
=unsupported
17711 whole_archive_flag_spec_GCJ
=''
17712 link_all_deplibs_GCJ
=yes
17713 if test "$GCC" = yes ; then
17714 output_verbose_link_cmd
='echo'
17715 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17716 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17718 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}'
17719 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}'
17721 case $cc_basename in
17723 output_verbose_link_cmd
='echo'
17724 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17725 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17726 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17727 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17728 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}'
17738 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17740 hardcode_shlibpath_var_GCJ
=no
17747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17748 # support. Future versions do this automatically, but an explicit c++rt0.o
17749 # does not break anything, and helps significantly (at the cost of a little
17752 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17753 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17754 hardcode_direct_GCJ
=yes
17755 hardcode_shlibpath_var_GCJ
=no
17758 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17760 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17761 hardcode_direct_GCJ
=yes
17762 hardcode_minus_L_GCJ
=yes
17763 hardcode_shlibpath_var_GCJ
=no
17766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17767 freebsd
* | dragonfly
*)
17768 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17769 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17770 hardcode_direct_GCJ
=yes
17771 hardcode_shlibpath_var_GCJ
=no
17775 if test "$GCC" = yes; then
17776 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'
17778 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'
17780 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17781 hardcode_libdir_separator_GCJ
=:
17782 hardcode_direct_GCJ
=yes
17784 # hardcode_minus_L: Not really in the search PATH,
17785 # but as the default location of the library.
17786 hardcode_minus_L_GCJ
=yes
17787 export_dynamic_flag_spec_GCJ
='${wl}-E'
17791 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17792 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17794 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17796 if test "$with_gnu_ld" = no
; then
17797 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17798 hardcode_libdir_separator_GCJ
=:
17800 hardcode_direct_GCJ
=yes
17801 export_dynamic_flag_spec_GCJ
='${wl}-E'
17803 # hardcode_minus_L: Not really in the search PATH,
17804 # but as the default location of the library.
17805 hardcode_minus_L_GCJ
=yes
17810 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17813 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17816 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17819 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17825 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17828 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17831 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17835 if test "$with_gnu_ld" = no
; then
17836 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17837 hardcode_libdir_separator_GCJ
=:
17841 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17842 hardcode_direct_GCJ
=no
17843 hardcode_shlibpath_var_GCJ
=no
17846 hardcode_direct_GCJ
=yes
17847 export_dynamic_flag_spec_GCJ
='${wl}-E'
17849 # hardcode_minus_L: Not really in the search PATH,
17850 # but as the default location of the library.
17851 hardcode_minus_L_GCJ
=yes
17857 irix5
* | irix6
* | nonstopux
*)
17858 if test "$GCC" = yes; then
17859 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'
17861 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'
17862 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17864 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17865 hardcode_libdir_separator_GCJ
=:
17866 link_all_deplibs_GCJ
=yes
17870 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17871 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17873 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17875 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17876 hardcode_direct_GCJ
=yes
17877 hardcode_shlibpath_var_GCJ
=no
17881 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17882 hardcode_direct_GCJ
=yes
17883 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17884 hardcode_libdir_separator_GCJ
=:
17885 hardcode_shlibpath_var_GCJ
=no
17889 if test -f /usr
/libexec
/ld.so
; then
17890 hardcode_direct_GCJ
=yes
17891 hardcode_shlibpath_var_GCJ
=no
17892 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17893 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17894 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17895 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17896 export_dynamic_flag_spec_GCJ
='${wl}-E'
17899 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17900 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17901 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17904 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17905 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17915 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17916 hardcode_minus_L_GCJ
=yes
17917 allow_undefined_flag_GCJ
=unsupported
17918 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'
17919 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17923 if test "$GCC" = yes; then
17924 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17925 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'
17927 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17928 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'
17930 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17931 hardcode_libdir_separator_GCJ
=:
17934 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17935 if test "$GCC" = yes; then
17936 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17937 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'
17938 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17940 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17941 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'
17942 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~
17943 $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'
17945 # Both c and cxx compiler support -rpath directly
17946 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17948 hardcode_libdir_separator_GCJ
=:
17952 no_undefined_flag_GCJ
=' -z text'
17953 if test "$GCC" = yes; then
17955 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17956 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17957 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17960 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17962 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17964 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17965 hardcode_shlibpath_var_GCJ
=no
17967 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17969 # The compiler driver will combine and reorder linker options,
17970 # but understands `-z linker_flag'. GCC discards it without `$wl',
17971 # but is careful enough not to reorder.
17972 # Supported since Solaris 2.6 (maybe 2.5.1?)
17973 if test "$GCC" = yes; then
17974 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17976 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
17980 link_all_deplibs_GCJ
=yes
17984 if test "x$host_vendor" = xsequent
; then
17985 # Use $CC to link under sequent, because it throws in some extra .o
17986 # files that make .init and .fini sections work.
17987 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17989 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17991 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17992 hardcode_direct_GCJ
=yes
17993 hardcode_minus_L_GCJ
=yes
17994 hardcode_shlibpath_var_GCJ
=no
17998 case $host_vendor in
18000 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18001 hardcode_direct_GCJ
=yes # is this really true???
18004 ## LD is ld it makes a PLAMLIB
18005 ## CC just makes a GrossModule.
18006 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18007 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
18008 hardcode_direct_GCJ
=no
18011 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18012 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
18015 runpath_var
='LD_RUN_PATH'
18016 hardcode_shlibpath_var_GCJ
=no
18020 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18021 hardcode_shlibpath_var_GCJ
=no
18022 export_dynamic_flag_spec_GCJ
='-Bexport'
18026 if test -d /usr
/nec
; then
18027 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18028 hardcode_shlibpath_var_GCJ
=no
18029 runpath_var
=LD_RUN_PATH
18030 hardcode_runpath_var
=yes
18035 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18036 no_undefined_flag_GCJ
='${wl}-z,text'
18037 archive_cmds_need_lc_GCJ
=no
18038 hardcode_shlibpath_var_GCJ
=no
18039 runpath_var
='LD_RUN_PATH'
18041 if test "$GCC" = yes; then
18042 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18043 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18045 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18046 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18050 sysv5
* | sco3.2v5
* | sco5v6
*)
18051 # Note: We can NOT use -z defs as we might desire, because we do not
18052 # link with -lc, and that would cause any symbols used from libc to
18053 # always be unresolved, which means just about no library would
18054 # ever link correctly. If we're not using GNU ld we use -z text
18055 # though, which does catch some bad symbols but isn't as heavy-handed
18057 no_undefined_flag_GCJ
='${wl}-z,text'
18058 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
18059 archive_cmds_need_lc_GCJ
=no
18060 hardcode_shlibpath_var_GCJ
=no
18061 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18062 hardcode_libdir_separator_GCJ
=':'
18063 link_all_deplibs_GCJ
=yes
18064 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
18065 runpath_var
='LD_RUN_PATH'
18067 if test "$GCC" = yes; then
18068 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18069 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18071 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18072 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18077 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18078 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18079 hardcode_shlibpath_var_GCJ
=no
18088 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18089 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18090 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
18093 # Do we need to explicitly link libc?
18095 case "x$archive_cmds_need_lc_GCJ" in
18097 # Assume -lc should be added
18098 archive_cmds_need_lc_GCJ
=yes
18100 if test "$enable_shared" = yes && test "$GCC" = yes; then
18101 case $archive_cmds_GCJ in
18103 # FIXME: we may have to deal with multi-command sequences.
18106 # Test whether the compiler implicitly links with -lc since on some
18107 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18108 # to ld, don't add -lc before -lgcc.
18109 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18110 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18112 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } 2>conftest.err
; then
18121 libobjs
=conftest.
$ac_objext
18123 wl
=$lt_prog_compiler_wl_GCJ
18124 pic_flag
=$lt_prog_compiler_pic_GCJ
18130 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
18131 allow_undefined_flag_GCJ
=
18132 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18133 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }
18138 archive_cmds_need_lc_GCJ
=no
18140 archive_cmds_need_lc_GCJ
=yes
18142 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
18144 cat conftest.err
1>&5
18147 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18148 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18155 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18156 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18157 library_names_spec
=
18158 libname_spec
='lib$name'
18162 postuninstall_cmds
=
18166 shlibpath_overrides_runpath
=unknown
18168 dynamic_linker
="$host_os ld.so"
18169 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18171 need_lib_prefix
=unknown
18172 hardcode_into_libs
=no
18174 # when you set need_version to no, make sure it does not cause -set_version
18175 # flags to be left without arguments
18176 need_version
=unknown
18181 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18182 shlibpath_var
=LIBPATH
18184 # AIX 3 has no versioning support, so we append a major version to the name.
18185 soname_spec
='${libname}${release}${shared_ext}$major'
18192 hardcode_into_libs
=yes
18193 if test "$host_cpu" = ia64
; then
18194 # AIX 5 supports IA64
18195 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18196 shlibpath_var
=LD_LIBRARY_PATH
18198 # With GCC up to 2.95.x, collect2 would create an import file
18199 # for dependence libraries. The import file would start with
18200 # the line `#! .'. This would cause the generated library to
18201 # depend on `.', always an invalid library. This was fixed in
18202 # development snapshots of GCC prior to 3.0.
18204 aix4 | aix4.
[01] | aix4.
[01].
*)
18205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18207 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
18210 can_build_shared
=no
18214 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18215 # soname into executable. Probably we can add versioning support to
18216 # collect2, so additional links can be useful in future.
18217 if test "$aix_use_runtimelinking" = yes; then
18218 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18219 # instead of lib<name>.a to let people know that these are not
18220 # typical AIX shared libraries.
18221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18223 # We preserve .a as extension for shared libraries through AIX4.2
18224 # and later when we are not doing run time linking.
18225 library_names_spec
='${libname}${release}.a $libname.a'
18226 soname_spec
='${libname}${release}${shared_ext}$major'
18228 shlibpath_var
=LIBPATH
18233 library_names_spec
='$libname.ixlibrary $libname.a'
18234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18235 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'
18239 library_names_spec
='${libname}${shared_ext}'
18240 dynamic_linker
="$host_os ld.so"
18241 shlibpath_var
=LIBRARY_PATH
18247 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248 soname_spec
='${libname}${release}${shared_ext}$major'
18249 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18250 shlibpath_var
=LD_LIBRARY_PATH
18251 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18252 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18253 # the default ld.so.conf also contains /usr/contrib/lib and
18254 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18255 # libtool to hard-code these into programs
18258 cygwin
* | mingw
* | pw32
*)
18259 version_type
=windows
18264 case $GCC,$host_os in
18265 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18266 library_names_spec
='$libname.dll.a'
18267 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18268 postinstall_cmds
='base_file=`basename \${file}`~
18269 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18270 dldir=$destdir/`dirname \$dlpath`~
18271 test -d \$dldir || mkdir -p \$dldir~
18272 $install_prog $dir/$dlname \$dldir/$dlname~
18273 chmod a+x \$dldir/$dlname'
18274 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18275 dlpath=$dir/\$dldll~
18277 shlibpath_overrides_runpath
=yes
18281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18282 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18283 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18286 # MinGW DLLs use traditional 'lib' prefix
18287 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18288 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18289 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
18290 # It is most probably a Windows format PATH printed by
18291 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18292 # path with ; separators, and with drive letters. We can handle the
18293 # drive letters (cygwin fileutils understands them), so leave them,
18294 # especially as we might pass files found there to a mingw objdump,
18295 # which wouldn't understand a cygwinified path. Ahh.
18296 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18298 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18302 # pw32 DLLs use 'pw' prefix rather than 'lib'
18303 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18309 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18312 dynamic_linker
='Win32 ld.exe'
18313 # FIXME: first we should search . and the directory the executable is in
18317 darwin
* | rhapsody
*)
18318 dynamic_linker
="$host_os dyld"
18319 version_type
=darwin
18322 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18323 soname_spec
='${libname}${release}${major}$shared_ext'
18324 shlibpath_overrides_runpath
=yes
18325 shlibpath_var
=DYLD_LIBRARY_PATH
18326 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18328 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18336 soname_spec
='${libname}${release}${shared_ext}$major'
18337 shlibpath_var
=LD_LIBRARY_PATH
18344 freebsd
* | dragonfly
*)
18345 # DragonFly does not have aout. When/if they implement a new
18346 # versioning mechanism, adjust this.
18347 if test -x /usr
/bin
/objformat
; then
18348 objformat
=`/usr/bin/objformat`
18351 freebsd
[123]*) objformat
=aout
;;
18352 *) objformat
=elf
;;
18355 version_type
=freebsd-
$objformat
18356 case $version_type in
18358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18363 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18367 shlibpath_var
=LD_LIBRARY_PATH
18370 shlibpath_overrides_runpath
=yes
18372 freebsd3.
[01]* | freebsdelf3.
[01]*)
18373 shlibpath_overrides_runpath
=yes
18374 hardcode_into_libs
=yes
18376 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18377 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18378 shlibpath_overrides_runpath
=no
18379 hardcode_into_libs
=yes
18381 *) # from 4.6 on, and DragonFly
18382 shlibpath_overrides_runpath
=yes
18383 hardcode_into_libs
=yes
18392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18393 soname_spec
='${libname}${release}${shared_ext}$major'
18394 shlibpath_var
=LD_LIBRARY_PATH
18395 hardcode_into_libs
=yes
18398 hpux9
* | hpux10
* | hpux11
*)
18399 # Give a soname corresponding to the major version so that dld.sl refuses to
18400 # link against other versions.
18407 hardcode_into_libs
=yes
18408 dynamic_linker
="$host_os dld.so"
18409 shlibpath_var
=LD_LIBRARY_PATH
18410 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18412 soname_spec
='${libname}${release}${shared_ext}$major'
18413 if test "X$HPUX_IA64_MODE" = X32
; then
18414 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18416 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18418 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18422 hardcode_into_libs
=yes
18423 dynamic_linker
="$host_os dld.sl"
18424 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18425 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18427 soname_spec
='${libname}${release}${shared_ext}$major'
18428 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18429 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18433 dynamic_linker
="$host_os dld.sl"
18434 shlibpath_var
=SHLIB_PATH
18435 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18437 soname_spec
='${libname}${release}${shared_ext}$major'
18440 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18441 postinstall_cmds
='chmod 555 $lib'
18448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18449 soname_spec
='${libname}${release}${shared_ext}$major'
18450 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18451 shlibpath_var
=LD_LIBRARY_PATH
18452 shlibpath_overrides_runpath
=no
18453 hardcode_into_libs
=yes
18456 irix5
* | irix6
* | nonstopux
*)
18458 nonstopux
*) version_type
=nonstopux
;;
18460 if test "$lt_cv_prog_gnu_ld" = yes; then
18468 soname_spec
='${libname}${release}${shared_ext}$major'
18469 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18471 irix5
* | nonstopux
*)
18472 libsuff
= shlibsuff
=
18475 case $LD in # libtool.m4 will add one of these switches to LD
18476 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18477 libsuff
= shlibsuff
= libmagic
=32-bit;;
18478 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18479 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18480 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18481 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18482 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18486 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18487 shlibpath_overrides_runpath
=no
18488 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18489 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18490 hardcode_into_libs
=yes
18493 # No shared lib support for Linux oldld, aout, or coff.
18494 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18498 # This must be Linux ELF.
18499 linux
* | k
*bsd
*-gnu)
18503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504 soname_spec
='${libname}${release}${shared_ext}$major'
18505 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18506 shlibpath_var
=LD_LIBRARY_PATH
18507 shlibpath_overrides_runpath
=no
18508 # This implies no fast_install, which is unacceptable.
18509 # Some rework will be needed to allow for fast_install
18510 # before this can be enabled.
18511 hardcode_into_libs
=yes
18512 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18513 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18515 # Append ld.so.conf contents to the search path
18516 if test -f /etc
/ld.so.conf
; then
18517 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18518 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18521 # We used to test for /lib/ld.so.1 and disable shared libraries on
18522 # powerpc, because MkLinux only supported shared libraries with the
18523 # GNU dynamic linker. Since this was broken with cross compilers,
18524 # most powerpc-linux boxes support dynamic linking these days and
18525 # people can always --disable-shared, the test was removed, and we
18526 # assume the GNU/Linux dynamic linker is in use.
18527 dynamic_linker
='GNU/Linux ld.so'
18534 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18536 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18537 dynamic_linker
='NetBSD (a.out) ld.so'
18539 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18540 soname_spec
='${libname}${release}${shared_ext}$major'
18541 dynamic_linker
='NetBSD ld.elf_so'
18543 shlibpath_var
=LD_LIBRARY_PATH
18544 shlibpath_overrides_runpath
=yes
18545 hardcode_into_libs
=yes
18550 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18551 shlibpath_var
=LD_LIBRARY_PATH
18552 shlibpath_overrides_runpath
=yes
18559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18560 soname_spec
='${libname}${release}${shared_ext}$major'
18561 shlibpath_var
=LD_LIBRARY_PATH
18562 shlibpath_overrides_runpath
=yes
18567 sys_lib_dlsearch_path_spec
="/usr/lib"
18569 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18571 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18572 *) need_version
=no
;;
18574 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18575 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18576 shlibpath_var
=LD_LIBRARY_PATH
18577 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18579 openbsd2.
[89] | openbsd2.
[89].
*)
18580 shlibpath_overrides_runpath
=no
18583 shlibpath_overrides_runpath
=yes
18587 shlibpath_overrides_runpath
=yes
18592 libname_spec
='$name'
18595 library_names_spec
='$libname${shared_ext} $libname.a'
18596 dynamic_linker
='OS/2 ld.exe'
18597 shlibpath_var
=LIBPATH
18600 osf3
* | osf4
* | osf5
*)
18604 soname_spec
='${libname}${release}${shared_ext}$major'
18605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18606 shlibpath_var
=LD_LIBRARY_PATH
18607 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18608 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18620 soname_spec
='${libname}${release}${shared_ext}$major'
18621 shlibpath_var
=LD_LIBRARY_PATH
18622 shlibpath_overrides_runpath
=yes
18623 hardcode_into_libs
=yes
18624 # ldd complains unless libraries are executable
18625 postinstall_cmds
='chmod +x $lib'
18630 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18631 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18632 shlibpath_var
=LD_LIBRARY_PATH
18633 shlibpath_overrides_runpath
=yes
18634 if test "$with_gnu_ld" = yes; then
18642 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643 soname_spec
='${libname}${release}${shared_ext}$major'
18644 shlibpath_var
=LD_LIBRARY_PATH
18645 case $host_vendor in
18647 shlibpath_overrides_runpath
=no
18649 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18650 runpath_var
=LD_RUN_PATH
18658 shlibpath_overrides_runpath
=no
18659 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18665 if test -d /usr
/nec
;then
18667 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18668 soname_spec
='$libname${shared_ext}.$major'
18669 shlibpath_var
=LD_LIBRARY_PATH
18673 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18674 version_type
=freebsd-elf
18677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18678 soname_spec
='${libname}${release}${shared_ext}$major'
18679 shlibpath_var
=LD_LIBRARY_PATH
18680 hardcode_into_libs
=yes
18681 if test "$with_gnu_ld" = yes; then
18682 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18683 shlibpath_overrides_runpath
=no
18685 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18686 shlibpath_overrides_runpath
=yes
18689 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18693 sys_lib_dlsearch_path_spec
='/usr/lib'
18698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699 soname_spec
='${libname}${release}${shared_ext}$major'
18700 shlibpath_var
=LD_LIBRARY_PATH
18707 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18708 echo "${ECHO_T}$dynamic_linker" >&6; }
18709 test "$dynamic_linker" = no
&& can_build_shared
=no
18711 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18712 if test "$GCC" = yes; then
18713 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18716 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18717 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18718 hardcode_action_GCJ
=
18719 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18720 test -n "$runpath_var_GCJ" || \
18721 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18723 # We can hardcode non-existent directories.
18724 if test "$hardcode_direct_GCJ" != no
&&
18725 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18726 # have to relink, otherwise we might link with an installed library
18727 # when we should be linking with a yet-to-be-installed one
18728 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18729 test "$hardcode_minus_L_GCJ" != no
; then
18730 # Linking always hardcodes the temporary library directory.
18731 hardcode_action_GCJ
=relink
18733 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18734 hardcode_action_GCJ
=immediate
18737 # We cannot hardcode anything, or else we can only hardcode existing
18739 hardcode_action_GCJ
=unsupported
18741 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18742 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18744 if test "$hardcode_action_GCJ" = relink
; then
18745 # Fast installation is not supported
18746 enable_fast_install
=no
18747 elif test "$shlibpath_overrides_runpath" = yes ||
18748 test "$enable_shared" = no
; then
18749 # Fast installation is not necessary
18750 enable_fast_install
=needless
18754 # The else clause should only fire when bootstrapping the
18755 # libtool distribution, otherwise you forgot to ship ltmain.sh
18756 # with your package, and you will get complaints that there are
18757 # no rules to generate ltmain.sh.
18758 if test -f "$ltmain"; then
18759 # See if we are running on zsh, and set the options which allow our commands through
18760 # without removal of \ escapes.
18761 if test -n "${ZSH_VERSION+set}" ; then
18762 setopt NO_GLOB_SUBST
18764 # Now quote all the things that may contain metacharacters while being
18765 # careful not to overquote the AC_SUBSTed values. We take copies of the
18766 # variables and quote the copies for generation of the libtool script.
18767 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18769 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18770 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18771 deplibs_check_method reload_flag reload_cmds need_locks \
18772 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18773 lt_cv_sys_global_symbol_to_c_name_address \
18774 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18775 old_postinstall_cmds old_postuninstall_cmds \
18779 lt_prog_compiler_wl_GCJ \
18780 lt_prog_compiler_pic_GCJ \
18781 lt_prog_compiler_static_GCJ \
18782 lt_prog_compiler_no_builtin_flag_GCJ \
18783 export_dynamic_flag_spec_GCJ \
18784 thread_safe_flag_spec_GCJ \
18785 whole_archive_flag_spec_GCJ \
18786 enable_shared_with_static_runtimes_GCJ \
18787 old_archive_cmds_GCJ \
18788 old_archive_from_new_cmds_GCJ \
18789 predep_objects_GCJ \
18790 postdep_objects_GCJ \
18793 compiler_lib_search_path_GCJ \
18795 archive_expsym_cmds_GCJ \
18796 postinstall_cmds_GCJ \
18797 postuninstall_cmds_GCJ \
18798 old_archive_from_expsyms_cmds_GCJ \
18799 allow_undefined_flag_GCJ \
18800 no_undefined_flag_GCJ \
18801 export_symbols_cmds_GCJ \
18802 hardcode_libdir_flag_spec_GCJ \
18803 hardcode_libdir_flag_spec_ld_GCJ \
18804 hardcode_libdir_separator_GCJ \
18805 hardcode_automatic_GCJ \
18807 module_expsym_cmds_GCJ \
18808 lt_cv_prog_compiler_c_o_GCJ \
18809 fix_srcfile_path_GCJ \
18810 exclude_expsyms_GCJ \
18811 include_expsyms_GCJ
; do
18814 old_archive_cmds_GCJ | \
18815 old_archive_from_new_cmds_GCJ | \
18816 archive_cmds_GCJ | \
18817 archive_expsym_cmds_GCJ | \
18818 module_cmds_GCJ | \
18819 module_expsym_cmds_GCJ | \
18820 old_archive_from_expsyms_cmds_GCJ | \
18821 export_symbols_cmds_GCJ | \
18822 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18823 postinstall_cmds | postuninstall_cmds | \
18824 old_postinstall_cmds | old_postuninstall_cmds | \
18825 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18826 # Double-quote double-evaled strings.
18827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18830 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18836 *'\$0 --fallback-echo"')
18837 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18843 cat <<__EOF__ >> "$cfgfile"
18844 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18846 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18848 # Shell to use when invoking shell scripts.
18851 # Whether or not to build shared libraries.
18852 build_libtool_libs=$enable_shared
18854 # Whether or not to build static libraries.
18855 build_old_libs=$enable_static
18857 # Whether or not to add -lc for building shared libraries.
18858 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18860 # Whether or not to disallow shared libs when runtime libs are static
18861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18863 # Whether or not to optimize for fast installation.
18864 fast_install=$enable_fast_install
18867 host_alias=$host_alias
18871 # The build system.
18872 build_alias=$build_alias
18876 # An echo program that does not interpret backslashes.
18881 AR_FLAGS=$lt_AR_FLAGS
18886 # LTCC compiler flags.
18887 LTCFLAGS=$lt_LTCFLAGS
18889 # A language-specific compiler.
18890 CC=$lt_compiler_GCJ
18892 # Is the compiler the GNU C compiler?
18898 # The linker used to build libraries.
18901 # Whether we need hard or soft links.
18904 # A BSD-compatible nm program.
18907 # A symbol stripping program
18910 # Used to examine libraries when file_magic_cmd begins "file"
18911 MAGIC_CMD=$MAGIC_CMD
18913 # Used on cygwin: DLL creation program.
18916 # Used on cygwin: object dumper.
18919 # Used on cygwin: assembler.
18922 # The name of the directory that contains temporary libtool files.
18925 # How to create reloadable object files.
18926 reload_flag=$lt_reload_flag
18927 reload_cmds=$lt_reload_cmds
18929 # How to pass a linker flag through the compiler.
18930 wl=$lt_lt_prog_compiler_wl_GCJ
18932 # Object file suffix (normally "o").
18933 objext="$ac_objext"
18935 # Old archive suffix (normally "a").
18938 # Shared library suffix (normally ".so").
18939 shrext_cmds='$shrext_cmds'
18941 # Executable file suffix (normally "").
18944 # Additional compiler flags for building library objects.
18945 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18948 # What is the maximum length of a command?
18949 max_cmd_len=$lt_cv_sys_max_cmd_len
18951 # Does compiler simultaneously support -c and -o options?
18952 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18954 # Must we lock files when doing compilation?
18955 need_locks=$lt_need_locks
18957 # Do we need the lib prefix for modules?
18958 need_lib_prefix=$need_lib_prefix
18960 # Do we need a version for libraries?
18961 need_version=$need_version
18963 # Whether dlopen is supported.
18964 dlopen_support=$enable_dlopen
18966 # Whether dlopen of programs is supported.
18967 dlopen_self=$enable_dlopen_self
18969 # Whether dlopen of statically linked programs is supported.
18970 dlopen_self_static=$enable_dlopen_self_static
18972 # Compiler flag to prevent dynamic linking.
18973 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18975 # Compiler flag to turn off builtin functions.
18976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18978 # Compiler flag to allow reflexive dlopens.
18979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18981 # Compiler flag to generate shared objects directly from archives.
18982 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18984 # Compiler flag to generate thread-safe objects.
18985 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18987 # Library versioning type.
18988 version_type=$version_type
18990 # Format of library name prefix.
18991 libname_spec=$lt_libname_spec
18993 # List of archive names. First name is the real one, the rest are links.
18994 # The last name is the one that the linker finds with -lNAME.
18995 library_names_spec=$lt_library_names_spec
18997 # The coded name of the library, if different from the real name.
18998 soname_spec=$lt_soname_spec
19000 # Commands used to build and install an old-style archive.
19002 old_archive_cmds=$lt_old_archive_cmds_GCJ
19003 old_postinstall_cmds=$lt_old_postinstall_cmds
19004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19006 # Create an old-style archive from a shared archive.
19007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19009 # Create a temporary old-style archive to link instead of a shared archive.
19010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19012 # Commands used to build and install a shared archive.
19013 archive_cmds=$lt_archive_cmds_GCJ
19014 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19015 postinstall_cmds=$lt_postinstall_cmds
19016 postuninstall_cmds=$lt_postuninstall_cmds
19018 # Commands used to build a loadable module (assumed same as above if empty)
19019 module_cmds=$lt_module_cmds_GCJ
19020 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19022 # Commands to strip libraries.
19023 old_striplib=$lt_old_striplib
19024 striplib=$lt_striplib
19026 # Dependencies to place before the objects being linked to create a
19028 predep_objects=$lt_predep_objects_GCJ
19030 # Dependencies to place after the objects being linked to create a
19032 postdep_objects=$lt_postdep_objects_GCJ
19034 # Dependencies to place before the objects being linked to create a
19036 predeps=$lt_predeps_GCJ
19038 # Dependencies to place after the objects being linked to create a
19040 postdeps=$lt_postdeps_GCJ
19042 # The library search path used internally by the compiler when linking
19043 # a shared library.
19044 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19046 # Method to check whether dependent libraries are shared objects.
19047 deplibs_check_method=$lt_deplibs_check_method
19049 # Command to use when deplibs_check_method == file_magic.
19050 file_magic_cmd=$lt_file_magic_cmd
19052 # Flag that allows shared libraries with undefined symbols to be built.
19053 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19055 # Flag that forces no undefined symbols.
19056 no_undefined_flag=$lt_no_undefined_flag_GCJ
19058 # Commands used to finish a libtool library installation in a directory.
19059 finish_cmds=$lt_finish_cmds
19061 # Same as above, but a single script fragment to be evaled but not shown.
19062 finish_eval=$lt_finish_eval
19064 # Take the output of nm and produce a listing of raw symbols and C names.
19065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19067 # Transform the output of nm in a proper C declaration
19068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19070 # Transform the output of nm in a C name address pair
19071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19073 # This is the shared library runtime path variable.
19074 runpath_var=$runpath_var
19076 # This is the shared library path variable.
19077 shlibpath_var=$shlibpath_var
19079 # Is shlibpath searched before the hard-coded library search path?
19080 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19082 # How to hardcode a shared library path into an executable.
19083 hardcode_action=$hardcode_action_GCJ
19085 # Whether we should hardcode library paths into libraries.
19086 hardcode_into_libs=$hardcode_into_libs
19088 # Flag to hardcode \$libdir into a binary during linking.
19089 # This must work even if \$libdir does not exist.
19090 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19092 # If ld is used when linking, flag to hardcode \$libdir into
19093 # a binary during linking. This must work even if \$libdir does
19095 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19097 # Whether we need a single -rpath flag with a separated argument.
19098 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19100 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19101 # resulting binary.
19102 hardcode_direct=$hardcode_direct_GCJ
19104 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19105 # resulting binary.
19106 hardcode_minus_L=$hardcode_minus_L_GCJ
19108 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19109 # the resulting binary.
19110 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19112 # Set to yes if building a shared library automatically hardcodes DIR into the library
19113 # and all subsequent libraries and executables linked against it.
19114 hardcode_automatic=$hardcode_automatic_GCJ
19116 # Variables whose values should be saved in libtool wrapper scripts and
19117 # restored at relink time.
19118 variables_saved_for_relink="$variables_saved_for_relink"
19120 # Whether libtool must link a program against all its dependency libraries.
19121 link_all_deplibs=$link_all_deplibs_GCJ
19123 # Compile-time system search path for libraries
19124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19126 # Run-time system search path for libraries
19127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19129 # Fix the shell variable \$srcfile for the compiler.
19130 fix_srcfile_path=$lt_fix_srcfile_path
19132 # Set to yes if exported symbols are required.
19133 always_export_symbols=$always_export_symbols_GCJ
19135 # The commands to list exported symbols.
19136 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19138 # The commands to extract the exported symbol list from a shared archive.
19139 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19141 # Symbols that should not be listed in the preloaded symbols.
19142 exclude_expsyms=$lt_exclude_expsyms_GCJ
19144 # Symbols that must always be exported.
19145 include_expsyms=$lt_include_expsyms_GCJ
19147 # ### END LIBTOOL TAG CONFIG: $tagname
19153 # If there is no Makefile yet, we rely on a make rule to execute
19154 # `config.status --recheck' to rerun these tests and create the
19155 # libtool script then.
19156 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19157 if test -f "$ltmain_in"; then
19158 test -f Makefile
&& make "$ltmain"
19164 ac_cpp
='$CPP $CPPFLAGS'
19165 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19166 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19167 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19179 # Source file extension for RC test sources.
19182 # Object file extension for compiled RC test sources.
19186 # Code to be used in simple compile tests
19187 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19189 # Code to be used in simple link tests
19190 lt_simple_link_test_code
="$lt_simple_compile_test_code"
19192 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19194 # If no C compiler was specified, use CC.
19197 # If no C compiler flags were specified, use CFLAGS.
19198 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19200 # Allow CC to be a program name with arguments.
19204 # save warnings/boilerplate of simple test code
19205 ac_outfile
=conftest.
$ac_objext
19206 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19207 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19208 _lt_compiler_boilerplate
=`cat conftest.err`
19211 ac_outfile
=conftest.
$ac_objext
19212 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19213 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19214 _lt_linker_boilerplate
=`cat conftest.err`
19218 # Allow CC to be a program name with arguments.
19223 for cc_temp
in $compiler""; do
19225 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19226 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19231 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19233 lt_cv_prog_compiler_c_o_RC
=yes
19235 # The else clause should only fire when bootstrapping the
19236 # libtool distribution, otherwise you forgot to ship ltmain.sh
19237 # with your package, and you will get complaints that there are
19238 # no rules to generate ltmain.sh.
19239 if test -f "$ltmain"; then
19240 # See if we are running on zsh, and set the options which allow our commands through
19241 # without removal of \ escapes.
19242 if test -n "${ZSH_VERSION+set}" ; then
19243 setopt NO_GLOB_SUBST
19245 # Now quote all the things that may contain metacharacters while being
19246 # careful not to overquote the AC_SUBSTed values. We take copies of the
19247 # variables and quote the copies for generation of the libtool script.
19248 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19250 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19251 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19252 deplibs_check_method reload_flag reload_cmds need_locks \
19253 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19254 lt_cv_sys_global_symbol_to_c_name_address \
19255 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19256 old_postinstall_cmds old_postuninstall_cmds \
19260 lt_prog_compiler_wl_RC \
19261 lt_prog_compiler_pic_RC \
19262 lt_prog_compiler_static_RC \
19263 lt_prog_compiler_no_builtin_flag_RC \
19264 export_dynamic_flag_spec_RC \
19265 thread_safe_flag_spec_RC \
19266 whole_archive_flag_spec_RC \
19267 enable_shared_with_static_runtimes_RC \
19268 old_archive_cmds_RC \
19269 old_archive_from_new_cmds_RC \
19270 predep_objects_RC \
19271 postdep_objects_RC \
19274 compiler_lib_search_path_RC \
19276 archive_expsym_cmds_RC \
19277 postinstall_cmds_RC \
19278 postuninstall_cmds_RC \
19279 old_archive_from_expsyms_cmds_RC \
19280 allow_undefined_flag_RC \
19281 no_undefined_flag_RC \
19282 export_symbols_cmds_RC \
19283 hardcode_libdir_flag_spec_RC \
19284 hardcode_libdir_flag_spec_ld_RC \
19285 hardcode_libdir_separator_RC \
19286 hardcode_automatic_RC \
19288 module_expsym_cmds_RC \
19289 lt_cv_prog_compiler_c_o_RC \
19290 fix_srcfile_path_RC \
19291 exclude_expsyms_RC \
19292 include_expsyms_RC
; do
19295 old_archive_cmds_RC | \
19296 old_archive_from_new_cmds_RC | \
19297 archive_cmds_RC | \
19298 archive_expsym_cmds_RC | \
19300 module_expsym_cmds_RC | \
19301 old_archive_from_expsyms_cmds_RC | \
19302 export_symbols_cmds_RC | \
19303 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19304 postinstall_cmds | postuninstall_cmds | \
19305 old_postinstall_cmds | old_postuninstall_cmds | \
19306 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19307 # Double-quote double-evaled strings.
19308 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19311 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19317 *'\$0 --fallback-echo"')
19318 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19324 cat <<__EOF__ >> "$cfgfile"
19325 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19327 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19329 # Shell to use when invoking shell scripts.
19332 # Whether or not to build shared libraries.
19333 build_libtool_libs=$enable_shared
19335 # Whether or not to build static libraries.
19336 build_old_libs=$enable_static
19338 # Whether or not to add -lc for building shared libraries.
19339 build_libtool_need_lc=$archive_cmds_need_lc_RC
19341 # Whether or not to disallow shared libs when runtime libs are static
19342 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19344 # Whether or not to optimize for fast installation.
19345 fast_install=$enable_fast_install
19348 host_alias=$host_alias
19352 # The build system.
19353 build_alias=$build_alias
19357 # An echo program that does not interpret backslashes.
19362 AR_FLAGS=$lt_AR_FLAGS
19367 # LTCC compiler flags.
19368 LTCFLAGS=$lt_LTCFLAGS
19370 # A language-specific compiler.
19373 # Is the compiler the GNU C compiler?
19379 # The linker used to build libraries.
19382 # Whether we need hard or soft links.
19385 # A BSD-compatible nm program.
19388 # A symbol stripping program
19391 # Used to examine libraries when file_magic_cmd begins "file"
19392 MAGIC_CMD=$MAGIC_CMD
19394 # Used on cygwin: DLL creation program.
19397 # Used on cygwin: object dumper.
19400 # Used on cygwin: assembler.
19403 # The name of the directory that contains temporary libtool files.
19406 # How to create reloadable object files.
19407 reload_flag=$lt_reload_flag
19408 reload_cmds=$lt_reload_cmds
19410 # How to pass a linker flag through the compiler.
19411 wl=$lt_lt_prog_compiler_wl_RC
19413 # Object file suffix (normally "o").
19414 objext="$ac_objext"
19416 # Old archive suffix (normally "a").
19419 # Shared library suffix (normally ".so").
19420 shrext_cmds='$shrext_cmds'
19422 # Executable file suffix (normally "").
19425 # Additional compiler flags for building library objects.
19426 pic_flag=$lt_lt_prog_compiler_pic_RC
19429 # What is the maximum length of a command?
19430 max_cmd_len=$lt_cv_sys_max_cmd_len
19432 # Does compiler simultaneously support -c and -o options?
19433 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19435 # Must we lock files when doing compilation?
19436 need_locks=$lt_need_locks
19438 # Do we need the lib prefix for modules?
19439 need_lib_prefix=$need_lib_prefix
19441 # Do we need a version for libraries?
19442 need_version=$need_version
19444 # Whether dlopen is supported.
19445 dlopen_support=$enable_dlopen
19447 # Whether dlopen of programs is supported.
19448 dlopen_self=$enable_dlopen_self
19450 # Whether dlopen of statically linked programs is supported.
19451 dlopen_self_static=$enable_dlopen_self_static
19453 # Compiler flag to prevent dynamic linking.
19454 link_static_flag=$lt_lt_prog_compiler_static_RC
19456 # Compiler flag to turn off builtin functions.
19457 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19459 # Compiler flag to allow reflexive dlopens.
19460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19462 # Compiler flag to generate shared objects directly from archives.
19463 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19465 # Compiler flag to generate thread-safe objects.
19466 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19468 # Library versioning type.
19469 version_type=$version_type
19471 # Format of library name prefix.
19472 libname_spec=$lt_libname_spec
19474 # List of archive names. First name is the real one, the rest are links.
19475 # The last name is the one that the linker finds with -lNAME.
19476 library_names_spec=$lt_library_names_spec
19478 # The coded name of the library, if different from the real name.
19479 soname_spec=$lt_soname_spec
19481 # Commands used to build and install an old-style archive.
19483 old_archive_cmds=$lt_old_archive_cmds_RC
19484 old_postinstall_cmds=$lt_old_postinstall_cmds
19485 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19487 # Create an old-style archive from a shared archive.
19488 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19490 # Create a temporary old-style archive to link instead of a shared archive.
19491 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19493 # Commands used to build and install a shared archive.
19494 archive_cmds=$lt_archive_cmds_RC
19495 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19496 postinstall_cmds=$lt_postinstall_cmds
19497 postuninstall_cmds=$lt_postuninstall_cmds
19499 # Commands used to build a loadable module (assumed same as above if empty)
19500 module_cmds=$lt_module_cmds_RC
19501 module_expsym_cmds=$lt_module_expsym_cmds_RC
19503 # Commands to strip libraries.
19504 old_striplib=$lt_old_striplib
19505 striplib=$lt_striplib
19507 # Dependencies to place before the objects being linked to create a
19509 predep_objects=$lt_predep_objects_RC
19511 # Dependencies to place after the objects being linked to create a
19513 postdep_objects=$lt_postdep_objects_RC
19515 # Dependencies to place before the objects being linked to create a
19517 predeps=$lt_predeps_RC
19519 # Dependencies to place after the objects being linked to create a
19521 postdeps=$lt_postdeps_RC
19523 # The library search path used internally by the compiler when linking
19524 # a shared library.
19525 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19527 # Method to check whether dependent libraries are shared objects.
19528 deplibs_check_method=$lt_deplibs_check_method
19530 # Command to use when deplibs_check_method == file_magic.
19531 file_magic_cmd=$lt_file_magic_cmd
19533 # Flag that allows shared libraries with undefined symbols to be built.
19534 allow_undefined_flag=$lt_allow_undefined_flag_RC
19536 # Flag that forces no undefined symbols.
19537 no_undefined_flag=$lt_no_undefined_flag_RC
19539 # Commands used to finish a libtool library installation in a directory.
19540 finish_cmds=$lt_finish_cmds
19542 # Same as above, but a single script fragment to be evaled but not shown.
19543 finish_eval=$lt_finish_eval
19545 # Take the output of nm and produce a listing of raw symbols and C names.
19546 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19548 # Transform the output of nm in a proper C declaration
19549 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19551 # Transform the output of nm in a C name address pair
19552 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19554 # This is the shared library runtime path variable.
19555 runpath_var=$runpath_var
19557 # This is the shared library path variable.
19558 shlibpath_var=$shlibpath_var
19560 # Is shlibpath searched before the hard-coded library search path?
19561 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19563 # How to hardcode a shared library path into an executable.
19564 hardcode_action=$hardcode_action_RC
19566 # Whether we should hardcode library paths into libraries.
19567 hardcode_into_libs=$hardcode_into_libs
19569 # Flag to hardcode \$libdir into a binary during linking.
19570 # This must work even if \$libdir does not exist.
19571 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19573 # If ld is used when linking, flag to hardcode \$libdir into
19574 # a binary during linking. This must work even if \$libdir does
19576 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19578 # Whether we need a single -rpath flag with a separated argument.
19579 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19581 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19582 # resulting binary.
19583 hardcode_direct=$hardcode_direct_RC
19585 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19586 # resulting binary.
19587 hardcode_minus_L=$hardcode_minus_L_RC
19589 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19590 # the resulting binary.
19591 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19593 # Set to yes if building a shared library automatically hardcodes DIR into the library
19594 # and all subsequent libraries and executables linked against it.
19595 hardcode_automatic=$hardcode_automatic_RC
19597 # Variables whose values should be saved in libtool wrapper scripts and
19598 # restored at relink time.
19599 variables_saved_for_relink="$variables_saved_for_relink"
19601 # Whether libtool must link a program against all its dependency libraries.
19602 link_all_deplibs=$link_all_deplibs_RC
19604 # Compile-time system search path for libraries
19605 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19607 # Run-time system search path for libraries
19608 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19610 # Fix the shell variable \$srcfile for the compiler.
19611 fix_srcfile_path=$lt_fix_srcfile_path
19613 # Set to yes if exported symbols are required.
19614 always_export_symbols=$always_export_symbols_RC
19616 # The commands to list exported symbols.
19617 export_symbols_cmds=$lt_export_symbols_cmds_RC
19619 # The commands to extract the exported symbol list from a shared archive.
19620 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19622 # Symbols that should not be listed in the preloaded symbols.
19623 exclude_expsyms=$lt_exclude_expsyms_RC
19625 # Symbols that must always be exported.
19626 include_expsyms=$lt_include_expsyms_RC
19628 # ### END LIBTOOL TAG CONFIG: $tagname
19634 # If there is no Makefile yet, we rely on a make rule to execute
19635 # `config.status --recheck' to rerun these tests and create the
19636 # libtool script then.
19637 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19638 if test -f "$ltmain_in"; then
19639 test -f Makefile
&& make "$ltmain"
19645 ac_cpp
='$CPP $CPPFLAGS'
19646 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19655 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19656 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19657 { (exit 1); exit 1; }; }
19661 # Append the new tag name to the list of available tags.
19662 if test -n "$tagname" ; then
19663 available_tags
="$available_tags $tagname"
19669 # Now substitute the updated list of available tags.
19670 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19671 mv "${ofile}T" "$ofile"
19675 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19676 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19677 { (exit 1); exit 1; }; }
19683 # This can be used to rebuild libtool when needed
19684 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19686 # Always use our own libtool.
19687 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19689 # Prevent multiple expansion
19711 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
19712 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
19713 # Check whether --enable-maintainer-mode was given.
19714 if test "${enable_maintainer_mode+set}" = set; then
19715 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
19717 USE_MAINTAINER_MODE
=no
19720 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
19721 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
19722 if test $USE_MAINTAINER_MODE = yes; then
19723 MAINTAINER_MODE_TRUE
=
19724 MAINTAINER_MODE_FALSE
='#'
19726 MAINTAINER_MODE_TRUE
='#'
19727 MAINTAINER_MODE_FALSE
=
19730 MAINT
=$MAINTAINER_MODE_TRUE
19735 for ac_header
in sys
/mman.h
19737 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19738 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19741 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 ac_res
=`eval echo '${'$as_ac_Header'}'`
19745 { echo "$as_me:$LINENO: result: $ac_res" >&5
19746 echo "${ECHO_T}$ac_res" >&6; }
19748 # Is the header compilable?
19749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19751 cat >conftest.
$ac_ext <<_ACEOF
19754 cat confdefs.h
>>conftest.
$ac_ext
19755 cat >>conftest.
$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19757 $ac_includes_default
19758 #include <$ac_header>
19760 rm -f conftest.
$ac_objext
19761 if { (ac_try
="$ac_compile"
19762 case "(($ac_try" in
19763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767 (eval "$ac_compile") 2>conftest.er1
19769 grep -v '^ *+' conftest.er1 >conftest.err
19771 cat conftest.err >&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } && {
19774 test -z "$ac_c_werror_flag" ||
19775 test ! -s conftest.err
19776 } && test -s conftest.$ac_objext; then
19777 ac_header_compiler=yes
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19782 ac_header_compiler=no
19785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19787 echo "${ECHO_T}$ac_header_compiler" >&6; }
19789 # Is the header present?
19790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19792 cat >conftest.$ac_ext <<_ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19798 #include <$ac_header>
19800 if { (ac_try="$ac_cpp conftest.$ac_ext"
19801 case "(($ac_try" in
19802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19803 *) ac_try_echo
=$ac_try;;
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19808 grep -v '^ *+' conftest.er1
>conftest.err
19810 cat conftest.err
>&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } >/dev
/null
&& {
19813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19814 test ! -s conftest.err
19816 ac_header_preproc
=yes
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.
$ac_ext >&5
19821 ac_header_preproc
=no
19824 rm -f conftest.err conftest.
$ac_ext
19825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19826 echo "${ECHO_T}$ac_header_preproc" >&6; }
19828 # So? What about this header?
19829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19835 ac_header_preproc
=yes
19838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19851 ## ------------------------------------------- ##
19852 ## Report this to http://gcc.gnu.org/bugs.html ##
19853 ## ------------------------------------------- ##
19855 ) |
sed "s/^/$as_me: WARNING: /" >&2
19858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19860 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19863 eval "$as_ac_Header=\$ac_header_preproc"
19865 ac_res
=`eval echo '${'$as_ac_Header'}'`
19866 { echo "$as_me:$LINENO: result: $ac_res" >&5
19867 echo "${ECHO_T}$ac_res" >&6; }
19870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19871 cat >>confdefs.h
<<_ACEOF
19872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19880 for ac_func
in mmap
19882 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19885 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 cat >conftest.
$ac_ext <<_ACEOF
19891 cat confdefs.h
>>conftest.
$ac_ext
19892 cat >>conftest.
$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19896 #define $ac_func innocuous_$ac_func
19898 /* System header to define __stub macros and hopefully few prototypes,
19899 which can conflict with char $ac_func (); below.
19900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19901 <limits.h> exists even on freestanding compilers. */
19904 # include <limits.h>
19906 # include <assert.h>
19911 /* Override any GCC internal prototype to avoid an error.
19912 Use char because int might match the return type of a GCC
19913 builtin and then its argument prototype would still apply. */
19918 /* The GNU C library defines this for functions which it implements
19919 to always fail with ENOSYS. Some functions are actually named
19920 something starting with __ and the normal name is an alias. */
19921 #if defined __stub_$ac_func || defined __stub___$ac_func
19928 return $ac_func ();
19933 rm -f conftest.
$ac_objext conftest
$ac_exeext
19934 if { (ac_try
="$ac_link"
19935 case "(($ac_try" in
19936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_link") 2>conftest.er1
19942 grep -v '^ *+' conftest.er1 >conftest.err
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && {
19947 test -z "$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 } && test -s conftest$ac_exeext &&
19950 $as_test_x conftest$ac_exeext; then
19951 eval "$as_ac_var=yes"
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19956 eval "$as_ac_var=no"
19959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19960 conftest$ac_exeext conftest.$ac_ext
19962 ac_res=`eval echo '${'$as_ac_var'}'`
19963 { echo "$as_me:$LINENO: result: $ac_res" >&5
19964 echo "${ECHO_T}$ac_res" >&6; }
19965 if test `eval echo '${'$as_ac_var'}'` = yes; then
19966 cat >>confdefs.h <<_ACEOF
19967 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19974 if test "${ac_cv_header_sys_mman_h+set}" = set; then
19975 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
19976 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
19977 if test "${ac_cv_header_sys_mman_h+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
19981 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
19983 # Is the header compilable?
19984 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
19985 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 $ac_includes_default
19993 #include <sys/mman.h>
19995 rm -f conftest.$ac_objext
19996 if { (ac_try="$ac_compile"
19997 case "(($ac_try" in
19998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19999 *) ac_try_echo
=$ac_try;;
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_compile") 2>conftest.er1
20004 grep -v '^ *+' conftest.er1
>conftest.err
20006 cat conftest.err
>&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } && {
20009 test -z "$ac_c_werror_flag" ||
20010 test ! -s conftest.err
20011 } && test -s conftest.
$ac_objext; then
20012 ac_header_compiler
=yes
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.
$ac_ext >&5
20017 ac_header_compiler
=no
20020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20022 echo "${ECHO_T}$ac_header_compiler" >&6; }
20024 # Is the header present?
20025 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
20026 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
20027 cat >conftest.
$ac_ext <<_ACEOF
20030 cat confdefs.h
>>conftest.
$ac_ext
20031 cat >>conftest.
$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 #include <sys/mman.h>
20035 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20036 case "(($ac_try" in
20037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } >/dev/null && {
20048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20049 test ! -s conftest.err
20051 ac_header_preproc=yes
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ac_header_preproc=no
20059 rm -f conftest.err conftest.$ac_ext
20060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6; }
20063 # So? What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20066 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc=yes
20073 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
20086 ## ------------------------------------------- ##
20087 ## Report this to http://gcc.gnu.org/bugs.html ##
20088 ## ------------------------------------------- ##
20090 ) | sed "s/^/$as_me: WARNING: /" >&2
20093 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
20094 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
20095 if test "${ac_cv_header_sys_mman_h+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 ac_cv_header_sys_mman_h=$ac_header_preproc
20100 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
20101 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
20104 if test $ac_cv_header_sys_mman_h = yes; then
20105 libffi_header_sys_mman_h=yes
20107 libffi_header_sys_mman_h=no
20111 { echo "$as_me:$LINENO: checking for mmap" >&5
20112 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
20113 if test "${ac_cv_func_mmap+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 cat >conftest.$ac_ext <<_ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
20123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20124 #define mmap innocuous_mmap
20126 /* System header to define __stub macros and hopefully few prototypes,
20127 which can conflict with char mmap (); below.
20128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20129 <limits.h> exists even on freestanding compilers. */
20132 # include <limits.h>
20134 # include <assert.h>
20139 /* Override any GCC internal prototype to avoid an error.
20140 Use char because int might match the return type of a GCC
20141 builtin and then its argument prototype would still apply. */
20146 /* The GNU C library defines this for functions which it implements
20147 to always fail with ENOSYS. Some functions are actually named
20148 something starting with __ and the normal name is an alias. */
20149 #if defined __stub_mmap || defined __stub___mmap
20161 rm -f conftest.$ac_objext conftest$ac_exeext
20162 if { (ac_try="$ac_link"
20163 case "(($ac_try" in
20164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20165 *) ac_try_echo
=$ac_try;;
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_link") 2>conftest.er1
20170 grep -v '^ *+' conftest.er1
>conftest.err
20172 cat conftest.err
>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } && {
20175 test -z "$ac_c_werror_flag" ||
20176 test ! -s conftest.err
20177 } && test -s conftest
$ac_exeext &&
20178 $as_test_x conftest
$ac_exeext; then
20179 ac_cv_func_mmap
=yes
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.
$ac_ext >&5
20187 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20188 conftest
$ac_exeext conftest.
$ac_ext
20190 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
20191 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
20192 if test $ac_cv_func_mmap = yes; then
20193 libffi_func_mmap
=yes
20195 libffi_func_mmap
=no
20198 if test "$libffi_header_sys_mman_h" != yes \
20199 ||
test "$libffi_func_mmap" != yes; then
20200 ac_cv_func_mmap_file
=no
20201 ac_cv_func_mmap_dev_zero
=no
20202 ac_cv_func_mmap_anon
=no
20204 { echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
20205 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6; }
20206 if test "${ac_cv_func_mmap_file+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 # Add a system to this blacklist if
20210 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
20211 # memory area containing the same data that you'd get if you applied
20212 # read() to the same fd. The only system known to have a problem here
20213 # is VMS, where text files have record structure.
20216 ac_cv_func_mmap_file
=no
;;
20218 ac_cv_func_mmap_file
=yes;;
20221 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20222 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20223 { echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
20224 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6; }
20225 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 # Add a system to this blacklist if it has mmap() but /dev/zero
20229 # does not exist, or if mmapping /dev/zero does not give anonymous
20230 # zeroed pages with both the following properties:
20231 # 1. If you map N consecutive pages in with one call, and then
20232 # unmap any subset of those pages, the pages that were not
20233 # explicitly unmapped remain accessible.
20234 # 2. If you map two adjacent blocks of memory and then unmap them
20235 # both at once, they must both go away.
20236 # Systems known to be in this category are Windows (all variants),
20239 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
20240 ac_cv_func_mmap_dev_zero
=no
;;
20242 ac_cv_func_mmap_dev_zero
=yes;;
20245 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
20246 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6; }
20248 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
20249 { echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
20250 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6; }
20251 if test "${ac_cv_decl_map_anon+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 cat >conftest.
$ac_ext <<_ACEOF
20257 cat confdefs.h
>>conftest.
$ac_ext
20258 cat >>conftest.
$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 #include <sys/types.h>
20261 #include <sys/mman.h>
20262 #include <unistd.h>
20264 #ifndef MAP_ANONYMOUS
20265 #define MAP_ANONYMOUS MAP_ANON
20271 int n = MAP_ANONYMOUS;
20276 rm -f conftest.
$ac_objext
20277 if { (ac_try
="$ac_compile"
20278 case "(($ac_try" in
20279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_compile") 2>conftest.er1
20285 grep -v '^ *+' conftest.er1 >conftest.err
20287 cat conftest.err >&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && {
20290 test -z "$ac_c_werror_flag" ||
20291 test ! -s conftest.err
20292 } && test -s conftest.$ac_objext; then
20293 ac_cv_decl_map_anon=yes
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ac_cv_decl_map_anon=no
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303 { echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
20304 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6; }
20306 if test $ac_cv_decl_map_anon = no; then
20307 ac_cv_func_mmap_anon=no
20309 { echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
20310 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6; }
20311 if test "${ac_cv_func_mmap_anon+set}" = set; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 # Add a system to this blacklist if it has mmap() and MAP_ANON or
20315 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
20316 # doesn't give anonymous zeroed pages with the same properties listed
20317 # above for use of /dev/zero.
20318 # Systems known to be in this category are Windows, VMS, and SCO Unix.
20320 vms* | cygwin* | pe | mingw* | sco* | udk* )
20321 ac_cv_func_mmap_anon=no ;;
20323 ac_cv_func_mmap_anon=yes;;
20326 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
20327 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6; }
20331 if test $ac_cv_func_mmap_file = yes; then
20333 cat >>confdefs.h <<\_ACEOF
20334 #define HAVE_MMAP_FILE 1
20338 if test $ac_cv_func_mmap_dev_zero = yes; then
20340 cat >>confdefs.h <<\_ACEOF
20341 #define HAVE_MMAP_DEV_ZERO 1
20345 if test $ac_cv_func_mmap_anon = yes; then
20347 cat >>confdefs.h <<\_ACEOF
20348 #define HAVE_MMAP_ANON 1
20354 if test -d $srcdir/testsuite; then
20356 TESTSUBDIR_FALSE='#'
20358 TESTSUBDIR_TRUE='#'
20363 TARGETDIR="unknown"
20366 TARGET=ALPHA; TARGETDIR=alpha;
20367 # Support 128-bit long double, changable via command-line switch.
20368 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
20372 TARGET=ARM; TARGETDIR=arm
20376 TARGET=X86_64; TARGETDIR=x86
20380 TARGET=LIBFFI_CRIS; TARGETDIR=cris
20384 TARGET=FRV; TARGETDIR=frv
20387 hppa*-*-linux* | parisc*-*-linux*)
20388 TARGET=PA_LINUX; TARGETDIR=pa
20391 TARGET=PA64_HPUX; TARGETDIR=pa
20394 TARGET=PA_HPUX; TARGETDIR=pa
20397 i386-*-freebsd* | i386-*-openbsd*)
20398 TARGET=X86_FREEBSD; TARGETDIR=x86
20400 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
20401 TARGET=X86_WIN32; TARGETDIR=x86
20404 TARGET=X86_DARWIN; TARGETDIR=x86
20406 i?86-*-solaris2.1[0-9]*)
20407 TARGET=X86_64; TARGETDIR=x86
20410 TARGET=X86; TARGETDIR=x86
20413 TARGET=X86; TARGETDIR=x86
20417 TARGET=IA64; TARGETDIR=ia64
20421 TARGET=M32R; TARGETDIR=m32r
20425 TARGET=M68K; TARGETDIR=m68k
20428 mips-sgi-irix5.* | mips-sgi-irix6.*)
20429 TARGET=MIPS; TARGETDIR=mips
20432 TARGET=MIPS; TARGETDIR=mips
20435 powerpc*-*-linux* | powerpc-*-sysv*)
20436 TARGET=POWERPC; TARGETDIR=powerpc
20439 TARGET=POWERPC; TARGETDIR=powerpc
20442 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
20444 powerpc-*-aix* | rs6000-*-aix*)
20445 TARGET=POWERPC_AIX; TARGETDIR=powerpc
20447 powerpc-*-freebsd*)
20448 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
20451 TARGET=POWERPC; TARGETDIR=powerpc
20454 s390-*-* | s390x-*-*)
20455 TARGET=S390; TARGETDIR=s390
20458 sh-*-* | sh[34]*-*-*)
20459 TARGET=SH; TARGETDIR=sh
20461 sh64-*-* | sh5*-*-*)
20462 TARGET=SH64; TARGETDIR=sh64
20466 TARGET=SPARC; TARGETDIR=sparc
20470 TARGET=X86_DARWIN; TARGETDIR=x86
20472 x86_64-*-cygwin* | x86_64-*-mingw*)
20475 TARGET=X86_64; TARGETDIR=x86
20481 if test $TARGETDIR = unknown; then
20482 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
20483 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
20484 { (exit 1); exit 1; }; }
20487 if test x$TARGET = xMIPS; then
20495 if test x$TARGET = xSPARC; then
20503 if test x$TARGET = xX86; then
20511 if test x$TARGET = xX86_FREEBSD; then
20513 X86_FREEBSD_FALSE='#'
20515 X86_FREEBSD_TRUE='#'
20519 if test x$TARGET = xX86_WIN32; then
20521 X86_WIN32_FALSE='#'
20527 if test x$TARGET = xX86_DARWIN; then
20529 X86_DARWIN_FALSE='#'
20531 X86_DARWIN_TRUE='#'
20535 if test x$TARGET = xALPHA; then
20543 if test x$TARGET = xIA64; then
20551 if test x$TARGET = xM32R; then
20559 if test x$TARGET = xM68K; then
20567 if test x$TARGET = xPOWERPC; then
20575 if test x$TARGET = xPOWERPC_AIX; then
20577 POWERPC_AIX_FALSE='#'
20579 POWERPC_AIX_TRUE='#'
20583 if test x$TARGET = xPOWERPC_DARWIN; then
20584 POWERPC_DARWIN_TRUE=
20585 POWERPC_DARWIN_FALSE='#'
20587 POWERPC_DARWIN_TRUE='#'
20588 POWERPC_DARWIN_FALSE=
20591 if test x$TARGET = xPOWERPC_FREEBSD; then
20592 POWERPC_FREEBSD_TRUE=
20593 POWERPC_FREEBSD_FALSE='#'
20595 POWERPC_FREEBSD_TRUE='#'
20596 POWERPC_FREEBSD_FALSE=
20599 if test x$TARGET = xARM; then
20607 if test x$TARGET = xLIBFFI_CRIS; then
20609 LIBFFI_CRIS_FALSE='#'
20611 LIBFFI_CRIS_TRUE='#'
20615 if test x$TARGET = xFRV; then
20623 if test x$TARGET = xS390; then
20631 if test x$TARGET = xX86_64; then
20639 if test x$TARGET = xSH; then
20647 if test x$TARGET = xSH64; then
20655 if test x$TARGET = xPA_LINUX; then
20663 if test x$TARGET = xPA_HPUX; then
20671 if test x$TARGET = xPA64_HPUX; then
20673 PA64_HPUX_FALSE='#'
20680 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20681 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20682 if test "${ac_cv_header_stdc+set}" = set; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
20685 cat >conftest.$ac_ext <<_ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 #include <stdlib.h>
20692 #include <stdarg.h>
20693 #include <string.h>
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20708 *) ac_try_echo
=$ac_try;;
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_compile") 2>conftest.er1
20713 grep -v '^ *+' conftest.er1
>conftest.err
20715 cat conftest.err
>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } && {
20718 test -z "$ac_c_werror_flag" ||
20719 test ! -s conftest.err
20720 } && test -s conftest.
$ac_objext; then
20721 ac_cv_header_stdc
=yes
20723 echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.
$ac_ext >&5
20726 ac_cv_header_stdc
=no
20729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20731 if test $ac_cv_header_stdc = yes; then
20732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20733 cat >conftest.
$ac_ext <<_ACEOF
20736 cat confdefs.h
>>conftest.
$ac_ext
20737 cat >>conftest.
$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20739 #include <string.h>
20742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20743 $EGREP "memchr" >/dev
/null
2>&1; then
20746 ac_cv_header_stdc
=no
20752 if test $ac_cv_header_stdc = yes; then
20753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20754 cat >conftest.
$ac_ext <<_ACEOF
20757 cat confdefs.h
>>conftest.
$ac_ext
20758 cat >>conftest.
$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760 #include <stdlib.h>
20763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20764 $EGREP "free" >/dev
/null
2>&1; then
20767 ac_cv_header_stdc
=no
20773 if test $ac_cv_header_stdc = yes; then
20774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20775 if test "$cross_compiling" = yes; then
20778 cat >conftest.
$ac_ext <<_ACEOF
20781 cat confdefs.h
>>conftest.
$ac_ext
20782 cat >>conftest.
$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20785 #include <stdlib.h>
20786 #if ((' ' & 0x0FF) == 0x020)
20787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20790 # define ISLOWER(c) \
20791 (('a' <= (c) && (c) <= 'i') \
20792 || ('j' <= (c) && (c) <= 'r') \
20793 || ('s' <= (c) && (c) <= 'z'))
20794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20802 for (i = 0; i < 256; i++)
20803 if (XOR (islower (i), ISLOWER (i))
20804 || toupper (i) != TOUPPER (i))
20809 rm -f conftest
$ac_exeext
20810 if { (ac_try
="$ac_link"
20811 case "(($ac_try" in
20812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_link") 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20820 { (case "(($ac_try" in
20821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20822 *) ac_try_echo
=$ac_try;;
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_try") 2>&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20831 echo "$as_me: program exited with status $ac_status" >&5
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.
$ac_ext >&5
20835 ( exit $ac_status )
20836 ac_cv_header_stdc
=no
20838 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20844 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20845 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20846 if test $ac_cv_header_stdc = yes; then
20848 cat >>confdefs.h
<<\_ACEOF
20849 #define STDC_HEADERS 1
20855 for ac_func
in memcpy
20857 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20860 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 cat >conftest.
$ac_ext <<_ACEOF
20866 cat confdefs.h
>>conftest.
$ac_ext
20867 cat >>conftest.
$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20871 #define $ac_func innocuous_$ac_func
20873 /* System header to define __stub macros and hopefully few prototypes,
20874 which can conflict with char $ac_func (); below.
20875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20876 <limits.h> exists even on freestanding compilers. */
20879 # include <limits.h>
20881 # include <assert.h>
20886 /* Override any GCC internal prototype to avoid an error.
20887 Use char because int might match the return type of a GCC
20888 builtin and then its argument prototype would still apply. */
20893 /* The GNU C library defines this for functions which it implements
20894 to always fail with ENOSYS. Some functions are actually named
20895 something starting with __ and the normal name is an alias. */
20896 #if defined __stub_$ac_func || defined __stub___$ac_func
20903 return $ac_func ();
20908 rm -f conftest.
$ac_objext conftest
$ac_exeext
20909 if { (ac_try
="$ac_link"
20910 case "(($ac_try" in
20911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_link") 2>conftest.er1
20917 grep -v '^ *+' conftest.er1 >conftest.err
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } && {
20922 test -z "$ac_c_werror_flag" ||
20923 test ! -s conftest.err
20924 } && test -s conftest$ac_exeext &&
20925 $as_test_x conftest$ac_exeext; then
20926 eval "$as_ac_var=yes"
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 eval "$as_ac_var=no"
20934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20935 conftest$ac_exeext conftest.$ac_ext
20937 ac_res=`eval echo '${'$as_ac_var'}'`
20938 { echo "$as_me:$LINENO: result: $ac_res" >&5
20939 echo "${ECHO_T}$ac_res" >&6; }
20940 if test `eval echo '${'$as_ac_var'}'` = yes; then
20941 cat >>confdefs.h <<_ACEOF
20942 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20948 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20949 # for constant arguments. Useless!
20950 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
20951 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
20952 if test "${ac_cv_working_alloca_h+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <alloca.h>
20965 char *p = (char *) alloca (2 * sizeof (int));
20971 rm -f conftest.$ac_objext conftest$ac_exeext
20972 if { (ac_try="$ac_link"
20973 case "(($ac_try" in
20974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20975 *) ac_try_echo
=$ac_try;;
20977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978 (eval "$ac_link") 2>conftest.er1
20980 grep -v '^ *+' conftest.er1
>conftest.err
20982 cat conftest.err
>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } && {
20985 test -z "$ac_c_werror_flag" ||
20986 test ! -s conftest.err
20987 } && test -s conftest
$ac_exeext &&
20988 $as_test_x conftest
$ac_exeext; then
20989 ac_cv_working_alloca_h
=yes
20991 echo "$as_me: failed program was:" >&5
20992 sed 's/^/| /' conftest.
$ac_ext >&5
20994 ac_cv_working_alloca_h
=no
20997 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20998 conftest
$ac_exeext conftest.
$ac_ext
21000 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21001 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
21002 if test $ac_cv_working_alloca_h = yes; then
21004 cat >>confdefs.h
<<\_ACEOF
21005 #define HAVE_ALLOCA_H 1
21010 { echo "$as_me:$LINENO: checking for alloca" >&5
21011 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
21012 if test "${ac_cv_func_alloca_works+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 cat >conftest.
$ac_ext <<_ACEOF
21018 cat confdefs.h
>>conftest.
$ac_ext
21019 cat >>conftest.
$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21022 # define alloca __builtin_alloca
21025 # include <malloc.h>
21026 # define alloca _alloca
21028 # ifdef HAVE_ALLOCA_H
21029 # include <alloca.h>
21034 # ifndef alloca /* predefined by HP cc +Olibcalls */
21045 char *p = (char *) alloca (1);
21051 rm -f conftest.
$ac_objext conftest
$ac_exeext
21052 if { (ac_try
="$ac_link"
21053 case "(($ac_try" in
21054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_link") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest$ac_exeext &&
21068 $as_test_x conftest$ac_exeext; then
21069 ac_cv_func_alloca_works=yes
21071 echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_cv_func_alloca_works=no
21077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21078 conftest$ac_exeext conftest.$ac_ext
21080 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21081 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
21083 if test $ac_cv_func_alloca_works = yes; then
21085 cat >>confdefs.h <<\_ACEOF
21086 #define HAVE_ALLOCA 1
21090 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21091 # that cause trouble. Some versions do not even contain alloca or
21092 # contain a buggy version. If you still want to use their alloca,
21093 # use ar to extract alloca.o from them instead of compiling alloca.c.
21095 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21097 cat >>confdefs.h <<\_ACEOF
21102 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
21103 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
21104 if test "${ac_cv_os_cray+set}" = set; then
21105 echo $ECHO_N "(cached
) $ECHO_C" >&6
21107 cat >conftest.$ac_ext <<_ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 #if defined CRAY && ! defined CRAY2
21120 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
21121 $EGREP "webecray
" >/dev/null 2>&1; then
21129 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
21130 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
21131 if test $ac_cv_os_cray = yes; then
21132 for ac_func in _getb67 GETB67 getb67; do
21133 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21134 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21135 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21136 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21137 echo $ECHO_N "(cached
) $ECHO_C" >&6
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21147 #define $ac_func innocuous_$ac_func
21149 /* System header to define __stub macros and hopefully few prototypes,
21150 which can conflict with char $ac_func (); below.
21151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21152 <limits.h> exists even on freestanding compilers. */
21155 # include <limits.h>
21157 # include <assert.h>
21162 /* Override any GCC internal prototype to avoid an error.
21163 Use char because int might match the return type of a GCC
21164 builtin and then its argument prototype would still apply. */
21169 /* The GNU C library defines this for functions which it implements
21170 to always fail with ENOSYS. Some functions are actually named
21171 something starting with __ and the normal name is an alias. */
21172 #if defined __stub_$ac_func || defined __stub___$ac_func
21179 return $ac_func ();
21184 rm -f conftest.$ac_objext conftest$ac_exeext
21185 if { (ac_try="$ac_link"
21186 case "(($ac_try" in
21187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21188 *) ac_try_echo=$ac_try;;
21190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21191 (eval "$ac_link") 2>conftest.er1
21193 grep -v '^ *+' conftest.er1 >conftest.err
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21197 (exit $ac_status); } && {
21198 test -z "$ac_c_werror_flag" ||
21199 test ! -s conftest.err
21200 } && test -s conftest$ac_exeext &&
21201 $as_test_x conftest$ac_exeext; then
21202 eval "$as_ac_var=yes"
21204 echo "$as_me: failed program was
:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 eval "$as_ac_var=no
"
21210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21211 conftest$ac_exeext conftest.$ac_ext
21213 ac_res=`eval echo '${'$as_ac_var'}'`
21214 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21215 echo "${ECHO_T}$ac_res" >&6; }
21216 if test `eval echo '${'$as_ac_var'}'` = yes; then
21218 cat >>confdefs.h <<_ACEOF
21219 #define CRAY_STACKSEG_END $ac_func
21228 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
21229 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
21230 if test "${ac_cv_c_stack_direction+set}" = set; then
21231 echo $ECHO_N "(cached
) $ECHO_C" >&6
21233 if test "$cross_compiling" = yes; then
21234 ac_cv_c_stack_direction=0
21236 cat >conftest.$ac_ext <<_ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h. */
21242 $ac_includes_default
21244 find_stack_direction ()
21246 static char *addr = 0;
21251 return find_stack_direction ();
21254 return (&dummy > addr) ? 1 : -1;
21260 return find_stack_direction () < 0;
21263 rm -f conftest$ac_exeext
21264 if { (ac_try="$ac_link"
21265 case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_link") 2>&5
21272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21274 { (case "(($ac_try" in
21275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276 *) ac_try_echo=$ac_try;;
21278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21279 (eval "$ac_try") 2>&5
21281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21282 (exit $ac_status); }; }; then
21283 ac_cv_c_stack_direction=1
21285 echo "$as_me: program exited with status
$ac_status" >&5
21286 echo "$as_me: failed program was
:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21289 ( exit $ac_status )
21290 ac_cv_c_stack_direction=-1
21292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21297 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
21298 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
21300 cat >>confdefs.h <<_ACEOF
21301 #define STACK_DIRECTION $ac_cv_c_stack_direction
21308 { echo "$as_me:$LINENO: checking
for double
" >&5
21309 echo $ECHO_N "checking
for double...
$ECHO_C" >&6; }
21310 if test "${ac_cv_type_double+set}" = set; then
21311 echo $ECHO_N "(cached
) $ECHO_C" >&6
21313 cat >conftest.$ac_ext <<_ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 $ac_includes_default
21320 typedef double ac__type_new_;
21324 if ((ac__type_new_ *) 0)
21326 if (sizeof (ac__type_new_))
21332 rm -f conftest.$ac_objext
21333 if { (ac_try="$ac_compile"
21334 case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21339 (eval "$ac_compile") 2>conftest.er1
21341 grep -v '^ *+' conftest.er1 >conftest.err
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21345 (exit $ac_status); } && {
21346 test -z "$ac_c_werror_flag" ||
21347 test ! -s conftest.err
21348 } && test -s conftest.$ac_objext; then
21349 ac_cv_type_double=yes
21351 echo "$as_me: failed program was
:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ac_cv_type_double=no
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21359 { echo "$as_me:$LINENO: result
: $ac_cv_type_double" >&5
21360 echo "${ECHO_T}$ac_cv_type_double" >&6; }
21362 # The cast to long int works around a bug in the HP C Compiler
21363 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21364 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21365 # This bug is HP SR number 8606223364.
21366 { echo "$as_me:$LINENO: checking size of double
" >&5
21367 echo $ECHO_N "checking size of double...
$ECHO_C" >&6; }
21368 if test "${ac_cv_sizeof_double+set}" = set; then
21369 echo $ECHO_N "(cached
) $ECHO_C" >&6
21371 if test "$cross_compiling" = yes; then
21372 # Depending upon the size, compute the lo and hi bounds.
21373 cat >conftest.$ac_ext <<_ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21380 typedef double ac__type_sizeof_;
21384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21400 grep -v '^ *+' conftest.er1 >conftest.err
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest.$ac_objext; then
21410 cat >conftest.$ac_ext <<_ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21416 $ac_includes_default
21417 typedef double ac__type_sizeof_;
21421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21428 rm -f conftest.$ac_objext
21429 if { (ac_try="$ac_compile"
21430 case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_compile") 2>conftest.er1
21437 grep -v '^ *+' conftest.er1 >conftest.err
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21441 (exit $ac_status); } && {
21442 test -z "$ac_c_werror_flag" ||
21443 test ! -s conftest.err
21444 } && test -s conftest.$ac_objext; then
21445 ac_hi=$ac_mid; break
21447 echo "$as_me: failed program was
:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21450 ac_lo=`expr $ac_mid + 1`
21451 if test $ac_lo -le $ac_mid; then
21455 ac_mid=`expr 2 '*' $ac_mid + 1`
21458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21461 echo "$as_me: failed program was
:" >&5
21462 sed 's/^/| /' conftest.$ac_ext >&5
21464 cat >conftest.$ac_ext <<_ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21470 $ac_includes_default
21471 typedef double ac__type_sizeof_;
21475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21482 rm -f conftest.$ac_objext
21483 if { (ac_try="$ac_compile"
21484 case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_compile") 2>conftest.er1
21491 grep -v '^ *+' conftest.er1 >conftest.err
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21495 (exit $ac_status); } && {
21496 test -z "$ac_c_werror_flag" ||
21497 test ! -s conftest.err
21498 } && test -s conftest.$ac_objext; then
21501 cat >conftest.$ac_ext <<_ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h. */
21507 $ac_includes_default
21508 typedef double ac__type_sizeof_;
21512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21519 rm -f conftest.$ac_objext
21520 if { (ac_try="$ac_compile"
21521 case "(($ac_try" in
21522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523 *) ac_try_echo=$ac_try;;
21525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21526 (eval "$ac_compile") 2>conftest.er1
21528 grep -v '^ *+' conftest.er1 >conftest.err
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21532 (exit $ac_status); } && {
21533 test -z "$ac_c_werror_flag" ||
21534 test ! -s conftest.err
21535 } && test -s conftest.$ac_objext; then
21536 ac_lo=$ac_mid; break
21538 echo "$as_me: failed program was
:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21541 ac_hi=`expr '(' $ac_mid ')' - 1`
21542 if test $ac_mid -le $ac_hi; then
21546 ac_mid=`expr 2 '*' $ac_mid`
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552 echo "$as_me: failed program was
:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21562 # Binary search between lo and hi bounds.
21563 while test "x
$ac_lo" != "x
$ac_hi"; do
21564 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21565 cat >conftest.$ac_ext <<_ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571 $ac_includes_default
21572 typedef double ac__type_sizeof_;
21576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21583 rm -f conftest.$ac_objext
21584 if { (ac_try="$ac_compile"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_compile") 2>conftest.er1
21592 grep -v '^ *+' conftest.er1 >conftest.err
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest.$ac_objext; then
21602 echo "$as_me: failed program was
:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_lo=`expr '(' $ac_mid ')' + 1`
21608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21611 ?*) ac_cv_sizeof_double=$ac_lo;;
21612 '') if test "$ac_cv_type_double" = yes; then
21613 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
21614 See \
`config.log' for more details." >&5
21615 echo "$as_me: error: cannot compute sizeof (double)
21616 See \`config.log
' for more details." >&2;}
21617 { (exit 77); exit 77; }; }
21619 ac_cv_sizeof_double=0
21623 cat >conftest.$ac_ext <<_ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21629 $ac_includes_default
21630 typedef double ac__type_sizeof_;
21631 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21632 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21634 #include <stdlib.h>
21639 FILE *f = fopen ("conftest.val", "w");
21642 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21644 long int i = longval ();
21645 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21647 fprintf (f, "%ld\n", i);
21651 unsigned long int i = ulongval ();
21652 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21654 fprintf (f, "%lu\n", i);
21656 return ferror (f) || fclose (f) != 0;
21662 rm -f conftest$ac_exeext
21663 if { (ac_try="$ac_link"
21664 case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_link") 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21673 { (case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_try") 2>&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; }; then
21682 ac_cv_sizeof_double=`cat conftest.val`
21684 echo "$as_me: program exited with status $ac_status" >&5
21685 echo "$as_me: failed program was:" >&5
21686 sed 's
/^
/|
/' conftest.$ac_ext >&5
21688 ( exit $ac_status )
21689 if test "$ac_cv_type_double" = yes; then
21690 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
21691 See \`config.log' for more details.
" >&5
21692 echo "$as_me: error
: cannot compute sizeof
(double
)
21693 See \
`config.log' for more details." >&2;}
21694 { (exit 77); exit 77; }; }
21696 ac_cv_sizeof_double=0
21699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21703 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21704 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
21708 cat >>confdefs.h <<_ACEOF
21709 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21713 { echo "$as_me:$LINENO: checking for long double" >&5
21714 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
21715 if test "${ac_cv_type_long_double+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21718 cat >conftest.$ac_ext <<_ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h. */
21724 $ac_includes_default
21725 typedef long double ac__type_new_;
21729 if ((ac__type_new_ *) 0)
21731 if (sizeof (ac__type_new_))
21737 rm -f conftest.$ac_objext
21738 if { (ac_try="$ac_compile"
21739 case "(($ac_try" in
21740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21741 *) ac_try_echo
=$ac_try;;
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_compile") 2>conftest.er1
21746 grep -v '^ *+' conftest.er1
>conftest.err
21748 cat conftest.err
>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } && {
21751 test -z "$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 } && test -s conftest.
$ac_objext; then
21754 ac_cv_type_long_double
=yes
21756 echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.
$ac_ext >&5
21759 ac_cv_type_long_double
=no
21762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21764 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
21765 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
21767 # The cast to long int works around a bug in the HP C Compiler
21768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21770 # This bug is HP SR number 8606223364.
21771 { echo "$as_me:$LINENO: checking size of long double" >&5
21772 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
21773 if test "${ac_cv_sizeof_long_double+set}" = set; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 if test "$cross_compiling" = yes; then
21777 # Depending upon the size, compute the lo and hi bounds.
21778 cat >conftest.
$ac_ext <<_ACEOF
21781 cat confdefs.h
>>conftest.
$ac_ext
21782 cat >>conftest.
$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21784 $ac_includes_default
21785 typedef long double ac__type_sizeof_;
21789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21796 rm -f conftest.
$ac_objext
21797 if { (ac_try
="$ac_compile"
21798 case "(($ac_try" in
21799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_compile") 2>conftest.er1
21805 grep -v '^ *+' conftest.er1 >conftest.err
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } && {
21810 test -z "$ac_c_werror_flag" ||
21811 test ! -s conftest.err
21812 } && test -s conftest.$ac_objext; then
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 $ac_includes_default
21822 typedef long double ac__type_sizeof_;
21826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21837 *) ac_try_echo
=$ac_try;;
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_compile") 2>conftest.er1
21842 grep -v '^ *+' conftest.er1
>conftest.err
21844 cat conftest.err
>&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } && {
21847 test -z "$ac_c_werror_flag" ||
21848 test ! -s conftest.err
21849 } && test -s conftest.
$ac_objext; then
21850 ac_hi
=$ac_mid; break
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.
$ac_ext >&5
21855 ac_lo
=`expr $ac_mid + 1`
21856 if test $ac_lo -le $ac_mid; then
21860 ac_mid
=`expr 2 '*' $ac_mid + 1`
21863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21866 echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.
$ac_ext >&5
21869 cat >conftest.
$ac_ext <<_ACEOF
21872 cat confdefs.h
>>conftest.
$ac_ext
21873 cat >>conftest.
$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21875 $ac_includes_default
21876 typedef long double ac__type_sizeof_;
21880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21887 rm -f conftest.
$ac_objext
21888 if { (ac_try
="$ac_compile"
21889 case "(($ac_try" in
21890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21891 *) ac_try_echo=$ac_try;;
21893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21894 (eval "$ac_compile") 2>conftest.er1
21896 grep -v '^ *+' conftest.er1 >conftest.err
21898 cat conftest.err >&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } && {
21901 test -z "$ac_c_werror_flag" ||
21902 test ! -s conftest.err
21903 } && test -s conftest.$ac_objext; then
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 $ac_includes_default
21913 typedef long double ac__type_sizeof_;
21917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21924 rm -f conftest.$ac_objext
21925 if { (ac_try="$ac_compile"
21926 case "(($ac_try" in
21927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21928 *) ac_try_echo
=$ac_try;;
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931 (eval "$ac_compile") 2>conftest.er1
21933 grep -v '^ *+' conftest.er1
>conftest.err
21935 cat conftest.err
>&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); } && {
21938 test -z "$ac_c_werror_flag" ||
21939 test ! -s conftest.err
21940 } && test -s conftest.
$ac_objext; then
21941 ac_lo
=$ac_mid; break
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.
$ac_ext >&5
21946 ac_hi
=`expr '(' $ac_mid ')' - 1`
21947 if test $ac_mid -le $ac_hi; then
21951 ac_mid
=`expr 2 '*' $ac_mid`
21954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21957 echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.
$ac_ext >&5
21963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21967 # Binary search between lo and hi bounds.
21968 while test "x$ac_lo" != "x$ac_hi"; do
21969 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21970 cat >conftest.
$ac_ext <<_ACEOF
21973 cat confdefs.h
>>conftest.
$ac_ext
21974 cat >>conftest.
$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 $ac_includes_default
21977 typedef long double ac__type_sizeof_;
21981 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21988 rm -f conftest.
$ac_objext
21989 if { (ac_try
="$ac_compile"
21990 case "(($ac_try" in
21991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21992 *) ac_try_echo=$ac_try;;
21994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21995 (eval "$ac_compile") 2>conftest.er1
21997 grep -v '^ *+' conftest.er1 >conftest.err
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } && {
22002 test -z "$ac_c_werror_flag" ||
22003 test ! -s conftest.err
22004 } && test -s conftest.$ac_objext; then
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22010 ac_lo=`expr '(' $ac_mid ')' + 1`
22013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22016 ?*) ac_cv_sizeof_long_double=$ac_lo;;
22017 '') if test "$ac_cv_type_long_double" = yes; then
22018 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
22019 See \`config.log
' for more details." >&5
22020 echo "$as_me: error: cannot compute sizeof (long double)
22021 See \`config.log' for more details.
" >&2;}
22022 { (exit 77); exit 77; }; }
22024 ac_cv_sizeof_long_double=0
22028 cat >conftest.$ac_ext <<_ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22034 $ac_includes_default
22035 typedef long double ac__type_sizeof_;
22036 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22037 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22039 #include <stdlib.h>
22044 FILE *f = fopen ("conftest.val
", "w
");
22047 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22049 long int i = longval ();
22050 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22052 fprintf (f, "%ld
\n", i);
22056 unsigned long int i = ulongval ();
22057 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22059 fprintf (f, "%lu
\n", i);
22061 return ferror (f) || fclose (f) != 0;
22067 rm -f conftest$ac_exeext
22068 if { (ac_try="$ac_link"
22069 case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22074 (eval "$ac_link") 2>&5
22076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22078 { (case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_try") 2>&5
22085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22086 (exit $ac_status); }; }; then
22087 ac_cv_sizeof_long_double=`cat conftest.val`
22089 echo "$as_me: program exited with status
$ac_status" >&5
22090 echo "$as_me: failed program was
:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ( exit $ac_status )
22094 if test "$ac_cv_type_long_double" = yes; then
22095 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
22096 See \
`config.log' for more details." >&5
22097 echo "$as_me: error: cannot compute sizeof (long double)
22098 See \`config.log
' for more details." >&2;}
22099 { (exit 77); exit 77; }; }
22101 ac_cv_sizeof_long_double=0
22104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22108 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
22109 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
22113 cat >>confdefs.h <<_ACEOF
22114 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
22119 # Also AC_SUBST this variable for ffi.h.
22120 if test -z "$HAVE_LONG_DOUBLE"; then
22122 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
22123 if test $ac_cv_sizeof_long_double != 0; then
22126 cat >>confdefs.h <<\_ACEOF
22127 #define HAVE_LONG_DOUBLE 1
22135 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22136 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22137 if test "${ac_cv_c_bigendian+set}" = set; then
22138 echo $ECHO_N "(cached) $ECHO_C" >&6
22140 # See if sys/param.h defines the BYTE_ORDER macro.
22141 cat >conftest.$ac_ext <<_ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h. */
22147 #include <sys/types.h>
22148 #include <sys/param.h>
22153 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22154 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22155 bogus endian macros
22162 rm -f conftest.$ac_objext
22163 if { (ac_try="$ac_compile"
22164 case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169 (eval "$ac_compile") 2>conftest.er1
22171 grep -v '^
*+' conftest.er1 >conftest.err
22173 cat conftest.err >&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } && {
22176 test -z "$ac_c_werror_flag" ||
22177 test ! -s conftest.err
22178 } && test -s conftest.$ac_objext; then
22179 # It does; now see whether it defined to BIG_ENDIAN or not.
22180 cat >conftest.$ac_ext <<_ACEOF
22183 cat confdefs.h >>conftest.$ac_ext
22184 cat >>conftest.$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22186 #include <sys/types.h>
22187 #include <sys/param.h>
22192 #if BYTE_ORDER != BIG_ENDIAN
22200 rm -f conftest.$ac_objext
22201 if { (ac_try="$ac_compile"
22202 case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207 (eval "$ac_compile") 2>conftest.er1
22209 grep -v '^
*+' conftest.er1 >conftest.err
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } && {
22214 test -z "$ac_c_werror_flag" ||
22215 test ! -s conftest.err
22216 } && test -s conftest.$ac_objext; then
22217 ac_cv_c_bigendian=yes
22219 echo "$as_me: failed program was:" >&5
22220 sed 's
/^
/|
/' conftest.$ac_ext >&5
22222 ac_cv_c_bigendian=no
22225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22227 echo "$as_me: failed program was:" >&5
22228 sed 's
/^
/|
/' conftest.$ac_ext >&5
22230 # It does not; compile a test program.
22231 if test "$cross_compiling" = yes; then
22232 # try to guess the endianness by grepping values into an object file
22233 ac_cv_c_bigendian=unknown
22234 cat >conftest.$ac_ext <<_ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22240 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22241 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22242 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22243 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22244 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22245 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22249 _ascii (); _ebcdic ();
22254 rm -f conftest.$ac_objext
22255 if { (ac_try="$ac_compile"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_compile") 2>conftest.er1
22263 grep -v '^
*+' conftest.er1 >conftest.err
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); } && {
22268 test -z "$ac_c_werror_flag" ||
22269 test ! -s conftest.err
22270 } && test -s conftest.$ac_objext; then
22271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22272 ac_cv_c_bigendian=yes
22274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22275 if test "$ac_cv_c_bigendian" = unknown; then
22276 ac_cv_c_bigendian=no
22278 # finding both strings is unlikely to happen, but who knows?
22279 ac_cv_c_bigendian=unknown
22283 echo "$as_me: failed program was:" >&5
22284 sed 's
/^
/|
/' conftest.$ac_ext >&5
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 cat >conftest.$ac_ext <<_ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 $ac_includes_default
22302 /* Are we little or big endian? From Harbison&Steele. */
22306 char c[sizeof (long int)];
22309 return u.c[sizeof (long int) - 1] == 1;
22315 rm -f conftest$ac_exeext
22316 if { (ac_try="$ac_link"
22317 case "(($ac_try" in
22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319 *) ac_try_echo=$ac_try;;
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_link") 2>&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22326 { (case "(($ac_try" in
22327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328 *) ac_try_echo=$ac_try;;
22330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22331 (eval "$ac_try") 2>&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); }; }; then
22335 ac_cv_c_bigendian=no
22337 echo "$as_me: program exited with status $ac_status" >&5
22338 echo "$as_me: failed program was:" >&5
22339 sed 's
/^
/|
/' conftest.$ac_ext >&5
22341 ( exit $ac_status )
22342 ac_cv_c_bigendian=yes
22344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22354 case $ac_cv_c_bigendian in
22357 cat >>confdefs.h <<\_ACEOF
22358 #define WORDS_BIGENDIAN 1
22364 { { echo "$as_me:$LINENO: error: unknown endianness
22365 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22366 echo "$as_me: error: unknown endianness
22367 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22368 { (exit 1); exit 1; }; } ;;
22372 { echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
22373 echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6; }
22374 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 libffi_cv_as_cfi_pseudo_op=unknown
22379 cat >conftest.$ac_ext <<_ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22385 asm (".cfi_startproc\n\t.cfi_endproc");
22394 rm -f conftest.$ac_objext
22395 if { (ac_try="$ac_compile"
22396 case "(($ac_try" in
22397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398 *) ac_try_echo=$ac_try;;
22400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22401 (eval "$ac_compile") 2>conftest.er1
22403 grep -v '^
*+' conftest.er1 >conftest.err
22405 cat conftest.err >&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest.$ac_objext; then
22411 libffi_cv_as_cfi_pseudo_op=yes
22413 echo "$as_me: failed program was:" >&5
22414 sed 's
/^
/|
/' conftest.$ac_ext >&5
22416 libffi_cv_as_cfi_pseudo_op=no
22419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22422 { echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
22423 echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6; }
22424 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
22426 cat >>confdefs.h <<\_ACEOF
22427 #define HAVE_AS_CFI_PSEUDO_OP 1
22432 if test x$TARGET = xSPARC; then
22433 { echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
22434 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6; }
22435 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
22436 echo $ECHO_N "(cached) $ECHO_C" >&6
22439 save_CFLAGS="$CFLAGS"
22440 save_LDFLAGS="$LDFLAGS"
22441 CFLAGS="$CFLAGS -fpic"
22442 LDFLAGS="$LDFLAGS -shared"
22443 cat >conftest.$ac_ext <<_ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22449 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
22458 rm -f conftest.$ac_objext conftest$ac_exeext
22459 if { (ac_try="$ac_link"
22460 case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_link") 2>conftest.er1
22467 grep -v '^
*+' conftest.er1 >conftest.err
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } && {
22472 test -z "$ac_c_werror_flag" ||
22473 test ! -s conftest.err
22474 } && test -s conftest$ac_exeext &&
22475 $as_test_x conftest$ac_exeext; then
22476 libffi_cv_as_sparc_ua_pcrel=yes
22478 echo "$as_me: failed program was:" >&5
22479 sed 's
/^
/|
/' conftest.$ac_ext >&5
22481 libffi_cv_as_sparc_ua_pcrel=no
22484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22485 conftest$ac_exeext conftest.$ac_ext
22486 CFLAGS="$save_CFLAGS"
22487 LDFLAGS="$save_LDFLAGS"
22489 { echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
22490 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6; }
22491 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
22493 cat >>confdefs.h <<\_ACEOF
22494 #define HAVE_AS_SPARC_UA_PCREL 1
22499 { echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
22500 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6; }
22501 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22505 libffi_cv_as_register_pseudo_op=unknown
22506 # Check if we have .register
22507 cat >conftest.$ac_ext <<_ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h. */
22513 asm (".register %g2, #scratch");
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_compile") 2>conftest.er1
22531 grep -v '^
*+' conftest.er1 >conftest.err
22533 cat conftest.err >&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } && {
22536 test -z "$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22538 } && test -s conftest.$ac_objext; then
22539 libffi_cv_as_register_pseudo_op=yes
22541 echo "$as_me: failed program was:" >&5
22542 sed 's
/^
/|
/' conftest.$ac_ext >&5
22544 libffi_cv_as_register_pseudo_op=no
22547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 { echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
22551 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6; }
22552 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
22554 cat >>confdefs.h <<\_ACEOF
22555 #define HAVE_AS_REGISTER_PSEUDO_OP 1
22561 { echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
22562 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6; }
22563 if test "${libffi_cv_ro_eh_frame+set}" = set; then
22564 echo $ECHO_N "(cached) $ECHO_C" >&6
22567 libffi_cv_ro_eh_frame=no
22568 echo 'extern void foo
(void
); void bar
(void
) { foo
(); foo
(); }' > conftest.c
22569 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
22570 if grep '.section.
*eh_frame.
*"a"' conftest.s > /dev/null; then
22571 libffi_cv_ro_eh_frame=yes
22572 elif grep '.section.
*eh_frame.
*#alloc' conftest.c \
22573 |
grep -v '#write' > /dev
/null
; then
22574 libffi_cv_ro_eh_frame
=yes
22580 { echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
22581 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6; }
22582 if test "x$libffi_cv_ro_eh_frame" = xyes
; then
22584 cat >>confdefs.h
<<\_ACEOF
22585 #define HAVE_RO_EH_FRAME 1
22589 cat >>confdefs.h
<<\_ACEOF
22590 #define EH_FRAME_FLAGS "a"
22595 cat >>confdefs.h
<<\_ACEOF
22596 #define EH_FRAME_FLAGS "aw"
22601 { echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
22602 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6; }
22603 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22607 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
22608 libffi_cv_hidden_visibility_attribute
=no
22609 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
22610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611 (eval $ac_try) 2>&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; }; then
22615 if grep '\.hidden.*foo' conftest.s
>/dev
/null
; then
22616 libffi_cv_hidden_visibility_attribute
=yes
22622 { echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
22623 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6; }
22624 if test $libffi_cv_hidden_visibility_attribute = yes; then
22626 cat >>confdefs.h
<<\_ACEOF
22627 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
22640 # Check whether --enable-debug was given.
22641 if test "${enable_debug+set}" = set; then
22642 enableval
=$enable_debug; if test "$enable_debug" = "yes"; then
22644 cat >>confdefs.h
<<\_ACEOF
22645 #define FFI_DEBUG 1
22652 # Check whether --enable-structs was given.
22653 if test "${enable_structs+set}" = set; then
22654 enableval
=$enable_structs; if test "$enable_structs" = "no"; then
22656 cat >>confdefs.h
<<\_ACEOF
22657 #define FFI_NO_STRUCTS 1
22664 # Check whether --enable-raw-api was given.
22665 if test "${enable_raw_api+set}" = set; then
22666 enableval
=$enable_raw_api; if test "$enable_raw_api" = "no"; then
22668 cat >>confdefs.h
<<\_ACEOF
22669 #define FFI_NO_RAW_API 1
22676 # Check whether --enable-purify-safety was given.
22677 if test "${enable_purify_safety+set}" = set; then
22678 enableval
=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
22680 cat >>confdefs.h
<<\_ACEOF
22681 #define USING_PURIFY 1
22688 if test -n "$with_cross_host" &&
22689 test x
"$with_cross_host" != x
"no"; then
22690 toolexecdir
='$(exec_prefix)/$(target_alias)'
22691 toolexeclibdir
='$(toolexecdir)/lib'
22693 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
22694 toolexeclibdir
='$(libdir)'
22696 multi_os_directory
=`$CC -print-multi-os-directory`
22697 case $multi_os_directory in
22698 .
) ;; # Avoid trailing /.
22699 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
22704 if test "${multilib}" = "yes"; then
22705 multilib_arg
="--enable-multilib"
22710 ac_config_commands
="$ac_config_commands include"
22712 ac_config_commands
="$ac_config_commands src"
22715 ac_config_links
="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
22718 ac_config_files
="$ac_config_files include/ffi.h"
22721 ac_config_links
="$ac_config_links include/ffi_common.h:include/ffi_common.h"
22724 ac_config_files
="$ac_config_files fficonfig.py"
22727 cat >confcache
<<\_ACEOF
22728 # This file is a shell script that caches the results of configure
22729 # tests run on this system so they can be shared between configure
22730 # scripts and configure runs, see configure's option --config-cache.
22731 # It is not useful on other systems. If it contains results you don't
22732 # want to keep, you may remove or edit it.
22734 # config.status only pays attention to the cache file if you give it
22735 # the --recheck option to rerun configure.
22737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22739 # following values.
22743 # The following way of writing the cache mishandles newlines in values,
22744 # but we know of no workaround that is simple, portable, and efficient.
22745 # So, we kill variables containing newlines.
22746 # Ultrix sh set writes to stderr and can't be redirected directly,
22747 # and sets the high bit in the cache file unless we assign to the vars.
22749 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22750 eval ac_val
=\$
$ac_var
22754 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22758 _ | IFS | as_nl
) ;; #(
22759 *) $as_unset $ac_var ;;
22765 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22766 *${as_nl}ac_space
=\
*)
22767 # `set' does not quote correctly, so add quotes (double-quote
22768 # substitution turns \\\\ into \\, and sed turns \\ into \).
22771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22774 # `set' quotes correctly as required by POSIX, so do not add quotes.
22775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22786 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22788 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22789 if test -w "$cache_file"; then
22790 test "x$cache_file" != "x/dev/null" &&
22791 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22792 echo "$as_me: updating cache $cache_file" >&6;}
22793 cat confcache
>$cache_file
22795 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22796 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22801 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22802 # Let make expand exec_prefix.
22803 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22805 DEFS
=-DHAVE_CONFIG_H
22809 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22810 # 1. Remove the extension, and $U if already installed.
22811 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22812 ac_i
=`echo "$ac_i" | sed "$ac_script"`
22813 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22814 # will be set to the directory where LIBOBJS objects are built.
22815 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22816 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22818 LIBOBJS
=$ac_libobjs
22820 LTLIBOBJS
=$ac_ltlibobjs
22823 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22824 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22825 Usually this means the macro was only invoked conditionally." >&5
22826 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22827 Usually this means the macro was only invoked conditionally." >&2;}
22828 { (exit 1); exit 1; }; }
22830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22831 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22832 Usually this means the macro was only invoked conditionally." >&5
22833 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22834 Usually this means the macro was only invoked conditionally." >&2;}
22835 { (exit 1); exit 1; }; }
22837 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22838 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
22839 Usually this means the macro was only invoked conditionally." >&5
22840 echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
22841 Usually this means the macro was only invoked conditionally." >&2;}
22842 { (exit 1); exit 1; }; }
22844 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22845 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22846 Usually this means the macro was only invoked conditionally." >&5
22847 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22848 Usually this means the macro was only invoked conditionally." >&2;}
22849 { (exit 1); exit 1; }; }
22851 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22852 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22853 Usually this means the macro was only invoked conditionally." >&5
22854 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22855 Usually this means the macro was only invoked conditionally." >&2;}
22856 { (exit 1); exit 1; }; }
22858 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
22859 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
22860 Usually this means the macro was only invoked conditionally." >&5
22861 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
22862 Usually this means the macro was only invoked conditionally." >&2;}
22863 { (exit 1); exit 1; }; }
22865 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
22866 { { echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
22867 Usually this means the macro was only invoked conditionally." >&5
22868 echo "$as_me: error: conditional \"MIPS\" was never defined.
22869 Usually this means the macro was only invoked conditionally." >&2;}
22870 { (exit 1); exit 1; }; }
22872 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
22873 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
22874 Usually this means the macro was only invoked conditionally." >&5
22875 echo "$as_me: error: conditional \"SPARC\" was never defined.
22876 Usually this means the macro was only invoked conditionally." >&2;}
22877 { (exit 1); exit 1; }; }
22879 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
22880 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
22881 Usually this means the macro was only invoked conditionally." >&5
22882 echo "$as_me: error: conditional \"X86\" was never defined.
22883 Usually this means the macro was only invoked conditionally." >&2;}
22884 { (exit 1); exit 1; }; }
22886 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
22887 { { echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
22888 Usually this means the macro was only invoked conditionally." >&5
22889 echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
22890 Usually this means the macro was only invoked conditionally." >&2;}
22891 { (exit 1); exit 1; }; }
22893 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
22894 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
22895 Usually this means the macro was only invoked conditionally." >&5
22896 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
22897 Usually this means the macro was only invoked conditionally." >&2;}
22898 { (exit 1); exit 1; }; }
22900 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
22901 { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
22902 Usually this means the macro was only invoked conditionally." >&5
22903 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
22904 Usually this means the macro was only invoked conditionally." >&2;}
22905 { (exit 1); exit 1; }; }
22907 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
22908 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
22909 Usually this means the macro was only invoked conditionally." >&5
22910 echo "$as_me: error: conditional \"ALPHA\" was never defined.
22911 Usually this means the macro was only invoked conditionally." >&2;}
22912 { (exit 1); exit 1; }; }
22914 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
22915 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
22916 Usually this means the macro was only invoked conditionally." >&5
22917 echo "$as_me: error: conditional \"IA64\" was never defined.
22918 Usually this means the macro was only invoked conditionally." >&2;}
22919 { (exit 1); exit 1; }; }
22921 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
22922 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
22923 Usually this means the macro was only invoked conditionally." >&5
22924 echo "$as_me: error: conditional \"M32R\" was never defined.
22925 Usually this means the macro was only invoked conditionally." >&2;}
22926 { (exit 1); exit 1; }; }
22928 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
22929 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
22930 Usually this means the macro was only invoked conditionally." >&5
22931 echo "$as_me: error: conditional \"M68K\" was never defined.
22932 Usually this means the macro was only invoked conditionally." >&2;}
22933 { (exit 1); exit 1; }; }
22935 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
22936 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
22937 Usually this means the macro was only invoked conditionally." >&5
22938 echo "$as_me: error: conditional \"POWERPC\" was never defined.
22939 Usually this means the macro was only invoked conditionally." >&2;}
22940 { (exit 1); exit 1; }; }
22942 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
22943 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
22944 Usually this means the macro was only invoked conditionally." >&5
22945 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
22946 Usually this means the macro was only invoked conditionally." >&2;}
22947 { (exit 1); exit 1; }; }
22949 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
22950 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
22951 Usually this means the macro was only invoked conditionally." >&5
22952 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
22953 Usually this means the macro was only invoked conditionally." >&2;}
22954 { (exit 1); exit 1; }; }
22956 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
22957 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
22958 Usually this means the macro was only invoked conditionally." >&5
22959 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
22960 Usually this means the macro was only invoked conditionally." >&2;}
22961 { (exit 1); exit 1; }; }
22963 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
22964 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
22965 Usually this means the macro was only invoked conditionally." >&5
22966 echo "$as_me: error: conditional \"ARM\" was never defined.
22967 Usually this means the macro was only invoked conditionally." >&2;}
22968 { (exit 1); exit 1; }; }
22970 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
22971 { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
22972 Usually this means the macro was only invoked conditionally." >&5
22973 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
22974 Usually this means the macro was only invoked conditionally." >&2;}
22975 { (exit 1); exit 1; }; }
22977 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
22978 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
22979 Usually this means the macro was only invoked conditionally." >&5
22980 echo "$as_me: error: conditional \"FRV\" was never defined.
22981 Usually this means the macro was only invoked conditionally." >&2;}
22982 { (exit 1); exit 1; }; }
22984 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
22985 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
22986 Usually this means the macro was only invoked conditionally." >&5
22987 echo "$as_me: error: conditional \"S390\" was never defined.
22988 Usually this means the macro was only invoked conditionally." >&2;}
22989 { (exit 1); exit 1; }; }
22991 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
22992 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
22993 Usually this means the macro was only invoked conditionally." >&5
22994 echo "$as_me: error: conditional \"X86_64\" was never defined.
22995 Usually this means the macro was only invoked conditionally." >&2;}
22996 { (exit 1); exit 1; }; }
22998 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
22999 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
23000 Usually this means the macro was only invoked conditionally." >&5
23001 echo "$as_me: error: conditional \"SH\" was never defined.
23002 Usually this means the macro was only invoked conditionally." >&2;}
23003 { (exit 1); exit 1; }; }
23005 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
23006 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
23007 Usually this means the macro was only invoked conditionally." >&5
23008 echo "$as_me: error: conditional \"SH64\" was never defined.
23009 Usually this means the macro was only invoked conditionally." >&2;}
23010 { (exit 1); exit 1; }; }
23012 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
23013 { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
23014 Usually this means the macro was only invoked conditionally." >&5
23015 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
23016 Usually this means the macro was only invoked conditionally." >&2;}
23017 { (exit 1); exit 1; }; }
23019 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
23020 { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
23021 Usually this means the macro was only invoked conditionally." >&5
23022 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
23023 Usually this means the macro was only invoked conditionally." >&2;}
23024 { (exit 1); exit 1; }; }
23026 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
23027 { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
23028 Usually this means the macro was only invoked conditionally." >&5
23029 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
23030 Usually this means the macro was only invoked conditionally." >&2;}
23031 { (exit 1); exit 1; }; }
23034 : ${CONFIG_STATUS=./config.status}
23035 ac_clean_files_save
=$ac_clean_files
23036 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23037 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23038 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23039 cat >$CONFIG_STATUS <<_ACEOF
23041 # Generated by $as_me.
23042 # Run this file to recreate the current configuration.
23043 # Compiler output produced by configure, useful for debugging
23044 # configure, is in config.log if it exists.
23047 ac_cs_recheck=false
23049 SHELL=\${CONFIG_SHELL-$SHELL}
23052 cat >>$CONFIG_STATUS <<\_ACEOF
23053 ## --------------------- ##
23054 ## M4sh Initialization. ##
23055 ## --------------------- ##
23057 # Be more Bourne compatible
23058 DUALCASE
=1; export DUALCASE
# for MKS sh
23059 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23063 # is contrary to our usage. Disable this feature.
23064 alias -g '${1+"$@"}'='"$@"'
23065 setopt NO_GLOB_SUBST
23067 case `(set -o) 2>/dev/null` in
23068 *posix
*) set -o posix
;;
23077 # Avoid depending upon Character Ranges.
23078 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23079 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23080 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23081 as_cr_digits
='0123456789'
23082 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23084 # The user is always right.
23085 if test "${PATH_SEPARATOR+set}" != set; then
23086 echo "#! /bin/sh" >conf$$.sh
23087 echo "exit 0" >>conf$$.sh
23089 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23097 # Support unset when possible.
23098 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23106 # We need space, tab and new line, in precisely that order. Quoting is
23107 # there to prevent editors from complaining about space-tab.
23108 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23109 # splitting by setting IFS to empty value.)
23114 # Find who we are. Look in the path if we contain no directory separator.
23116 *[\\/]* ) as_myself
=$0 ;;
23117 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23118 for as_dir
in $PATH
23121 test -z "$as_dir" && as_dir
=.
23122 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23128 # We did not find ourselves, most probably we were run as `sh COMMAND'
23129 # in which case we are not to be found in the path.
23130 if test "x$as_myself" = x
; then
23133 if test ! -f "$as_myself"; then
23134 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23135 { (exit 1); exit 1; }
23138 # Work around bugs in pre-3.0 UWIN ksh.
23139 for as_var
in ENV MAIL MAILPATH
23140 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23148 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23149 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23150 LC_TELEPHONE LC_TIME
23152 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23153 eval $as_var=C
; export $as_var
23155 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23159 # Required to use basename.
23160 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23161 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23167 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23168 as_basename
=basename
23174 # Name of the executable.
23175 as_me
=`$as_basename -- "$0" ||
23176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23177 X"$0" : 'X\(//\)$' \| \
23178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23180 sed '/^.*\/\([^/][^/]*\)\/*$/{
23199 as_lineno_1
=$LINENO
23200 as_lineno_2
=$LINENO
23201 test "x$as_lineno_1" != "x$as_lineno_2" &&
23202 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23204 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23205 # uniformly replaced by the line number. The first 'sed' inserts a
23206 # line-number line after each line using $LINENO; the second 'sed'
23207 # does the real work. The second script uses 'N' to pair each
23208 # line-number line with the line containing $LINENO, and appends
23209 # trailing '-' during substitution so that $LINENO is not a special
23210 # case at line end.
23211 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23212 # scripts with optimization help from Paolo Bonzini. Blame Lee
23213 # E. McMahon (1931-1989) for sed's syntax. :-)
23225 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23228 ' >$as_me.lineno
&&
23229 chmod +x
"$as_me.lineno" ||
23230 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23231 { (exit 1); exit 1; }; }
23233 # Don't try to exec as it changes $[0], causing all sort of problems
23234 # (the dirname of $[0] is not the place where we might find the
23235 # original and so on. Autoconf is especially sensitive to this).
23236 .
"./$as_me.lineno"
23237 # Exit status is that of the last command.
23242 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23248 ECHO_C
= ECHO_N
= ECHO_T
=
23249 case `echo -n x` in
23251 case `echo 'x\c'` in
23252 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23259 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23260 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23266 rm -f conf$$ conf$$.exe conf$$.
file
23267 if test -d conf$$.dir
; then
23268 rm -f conf$$.dir
/conf$$.
file
23274 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23276 # ... but there are two gotchas:
23277 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23278 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23279 # In both cases, we have to default to `cp -p'.
23280 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23282 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23287 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23288 rmdir conf$$.dir
2>/dev
/null
23290 if mkdir
-p .
2>/dev
/null
; then
23293 test -d .
/-p && rmdir .
/-p
23297 if test -x / >/dev
/null
2>&1; then
23298 as_test_x
='test -x'
23300 if ls -dL / >/dev
/null
2>&1; then
23307 if test -d "$1"; then
23313 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23314 ???[sx]*):;;*)false;;esac;fi
23318 as_executable_p
=$as_test_x
23320 # Sed expression to map a string onto a valid CPP name.
23321 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23323 # Sed expression to map a string onto a valid variable name.
23324 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23329 # Save the log message, to keep $[0] and so on meaningful, and to
23330 # report actual input values of CONFIG_FILES etc. instead of their
23331 # values after options handling.
23333 This file was extended by libffi $as_me 3.0.5, which was
23334 generated by GNU Autoconf 2.61. Invocation command line was
23336 CONFIG_FILES = $CONFIG_FILES
23337 CONFIG_HEADERS = $CONFIG_HEADERS
23338 CONFIG_LINKS = $CONFIG_LINKS
23339 CONFIG_COMMANDS = $CONFIG_COMMANDS
23342 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23347 cat >>$CONFIG_STATUS <<_ACEOF
23348 # Files that config.status was made for.
23349 config_files="$ac_config_files"
23350 config_headers="$ac_config_headers"
23351 config_links="$ac_config_links"
23352 config_commands="$ac_config_commands"
23356 cat >>$CONFIG_STATUS <<\_ACEOF
23358 \`$as_me' instantiates files from templates according to the
23359 current configuration.
23361 Usage: $0 [OPTIONS] [FILE]...
23363 -h, --help print this help, then exit
23364 -V, --version print version number and configuration settings, then exit
23365 -q, --quiet do not print progress messages
23366 -d, --debug don't remove temporary files
23367 --recheck update $as_me by reconfiguring in the same conditions
23368 --file=FILE[:TEMPLATE]
23369 instantiate the configuration file FILE
23370 --header=FILE[:TEMPLATE]
23371 instantiate the configuration header FILE
23373 Configuration files:
23376 Configuration headers:
23379 Configuration links:
23382 Configuration commands:
23385 Report bugs to <bug-autoconf@gnu.org>."
23388 cat >>$CONFIG_STATUS <<_ACEOF
23390 libffi config.status 3.0.5
23391 configured by $0, generated by GNU Autoconf 2.61,
23392 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23394 Copyright (C) 2006 Free Software Foundation, Inc.
23395 This config.status script is free software; the Free Software Foundation
23396 gives unlimited permission to copy, distribute and modify it."
23404 cat >>$CONFIG_STATUS <<\_ACEOF
23405 # If no file are specified by the user, then we need to provide default
23406 # value. By we need to know if files were specified by the user.
23412 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23413 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23424 # Handling of the options.
23425 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23427 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23428 echo "$ac_cs_version"; exit ;;
23429 --debug |
--debu |
--deb |
--de |
--d |
-d )
23431 --file |
--fil |
--fi |
--f )
23433 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23434 ac_need_defaults
=false
;;
23435 --header |
--heade |
--head |
--hea )
23437 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23438 ac_need_defaults
=false
;;
23440 # Conflict between --help and --header
23441 { echo "$as_me: error: ambiguous option: $1
23442 Try \`$0 --help' for more information." >&2
23443 { (exit 1); exit 1; }; };;
23444 --help |
--hel |
-h )
23445 echo "$ac_cs_usage"; exit ;;
23446 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23447 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23450 # This is an error.
23451 -*) { echo "$as_me: error: unrecognized option: $1
23452 Try \`$0 --help' for more information." >&2
23453 { (exit 1); exit 1; }; } ;;
23455 *) ac_config_targets
="$ac_config_targets $1"
23456 ac_need_defaults
=false
;;
23462 ac_configure_extra_args
=
23464 if $ac_cs_silent; then
23466 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23470 cat >>$CONFIG_STATUS <<_ACEOF
23471 if \$ac_cs_recheck; then
23472 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23473 CONFIG_SHELL=$SHELL
23474 export CONFIG_SHELL
23475 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23479 cat >>$CONFIG_STATUS <<\_ACEOF
23483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23484 ## Running $as_me. ##
23490 cat >>$CONFIG_STATUS <<_ACEOF
23494 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23495 TARGETDIR="$TARGETDIR"
23499 cat >>$CONFIG_STATUS <<\_ACEOF
23501 # Handling of arguments.
23502 for ac_config_target
in $ac_config_targets
23504 case $ac_config_target in
23505 "fficonfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS fficonfig.h" ;;
23506 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23507 "include") CONFIG_COMMANDS
="$CONFIG_COMMANDS include" ;;
23508 "src") CONFIG_COMMANDS
="$CONFIG_COMMANDS src" ;;
23509 "include/ffitarget.h") CONFIG_LINKS
="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
23510 "include/ffi.h") CONFIG_FILES
="$CONFIG_FILES include/ffi.h" ;;
23511 "include/ffi_common.h") CONFIG_LINKS
="$CONFIG_LINKS include/ffi_common.h:include/ffi_common.h" ;;
23512 "fficonfig.py") CONFIG_FILES
="$CONFIG_FILES fficonfig.py" ;;
23514 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23515 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23516 { (exit 1); exit 1; }; };;
23521 # If the user did not use the arguments to specify the items to instantiate,
23522 # then the envvar interface is used. Set only those that are not.
23523 # We use the long form for the default assignment because of an extremely
23524 # bizarre bug on SunOS 4.1.3.
23525 if $ac_need_defaults; then
23526 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23527 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23528 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
23529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23532 # Have a temporary directory for convenience. Make it in the build tree
23533 # simply because there is no reason against having it here, and in addition,
23534 # creating and moving files from /tmp can sometimes cause problems.
23535 # Hook for its removal unless debugging.
23536 # Note that there is a small window in which the directory will not be cleaned:
23537 # after its creation but before its name has been assigned to `$tmp'.
23541 trap 'exit_status=$?
23542 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23544 trap '{ (exit 1); exit 1; }' 1 2 13 15
23546 # Create a (secure) tmp directory for tmp files.
23549 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23550 test -n "$tmp" && test -d "$tmp"
23553 tmp
=.
/conf$$
-$RANDOM
23554 (umask 077 && mkdir
"$tmp")
23557 echo "$me: cannot create a temporary directory in ." >&2
23558 { (exit 1); exit 1; }
23562 # Set up the sed scripts for CONFIG_FILES section.
23565 # No need to generate the scripts if there are no CONFIG_FILES.
23566 # This happens for instance when ./config.status config.h
23567 if test -n "$CONFIG_FILES"; then
23574 for ac_last_try
in false false false false false
:; do
23575 cat >conf$
$subs.
sed <<_ACEOF
23576 SHELL!$SHELL$ac_delim
23577 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23578 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23579 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23580 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23581 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23582 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23583 exec_prefix!$exec_prefix$ac_delim
23584 prefix!$prefix$ac_delim
23585 program_transform_name!$program_transform_name$ac_delim
23586 bindir!$bindir$ac_delim
23587 sbindir!$sbindir$ac_delim
23588 libexecdir!$libexecdir$ac_delim
23589 datarootdir!$datarootdir$ac_delim
23590 datadir!$datadir$ac_delim
23591 sysconfdir!$sysconfdir$ac_delim
23592 sharedstatedir!$sharedstatedir$ac_delim
23593 localstatedir!$localstatedir$ac_delim
23594 includedir!$includedir$ac_delim
23595 oldincludedir!$oldincludedir$ac_delim
23596 docdir!$docdir$ac_delim
23597 infodir!$infodir$ac_delim
23598 htmldir!$htmldir$ac_delim
23599 dvidir!$dvidir$ac_delim
23600 pdfdir!$pdfdir$ac_delim
23601 psdir!$psdir$ac_delim
23602 libdir!$libdir$ac_delim
23603 localedir!$localedir$ac_delim
23604 mandir!$mandir$ac_delim
23605 DEFS!$DEFS$ac_delim
23606 ECHO_C!$ECHO_C$ac_delim
23607 ECHO_N!$ECHO_N$ac_delim
23608 ECHO_T!$ECHO_T$ac_delim
23609 LIBS!$LIBS$ac_delim
23610 build_alias!$build_alias$ac_delim
23611 host_alias!$host_alias$ac_delim
23612 target_alias!$target_alias$ac_delim
23613 build!$build$ac_delim
23614 build_cpu!$build_cpu$ac_delim
23615 build_vendor!$build_vendor$ac_delim
23616 build_os!$build_os$ac_delim
23617 host!$host$ac_delim
23618 host_cpu!$host_cpu$ac_delim
23619 host_vendor!$host_vendor$ac_delim
23620 host_os!$host_os$ac_delim
23621 target!$target$ac_delim
23622 target_cpu!$target_cpu$ac_delim
23623 target_vendor!$target_vendor$ac_delim
23624 target_os!$target_os$ac_delim
23625 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23626 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23627 INSTALL_DATA!$INSTALL_DATA$ac_delim
23628 am__isrc!$am__isrc$ac_delim
23629 CYGPATH_W!$CYGPATH_W$ac_delim
23630 PACKAGE!$PACKAGE$ac_delim
23631 VERSION!$VERSION$ac_delim
23632 ACLOCAL!$ACLOCAL$ac_delim
23633 AUTOCONF!$AUTOCONF$ac_delim
23634 AUTOMAKE!$AUTOMAKE$ac_delim
23635 AUTOHEADER!$AUTOHEADER$ac_delim
23636 MAKEINFO!$MAKEINFO$ac_delim
23637 install_sh!$install_sh$ac_delim
23638 STRIP!$STRIP$ac_delim
23639 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23640 mkdir_p!$mkdir_p$ac_delim
23642 SET_MAKE!$SET_MAKE$ac_delim
23643 am__leading_dot!$am__leading_dot$ac_delim
23644 AMTAR!$AMTAR$ac_delim
23645 am__tar!$am__tar$ac_delim
23646 am__untar!$am__untar$ac_delim
23648 CFLAGS!$CFLAGS$ac_delim
23649 LDFLAGS!$LDFLAGS$ac_delim
23650 CPPFLAGS!$CPPFLAGS$ac_delim
23651 ac_ct_CC!$ac_ct_CC$ac_delim
23652 EXEEXT!$EXEEXT$ac_delim
23653 OBJEXT!$OBJEXT$ac_delim
23654 DEPDIR!$DEPDIR$ac_delim
23655 am__include!$am__include$ac_delim
23656 am__quote!$am__quote$ac_delim
23657 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23658 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23659 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23660 CCDEPMODE!$CCDEPMODE$ac_delim
23661 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23662 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23663 CCAS!$CCAS$ac_delim
23664 CCASFLAGS!$CCASFLAGS$ac_delim
23665 CCASDEPMODE!$CCASDEPMODE$ac_delim
23666 am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
23667 am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
23669 GREP!$GREP$ac_delim
23670 EGREP!$EGREP$ac_delim
23671 LN_S!$LN_S$ac_delim
23672 ECHO!$ECHO$ac_delim
23675 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23677 elif $ac_last_try; then
23678 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23679 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23680 { (exit 1); exit 1; }; }
23682 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23686 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23687 if test -n "$ac_eof"; then
23688 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23689 ac_eof
=`expr $ac_eof + 1`
23692 cat >>$CONFIG_STATUS <<_ACEOF
23693 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23697 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23698 s/^/s,@/; s/!/@,|#_!!_#|/
23701 s/'"$ac_delim"'$/,g/; t
23703 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23704 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23705 rm -f conf$
$subs.
sed
23706 cat >>$CONFIG_STATUS <<_ACEOF
23712 for ac_last_try
in false false false false false
:; do
23713 cat >conf$
$subs.
sed <<_ACEOF
23715 RANLIB!$RANLIB$ac_delim
23718 CXXFLAGS!$CXXFLAGS$ac_delim
23719 ac_ct_CXX!$ac_ct_CXX$ac_delim
23720 CXXDEPMODE!$CXXDEPMODE$ac_delim
23721 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23722 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23723 CXXCPP!$CXXCPP$ac_delim
23725 FFLAGS!$FFLAGS$ac_delim
23726 ac_ct_F77!$ac_ct_F77$ac_delim
23727 LIBTOOL!$LIBTOOL$ac_delim
23728 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23729 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23730 MAINT!$MAINT$ac_delim
23731 TESTSUBDIR_TRUE!$TESTSUBDIR_TRUE$ac_delim
23732 TESTSUBDIR_FALSE!$TESTSUBDIR_FALSE$ac_delim
23733 AM_RUNTESTFLAGS!$AM_RUNTESTFLAGS$ac_delim
23734 MIPS_TRUE!$MIPS_TRUE$ac_delim
23735 MIPS_FALSE!$MIPS_FALSE$ac_delim
23736 SPARC_TRUE!$SPARC_TRUE$ac_delim
23737 SPARC_FALSE!$SPARC_FALSE$ac_delim
23738 X86_TRUE!$X86_TRUE$ac_delim
23739 X86_FALSE!$X86_FALSE$ac_delim
23740 X86_FREEBSD_TRUE!$X86_FREEBSD_TRUE$ac_delim
23741 X86_FREEBSD_FALSE!$X86_FREEBSD_FALSE$ac_delim
23742 X86_WIN32_TRUE!$X86_WIN32_TRUE$ac_delim
23743 X86_WIN32_FALSE!$X86_WIN32_FALSE$ac_delim
23744 X86_DARWIN_TRUE!$X86_DARWIN_TRUE$ac_delim
23745 X86_DARWIN_FALSE!$X86_DARWIN_FALSE$ac_delim
23746 ALPHA_TRUE!$ALPHA_TRUE$ac_delim
23747 ALPHA_FALSE!$ALPHA_FALSE$ac_delim
23748 IA64_TRUE!$IA64_TRUE$ac_delim
23749 IA64_FALSE!$IA64_FALSE$ac_delim
23750 M32R_TRUE!$M32R_TRUE$ac_delim
23751 M32R_FALSE!$M32R_FALSE$ac_delim
23752 M68K_TRUE!$M68K_TRUE$ac_delim
23753 M68K_FALSE!$M68K_FALSE$ac_delim
23754 POWERPC_TRUE!$POWERPC_TRUE$ac_delim
23755 POWERPC_FALSE!$POWERPC_FALSE$ac_delim
23756 POWERPC_AIX_TRUE!$POWERPC_AIX_TRUE$ac_delim
23757 POWERPC_AIX_FALSE!$POWERPC_AIX_FALSE$ac_delim
23758 POWERPC_DARWIN_TRUE!$POWERPC_DARWIN_TRUE$ac_delim
23759 POWERPC_DARWIN_FALSE!$POWERPC_DARWIN_FALSE$ac_delim
23760 POWERPC_FREEBSD_TRUE!$POWERPC_FREEBSD_TRUE$ac_delim
23761 POWERPC_FREEBSD_FALSE!$POWERPC_FREEBSD_FALSE$ac_delim
23762 ARM_TRUE!$ARM_TRUE$ac_delim
23763 ARM_FALSE!$ARM_FALSE$ac_delim
23764 LIBFFI_CRIS_TRUE!$LIBFFI_CRIS_TRUE$ac_delim
23765 LIBFFI_CRIS_FALSE!$LIBFFI_CRIS_FALSE$ac_delim
23766 FRV_TRUE!$FRV_TRUE$ac_delim
23767 FRV_FALSE!$FRV_FALSE$ac_delim
23768 S390_TRUE!$S390_TRUE$ac_delim
23769 S390_FALSE!$S390_FALSE$ac_delim
23770 X86_64_TRUE!$X86_64_TRUE$ac_delim
23771 X86_64_FALSE!$X86_64_FALSE$ac_delim
23772 SH_TRUE!$SH_TRUE$ac_delim
23773 SH_FALSE!$SH_FALSE$ac_delim
23774 SH64_TRUE!$SH64_TRUE$ac_delim
23775 SH64_FALSE!$SH64_FALSE$ac_delim
23776 PA_LINUX_TRUE!$PA_LINUX_TRUE$ac_delim
23777 PA_LINUX_FALSE!$PA_LINUX_FALSE$ac_delim
23778 PA_HPUX_TRUE!$PA_HPUX_TRUE$ac_delim
23779 PA_HPUX_FALSE!$PA_HPUX_FALSE$ac_delim
23780 PA64_HPUX_TRUE!$PA64_HPUX_TRUE$ac_delim
23781 PA64_HPUX_FALSE!$PA64_HPUX_FALSE$ac_delim
23782 ALLOCA!$ALLOCA$ac_delim
23783 HAVE_LONG_DOUBLE!$HAVE_LONG_DOUBLE$ac_delim
23784 TARGET!$TARGET$ac_delim
23785 TARGETDIR!$TARGETDIR$ac_delim
23786 toolexecdir!$toolexecdir$ac_delim
23787 toolexeclibdir!$toolexeclibdir$ac_delim
23788 LIBOBJS!$LIBOBJS$ac_delim
23789 LTLIBOBJS!$LTLIBOBJS$ac_delim
23792 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
23794 elif $ac_last_try; then
23795 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23796 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23797 { (exit 1); exit 1; }; }
23799 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23803 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23804 if test -n "$ac_eof"; then
23805 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23806 ac_eof
=`expr $ac_eof + 1`
23809 cat >>$CONFIG_STATUS <<_ACEOF
23810 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23814 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23815 s/^/s,@/; s/!/@,|#_!!_#|/
23818 s/'"$ac_delim"'$/,g/; t
23820 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23821 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23822 rm -f conf$
$subs.
sed
23823 cat >>$CONFIG_STATUS <<_ACEOF
23830 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23831 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23832 # trailing colons and then remove the whole line if VPATH becomes empty
23833 # (actually we leave an empty line to preserve line numbers).
23834 if test "x$srcdir" = x.
; then
23835 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23836 s/:*\$(srcdir):*/:/
23837 s/:*\${srcdir}:*/:/
23839 s/^\([^=]*=[ ]*\):*/\1/
23845 cat >>$CONFIG_STATUS <<\_ACEOF
23846 fi # test -n "$CONFIG_FILES"
23849 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
23852 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23854 case $ac_mode$ac_tag in
23856 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23857 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23858 { (exit 1); exit 1; }; };;
23859 :[FH
]-) ac_tag
=-:-;;
23860 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23877 -) ac_f
="$tmp/stdin";;
23878 *) # Look for the file first in the build tree, then in the source tree
23879 # (if the path is not absolute). The absolute path cannot be DOS-style,
23880 # because $ac_f cannot contain `:'.
23884 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23886 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23887 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23888 { (exit 1); exit 1; }; };;
23890 ac_file_inputs
="$ac_file_inputs $ac_f"
23893 # Let's still pretend it is `configure' which instantiates (i.e., don't
23894 # use $as_me), people would be surprised to read:
23895 # /* config.h. Generated by config.status. */
23896 configure_input
="Generated from "`IFS=:
23897 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23898 if test x
"$ac_file" != x-
; then
23899 configure_input
="$ac_file. $configure_input"
23900 { echo "$as_me:$LINENO: creating $ac_file" >&5
23901 echo "$as_me: creating $ac_file" >&6;}
23905 *:-:* |
*:-) cat >"$tmp/stdin";;
23910 ac_dir
=`$as_dirname -- "$ac_file" ||
23911 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23912 X"$ac_file" : 'X\(//\)[^/]' \| \
23913 X"$ac_file" : 'X\(//\)$' \| \
23914 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23920 /^X\(\/\/\)[^/].*/{
23935 -*) as_dir
=.
/$as_dir;;
23937 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23941 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23942 *) as_qdir
=$as_dir;;
23944 as_dirs
="'$as_qdir' $as_dirs"
23945 as_dir
=`$as_dirname -- "$as_dir" ||
23946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23947 X"$as_dir" : 'X\(//\)[^/]' \| \
23948 X"$as_dir" : 'X\(//\)$' \| \
23949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23955 /^X\(\/\/\)[^/].*/{
23968 test -d "$as_dir" && break
23970 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23971 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23972 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23973 { (exit 1); exit 1; }; }; }
23977 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23979 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23980 # A ".." for each directory in $ac_dir_suffix.
23981 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23982 case $ac_top_builddir_sub in
23983 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23984 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23987 ac_abs_top_builddir
=$ac_pwd
23988 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23989 # for backward compatibility:
23990 ac_top_builddir
=$ac_top_build_prefix
23993 .
) # We are building in place.
23995 ac_top_srcdir
=$ac_top_builddir_sub
23996 ac_abs_top_srcdir
=$ac_pwd ;;
23997 [\\/]* | ?
:[\\/]* ) # Absolute name.
23998 ac_srcdir
=$srcdir$ac_dir_suffix;
23999 ac_top_srcdir
=$srcdir
24000 ac_abs_top_srcdir
=$srcdir ;;
24001 *) # Relative name.
24002 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24003 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24004 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24006 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24016 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24017 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24019 ac_MKDIR_P
=$MKDIR_P
24021 [\\/$
]* | ?
:[\\/]* ) ;;
24022 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
24026 cat >>$CONFIG_STATUS <<\_ACEOF
24027 # If the template does not know about datarootdir, expand it.
24028 # FIXME: This hack should be removed a few years after 2.60.
24029 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24031 case `sed -n '/datarootdir/ {
24040 ' $ac_file_inputs` in
24041 *datarootdir
*) ac_datarootdir_seen
=yes;;
24042 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24043 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24044 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24046 cat >>$CONFIG_STATUS <<_ACEOF
24047 ac_datarootdir_hack='
24048 s&@datadir@&$datadir&g
24049 s&@docdir@&$docdir&g
24050 s&@infodir@&$infodir&g
24051 s&@localedir@&$localedir&g
24052 s&@mandir@&$mandir&g
24053 s&\\\${datarootdir}&$datarootdir&g' ;;
24057 # Neutralize VPATH when `$srcdir' = `.'.
24058 # Shell code in configure.ac might set extrasub.
24059 # FIXME: do we really want to maintain this feature?
24060 cat >>$CONFIG_STATUS <<_ACEOF
24064 cat >>$CONFIG_STATUS <<\_ACEOF
24066 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24067 s
&@configure_input@
&$configure_input&;t t
24068 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24069 s
&@srcdir@
&$ac_srcdir&;t t
24070 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24071 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24072 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24073 s
&@builddir@
&$ac_builddir&;t t
24074 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24075 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24076 s
&@INSTALL@
&$ac_INSTALL&;t t
24077 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
24078 $ac_datarootdir_hack
24079 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24081 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24082 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24084 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24085 which seems to be undefined. Please make sure it is defined." >&5
24086 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24087 which seems to be undefined. Please make sure it is defined." >&2;}
24091 -) cat "$tmp/out"; rm -f "$tmp/out";;
24092 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24101 # Transform confdefs.h into a sed script `conftest.defines', that
24102 # substitutes the proper values into config.h.in to produce config.h.
24103 rm -f conftest.defines conftest.
tail
24104 # First, append a space to every undef/define line, to ease matching.
24105 echo 's/$/ /' >conftest.defines
24106 # Then, protect against being on the right side of a sed subst, or in
24107 # an unquoted here document, in config.status. If some macros were
24108 # called several times there might be several #defines for the same
24109 # symbol, which is useless. But do not sort them, since the last
24110 # AC_DEFINE must be honored.
24111 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24112 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24113 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24114 # PARAMS is the parameter list in the macro definition--in most cases, it's
24115 # just an empty string.
24116 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24117 ac_dB
='\\)[ (].*,\\1define\\2'
24125 s/^[ ]*#[ ]*define[ ][ ]*//
24130 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24131 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24132 ' >>conftest.defines
24134 # Remove the space that was appended to ease matching.
24135 # Then replace #undef with comments. This is necessary, for
24136 # example, in the case of _POSIX_SOURCE, which is predefined and required
24137 # on some systems where configure will not decide to define it.
24138 # (The regexp can be short, since the line contains either #define or #undef.)
24140 s,^[ #]*u.*,/* & */,' >>conftest.defines
24142 # Break up conftest.defines:
24143 ac_max_sed_lines
=50
24145 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24146 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24147 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24149 ac_in
='$ac_file_inputs'
24150 ac_out
='"$tmp/out1"'
24151 ac_nxt
='"$tmp/out2"'
24155 # Write a here document:
24156 cat >>$CONFIG_STATUS <<_ACEOF
24157 # First, check the format of the line:
24158 cat >"\$tmp/defines.sed" <<\\CEOF
24159 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24160 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24164 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24166 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24167 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24168 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24169 grep . conftest.
tail >/dev
/null ||
break
24170 rm -f conftest.defines
24171 mv conftest.
tail conftest.defines
24173 rm -f conftest.defines conftest.
tail
24175 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24176 cat >>$CONFIG_STATUS <<\_ACEOF
24177 if test x
"$ac_file" != x-
; then
24178 echo "/* $configure_input */" >"$tmp/config.h"
24179 cat "$ac_result" >>"$tmp/config.h"
24180 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24181 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24182 echo "$as_me: $ac_file is unchanged" >&6;}
24185 mv "$tmp/config.h" $ac_file
24188 echo "/* $configure_input */"
24192 # Compute $ac_file's index in $config_headers.
24194 for _am_header
in $config_headers :; do
24195 case $_am_header in
24196 $ac_file |
$ac_file:* )
24199 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
24202 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24203 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24204 X$ac_file : 'X\(//\)[^/]' \| \
24205 X$ac_file : 'X\(//\)$' \| \
24206 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24212 /^X\(\/\/\)[^/].*/{
24224 s/.*/./; q'`/stamp-h
$_am_stamp_count
24231 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
24232 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
24234 if test ! -r "$srcdir/$ac_source"; then
24235 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24236 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24237 { (exit 1); exit 1; }; }
24241 # Try a relative symlink, then a hard link, then a copy.
24243 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
24244 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
24246 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
24247 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
24248 cp -p "$srcdir/$ac_source" "$ac_file" ||
24249 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
24250 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
24251 { (exit 1); exit 1; }; }
24253 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24254 echo "$as_me: executing $ac_file commands" >&6;}
24259 case $ac_file$ac_mode in
24260 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
24261 # Strip MF so we end up with the name of the file.
24262 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24263 # Check whether this is an Automake generated Makefile or not.
24264 # We used to match only the files named `Makefile.in', but
24265 # some people rename them; so instead we look at the file content.
24266 # Grep'ing the first line is not enough: some people post-process
24267 # each Makefile.in and add a new line on top of each file to say so.
24268 # Grep'ing the whole file is not good either: AIX grep has a line
24269 # limit of 2048, but all sed's we know have understand at least 4000.
24270 if sed 10q
"$mf" |
grep '^#.*generated by automake' > /dev
/null
2>&1; then
24271 dirpart
=`$as_dirname -- "$mf" ||
24272 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24273 X"$mf" : 'X\(//\)[^/]' \| \
24274 X"$mf" : 'X\(//\)$' \| \
24275 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24281 /^X\(\/\/\)[^/].*/{
24297 # Extract the definition of DEPDIR, am__include, and am__quote
24298 # from the Makefile without running `make'.
24299 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24300 test -z "$DEPDIR" && continue
24301 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24302 test -z "am__include" && continue
24303 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24304 # When using ansi2knr, U may be empty or an underscore; expand it
24305 U
=`sed -n 's/^U = //p' < "$mf"`
24306 # Find all dependency output files, they are included files with
24307 # $(DEPDIR) in their names. We invoke sed twice because it is the
24308 # simplest approach to changing $(DEPDIR) to its actual value in the
24310 for file in `sed -n "
24311 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24312 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24313 # Make sure the directory exists.
24314 test -f "$dirpart/$file" && continue
24315 fdir
=`$as_dirname -- "$file" ||
24316 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24317 X"$file" : 'X\(//\)[^/]' \| \
24318 X"$file" : 'X\(//\)$' \| \
24319 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24325 /^X\(\/\/\)[^/].*/{
24338 { as_dir
=$dirpart/$fdir
24340 -*) as_dir
=.
/$as_dir;;
24342 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24346 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24347 *) as_qdir
=$as_dir;;
24349 as_dirs
="'$as_qdir' $as_dirs"
24350 as_dir
=`$as_dirname -- "$as_dir" ||
24351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24352 X"$as_dir" : 'X\(//\)[^/]' \| \
24353 X"$as_dir" : 'X\(//\)$' \| \
24354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24360 /^X\(\/\/\)[^/].*/{
24373 test -d "$as_dir" && break
24375 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24376 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24377 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24378 { (exit 1); exit 1; }; }; }
24379 # echo "creating $dirpart/$file"
24380 echo '# dummy' > "$dirpart/$file"
24384 "include":C
) test -d include || mkdir include
;;
24386 test -d src || mkdir src
24387 test -d src
/$TARGETDIR || mkdir src
/$TARGETDIR
24394 { (exit 0); exit 0; }
24396 chmod +x
$CONFIG_STATUS
24397 ac_clean_files
=$ac_clean_files_save
24400 # configure is writing to config.log, and then calls config.status.
24401 # config.status does its own redirection, appending to config.log.
24402 # Unfortunately, on DOS this fails, as config.log is still kept open
24403 # by configure, so config.status won't be able to write to it; its
24404 # output is simply discarded. So we exec the FD to /dev/null,
24405 # effectively closing config.log, so it can be properly (re)opened and
24406 # appended to by config.status. When coming back to configure, we
24407 # need to make the FD available again.
24408 if test "$no_create" != yes; then
24410 ac_config_status_args
=
24411 test "$silent" = yes &&
24412 ac_config_status_args
="$ac_config_status_args --quiet"
24414 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24417 # would make configure fail if this is the last instruction.
24418 $ac_cs_success ||
{ (exit 1); exit 1; }