2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for random128 0.10.
5 # Report bugs to <courier-users@lists.sourceforge.net>.
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
='random128'
730 PACKAGE_TARNAME
='random128'
731 PACKAGE_VERSION
='0.10'
732 PACKAGE_STRING
='random128 0.10'
733 PACKAGE_BUGREPORT
='courier-users@lists.sourceforge.net'
735 ac_unique_file
="random128.c"
736 # Factoring default headers for most tests.
737 ac_includes_default
="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
823 INSTALL_STRIP_PROGRAM
879 ac_precious_vars
='build_alias
896 # Initialize some variables set by options.
898 ac_init_version
=false
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
908 program_transform_name
=s
,x
,x
,
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir
='${exec_prefix}/bin'
923 sbindir
='${exec_prefix}/sbin'
924 libexecdir
='${exec_prefix}/libexec'
925 datarootdir
='${prefix}/share'
926 datadir
='${datarootdir}'
927 sysconfdir
='${prefix}/etc'
928 sharedstatedir
='${prefix}/com'
929 localstatedir
='${prefix}/var'
930 includedir
='${prefix}/include'
931 oldincludedir
='/usr/include'
932 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir
='${datarootdir}/info'
938 libdir
='${exec_prefix}/lib'
939 localedir
='${datarootdir}/locale'
940 mandir
='${datarootdir}/man'
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\
$ac_option
954 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 # Accept the important Cygnus configure options, so we can diagnose typos.
960 case $ac_dashdash$ac_option in
964 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
966 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
969 -build |
--build |
--buil |
--bui |
--bu)
970 ac_prev
=build_alias
;;
971 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
972 build_alias
=$ac_optarg ;;
974 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
975 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
976 ac_prev
=cache_file
;;
977 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
978 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
979 cache_file
=$ac_optarg ;;
982 cache_file
=config.cache
;;
984 -datadir |
--datadir |
--datadi |
--datad)
986 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
987 datadir
=$ac_optarg ;;
989 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
990 |
--dataroo |
--dataro |
--datar)
991 ac_prev
=datarootdir
;;
992 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
993 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
994 datarootdir
=$ac_optarg ;;
996 -disable-* |
--disable-*)
997 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_
$ac_feature=no
;;
1005 -docdir |
--docdir |
--docdi |
--doc |
--do)
1007 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1008 docdir
=$ac_optarg ;;
1010 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1012 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1013 dvidir
=$ac_optarg ;;
1015 -enable-* |
--enable-*)
1016 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_
$ac_feature=\
$ac_optarg ;;
1024 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1025 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1026 |
--exec |
--exe |
--ex)
1027 ac_prev
=exec_prefix
;;
1028 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1029 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1030 |
--exec=* |
--exe=* |
--ex=*)
1031 exec_prefix
=$ac_optarg ;;
1033 -gas |
--gas |
--ga |
--g)
1034 # Obsolete; use --with-gas.
1037 -help |
--help |
--hel |
--he |
-h)
1038 ac_init_help
=long
;;
1039 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1040 ac_init_help
=recursive
;;
1041 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1042 ac_init_help
=short
;;
1044 -host |
--host |
--hos |
--ho)
1045 ac_prev
=host_alias
;;
1046 -host=* |
--host=* |
--hos=* |
--ho=*)
1047 host_alias
=$ac_optarg ;;
1049 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1051 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1053 htmldir
=$ac_optarg ;;
1055 -includedir |
--includedir |
--includedi |
--included |
--include \
1056 |
--includ |
--inclu |
--incl |
--inc)
1057 ac_prev
=includedir
;;
1058 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1059 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1060 includedir
=$ac_optarg ;;
1062 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1064 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1065 infodir
=$ac_optarg ;;
1067 -libdir |
--libdir |
--libdi |
--libd)
1069 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1070 libdir
=$ac_optarg ;;
1072 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1073 |
--libexe |
--libex |
--libe)
1074 ac_prev
=libexecdir
;;
1075 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1076 |
--libexe=* |
--libex=* |
--libe=*)
1077 libexecdir
=$ac_optarg ;;
1079 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1080 ac_prev
=localedir
;;
1081 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1082 localedir
=$ac_optarg ;;
1084 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1085 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1086 ac_prev
=localstatedir
;;
1087 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1088 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1089 localstatedir
=$ac_optarg ;;
1091 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1093 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1094 mandir
=$ac_optarg ;;
1096 -nfp |
--nfp |
--nf)
1097 # Obsolete; use --without-fp.
1100 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1101 |
--no-cr |
--no-c |
-n)
1104 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1105 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1108 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1109 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1110 |
--oldin |
--oldi |
--old |
--ol |
--o)
1111 ac_prev
=oldincludedir
;;
1112 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1113 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1114 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1115 oldincludedir
=$ac_optarg ;;
1117 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1119 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1120 prefix
=$ac_optarg ;;
1122 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1123 |
--program-pre |
--program-pr |
--program-p)
1124 ac_prev
=program_prefix
;;
1125 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1126 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1127 program_prefix
=$ac_optarg ;;
1129 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1130 |
--program-suf |
--program-su |
--program-s)
1131 ac_prev
=program_suffix
;;
1132 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1133 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1134 program_suffix
=$ac_optarg ;;
1136 -program-transform-name |
--program-transform-name \
1137 |
--program-transform-nam |
--program-transform-na \
1138 |
--program-transform-n |
--program-transform- \
1139 |
--program-transform |
--program-transfor \
1140 |
--program-transfo |
--program-transf \
1141 |
--program-trans |
--program-tran \
1142 |
--progr-tra |
--program-tr |
--program-t)
1143 ac_prev
=program_transform_name
;;
1144 -program-transform-name=* |
--program-transform-name=* \
1145 |
--program-transform-nam=* |
--program-transform-na=* \
1146 |
--program-transform-n=* |
--program-transform-=* \
1147 |
--program-transform=* |
--program-transfor=* \
1148 |
--program-transfo=* |
--program-transf=* \
1149 |
--program-trans=* |
--program-tran=* \
1150 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1151 program_transform_name
=$ac_optarg ;;
1153 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1155 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1156 pdfdir
=$ac_optarg ;;
1158 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1160 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1163 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1164 |
-silent |
--silent |
--silen |
--sile |
--sil)
1167 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1169 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1171 sbindir
=$ac_optarg ;;
1173 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1174 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1175 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1177 ac_prev
=sharedstatedir
;;
1178 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1179 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1180 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1182 sharedstatedir
=$ac_optarg ;;
1184 -site |
--site |
--sit)
1186 -site=* |
--site=* |
--sit=*)
1189 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1191 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1192 srcdir
=$ac_optarg ;;
1194 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1195 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1196 ac_prev
=sysconfdir
;;
1197 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1198 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1199 sysconfdir
=$ac_optarg ;;
1201 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1202 ac_prev
=target_alias
;;
1203 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1204 target_alias
=$ac_optarg ;;
1206 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1209 -version |
--version |
--versio |
--versi |
--vers |
-V)
1210 ac_init_version
=: ;;
1213 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_
$ac_package=\
$ac_optarg ;;
1221 -without-* |
--without-*)
1222 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_
$ac_package=no
;;
1231 # Obsolete; use --with-x.
1234 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1235 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1236 ac_prev
=x_includes
;;
1237 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1238 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1239 x_includes
=$ac_optarg ;;
1241 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1242 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1243 ac_prev
=x_libraries
;;
1244 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1245 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1246 x_libraries
=$ac_optarg ;;
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1254 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
1259 eval $ac_envvar=\
$ac_optarg
1260 export $ac_envvar ;;
1263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 if test -n "$ac_prev"; then
1274 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1279 # Be sure to have absolute directory names.
1280 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1285 eval ac_val
=\$
$ac_var
1287 [\\/$
]* | ?
:[\\/]* ) continue;;
1288 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1299 target
=$target_alias
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x
; then
1303 if test "x$build_alias" = x
; then
1304 cross_compiling
=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1313 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1315 test "$silent" = yes && exec 6>/dev
/null
1318 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di
=`ls -di .` &&
1320 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted
=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir
=`$as_dirname -- "$0" ||
1333 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1360 ac_srcdir_defaulted
=no
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365 { (exit 1); exit 1; }; }
1367 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1370 { (exit 1); exit 1; }; }
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1380 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 for ac_var
in $ac_precious_vars; do
1383 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1385 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1396 \`configure' configures random128 0.10 to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/random128]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1459 --build=BUILD configure
for building on BUILD
[guessed
]
1460 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive
) echo "Configuration of random128 0.10:";;
1471 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1472 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
1475 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1476 --enable-static[=PKGS
] build static libraries
[default
=yes]
1477 --enable-fast-install[=PKGS
]
1478 optimize
for fast installation
[default
=yes]
1479 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1482 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1483 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1484 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1485 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1487 --with-tags[=TAGS
] include additional configurations
[automatic
]
1488 --with-random=/dev
/urandom
- location of the system random
file generator
1489 --without-random - there is no system random
file generator
1491 Some influential environment variables
:
1492 CC C compiler
command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1495 nonstandard directory
<lib dir
>
1496 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1497 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1498 you have headers
in a nonstandard directory
<include dir
>
1500 CXX C
++ compiler
command
1501 CXXFLAGS C
++ compiler flags
1502 CXXCPP C
++ preprocessor
1503 F77 Fortran
77 compiler
command
1504 FFLAGS Fortran
77 compiler flags
1506 Use these variables to override the choices made by
`configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1509 Report bugs to <courier-users@lists.sourceforge.net>.
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1537 .) # We are building in place.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1570 random128 configure 0.10
1571 generated by GNU Autoconf 2.61
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1584 It was created by random128 $as_me 0.10, which was
1585 generated by GNU Autoconf 2.61. Invocation command line was
1597 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1598 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1599 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1600 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1601 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1603 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1604 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1606 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1607 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1608 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1609 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1610 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1611 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1612 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1645 ac_must_keep_next=false
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1656 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674 -* ) ac_must_keep_next=true ;;
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1701 # The following way of writing the cache mishandles newlines in values,
1703 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1704 eval ac_val=\$$ac_var
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1718 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1738 for ac_var in $ac_subst_vars
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 echo "$ac_var='\''$ac_val'\''"
1748 if test -n "$ac_subst_files"; then
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1755 for ac_var in $ac_subst_files
1757 eval ac_val=\$$ac_var
1759 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 echo "$ac_var='\''$ac_val'\''"
1766 if test -s confdefs.h; then
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1792 # Predefined preprocessor variables.
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1857 # Check that the precious variables saved in the cache have kept the same
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1868 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1872 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1879 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1880 echo "$as_me: former value
: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1882 echo "$as_me: current value
: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1900 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1901 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938 >confdefs.h # Kill PACKAGE_ macros
1941 am__api_version='1.10'
1944 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1945 if test -f "$ac_dir/install-sh"; then
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 elif test -f "$ac_dir/install.sh"; then
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 elif test -f "$ac_dir/shtool"; then
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1959 if test -z "$ac_aux_dir"; then
1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974 # Find a good install program. We prefer a C program (faster),
1975 # so one script is as good as another. But avoid the broken or
1976 # incompatible versions:
1977 # SysV /etc/install, /usr/sbin/install
1978 # SunOS /usr/etc/install
1979 # IRIX /sbin/install
1981 # AmigaOS /C/install, which installs bootblocks on floppy discs
1982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1985 # OS/2's system install, which has a completely different semantic
1986 # ./install, which can be erroneously created by make from ./install.sh.
1987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1989 if test -z "$INSTALL"; then
1990 if test "${ac_cv_path_install+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 # Account for people who put trailing slashes in PATH elements.
2000 ./ | .// | /cC/* | \
2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2005 # OSF1 and SCO ODT 3.0 have their own names for install.
2006 # Don't use installbsd from OSF since it installs stuff as root
2008 for ac_prog in ginstall scoinst install; do
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2011 if test $ac_prog = install &&
2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # AIX install. It has an incompatible calling convention.
2015 elif test $ac_prog = install &&
2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # program-specific install script used by HP pwplus--don't use.
2020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2033 if test "${ac_cv_path_install+set}" = set; then
2034 INSTALL=$ac_cv_path_install
2036 # As a last resort, use the slow shell script. Don't cache a
2037 # value for INSTALL within a source directory, because that will
2038 # break other packages using the cache if that directory is
2039 # removed, or if the value is a relative name.
2040 INSTALL=$ac_install_sh
2043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2044 echo "${ECHO_T}$INSTALL" >&6; }
2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047 # It thinks the first close brace ends the variable substitution.
2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2054 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2055 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2058 echo timestamp > conftest.file
2059 # Do `set' in a subshell so we don't clobber the current shell
's
2060 # arguments. Must try -L first in case configure is actually a
2061 # symlink; some systems play weird games with the mod time of symlinks
2062 # (eg FreeBSD returns the mod time of the symlink's containing
2065 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2066 if test "$*" = "X"; then
2068 set X
`ls -t $srcdir/configure conftest.file`
2071 if test "$*" != "X $srcdir/configure conftest.file" \
2072 && test "$*" != "X conftest.file $srcdir/configure"; then
2074 # If neither matched, then we have a broken ls. This can happen
2075 # if, for instance, CONFIG_SHELL is bash and it inherits a
2076 # broken ls alias from the environment. This has actually
2077 # happened. Such a system could not be considered "sane".
2078 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&5
2080 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&2;}
2082 { (exit 1); exit 1; }; }
2085 test "$2" = conftest.
file
2091 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2092 Check your system clock" >&5
2093 echo "$as_me: error: newly created file is older than distributed files!
2094 Check your system clock" >&2;}
2095 { (exit 1); exit 1; }; }
2097 { echo "$as_me:$LINENO: result: yes" >&5
2098 echo "${ECHO_T}yes" >&6; }
2099 test "$program_prefix" != NONE
&&
2100 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2101 # Use a double $ so make ignores it.
2102 test "$program_suffix" != NONE
&&
2103 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2104 # Double any \ or $. echo might interpret backslashes.
2105 # By default was `s,x,x', remove it if useless.
2106 cat <<\_ACEOF
>conftest.
sed
2107 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2109 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2112 # expand $ac_aux_dir to an absolute path
2113 am_aux_dir
=`cd $ac_aux_dir && pwd`
2115 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2116 # Use eval to expand $SHELL
2117 if eval "$MISSING --run true"; then
2118 am_missing_run
="$MISSING --run "
2121 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2122 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2125 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2126 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2127 if test -z "$MKDIR_P"; then
2128 if test "${ac_cv_path_mkdir+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2132 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2135 test -z "$as_dir" && as_dir
=.
2136 for ac_prog
in mkdir gmkdir
; do
2137 for ac_exec_ext
in '' $ac_executable_extensions; do
2138 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2139 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2140 'mkdir (GNU coreutils) '* | \
2141 'mkdir (coreutils) '* | \
2142 'mkdir (fileutils) '4.1*)
2143 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2153 if test "${ac_cv_path_mkdir+set}" = set; then
2154 MKDIR_P
="$ac_cv_path_mkdir -p"
2156 # As a last resort, use the slow shell script. Don't cache a
2157 # value for MKDIR_P within a source directory, because that will
2158 # break other packages using the cache if that directory is
2159 # removed, or if the value is a relative name.
2160 test -d .
/--version && rmdir .
/--version
2161 MKDIR_P
="$ac_install_sh -d"
2164 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2165 echo "${ECHO_T}$MKDIR_P" >&6; }
2169 [\\/$
]* | ?
:[\\/]*) ;;
2170 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2173 for ac_prog
in gawk mawk nawk
awk
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy
$ac_prog; ac_word
=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_AWK+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 if test -n "$AWK"; then
2183 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2189 test -z "$as_dir" && as_dir
=.
2190 for ac_exec_ext
in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_AWK
="$ac_prog"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 if test -n "$AWK"; then
2204 { echo "$as_me:$LINENO: result: $AWK" >&5
2205 echo "${ECHO_T}$AWK" >&6; }
2207 { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2212 test -n "$AWK" && break
2215 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2216 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2217 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2218 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 cat >conftest.
make <<\_ACEOF
2224 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2226 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2227 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2229 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2231 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2235 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2236 { echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6; }
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242 SET_MAKE
="MAKE=${MAKE-make}"
2245 rm -rf .tst
2>/dev
/null
2246 mkdir .tst
2>/dev
/null
2247 if test -d .tst
; then
2252 rmdir .tst
2>/dev
/null
2254 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2255 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2256 # is not polluted with repeated "-I."
2257 am__isrc
=' -I$(srcdir)'
2258 # test to see if srcdir already configured
2259 if test -f $srcdir/config.status
; then
2260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2261 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2262 { (exit 1); exit 1; }; }
2266 # test whether we have cygpath
2267 if test -z "$CYGPATH_W"; then
2268 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2269 CYGPATH_W
='cygpath -w'
2276 # Define the identity of the package.
2281 # Some tools Automake needs.
2283 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2286 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2289 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2292 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2295 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2297 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2299 # Installed binaries are usually stripped using `strip' when the user
2300 # run `make install-strip'. However `strip' might not be the right
2301 # tool to use in cross-compilation environments, therefore Automake
2302 # will honor the `STRIP' environment variable to overrule this program.
2303 if test "$cross_compiling" != no
; then
2304 if test -n "$ac_tool_prefix"; then
2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2309 if test "${ac_cv_prog_STRIP+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 if test -n "$STRIP"; then
2313 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2319 test -z "$as_dir" && as_dir
=.
2320 for ac_exec_ext
in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 STRIP
=$ac_cv_prog_STRIP
2333 if test -n "$STRIP"; then
2334 { echo "$as_me:$LINENO: result: $STRIP" >&5
2335 echo "${ECHO_T}$STRIP" >&6; }
2337 { echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6; }
2343 if test -z "$ac_cv_prog_STRIP"; then
2345 # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip
; ac_word
=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$ac_ct_STRIP"; then
2353 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir
=.
2360 for ac_exec_ext
in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_ac_ct_STRIP
="strip"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2373 if test -n "$ac_ct_STRIP"; then
2374 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2375 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2381 if test "x$ac_ct_STRIP" = x
; then
2384 case $cross_compiling:$ac_tool_warned in
2386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet. If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&5
2389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2392 ac_tool_warned
=yes ;;
2397 STRIP
="$ac_cv_prog_STRIP"
2401 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2403 # We need awk for the "check" target. The system "awk" is bad on
2405 # Always define AMTAR for backward compatibility.
2407 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2409 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2415 LPATH
="$PATH:/usr/local/bin"
2418 ac_config_headers
="$ac_config_headers config.h"
2420 DEPDIR
="${am__leading_dot}deps"
2422 ac_config_commands
="$ac_config_commands depfiles"
2425 am_make
=${MAKE-make}
2426 cat > confinc
<< 'END'
2431 # If we don't find an include directive, just comment out the code.
2432 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2433 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2437 # First try GNU make style include.
2438 echo "include confinc" > confmf
2439 # We grep out `Entering directory' and `Leaving directory'
2440 # messages which can occur if `w' ends up in MAKEFLAGS.
2441 # In particular we don't look at `^make:' because GNU make might
2442 # be invoked under some other name (usually "gmake"), in which
2443 # case it prints its new name instead of `make'.
2444 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2449 # Now try BSD make style include.
2450 if test "$am__include" = "#"; then
2451 echo '.include "confinc"' > confmf
2452 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2453 am__include
=.include
2460 { echo "$as_me:$LINENO: result: $_am_result" >&5
2461 echo "${ECHO_T}$_am_result" >&6; }
2462 rm -f confinc confmf
2464 # Check whether --enable-dependency-tracking was given.
2465 if test "${enable_dependency_tracking+set}" = set; then
2466 enableval
=$enable_dependency_tracking;
2469 if test "x$enable_dependency_tracking" != xno
; then
2470 am_depcomp
="$ac_aux_dir/depcomp"
2473 if test "x$enable_dependency_tracking" != xno; then
2483 ac_cpp
='$CPP $CPPFLAGS'
2484 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2489 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC
="$CC" # Let the user override the test.
2498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir
=.
2503 for ac_exec_ext
in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 if test -n "$CC"; then
2517 { echo "$as_me:$LINENO: result: $CC" >&5
2518 echo "${ECHO_T}$CC" >&6; }
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2526 if test -z "$ac_cv_prog_CC"; then
2528 # Extract the first word of "gcc", so it can be a program name with args.
2529 set dummy gcc
; ac_word
=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$ac_ct_CC"; then
2536 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir
=.
2543 for ac_exec_ext
in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_ac_ct_CC
="gcc"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2556 if test -n "$ac_ct_CC"; then
2557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2558 echo "${ECHO_T}$ac_ct_CC" >&6; }
2560 { echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6; }
2564 if test "x$ac_ct_CC" = x
; then
2567 case $cross_compiling:$ac_tool_warned in
2569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2570 whose name does not start with the host triplet. If you think this
2571 configuration is useful to you, please write to autoconf@gnu.org." >&5
2572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2573 whose name does not start with the host triplet. If you think this
2574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2575 ac_tool_warned
=yes ;;
2583 if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
2585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2586 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2589 if test "${ac_cv_prog_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC
="$CC" # Let the user override the test.
2595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir
=.
2600 for ac_exec_ext
in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 if test -n "$CC"; then
2614 { echo "$as_me:$LINENO: result: $CC" >&5
2615 echo "${ECHO_T}$CC" >&6; }
2617 { echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6; }
2624 if test -z "$CC"; then
2625 # Extract the first word of "cc", so it can be a program name with args.
2626 set dummy cc
; ac_word
=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC
="$CC" # Let the user override the test.
2636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir
=.
2641 for ac_exec_ext
in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2644 ac_prog_rejected
=yes
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 if test $ac_prog_rejected = yes; then
2656 # We found a bogon in the path, so make sure we never use it.
2657 set dummy
$ac_cv_prog_CC
2659 if test $# != 0; then
2660 # We chose a different compiler from the bogus one.
2661 # However, it has the same basename, so the bogon will be chosen
2662 # first if we set CC to just the basename; use the full file name.
2664 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2670 if test -n "$CC"; then
2671 { echo "$as_me:$LINENO: result: $CC" >&5
2672 echo "${ECHO_T}$CC" >&6; }
2674 { echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6; }
2680 if test -z "$CC"; then
2681 if test -n "$ac_tool_prefix"; then
2682 for ac_prog
in cl.exe
2684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2685 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC
="$CC" # Let the user override the test.
2694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir
=.
2699 for ac_exec_ext
in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 if test -n "$CC"; then
2713 { echo "$as_me:$LINENO: result: $CC" >&5
2714 echo "${ECHO_T}$CC" >&6; }
2716 { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2721 test -n "$CC" && break
2724 if test -z "$CC"; then
2726 for ac_prog
in cl.exe
2728 # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy
$ac_prog; ac_word
=$2
2730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$ac_ct_CC"; then
2736 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir
=.
2743 for ac_exec_ext
in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_ac_ct_CC
="$ac_prog"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6; }
2760 { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2765 test -n "$ac_ct_CC" && break
2768 if test "x$ac_ct_CC" = x
; then
2771 case $cross_compiling:$ac_tool_warned in
2773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2774 whose name does not start with the host triplet. If you think this
2775 configuration is useful to you, please write to autoconf@gnu.org." >&5
2776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2777 whose name does not start with the host triplet. If you think this
2778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2779 ac_tool_warned
=yes ;;
2788 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: no acceptable C compiler found in \$PATH
2791 See \`config.log' for more details." >&2;}
2792 { (exit 1); exit 1; }; }
2794 # Provide some information about the compiler.
2795 echo "$as_me:$LINENO: checking for C compiler version" >&5
2796 ac_compiler
=`set X $ac_compile; echo $2`
2797 { (ac_try
="$ac_compiler --version >&5"
2799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_compiler --version >&5") 2>&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }
2807 { (ac_try="$ac_compiler -v >&5"
2809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2810 *) ac_try_echo
=$ac_try;;
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_compiler -v >&5") 2>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }
2817 { (ac_try
="$ac_compiler -V >&5"
2819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compiler -V >&5") 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2843 ac_clean_files_save=$ac_clean_files
2844 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2845 # Try to create an executable without -o first, disregard a.out.
2846 # It will help us diagnose broken compilers, and finding out an intuition
2848 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2849 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2850 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2852 # List of possible output files, starting from the most likely.
2853 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2854 # only as a last resort. b.out is created by i960 compilers.
2855 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2857 # The IRIX 6 linker writes into existing files which may not be
2858 # executable, retaining their permissions. Remove them first so a
2859 # subsequent execution test works.
2861 for ac_file in $ac_files
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2870 if { (ac_try="$ac_link_default"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_link_default") 2>&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2881 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2882 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2883 # so that the user can short-circuit this test for compilers unknown to
2885 for ac_file
in $ac_files ''
2887 test -f "$ac_file" ||
continue
2889 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2892 # We found the default executable, but exeext='' is most
2896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2898 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2900 # We set ac_cv_exeext here because the later test for it is not
2901 # safe: cross compilers may not add the suffix if given an `-o'
2902 # argument, so we may need to know it at that point already.
2903 # Even if this section looks crufty: it has the advantage of
2910 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2916 { echo "$as_me:$LINENO: result: $ac_file" >&5
2917 echo "${ECHO_T}$ac_file" >&6; }
2918 if test -z "$ac_file"; then
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.
$ac_ext >&5
2922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: C compiler cannot create executables
2925 See \`config.log' for more details." >&2;}
2926 { (exit 77); exit 77; }; }
2929 ac_exeext
=$ac_cv_exeext
2931 # Check that the compiler produces executables we can run. If not, either
2932 # the compiler is broken, or we cross compile.
2933 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2936 # If not cross compiling, check that we can run a simple program.
2937 if test "$cross_compiling" != yes; then
2938 if { ac_try
='./$ac_file'
2939 { (case "(($ac_try" in
2940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_try") 2>&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2950 if test "$cross_compiling" = maybe; then
2953 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2954 If you meant to cross compile, use \`--host'.
2955 See \`config.log' for more details.
" >&5
2956 echo "$as_me: error
: cannot run C compiled programs.
2957 If you meant to cross compile
, use \
`--host'.
2958 See \`config.log
' for more details." >&2;}
2959 { (exit 1); exit 1; }; }
2963 { echo "$as_me:$LINENO: result: yes" >&5
2964 echo "${ECHO_T}yes" >&6; }
2966 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2967 ac_clean_files=$ac_clean_files_save
2968 # Check that the compiler produces executables we can run. If not, either
2969 # the compiler is broken, or we cross compile.
2970 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2971 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2972 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2973 echo "${ECHO_T}$cross_compiling" >&6; }
2975 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2976 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2977 if { (ac_try="$ac_link"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_link") 2>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2988 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2989 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2991 for ac_file
in conftest.exe conftest conftest.
*; do
2992 test -f "$ac_file" ||
continue
2994 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2995 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3004 See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3008 rm -f conftest
$ac_cv_exeext
3009 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3010 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3012 rm -f conftest.
$ac_ext
3013 EXEEXT
=$ac_cv_exeext
3015 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3016 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3017 if test "${ac_cv_objext+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 cat >conftest.
$ac_ext <<_ACEOF
3023 cat confdefs.h
>>conftest.
$ac_ext
3024 cat >>conftest.
$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 rm -f conftest.o conftest.obj
3036 if { (ac_try
="$ac_compile"
3038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; then
3046 for ac_file in conftest.o conftest.obj conftest.*; do
3047 test -f "$ac_file" || continue;
3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3059 See \`config.log
' for more details." >&5
3060 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3061 See \`config.log' for more details.
" >&2;}
3062 { (exit 1); exit 1; }; }
3065 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3067 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3068 echo "${ECHO_T}$ac_cv_objext" >&6; }
3069 OBJEXT=$ac_cv_objext
3071 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3072 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3073 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3074 echo $ECHO_N "(cached
) $ECHO_C" >&6
3076 cat >conftest.$ac_ext <<_ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3113 echo "$as_me: failed program was
:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3123 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3124 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3125 GCC=`test $ac_compiler_gnu = yes && echo yes`
3126 ac_test_CFLAGS=${CFLAGS+set}
3127 ac_save_CFLAGS=$CFLAGS
3128 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3129 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3130 if test "${ac_cv_prog_cc_g+set}" = set; then
3131 echo $ECHO_N "(cached
) $ECHO_C" >&6
3133 ac_save_c_werror_flag=$ac_c_werror_flag
3134 ac_c_werror_flag=yes
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3152 rm -f conftest.$ac_objext
3153 if { (ac_try="$ac_compile"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_compile") 2>conftest.er1
3161 grep -v '^ *+' conftest.er1 >conftest.err
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3165 (exit $ac_status); } && {
3166 test -z "$ac_c_werror_flag" ||
3167 test ! -s conftest.err
3168 } && test -s conftest.$ac_objext; then
3171 echo "$as_me: failed program was
:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3199 grep -v '^ *+' conftest.er1 >conftest.err
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3203 (exit $ac_status); } && {
3204 test -z "$ac_c_werror_flag" ||
3205 test ! -s conftest.err
3206 } && test -s conftest.$ac_objext; then
3209 echo "$as_me: failed program was
:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3242 (exit $ac_status); } && {
3243 test -z "$ac_c_werror_flag" ||
3244 test ! -s conftest.err
3245 } && test -s conftest.$ac_objext; then
3248 echo "$as_me: failed program was
:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_c_werror_flag=$ac_save_c_werror_flag
3263 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3264 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3265 if test "$ac_test_CFLAGS" = set; then
3266 CFLAGS=$ac_save_CFLAGS
3267 elif test $ac_cv_prog_cc_g = yes; then
3268 if test "$GCC" = yes; then
3274 if test "$GCC" = yes; then
3280 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3281 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3282 if test "${ac_cv_prog_cc_c89+set}" = set; then
3283 echo $ECHO_N "(cached
) $ECHO_C" >&6
3285 ac_cv_prog_cc_c89=no
3287 cat >conftest.$ac_ext <<_ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3295 #include <sys/types.h>
3296 #include <sys/stat.h>
3297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3298 struct buf { int x; };
3299 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3300 static char *e (p, i)
3306 static char *f (char * (*g) (char **, int), char **p, ...)
3311 s = g (p, va_arg (v,int));
3316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3317 function prototypes and stuff, but not '\xHH' hex character constants.
3318 These don't provoke an error unfortunately, instead are silently treated
3319 as 'x'. The following induces an error, until -std is added to get
3320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3321 array size at least. It's necessary to write '\x00'==0 to get something
3322 that's true only with -std. */
3323 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3325 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3326 inside strings and character constants. */
3328 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3330 int test (int i, double x);
3331 struct s1 {int (*f) (int a);};
3332 struct s2 {int (*f) (double a);};
3333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3347 CC="$ac_save_CC $ac_arg"
3348 rm -f conftest.$ac_objext
3349 if { (ac_try="$ac_compile"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_compile") 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3361 (exit $ac_status); } && {
3362 test -z "$ac_c_werror_flag" ||
3363 test ! -s conftest.err
3364 } && test -s conftest.$ac_objext; then
3365 ac_cv_prog_cc_c89=$ac_arg
3367 echo "$as_me: failed program was
:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3373 rm -f core conftest.err conftest.$ac_objext
3374 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3376 rm -f conftest.$ac_ext
3381 case "x
$ac_cv_prog_cc_c89" in
3383 { echo "$as_me:$LINENO: result
: none needed
" >&5
3384 echo "${ECHO_T}none needed
" >&6; } ;;
3386 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3387 echo "${ECHO_T}unsupported
" >&6; } ;;
3389 CC="$CC $ac_cv_prog_cc_c89"
3390 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3391 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401 depcc="$CC" am_compiler_list=
3403 { echo "$as_me:$LINENO: checking dependency style of
$depcc" >&5
3404 echo $ECHO_N "checking dependency style of
$depcc...
$ECHO_C" >&6; }
3405 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3406 echo $ECHO_N "(cached
) $ECHO_C" >&6
3408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3409 # We make a subdir and do the tests there. Otherwise we can end up
3410 # making bogus files that we don't know about and never remove. For
3411 # instance it was reported that on HP-UX the gcc test will end up
3412 # making a dummy file named `D' -- because `-MD' means `put the output
3415 # Copy depcomp to subdir because otherwise we won't find it if we're
3416 # using a relative directory.
3417 cp "$am_depcomp" conftest.dir
3419 # We will build objects and dependencies in a subdirectory because
3420 # it helps to detect inapplicable dependency modes. For instance
3421 # both Tru64's cc and ICC support -MD to output dependencies as a
3422 # side effect of compilation, but ICC will put the dependencies in
3423 # the current directory while Tru64 will put them in the object
3427 am_cv_CC_dependencies_compiler_type=none
3428 if test "$am_compiler_list" = ""; then
3429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431 for depmode in $am_compiler_list; do
3432 # Setup a source with many dependencies, because some compilers
3433 # like to wrap large dependency lists on column 80 (with \), and
3434 # we should not choose a depcomp mode which is confused by this.
3436 # We need to recreate these files for each test, as the compiler may
3437 # overwrite some of them when testing with obscure command lines.
3438 # This happens at least with the AIX C compiler.
3440 for i in 1 2 3 4 5 6; do
3441 echo '#include "conftst
'$i'.h
"' >> sub/conftest.c
3442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3443 # Solaris 8's {/usr,}/bin/sh.
3444 touch sub/conftst$i.h
3446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3450 # after this tag, mechanisms are not by side-effect, so they'll
3451 # only be used when explicitly requested
3452 if test "x
$enable_dependency_tracking" = xyes; then
3460 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
3461 # mode. It turns out that the SunPro C++ compiler does not properly
3462 # handle `-M -o', and we need to detect this.
3463 if depmode=$depmode \
3464 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3466 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3467 >/dev/null 2>conftest.err &&
3468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472 # icc doesn't choke on unknown options, it will just issue warnings
3473 # or remarks (even with -Werror). So we grep stderr for any message
3474 # that says an option was ignored or not supported.
3475 # When given -MP, icc 7.0 and 7.1 complain thusly:
3476 # icc: Command line warning: ignoring option '-M'; no argument required
3477 # The diagnosis changed in icc 8.0:
3478 # icc: Command line remark: option '-MP' not supported
3479 if (grep 'ignoring option' conftest.err ||
3480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481 am_cv_CC_dependencies_compiler_type=$depmode
3490 am_cv_CC_dependencies_compiler_type=none
3494 { echo "$as_me:$LINENO: result
: $am_cv_CC_dependencies_compiler_type" >&5
3495 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3496 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3499 test "x
$enable_dependency_tracking" != xno \
3500 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3502 am__fastdepCC_FALSE='#'
3504 am__fastdepCC_TRUE='#'
3505 am__fastdepCC_FALSE=
3511 ac_cpp='$CPP $CPPFLAGS'
3512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3516 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3517 # On Suns, sometimes $CPP names a directory.
3518 if test -n "$CPP" && test -d "$CPP"; then
3521 if test -z "$CPP"; then
3522 if test "${ac_cv_prog_CPP+set}" = set; then
3523 echo $ECHO_N "(cached
) $ECHO_C" >&6
3525 # Double quotes because CPP needs to be expanded
3526 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3529 for ac_c_preproc_warn_flag in '' yes
3531 # Use a header file that comes with gcc, so configuring glibc
3532 # with a fresh cross-compiler works.
3533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3534 # <limits.h> exists even on freestanding compilers.
3535 # On the NeXT, cc -E runs the code through the compiler's parser,
3536 # not just through cpp. "Syntax error
" is here to catch this case.
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3544 # include <limits.h>
3546 # include <assert.h>
3550 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3558 grep -v '^ *+' conftest.er1 >conftest.err
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3562 (exit $ac_status); } >/dev/null && {
3563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3568 echo "$as_me: failed program was
:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 # Broken: fails on valid input.
3575 rm -f conftest.err conftest.$ac_ext
3577 # OK, works on sane cases. Now check whether nonexistent headers
3578 # can be detected and how.
3579 cat >conftest.$ac_ext <<_ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 #include <ac_nonexistent.h>
3587 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3595 grep -v '^ *+' conftest.er1 >conftest.err
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3599 (exit $ac_status); } >/dev/null && {
3600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3601 test ! -s conftest.err
3603 # Broken: success on invalid input.
3606 echo "$as_me: failed program was
:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 # Passes both tests.
3614 rm -f conftest.err conftest.$ac_ext
3617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3618 rm -f conftest.err conftest.$ac_ext
3619 if $ac_preproc_ok; then
3631 { echo "$as_me:$LINENO: result
: $CPP" >&5
3632 echo "${ECHO_T}$CPP" >&6; }
3634 for ac_c_preproc_warn_flag in '' yes
3636 # Use a header file that comes with gcc, so configuring glibc
3637 # with a fresh cross-compiler works.
3638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3639 # <limits.h> exists even on freestanding compilers.
3640 # On the NeXT, cc -E runs the code through the compiler's parser,
3641 # not just through cpp. "Syntax error
" is here to catch this case.
3642 cat >conftest.$ac_ext <<_ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3649 # include <limits.h>
3651 # include <assert.h>
3655 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3663 grep -v '^ *+' conftest.er1 >conftest.err
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3667 (exit $ac_status); } >/dev/null && {
3668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3669 test ! -s conftest.err
3673 echo "$as_me: failed program was
:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 # Broken: fails on valid input.
3680 rm -f conftest.err conftest.$ac_ext
3682 # OK, works on sane cases. Now check whether nonexistent headers
3683 # can be detected and how.
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #include <ac_nonexistent.h>
3692 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3700 grep -v '^ *+' conftest.er1 >conftest.err
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3704 (exit $ac_status); } >/dev/null && {
3705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3708 # Broken: success on invalid input.
3711 echo "$as_me: failed program was
:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 # Passes both tests.
3719 rm -f conftest.err conftest.$ac_ext
3722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3723 rm -f conftest.err conftest.$ac_ext
3724 if $ac_preproc_ok; then
3727 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3728 See \
`config.log' for more details." >&5
3729 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3730 See \`config.log
' for more details." >&2;}
3731 { (exit 1); exit 1; }; }
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3737 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3742 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3743 if test "${ac_cv_path_GREP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 # Extract the first word of "grep ggrep" to use in msg output
3747 if test -z "$GREP"; then
3748 set dummy grep ggrep; ac_prog_name=$2
3749 if test "${ac_cv_path_GREP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 ac_path_GREP_found=false
3753 # Loop through the user's path and
test for each of PROGNAME-LIST
3754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3755 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3758 test -z "$as_dir" && as_dir
=.
3759 for ac_prog
in grep ggrep
; do
3760 for ac_exec_ext
in '' $ac_executable_extensions; do
3761 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3762 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3763 # Check for GNU ac_path_GREP and select it if it is found.
3764 # Check for GNU $ac_path_GREP
3765 case `"$ac_path_GREP" --version 2>&1` in
3767 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3770 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 echo 'GREP' >> "conftest.nl"
3777 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3778 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3779 ac_count
=`expr $ac_count + 1`
3780 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_GREP
="$ac_path_GREP"
3783 ac_path_GREP_max
=$ac_count
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3788 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3792 $ac_path_GREP_found && break 3
3802 GREP
="$ac_cv_path_GREP"
3803 if test -z "$GREP"; then
3804 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3805 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3806 { (exit 1); exit 1; }; }
3810 ac_cv_path_GREP
=$GREP
3815 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3816 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3817 GREP
="$ac_cv_path_GREP"
3820 { echo "$as_me:$LINENO: checking for egrep" >&5
3821 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3822 if test "${ac_cv_path_EGREP+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3826 then ac_cv_path_EGREP
="$GREP -E"
3828 # Extract the first word of "egrep" to use in msg output
3829 if test -z "$EGREP"; then
3830 set dummy
egrep; ac_prog_name
=$2
3831 if test "${ac_cv_path_EGREP+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 ac_path_EGREP_found
=false
3835 # Loop through the user's path and test for each of PROGNAME-LIST
3836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3837 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3840 test -z "$as_dir" && as_dir
=.
3841 for ac_prog
in egrep; do
3842 for ac_exec_ext
in '' $ac_executable_extensions; do
3843 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3844 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3845 # Check for GNU ac_path_EGREP and select it if it is found.
3846 # Check for GNU $ac_path_EGREP
3847 case `"$ac_path_EGREP" --version 2>&1` in
3849 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3852 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3855 cat "conftest.in" "conftest.in" >"conftest.tmp"
3856 mv "conftest.tmp" "conftest.in"
3857 cp "conftest.in" "conftest.nl"
3858 echo 'EGREP' >> "conftest.nl"
3859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3860 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3861 ac_count
=`expr $ac_count + 1`
3862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3863 # Best one so far, save it but keep looking for a better one
3864 ac_cv_path_EGREP
="$ac_path_EGREP"
3865 ac_path_EGREP_max
=$ac_count
3867 # 10*(2^10) chars as input seems more than enough
3868 test $ac_count -gt 10 && break
3870 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3874 $ac_path_EGREP_found && break 3
3884 EGREP
="$ac_cv_path_EGREP"
3885 if test -z "$EGREP"; then
3886 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3887 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3888 { (exit 1); exit 1; }; }
3892 ac_cv_path_EGREP
=$EGREP
3898 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3899 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3900 EGREP
="$ac_cv_path_EGREP"
3904 { echo "$as_me:$LINENO: checking for AIX" >&5
3905 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3906 cat >conftest.
$ac_ext <<_ACEOF
3909 cat confdefs.h
>>conftest.
$ac_ext
3910 cat >>conftest.
$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918 $EGREP "yes" >/dev
/null
2>&1; then
3919 { echo "$as_me:$LINENO: result: yes" >&5
3920 echo "${ECHO_T}yes" >&6; }
3921 cat >>confdefs.h
<<\_ACEOF
3922 #define _ALL_SOURCE 1
3926 { echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6; }
3932 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3933 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3934 if test "${ac_cv_search_strerror+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 ac_func_search_save_LIBS
=$LIBS
3938 cat >conftest.
$ac_ext <<_ACEOF
3941 cat confdefs.h
>>conftest.
$ac_ext
3942 cat >>conftest.
$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3945 /* Override any GCC internal prototype to avoid an error.
3946 Use char because int might match the return type of a GCC
3947 builtin and then its argument prototype would still apply. */
3960 for ac_lib
in '' cposix
; do
3961 if test -z "$ac_lib"; then
3962 ac_res
="none required"
3965 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3967 rm -f conftest.
$ac_objext conftest
$ac_exeext
3968 if { (ac_try
="$ac_link"
3970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_link") 2>conftest.er1
3976 grep -v '^ *+' conftest.er1 >conftest.err
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && {
3981 test -z "$ac_c_werror_flag" ||
3982 test ! -s conftest.err
3983 } && test -s conftest$ac_exeext &&
3984 $as_test_x conftest$ac_exeext; then
3985 ac_cv_search_strerror=$ac_res
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3995 if test "${ac_cv_search_strerror+set}" = set; then
3999 if test "${ac_cv_search_strerror+set}" = set; then
4002 ac_cv_search_strerror=no
4005 LIBS=$ac_func_search_save_LIBS
4007 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4008 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4009 ac_res=$ac_cv_search_strerror
4010 if test "$ac_res" != no; then
4011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4015 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4017 if test "${ac_cv_header_stdc+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 cat >conftest.$ac_ext <<_ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4043 *) ac_try_echo
=$ac_try;;
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4048 grep -v '^ *+' conftest.er1
>conftest.err
4050 cat conftest.err
>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && {
4053 test -z "$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 } && test -s conftest.
$ac_objext; then
4056 ac_cv_header_stdc
=yes
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.
$ac_ext >&5
4061 ac_cv_header_stdc
=no
4064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4066 if test $ac_cv_header_stdc = yes; then
4067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4068 cat >conftest.
$ac_ext <<_ACEOF
4071 cat confdefs.h
>>conftest.
$ac_ext
4072 cat >>conftest.
$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "memchr" >/dev
/null
2>&1; then
4081 ac_cv_header_stdc
=no
4087 if test $ac_cv_header_stdc = yes; then
4088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4089 cat >conftest.
$ac_ext <<_ACEOF
4092 cat confdefs.h
>>conftest.
$ac_ext
4093 cat >>conftest.
$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 $EGREP "free" >/dev
/null
2>&1; then
4102 ac_cv_header_stdc
=no
4108 if test $ac_cv_header_stdc = yes; then
4109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4110 if test "$cross_compiling" = yes; then
4113 cat >conftest.
$ac_ext <<_ACEOF
4116 cat confdefs.h
>>conftest.
$ac_ext
4117 cat >>conftest.
$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4121 #if ((' ' & 0x0FF) == 0x020)
4122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4125 # define ISLOWER(c) \
4126 (('a' <= (c) && (c) <= 'i') \
4127 || ('j' <= (c) && (c) <= 'r') \
4128 || ('s' <= (c) && (c) <= 'z'))
4129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4137 for (i = 0; i < 256; i++)
4138 if (XOR (islower (i), ISLOWER (i))
4139 || toupper (i) != TOUPPER (i))
4144 rm -f conftest
$ac_exeext
4145 if { (ac_try
="$ac_link"
4147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_link") 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4157 *) ac_try_echo
=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4166 echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.
$ac_ext >&5
4171 ac_cv_header_stdc
=no
4173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4179 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4180 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4181 if test $ac_cv_header_stdc = yes; then
4183 cat >>confdefs.h
<<\_ACEOF
4184 #define STDC_HEADERS 1
4189 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4199 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4200 inttypes.h stdint.h unistd.h
4202 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4205 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 cat >conftest.
$ac_ext <<_ACEOF
4211 cat confdefs.h
>>conftest.
$ac_ext
4212 cat >>conftest.
$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 $ac_includes_default
4216 #include <$ac_header>
4218 rm -f conftest.
$ac_objext
4219 if { (ac_try
="$ac_compile"
4221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_compile") 2>conftest.er1
4227 grep -v '^ *+' conftest.er1 >conftest.err
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } && {
4232 test -z "$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 } && test -s conftest.$ac_objext; then
4235 eval "$as_ac_Header=yes"
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 eval "$as_ac_Header=no"
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 ac_res=`eval echo '${'$as_ac_Header'}'`
4246 { echo "$as_me:$LINENO: result: $ac_res" >&5
4247 echo "${ECHO_T}$ac_res" >&6; }
4248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4249 cat >>confdefs.h <<_ACEOF
4250 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4258 if test "${ac_cv_header_minix_config_h+set}" = set; then
4259 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4260 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4261 if test "${ac_cv_header_minix_config_h+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4265 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4267 # Is the header compilable?
4268 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4269 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4270 cat >conftest.$ac_ext <<_ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 $ac_includes_default
4277 #include <minix/config.h>
4279 rm -f conftest.$ac_objext
4280 if { (ac_try="$ac_compile"
4282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4283 *) ac_try_echo
=$ac_try;;
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_compile") 2>conftest.er1
4288 grep -v '^ *+' conftest.er1
>conftest.err
4290 cat conftest.err
>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && {
4293 test -z "$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest.
$ac_objext; then
4296 ac_header_compiler
=yes
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.
$ac_ext >&5
4301 ac_header_compiler
=no
4304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4306 echo "${ECHO_T}$ac_header_compiler" >&6; }
4308 # Is the header present?
4309 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4310 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4311 cat >conftest.
$ac_ext <<_ACEOF
4314 cat confdefs.h
>>conftest.
$ac_ext
4315 cat >>conftest.
$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <minix/config.h>
4319 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4327 grep -v '^ *+' conftest.er1 >conftest.err
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } >/dev/null && {
4332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4333 test ! -s conftest.err
4335 ac_header_preproc=yes
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4340 ac_header_preproc=no
4343 rm -f conftest.err conftest.$ac_ext
4344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4345 echo "${ECHO_T}$ac_header_preproc" >&6; }
4347 # So? What about this header?
4348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4350 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4351 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4352 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4353 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4354 ac_header_preproc=yes
4357 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4358 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4359 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4360 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4361 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4362 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4363 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4364 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4365 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4366 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4368 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4370 ## -------------------------------------------------- ##
4371 ## Report this to courier-users@lists.sourceforge.net ##
4372 ## -------------------------------------------------- ##
4374 ) | sed "s/^/$as_me: WARNING: /" >&2
4377 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4378 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4379 if test "${ac_cv_header_minix_config_h+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_cv_header_minix_config_h=$ac_header_preproc
4384 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4385 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4388 if test $ac_cv_header_minix_config_h = yes; then
4395 if test "$MINIX" = yes; then
4397 cat >>confdefs.h <<\_ACEOF
4398 #define _POSIX_SOURCE 1
4402 cat >>confdefs.h <<\_ACEOF
4403 #define _POSIX_1_SOURCE 2
4407 cat >>confdefs.h <<\_ACEOF
4413 # Find a good install program. We prefer a C program (faster),
4414 # so one script is as good as another. But avoid the broken or
4415 # incompatible versions:
4416 # SysV /etc/install, /usr/sbin/install
4417 # SunOS /usr/etc/install
4418 # IRIX /sbin/install
4420 # AmigaOS /C/install, which installs bootblocks on floppy discs
4421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4424 # OS/2's system install, which has a completely different semantic
4425 # ./install, which can be erroneously created by make from ./install.sh.
4426 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4427 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4428 if test -z "$INSTALL"; then
4429 if test "${ac_cv_path_install+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 # Account for people who put trailing slashes in PATH elements.
4439 ./ | .// | /cC/* | \
4440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4441 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4444 # OSF1 and SCO ODT 3.0 have their own names for install.
4445 # Don't use installbsd from OSF since it installs stuff as root
4447 for ac_prog in ginstall scoinst install; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4450 if test $ac_prog = install &&
4451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452 # AIX install. It has an incompatible calling convention.
4454 elif test $ac_prog = install &&
4455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4456 # program-specific install script used by HP pwplus--don't use.
4459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4472 if test "${ac_cv_path_install+set}" = set; then
4473 INSTALL=$ac_cv_path_install
4475 # As a last resort, use the slow shell script. Don't cache a
4476 # value for INSTALL within a source directory, because that will
4477 # break other packages using the cache if that directory is
4478 # removed, or if the value is a relative name.
4479 INSTALL=$ac_install_sh
4482 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4483 echo "${ECHO_T}$INSTALL" >&6; }
4485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4486 # It thinks the first close brace ends the variable substitution.
4487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4489 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4491 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4493 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4494 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4496 if test "$LN_S" = "ln -s"; then
4497 { echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6; }
4500 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4501 echo "${ECHO_T}no, using $LN_S" >&6; }
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4511 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 if test -n "$CC"; then
4518 ac_cv_prog_CC="$CC" # Let the user override the test.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 if test -n "$CC"; then
4539 { echo "$as_me:$LINENO: result: $CC" >&5
4540 echo "${ECHO_T}$CC" >&6; }
4542 { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4548 if test -z "$ac_cv_prog_CC"; then
4550 # Extract the first word of "gcc", so it can be a program name with args.
4551 set dummy gcc; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 if test -n "$ac_ct_CC"; then
4558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_ac_ct_CC="gcc"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4578 if test -n "$ac_ct_CC"; then
4579 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4580 echo "${ECHO_T}$ac_ct_CC" >&6; }
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4586 if test "x$ac_ct_CC" = x; then
4589 case $cross_compiling:$ac_tool_warned in
4591 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4592 whose name does not start with the host triplet. If you think this
4593 configuration is useful to you, please write to autoconf@gnu.org." >&5
4594 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4595 whose name does not start with the host triplet. If you think this
4596 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4597 ac_tool_warned=yes ;;
4605 if test -z "$CC"; then
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}cc; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_prog_CC+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 if test -n "$CC"; then
4615 ac_cv_prog_CC="$CC" # Let the user override the test.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_CC="${ac_tool_prefix}cc"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 if test -n "$CC"; then
4636 { echo "$as_me:$LINENO: result: $CC" >&5
4637 echo "${ECHO_T}$CC" >&6; }
4639 { echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6; }
4646 if test -z "$CC"; then
4647 # Extract the first word of "cc", so it can be a program name with args.
4648 set dummy cc; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_prog_CC+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4666 ac_prog_rejected=yes
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 if test $ac_prog_rejected = yes; then
4678 # We found a bogon in the path, so make sure we never use it.
4679 set dummy $ac_cv_prog_CC
4681 if test $# != 0; then
4682 # We chose a different compiler from the bogus one.
4683 # However, it has the same basename, so the bogon will be chosen
4684 # first if we set CC to just the basename; use the full file name.
4686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4692 if test -n "$CC"; then
4693 { echo "$as_me:$LINENO: result: $CC" >&5
4694 echo "${ECHO_T}$CC" >&6; }
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4702 if test -z "$CC"; then
4703 if test -n "$ac_tool_prefix"; then
4704 for ac_prog in cl.exe
4706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710 if test "${ac_cv_prog_CC+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 if test -n "$CC"; then
4714 ac_cv_prog_CC="$CC" # Let the user override the test.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 if test -n "$CC"; then
4735 { echo "$as_me:$LINENO: result: $CC" >&5
4736 echo "${ECHO_T}$CC" >&6; }
4738 { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4743 test -n "$CC" && break
4746 if test -z "$CC"; then
4748 for ac_prog in cl.exe
4750 # Extract the first word of "$ac_prog", so it can be a program name with args.
4751 set dummy $ac_prog; ac_word=$2
4752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 if test -n "$ac_ct_CC"; then
4758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_ac_ct_CC="$ac_prog"
4768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4778 if test -n "$ac_ct_CC"; then
4779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4780 echo "${ECHO_T}$ac_ct_CC" >&6; }
4782 { echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6; }
4787 test -n "$ac_ct_CC" && break
4790 if test "x$ac_ct_CC" = x; then
4793 case $cross_compiling:$ac_tool_warned in
4795 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4796 whose name does not start with the host triplet. If you think this
4797 configuration is useful to you, please write to autoconf@gnu.org." >&5
4798 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4799 whose name does not start with the host triplet. If you think this
4800 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4801 ac_tool_warned=yes ;;
4810 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4811 See \`config.log
' for more details." >&5
4812 echo "$as_me: error: no acceptable C compiler found in \$PATH
4813 See \`config.log' for more details.
" >&2;}
4814 { (exit 1); exit 1; }; }
4816 # Provide some information about the compiler.
4817 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
4818 ac_compiler=`set X $ac_compile; echo $2`
4819 { (ac_try="$ac_compiler --version >&5"
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_compiler --version >&5") 2>&5
4827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4828 (exit $ac_status); }
4829 { (ac_try="$ac_compiler -v >&5"
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_compiler -v >&5") 2>&5
4837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4838 (exit $ac_status); }
4839 { (ac_try="$ac_compiler -V >&5"
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compiler -V >&5") 2>&5
4847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4848 (exit $ac_status); }
4850 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
4851 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
4852 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4853 echo $ECHO_N "(cached
) $ECHO_C" >&6
4855 cat >conftest.$ac_ext <<_ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4873 rm -f conftest.$ac_objext
4874 if { (ac_try="$ac_compile"
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_compile") 2>conftest.er1
4882 grep -v '^ *+' conftest.er1 >conftest.err
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4886 (exit $ac_status); } && {
4887 test -z "$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 } && test -s conftest.$ac_objext; then
4892 echo "$as_me: failed program was
:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4902 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
4903 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4904 GCC=`test $ac_compiler_gnu = yes && echo yes`
4905 ac_test_CFLAGS=${CFLAGS+set}
4906 ac_save_CFLAGS=$CFLAGS
4907 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
4908 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
4909 if test "${ac_cv_prog_cc_g+set}" = set; then
4910 echo $ECHO_N "(cached
) $ECHO_C" >&6
4912 ac_save_c_werror_flag=$ac_c_werror_flag
4913 ac_c_werror_flag=yes
4916 cat >conftest.$ac_ext <<_ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_compile") 2>conftest.er1
4940 grep -v '^ *+' conftest.er1 >conftest.err
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4944 (exit $ac_status); } && {
4945 test -z "$ac_c_werror_flag" ||
4946 test ! -s conftest.err
4947 } && test -s conftest.$ac_objext; then
4950 echo "$as_me: failed program was
:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4969 rm -f conftest.$ac_objext
4970 if { (ac_try="$ac_compile"
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_compile") 2>conftest.er1
4978 grep -v '^ *+' conftest.er1 >conftest.err
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4982 (exit $ac_status); } && {
4983 test -z "$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 } && test -s conftest.$ac_objext; then
4988 echo "$as_me: failed program was
:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 ac_c_werror_flag=$ac_save_c_werror_flag
4993 cat >conftest.$ac_ext <<_ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5008 rm -f conftest.$ac_objext
5009 if { (ac_try="$ac_compile"
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_compile") 2>conftest.er1
5017 grep -v '^ *+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5021 (exit $ac_status); } && {
5022 test -z "$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5024 } && test -s conftest.$ac_objext; then
5027 echo "$as_me: failed program was
:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 ac_c_werror_flag=$ac_save_c_werror_flag
5042 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
5043 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5044 if test "$ac_test_CFLAGS" = set; then
5045 CFLAGS=$ac_save_CFLAGS
5046 elif test $ac_cv_prog_cc_g = yes; then
5047 if test "$GCC" = yes; then
5053 if test "$GCC" = yes; then
5059 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
5060 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
5061 if test "${ac_cv_prog_cc_c89+set}" = set; then
5062 echo $ECHO_N "(cached
) $ECHO_C" >&6
5064 ac_cv_prog_cc_c89=no
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5074 #include <sys/types.h>
5075 #include <sys/stat.h>
5076 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5077 struct buf { int x; };
5078 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5079 static char *e (p, i)
5085 static char *f (char * (*g) (char **, int), char **p, ...)
5090 s = g (p, va_arg (v,int));
5095 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5096 function prototypes and stuff, but not '\xHH' hex character constants.
5097 These don't provoke an error unfortunately, instead are silently treated
5098 as 'x'. The following induces an error, until -std is added to get
5099 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5100 array size at least. It's necessary to write '\x00'==0 to get something
5101 that's true only with -std. */
5102 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5104 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5105 inside strings and character constants. */
5107 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5109 int test (int i, double x);
5110 struct s1 {int (*f) (int a);};
5111 struct s2 {int (*f) (double a);};
5112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5118 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5123 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5124 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5126 CC="$ac_save_CC $ac_arg"
5127 rm -f conftest.$ac_objext
5128 if { (ac_try="$ac_compile"
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_compile") 2>conftest.er1
5136 grep -v '^ *+' conftest.er1 >conftest.err
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5140 (exit $ac_status); } && {
5141 test -z "$ac_c_werror_flag" ||
5142 test ! -s conftest.err
5143 } && test -s conftest.$ac_objext; then
5144 ac_cv_prog_cc_c89=$ac_arg
5146 echo "$as_me: failed program was
:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5152 rm -f core conftest.err conftest.$ac_objext
5153 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
5155 rm -f conftest.$ac_ext
5160 case "x
$ac_cv_prog_cc_c89" in
5162 { echo "$as_me:$LINENO: result
: none needed
" >&5
5163 echo "${ECHO_T}none needed
" >&6; } ;;
5165 { echo "$as_me:$LINENO: result
: unsupported
" >&5
5166 echo "${ECHO_T}unsupported
" >&6; } ;;
5168 CC="$CC $ac_cv_prog_cc_c89"
5169 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
5170 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5175 ac_cpp='$CPP $CPPFLAGS'
5176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180 depcc="$CC" am_compiler_list=
5182 { echo "$as_me:$LINENO: checking dependency style of
$depcc" >&5
5183 echo $ECHO_N "checking dependency style of
$depcc...
$ECHO_C" >&6; }
5184 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5185 echo $ECHO_N "(cached
) $ECHO_C" >&6
5187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5188 # We make a subdir and do the tests there. Otherwise we can end up
5189 # making bogus files that we don't know about and never remove. For
5190 # instance it was reported that on HP-UX the gcc test will end up
5191 # making a dummy file named `D' -- because `-MD' means `put the output
5194 # Copy depcomp to subdir because otherwise we won't find it if we're
5195 # using a relative directory.
5196 cp "$am_depcomp" conftest.dir
5198 # We will build objects and dependencies in a subdirectory because
5199 # it helps to detect inapplicable dependency modes. For instance
5200 # both Tru64's cc and ICC support -MD to output dependencies as a
5201 # side effect of compilation, but ICC will put the dependencies in
5202 # the current directory while Tru64 will put them in the object
5206 am_cv_CC_dependencies_compiler_type=none
5207 if test "$am_compiler_list" = ""; then
5208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5210 for depmode in $am_compiler_list; do
5211 # Setup a source with many dependencies, because some compilers
5212 # like to wrap large dependency lists on column 80 (with \), and
5213 # we should not choose a depcomp mode which is confused by this.
5215 # We need to recreate these files for each test, as the compiler may
5216 # overwrite some of them when testing with obscure command lines.
5217 # This happens at least with the AIX C compiler.
5219 for i in 1 2 3 4 5 6; do
5220 echo '#include "conftst
'$i'.h
"' >> sub/conftest.c
5221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5222 # Solaris 8's {/usr,}/bin/sh.
5223 touch sub/conftst$i.h
5225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5229 # after this tag, mechanisms are not by side-effect, so they'll
5230 # only be used when explicitly requested
5231 if test "x
$enable_dependency_tracking" = xyes; then
5239 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
5240 # mode. It turns out that the SunPro C++ compiler does not properly
5241 # handle `-M -o', and we need to detect this.
5242 if depmode=$depmode \
5243 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5246 >/dev/null 2>conftest.err &&
5247 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5249 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5251 # icc doesn't choke on unknown options, it will just issue warnings
5252 # or remarks (even with -Werror). So we grep stderr for any message
5253 # that says an option was ignored or not supported.
5254 # When given -MP, icc 7.0 and 7.1 complain thusly:
5255 # icc: Command line warning: ignoring option '-M'; no argument required
5256 # The diagnosis changed in icc 8.0:
5257 # icc: Command line remark: option '-MP' not supported
5258 if (grep 'ignoring option' conftest.err ||
5259 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5260 am_cv_CC_dependencies_compiler_type=$depmode
5269 am_cv_CC_dependencies_compiler_type=none
5273 { echo "$as_me:$LINENO: result
: $am_cv_CC_dependencies_compiler_type" >&5
5274 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5275 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5278 test "x
$enable_dependency_tracking" != xno \
5279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5281 am__fastdepCC_FALSE='#'
5283 am__fastdepCC_TRUE='#'
5284 am__fastdepCC_FALSE=
5290 # Extract the first word of "$ac_prog", so it can be a program name with args.
5291 set dummy $ac_prog; ac_word=$2
5292 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5293 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5294 if test "${ac_cv_path_PS+set}" = set; then
5295 echo $ECHO_N "(cached
) $ECHO_C" >&6
5299 ac_cv_path_PS="$PS" # Let the user override the test with a path.
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $LPATH
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5310 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5321 if test -n "$PS"; then
5322 { echo "$as_me:$LINENO: result
: $PS" >&5
5323 echo "${ECHO_T}$PS" >&6; }
5325 { echo "$as_me:$LINENO: result
: no
" >&5
5326 echo "${ECHO_T}no
" >&6; }
5330 test -n "$PS" && break
5332 test -n "$PS" || PS="ps
"
5336 # Extract the first word of "$ac_prog", so it can be a program name with args.
5337 set dummy $ac_prog; ac_word=$2
5338 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5339 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5340 if test "${ac_cv_path_W+set}" = set; then
5341 echo $ECHO_N "(cached
) $ECHO_C" >&6
5345 ac_cv_path_W="$W" # Let the user override the test with a path.
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $LPATH
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
5356 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5367 if test -n "$W"; then
5368 { echo "$as_me:$LINENO: result
: $W" >&5
5369 echo "${ECHO_T}$W" >&6; }
5371 { echo "$as_me:$LINENO: result
: no
" >&5
5372 echo "${ECHO_T}no
" >&6; }
5376 test -n "$W" && break
5378 test -n "$W" || W="w
"
5380 # Check whether --enable-shared was given.
5381 if test "${enable_shared+set}" = set; then
5382 enableval=$enable_shared; p=${PACKAGE-default}
5384 yes) enable_shared=yes ;;
5385 no) enable_shared=no ;;
5388 # Look at the argument we got. We use all the common list separators.
5389 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5390 for pkg in $enableval; do
5392 if test "X
$pkg" = "X
$p"; then
5404 # Check whether --enable-static was given.
5405 if test "${enable_static+set}" = set; then
5406 enableval=$enable_static; p=${PACKAGE-default}
5408 yes) enable_static=yes ;;
5409 no) enable_static=no ;;
5412 # Look at the argument we got. We use all the common list separators.
5413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5414 for pkg in $enableval; do
5416 if test "X
$pkg" = "X
$p"; then
5428 # Check whether --enable-fast-install was given.
5429 if test "${enable_fast_install+set}" = set; then
5430 enableval=$enable_fast_install; p=${PACKAGE-default}
5432 yes) enable_fast_install=yes ;;
5433 no) enable_fast_install=no ;;
5435 enable_fast_install=no
5436 # Look at the argument we got. We use all the common list separators.
5437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5438 for pkg in $enableval; do
5440 if test "X
$pkg" = "X
$p"; then
5441 enable_fast_install=yes
5448 enable_fast_install=yes
5452 # Make sure we can run config.sub.
5453 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
5454 { { echo "$as_me:$LINENO: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&5
5455 echo "$as_me: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&2;}
5456 { (exit 1); exit 1; }; }
5458 { echo "$as_me:$LINENO: checking build system
type" >&5
5459 echo $ECHO_N "checking build system
type...
$ECHO_C" >&6; }
5460 if test "${ac_cv_build+set}" = set; then
5461 echo $ECHO_N "(cached
) $ECHO_C" >&6
5463 ac_build_alias=$build_alias
5464 test "x
$ac_build_alias" = x &&
5465 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
5466 test "x
$ac_build_alias" = x &&
5467 { { echo "$as_me:$LINENO: error
: cannot guess build
type; you must specify one
" >&5
5468 echo "$as_me: error
: cannot guess build
type; you must specify one
" >&2;}
5469 { (exit 1); exit 1; }; }
5470 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
5471 { { echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&5
5472 echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&2;}
5473 { (exit 1); exit 1; }; }
5476 { echo "$as_me:$LINENO: result
: $ac_cv_build" >&5
5477 echo "${ECHO_T}$ac_cv_build" >&6; }
5478 case $ac_cv_build in
5480 *) { { echo "$as_me:$LINENO: error
: invalid value of canonical build
" >&5
5481 echo "$as_me: error
: invalid value of canonical build
" >&2;}
5482 { (exit 1); exit 1; }; };;
5485 ac_save_IFS=$IFS; IFS='-'
5491 # Remember, the first character of IFS is used to create $*,
5492 # except with old shells:
5495 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5498 { echo "$as_me:$LINENO: checking
host system
type" >&5
5499 echo $ECHO_N "checking
host system
type...
$ECHO_C" >&6; }
5500 if test "${ac_cv_host+set}" = set; then
5501 echo $ECHO_N "(cached
) $ECHO_C" >&6
5503 if test "x
$host_alias" = x; then
5504 ac_cv_host=$ac_cv_build
5506 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
5507 { { echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&5
5508 echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&2;}
5509 { (exit 1); exit 1; }; }
5513 { echo "$as_me:$LINENO: result
: $ac_cv_host" >&5
5514 echo "${ECHO_T}$ac_cv_host" >&6; }
5517 *) { { echo "$as_me:$LINENO: error
: invalid value of canonical
host" >&5
5518 echo "$as_me: error
: invalid value of canonical
host" >&2;}
5519 { (exit 1); exit 1; }; };;
5522 ac_save_IFS=$IFS; IFS='-'
5528 # Remember, the first character of IFS is used to create $*,
5529 # except with old shells:
5532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5535 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
5536 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
5537 if test "${lt_cv_path_SED+set}" = set; then
5538 echo $ECHO_N "(cached
) $ECHO_C" >&6
5540 # Loop through the user's path and test for sed and gsed.
5541 # Then use that list of sed's as ones to test for truncation.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 test -z "$as_dir" && as_dir=.
5547 for lt_ac_prog in sed gsed; do
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5550 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5558 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5559 # along with /bin/sed that truncates output.
5560 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5561 test ! -f $lt_ac_sed && continue
5562 cat /dev/null > conftest.in
5564 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5565 # Check for GNU sed and select it if it is found.
5566 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5567 lt_cv_path_SED=$lt_ac_sed
5571 cat conftest.in conftest.in >conftest.tmp
5572 mv conftest.tmp conftest.in
5573 cp conftest.in conftest.nl
5575 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5576 cmp -s conftest.out conftest.nl || break
5577 # 10000 chars as input seems more than enough
5578 test $lt_ac_count -gt 10 && break
5579 lt_ac_count=`expr $lt_ac_count + 1`
5580 if test $lt_ac_count -gt $lt_ac_max; then
5581 lt_ac_max=$lt_ac_count
5582 lt_cv_path_SED=$lt_ac_sed
5591 { echo "$as_me:$LINENO: result
: $SED" >&5
5592 echo "${ECHO_T}$SED" >&6; }
5595 # Check whether --with-gnu-ld was given.
5596 if test "${with_gnu_ld+set}" = set; then
5597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5603 if test "$GCC" = yes; then
5604 # Check if gcc -print-prog-name=ld gives a path.
5605 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
5606 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
5609 # gcc leaves a trailing carriage return which upsets mingw
5610 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5612 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5615 # Accept absolute paths.
5617 re_direlt='/[^/][^/]*/\.\./'
5618 # Canonicalize the pathname of ld
5619 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5620 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5621 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
5623 test -z "$LD" && LD="$ac_prog"
5626 # If it fails, then pretend we aren't using GCC.
5630 # If it is relative, then search for the first ld in PATH.
5634 elif test "$with_gnu_ld" = yes; then
5635 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
5636 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
5638 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
5639 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
5641 if test "${lt_cv_path_LD+set}" = set; then
5642 echo $ECHO_N "(cached
) $ECHO_C" >&6
5644 if test -z "$LD"; then
5645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5646 for ac_dir in $PATH; do
5648 test -z "$ac_dir" && ac_dir=.
5649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5650 lt_cv_path_LD="$ac_dir/$ac_prog"
5651 # Check to see if the program is GNU ld. I'd rather use --version,
5652 # but apparently some variants of GNU ld only accept -v.
5653 # Break only if it was the GNU/non-GNU ld that we prefer.
5654 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5655 *GNU* | *'with BFD'*)
5656 test "$with_gnu_ld" != no && break
5659 test "$with_gnu_ld" != yes && break
5666 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5671 if test -n "$LD"; then
5672 { echo "$as_me:$LINENO: result
: $LD" >&5
5673 echo "${ECHO_T}$LD" >&6; }
5675 { echo "$as_me:$LINENO: result
: no
" >&5
5676 echo "${ECHO_T}no
" >&6; }
5678 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
5679 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
5680 { (exit 1); exit 1; }; }
5681 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
5682 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
5683 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5684 echo $ECHO_N "(cached
) $ECHO_C" >&6
5686 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5687 case `$LD -v 2>&1 </dev/null` in
5688 *GNU* | *'with BFD'*)
5689 lt_cv_prog_gnu_ld=yes
5692 lt_cv_prog_gnu_ld=no
5696 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
5697 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5698 with_gnu_ld=$lt_cv_prog_gnu_ld
5701 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5702 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
5703 if test "${lt_cv_ld_reload_flag+set}" = set; then
5704 echo $ECHO_N "(cached
) $ECHO_C" >&6
5706 lt_cv_ld_reload_flag='-r'
5708 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5709 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5710 reload_flag=$lt_cv_ld_reload_flag
5711 case $reload_flag in
5713 *) reload_flag=" $reload_flag" ;;
5715 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5718 if test "$GCC" = yes; then
5719 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5721 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5726 { echo "$as_me:$LINENO: checking
for BSD-compatible nm
" >&5
5727 echo $ECHO_N "checking
for BSD-compatible nm...
$ECHO_C" >&6; }
5728 if test "${lt_cv_path_NM+set}" = set; then
5729 echo $ECHO_N "(cached
) $ECHO_C" >&6
5731 if test -n "$NM"; then
5732 # Let the user override the test.
5735 lt_nm_to_check="${ac_tool_prefix}nm
"
5736 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5737 lt_nm_to_check="$lt_nm_to_check nm
"
5739 for lt_tmp_nm in $lt_nm_to_check; do
5740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5741 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5743 test -z "$ac_dir" && ac_dir=.
5744 tmp_nm="$ac_dir/$lt_tmp_nm"
5745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5746 # Check to see if the nm accepts a BSD-compat flag.
5747 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5748 # nm: unknown option "B
" ignored
5749 # Tru64's nm complains that /dev/null is an invalid object file
5750 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5751 */dev/null* | *'Invalid file or object type'*)
5752 lt_cv_path_NM="$tmp_nm -B"
5756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5758 lt_cv_path_NM="$tmp_nm -p"
5762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5763 continue # so that we can try to find one that supports BSD flags
5772 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5775 { echo "$as_me:$LINENO: result
: $lt_cv_path_NM" >&5
5776 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5779 { echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5780 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6; }
5781 if test "${lt_cv_deplibs_check_method+set}" = set; then
5782 echo $ECHO_N "(cached
) $ECHO_C" >&6
5784 lt_cv_file_magic_cmd='$MAGIC_CMD'
5785 lt_cv_file_magic_test_file=
5786 lt_cv_deplibs_check_method='unknown'
5787 # Need to set the preceding variable on all platforms that support
5788 # interlibrary dependencies.
5789 # 'none' -- dependencies not supported.
5790 # `unknown' -- same as none, but documents that we really don't know.
5791 # 'pass_all' -- all dependencies passed with no checks.
5792 # 'test_compile' -- check by making test program.
5793 # 'file_magic [[regex]]' -- check by looking for files in library path
5794 # which responds to the $file_magic_cmd with a given extended regex.
5795 # If you have `file' or equivalent on your system and you're not sure
5796 # whether `pass_all' will *always* work, you probably want this one.
5800 lt_cv_deplibs_check_method=pass_all
5804 lt_cv_deplibs_check_method=pass_all
5808 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5809 lt_cv_file_magic_cmd='/usr/bin/file -L'
5810 lt_cv_file_magic_test_file=/shlib/libc.so
5814 # func_win32_libid is a shell function defined in ltmain.sh
5815 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5816 lt_cv_file_magic_cmd='func_win32_libid'
5820 # Base MSYS/MinGW do not provide the 'file' command needed by
5821 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5822 # unless we find 'file', for example because we are cross-compiling.
5823 if ( file / ) >/dev/null 2>&1; then
5824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5825 lt_cv_file_magic_cmd='func_win32_libid'
5827 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5828 lt_cv_file_magic_cmd='$OBJDUMP -f'
5832 darwin* | rhapsody*)
5833 lt_cv_deplibs_check_method=pass_all
5836 freebsd* | dragonfly*)
5837 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5840 # Not sure whether the presence of OpenBSD here was a mistake.
5841 # Let's accept both of them until this is cleared up.
5842 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5843 lt_cv_file_magic_cmd=/usr/bin/file
5844 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5848 lt_cv_deplibs_check_method=pass_all
5853 lt_cv_deplibs_check_method=pass_all
5856 hpux10.20* | hpux11*)
5857 lt_cv_file_magic_cmd=/usr/bin/file
5860 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5861 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5864 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]'
5865 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5868 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5869 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5875 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5879 irix5* | irix6* | nonstopux*)
5881 *-32|*"-32 ") libmagic=32-bit;;
5882 *-n32|*"-n32 ") libmagic=N32;;
5883 *-64|*"-64 ") libmagic=64-bit;;
5884 *) libmagic=never-match;;
5886 lt_cv_deplibs_check_method=pass_all
5889 # This must be Linux ELF.
5890 linux* | k*bsd*-gnu)
5891 lt_cv_deplibs_check_method=pass_all
5895 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5904 lt_cv_file_magic_cmd=/usr/bin/file
5905 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5909 lt_cv_deplibs_check_method=unknown
5913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5920 osf3* | osf4* | osf5*)
5921 lt_cv_deplibs_check_method=pass_all
5925 lt_cv_deplibs_check_method=pass_all
5929 lt_cv_deplibs_check_method=pass_all
5933 case $host_vendor in
5935 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]'
5936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5939 lt_cv_deplibs_check_method=pass_all
5942 lt_cv_file_magic_cmd='/bin/file'
5943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5946 lt_cv_file_magic_cmd='/bin/file'
5947 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5948 lt_cv_file_magic_test_file=/lib/libc.so
5951 lt_cv_deplibs_check_method=pass_all
5954 lt_cv_deplibs_check_method=pass_all
5959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5960 lt_cv_deplibs_check_method=pass_all
5965 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5966 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5967 file_magic_cmd=$lt_cv_file_magic_cmd
5968 deplibs_check_method=$lt_cv_deplibs_check_method
5969 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5974 # If no C compiler was specified, use CC.
5977 # If no C compiler flags were specified, use CFLAGS.
5978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5980 # Allow CC to be a program name with arguments.
5983 # Check whether --enable-libtool-lock was given.
5984 if test "${enable_libtool_lock+set}" = set; then
5985 enableval=$enable_libtool_lock;
5988 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
5990 # Some flags need to be propagated to the compiler or linker for good
5994 # Find out which ABI we are using.
5995 echo 'int i;' > conftest.$ac_ext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 2>&5
5999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6000 (exit $ac_status); }; then
6001 case `/usr/bin/file conftest.$ac_objext` in
6013 # Find out which ABI we are using.
6014 echo '#line 6014 "configure
"' > conftest.$ac_ext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016 (eval $ac_compile) 2>&5
6018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6019 (exit $ac_status); }; then
6020 if test "$lt_cv_prog_gnu_ld" = yes; then
6021 case `/usr/bin/file conftest.$ac_objext` in
6023 LD="${LD-ld} -melf32bsmip"
6026 LD="${LD-ld} -melf32bmipn32"
6029 LD="${LD-ld} -melf64bmip"
6033 case `/usr/bin/file conftest.$ac_objext` in
6049 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6050 s390*-*linux*|sparc*-*linux*)
6051 # Find out which ABI we are using.
6052 echo 'int i;' > conftest.$ac_ext
6053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6054 (eval $ac_compile) 2>&5
6056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6057 (exit $ac_status); }; then
6058 case `/usr/bin/file conftest.o` in
6061 x86_64-*kfreebsd*-gnu)
6062 LD="${LD-ld} -m elf_i386_fbsd
"
6065 LD="${LD-ld} -m elf_i386
"
6067 ppc64-*linux*|powerpc64-*linux*)
6068 LD="${LD-ld} -m elf32ppclinux
"
6071 LD="${LD-ld} -m elf_s390
"
6074 LD="${LD-ld} -m elf32_sparc
"
6081 x86_64-*kfreebsd*-gnu)
6082 LD="${LD-ld} -m elf_x86_64_fbsd
"
6085 LD="${LD-ld} -m elf_x86_64
"
6087 ppc*-*linux*|powerpc*-*linux*)
6088 LD="${LD-ld} -m elf64ppc
"
6091 LD="${LD-ld} -m elf64_s390
"
6094 LD="${LD-ld} -m elf64_sparc
"
6104 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6105 SAVE_CFLAGS="$CFLAGS"
6106 CFLAGS="$CFLAGS -belf"
6107 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6108 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
6109 if test "${lt_cv_cc_needs_belf+set}" = set; then
6110 echo $ECHO_N "(cached
) $ECHO_C" >&6
6113 ac_cpp='$CPP $CPPFLAGS'
6114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118 cat >conftest.$ac_ext <<_ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6133 rm -f conftest.$ac_objext conftest$ac_exeext
6134 if { (ac_try="$ac_link"
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_link") 2>conftest.er1
6142 grep -v '^ *+' conftest.er1 >conftest.err
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest$ac_exeext &&
6150 $as_test_x conftest$ac_exeext; then
6151 lt_cv_cc_needs_belf=yes
6153 echo "$as_me: failed program was
:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 lt_cv_cc_needs_belf=no
6159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6160 conftest$ac_exeext conftest.$ac_ext
6162 ac_cpp='$CPP $CPPFLAGS'
6163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6168 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6169 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6170 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6171 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6172 CFLAGS="$SAVE_CFLAGS"
6176 # Find out which ABI we are using.
6177 echo 'int i;' > conftest.$ac_ext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>&5
6181 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6182 (exit $ac_status); }; then
6183 case `/usr/bin/file conftest.o` in
6185 case $lt_cv_prog_gnu_ld in
6186 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6187 *) LD="${LD-ld} -64" ;;
6198 need_locks="$enable_libtool_lock"
6202 for ac_header in dlfcn.h
6204 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
6205 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6206 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
6207 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
6208 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6209 echo $ECHO_N "(cached
) $ECHO_C" >&6
6211 ac_res=`eval echo '${'$as_ac_Header'}'`
6212 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6213 echo "${ECHO_T}$ac_res" >&6; }
6215 # Is the header compilable?
6216 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
6217 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
6218 cat >conftest.$ac_ext <<_ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 $ac_includes_default
6225 #include <$ac_header>
6227 rm -f conftest.$ac_objext
6228 if { (ac_try="$ac_compile"
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_compile") 2>conftest.er1
6236 grep -v '^ *+' conftest.er1 >conftest.err
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6240 (exit $ac_status); } && {
6241 test -z "$ac_c_werror_flag" ||
6242 test ! -s conftest.err
6243 } && test -s conftest.$ac_objext; then
6244 ac_header_compiler=yes
6246 echo "$as_me: failed program was
:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6249 ac_header_compiler=no
6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
6254 echo "${ECHO_T}$ac_header_compiler" >&6; }
6256 # Is the header present?
6257 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
6258 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 #include <$ac_header>
6267 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6275 grep -v '^ *+' conftest.er1 >conftest.err
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6279 (exit $ac_status); } >/dev/null && {
6280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6283 ac_header_preproc=yes
6285 echo "$as_me: failed program was
:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_header_preproc=no
6291 rm -f conftest.err conftest.$ac_ext
6292 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
6293 echo "${ECHO_T}$ac_header_preproc" >&6; }
6295 # So? What about this header?
6296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6298 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
6299 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
6300 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
6301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
6302 ac_header_preproc=yes
6305 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
6306 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
6307 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
6308 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
6309 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
6310 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
6311 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
6312 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
6313 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
6314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
6315 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
6316 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
6318 ## -------------------------------------------------- ##
6319 ## Report this to courier-users@lists.sourceforge.net ##
6320 ## -------------------------------------------------- ##
6322 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
6325 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
6326 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
6327 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6328 echo $ECHO_N "(cached
) $ECHO_C" >&6
6330 eval "$as_ac_Header=\
$ac_header_preproc"
6332 ac_res=`eval echo '${'$as_ac_Header'}'`
6333 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6334 echo "${ECHO_T}$ac_res" >&6; }
6337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6338 cat >>confdefs.h <<_ACEOF
6339 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
6347 ac_cpp='$CXXCPP $CPPFLAGS'
6348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6351 if test -z "$CXX"; then
6352 if test -n "$CCC"; then
6355 if test -n "$ac_tool_prefix"; then
6356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6360 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6361 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6362 if test "${ac_cv_prog_CXX+set}" = set; then
6363 echo $ECHO_N "(cached
) $ECHO_C" >&6
6365 if test -n "$CXX"; then
6366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6376 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6386 if test -n "$CXX"; then
6387 { echo "$as_me:$LINENO: result
: $CXX" >&5
6388 echo "${ECHO_T}$CXX" >&6; }
6390 { echo "$as_me:$LINENO: result
: no
" >&5
6391 echo "${ECHO_T}no
" >&6; }
6395 test -n "$CXX" && break
6398 if test -z "$CXX"; then
6400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6402 # Extract the first word of "$ac_prog", so it can be a program name with args.
6403 set dummy $ac_prog; ac_word=$2
6404 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6405 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6407 echo $ECHO_N "(cached
) $ECHO_C" >&6
6409 if test -n "$ac_ct_CXX"; then
6410 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_ac_ct_CXX="$ac_prog"
6420 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6430 if test -n "$ac_ct_CXX"; then
6431 { echo "$as_me:$LINENO: result
: $ac_ct_CXX" >&5
6432 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6434 { echo "$as_me:$LINENO: result
: no
" >&5
6435 echo "${ECHO_T}no
" >&6; }
6439 test -n "$ac_ct_CXX" && break
6442 if test "x
$ac_ct_CXX" = x; then
6445 case $cross_compiling:$ac_tool_warned in
6447 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6448 whose name does not start with the
host triplet. If you think this
6449 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6450 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6451 whose name does not start with the
host triplet. If you think this
6452 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6453 ac_tool_warned=yes ;;
6461 # Provide some information about the compiler.
6462 echo "$as_me:$LINENO: checking
for C
++ compiler version
" >&5
6463 ac_compiler=`set X $ac_compile; echo $2`
6464 { (ac_try="$ac_compiler --version >&5"
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compiler --version >&5") 2>&5
6472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6473 (exit $ac_status); }
6474 { (ac_try="$ac_compiler -v >&5"
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6480 (eval "$ac_compiler -v >&5") 2>&5
6482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6483 (exit $ac_status); }
6484 { (ac_try="$ac_compiler -V >&5"
6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487 *) ac_try_echo=$ac_try;;
6489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6490 (eval "$ac_compiler -V >&5") 2>&5
6492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6493 (exit $ac_status); }
6495 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
6496 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
6497 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6498 echo $ECHO_N "(cached
) $ECHO_C" >&6
6500 cat >conftest.$ac_ext <<_ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6527 grep -v '^ *+' conftest.er1 >conftest.err
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_cxx_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest.$ac_objext; then
6537 echo "$as_me: failed program was
:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6547 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
6548 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6549 GXX=`test $ac_compiler_gnu = yes && echo yes`
6550 ac_test_CXXFLAGS=${CXXFLAGS+set}
6551 ac_save_CXXFLAGS=$CXXFLAGS
6552 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
6553 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
6554 if test "${ac_cv_prog_cxx_g+set}" = set; then
6555 echo $ECHO_N "(cached
) $ECHO_C" >&6
6557 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6558 ac_cxx_werror_flag=yes
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6576 rm -f conftest.$ac_objext
6577 if { (ac_try="$ac_compile"
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_compile") 2>conftest.er1
6585 grep -v '^ *+' conftest.er1 >conftest.err
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_cxx_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest.$ac_objext; then
6593 ac_cv_prog_cxx_g=yes
6595 echo "$as_me: failed program was
:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6614 rm -f conftest.$ac_objext
6615 if { (ac_try="$ac_compile"
6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618 *) ac_try_echo=$ac_try;;
6620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_compile") 2>conftest.er1
6623 grep -v '^ *+' conftest.er1 >conftest.err
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6627 (exit $ac_status); } && {
6628 test -z "$ac_cxx_werror_flag" ||
6629 test ! -s conftest.err
6630 } && test -s conftest.$ac_objext; then
6633 echo "$as_me: failed program was
:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6636 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6638 cat >conftest.$ac_ext <<_ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_compile") 2>conftest.er1
6662 grep -v '^ *+' conftest.er1 >conftest.err
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6666 (exit $ac_status); } && {
6667 test -z "$ac_cxx_werror_flag" ||
6668 test ! -s conftest.err
6669 } && test -s conftest.$ac_objext; then
6670 ac_cv_prog_cxx_g=yes
6672 echo "$as_me: failed program was
:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6687 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
6688 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6689 if test "$ac_test_CXXFLAGS" = set; then
6690 CXXFLAGS=$ac_save_CXXFLAGS
6691 elif test $ac_cv_prog_cxx_g = yes; then
6692 if test "$GXX" = yes; then
6698 if test "$GXX" = yes; then
6705 ac_cpp='$CXXCPP $CPPFLAGS'
6706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6710 depcc="$CXX" am_compiler_list=
6712 { echo "$as_me:$LINENO: checking dependency style of
$depcc" >&5
6713 echo $ECHO_N "checking dependency style of
$depcc...
$ECHO_C" >&6; }
6714 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6715 echo $ECHO_N "(cached
) $ECHO_C" >&6
6717 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6718 # We make a subdir and do the tests there. Otherwise we can end up
6719 # making bogus files that we don't know about and never remove. For
6720 # instance it was reported that on HP-UX the gcc test will end up
6721 # making a dummy file named `D' -- because `-MD' means `put the output
6724 # Copy depcomp to subdir because otherwise we won't find it if we're
6725 # using a relative directory.
6726 cp "$am_depcomp" conftest.dir
6728 # We will build objects and dependencies in a subdirectory because
6729 # it helps to detect inapplicable dependency modes. For instance
6730 # both Tru64's cc and ICC support -MD to output dependencies as a
6731 # side effect of compilation, but ICC will put the dependencies in
6732 # the current directory while Tru64 will put them in the object
6736 am_cv_CXX_dependencies_compiler_type=none
6737 if test "$am_compiler_list" = ""; then
6738 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6740 for depmode in $am_compiler_list; do
6741 # Setup a source with many dependencies, because some compilers
6742 # like to wrap large dependency lists on column 80 (with \), and
6743 # we should not choose a depcomp mode which is confused by this.
6745 # We need to recreate these files for each test, as the compiler may
6746 # overwrite some of them when testing with obscure command lines.
6747 # This happens at least with the AIX C compiler.
6749 for i in 1 2 3 4 5 6; do
6750 echo '#include "conftst
'$i'.h
"' >> sub/conftest.c
6751 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6752 # Solaris 8's {/usr,}/bin/sh.
6753 touch sub/conftst$i.h
6755 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6759 # after this tag, mechanisms are not by side-effect, so they'll
6760 # only be used when explicitly requested
6761 if test "x
$enable_dependency_tracking" = xyes; then
6769 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
6770 # mode. It turns out that the SunPro C++ compiler does not properly
6771 # handle `-M -o', and we need to detect this.
6772 if depmode=$depmode \
6773 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6775 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6776 >/dev/null 2>conftest.err &&
6777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6779 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6781 # icc doesn't choke on unknown options, it will just issue warnings
6782 # or remarks (even with -Werror). So we grep stderr for any message
6783 # that says an option was ignored or not supported.
6784 # When given -MP, icc 7.0 and 7.1 complain thusly:
6785 # icc: Command line warning: ignoring option '-M'; no argument required
6786 # The diagnosis changed in icc 8.0:
6787 # icc: Command line remark: option '-MP' not supported
6788 if (grep 'ignoring option' conftest.err ||
6789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6790 am_cv_CXX_dependencies_compiler_type=$depmode
6799 am_cv_CXX_dependencies_compiler_type=none
6803 { echo "$as_me:$LINENO: result
: $am_cv_CXX_dependencies_compiler_type" >&5
6804 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6805 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6808 test "x
$enable_dependency_tracking" != xno \
6809 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6810 am__fastdepCXX_TRUE=
6811 am__fastdepCXX_FALSE='#'
6813 am__fastdepCXX_TRUE='#'
6814 am__fastdepCXX_FALSE=
6820 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
6821 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
6822 (test "X
$CXX" != "Xg
++"))) ; then
6824 ac_cpp='$CXXCPP $CPPFLAGS'
6825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6828 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
6829 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
6830 if test -z "$CXXCPP"; then
6831 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6832 echo $ECHO_N "(cached
) $ECHO_C" >&6
6834 # Double quotes because CXXCPP needs to be expanded
6835 for CXXCPP in "$CXX -E" "/lib
/cpp
"
6838 for ac_cxx_preproc_warn_flag in '' yes
6840 # Use a header file that comes with gcc, so configuring glibc
6841 # with a fresh cross-compiler works.
6842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6843 # <limits.h> exists even on freestanding compilers.
6844 # On the NeXT, cc -E runs the code through the compiler's parser,
6845 # not just through cpp. "Syntax error
" is here to catch this case.
6846 cat >conftest.$ac_ext <<_ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6853 # include <limits.h>
6855 # include <assert.h>
6859 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862 *) ac_try_echo=$ac_try;;
6864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6865 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6867 grep -v '^ *+' conftest.er1 >conftest.err
6869 cat conftest.err >&5
6870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6871 (exit $ac_status); } >/dev/null && {
6872 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6873 test ! -s conftest.err
6877 echo "$as_me: failed program was
:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 # Broken: fails on valid input.
6884 rm -f conftest.err conftest.$ac_ext
6886 # OK, works on sane cases. Now check whether nonexistent headers
6887 # can be detected and how.
6888 cat >conftest.$ac_ext <<_ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 #include <ac_nonexistent.h>
6896 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6904 grep -v '^ *+' conftest.er1 >conftest.err
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6908 (exit $ac_status); } >/dev/null && {
6909 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6910 test ! -s conftest.err
6912 # Broken: success on invalid input.
6915 echo "$as_me: failed program was
:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 # Passes both tests.
6923 rm -f conftest.err conftest.$ac_ext
6926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6927 rm -f conftest.err conftest.$ac_ext
6928 if $ac_preproc_ok; then
6933 ac_cv_prog_CXXCPP=$CXXCPP
6936 CXXCPP=$ac_cv_prog_CXXCPP
6938 ac_cv_prog_CXXCPP=$CXXCPP
6940 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
6941 echo "${ECHO_T}$CXXCPP" >&6; }
6943 for ac_cxx_preproc_warn_flag in '' yes
6945 # Use a header file that comes with gcc, so configuring glibc
6946 # with a fresh cross-compiler works.
6947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6948 # <limits.h> exists even on freestanding compilers.
6949 # On the NeXT, cc -E runs the code through the compiler's parser,
6950 # not just through cpp. "Syntax error
" is here to catch this case.
6951 cat >conftest.$ac_ext <<_ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6958 # include <limits.h>
6960 # include <assert.h>
6964 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6970 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6972 grep -v '^ *+' conftest.er1 >conftest.err
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6976 (exit $ac_status); } >/dev/null && {
6977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6978 test ! -s conftest.err
6982 echo "$as_me: failed program was
:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 # Broken: fails on valid input.
6989 rm -f conftest.err conftest.$ac_ext
6991 # OK, works on sane cases. Now check whether nonexistent headers
6992 # can be detected and how.
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 #include <ac_nonexistent.h>
7001 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004 *) ac_try_echo=$ac_try;;
7006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7007 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7009 grep -v '^ *+' conftest.er1 >conftest.err
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7013 (exit $ac_status); } >/dev/null && {
7014 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7015 test ! -s conftest.err
7017 # Broken: success on invalid input.
7020 echo "$as_me: failed program was
:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7023 # Passes both tests.
7028 rm -f conftest.err conftest.$ac_ext
7031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7032 rm -f conftest.err conftest.$ac_ext
7033 if $ac_preproc_ok; then
7036 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
7037 See \
`config.log' for more details." >&5
7038 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7039 See \`config.log
' for more details." >&2;}
7040 { (exit 1); exit 1; }; }
7044 ac_cpp='$CXXCPP $CPPFLAGS'
7045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
7046 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7053 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
7054 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7056 if test -n "$ac_tool_prefix"; then
7057 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
7059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_prog_F77+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 if test -n "$F77"; then
7067 ac_cv_prog_F77="$F77" # Let the user override the test.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 if test -n "$F77"; then
7088 { echo "$as_me:$LINENO: result: $F77" >&5
7089 echo "${ECHO_T}$F77" >&6; }
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7096 test -n "$F77" && break
7099 if test -z "$F77"; then
7101 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
7103 # Extract the first word of "$ac_prog", so it can be a program name with args.
7104 set dummy $ac_prog; 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_F77+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 if test -n "$ac_ct_F77"; then
7111 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # 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_F77="$ac_prog"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7131 if test -n "$ac_ct_F77"; then
7132 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7133 echo "${ECHO_T}$ac_ct_F77" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 test -n "$ac_ct_F77" && break
7143 if test "x$ac_ct_F77" = x; then
7146 case $cross_compiling:$ac_tool_warned in
7148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7149 whose name does not start with the host triplet. If you think this
7150 configuration is useful to you, please write to autoconf@gnu.org." >&5
7151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7152 whose name does not start with the host triplet. If you think this
7153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7154 ac_tool_warned=yes ;;
7161 # Provide some information about the compiler.
7162 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7163 ac_compiler=`set X $ac_compile; echo $2`
7164 { (ac_try="$ac_compiler --version >&5"
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_compiler --version >&5") 2>&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }
7174 { (ac_try="$ac_compiler -v >&5"
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_compiler -v >&5") 2>&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }
7184 { (ac_try="$ac_compiler -V >&5"
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_compiler -V >&5") 2>&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }
7196 # If we don't use
`.F' as extension, the preprocessor is not run on the
7197 # input file. (Note that this only needs to work for GNU compilers.)
7200 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7201 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7202 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cat >conftest.$ac_ext <<_ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (ac_try="$ac_compile"
7216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7217 *) ac_try_echo
=$ac_try;;
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_compile") 2>conftest.er1
7222 grep -v '^ *+' conftest.er1
>conftest.err
7224 cat conftest.err
>&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && {
7227 test -z "$ac_f77_werror_flag" ||
7228 test ! -s conftest.err
7229 } && test -s conftest.
$ac_objext; then
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.
$ac_ext >&5
7238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7239 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
7242 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7243 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7245 ac_test_FFLAGS
=${FFLAGS+set}
7246 ac_save_FFLAGS
=$FFLAGS
7248 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7249 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7250 if test "${ac_cv_prog_f77_g+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 cat >conftest.
$ac_ext <<_ACEOF
7259 rm -f conftest.
$ac_objext
7260 if { (ac_try
="$ac_compile"
7262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7268 grep -v '^ *+' conftest.er1 >conftest.err
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_f77_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 ac_cv_prog_f77_g=yes
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7288 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7289 if test "$ac_test_FFLAGS" = set; then
7290 FFLAGS=$ac_save_FFLAGS
7291 elif test $ac_cv_prog_f77_g = yes; then
7292 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7298 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7305 G77=`test $ac_compiler_gnu = yes && echo yes`
7307 ac_cpp='$CPP $CPPFLAGS'
7308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7316 # find the maximum length of command line arguments
7317 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7318 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7319 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 # On DJGPP, this test can blow up pretty badly due to problems in libc
7328 # (any single argument exceeding 2000 bytes causes a buffer overrun
7329 # during glob expansion). Even if it were fixed, the result of this
7330 # check would be larger than it should be.
7331 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7335 # Under GNU Hurd, this test is not required because there is
7336 # no limit to the length of command line arguments.
7337 # Libtool will interpret -1 as no limit whatsoever
7338 lt_cv_sys_max_cmd_len=-1;
7342 # On Win9x/ME, this test blows up -- it succeeds, but takes
7343 # about 5 minutes as the teststring grows exponentially.
7344 # Worse, since 9x/ME are not pre-emptively multitasking,
7345 # you end up with a "frozen" computer, even though with patience
7346 # the test eventually succeeds (with a max line length of 256k).
7347 # Instead, let's just punt: use the minimum linelength reported by
7348 # all of the supported platforms: 8192 (on NT/2K/XP).
7349 lt_cv_sys_max_cmd_len=8192;
7353 # On AmigaOS with pdksh, this test takes hours, literally.
7354 # So we just punt and use a minimum line length of 8192.
7355 lt_cv_sys_max_cmd_len=8192;
7358 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7359 # This has been around since 386BSD, at least. Likely further.
7360 if test -x /sbin/sysctl; then
7361 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
7362 elif test -x /usr/sbin/sysctl; then
7363 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
7365 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7367 # And add a safety zone
7368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
7369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
7373 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7374 lt_cv_sys_max_cmd_len=196608
7378 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7379 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7380 # nice to cause kernel panics so lets avoid the loop below.
7381 # First set a reasonable default.
7382 lt_cv_sys_max_cmd_len=16384
7384 if test -x /sbin/sysconfig; then
7385 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
7386 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7391 lt_cv_sys_max_cmd_len=102400
7393 sysv5* | sco5v6* | sysv4.2uw2*)
7394 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
7395 if test -n "$kargmax"; then
7396 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
7398 lt_cv_sys_max_cmd_len=32768
7402 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX
) 2> /dev
/null
`
7403 if test -n "$lt_cv_sys_max_cmd_len"; then
7404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
7405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
7407 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7408 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
7409 = "XX$teststring") >/dev/null 2>&1 &&
7410 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7411 lt_cv_sys_max_cmd_len=$new_result &&
7412 test $i != 17 # 1/2 MB should be enough
7415 teststring=$teststring$teststring
7418 # Add a significant safety factor because C++ compilers can tack on massive
7419 # amounts of additional arguments before passing them to the linker.
7420 # It appears as though 1/2 is a usable value.
7421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
7428 if test -n $lt_cv_sys_max_cmd_len ; then
7429 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7430 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7432 { echo "$as_me:$LINENO: result: none" >&5
7433 echo "${ECHO_T}none" >&6; }
7440 # Check for command to grab the raw symbol name followed by C symbol from nm.
7441 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7442 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7443 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 # These are sane defaults that work on at least a few old systems.
7448 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7450 # Character class describing NM global symbol codes.
7451 symcode='[BCDEGRST]'
7453 # Regexp to match symbols that can be accessed directly from C.
7454 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7456 # Transform an extracted symbol line into a proper C declaration
7457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7459 # Transform an extracted symbol line into symbol name and symbol address
7460 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'"
7462 # Define system-specific variables.
7467 cygwin* | mingw* | pw32*)
7468 symcode='[ABCDGISTW]'
7470 hpux*) # Its linker distinguishes data from code symbols
7471 if test "$host_cpu" = ia64; then
7472 symcode='[ABCDEGRST]'
7474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7475 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'"
7477 linux* | k*bsd*-gnu)
7478 if test "$host_cpu" = ia64; then
7479 symcode='[ABCDGIRSTW]'
7480 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7481 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'"
7485 symcode='[BCDEGRST]'
7488 symcode='[BCDEGQRST]'
7499 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7507 # Handle CRLF in mingw tool chain
7511 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
7515 # If we're using GNU nm, then use its standard symbol codes.
7516 case `$NM -V 2>&1` in
7517 *GNU* | *'with BFD'*)
7518 symcode='[ABCDGIRSTW]' ;;
7521 # Try without a prefix undercore, then with it.
7522 for ac_symprfx in "" "_"; do
7524 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7525 symxfrm="\\1 $ac_symprfx\\2 \\2"
7527 # Write the raw and C identifiers.
7528 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7530 # Check to see that the pipe works correctly.
7534 cat > conftest.$ac_ext <<EOF
7539 void nm_test_func(){}
7543 int main(){nm_test_var='a';nm_test_func();return(0);}
7546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547 (eval $ac_compile) 2>&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; then
7551 # Now try to grab the symbols.
7553 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } && test -s "$nlist"; then
7558 # Try sorting and uniquifying the output.
7559 if sort "$nlist" | uniq > "$nlist"T; then
7560 mv -f "$nlist"T "$nlist"
7565 # Make sure that we snagged all the symbols we need.
7566 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7567 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7568 cat <<EOF > conftest.$ac_ext
7574 # Now generate the symbol file.
7575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7577 cat <<EOF >> conftest.$ac_ext
7578 #if defined (__STDC__) && __STDC__
7579 # define lt_ptr_t void *
7581 # define lt_ptr_t char *
7585 /* The mapping between symbol names and symbols. */
7590 lt_preloaded_symbols[] =
7593 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7594 cat <<\EOF >> conftest.$ac_ext
7602 # Now try linking the two files.
7603 mv conftest.$ac_objext conftstm.$ac_objext
7604 lt_save_LIBS="$LIBS"
7605 lt_save_CFLAGS="$CFLAGS"
7606 LIBS="conftstm.$ac_objext"
7607 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609 (eval $ac_link) 2>&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7615 LIBS="$lt_save_LIBS"
7616 CFLAGS="$lt_save_CFLAGS"
7618 echo "cannot find nm_test_func in $nlist" >&5
7621 echo "cannot find nm_test_var in $nlist" >&5
7624 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7627 echo "$progname: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7630 rm -f conftest* conftst*
7632 # Do not use the global_symbol_pipe unless it works.
7633 if test "$pipe_works" = yes; then
7636 lt_cv_sys_global_symbol_pipe=
7642 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7643 lt_cv_sys_global_symbol_to_cdecl=
7645 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7646 { echo "$as_me:$LINENO: result: failed" >&5
7647 echo "${ECHO_T}failed" >&6; }
7649 { echo "$as_me:$LINENO: result: ok" >&5
7650 echo "${ECHO_T}ok" >&6; }
7653 { echo "$as_me:$LINENO: checking for objdir" >&5
7654 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7655 if test "${lt_cv_objdir+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 rm -f .libs 2>/dev/null
7659 mkdir .libs 2>/dev/null
7660 if test -d .libs; then
7663 # MS-DOS does not allow filenames that begin with a dot.
7666 rmdir .libs 2>/dev/null
7668 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7669 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7670 objdir=$lt_cv_objdir
7678 # AIX sometimes has problems with the GCC collect2 program. For some
7679 # reason, if we set the COLLECT_NAMES environment variable, the problems
7680 # vanish in a puff of smoke.
7681 if test "X${COLLECT_NAMES+set}" != Xset; then
7683 export COLLECT_NAMES
7688 # Sed substitution that helps us do robust quoting. It backslashifies
7689 # metacharacters that are still active within double-quoted strings.
7690 Xsed='sed -e 1s/^X//'
7691 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
7693 # Same as above, but do not quote variable references.
7694 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
7696 # Sed substitution to delay expansion of an escaped shell variable in a
7697 # double_quote_subst'ed string.
7698 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7700 # Sed substitution to avoid accidental globbing in evaled expressions
7701 no_glob_subst='s/\*/\\\*/g'
7707 default_ofile=libtool
7708 can_build_shared=yes
7710 # All known linkers require a `.a' archive for static linking (except MSVC,
7711 # which needs '.lib').
7713 ltmain="$ac_aux_dir/ltmain.sh
"
7714 ofile="$default_ofile"
7715 with_gnu_ld="$lt_cv_prog_gnu_ld"
7717 if test -n "$ac_tool_prefix"; then
7718 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7719 set dummy ${ac_tool_prefix}ar; ac_word=$2
7720 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7721 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7722 if test "${ac_cv_prog_AR+set}" = set; then
7723 echo $ECHO_N "(cached
) $ECHO_C" >&6
7725 if test -n "$AR"; then
7726 ac_cv_prog_AR="$AR" # Let the user override the test.
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_AR="${ac_tool_prefix}ar"
7736 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7746 if test -n "$AR"; then
7747 { echo "$as_me:$LINENO: result
: $AR" >&5
7748 echo "${ECHO_T}$AR" >&6; }
7750 { echo "$as_me:$LINENO: result
: no
" >&5
7751 echo "${ECHO_T}no
" >&6; }
7756 if test -z "$ac_cv_prog_AR"; then
7758 # Extract the first word of "ar", so it can be a program name with args.
7759 set dummy ar; ac_word=$2
7760 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7761 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7762 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7763 echo $ECHO_N "(cached
) $ECHO_C" >&6
7765 if test -n "$ac_ct_AR"; then
7766 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_ac_ct_AR="ar"
7776 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7785 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7786 if test -n "$ac_ct_AR"; then
7787 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
7788 echo "${ECHO_T}$ac_ct_AR" >&6; }
7790 { echo "$as_me:$LINENO: result
: no
" >&5
7791 echo "${ECHO_T}no
" >&6; }
7794 if test "x
$ac_ct_AR" = x; then
7797 case $cross_compiling:$ac_tool_warned in
7799 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
7800 whose name does not start with the
host triplet. If you think this
7801 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
7802 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
7803 whose name does not start with the
host triplet. If you think this
7804 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
7805 ac_tool_warned=yes ;;
7813 if test -n "$ac_tool_prefix"; then
7814 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7816 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7817 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7818 if test "${ac_cv_prog_RANLIB+set}" = set; then
7819 echo $ECHO_N "(cached
) $ECHO_C" >&6
7821 if test -n "$RANLIB"; then
7822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7832 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7841 RANLIB=$ac_cv_prog_RANLIB
7842 if test -n "$RANLIB"; then
7843 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
7844 echo "${ECHO_T}$RANLIB" >&6; }
7846 { echo "$as_me:$LINENO: result
: no
" >&5
7847 echo "${ECHO_T}no
" >&6; }
7852 if test -z "$ac_cv_prog_RANLIB"; then
7853 ac_ct_RANLIB=$RANLIB
7854 # Extract the first word of "ranlib
", so it can be a program name with args.
7855 set dummy ranlib; ac_word=$2
7856 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7857 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7859 echo $ECHO_N "(cached
) $ECHO_C" >&6
7861 if test -n "$ac_ct_RANLIB"; then
7862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7871 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7872 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7882 if test -n "$ac_ct_RANLIB"; then
7883 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
7884 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7886 { echo "$as_me:$LINENO: result
: no
" >&5
7887 echo "${ECHO_T}no
" >&6; }
7890 if test "x
$ac_ct_RANLIB" = x; then
7893 case $cross_compiling:$ac_tool_warned in
7895 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
7896 whose name does not start with the
host triplet. If you think this
7897 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
7898 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
7899 whose name does not start with the
host triplet. If you think this
7900 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
7901 ac_tool_warned=yes ;;
7903 RANLIB=$ac_ct_RANLIB
7906 RANLIB="$ac_cv_prog_RANLIB"
7909 if test -n "$ac_tool_prefix"; then
7910 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}strip; ac_word=$2
7912 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7913 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7914 if test "${ac_cv_prog_STRIP+set}" = set; then
7915 echo $ECHO_N "(cached
) $ECHO_C" >&6
7917 if test -n "$STRIP"; then
7918 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7928 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7937 STRIP=$ac_cv_prog_STRIP
7938 if test -n "$STRIP"; then
7939 { echo "$as_me:$LINENO: result
: $STRIP" >&5
7940 echo "${ECHO_T}$STRIP" >&6; }
7942 { echo "$as_me:$LINENO: result
: no
" >&5
7943 echo "${ECHO_T}no
" >&6; }
7948 if test -z "$ac_cv_prog_STRIP"; then
7950 # Extract the first word of "strip
", so it can be a program name with args.
7951 set dummy strip; ac_word=$2
7952 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7953 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7954 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7955 echo $ECHO_N "(cached
) $ECHO_C" >&6
7957 if test -n "$ac_ct_STRIP"; then
7958 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_prog_ac_ct_STRIP="strip
"
7968 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7977 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7978 if test -n "$ac_ct_STRIP"; then
7979 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
7980 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7982 { echo "$as_me:$LINENO: result
: no
" >&5
7983 echo "${ECHO_T}no
" >&6; }
7986 if test "x
$ac_ct_STRIP" = x; then
7989 case $cross_compiling:$ac_tool_warned in
7991 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
7992 whose name does not start with the
host triplet. If you think this
7993 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
7994 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
7995 whose name does not start with the
host triplet. If you think this
7996 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
7997 ac_tool_warned=yes ;;
8002 STRIP="$ac_cv_prog_STRIP"
8007 old_CFLAGS="$CFLAGS"
8009 # Set sane defaults for various variables
8010 test -z "$AR" && AR=ar
8011 test -z "$AR_FLAGS" && AR_FLAGS=cru
8012 test -z "$AS" && AS=as
8013 test -z "$CC" && CC=cc
8014 test -z "$LTCC" && LTCC=$CC
8015 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8016 test -z "$DLLTOOL" && DLLTOOL=dlltool
8017 test -z "$LD" && LD=ld
8018 test -z "$LN_S" && LN_S="ln -s"
8019 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8020 test -z "$NM" && NM=nm
8021 test -z "$SED" && SED=sed
8022 test -z "$OBJDUMP" && OBJDUMP=objdump
8023 test -z "$RANLIB" && RANLIB=:
8024 test -z "$STRIP" && STRIP=:
8025 test -z "$ac_objext" && ac_objext=o
8027 # Determine commands to create old-style static archives.
8028 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8029 old_postinstall_cmds='chmod 644 $oldlib'
8030 old_postuninstall_cmds=
8032 if test -n "$RANLIB"; then
8035 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
8038 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
8041 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
8044 for cc_temp in $compiler""; do
8046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8052 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
8055 # Only perform the check for file, if the check method requires it
8056 case $deplibs_check_method in
8058 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8059 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
8060 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
8061 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8062 echo $ECHO_N "(cached
) $ECHO_C" >&6
8066 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8069 lt_save_MAGIC_CMD="$MAGIC_CMD"
8070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8071 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8072 for ac_dir in $ac_dummy; do
8074 test -z "$ac_dir" && ac_dir=.
8075 if test -f $ac_dir/${ac_tool_prefix}file; then
8076 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8077 if test -n "$file_magic_test_file"; then
8078 case $deplibs_check_method in
8080 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8082 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8083 $EGREP "$file_magic_regex" > /dev/null; then
8088 *** Warning: the command libtool uses to detect shared libraries,
8089 *** $file_magic_cmd, produces output that libtool cannot recognize.
8090 *** The result is that libtool may fail to recognize shared libraries
8091 *** as such. This will affect the creation of libtool libraries that
8092 *** depend on shared libraries, but programs linked with such libtool
8093 *** libraries will work regardless of this problem. Nevertheless, you
8094 *** may want to report the problem to your system manager and/or to
8095 *** bug-libtool@gnu.org
8105 MAGIC_CMD="$lt_save_MAGIC_CMD"
8110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8111 if test -n "$MAGIC_CMD"; then
8112 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
8113 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8115 { echo "$as_me:$LINENO: result
: no
" >&5
8116 echo "${ECHO_T}no
" >&6; }
8119 if test -z "$lt_cv_path_MAGIC_CMD"; then
8120 if test -n "$ac_tool_prefix"; then
8121 { echo "$as_me:$LINENO: checking
for file" >&5
8122 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
8123 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8124 echo $ECHO_N "(cached
) $ECHO_C" >&6
8128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8131 lt_save_MAGIC_CMD="$MAGIC_CMD"
8132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8133 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8134 for ac_dir in $ac_dummy; do
8136 test -z "$ac_dir" && ac_dir=.
8137 if test -f $ac_dir/file; then
8138 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8139 if test -n "$file_magic_test_file"; then
8140 case $deplibs_check_method in
8142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8145 $EGREP "$file_magic_regex" > /dev/null; then
8150 *** Warning: the command libtool uses to detect shared libraries,
8151 *** $file_magic_cmd, produces output that libtool cannot recognize.
8152 *** The result is that libtool may fail to recognize shared libraries
8153 *** as such. This will affect the creation of libtool libraries that
8154 *** depend on shared libraries, but programs linked with such libtool
8155 *** libraries will work regardless of this problem. Nevertheless, you
8156 *** may want to report the problem to your system manager and/or to
8157 *** bug-libtool@gnu.org
8167 MAGIC_CMD="$lt_save_MAGIC_CMD"
8172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8173 if test -n "$MAGIC_CMD"; then
8174 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
8175 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8177 { echo "$as_me:$LINENO: result
: no
" >&5
8178 echo "${ECHO_T}no
" >&6; }
8193 # Check whether --enable-libtool-lock was given.
8194 if test "${enable_libtool_lock+set}" = set; then
8195 enableval=$enable_libtool_lock;
8198 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
8201 # Check whether --with-pic was given.
8202 if test "${with_pic+set}" = set; then
8203 withval=$with_pic; pic_mode="$withval"
8208 test -z "$pic_mode" && pic_mode=default
8210 # Use C for the default configuration in the libtool script
8214 ac_cpp='$CPP $CPPFLAGS'
8215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8220 # Source file extension for C test sources.
8223 # Object file extension for compiled C test sources.
8227 # Code to be used in simple compile tests
8228 lt_simple_compile_test_code="int some_variable
= 0;"
8230 # Code to be used in simple link tests
8231 lt_simple_link_test_code='int main(){return(0);}'
8234 # If no C compiler was specified, use CC.
8237 # If no C compiler flags were specified, use CFLAGS.
8238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8240 # Allow CC to be a program name with arguments.
8244 # save warnings/boilerplate of simple test code
8245 ac_outfile=conftest.$ac_objext
8246 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8247 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8248 _lt_compiler_boilerplate=`cat conftest.err`
8251 ac_outfile=conftest.$ac_objext
8252 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8253 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8254 _lt_linker_boilerplate=`cat conftest.err`
8259 lt_prog_compiler_no_builtin_flag=
8261 if test "$GCC" = yes; then
8262 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8265 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8266 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
8267 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8268 echo $ECHO_N "(cached
) $ECHO_C" >&6
8270 lt_cv_prog_compiler_rtti_exceptions=no
8271 ac_outfile=conftest.$ac_objext
8272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8273 lt_compiler_flag="-fno-rtti -fno-exceptions"
8274 # Insert the option either (1) after the last *FLAGS variable, or
8275 # (2) before a word containing "conftest.
", or (3) at the end.
8276 # Note that $ac_compile itself does not contain backslashes and begins
8277 # with a dollar sign (not a hyphen), so the echo should work correctly.
8278 # The option is referenced via a variable to avoid confusing sed.
8279 lt_compile=`echo "$ac_compile" | $SED \
8280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8282 -e 's:$: $lt_compiler_flag:'`
8283 (eval echo "\"\
$as_me:8283: $lt_compile\"" >&5)
8284 (eval "$lt_compile" 2>conftest.err)
8286 cat conftest.err >&5
8287 echo "$as_me:8287: \$?
= $ac_status" >&5
8288 if (exit $ac_status) && test -s "$ac_outfile"; then
8289 # The compiler can only warn and ignore the option if not recognized
8290 # So say no if there are warnings other than the usual output.
8291 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8293 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8294 lt_cv_prog_compiler_rtti_exceptions=yes
8300 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8301 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8303 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8304 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8311 lt_prog_compiler_wl=
8312 lt_prog_compiler_pic=
8313 lt_prog_compiler_static=
8315 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
8316 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
8318 if test "$GCC" = yes; then
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_static='-static'
8324 # All AIX code is PIC.
8325 if test "$host_cpu" = ia64; then
8326 # AIX 5 now supports IA64 processor
8327 lt_prog_compiler_static='-Bstatic'
8332 # FIXME: we need at least 68020 code to build shared libraries, but
8333 # adding the `-m68020' flag to GCC prevents building anything better,
8335 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8338 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8339 # PIC is the default for these OSes.
8342 mingw* | cygwin* | pw32* | os2*)
8343 # This hack is so that the source file can tell whether it is being
8344 # built for inclusion in a dll (and should export symbols for example).
8345 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8346 # (--disable-auto-import) libraries
8347 lt_prog_compiler_pic='-DDLL_EXPORT'
8350 darwin* | rhapsody*)
8351 # PIC is the default on this platform
8352 # Common symbols not allowed in MH_DYLIB files
8353 lt_prog_compiler_pic='-fno-common'
8357 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8358 # Instead, we relocate shared libraries at runtime.
8362 # Just because we use GCC doesn't mean we suddenly get shared libraries
8363 # on systems that don't support them.
8364 lt_prog_compiler_can_build_shared=no
8369 if test -d /usr/nec; then
8370 lt_prog_compiler_pic=-Kconform_pic
8375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8382 lt_prog_compiler_pic='-fPIC'
8388 lt_prog_compiler_pic='-fPIC'
8392 # PORTME Check for flag to pass linker flags through the system compiler.
8395 lt_prog_compiler_wl='-Wl,'
8396 if test "$host_cpu" = ia64; then
8397 # AIX 5 now supports IA64 processor
8398 lt_prog_compiler_static='-Bstatic'
8400 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8404 # PIC is the default on this platform
8405 # Common symbols not allowed in MH_DYLIB files
8406 case $cc_basename in
8408 lt_prog_compiler_pic='-qnocommon'
8409 lt_prog_compiler_wl='-Wl,'
8414 mingw* | cygwin* | pw32* | os2*)
8415 # This hack is so that the source file can tell whether it is being
8416 # built for inclusion in a dll (and should export symbols for example).
8417 lt_prog_compiler_pic='-DDLL_EXPORT'
8420 hpux9* | hpux10* | hpux11*)
8421 lt_prog_compiler_wl='-Wl,'
8422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8429 lt_prog_compiler_pic='+Z'
8432 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8433 lt_prog_compiler_static='${wl}-a ${wl}archive'
8436 irix5* | irix6* | nonstopux*)
8437 lt_prog_compiler_wl='-Wl,'
8438 # PIC (with -KPIC) is the default.
8439 lt_prog_compiler_static='-non_shared'
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8447 linux* | k*bsd*-gnu)
8448 case $cc_basename in
8450 lt_prog_compiler_wl='-Wl,'
8451 lt_prog_compiler_pic='-KPIC'
8452 lt_prog_compiler_static='-static'
8454 pgcc* | pgf77* | pgf90* | pgf95*)
8455 # Portland Group compilers (*not* the Pentium gcc compiler,
8456 # which looks to be a dead project)
8457 lt_prog_compiler_wl='-Wl,'
8458 lt_prog_compiler_pic='-fpic'
8459 lt_prog_compiler_static='-Bstatic'
8462 lt_prog_compiler_wl='-Wl,'
8463 # All Alpha code is PIC.
8464 lt_prog_compiler_static='-non_shared'
8467 case `$CC -V 2>&1 | sed 5q` in
8470 lt_prog_compiler_pic='-KPIC'
8471 lt_prog_compiler_static='-Bstatic'
8472 lt_prog_compiler_wl='-Wl,'
8475 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8476 lt_prog_compiler_pic='-KPIC'
8477 lt_prog_compiler_static='-Bstatic'
8478 lt_prog_compiler_wl=''
8485 osf3* | osf4* | osf5*)
8486 lt_prog_compiler_wl='-Wl,'
8487 # All OSF/1 code is PIC.
8488 lt_prog_compiler_static='-non_shared'
8492 lt_prog_compiler_static='-non_shared'
8496 lt_prog_compiler_pic='-KPIC'
8497 lt_prog_compiler_static='-Bstatic'
8498 case $cc_basename in
8500 lt_prog_compiler_wl='-Qoption ld ';;
8502 lt_prog_compiler_wl='-Wl,';;
8507 lt_prog_compiler_wl='-Qoption ld '
8508 lt_prog_compiler_pic='-PIC'
8509 lt_prog_compiler_static='-Bstatic'
8512 sysv4 | sysv4.2uw2* | sysv4.3*)
8513 lt_prog_compiler_wl='-Wl,'
8514 lt_prog_compiler_pic='-KPIC'
8515 lt_prog_compiler_static='-Bstatic'
8519 if test -d /usr/nec ;then
8520 lt_prog_compiler_pic='-Kconform_pic'
8521 lt_prog_compiler_static='-Bstatic'
8525 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_pic='-KPIC'
8528 lt_prog_compiler_static='-Bstatic'
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_can_build_shared=no
8537 lt_prog_compiler_pic='-pic'
8538 lt_prog_compiler_static='-Bstatic'
8542 lt_prog_compiler_can_build_shared=no
8547 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
8548 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8551 # Check to make sure the PIC flag actually works.
8553 if test -n "$lt_prog_compiler_pic"; then
8555 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8556 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
8557 if test "${lt_prog_compiler_pic_works+set}" = set; then
8558 echo $ECHO_N "(cached
) $ECHO_C" >&6
8560 lt_prog_compiler_pic_works=no
8561 ac_outfile=conftest.$ac_objext
8562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8563 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8564 # Insert the option either (1) after the last *FLAGS variable, or
8565 # (2) before a word containing "conftest.
", or (3) at the end.
8566 # Note that $ac_compile itself does not contain backslashes and begins
8567 # with a dollar sign (not a hyphen), so the echo should work correctly.
8568 # The option is referenced via a variable to avoid confusing sed.
8569 lt_compile=`echo "$ac_compile" | $SED \
8570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8572 -e 's:$: $lt_compiler_flag:'`
8573 (eval echo "\"\
$as_me:8573: $lt_compile\"" >&5)
8574 (eval "$lt_compile" 2>conftest.err)
8576 cat conftest.err >&5
8577 echo "$as_me:8577: \$?
= $ac_status" >&5
8578 if (exit $ac_status) && test -s "$ac_outfile"; then
8579 # The compiler can only warn and ignore the option if not recognized
8580 # So say no if there are warnings other than the usual output.
8581 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8584 lt_prog_compiler_pic_works=yes
8590 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
8591 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8593 if test x"$lt_prog_compiler_pic_works" = xyes; then
8594 case $lt_prog_compiler_pic in
8596 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8599 lt_prog_compiler_pic=
8600 lt_prog_compiler_can_build_shared=no
8605 # For platforms which do not support PIC, -DPIC is meaningless:
8607 lt_prog_compiler_pic=
8610 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8615 # Check to make sure the static flag actually works.
8617 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8618 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
8619 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
8620 if test "${lt_prog_compiler_static_works+set}" = set; then
8621 echo $ECHO_N "(cached
) $ECHO_C" >&6
8623 lt_prog_compiler_static_works=no
8624 save_LDFLAGS="$LDFLAGS"
8625 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8626 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8627 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8628 # The linker can only warn and ignore the option if not recognized
8629 # So say no if there are warnings
8630 if test -s conftest.err; then
8631 # Append any errors to the config.log.
8632 cat conftest.err 1>&5
8633 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8635 if diff conftest.exp conftest.er2 >/dev/null; then
8636 lt_prog_compiler_static_works=yes
8639 lt_prog_compiler_static_works=yes
8643 LDFLAGS="$save_LDFLAGS"
8646 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
8647 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8649 if test x"$lt_prog_compiler_static_works" = xyes; then
8652 lt_prog_compiler_static=
8656 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8657 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
8658 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8659 echo $ECHO_N "(cached
) $ECHO_C" >&6
8661 lt_cv_prog_compiler_c_o=no
8662 $rm -r conftest 2>/dev/null
8666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8668 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8669 # Insert the option either (1) after the last *FLAGS variable, or
8670 # (2) before a word containing "conftest.
", or (3) at the end.
8671 # Note that $ac_compile itself does not contain backslashes and begins
8672 # with a dollar sign (not a hyphen), so the echo should work correctly.
8673 lt_compile=`echo "$ac_compile" | $SED \
8674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8676 -e 's:$: $lt_compiler_flag:'`
8677 (eval echo "\"\
$as_me:8677: $lt_compile\"" >&5)
8678 (eval "$lt_compile" 2>out/conftest.err)
8680 cat out/conftest.err >&5
8681 echo "$as_me:8681: \$?
= $ac_status" >&5
8682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8684 # The compiler can only warn and ignore the option if not recognized
8685 # So say no if there are warnings
8686 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8689 lt_cv_prog_compiler_c_o=yes
8694 # SGI C++ compiler will create directory out/ii_files/ for
8695 # template instantiation
8696 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8697 $rm out/* && rmdir out
8703 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
8704 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8707 hard_links="nottested
"
8708 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8709 # do not overwrite the value of need_locks provided by the user
8710 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
8711 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
8714 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8716 ln conftest.a conftest.b 2>&5 || hard_links=no
8717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8718 { echo "$as_me:$LINENO: result
: $hard_links" >&5
8719 echo "${ECHO_T}$hard_links" >&6; }
8720 if test "$hard_links" = no; then
8721 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
8722 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
8729 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
8730 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
8733 allow_undefined_flag=
8734 enable_shared_with_static_runtimes=no
8736 archive_expsym_cmds=
8737 old_archive_From_new_cmds=
8738 old_archive_from_expsyms_cmds=
8739 export_dynamic_flag_spec=
8740 whole_archive_flag_spec=
8741 thread_safe_flag_spec=
8742 hardcode_libdir_flag_spec=
8743 hardcode_libdir_flag_spec_ld=
8744 hardcode_libdir_separator=
8747 hardcode_shlibpath_var=unsupported
8748 link_all_deplibs=unknown
8749 hardcode_automatic=no
8752 always_export_symbols=no
8753 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8754 # include_expsyms should be a list of space-separated symbols to be *always*
8755 # included in the symbol list
8757 # exclude_expsyms can be an extended regexp of symbols to exclude
8758 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8759 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8760 # as well as any symbol that contains `d'.
8761 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
8762 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8763 # platforms (ab)use it in PIC code, but their linkers get confused if
8764 # the symbol is explicitly referenced. Since portable code cannot
8765 # rely on this symbol name, it's probably fine to never include it in
8766 # preloaded symbol tables.
8767 extract_expsyms_cmds=
8768 # Just being paranoid about ensuring that cc_basename is set.
8769 for cc_temp in $compiler""; do
8771 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8772 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8777 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
8780 cygwin* | mingw* | pw32*)
8781 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8782 # When not using gcc, we currently assume that we are using
8783 # Microsoft Visual C++.
8784 if test "$GCC" != yes; then
8789 # we just hope/assume this is gcc and not c89 (= MSVC++)
8798 if test "$with_gnu_ld" = yes; then
8799 # If archive_cmds runs LD, not CC, wlarc should be empty
8802 # Set some defaults for GNU ld with shared library support. These
8803 # are reset later if shared libraries are not supported. Putting them
8804 # here allows them to be overridden if necessary.
8805 runpath_var=LD_RUN_PATH
8806 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8807 export_dynamic_flag_spec='${wl}--export-dynamic'
8808 # ancient GNU ld didn't support --whole-archive et. al.
8809 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8810 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8812 whole_archive_flag_spec=
8814 supports_anon_versioning=no
8815 case `$LD -v 2>/dev/null` in
8816 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8817 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8818 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8819 *\ 2.11.*) ;; # other 2.11 versions
8820 *) supports_anon_versioning=yes ;;
8823 # See if GNU ld supports shared libraries.
8825 aix3* | aix4* | aix5*)
8826 # On AIX/PPC, the GNU linker is very broken
8827 if test "$host_cpu" != ia64; then
8831 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8832 *** to be unable to reliably create shared libraries on AIX.
8833 *** Therefore, libtool is disabling shared libraries support. If you
8834 *** really care for shared libraries, you may want to modify your PATH
8835 *** so that a non-GNU linker is found, and then restart.
8842 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)'
8843 hardcode_libdir_flag_spec
='-L$libdir'
8844 hardcode_minus_L
=yes
8846 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8847 # that the semantics of dynamic libraries on AmigaOS, at least up
8848 # to version 4, is to share data among multiple programs linked
8849 # with the same dynamic library. Since this doesn't match the
8850 # behavior of shared libraries on other platforms, we can't use
8856 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8857 allow_undefined_flag
=unsupported
8858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8859 # support --undefined. This deserves some investigation. FIXME
8860 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866 cygwin
* | mingw
* | pw32
*)
8867 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8868 # as there is no search path for DLLs.
8869 hardcode_libdir_flag_spec
='-L$libdir'
8870 allow_undefined_flag
=unsupported
8871 always_export_symbols
=no
8872 enable_shared_with_static_runtimes
=yes
8873 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8875 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
8876 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8877 # If the export-symbols file already is a .def file (1st line
8878 # is EXPORTS), use it as is; otherwise, prepend...
8879 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8880 cp $export_symbols $output_objdir/$soname.def;
8882 echo EXPORTS > $output_objdir/$soname.def;
8883 cat $export_symbols >> $output_objdir/$soname.def;
8885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8893 hardcode_shlibpath_var
=no
8894 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8895 export_dynamic_flag_spec
='${wl}-E'
8896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8897 # Instead, shared libraries are loaded at an image base (0x10000000 by
8898 # default) and relocated if they conflict, which is a slow very memory
8899 # consuming and fragmenting process. To avoid this, we pick a random,
8900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8901 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8902 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8903 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'
8906 gnu
* | linux
* | k
*bsd
*-gnu)
8907 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8909 case $cc_basename,$host_cpu in
8910 pgcc
*) # Portland Group C compiler
8911 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'
8912 tmp_addflag
=' $pic_flag'
8914 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8915 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'
8916 tmp_addflag
=' $pic_flag -Mnomain' ;;
8917 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8918 tmp_addflag
=' -i_dynamic' ;;
8919 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8920 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8921 ifc
* | ifort
*) # Intel Fortran compiler
8922 tmp_addflag
=' -nofor_main' ;;
8924 case `$CC -V 2>&1 | sed 5q` in
8925 *Sun\ C
*) # Sun C 5.9
8926 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'
8927 tmp_sharedflag
='-G' ;;
8928 *Sun\ F
*) # Sun Fortran 8.3
8929 tmp_sharedflag
='-G' ;;
8931 tmp_sharedflag
='-shared' ;;
8933 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935 if test $supports_anon_versioning = yes; then
8936 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
8937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8938 $echo "local: *; };" >> $output_objdir/$libname.ver~
8939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8947 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8948 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8951 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8957 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
8961 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8962 *** create shared libraries on Solaris systems. Therefore, libtool
8963 *** is disabling shared libraries support. We urge you to upgrade GNU
8964 *** binutils to release 2.9.1 or newer. Another option is to modify
8965 *** your PATH or compiler configuration so that the native linker is
8966 *** used, and then restart.
8969 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8970 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8977 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8978 case `$LD -v 2>&1` in
8979 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8983 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8984 *** reliably create shared libraries on SCO systems. Therefore, libtool
8985 *** is disabling shared libraries support. We urge you to upgrade GNU
8986 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8987 *** your PATH or compiler configuration so that the native linker is
8988 *** used, and then restart.
8993 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8994 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8995 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8996 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9005 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9008 hardcode_shlibpath_var
=no
9012 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
9013 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9014 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9021 if test "$ld_shlibs" = no
; then
9023 hardcode_libdir_flag_spec
=
9024 export_dynamic_flag_spec
=
9025 whole_archive_flag_spec
=
9028 # PORTME fill in a description of your system's linker (not GNU ld)
9031 allow_undefined_flag
=unsupported
9032 always_export_symbols
=yes
9033 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'
9034 # Note: this linker hardcodes the directories in LIBPATH if there
9035 # are no directories specified by -L.
9036 hardcode_minus_L
=yes
9037 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9038 # Neither direct hardcoding nor static linking is supported with a
9040 hardcode_direct
=unsupported
9045 if test "$host_cpu" = ia64
; then
9046 # On IA64, the linker does run time linking by default, so we don't
9047 # have to do anything special.
9048 aix_use_runtimelinking
=no
9049 exp_sym_flag
='-Bexport'
9052 # If we're using GNU nm, then we don't want the "-C" option.
9053 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9054 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
9055 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'
9057 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'
9059 aix_use_runtimelinking
=no
9061 # Test if we are trying to use run time linking or normal
9062 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9063 # need to do runtime linking.
9064 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
9065 for ld_flag
in $LDFLAGS; do
9066 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9067 aix_use_runtimelinking
=yes
9074 exp_sym_flag
='-bexport'
9075 no_entry_flag
='-bnoentry'
9078 # When large executables or shared objects are built, AIX ld can
9079 # have problems creating the table of contents. If linking a library
9080 # or program results in "error TOC overflow" add -mminimal-toc to
9081 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9082 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9086 hardcode_libdir_separator
=':'
9087 link_all_deplibs
=yes
9089 if test "$GCC" = yes; then
9090 case $host_os in aix4.
[012]|aix4.
[012].
*)
9091 # We only want to do this on AIX 4.2 and lower, the check
9092 # below for broken collect2 doesn't work under 4.3+
9093 collect2name
=`${CC} -print-prog-name=collect2`
9094 if test -f "$collect2name" && \
9095 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
9097 # We have reworked collect2
9100 # We have old collect2
9101 hardcode_direct
=unsupported
9102 # It fails to find uninstalled libraries when the uninstalled
9103 # path is not listed in the libpath. Setting hardcode_minus_L
9104 # to unsupported forces relinking
9105 hardcode_minus_L
=yes
9106 hardcode_libdir_flag_spec
='-L$libdir'
9107 hardcode_libdir_separator
=
9111 shared_flag
='-shared'
9112 if test "$aix_use_runtimelinking" = yes; then
9113 shared_flag
="$shared_flag "'${wl}-G'
9117 if test "$host_cpu" = ia64
; then
9118 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9119 # chokes on -Wl,-G. The following line is correct:
9122 if test "$aix_use_runtimelinking" = yes; then
9123 shared_flag
='${wl}-G'
9125 shared_flag
='${wl}-bM:SRE'
9130 # It seems that -bexpall does not export symbols beginning with
9131 # underscore (_), so it is better to generate a list of symbols to export.
9132 always_export_symbols
=yes
9133 if test "$aix_use_runtimelinking" = yes; then
9134 # Warning - without using the other runtime loading flags (-brtl),
9135 # -berok will link without error, but may produce a broken library.
9136 allow_undefined_flag
='-berok'
9137 # Determine the default libpath from the value encoded in an empty executable.
9138 cat >conftest.
$ac_ext <<_ACEOF
9141 cat confdefs.h
>>conftest.
$ac_ext
9142 cat >>conftest.
$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9153 rm -f conftest.
$ac_objext conftest
$ac_exeext
9154 if { (ac_try
="$ac_link"
9156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_link") 2>conftest.er1
9162 grep -v '^ *+' conftest.er1 >conftest.err
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest$ac_exeext &&
9170 $as_test_x conftest$ac_exeext; then
9172 lt_aix_libpath_sed='
9173 /Import File Strings/,/^$/ {
9179 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9180 # Check for a 64-bit object if we didn't find anything.
9181 if test -z "$aix_libpath"; then
9182 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192 conftest$ac_exeext conftest.$ac_ext
9193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9195 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9196 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"
9198 if test "$host_cpu" = ia64; then
9199 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9200 allow_undefined_flag="-z nodefs"
9201 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"
9203 # Determine the default libpath from the value encoded in an empty executable.
9204 cat >conftest.$ac_ext <<_ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (ac_try="$ac_link"
9222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9223 *) ac_try_echo
=$ac_try;;
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_link") 2>conftest.er1
9228 grep -v '^ *+' conftest.er1
>conftest.err
9230 cat conftest.err
>&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest
$ac_exeext &&
9236 $as_test_x conftest
$ac_exeext; then
9238 lt_aix_libpath_sed
='
9239 /Import File Strings/,/^$/ {
9245 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9246 # Check for a 64-bit object if we didn't find anything.
9247 if test -z "$aix_libpath"; then
9248 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.
$ac_ext >&5
9257 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9258 conftest
$ac_exeext conftest.
$ac_ext
9259 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9261 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9262 # Warning - without using the other run time loading flags,
9263 # -berok will link without error, but may produce a broken library.
9264 no_undefined_flag
=' ${wl}-bernotok'
9265 allow_undefined_flag
=' ${wl}-berok'
9266 # Exported symbols can be pulled into shared objects from archives
9267 whole_archive_flag_spec
='$convenience'
9268 archive_cmds_need_lc
=yes
9269 # This is similar to how AIX traditionally builds its shared libraries.
9270 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'
9276 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)'
9277 hardcode_libdir_flag_spec
='-L$libdir'
9278 hardcode_minus_L
=yes
9279 # see comment about different semantics on the GNU ld section
9284 export_dynamic_flag_spec
=-rdynamic
9287 cygwin
* | mingw
* | pw32
*)
9288 # When not using gcc, we currently assume that we are using
9289 # Microsoft Visual C++.
9290 # hardcode_libdir_flag_spec is actually meaningless, as there is
9291 # no search path for DLLs.
9292 hardcode_libdir_flag_spec
=' '
9293 allow_undefined_flag
=unsupported
9294 # Tell ltmain to make .lib files, not .a files.
9296 # Tell ltmain to make .dll files, not .so files.
9298 # FIXME: Setting linknames here is a bad hack.
9299 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9300 # The linker will automatically build a .lib file if we build a DLL.
9301 old_archive_From_new_cmds
='true'
9302 # FIXME: Should let the user specify the lib program.
9303 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9304 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9305 enable_shared_with_static_runtimes
=yes
9308 darwin
* | rhapsody
*)
9310 rhapsody
* | darwin1.
[012])
9311 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
9314 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9315 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9317 case ${MACOSX_DEPLOYMENT_TARGET} in
9319 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9322 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
9328 archive_cmds_need_lc
=no
9330 hardcode_automatic
=yes
9331 hardcode_shlibpath_var
=unsupported
9332 whole_archive_flag_spec
=''
9333 link_all_deplibs
=yes
9334 if test "$GCC" = yes ; then
9335 output_verbose_link_cmd
='echo'
9336 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9337 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9339 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}'
9340 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}'
9342 case $cc_basename in
9344 output_verbose_link_cmd
='echo'
9345 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9346 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9347 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9348 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}'
9349 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}'
9359 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_libdir_flag_spec
='-L$libdir'
9361 hardcode_shlibpath_var
=no
9368 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9369 # support. Future versions do this automatically, but an explicit c++rt0.o
9370 # does not break anything, and helps significantly (at the cost of a little
9373 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9374 hardcode_libdir_flag_spec
='-R$libdir'
9376 hardcode_shlibpath_var
=no
9379 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9381 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9383 hardcode_minus_L
=yes
9384 hardcode_shlibpath_var
=no
9387 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9388 freebsd
* | dragonfly
*)
9389 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9390 hardcode_libdir_flag_spec
='-R$libdir'
9392 hardcode_shlibpath_var
=no
9396 if test "$GCC" = yes; then
9397 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'
9399 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'
9401 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9402 hardcode_libdir_separator
=:
9405 # hardcode_minus_L: Not really in the search PATH,
9406 # but as the default location of the library.
9407 hardcode_minus_L
=yes
9408 export_dynamic_flag_spec
='${wl}-E'
9412 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9413 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9417 if test "$with_gnu_ld" = no
; then
9418 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9419 hardcode_libdir_separator
=:
9422 export_dynamic_flag_spec
='${wl}-E'
9424 # hardcode_minus_L: Not really in the search PATH,
9425 # but as the default location of the library.
9426 hardcode_minus_L
=yes
9431 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9434 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9449 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9456 if test "$with_gnu_ld" = no
; then
9457 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9458 hardcode_libdir_separator
=:
9462 hardcode_libdir_flag_spec_ld
='+b $libdir'
9464 hardcode_shlibpath_var
=no
9468 export_dynamic_flag_spec
='${wl}-E'
9470 # hardcode_minus_L: Not really in the search PATH,
9471 # but as the default location of the library.
9472 hardcode_minus_L
=yes
9478 irix5
* | irix6
* | nonstopux
*)
9479 if test "$GCC" = yes; then
9480 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'
9482 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'
9483 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9485 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9486 hardcode_libdir_separator
=:
9487 link_all_deplibs
=yes
9491 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9492 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9494 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9496 hardcode_libdir_flag_spec
='-R$libdir'
9498 hardcode_shlibpath_var
=no
9502 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9505 hardcode_libdir_separator
=:
9506 hardcode_shlibpath_var
=no
9510 if test -f /usr
/libexec
/ld.so
; then
9512 hardcode_shlibpath_var
=no
9513 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9514 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9515 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9516 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9517 export_dynamic_flag_spec
='${wl}-E'
9520 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9521 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_libdir_flag_spec
='-R$libdir'
9525 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9526 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9536 hardcode_libdir_flag_spec
='-L$libdir'
9537 hardcode_minus_L
=yes
9538 allow_undefined_flag
=unsupported
9539 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'
9540 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9544 if test "$GCC" = yes; then
9545 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9546 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'
9548 allow_undefined_flag
=' -expect_unresolved \*'
9549 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'
9551 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9552 hardcode_libdir_separator
=:
9555 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9556 if test "$GCC" = yes; then
9557 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9558 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'
9559 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9561 allow_undefined_flag
=' -expect_unresolved \*'
9562 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'
9563 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9564 $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'
9566 # Both c and cxx compiler support -rpath directly
9567 hardcode_libdir_flag_spec
='-rpath $libdir'
9569 hardcode_libdir_separator
=:
9573 no_undefined_flag
=' -z text'
9574 if test "$GCC" = yes; then
9576 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9578 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9581 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9585 hardcode_libdir_flag_spec
='-R$libdir'
9586 hardcode_shlibpath_var
=no
9588 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9590 # The compiler driver will combine and reorder linker options,
9591 # but understands `-z linker_flag'. GCC discards it without `$wl',
9592 # but is careful enough not to reorder.
9593 # Supported since Solaris 2.6 (maybe 2.5.1?)
9594 if test "$GCC" = yes; then
9595 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9597 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9601 link_all_deplibs
=yes
9605 if test "x$host_vendor" = xsequent
; then
9606 # Use $CC to link under sequent, because it throws in some extra .o
9607 # files that make .init and .fini sections work.
9608 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9610 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9612 hardcode_libdir_flag_spec
='-L$libdir'
9614 hardcode_minus_L
=yes
9615 hardcode_shlibpath_var
=no
9619 case $host_vendor in
9621 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_direct
=yes # is this really true???
9625 ## LD is ld it makes a PLAMLIB
9626 ## CC just makes a GrossModule.
9627 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9628 reload_cmds
='$CC -r -o $output$reload_objs'
9632 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9636 runpath_var
='LD_RUN_PATH'
9637 hardcode_shlibpath_var
=no
9641 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_shlibpath_var
=no
9643 export_dynamic_flag_spec
='-Bexport'
9647 if test -d /usr
/nec
; then
9648 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_shlibpath_var
=no
9650 runpath_var
=LD_RUN_PATH
9651 hardcode_runpath_var
=yes
9656 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9657 no_undefined_flag
='${wl}-z,text'
9658 archive_cmds_need_lc
=no
9659 hardcode_shlibpath_var
=no
9660 runpath_var
='LD_RUN_PATH'
9662 if test "$GCC" = yes; then
9663 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671 sysv5
* | sco3.2v5
* | sco5v6
*)
9672 # Note: We can NOT use -z defs as we might desire, because we do not
9673 # link with -lc, and that would cause any symbols used from libc to
9674 # always be unresolved, which means just about no library would
9675 # ever link correctly. If we're not using GNU ld we use -z text
9676 # though, which does catch some bad symbols but isn't as heavy-handed
9678 no_undefined_flag
='${wl}-z,text'
9679 allow_undefined_flag
='${wl}-z,nodefs'
9680 archive_cmds_need_lc
=no
9681 hardcode_shlibpath_var
=no
9682 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9683 hardcode_libdir_separator
=':'
9684 link_all_deplibs
=yes
9685 export_dynamic_flag_spec
='${wl}-Bexport'
9686 runpath_var
='LD_RUN_PATH'
9688 if test "$GCC" = yes; then
9689 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699 hardcode_libdir_flag_spec
='-L$libdir'
9700 hardcode_shlibpath_var
=no
9709 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9710 echo "${ECHO_T}$ld_shlibs" >&6; }
9711 test "$ld_shlibs" = no
&& can_build_shared
=no
9714 # Do we need to explicitly link libc?
9716 case "x$archive_cmds_need_lc" in
9718 # Assume -lc should be added
9719 archive_cmds_need_lc
=yes
9721 if test "$enable_shared" = yes && test "$GCC" = yes; then
9722 case $archive_cmds in
9724 # FIXME: we may have to deal with multi-command sequences.
9727 # Test whether the compiler implicitly links with -lc since on some
9728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9729 # to ld, don't add -lc before -lgcc.
9730 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9731 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9733 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9736 (eval $ac_compile) 2>&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } 2>conftest.err
; then
9742 libobjs
=conftest.
$ac_objext
9744 wl
=$lt_prog_compiler_wl
9745 pic_flag
=$lt_prog_compiler_pic
9751 lt_save_allow_undefined_flag
=$allow_undefined_flag
9752 allow_undefined_flag
=
9753 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9754 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }
9759 archive_cmds_need_lc
=no
9761 archive_cmds_need_lc
=yes
9763 allow_undefined_flag
=$lt_save_allow_undefined_flag
9765 cat conftest.err
1>&5
9768 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9769 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9776 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9777 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9779 libname_spec
='lib$name'
9787 shlibpath_overrides_runpath
=unknown
9789 dynamic_linker
="$host_os ld.so"
9790 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9792 if test "$GCC" = yes; then
9794 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9795 *) lt_awk_arg
="/^libraries:/" ;;
9797 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9798 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
9799 # if the path contains ";" then we assume it to be the separator
9800 # otherwise default to the standard path separator (i.e. ":") - it is
9801 # assumed that no part of a normal pathname contains ";" but that should
9802 # okay in the real world where ";" in dirpaths is itself problematic.
9803 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9805 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9807 # Ok, now we have the path, separated by spaces, we can step through it
9808 # and add multilib dir if necessary.
9809 lt_tmp_lt_search_path_spec
=
9810 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9811 for lt_sys_path
in $lt_search_path_spec; do
9812 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9813 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9815 test -d "$lt_sys_path" && \
9816 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9819 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
9820 BEGIN {RS=" "; FS="/|\n";} {
9823 for (lt_i = NF; lt_i > 0; lt_i--) {
9824 if ($lt_i != "" && $lt_i != ".") {
9825 if ($lt_i == "..") {
9828 if (lt_count == 0) {
9829 lt_foo="/" $lt_i lt_foo;
9836 if (lt_foo != "") { lt_freq[lt_foo]++; }
9837 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9839 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
9841 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9843 need_lib_prefix
=unknown
9844 hardcode_into_libs
=no
9846 # when you set need_version to no, make sure it does not cause -set_version
9847 # flags to be left without arguments
9848 need_version
=unknown
9853 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9854 shlibpath_var
=LIBPATH
9856 # AIX 3 has no versioning support, so we append a major version to the name.
9857 soname_spec
='${libname}${release}${shared_ext}$major'
9864 hardcode_into_libs
=yes
9865 if test "$host_cpu" = ia64
; then
9866 # AIX 5 supports IA64
9867 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9868 shlibpath_var
=LD_LIBRARY_PATH
9870 # With GCC up to 2.95.x, collect2 would create an import file
9871 # for dependence libraries. The import file would start with
9872 # the line `#! .'. This would cause the generated library to
9873 # depend on `.', always an invalid library. This was fixed in
9874 # development snapshots of GCC prior to 3.0.
9876 aix4 | aix4.
[01] | aix4.
[01].
*)
9877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9879 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9887 # soname into executable. Probably we can add versioning support to
9888 # collect2, so additional links can be useful in future.
9889 if test "$aix_use_runtimelinking" = yes; then
9890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9891 # instead of lib<name>.a to let people know that these are not
9892 # typical AIX shared libraries.
9893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895 # We preserve .a as extension for shared libraries through AIX4.2
9896 # and later when we are not doing run time linking.
9897 library_names_spec
='${libname}${release}.a $libname.a'
9898 soname_spec
='${libname}${release}${shared_ext}$major'
9900 shlibpath_var
=LIBPATH
9905 library_names_spec
='$libname.ixlibrary $libname.a'
9906 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9907 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'
9911 library_names_spec
='${libname}${shared_ext}'
9912 dynamic_linker
="$host_os ld.so"
9913 shlibpath_var
=LIBRARY_PATH
9919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920 soname_spec
='${libname}${release}${shared_ext}$major'
9921 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9922 shlibpath_var
=LD_LIBRARY_PATH
9923 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9924 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9925 # the default ld.so.conf also contains /usr/contrib/lib and
9926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9927 # libtool to hard-code these into programs
9930 cygwin
* | mingw
* | pw32
*)
9931 version_type
=windows
9936 case $GCC,$host_os in
9937 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9938 library_names_spec
='$libname.dll.a'
9939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9940 postinstall_cmds
='base_file=`basename \${file}`~
9941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9942 dldir=$destdir/`dirname \$dlpath`~
9943 test -d \$dldir || mkdir -p \$dldir~
9944 $install_prog $dir/$dlname \$dldir/$dlname~
9945 chmod a+x \$dldir/$dlname'
9946 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9947 dlpath=$dir/\$dldll~
9949 shlibpath_overrides_runpath
=yes
9953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9954 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9955 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9958 # MinGW DLLs use traditional 'lib' prefix
9959 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9960 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9961 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9962 # It is most probably a Windows format PATH printed by
9963 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9964 # path with ; separators, and with drive letters. We can handle the
9965 # drive letters (cygwin fileutils understands them), so leave them,
9966 # especially as we might pass files found there to a mingw objdump,
9967 # which wouldn't understand a cygwinified path. Ahh.
9968 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9970 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9974 # pw32 DLLs use 'pw' prefix rather than 'lib'
9975 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9981 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9984 dynamic_linker
='Win32 ld.exe'
9985 # FIXME: first we should search . and the directory the executable is in
9989 darwin
* | rhapsody
*)
9990 dynamic_linker
="$host_os dyld"
9994 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9995 soname_spec
='${libname}${release}${major}$shared_ext'
9996 shlibpath_overrides_runpath
=yes
9997 shlibpath_var
=DYLD_LIBRARY_PATH
9998 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10000 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10001 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10009 soname_spec
='${libname}${release}${shared_ext}$major'
10010 shlibpath_var
=LD_LIBRARY_PATH
10017 freebsd
* | dragonfly
*)
10018 # DragonFly does not have aout. When/if they implement a new
10019 # versioning mechanism, adjust this.
10020 if test -x /usr
/bin
/objformat
; then
10021 objformat
=`/usr/bin/objformat`
10024 freebsd
[123]*) objformat
=aout
;;
10025 *) objformat
=elf
;;
10028 version_type
=freebsd-
$objformat
10029 case $version_type in
10031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10036 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10040 shlibpath_var
=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath
=yes
10045 freebsd3.
[01]* | freebsdelf3.
[01]*)
10046 shlibpath_overrides_runpath
=yes
10047 hardcode_into_libs
=yes
10049 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10050 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10051 shlibpath_overrides_runpath
=no
10052 hardcode_into_libs
=yes
10054 *) # from 4.6 on, and DragonFly
10055 shlibpath_overrides_runpath
=yes
10056 hardcode_into_libs
=yes
10065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10066 soname_spec
='${libname}${release}${shared_ext}$major'
10067 shlibpath_var
=LD_LIBRARY_PATH
10068 hardcode_into_libs
=yes
10071 hpux9
* | hpux10
* | hpux11
*)
10072 # Give a soname corresponding to the major version so that dld.sl refuses to
10073 # link against other versions.
10080 hardcode_into_libs
=yes
10081 dynamic_linker
="$host_os dld.so"
10082 shlibpath_var
=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085 soname_spec
='${libname}${release}${shared_ext}$major'
10086 if test "X$HPUX_IA64_MODE" = X32
; then
10087 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10089 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10091 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10095 hardcode_into_libs
=yes
10096 dynamic_linker
="$host_os dld.sl"
10097 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10098 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100 soname_spec
='${libname}${release}${shared_ext}$major'
10101 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10102 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10106 dynamic_linker
="$host_os dld.sl"
10107 shlibpath_var
=SHLIB_PATH
10108 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10109 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 soname_spec
='${libname}${release}${shared_ext}$major'
10113 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10114 postinstall_cmds
='chmod 555 $lib'
10121 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10122 soname_spec
='${libname}${release}${shared_ext}$major'
10123 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10124 shlibpath_var
=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath
=no
10126 hardcode_into_libs
=yes
10129 irix5
* | irix6
* | nonstopux
*)
10131 nonstopux
*) version_type
=nonstopux
;;
10133 if test "$lt_cv_prog_gnu_ld" = yes; then
10141 soname_spec
='${libname}${release}${shared_ext}$major'
10142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10144 irix5
* | nonstopux
*)
10145 libsuff
= shlibsuff
=
10148 case $LD in # libtool.m4 will add one of these switches to LD
10149 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10150 libsuff
= shlibsuff
= libmagic
=32-bit;;
10151 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10152 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10153 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10154 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10155 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10159 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10160 shlibpath_overrides_runpath
=no
10161 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10162 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10163 hardcode_into_libs
=yes
10166 # No shared lib support for Linux oldld, aout, or coff.
10167 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10171 # This must be Linux ELF.
10172 linux
* | k
*bsd
*-gnu)
10176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 soname_spec
='${libname}${release}${shared_ext}$major'
10178 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10179 shlibpath_var
=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath
=no
10181 # This implies no fast_install, which is unacceptable.
10182 # Some rework will be needed to allow for fast_install
10183 # before this can be enabled.
10184 hardcode_into_libs
=yes
10185 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10186 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10188 # Append ld.so.conf contents to the search path
10189 if test -f /etc
/ld.so.conf
; then
10190 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' ' '`
10191 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10194 # We used to test for /lib/ld.so.1 and disable shared libraries on
10195 # powerpc, because MkLinux only supported shared libraries with the
10196 # GNU dynamic linker. Since this was broken with cross compilers,
10197 # most powerpc-linux boxes support dynamic linking these days and
10198 # people can always --disable-shared, the test was removed, and we
10199 # assume the GNU/Linux dynamic linker is in use.
10200 dynamic_linker
='GNU/Linux ld.so'
10207 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10209 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10210 dynamic_linker
='NetBSD (a.out) ld.so'
10212 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10213 soname_spec
='${libname}${release}${shared_ext}$major'
10214 dynamic_linker
='NetBSD ld.elf_so'
10216 shlibpath_var
=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath
=yes
10218 hardcode_into_libs
=yes
10223 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224 shlibpath_var
=LD_LIBRARY_PATH
10225 shlibpath_overrides_runpath
=yes
10232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233 soname_spec
='${libname}${release}${shared_ext}$major'
10234 shlibpath_var
=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath
=yes
10240 sys_lib_dlsearch_path_spec
="/usr/lib"
10242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10244 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10245 *) need_version
=no
;;
10247 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10248 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10249 shlibpath_var
=LD_LIBRARY_PATH
10250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10252 openbsd2.
[89] | openbsd2.
[89].
*)
10253 shlibpath_overrides_runpath
=no
10256 shlibpath_overrides_runpath
=yes
10260 shlibpath_overrides_runpath
=yes
10265 libname_spec
='$name'
10268 library_names_spec
='$libname${shared_ext} $libname.a'
10269 dynamic_linker
='OS/2 ld.exe'
10270 shlibpath_var
=LIBPATH
10273 osf3
* | osf4
* | osf5
*)
10277 soname_spec
='${libname}${release}${shared_ext}$major'
10278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 shlibpath_var
=LD_LIBRARY_PATH
10280 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10281 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 soname_spec
='${libname}${release}${shared_ext}$major'
10294 shlibpath_var
=LD_LIBRARY_PATH
10295 shlibpath_overrides_runpath
=yes
10296 hardcode_into_libs
=yes
10297 # ldd complains unless libraries are executable
10298 postinstall_cmds
='chmod +x $lib'
10303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10304 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10305 shlibpath_var
=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath
=yes
10307 if test "$with_gnu_ld" = yes; then
10315 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 soname_spec
='${libname}${release}${shared_ext}$major'
10317 shlibpath_var
=LD_LIBRARY_PATH
10318 case $host_vendor in
10320 shlibpath_overrides_runpath
=no
10322 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10323 runpath_var
=LD_RUN_PATH
10331 shlibpath_overrides_runpath
=no
10332 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10338 if test -d /usr
/nec
;then
10340 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10341 soname_spec
='$libname${shared_ext}.$major'
10342 shlibpath_var
=LD_LIBRARY_PATH
10346 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10347 version_type
=freebsd-elf
10350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10351 soname_spec
='${libname}${release}${shared_ext}$major'
10352 shlibpath_var
=LD_LIBRARY_PATH
10353 hardcode_into_libs
=yes
10354 if test "$with_gnu_ld" = yes; then
10355 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10356 shlibpath_overrides_runpath
=no
10358 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10359 shlibpath_overrides_runpath
=yes
10362 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10366 sys_lib_dlsearch_path_spec
='/usr/lib'
10371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec
='${libname}${release}${shared_ext}$major'
10373 shlibpath_var
=LD_LIBRARY_PATH
10380 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10381 echo "${ECHO_T}$dynamic_linker" >&6; }
10382 test "$dynamic_linker" = no
&& can_build_shared
=no
10384 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10385 if test "$GCC" = yes; then
10386 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10389 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10392 if test -n "$hardcode_libdir_flag_spec" || \
10393 test -n "$runpath_var" || \
10394 test "X$hardcode_automatic" = "Xyes" ; then
10396 # We can hardcode non-existant directories.
10397 if test "$hardcode_direct" != no
&&
10398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10399 # have to relink, otherwise we might link with an installed library
10400 # when we should be linking with a yet-to-be-installed one
10401 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10402 test "$hardcode_minus_L" != no
; then
10403 # Linking always hardcodes the temporary library directory.
10404 hardcode_action
=relink
10406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10407 hardcode_action
=immediate
10410 # We cannot hardcode anything, or else we can only hardcode existing
10412 hardcode_action
=unsupported
10414 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10415 echo "${ECHO_T}$hardcode_action" >&6; }
10417 if test "$hardcode_action" = relink
; then
10418 # Fast installation is not supported
10419 enable_fast_install
=no
10420 elif test "$shlibpath_overrides_runpath" = yes ||
10421 test "$enable_shared" = no
; then
10422 # Fast installation is not necessary
10423 enable_fast_install
=needless
10428 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10429 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10430 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
10431 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
10432 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
10433 { echo "$as_me:$LINENO: result: yes" >&5
10434 echo "${ECHO_T}yes" >&6; }
10436 # FIXME - insert some real tests, host_os isn't really good enough
10439 if test -n "$STRIP" ; then
10440 striplib
="$STRIP -x"
10441 old_striplib
="$STRIP -S"
10442 { echo "$as_me:$LINENO: result: yes" >&5
10443 echo "${ECHO_T}yes" >&6; }
10445 { echo "$as_me:$LINENO: result: no" >&5
10446 echo "${ECHO_T}no" >&6; }
10450 { echo "$as_me:$LINENO: result: no" >&5
10451 echo "${ECHO_T}no" >&6; }
10456 if test "x$enable_dlopen" != xyes
; then
10457 enable_dlopen
=unknown
10458 enable_dlopen_self
=unknown
10459 enable_dlopen_self_static
=unknown
10466 lt_cv_dlopen
="load_add_on"
10468 lt_cv_dlopen_self
=yes
10472 lt_cv_dlopen
="LoadLibrary"
10477 lt_cv_dlopen
="dlopen"
10482 # if libdl is installed we need to link against it
10483 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10484 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10485 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 ac_check_lib_save_LIBS
=$LIBS
10490 cat >conftest.
$ac_ext <<_ACEOF
10493 cat confdefs.h
>>conftest.
$ac_ext
10494 cat >>conftest.
$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10497 /* Override any GCC internal prototype to avoid an error.
10498 Use char because int might match the return type of a GCC
10499 builtin and then its argument prototype would still apply. */
10512 rm -f conftest.
$ac_objext conftest
$ac_exeext
10513 if { (ac_try
="$ac_link"
10514 case "(($ac_try" in
10515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_link") 2>conftest.er1
10521 grep -v '^ *+' conftest.er1 >conftest.err
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } && {
10526 test -z "$ac_c_werror_flag" ||
10527 test ! -s conftest.err
10528 } && test -s conftest$ac_exeext &&
10529 $as_test_x conftest$ac_exeext; then
10530 ac_cv_lib_dl_dlopen=yes
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 ac_cv_lib_dl_dlopen=no
10538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10539 conftest$ac_exeext conftest.$ac_ext
10540 LIBS=$ac_check_lib_save_LIBS
10542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10543 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10544 if test $ac_cv_lib_dl_dlopen = yes; then
10545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10548 lt_cv_dlopen="dyld"
10550 lt_cv_dlopen_self=yes
10557 { echo "$as_me:$LINENO: checking for shl_load" >&5
10558 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10559 if test "${ac_cv_func_shl_load+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 cat >conftest.$ac_ext <<_ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10570 #define shl_load innocuous_shl_load
10572 /* System header to define __stub macros and hopefully few prototypes,
10573 which can conflict with char shl_load (); below.
10574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10575 <limits.h> exists even on freestanding compilers. */
10578 # include <limits.h>
10580 # include <assert.h>
10585 /* Override any GCC internal prototype to avoid an error.
10586 Use char because int might match the return type of a GCC
10587 builtin and then its argument prototype would still apply. */
10592 /* The GNU C library defines this for functions which it implements
10593 to always fail with ENOSYS. Some functions are actually named
10594 something starting with __ and the normal name is an alias. */
10595 #if defined __stub_shl_load || defined __stub___shl_load
10602 return shl_load ();
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10611 *) ac_try_echo
=$ac_try;;
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_link") 2>conftest.er1
10616 grep -v '^ *+' conftest.er1
>conftest.err
10618 cat conftest.err
>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest
$ac_exeext &&
10624 $as_test_x conftest
$ac_exeext; then
10625 ac_cv_func_shl_load
=yes
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.
$ac_ext >&5
10630 ac_cv_func_shl_load
=no
10633 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10634 conftest
$ac_exeext conftest.
$ac_ext
10636 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10637 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10638 if test $ac_cv_func_shl_load = yes; then
10639 lt_cv_dlopen
="shl_load"
10641 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10642 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10643 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 ac_check_lib_save_LIBS
=$LIBS
10648 cat >conftest.
$ac_ext <<_ACEOF
10651 cat confdefs.h
>>conftest.
$ac_ext
10652 cat >>conftest.
$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10665 return shl_load ();
10670 rm -f conftest.
$ac_objext conftest
$ac_exeext
10671 if { (ac_try
="$ac_link"
10672 case "(($ac_try" in
10673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_link") 2>conftest.er1
10679 grep -v '^ *+' conftest.er1 >conftest.err
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } && {
10684 test -z "$ac_c_werror_flag" ||
10685 test ! -s conftest.err
10686 } && test -s conftest$ac_exeext &&
10687 $as_test_x conftest$ac_exeext; then
10688 ac_cv_lib_dld_shl_load=yes
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ac_cv_lib_dld_shl_load=no
10696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10697 conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10700 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10701 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10702 if test $ac_cv_lib_dld_shl_load = yes; then
10703 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10705 { echo "$as_me:$LINENO: checking for dlopen" >&5
10706 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10707 if test "${ac_cv_func_dlopen+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 cat >conftest.$ac_ext <<_ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10718 #define dlopen innocuous_dlopen
10720 /* System header to define __stub macros and hopefully few prototypes,
10721 which can conflict with char dlopen (); below.
10722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10723 <limits.h> exists even on freestanding compilers. */
10726 # include <limits.h>
10728 # include <assert.h>
10733 /* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
10740 /* The GNU C library defines this for functions which it implements
10741 to always fail with ENOSYS. Some functions are actually named
10742 something starting with __ and the normal name is an alias. */
10743 #if defined __stub_dlopen || defined __stub___dlopen
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (ac_try="$ac_link"
10757 case "(($ac_try" in
10758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10759 *) ac_try_echo
=$ac_try;;
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762 (eval "$ac_link") 2>conftest.er1
10764 grep -v '^ *+' conftest.er1
>conftest.err
10766 cat conftest.err
>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest
$ac_exeext &&
10772 $as_test_x conftest
$ac_exeext; then
10773 ac_cv_func_dlopen
=yes
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.
$ac_ext >&5
10778 ac_cv_func_dlopen
=no
10781 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10782 conftest
$ac_exeext conftest.
$ac_ext
10784 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10785 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10786 if test $ac_cv_func_dlopen = yes; then
10787 lt_cv_dlopen
="dlopen"
10789 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 ac_check_lib_save_LIBS
=$LIBS
10796 cat >conftest.
$ac_ext <<_ACEOF
10799 cat confdefs.h
>>conftest.
$ac_ext
10800 cat >>conftest.
$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10818 rm -f conftest.
$ac_objext conftest
$ac_exeext
10819 if { (ac_try
="$ac_link"
10820 case "(($ac_try" in
10821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_link") 2>conftest.er1
10827 grep -v '^ *+' conftest.er1 >conftest.err
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && {
10832 test -z "$ac_c_werror_flag" ||
10833 test ! -s conftest.err
10834 } && test -s conftest$ac_exeext &&
10835 $as_test_x conftest$ac_exeext; then
10836 ac_cv_lib_dl_dlopen=yes
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 ac_cv_lib_dl_dlopen=no
10844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10845 conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
10848 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10849 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10850 if test $ac_cv_lib_dl_dlopen = yes; then
10851 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10853 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10854 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10855 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 ac_check_lib_save_LIBS=$LIBS
10859 LIBS="-lsvld $LIBS"
10860 cat >conftest.$ac_ext <<_ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (ac_try="$ac_link"
10884 case "(($ac_try" in
10885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10886 *) ac_try_echo
=$ac_try;;
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_link") 2>conftest.er1
10891 grep -v '^ *+' conftest.er1
>conftest.err
10893 cat conftest.err
>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } && {
10896 test -z "$ac_c_werror_flag" ||
10897 test ! -s conftest.err
10898 } && test -s conftest
$ac_exeext &&
10899 $as_test_x conftest
$ac_exeext; then
10900 ac_cv_lib_svld_dlopen
=yes
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.
$ac_ext >&5
10905 ac_cv_lib_svld_dlopen
=no
10908 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10909 conftest
$ac_exeext conftest.
$ac_ext
10910 LIBS
=$ac_check_lib_save_LIBS
10912 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10913 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10914 if test $ac_cv_lib_svld_dlopen = yes; then
10915 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10917 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10918 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10919 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 ac_check_lib_save_LIBS
=$LIBS
10924 cat >conftest.
$ac_ext <<_ACEOF
10927 cat confdefs.h
>>conftest.
$ac_ext
10928 cat >>conftest.
$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10941 return dld_link ();
10946 rm -f conftest.
$ac_objext conftest
$ac_exeext
10947 if { (ac_try
="$ac_link"
10948 case "(($ac_try" in
10949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_link") 2>conftest.er1
10955 grep -v '^ *+' conftest.er1 >conftest.err
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } && {
10960 test -z "$ac_c_werror_flag" ||
10961 test ! -s conftest.err
10962 } && test -s conftest$ac_exeext &&
10963 $as_test_x conftest$ac_exeext; then
10964 ac_cv_lib_dld_dld_link=yes
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_cv_lib_dld_dld_link=no
10972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LIBS=$ac_check_lib_save_LIBS
10976 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10977 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10978 if test $ac_cv_lib_dld_dld_link = yes; then
10979 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11000 if test "x$lt_cv_dlopen" != xno; then
11006 case $lt_cv_dlopen in
11008 save_CPPFLAGS="$CPPFLAGS"
11009 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11011 save_LDFLAGS="$LDFLAGS"
11012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11015 LIBS="$lt_cv_dlopen_libs $LIBS"
11017 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11018 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11019 if test "${lt_cv_dlopen_self+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 if test "$cross_compiling" = yes; then :
11023 lt_cv_dlopen_self=cross
11025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11026 lt_status=$lt_dlunknown
11027 cat > conftest.$ac_ext <<EOF
11028 #line 11028 "configure"
11029 #include "confdefs.h"
11038 # define LT_DLGLOBAL RTLD_GLOBAL
11041 # define LT_DLGLOBAL DL_GLOBAL
11043 # define LT_DLGLOBAL 0
11047 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11048 find out it does not work in some platform. */
11049 #ifndef LT_DLLAZY_OR_NOW
11051 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11054 # define LT_DLLAZY_OR_NOW DL_LAZY
11057 # define LT_DLLAZY_OR_NOW RTLD_NOW
11060 # define LT_DLLAZY_OR_NOW DL_NOW
11062 # define LT_DLLAZY_OR_NOW 0
11070 extern "C" void exit (int);
11073 void fnord() { int i=42;}
11076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11077 int status = $lt_dlunknown;
11081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11083 /* dlclose (self); */
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092 (eval $ac_link) 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11096 (./conftest; exit; ) >&5 2>/dev/null
11098 case x$lt_status in
11099 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11100 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11101 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11104 # compilation failed
11105 lt_cv_dlopen_self=no
11112 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11113 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11115 if test "x$lt_cv_dlopen_self" = xyes; then
11116 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11117 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11118 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11119 if test "${lt_cv_dlopen_self_static+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11122 if test "$cross_compiling" = yes; then :
11123 lt_cv_dlopen_self_static=cross
11125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11126 lt_status=$lt_dlunknown
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11128 "configure"
11129 #include "confdefs.h"
11138 # define LT_DLGLOBAL RTLD_GLOBAL
11141 # define LT_DLGLOBAL DL_GLOBAL
11143 # define LT_DLGLOBAL 0
11147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11148 find out it does not work in some platform. */
11149 #ifndef LT_DLLAZY_OR_NOW
11151 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11154 # define LT_DLLAZY_OR_NOW DL_LAZY
11157 # define LT_DLLAZY_OR_NOW RTLD_NOW
11160 # define LT_DLLAZY_OR_NOW DL_NOW
11162 # define LT_DLLAZY_OR_NOW 0
11170 extern "C" void exit (int);
11173 void fnord() { int i=42;}
11176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11177 int status = $lt_dlunknown;
11181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11182 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11183 /* dlclose (self); */
11191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11192 (eval $ac_link) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11196 (./conftest; exit; ) >&5 2>/dev/null
11198 case x$lt_status in
11199 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11200 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11201 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11204 # compilation failed
11205 lt_cv_dlopen_self_static=no
11212 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11213 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11216 CPPFLAGS="$save_CPPFLAGS"
11217 LDFLAGS="$save_LDFLAGS"
11222 case $lt_cv_dlopen_self in
11223 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11224 *) enable_dlopen_self=unknown ;;
11227 case $lt_cv_dlopen_self_static in
11228 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11229 *) enable_dlopen_self_static=unknown ;;
11234 # Report which library types will actually be built
11235 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11236 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11237 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11238 echo "${ECHO_T}$can_build_shared" >&6; }
11240 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11241 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11242 test "$can_build_shared" = "no" && enable_shared=no
11244 # On AIX, shared libraries and static libraries use the same namespace, and
11245 # are all built from PIC.
11248 test "$enable_shared" = yes && enable_static=no
11249 if test -n "$RANLIB"; then
11250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11251 postinstall_cmds='$RANLIB $lib'
11256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11257 test "$enable_shared" = yes && enable_static=no
11261 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11262 echo "${ECHO_T}$enable_shared" >&6; }
11264 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11265 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11266 # Make sure either enable_shared or enable_static is yes.
11267 test "$enable_shared" = yes || enable_static=yes
11268 { echo "$as_me:$LINENO: result: $enable_static" >&5
11269 echo "${ECHO_T}$enable_static" >&6; }
11271 # The else clause should only fire when bootstrapping the
11272 # libtool distribution, otherwise you forgot to ship ltmain.sh
11273 # with your package, and you will get complaints that there are
11274 # no rules to generate ltmain.sh.
11275 if test -f "$ltmain"; then
11276 # See if we are running on zsh, and set the options which allow our commands through
11277 # without removal of \ escapes.
11278 if test -n "${ZSH_VERSION+set}" ; then
11279 setopt NO_GLOB_SUBST
11281 # Now quote all the things that may contain metacharacters while being
11282 # careful not to overquote the AC_SUBSTed values. We take copies of the
11283 # variables and quote the copies for generation of the libtool script.
11284 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11286 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11287 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11288 deplibs_check_method reload_flag reload_cmds need_locks \
11289 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11290 lt_cv_sys_global_symbol_to_c_name_address \
11291 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11292 old_postinstall_cmds old_postuninstall_cmds \
11296 lt_prog_compiler_wl \
11297 lt_prog_compiler_pic \
11298 lt_prog_compiler_static \
11299 lt_prog_compiler_no_builtin_flag \
11300 export_dynamic_flag_spec \
11301 thread_safe_flag_spec \
11302 whole_archive_flag_spec \
11303 enable_shared_with_static_runtimes \
11305 old_archive_from_new_cmds \
11310 compiler_lib_search_path \
11312 archive_expsym_cmds \
11314 postuninstall_cmds \
11315 old_archive_from_expsyms_cmds \
11316 allow_undefined_flag \
11317 no_undefined_flag \
11318 export_symbols_cmds \
11319 hardcode_libdir_flag_spec \
11320 hardcode_libdir_flag_spec_ld \
11321 hardcode_libdir_separator \
11322 hardcode_automatic \
11324 module_expsym_cmds \
11325 lt_cv_prog_compiler_c_o \
11328 include_expsyms; do
11331 old_archive_cmds | \
11332 old_archive_from_new_cmds | \
11334 archive_expsym_cmds | \
11336 module_expsym_cmds | \
11337 old_archive_from_expsyms_cmds | \
11338 export_symbols_cmds | \
11339 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11340 postinstall_cmds | postuninstall_cmds | \
11341 old_postinstall_cmds | old_postuninstall_cmds | \
11342 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11343 # Double-quote double-evaled strings.
11344 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
11347 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
11353 *'\$0 --fallback-echo"')
11354 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11358 cfgfile="${ofile}T"
11359 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11361 { echo "$as_me:$LINENO: creating $ofile" >&5
11362 echo "$as_me: creating $ofile" >&6;}
11364 cat <<__EOF__ >> "$cfgfile"
11367 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
11368 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11369 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11371 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11372 # Free Software Foundation, Inc.
11374 # This file is part of GNU Libtool:
11375 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11377 # This program is free software; you can redistribute it and/or modify
11378 # it under the terms of the GNU General Public License as published by
11379 # the Free Software Foundation; either version 2 of the License, or
11380 # (at your option) any later version.
11382 # This program is distributed in the hope that it will be useful, but
11383 # WITHOUT ANY WARRANTY; without even the implied warranty of
11384 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11385 # General Public License for more details.
11387 # You should have received a copy of the GNU General Public License
11388 # along with this program; if not, write to the Free Software
11389 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11391 # As a special exception to the GNU General Public License, if you
11392 # distribute this file as part of a program that contains a
11393 # configuration script generated by Autoconf, you may include it under
11394 # the same distribution terms that you use for the rest of that program.
11396 # A sed program that does not truncate output.
11399 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11400 Xsed="$SED -e 1s/^X//"
11402 # The HP-UX ksh and POSIX shell print the target directory to stdout
11403 # if CDPATH is set.
11404 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11406 # The names of the tagged configurations supported by this script.
11409 # ### BEGIN LIBTOOL CONFIG
11411 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
11413 # Shell to use when invoking shell scripts.
11416 # Whether or not to build shared libraries.
11417 build_libtool_libs=$enable_shared
11419 # Whether or not to build static libraries.
11420 build_old_libs=$enable_static
11422 # Whether or not to add -lc for building shared libraries.
11423 build_libtool_need_lc=$archive_cmds_need_lc
11425 # Whether or not to disallow shared libs when runtime libs are static
11426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11428 # Whether or not to optimize for fast installation.
11429 fast_install=$enable_fast_install
11432 host_alias=$host_alias
11436 # The build system.
11437 build_alias=$build_alias
11441 # An echo program that does not interpret backslashes.
11446 AR_FLAGS=$lt_AR_FLAGS
11451 # LTCC compiler flags.
11452 LTCFLAGS=$lt_LTCFLAGS
11454 # A language-specific compiler.
11457 # Is the compiler the GNU C compiler?
11463 # The linker used to build libraries.
11466 # Whether we need hard or soft links.
11469 # A BSD-compatible nm program.
11472 # A symbol stripping program
11475 # Used to examine libraries when file_magic_cmd begins "file"
11476 MAGIC_CMD=$MAGIC_CMD
11478 # Used on cygwin: DLL creation program.
11481 # Used on cygwin: object dumper.
11484 # Used on cygwin: assembler.
11487 # The name of the directory that contains temporary libtool files.
11490 # How to create reloadable object files.
11491 reload_flag=$lt_reload_flag
11492 reload_cmds=$lt_reload_cmds
11494 # How to pass a linker flag through the compiler.
11495 wl=$lt_lt_prog_compiler_wl
11497 # Object file suffix (normally "o").
11498 objext="$ac_objext"
11500 # Old archive suffix (normally "a").
11503 # Shared library suffix (normally ".so").
11504 shrext_cmds='$shrext_cmds'
11506 # Executable file suffix (normally "").
11509 # Additional compiler flags for building library objects.
11510 pic_flag=$lt_lt_prog_compiler_pic
11513 # What is the maximum length of a command?
11514 max_cmd_len=$lt_cv_sys_max_cmd_len
11516 # Does compiler simultaneously support -c and -o options?
11517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11519 # Must we lock files when doing compilation?
11520 need_locks=$lt_need_locks
11522 # Do we need the lib prefix for modules?
11523 need_lib_prefix=$need_lib_prefix
11525 # Do we need a version for libraries?
11526 need_version=$need_version
11528 # Whether dlopen is supported.
11529 dlopen_support=$enable_dlopen
11531 # Whether dlopen of programs is supported.
11532 dlopen_self=$enable_dlopen_self
11534 # Whether dlopen of statically linked programs is supported.
11535 dlopen_self_static=$enable_dlopen_self_static
11537 # Compiler flag to prevent dynamic linking.
11538 link_static_flag=$lt_lt_prog_compiler_static
11540 # Compiler flag to turn off builtin functions.
11541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11543 # Compiler flag to allow reflexive dlopens.
11544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11546 # Compiler flag to generate shared objects directly from archives.
11547 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11549 # Compiler flag to generate thread-safe objects.
11550 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11552 # Library versioning type.
11553 version_type=$version_type
11555 # Format of library name prefix.
11556 libname_spec=$lt_libname_spec
11558 # List of archive names. First name is the real one, the rest are links.
11559 # The last name is the one that the linker finds with -lNAME.
11560 library_names_spec=$lt_library_names_spec
11562 # The coded name of the library, if different from the real name.
11563 soname_spec=$lt_soname_spec
11565 # Commands used to build and install an old-style archive.
11567 old_archive_cmds=$lt_old_archive_cmds
11568 old_postinstall_cmds=$lt_old_postinstall_cmds
11569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11571 # Create an old-style archive from a shared archive.
11572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11574 # Create a temporary old-style archive to link instead of a shared archive.
11575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11577 # Commands used to build and install a shared archive.
11578 archive_cmds=$lt_archive_cmds
11579 archive_expsym_cmds=$lt_archive_expsym_cmds
11580 postinstall_cmds=$lt_postinstall_cmds
11581 postuninstall_cmds=$lt_postuninstall_cmds
11583 # Commands used to build a loadable module (assumed same as above if empty)
11584 module_cmds=$lt_module_cmds
11585 module_expsym_cmds=$lt_module_expsym_cmds
11587 # Commands to strip libraries.
11588 old_striplib=$lt_old_striplib
11589 striplib=$lt_striplib
11591 # Dependencies to place before the objects being linked to create a
11593 predep_objects=$lt_predep_objects
11595 # Dependencies to place after the objects being linked to create a
11597 postdep_objects=$lt_postdep_objects
11599 # Dependencies to place before the objects being linked to create a
11601 predeps=$lt_predeps
11603 # Dependencies to place after the objects being linked to create a
11605 postdeps=$lt_postdeps
11607 # The library search path used internally by the compiler when linking
11608 # a shared library.
11609 compiler_lib_search_path=$lt_compiler_lib_search_path
11611 # Method to check whether dependent libraries are shared objects.
11612 deplibs_check_method=$lt_deplibs_check_method
11614 # Command to use when deplibs_check_method == file_magic.
11615 file_magic_cmd=$lt_file_magic_cmd
11617 # Flag that allows shared libraries with undefined symbols to be built.
11618 allow_undefined_flag=$lt_allow_undefined_flag
11620 # Flag that forces no undefined symbols.
11621 no_undefined_flag=$lt_no_undefined_flag
11623 # Commands used to finish a libtool library installation in a directory.
11624 finish_cmds=$lt_finish_cmds
11626 # Same as above, but a single script fragment to be evaled but not shown.
11627 finish_eval=$lt_finish_eval
11629 # Take the output of nm and produce a listing of raw symbols and C names.
11630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11632 # Transform the output of nm in a proper C declaration
11633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11635 # Transform the output of nm in a C name address pair
11636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11638 # This is the shared library runtime path variable.
11639 runpath_var=$runpath_var
11641 # This is the shared library path variable.
11642 shlibpath_var=$shlibpath_var
11644 # Is shlibpath searched before the hard-coded library search path?
11645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11647 # How to hardcode a shared library path into an executable.
11648 hardcode_action=$hardcode_action
11650 # Whether we should hardcode library paths into libraries.
11651 hardcode_into_libs=$hardcode_into_libs
11653 # Flag to hardcode \$libdir into a binary during linking.
11654 # This must work even if \$libdir does not exist.
11655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11657 # If ld is used when linking, flag to hardcode \$libdir into
11658 # a binary during linking. This must work even if \$libdir does
11660 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11662 # Whether we need a single -rpath flag with a separated argument.
11663 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11665 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11666 # resulting binary.
11667 hardcode_direct=$hardcode_direct
11669 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11670 # resulting binary.
11671 hardcode_minus_L=$hardcode_minus_L
11673 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11674 # the resulting binary.
11675 hardcode_shlibpath_var=$hardcode_shlibpath_var
11677 # Set to yes if building a shared library automatically hardcodes DIR into the library
11678 # and all subsequent libraries and executables linked against it.
11679 hardcode_automatic=$hardcode_automatic
11681 # Variables whose values should be saved in libtool wrapper scripts and
11682 # restored at relink time.
11683 variables_saved_for_relink="$variables_saved_for_relink"
11685 # Whether libtool must link a program against all its dependency libraries.
11686 link_all_deplibs=$link_all_deplibs
11688 # Compile-time system search path for libraries
11689 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11691 # Run-time system search path for libraries
11692 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11694 # Fix the shell variable \$srcfile for the compiler.
11695 fix_srcfile_path=$lt_fix_srcfile_path
11697 # Set to yes if exported symbols are required.
11698 always_export_symbols=$always_export_symbols
11700 # The commands to list exported symbols.
11701 export_symbols_cmds=$lt_export_symbols_cmds
11703 # The commands to extract the exported symbol list from a shared archive.
11704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11706 # Symbols that should not be listed in the preloaded symbols.
11707 exclude_expsyms=$lt_exclude_expsyms
11709 # Symbols that must always be exported.
11710 include_expsyms=$lt_include_expsyms
11712 # ### END LIBTOOL CONFIG
11719 cat <<\EOF >> "$cfgfile"
11721 # AIX sometimes has problems with the GCC collect2 program. For some
11722 # reason, if we set the COLLECT_NAMES environment variable, the problems
11723 # vanish in a puff of smoke.
11724 if test "X${COLLECT_NAMES+set}" != Xset; then
11726 export COLLECT_NAMES
11732 # We use sed instead of cat because bash on DJGPP gets confused if
11733 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11734 # text mode, it properly converts lines to CR/LF. This bash problem
11735 # is reportedly fixed, but why not run on old versions too?
11736 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11738 mv -f "$cfgfile" "$ofile" || \
11739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11743 # If there is no Makefile yet, we rely on a make rule to execute
11744 # `config.status
--recheck' to rerun these tests and create the
11745 # libtool script then.
11746 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
11747 if test -f "$ltmain_in"; then
11748 test -f Makefile && make "$ltmain"
11754 ac_cpp='$CPP $CPPFLAGS'
11755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
11756 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
11757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11762 # Check whether --with-tags was given.
11763 if test "${with_tags+set}" = set; then
11764 withval=$with_tags; tagnames="$withval"
11768 if test -f "$ltmain" && test -n "$tagnames"; then
11769 if test ! -f "${ofile}"; then
11770 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
11771 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
11774 if test -z "$LTCC"; then
11775 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
11776 if test -z "$LTCC"; then
11777 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11778 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
11780 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
11781 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
11784 if test -z "$LTCFLAGS"; then
11785 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
11788 # Extract list of available tagged configurations in $ofile.
11789 # Note that this assumes the entire list is on one line.
11790 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11793 for tagname in $tagnames; do
11795 # Check whether tagname contains only valid characters
11796 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11798 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11799 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11800 { (exit 1); exit 1; }; }
11804 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11806 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11807 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11808 { (exit 1); exit 1; }; }
11811 # Update the list of available tags.
11812 if test -n "$tagname"; then
11813 echo appending configuration tag \"$tagname\" to $ofile
11817 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11818 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
11819 (test "X$CXX" != "Xg++"))) ; then
11821 ac_cpp='$CXXCPP $CPPFLAGS'
11822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11829 archive_cmds_need_lc_CXX=no
11830 allow_undefined_flag_CXX=
11831 always_export_symbols_CXX=no
11832 archive_expsym_cmds_CXX=
11833 export_dynamic_flag_spec_CXX=
11834 hardcode_direct_CXX=no
11835 hardcode_libdir_flag_spec_CXX=
11836 hardcode_libdir_flag_spec_ld_CXX=
11837 hardcode_libdir_separator_CXX=
11838 hardcode_minus_L_CXX=no
11839 hardcode_shlibpath_var_CXX=unsupported
11840 hardcode_automatic_CXX=no
11842 module_expsym_cmds_CXX=
11843 link_all_deplibs_CXX=unknown
11844 old_archive_cmds_CXX=$old_archive_cmds
11845 no_undefined_flag_CXX=
11846 whole_archive_flag_spec_CXX=
11847 enable_shared_with_static_runtimes_CXX=no
11849 # Dependencies to place before and after the object being linked:
11850 predep_objects_CXX=
11851 postdep_objects_CXX=
11854 compiler_lib_search_path_CXX=
11856 # Source file extension for C++ test sources.
11859 # Object file extension for compiled C++ test sources.
11863 # Code to be used in simple compile tests
11864 lt_simple_compile_test_code="int some_variable = 0;"
11866 # Code to be used in simple link tests
11867 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11869 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11871 # If no C compiler was specified, use CC.
11874 # If no C compiler flags were specified, use CFLAGS.
11875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11877 # Allow CC to be a program name with arguments.
11881 # save warnings/boilerplate of simple test code
11882 ac_outfile=conftest.$ac_objext
11883 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11884 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11885 _lt_compiler_boilerplate=`cat conftest.err
`
11888 ac_outfile=conftest.$ac_objext
11889 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11890 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11891 _lt_linker_boilerplate=`cat conftest.err
`
11895 # Allow CC to be a program name with arguments.
11900 lt_save_with_gnu_ld=$with_gnu_ld
11901 lt_save_path_LD=$lt_cv_path_LD
11902 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11903 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11905 $as_unset lt_cv_prog_gnu_ld
11907 if test -n "${lt_cv_path_LDCXX+set}"; then
11908 lt_cv_path_LD=$lt_cv_path_LDCXX
11910 $as_unset lt_cv_path_LD
11912 test -z "${LDCXX+set}" || LD=$LDCXX
11916 for cc_temp in $compiler""; do
11918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11924 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11927 # We don't want -fno-exception wen compiling C++ code, so set the
11928 # no_builtin_flag separately
11929 if test "$GXX" = yes; then
11930 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11932 lt_prog_compiler_no_builtin_flag_CXX=
11935 if test "$GXX" = yes; then
11936 # Set up default GNU C++ configuration
11939 # Check whether --with-gnu-ld was given.
11940 if test "${with_gnu_ld+set}" = set; then
11941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11947 if test "$GCC" = yes; then
11948 # Check if gcc -print-prog-name=ld gives a path.
11949 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11950 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11953 # gcc leaves a trailing carriage return which upsets mingw
11954 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
11956 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
11959 # Accept absolute paths.
11961 re_direlt='/[^/][^/]*/\.\./'
11962 # Canonicalize the pathname of ld
11963 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
11964 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11965 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
11967 test -z "$LD" && LD="$ac_prog"
11970 # If it fails, then pretend we aren't using GCC.
11974 # If it is relative, then search for the first ld in PATH.
11975 with_gnu_ld=unknown
11978 elif test "$with_gnu_ld" = yes; then
11979 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11980 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11982 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11983 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11985 if test "${lt_cv_path_LD+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 if test -z "$LD"; then
11989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11990 for ac_dir in $PATH; do
11992 test -z "$ac_dir" && ac_dir=.
11993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11994 lt_cv_path_LD="$ac_dir/$ac_prog"
11995 # Check to see if the program is GNU ld. I'd rather use --version,
11996 # but apparently some variants of GNU ld only accept -v.
11997 # Break only if it was the GNU/non-GNU ld that we prefer.
11998 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
11999 *GNU* | *'with BFD'*)
12000 test "$with_gnu_ld" != no && break
12003 test "$with_gnu_ld" != yes && break
12010 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12014 LD="$lt_cv_path_LD"
12015 if test -n "$LD"; then
12016 { echo "$as_me:$LINENO: result: $LD" >&5
12017 echo "${ECHO_T}$LD" >&6; }
12019 { echo "$as_me:$LINENO: result: no" >&5
12020 echo "${ECHO_T}no" >&6; }
12022 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12023 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12024 { (exit 1); exit 1; }; }
12025 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12026 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12027 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12031 case `$LD -v 2>&1 </dev
/null
` in
12032 *GNU* | *'with BFD'*)
12033 lt_cv_prog_gnu_ld=yes
12036 lt_cv_prog_gnu_ld=no
12040 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12041 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12042 with_gnu_ld=$lt_cv_prog_gnu_ld
12046 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12047 # archiving commands below assume that GNU ld is being used.
12048 if test "$with_gnu_ld" = yes; then
12049 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12050 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'
12052 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12055 # If archive_cmds runs LD, not CC, wlarc should be empty
12056 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12057 # investigate it a little bit more. (MM)
12060 # ancient GNU ld didn't support --whole-archive et. al.
12061 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
12062 grep 'no-whole-archive' > /dev/null; then
12063 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12065 whole_archive_flag_spec_CXX=
12071 # A generic and very simple default shared library creation
12072 # command for GNU C++ for the case where it uses the native
12073 # linker, instead of GNU ld. If possible, this setting should
12074 # overridden to take advantage of the native linker features on
12075 # the platform it is being used on.
12076 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12079 # Commands to make compiler produce verbose output that lists
12080 # what "hidden" libraries, object files and flags are used when
12081 # linking a shared library.
12082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12090 # PORTME: fill in a description of your system's C++ link characteristics
12091 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12092 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12096 # FIXME: insert proper C++ library support
12100 if test "$host_cpu" = ia64; then
12101 # On IA64, the linker does run time linking by default, so we don't
12102 # have to do anything special.
12103 aix_use_runtimelinking=no
12104 exp_sym_flag='-Bexport'
12107 aix_use_runtimelinking=no
12109 # Test if we are trying to use run time linking or normal
12110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12111 # need to do runtime linking.
12112 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12113 for ld_flag in $LDFLAGS; do
12116 aix_use_runtimelinking=yes
12124 exp_sym_flag='-bexport'
12125 no_entry_flag='-bnoentry'
12128 # When large executables or shared objects are built, AIX ld can
12129 # have problems creating the table of contents. If linking a library
12130 # or program results in "error TOC overflow" add -mminimal-toc to
12131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12134 archive_cmds_CXX=''
12135 hardcode_direct_CXX=yes
12136 hardcode_libdir_separator_CXX=':'
12137 link_all_deplibs_CXX=yes
12139 if test "$GXX" = yes; then
12140 case $host_os in aix4.[012]|aix4.[012].*)
12141 # We only want to do this on AIX 4.2 and lower, the check
12142 # below for broken collect2 doesn't work under 4.3+
12143 collect2name=`${CC} -print-prog-name=collect2
`
12144 if test -f "$collect2name" && \
12145 strings "$collect2name" | grep resolve_lib_name >/dev/null
12147 # We have reworked collect2
12150 # We have old collect2
12151 hardcode_direct_CXX=unsupported
12152 # It fails to find uninstalled libraries when the uninstalled
12153 # path is not listed in the libpath. Setting hardcode_minus_L
12154 # to unsupported forces relinking
12155 hardcode_minus_L_CXX=yes
12156 hardcode_libdir_flag_spec_CXX='-L$libdir'
12157 hardcode_libdir_separator_CXX=
12161 shared_flag='-shared'
12162 if test "$aix_use_runtimelinking" = yes; then
12163 shared_flag="$shared_flag "'${wl}-G'
12167 if test "$host_cpu" = ia64; then
12168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12169 # chokes on -Wl,-G. The following line is correct:
12172 if test "$aix_use_runtimelinking" = yes; then
12173 shared_flag='${wl}-G'
12175 shared_flag='${wl}-bM:SRE'
12180 # It seems that -bexpall does not export symbols beginning with
12181 # underscore (_), so it is better to generate a list of symbols to export.
12182 always_export_symbols_CXX=yes
12183 if test "$aix_use_runtimelinking" = yes; then
12184 # Warning - without using the other runtime loading flags (-brtl),
12185 # -berok will link without error, but may produce a broken library.
12186 allow_undefined_flag_CXX='-berok'
12187 # Determine the default libpath from the value encoded in an empty executable.
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12203 rm -f conftest.$ac_objext conftest$ac_exeext
12204 if { (ac_try="$ac_link"
12205 case "(($ac_try" in
12206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12207 *) ac_try_echo
=$ac_try;;
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_link") 2>conftest.er1
12212 grep -v '^ *+' conftest.er1
>conftest.err
12214 cat conftest.err
>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } && {
12217 test -z "$ac_cxx_werror_flag" ||
12218 test ! -s conftest.err
12219 } && test -s conftest
$ac_exeext &&
12220 $as_test_x conftest
$ac_exeext; then
12222 lt_aix_libpath_sed
='
12223 /Import File Strings/,/^$/ {
12229 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12230 # Check for a 64-bit object if we didn't find anything.
12231 if test -z "$aix_libpath"; then
12232 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.
$ac_ext >&5
12241 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12242 conftest
$ac_exeext conftest.
$ac_ext
12243 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12245 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12247 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"
12249 if test "$host_cpu" = ia64
; then
12250 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12251 allow_undefined_flag_CXX
="-z nodefs"
12252 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"
12254 # Determine the default libpath from the value encoded in an empty executable.
12255 cat >conftest.
$ac_ext <<_ACEOF
12258 cat confdefs.h
>>conftest.
$ac_ext
12259 cat >>conftest.
$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12270 rm -f conftest.
$ac_objext conftest
$ac_exeext
12271 if { (ac_try
="$ac_link"
12272 case "(($ac_try" in
12273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_link") 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_cxx_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest$ac_exeext &&
12287 $as_test_x conftest$ac_exeext; then
12289 lt_aix_libpath_sed='
12290 /Import File Strings/,/^$/ {
12296 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
12297 # Check for a 64-bit object if we didn't find anything.
12298 if test -z "$aix_libpath"; then
12299 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12309 conftest$ac_exeext conftest.$ac_ext
12310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12312 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12313 # Warning - without using the other run time loading flags,
12314 # -berok will link without error, but may produce a broken library.
12315 no_undefined_flag_CXX=' ${wl}-bernotok'
12316 allow_undefined_flag_CXX=' ${wl}-berok'
12317 # Exported symbols can be pulled into shared objects from archives
12318 whole_archive_flag_spec_CXX='$convenience'
12319 archive_cmds_need_lc_CXX=yes
12320 # This is similar to how AIX traditionally builds its shared libraries.
12321 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'
12327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12328 allow_undefined_flag_CXX=unsupported
12329 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12330 # support --undefined. This deserves some investigation. FIXME
12331 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12338 case $cc_basename in
12340 # FIXME: insert proper C++ library support
12346 cygwin* | mingw* | pw32*)
12347 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12348 # as there is no search path for DLLs.
12349 hardcode_libdir_flag_spec_CXX='-L$libdir'
12350 allow_undefined_flag_CXX=unsupported
12351 always_export_symbols_CXX=no
12352 enable_shared_with_static_runtimes_CXX=yes
12354 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12355 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'
12356 # If the export-symbols file already is a .def file (1st line
12357 # is EXPORTS), use it as is; otherwise, prepend...
12358 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
12359 cp $export_symbols $output_objdir/$soname.def;
12361 echo EXPORTS > $output_objdir/$soname.def;
12362 cat $export_symbols >> $output_objdir/$soname.def;
12364 $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'
12369 darwin* | rhapsody*)
12371 rhapsody* | darwin1.[012])
12372 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12375 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12376 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12378 case ${MACOSX_DEPLOYMENT_TARGET} in
12380 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12383 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12389 archive_cmds_need_lc_CXX=no
12390 hardcode_direct_CXX=no
12391 hardcode_automatic_CXX=yes
12392 hardcode_shlibpath_var_CXX=unsupported
12393 whole_archive_flag_spec_CXX=''
12394 link_all_deplibs_CXX=yes
12396 if test "$GXX" = yes ; then
12397 lt_int_apple_cc_single_mod=no
12398 output_verbose_link_cmd='echo'
12399 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12400 lt_int_apple_cc_single_mod=yes
12402 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12403 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12405 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'
12407 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12408 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12409 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12410 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}'
12412 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}'
12414 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}'
12416 case $cc_basename in
12418 output_verbose_link_cmd='echo'
12419 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'
12420 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12421 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12422 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}'
12423 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}'
12433 case $cc_basename in
12435 # FIXME: insert proper C++ library support
12439 # Green Hills C++ Compiler
12440 # FIXME: insert proper C++ library support
12444 # FIXME: insert proper C++ library support
12450 # C++ shared libraries reported to be fairly broken before switch to ELF
12454 archive_cmds_need_lc_CXX=no
12456 freebsd* | dragonfly*)
12457 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12464 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12465 hardcode_libdir_separator_CXX=:
12466 export_dynamic_flag_spec_CXX='${wl}-E'
12467 hardcode_direct_CXX=yes
12468 hardcode_minus_L_CXX=yes # Not in the search PATH,
12469 # but as the default
12470 # location of the library.
12472 case $cc_basename in
12474 # FIXME: insert proper C++ library support
12478 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'
12479 # Commands to make compiler produce verbose output that lists
12480 # what "hidden" libraries, object files and flags are used when
12481 # linking a shared library.
12483 # There doesn't appear to be a way to prevent this compiler from
12484 # explicitly linking system object files so we need to strip them
12485 # from the output so that they don't get included in the library
12487 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'
12490 if test "$GXX" = yes; then
12491 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'
12493 # FIXME: insert proper C++ library support
12500 if test $with_gnu_ld = no; then
12501 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12502 hardcode_libdir_separator_CXX=:
12507 export_dynamic_flag_spec_CXX='${wl}-E'
12513 hardcode_direct_CXX=no
12514 hardcode_shlibpath_var_CXX=no
12517 hardcode_direct_CXX=yes
12518 hardcode_minus_L_CXX=yes # Not in the search PATH,
12519 # but as the default
12520 # location of the library.
12524 case $cc_basename in
12526 # FIXME: insert proper C++ library support
12532 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12535 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12538 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12541 # Commands to make compiler produce verbose output that lists
12542 # what "hidden" libraries, object files and flags are used when
12543 # linking a shared library.
12545 # There doesn't appear to be a way to prevent this compiler from
12546 # explicitly linking system object files so we need to strip them
12547 # from the output so that they don't get included in the library
12549 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'
12552 if test "$GXX" = yes; then
12553 if test $with_gnu_ld = no; then
12556 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12559 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12562 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'
12567 # FIXME: insert proper C++ library support
12574 hardcode_direct_CXX=no
12575 hardcode_shlibpath_var_CXX=no
12576 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12577 export_dynamic_flag_spec_CXX='${wl}-E'
12578 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12579 # Instead, shared libraries are loaded at an image base (0x10000000 by
12580 # default) and relocated if they conflict, which is a slow very memory
12581 # consuming and fragmenting process. To avoid this, we pick a random,
12582 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12583 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12584 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'
12585 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'
12588 case $cc_basename in
12591 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'
12593 # Archives containing C++ object files must be created using
12594 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12595 # necessary to make sure instantiated templates are included
12597 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12600 if test "$GXX" = yes; then
12601 if test "$with_gnu_ld" = no; then
12602 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'
12604 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'
12607 link_all_deplibs_CXX=yes
12610 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12611 hardcode_libdir_separator_CXX=:
12613 linux* | k*bsd*-gnu)
12614 case $cc_basename in
12616 # Kuck and Associates, Inc. (KAI) C++ Compiler
12618 # KCC will only create a shared library if the output file
12619 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12620 # to its proper name (with version) after linking.
12621 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'
12622 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'
12623 # Commands to make compiler produce verbose output that lists
12624 # what "hidden" libraries, object files and flags are used when
12625 # linking a shared library.
12627 # There doesn't appear to be a way to prevent this compiler from
12628 # explicitly linking system object files so we need to strip them
12629 # from the output so that they don't get included in the library
12631 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'
12633 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
12634 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12636 # Archives containing C++ object files must be created using
12637 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12638 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12643 # version 8.0 and above of icpc choke on multiply defined symbols
12644 # if we add $predep_objects and $postdep_objects, however 7.1 and
12645 # earlier do not add the objects themselves.
12646 case `$CC -V 2>&1` in
12648 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12649 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'
12651 *) # Version 8.0 or newer
12654 ia64
*) tmp_idyn
=' -i_dynamic';;
12656 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12657 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'
12660 archive_cmds_need_lc_CXX
=no
12661 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12662 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12663 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12666 # Portland Group C++ compiler
12667 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12668 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'
12670 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12671 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12672 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'
12676 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12677 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'
12679 runpath_var
=LD_RUN_PATH
12680 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12681 hardcode_libdir_separator_CXX
=:
12683 # Commands to make compiler produce verbose output that lists
12684 # what "hidden" libraries, object files and flags are used when
12685 # linking a shared library.
12687 # There doesn't appear to be a way to prevent this compiler from
12688 # explicitly linking system object files so we need to strip them
12689 # from the output so that they don't get included in the library
12691 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'
12694 case `$CC -V 2>&1 | sed 5q` in
12697 no_undefined_flag_CXX
=' -zdefs'
12698 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12699 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'
12700 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12701 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'
12703 # Not sure whether something based on
12704 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12706 output_verbose_link_cmd
='echo'
12708 # Archives containing C++ object files must be created using
12709 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12710 # necessary to make sure instantiated templates are included
12712 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12719 # FIXME: insert proper C++ library support
12723 # FIXME: insert proper C++ library support
12727 case $cc_basename in
12729 # FIXME: insert proper C++ library support
12733 # FIXME: insert proper C++ library support
12739 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12740 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12742 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12743 hardcode_direct_CXX
=yes
12744 hardcode_shlibpath_var_CXX
=no
12746 # Workaround some broken pre-1.5 toolchains
12747 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12750 # C++ shared libraries are fairly broken
12754 if test -f /usr
/libexec
/ld.so
; then
12755 hardcode_direct_CXX
=yes
12756 hardcode_shlibpath_var_CXX
=no
12757 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12758 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12759 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12760 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12761 export_dynamic_flag_spec_CXX
='${wl}-E'
12762 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12764 output_verbose_link_cmd
='echo'
12770 case $cc_basename in
12772 # Kuck and Associates, Inc. (KAI) C++ Compiler
12774 # KCC will only create a shared library if the output file
12775 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12776 # to its proper name (with version) after linking.
12777 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'
12779 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12780 hardcode_libdir_separator_CXX
=:
12782 # Archives containing C++ object files must be created using
12783 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12784 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12788 # Rational C++ 2.4.1
12789 # FIXME: insert proper C++ library support
12793 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12794 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'
12796 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12797 hardcode_libdir_separator_CXX
=:
12799 # Commands to make compiler produce verbose output that lists
12800 # what "hidden" libraries, object files and flags are used when
12801 # linking a shared library.
12803 # There doesn't appear to be a way to prevent this compiler from
12804 # explicitly linking system object files so we need to strip them
12805 # from the output so that they don't get included in the library
12807 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'
12810 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12811 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12812 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'
12814 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12815 hardcode_libdir_separator_CXX
=:
12817 # Commands to make compiler produce verbose output that lists
12818 # what "hidden" libraries, object files and flags are used when
12819 # linking a shared library.
12820 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12823 # FIXME: insert proper C++ library support
12830 case $cc_basename in
12832 # Kuck and Associates, Inc. (KAI) C++ Compiler
12834 # KCC will only create a shared library if the output file
12835 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12836 # to its proper name (with version) after linking.
12837 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'
12839 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12840 hardcode_libdir_separator_CXX
=:
12842 # Archives containing C++ object files must be created using
12843 # the KAI C++ compiler.
12844 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
12847 # Rational C++ 2.4.1
12848 # FIXME: insert proper C++ library support
12852 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12853 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'
12854 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12855 echo "-hidden">> $lib.exp~
12856 $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~
12859 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12860 hardcode_libdir_separator_CXX
=:
12862 # Commands to make compiler produce verbose output that lists
12863 # what "hidden" libraries, object files and flags are used when
12864 # linking a shared library.
12866 # There doesn't appear to be a way to prevent this compiler from
12867 # explicitly linking system object files so we need to strip them
12868 # from the output so that they don't get included in the library
12870 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'
12873 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12874 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12875 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'
12877 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12878 hardcode_libdir_separator_CXX
=:
12880 # Commands to make compiler produce verbose output that lists
12881 # what "hidden" libraries, object files and flags are used when
12882 # linking a shared library.
12883 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12886 # FIXME: insert proper C++ library support
12893 # FIXME: insert proper C++ library support
12897 case $cc_basename in
12900 # FIXME: insert proper C++ library support
12905 # FIXME: insert proper C++ library support
12909 # FIXME: insert proper C++ library support
12915 case $cc_basename in
12917 # Sun C++ 4.2, 5.x and Centerline C++
12918 archive_cmds_need_lc_CXX
=yes
12919 no_undefined_flag_CXX
=' -zdefs'
12920 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12921 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12922 $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'
12924 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12925 hardcode_shlibpath_var_CXX
=no
12927 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12929 # The compiler driver will combine and reorder linker options,
12930 # but understands `-z linker_flag'.
12931 # Supported since Solaris 2.6 (maybe 2.5.1?)
12932 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
12935 link_all_deplibs_CXX
=yes
12937 output_verbose_link_cmd
='echo'
12939 # Archives containing C++ object files must be created using
12940 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12941 # necessary to make sure instantiated templates are included
12943 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12946 # Green Hills C++ Compiler
12947 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12949 # The C++ compiler must be used to create the archive.
12950 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12953 # GNU C++ compiler with Solaris linker
12954 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12955 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
12956 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
12957 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12958 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12959 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12961 # Commands to make compiler produce verbose output that lists
12962 # what "hidden" libraries, object files and flags are used when
12963 # linking a shared library.
12964 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12966 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12968 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12969 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12970 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12972 # Commands to make compiler produce verbose output that lists
12973 # what "hidden" libraries, object files and flags are used when
12974 # linking a shared library.
12975 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12978 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
12980 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12982 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12989 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12990 no_undefined_flag_CXX
='${wl}-z,text'
12991 archive_cmds_need_lc_CXX
=no
12992 hardcode_shlibpath_var_CXX
=no
12993 runpath_var
='LD_RUN_PATH'
12995 case $cc_basename in
12997 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12998 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13001 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13002 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13006 sysv5
* | sco3.2v5
* | sco5v6
*)
13007 # Note: We can NOT use -z defs as we might desire, because we do not
13008 # link with -lc, and that would cause any symbols used from libc to
13009 # always be unresolved, which means just about no library would
13010 # ever link correctly. If we're not using GNU ld we use -z text
13011 # though, which does catch some bad symbols but isn't as heavy-handed
13013 # For security reasons, it is highly recommended that you always
13014 # use absolute paths for naming shared libraries, and exclude the
13015 # DT_RUNPATH tag from executables and libraries. But doing so
13016 # requires that you compile everything twice, which is a pain.
13017 # So that behaviour is only enabled if SCOABSPATH is set to a
13018 # non-empty value in the environment. Most likely only useful for
13019 # creating official distributions of packages.
13020 # This is a hack until libtool officially supports absolute path
13021 # names for shared libraries.
13022 no_undefined_flag_CXX
='${wl}-z,text'
13023 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13024 archive_cmds_need_lc_CXX
=no
13025 hardcode_shlibpath_var_CXX
=no
13026 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13027 hardcode_libdir_separator_CXX
=':'
13028 link_all_deplibs_CXX
=yes
13029 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13030 runpath_var
='LD_RUN_PATH'
13032 case $cc_basename in
13034 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13035 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13038 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13039 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13044 case $cc_basename in
13046 # NonStop-UX NCC 3.20
13047 # FIXME: insert proper C++ library support
13051 # FIXME: insert proper C++ library support
13057 # FIXME: insert proper C++ library support
13061 # FIXME: insert proper C++ library support
13065 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13066 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13067 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13073 cat > conftest.
$ac_ext <<EOF
13077 Foo (void) { a = 0; }
13083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13084 (eval $ac_compile) 2>&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; then
13088 # Parse the compiler output and extract the necessary
13089 # objects, libraries and library flags.
13091 # Sentinel used to keep track of whether or not we are before
13092 # the conftest object file.
13093 pre_test_object_deps_done
=no
13095 # The `*' in the case matches for architectures that use `case' in
13096 # $output_verbose_cmd can trigger glob expansion during the loop
13097 # eval without this substitution.
13098 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13100 for p
in `eval $output_verbose_link_cmd`; do
13104 # Some compilers place space between "-{L,R}" and the path.
13105 # Remove the space.
13106 if test $p = "-L" \
13107 ||
test $p = "-R"; then
13114 if test "$pre_test_object_deps_done" = no
; then
13117 # Internal compiler library paths should come after those
13118 # provided the user. The postdeps already come after the
13119 # user supplied libs so there is no need to process them.
13120 if test -z "$compiler_lib_search_path_CXX"; then
13121 compiler_lib_search_path_CXX
="${prev}${p}"
13123 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13126 # The "-l" case would never come before the object being
13127 # linked, so don't bother handling this case.
13130 if test -z "$postdeps_CXX"; then
13131 postdeps_CXX
="${prev}${p}"
13133 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13139 # This assumes that the test object file only shows up
13140 # once in the compiler output.
13141 if test "$p" = "conftest.$objext"; then
13142 pre_test_object_deps_done
=yes
13146 if test "$pre_test_object_deps_done" = no
; then
13147 if test -z "$predep_objects_CXX"; then
13148 predep_objects_CXX
="$p"
13150 predep_objects_CXX
="$predep_objects_CXX $p"
13153 if test -z "$postdep_objects_CXX"; then
13154 postdep_objects_CXX
="$p"
13156 postdep_objects_CXX
="$postdep_objects_CXX $p"
13161 *) ;; # Ignore the rest.
13169 echo "libtool.m4: error: problem compiling CXX test program"
13172 $rm -f confest.
$objext
13174 # PORTME: override above test on systems where it is broken
13177 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13178 # hack all around it, let's just trust "g++" to DTRT.
13179 predep_objects_CXX
=
13180 postdep_objects_CXX
=
13185 case `$CC -V 2>&1 | sed 5q` in
13189 # The more standards-conforming stlport4 library is
13190 # incompatible with the Cstd library. Avoid specifying
13191 # it if it's in CXXFLAGS. Ignore libCrun as
13192 # -library=stlport4 depends on it.
13193 case " $CXX $CXXFLAGS " in
13194 *" -library=stlport4 "*)
13195 solaris_use_stlport4
=yes
13198 if test "$solaris_use_stlport4" != yes; then
13199 postdeps_CXX
='-library=Cstd -library=Crun'
13206 case $cc_basename in
13208 # The more standards-conforming stlport4 library is
13209 # incompatible with the Cstd library. Avoid specifying
13210 # it if it's in CXXFLAGS. Ignore libCrun as
13211 # -library=stlport4 depends on it.
13212 case " $CXX $CXXFLAGS " in
13213 *" -library=stlport4 "*)
13214 solaris_use_stlport4
=yes
13218 # Adding this requires a known-good setup of shared libraries for
13219 # Sun compiler versions before 5.6, else PIC objects from an old
13220 # archive will be linked into the output, leading to subtle bugs.
13221 if test "$solaris_use_stlport4" != yes; then
13222 postdeps_CXX
='-library=Cstd -library=Crun'
13230 case " $postdeps_CXX " in
13231 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13234 lt_prog_compiler_wl_CXX
=
13235 lt_prog_compiler_pic_CXX
=
13236 lt_prog_compiler_static_CXX
=
13238 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13239 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13241 # C++ specific cases for pic, static, wl, etc.
13242 if test "$GXX" = yes; then
13243 lt_prog_compiler_wl_CXX
='-Wl,'
13244 lt_prog_compiler_static_CXX
='-static'
13248 # All AIX code is PIC.
13249 if test "$host_cpu" = ia64
; then
13250 # AIX 5 now supports IA64 processor
13251 lt_prog_compiler_static_CXX
='-Bstatic'
13255 # FIXME: we need at least 68020 code to build shared libraries, but
13256 # adding the `-m68020' flag to GCC prevents building anything better,
13258 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13260 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13261 # PIC is the default for these OSes.
13263 mingw
* | cygwin
* | os2
* | pw32
*)
13264 # This hack is so that the source file can tell whether it is being
13265 # built for inclusion in a dll (and should export symbols for example).
13266 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13267 # (--disable-auto-import) libraries
13268 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13270 darwin
* | rhapsody
*)
13271 # PIC is the default on this platform
13272 # Common symbols not allowed in MH_DYLIB files
13273 lt_prog_compiler_pic_CXX
='-fno-common'
13276 # DJGPP does not support shared libraries at all
13277 lt_prog_compiler_pic_CXX
=
13280 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13281 # Instead, we relocate shared libraries at runtime.
13284 if test -d /usr
/nec
; then
13285 lt_prog_compiler_pic_CXX
=-Kconform_pic
13289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13290 # not for PA HP-UX.
13295 lt_prog_compiler_pic_CXX
='-fPIC'
13300 lt_prog_compiler_pic_CXX
='-fPIC'
13306 # All AIX code is PIC.
13307 if test "$host_cpu" = ia64
; then
13308 # AIX 5 now supports IA64 processor
13309 lt_prog_compiler_static_CXX
='-Bstatic'
13311 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13315 case $cc_basename in
13317 # Green Hills C++ Compiler
13318 # _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"
13323 # PIC is the default on this platform
13324 # Common symbols not allowed in MH_DYLIB files
13325 case $cc_basename in
13327 lt_prog_compiler_pic_CXX
='-qnocommon'
13328 lt_prog_compiler_wl_CXX
='-Wl,'
13333 case $cc_basename in
13335 lt_prog_compiler_pic_CXX
='-KPIC'
13338 # Green Hills C++ Compiler
13339 lt_prog_compiler_pic_CXX
='-pic'
13345 freebsd
* | dragonfly
*)
13346 # FreeBSD uses GNU C++
13348 hpux9
* | hpux10
* | hpux11
*)
13349 case $cc_basename in
13351 lt_prog_compiler_wl_CXX
='-Wl,'
13352 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13353 if test "$host_cpu" != ia64
; then
13354 lt_prog_compiler_pic_CXX
='+Z'
13358 lt_prog_compiler_wl_CXX
='-Wl,'
13359 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13365 lt_prog_compiler_pic_CXX
='+Z'
13374 # This is c89, which is MS Visual C++ (no shared libs)
13375 # Anyone wants to do a port?
13377 irix5
* | irix6
* | nonstopux
*)
13378 case $cc_basename in
13380 lt_prog_compiler_wl_CXX
='-Wl,'
13381 lt_prog_compiler_static_CXX
='-non_shared'
13382 # CC pic flag -KPIC is the default.
13388 linux
* | k
*bsd
*-gnu)
13389 case $cc_basename in
13392 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13393 lt_prog_compiler_pic_CXX
='-fPIC'
13397 lt_prog_compiler_wl_CXX
='-Wl,'
13398 lt_prog_compiler_pic_CXX
='-KPIC'
13399 lt_prog_compiler_static_CXX
='-static'
13402 # Portland Group C++ compiler.
13403 lt_prog_compiler_wl_CXX
='-Wl,'
13404 lt_prog_compiler_pic_CXX
='-fpic'
13405 lt_prog_compiler_static_CXX
='-Bstatic'
13409 # Make sure the PIC flag is empty. It appears that all Alpha
13410 # Linux and Compaq Tru64 Unix objects are PIC.
13411 lt_prog_compiler_pic_CXX
=
13412 lt_prog_compiler_static_CXX
='-non_shared'
13415 case `$CC -V 2>&1 | sed 5q` in
13418 lt_prog_compiler_pic_CXX
='-KPIC'
13419 lt_prog_compiler_static_CXX
='-Bstatic'
13420 lt_prog_compiler_wl_CXX
='-Qoption ld '
13431 case $cc_basename in
13433 lt_prog_compiler_pic_CXX
='-W c,exportall'
13441 osf3
* | osf4
* | osf5
*)
13442 case $cc_basename in
13444 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13447 # Rational C++ 2.4.1
13448 lt_prog_compiler_pic_CXX
='-pic'
13451 # Digital/Compaq C++
13452 lt_prog_compiler_wl_CXX
='-Wl,'
13453 # Make sure the PIC flag is empty. It appears that all Alpha
13454 # Linux and Compaq Tru64 Unix objects are PIC.
13455 lt_prog_compiler_pic_CXX
=
13456 lt_prog_compiler_static_CXX
='-non_shared'
13465 case $cc_basename in
13467 # Sun C++ 4.2, 5.x and Centerline C++
13468 lt_prog_compiler_pic_CXX
='-KPIC'
13469 lt_prog_compiler_static_CXX
='-Bstatic'
13470 lt_prog_compiler_wl_CXX
='-Qoption ld '
13473 # Green Hills C++ Compiler
13474 lt_prog_compiler_pic_CXX
='-PIC'
13481 case $cc_basename in
13484 lt_prog_compiler_pic_CXX
='-pic'
13485 lt_prog_compiler_static_CXX
='-Bstatic'
13489 lt_prog_compiler_pic_CXX
='-pic'
13496 case $cc_basename in
13498 # NonStop-UX NCC 3.20
13499 lt_prog_compiler_pic_CXX
='-KPIC'
13505 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13506 case $cc_basename in
13508 lt_prog_compiler_wl_CXX
='-Wl,'
13509 lt_prog_compiler_pic_CXX
='-KPIC'
13510 lt_prog_compiler_static_CXX
='-Bstatic'
13517 lt_prog_compiler_can_build_shared_CXX
=no
13522 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13523 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13526 # Check to make sure the PIC flag actually works.
13528 if test -n "$lt_prog_compiler_pic_CXX"; then
13530 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13531 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13532 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 lt_prog_compiler_pic_works_CXX
=no
13536 ac_outfile
=conftest.
$ac_objext
13537 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13538 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13539 # Insert the option either (1) after the last *FLAGS variable, or
13540 # (2) before a word containing "conftest.", or (3) at the end.
13541 # Note that $ac_compile itself does not contain backslashes and begins
13542 # with a dollar sign (not a hyphen), so the echo should work correctly.
13543 # The option is referenced via a variable to avoid confusing sed.
13544 lt_compile
=`echo "$ac_compile" | $SED \
13545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13547 -e 's:$: $lt_compiler_flag:'`
13548 (eval echo "\"\$as_me:13548: $lt_compile\"" >&5)
13549 (eval "$lt_compile" 2>conftest.err
)
13551 cat conftest.err
>&5
13552 echo "$as_me:13552: \$? = $ac_status" >&5
13553 if (exit $ac_status) && test -s "$ac_outfile"; then
13554 # The compiler can only warn and ignore the option if not recognized
13555 # So say no if there are warnings other than the usual output.
13556 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
13557 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13558 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13559 lt_prog_compiler_pic_works_CXX
=yes
13565 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13566 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13568 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
13569 case $lt_prog_compiler_pic_CXX in
13571 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13574 lt_prog_compiler_pic_CXX
=
13575 lt_prog_compiler_can_build_shared_CXX
=no
13580 # For platforms which do not support PIC, -DPIC is meaningless:
13582 lt_prog_compiler_pic_CXX
=
13585 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13590 # Check to make sure the static flag actually works.
13592 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13593 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13594 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13595 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 lt_prog_compiler_static_works_CXX
=no
13599 save_LDFLAGS
="$LDFLAGS"
13600 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13601 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13602 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13603 # The linker can only warn and ignore the option if not recognized
13604 # So say no if there are warnings
13605 if test -s conftest.err
; then
13606 # Append any errors to the config.log.
13607 cat conftest.err
1>&5
13608 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
13609 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13610 if diff conftest.exp conftest.er2
>/dev
/null
; then
13611 lt_prog_compiler_static_works_CXX
=yes
13614 lt_prog_compiler_static_works_CXX
=yes
13618 LDFLAGS
="$save_LDFLAGS"
13621 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13622 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13624 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
13627 lt_prog_compiler_static_CXX
=
13631 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13632 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13633 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 lt_cv_prog_compiler_c_o_CXX
=no
13637 $rm -r conftest
2>/dev
/null
13641 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13643 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13644 # Insert the option either (1) after the last *FLAGS variable, or
13645 # (2) before a word containing "conftest.", or (3) at the end.
13646 # Note that $ac_compile itself does not contain backslashes and begins
13647 # with a dollar sign (not a hyphen), so the echo should work correctly.
13648 lt_compile
=`echo "$ac_compile" | $SED \
13649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13651 -e 's:$: $lt_compiler_flag:'`
13652 (eval echo "\"\$as_me:13652: $lt_compile\"" >&5)
13653 (eval "$lt_compile" 2>out
/conftest.err
)
13655 cat out
/conftest.err
>&5
13656 echo "$as_me:13656: \$? = $ac_status" >&5
13657 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13659 # The compiler can only warn and ignore the option if not recognized
13660 # So say no if there are warnings
13661 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
13662 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13663 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13664 lt_cv_prog_compiler_c_o_CXX
=yes
13669 # SGI C++ compiler will create directory out/ii_files/ for
13670 # template instantiation
13671 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13672 $rm out
/* && rmdir out
13678 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13679 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13682 hard_links
="nottested"
13683 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13684 # do not overwrite the value of need_locks provided by the user
13685 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13686 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13689 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13691 ln conftest.a conftest.b
2>&5 || hard_links
=no
13692 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13693 { echo "$as_me:$LINENO: result: $hard_links" >&5
13694 echo "${ECHO_T}$hard_links" >&6; }
13695 if test "$hard_links" = no
; then
13696 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13697 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13704 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13705 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13707 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13710 # If we're using GNU nm, then we don't want the "-C" option.
13711 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13712 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13713 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'
13715 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'
13719 export_symbols_cmds_CXX
="$ltdll_cmds"
13722 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'
13725 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13729 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13730 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13731 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13734 # Do we need to explicitly link libc?
13736 case "x$archive_cmds_need_lc_CXX" in
13738 # Assume -lc should be added
13739 archive_cmds_need_lc_CXX
=yes
13741 if test "$enable_shared" = yes && test "$GCC" = yes; then
13742 case $archive_cmds_CXX in
13744 # FIXME: we may have to deal with multi-command sequences.
13747 # Test whether the compiler implicitly links with -lc since on some
13748 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13749 # to ld, don't add -lc before -lgcc.
13750 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13751 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13753 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13756 (eval $ac_compile) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } 2>conftest.err
; then
13762 libobjs
=conftest.
$ac_objext
13764 wl
=$lt_prog_compiler_wl_CXX
13765 pic_flag
=$lt_prog_compiler_pic_CXX
13771 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
13772 allow_undefined_flag_CXX
=
13773 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13774 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }
13779 archive_cmds_need_lc_CXX
=no
13781 archive_cmds_need_lc_CXX
=yes
13783 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
13785 cat conftest.err
1>&5
13788 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13789 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13796 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13797 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13798 library_names_spec
=
13799 libname_spec
='lib$name'
13803 postuninstall_cmds
=
13807 shlibpath_overrides_runpath
=unknown
13809 dynamic_linker
="$host_os ld.so"
13810 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13812 need_lib_prefix
=unknown
13813 hardcode_into_libs
=no
13815 # when you set need_version to no, make sure it does not cause -set_version
13816 # flags to be left without arguments
13817 need_version
=unknown
13822 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13823 shlibpath_var
=LIBPATH
13825 # AIX 3 has no versioning support, so we append a major version to the name.
13826 soname_spec
='${libname}${release}${shared_ext}$major'
13833 hardcode_into_libs
=yes
13834 if test "$host_cpu" = ia64
; then
13835 # AIX 5 supports IA64
13836 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13837 shlibpath_var
=LD_LIBRARY_PATH
13839 # With GCC up to 2.95.x, collect2 would create an import file
13840 # for dependence libraries. The import file would start with
13841 # the line `#! .'. This would cause the generated library to
13842 # depend on `.', always an invalid library. This was fixed in
13843 # development snapshots of GCC prior to 3.0.
13845 aix4 | aix4.
[01] | aix4.
[01].
*)
13846 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13848 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
13851 can_build_shared
=no
13855 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13856 # soname into executable. Probably we can add versioning support to
13857 # collect2, so additional links can be useful in future.
13858 if test "$aix_use_runtimelinking" = yes; then
13859 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13860 # instead of lib<name>.a to let people know that these are not
13861 # typical AIX shared libraries.
13862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13864 # We preserve .a as extension for shared libraries through AIX4.2
13865 # and later when we are not doing run time linking.
13866 library_names_spec
='${libname}${release}.a $libname.a'
13867 soname_spec
='${libname}${release}${shared_ext}$major'
13869 shlibpath_var
=LIBPATH
13874 library_names_spec
='$libname.ixlibrary $libname.a'
13875 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13876 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'
13880 library_names_spec
='${libname}${shared_ext}'
13881 dynamic_linker
="$host_os ld.so"
13882 shlibpath_var
=LIBRARY_PATH
13888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13889 soname_spec
='${libname}${release}${shared_ext}$major'
13890 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13891 shlibpath_var
=LD_LIBRARY_PATH
13892 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13893 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13894 # the default ld.so.conf also contains /usr/contrib/lib and
13895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13896 # libtool to hard-code these into programs
13899 cygwin
* | mingw
* | pw32
*)
13900 version_type
=windows
13905 case $GCC,$host_os in
13906 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
13907 library_names_spec
='$libname.dll.a'
13908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13909 postinstall_cmds
='base_file=`basename \${file}`~
13910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13911 dldir=$destdir/`dirname \$dlpath`~
13912 test -d \$dldir || mkdir -p \$dldir~
13913 $install_prog $dir/$dlname \$dldir/$dlname~
13914 chmod a+x \$dldir/$dlname'
13915 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13916 dlpath=$dir/\$dldll~
13918 shlibpath_overrides_runpath
=yes
13922 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13923 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13924 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
13927 # MinGW DLLs use traditional 'lib' prefix
13928 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13929 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13930 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
13931 # It is most probably a Windows format PATH printed by
13932 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13933 # path with ; separators, and with drive letters. We can handle the
13934 # drive letters (cygwin fileutils understands them), so leave them,
13935 # especially as we might pass files found there to a mingw objdump,
13936 # which wouldn't understand a cygwinified path. Ahh.
13937 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13939 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13943 # pw32 DLLs use 'pw' prefix rather than 'lib'
13944 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13950 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13953 dynamic_linker
='Win32 ld.exe'
13954 # FIXME: first we should search . and the directory the executable is in
13958 darwin
* | rhapsody
*)
13959 dynamic_linker
="$host_os dyld"
13960 version_type
=darwin
13963 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13964 soname_spec
='${libname}${release}${major}$shared_ext'
13965 shlibpath_overrides_runpath
=yes
13966 shlibpath_var
=DYLD_LIBRARY_PATH
13967 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13969 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13977 soname_spec
='${libname}${release}${shared_ext}$major'
13978 shlibpath_var
=LD_LIBRARY_PATH
13985 freebsd
* | dragonfly
*)
13986 # DragonFly does not have aout. When/if they implement a new
13987 # versioning mechanism, adjust this.
13988 if test -x /usr
/bin
/objformat
; then
13989 objformat
=`/usr/bin/objformat`
13992 freebsd
[123]*) objformat
=aout
;;
13993 *) objformat
=elf
;;
13996 version_type
=freebsd-
$objformat
13997 case $version_type in
13999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14004 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14008 shlibpath_var
=LD_LIBRARY_PATH
14011 shlibpath_overrides_runpath
=yes
14013 freebsd3.
[01]* | freebsdelf3.
[01]*)
14014 shlibpath_overrides_runpath
=yes
14015 hardcode_into_libs
=yes
14017 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14018 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14019 shlibpath_overrides_runpath
=no
14020 hardcode_into_libs
=yes
14022 *) # from 4.6 on, and DragonFly
14023 shlibpath_overrides_runpath
=yes
14024 hardcode_into_libs
=yes
14033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14034 soname_spec
='${libname}${release}${shared_ext}$major'
14035 shlibpath_var
=LD_LIBRARY_PATH
14036 hardcode_into_libs
=yes
14039 hpux9
* | hpux10
* | hpux11
*)
14040 # Give a soname corresponding to the major version so that dld.sl refuses to
14041 # link against other versions.
14048 hardcode_into_libs
=yes
14049 dynamic_linker
="$host_os dld.so"
14050 shlibpath_var
=LD_LIBRARY_PATH
14051 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14053 soname_spec
='${libname}${release}${shared_ext}$major'
14054 if test "X$HPUX_IA64_MODE" = X32
; then
14055 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14057 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14059 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14063 hardcode_into_libs
=yes
14064 dynamic_linker
="$host_os dld.sl"
14065 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14066 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 soname_spec
='${libname}${release}${shared_ext}$major'
14069 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14070 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14074 dynamic_linker
="$host_os dld.sl"
14075 shlibpath_var
=SHLIB_PATH
14076 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14078 soname_spec
='${libname}${release}${shared_ext}$major'
14081 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14082 postinstall_cmds
='chmod 555 $lib'
14089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14090 soname_spec
='${libname}${release}${shared_ext}$major'
14091 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14092 shlibpath_var
=LD_LIBRARY_PATH
14093 shlibpath_overrides_runpath
=no
14094 hardcode_into_libs
=yes
14097 irix5
* | irix6
* | nonstopux
*)
14099 nonstopux
*) version_type
=nonstopux
;;
14101 if test "$lt_cv_prog_gnu_ld" = yes; then
14109 soname_spec
='${libname}${release}${shared_ext}$major'
14110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14112 irix5
* | nonstopux
*)
14113 libsuff
= shlibsuff
=
14116 case $LD in # libtool.m4 will add one of these switches to LD
14117 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14118 libsuff
= shlibsuff
= libmagic
=32-bit;;
14119 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14120 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14121 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14122 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14123 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14127 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14128 shlibpath_overrides_runpath
=no
14129 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14130 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14131 hardcode_into_libs
=yes
14134 # No shared lib support for Linux oldld, aout, or coff.
14135 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14139 # This must be Linux ELF.
14140 linux
* | k
*bsd
*-gnu)
14144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145 soname_spec
='${libname}${release}${shared_ext}$major'
14146 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14147 shlibpath_var
=LD_LIBRARY_PATH
14148 shlibpath_overrides_runpath
=no
14149 # This implies no fast_install, which is unacceptable.
14150 # Some rework will be needed to allow for fast_install
14151 # before this can be enabled.
14152 hardcode_into_libs
=yes
14153 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14154 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14156 # Append ld.so.conf contents to the search path
14157 if test -f /etc
/ld.so.conf
; then
14158 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' ' '`
14159 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14162 # We used to test for /lib/ld.so.1 and disable shared libraries on
14163 # powerpc, because MkLinux only supported shared libraries with the
14164 # GNU dynamic linker. Since this was broken with cross compilers,
14165 # most powerpc-linux boxes support dynamic linking these days and
14166 # people can always --disable-shared, the test was removed, and we
14167 # assume the GNU/Linux dynamic linker is in use.
14168 dynamic_linker
='GNU/Linux ld.so'
14175 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14177 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14178 dynamic_linker
='NetBSD (a.out) ld.so'
14180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14181 soname_spec
='${libname}${release}${shared_ext}$major'
14182 dynamic_linker
='NetBSD ld.elf_so'
14184 shlibpath_var
=LD_LIBRARY_PATH
14185 shlibpath_overrides_runpath
=yes
14186 hardcode_into_libs
=yes
14191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14192 shlibpath_var
=LD_LIBRARY_PATH
14193 shlibpath_overrides_runpath
=yes
14200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14201 soname_spec
='${libname}${release}${shared_ext}$major'
14202 shlibpath_var
=LD_LIBRARY_PATH
14203 shlibpath_overrides_runpath
=yes
14208 sys_lib_dlsearch_path_spec
="/usr/lib"
14210 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14212 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14213 *) need_version
=no
;;
14215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14216 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14217 shlibpath_var
=LD_LIBRARY_PATH
14218 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14220 openbsd2.
[89] | openbsd2.
[89].
*)
14221 shlibpath_overrides_runpath
=no
14224 shlibpath_overrides_runpath
=yes
14228 shlibpath_overrides_runpath
=yes
14233 libname_spec
='$name'
14236 library_names_spec
='$libname${shared_ext} $libname.a'
14237 dynamic_linker
='OS/2 ld.exe'
14238 shlibpath_var
=LIBPATH
14241 osf3
* | osf4
* | osf5
*)
14245 soname_spec
='${libname}${release}${shared_ext}$major'
14246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247 shlibpath_var
=LD_LIBRARY_PATH
14248 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14249 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14261 soname_spec
='${libname}${release}${shared_ext}$major'
14262 shlibpath_var
=LD_LIBRARY_PATH
14263 shlibpath_overrides_runpath
=yes
14264 hardcode_into_libs
=yes
14265 # ldd complains unless libraries are executable
14266 postinstall_cmds
='chmod +x $lib'
14271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14272 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14273 shlibpath_var
=LD_LIBRARY_PATH
14274 shlibpath_overrides_runpath
=yes
14275 if test "$with_gnu_ld" = yes; then
14283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14284 soname_spec
='${libname}${release}${shared_ext}$major'
14285 shlibpath_var
=LD_LIBRARY_PATH
14286 case $host_vendor in
14288 shlibpath_overrides_runpath
=no
14290 export_dynamic_flag_spec
='${wl}-Blargedynsym'
14291 runpath_var
=LD_RUN_PATH
14299 shlibpath_overrides_runpath
=no
14300 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14306 if test -d /usr
/nec
;then
14308 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14309 soname_spec
='$libname${shared_ext}.$major'
14310 shlibpath_var
=LD_LIBRARY_PATH
14314 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14315 version_type
=freebsd-elf
14318 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14319 soname_spec
='${libname}${release}${shared_ext}$major'
14320 shlibpath_var
=LD_LIBRARY_PATH
14321 hardcode_into_libs
=yes
14322 if test "$with_gnu_ld" = yes; then
14323 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14324 shlibpath_overrides_runpath
=no
14326 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14327 shlibpath_overrides_runpath
=yes
14330 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14334 sys_lib_dlsearch_path_spec
='/usr/lib'
14339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14340 soname_spec
='${libname}${release}${shared_ext}$major'
14341 shlibpath_var
=LD_LIBRARY_PATH
14348 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14349 echo "${ECHO_T}$dynamic_linker" >&6; }
14350 test "$dynamic_linker" = no
&& can_build_shared
=no
14352 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14353 if test "$GCC" = yes; then
14354 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14357 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14358 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14359 hardcode_action_CXX
=
14360 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14361 test -n "$runpath_var_CXX" || \
14362 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14364 # We can hardcode non-existant directories.
14365 if test "$hardcode_direct_CXX" != no
&&
14366 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14367 # have to relink, otherwise we might link with an installed library
14368 # when we should be linking with a yet-to-be-installed one
14369 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14370 test "$hardcode_minus_L_CXX" != no
; then
14371 # Linking always hardcodes the temporary library directory.
14372 hardcode_action_CXX
=relink
14374 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14375 hardcode_action_CXX
=immediate
14378 # We cannot hardcode anything, or else we can only hardcode existing
14380 hardcode_action_CXX
=unsupported
14382 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14383 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14385 if test "$hardcode_action_CXX" = relink
; then
14386 # Fast installation is not supported
14387 enable_fast_install
=no
14388 elif test "$shlibpath_overrides_runpath" = yes ||
14389 test "$enable_shared" = no
; then
14390 # Fast installation is not necessary
14391 enable_fast_install
=needless
14395 # The else clause should only fire when bootstrapping the
14396 # libtool distribution, otherwise you forgot to ship ltmain.sh
14397 # with your package, and you will get complaints that there are
14398 # no rules to generate ltmain.sh.
14399 if test -f "$ltmain"; then
14400 # See if we are running on zsh, and set the options which allow our commands through
14401 # without removal of \ escapes.
14402 if test -n "${ZSH_VERSION+set}" ; then
14403 setopt NO_GLOB_SUBST
14405 # Now quote all the things that may contain metacharacters while being
14406 # careful not to overquote the AC_SUBSTed values. We take copies of the
14407 # variables and quote the copies for generation of the libtool script.
14408 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14410 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14411 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14412 deplibs_check_method reload_flag reload_cmds need_locks \
14413 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14414 lt_cv_sys_global_symbol_to_c_name_address \
14415 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14416 old_postinstall_cmds old_postuninstall_cmds \
14420 lt_prog_compiler_wl_CXX \
14421 lt_prog_compiler_pic_CXX \
14422 lt_prog_compiler_static_CXX \
14423 lt_prog_compiler_no_builtin_flag_CXX \
14424 export_dynamic_flag_spec_CXX \
14425 thread_safe_flag_spec_CXX \
14426 whole_archive_flag_spec_CXX \
14427 enable_shared_with_static_runtimes_CXX \
14428 old_archive_cmds_CXX \
14429 old_archive_from_new_cmds_CXX \
14430 predep_objects_CXX \
14431 postdep_objects_CXX \
14434 compiler_lib_search_path_CXX \
14436 archive_expsym_cmds_CXX \
14437 postinstall_cmds_CXX \
14438 postuninstall_cmds_CXX \
14439 old_archive_from_expsyms_cmds_CXX \
14440 allow_undefined_flag_CXX \
14441 no_undefined_flag_CXX \
14442 export_symbols_cmds_CXX \
14443 hardcode_libdir_flag_spec_CXX \
14444 hardcode_libdir_flag_spec_ld_CXX \
14445 hardcode_libdir_separator_CXX \
14446 hardcode_automatic_CXX \
14448 module_expsym_cmds_CXX \
14449 lt_cv_prog_compiler_c_o_CXX \
14450 fix_srcfile_path_CXX \
14451 exclude_expsyms_CXX \
14452 include_expsyms_CXX
; do
14455 old_archive_cmds_CXX | \
14456 old_archive_from_new_cmds_CXX | \
14457 archive_cmds_CXX | \
14458 archive_expsym_cmds_CXX | \
14459 module_cmds_CXX | \
14460 module_expsym_cmds_CXX | \
14461 old_archive_from_expsyms_cmds_CXX | \
14462 export_symbols_cmds_CXX | \
14463 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14464 postinstall_cmds | postuninstall_cmds | \
14465 old_postinstall_cmds | old_postuninstall_cmds | \
14466 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
14467 # Double-quote double-evaled strings.
14468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14477 *'\$0 --fallback-echo"')
14478 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14484 cat <<__EOF__ >> "$cfgfile"
14485 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14489 # Shell to use when invoking shell scripts.
14492 # Whether or not to build shared libraries.
14493 build_libtool_libs=$enable_shared
14495 # Whether or not to build static libraries.
14496 build_old_libs=$enable_static
14498 # Whether or not to add -lc for building shared libraries.
14499 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14501 # Whether or not to disallow shared libs when runtime libs are static
14502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14504 # Whether or not to optimize for fast installation.
14505 fast_install=$enable_fast_install
14508 host_alias=$host_alias
14512 # The build system.
14513 build_alias=$build_alias
14517 # An echo program that does not interpret backslashes.
14522 AR_FLAGS=$lt_AR_FLAGS
14527 # LTCC compiler flags.
14528 LTCFLAGS=$lt_LTCFLAGS
14530 # A language-specific compiler.
14531 CC=$lt_compiler_CXX
14533 # Is the compiler the GNU C compiler?
14539 # The linker used to build libraries.
14542 # Whether we need hard or soft links.
14545 # A BSD-compatible nm program.
14548 # A symbol stripping program
14551 # Used to examine libraries when file_magic_cmd begins "file"
14552 MAGIC_CMD=$MAGIC_CMD
14554 # Used on cygwin: DLL creation program.
14557 # Used on cygwin: object dumper.
14560 # Used on cygwin: assembler.
14563 # The name of the directory that contains temporary libtool files.
14566 # How to create reloadable object files.
14567 reload_flag=$lt_reload_flag
14568 reload_cmds=$lt_reload_cmds
14570 # How to pass a linker flag through the compiler.
14571 wl=$lt_lt_prog_compiler_wl_CXX
14573 # Object file suffix (normally "o").
14574 objext="$ac_objext"
14576 # Old archive suffix (normally "a").
14579 # Shared library suffix (normally ".so").
14580 shrext_cmds='$shrext_cmds'
14582 # Executable file suffix (normally "").
14585 # Additional compiler flags for building library objects.
14586 pic_flag=$lt_lt_prog_compiler_pic_CXX
14589 # What is the maximum length of a command?
14590 max_cmd_len=$lt_cv_sys_max_cmd_len
14592 # Does compiler simultaneously support -c and -o options?
14593 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14595 # Must we lock files when doing compilation?
14596 need_locks=$lt_need_locks
14598 # Do we need the lib prefix for modules?
14599 need_lib_prefix=$need_lib_prefix
14601 # Do we need a version for libraries?
14602 need_version=$need_version
14604 # Whether dlopen is supported.
14605 dlopen_support=$enable_dlopen
14607 # Whether dlopen of programs is supported.
14608 dlopen_self=$enable_dlopen_self
14610 # Whether dlopen of statically linked programs is supported.
14611 dlopen_self_static=$enable_dlopen_self_static
14613 # Compiler flag to prevent dynamic linking.
14614 link_static_flag=$lt_lt_prog_compiler_static_CXX
14616 # Compiler flag to turn off builtin functions.
14617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14619 # Compiler flag to allow reflexive dlopens.
14620 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14622 # Compiler flag to generate shared objects directly from archives.
14623 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14625 # Compiler flag to generate thread-safe objects.
14626 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14628 # Library versioning type.
14629 version_type=$version_type
14631 # Format of library name prefix.
14632 libname_spec=$lt_libname_spec
14634 # List of archive names. First name is the real one, the rest are links.
14635 # The last name is the one that the linker finds with -lNAME.
14636 library_names_spec=$lt_library_names_spec
14638 # The coded name of the library, if different from the real name.
14639 soname_spec=$lt_soname_spec
14641 # Commands used to build and install an old-style archive.
14643 old_archive_cmds=$lt_old_archive_cmds_CXX
14644 old_postinstall_cmds=$lt_old_postinstall_cmds
14645 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14647 # Create an old-style archive from a shared archive.
14648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14650 # Create a temporary old-style archive to link instead of a shared archive.
14651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14653 # Commands used to build and install a shared archive.
14654 archive_cmds=$lt_archive_cmds_CXX
14655 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14656 postinstall_cmds=$lt_postinstall_cmds
14657 postuninstall_cmds=$lt_postuninstall_cmds
14659 # Commands used to build a loadable module (assumed same as above if empty)
14660 module_cmds=$lt_module_cmds_CXX
14661 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14663 # Commands to strip libraries.
14664 old_striplib=$lt_old_striplib
14665 striplib=$lt_striplib
14667 # Dependencies to place before the objects being linked to create a
14669 predep_objects=$lt_predep_objects_CXX
14671 # Dependencies to place after the objects being linked to create a
14673 postdep_objects=$lt_postdep_objects_CXX
14675 # Dependencies to place before the objects being linked to create a
14677 predeps=$lt_predeps_CXX
14679 # Dependencies to place after the objects being linked to create a
14681 postdeps=$lt_postdeps_CXX
14683 # The library search path used internally by the compiler when linking
14684 # a shared library.
14685 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14687 # Method to check whether dependent libraries are shared objects.
14688 deplibs_check_method=$lt_deplibs_check_method
14690 # Command to use when deplibs_check_method == file_magic.
14691 file_magic_cmd=$lt_file_magic_cmd
14693 # Flag that allows shared libraries with undefined symbols to be built.
14694 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14696 # Flag that forces no undefined symbols.
14697 no_undefined_flag=$lt_no_undefined_flag_CXX
14699 # Commands used to finish a libtool library installation in a directory.
14700 finish_cmds=$lt_finish_cmds
14702 # Same as above, but a single script fragment to be evaled but not shown.
14703 finish_eval=$lt_finish_eval
14705 # Take the output of nm and produce a listing of raw symbols and C names.
14706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14708 # Transform the output of nm in a proper C declaration
14709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14711 # Transform the output of nm in a C name address pair
14712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14714 # This is the shared library runtime path variable.
14715 runpath_var=$runpath_var
14717 # This is the shared library path variable.
14718 shlibpath_var=$shlibpath_var
14720 # Is shlibpath searched before the hard-coded library search path?
14721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14723 # How to hardcode a shared library path into an executable.
14724 hardcode_action=$hardcode_action_CXX
14726 # Whether we should hardcode library paths into libraries.
14727 hardcode_into_libs=$hardcode_into_libs
14729 # Flag to hardcode \$libdir into a binary during linking.
14730 # This must work even if \$libdir does not exist.
14731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14733 # If ld is used when linking, flag to hardcode \$libdir into
14734 # a binary during linking. This must work even if \$libdir does
14736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14738 # Whether we need a single -rpath flag with a separated argument.
14739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14741 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14742 # resulting binary.
14743 hardcode_direct=$hardcode_direct_CXX
14745 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14746 # resulting binary.
14747 hardcode_minus_L=$hardcode_minus_L_CXX
14749 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14750 # the resulting binary.
14751 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14753 # Set to yes if building a shared library automatically hardcodes DIR into the library
14754 # and all subsequent libraries and executables linked against it.
14755 hardcode_automatic=$hardcode_automatic_CXX
14757 # Variables whose values should be saved in libtool wrapper scripts and
14758 # restored at relink time.
14759 variables_saved_for_relink="$variables_saved_for_relink"
14761 # Whether libtool must link a program against all its dependency libraries.
14762 link_all_deplibs=$link_all_deplibs_CXX
14764 # Compile-time system search path for libraries
14765 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14767 # Run-time system search path for libraries
14768 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14770 # Fix the shell variable \$srcfile for the compiler.
14771 fix_srcfile_path=$lt_fix_srcfile_path
14773 # Set to yes if exported symbols are required.
14774 always_export_symbols=$always_export_symbols_CXX
14776 # The commands to list exported symbols.
14777 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14779 # The commands to extract the exported symbol list from a shared archive.
14780 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14782 # Symbols that should not be listed in the preloaded symbols.
14783 exclude_expsyms=$lt_exclude_expsyms_CXX
14785 # Symbols that must always be exported.
14786 include_expsyms=$lt_include_expsyms_CXX
14788 # ### END LIBTOOL TAG CONFIG: $tagname
14794 # If there is no Makefile yet, we rely on a make rule to execute
14795 # `config.status --recheck' to rerun these tests and create the
14796 # libtool script then.
14797 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14798 if test -f "$ltmain_in"; then
14799 test -f Makefile
&& make "$ltmain"
14805 ac_cpp
='$CPP $CPPFLAGS'
14806 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14807 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14808 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14814 with_gnu_ldcxx
=$with_gnu_ld
14815 with_gnu_ld
=$lt_save_with_gnu_ld
14816 lt_cv_path_LDCXX
=$lt_cv_path_LD
14817 lt_cv_path_LD
=$lt_save_path_LD
14818 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14819 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14827 if test -n "$F77" && test "X$F77" != "Xno"; then
14830 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14831 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14832 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
14835 archive_cmds_need_lc_F77
=no
14836 allow_undefined_flag_F77
=
14837 always_export_symbols_F77
=no
14838 archive_expsym_cmds_F77
=
14839 export_dynamic_flag_spec_F77
=
14840 hardcode_direct_F77
=no
14841 hardcode_libdir_flag_spec_F77
=
14842 hardcode_libdir_flag_spec_ld_F77
=
14843 hardcode_libdir_separator_F77
=
14844 hardcode_minus_L_F77
=no
14845 hardcode_automatic_F77
=no
14847 module_expsym_cmds_F77
=
14848 link_all_deplibs_F77
=unknown
14849 old_archive_cmds_F77
=$old_archive_cmds
14850 no_undefined_flag_F77
=
14851 whole_archive_flag_spec_F77
=
14852 enable_shared_with_static_runtimes_F77
=no
14854 # Source file extension for f77 test sources.
14857 # Object file extension for compiled f77 test sources.
14861 # Code to be used in simple compile tests
14862 lt_simple_compile_test_code
="\
14868 # Code to be used in simple link tests
14869 lt_simple_link_test_code
="\
14874 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14876 # If no C compiler was specified, use CC.
14879 # If no C compiler flags were specified, use CFLAGS.
14880 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
14882 # Allow CC to be a program name with arguments.
14886 # save warnings/boilerplate of simple test code
14887 ac_outfile
=conftest.
$ac_objext
14888 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
14889 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14890 _lt_compiler_boilerplate
=`cat conftest.err`
14893 ac_outfile
=conftest.
$ac_objext
14894 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
14895 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14896 _lt_linker_boilerplate
=`cat conftest.err`
14900 # Allow CC to be a program name with arguments.
14905 for cc_temp
in $compiler""; do
14907 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14908 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14913 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14916 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14917 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14918 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14919 echo "${ECHO_T}$can_build_shared" >&6; }
14921 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14922 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14923 test "$can_build_shared" = "no" && enable_shared
=no
14925 # On AIX, shared libraries and static libraries use the same namespace, and
14926 # are all built from PIC.
14929 test "$enable_shared" = yes && enable_static
=no
14930 if test -n "$RANLIB"; then
14931 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
14932 postinstall_cmds
='$RANLIB $lib'
14936 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
14937 test "$enable_shared" = yes && enable_static
=no
14941 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14942 echo "${ECHO_T}$enable_shared" >&6; }
14944 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14945 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14946 # Make sure either enable_shared or enable_static is yes.
14947 test "$enable_shared" = yes || enable_static
=yes
14948 { echo "$as_me:$LINENO: result: $enable_static" >&5
14949 echo "${ECHO_T}$enable_static" >&6; }
14954 lt_prog_compiler_wl_F77
=
14955 lt_prog_compiler_pic_F77
=
14956 lt_prog_compiler_static_F77
=
14958 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14959 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14961 if test "$GCC" = yes; then
14962 lt_prog_compiler_wl_F77
='-Wl,'
14963 lt_prog_compiler_static_F77
='-static'
14967 # All AIX code is PIC.
14968 if test "$host_cpu" = ia64
; then
14969 # AIX 5 now supports IA64 processor
14970 lt_prog_compiler_static_F77
='-Bstatic'
14975 # FIXME: we need at least 68020 code to build shared libraries, but
14976 # adding the `-m68020' flag to GCC prevents building anything better,
14978 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
14981 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14982 # PIC is the default for these OSes.
14985 mingw
* | cygwin
* | pw32
* | os2
*)
14986 # This hack is so that the source file can tell whether it is being
14987 # built for inclusion in a dll (and should export symbols for example).
14988 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14989 # (--disable-auto-import) libraries
14990 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14993 darwin
* | rhapsody
*)
14994 # PIC is the default on this platform
14995 # Common symbols not allowed in MH_DYLIB files
14996 lt_prog_compiler_pic_F77
='-fno-common'
15000 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15001 # Instead, we relocate shared libraries at runtime.
15005 # Just because we use GCC doesn't mean we suddenly get shared libraries
15006 # on systems that don't support them.
15007 lt_prog_compiler_can_build_shared_F77
=no
15012 if test -d /usr
/nec
; then
15013 lt_prog_compiler_pic_F77
=-Kconform_pic
15018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15019 # not for PA HP-UX.
15025 lt_prog_compiler_pic_F77
='-fPIC'
15031 lt_prog_compiler_pic_F77
='-fPIC'
15035 # PORTME Check for flag to pass linker flags through the system compiler.
15038 lt_prog_compiler_wl_F77
='-Wl,'
15039 if test "$host_cpu" = ia64
; then
15040 # AIX 5 now supports IA64 processor
15041 lt_prog_compiler_static_F77
='-Bstatic'
15043 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
15047 # PIC is the default on this platform
15048 # Common symbols not allowed in MH_DYLIB files
15049 case $cc_basename in
15051 lt_prog_compiler_pic_F77
='-qnocommon'
15052 lt_prog_compiler_wl_F77
='-Wl,'
15057 mingw
* | cygwin
* | pw32
* | os2
*)
15058 # This hack is so that the source file can tell whether it is being
15059 # built for inclusion in a dll (and should export symbols for example).
15060 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
15063 hpux9
* | hpux10
* | hpux11
*)
15064 lt_prog_compiler_wl_F77
='-Wl,'
15065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15066 # not for PA HP-UX.
15072 lt_prog_compiler_pic_F77
='+Z'
15075 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15076 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
15079 irix5
* | irix6
* | nonstopux
*)
15080 lt_prog_compiler_wl_F77
='-Wl,'
15081 # PIC (with -KPIC) is the default.
15082 lt_prog_compiler_static_F77
='-non_shared'
15086 lt_prog_compiler_pic_F77
='-KPIC'
15087 lt_prog_compiler_static_F77
='-Bstatic'
15090 linux
* | k
*bsd
*-gnu)
15091 case $cc_basename in
15093 lt_prog_compiler_wl_F77
='-Wl,'
15094 lt_prog_compiler_pic_F77
='-KPIC'
15095 lt_prog_compiler_static_F77
='-static'
15097 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
15098 # Portland Group compilers (*not* the Pentium gcc compiler,
15099 # which looks to be a dead project)
15100 lt_prog_compiler_wl_F77
='-Wl,'
15101 lt_prog_compiler_pic_F77
='-fpic'
15102 lt_prog_compiler_static_F77
='-Bstatic'
15105 lt_prog_compiler_wl_F77
='-Wl,'
15106 # All Alpha code is PIC.
15107 lt_prog_compiler_static_F77
='-non_shared'
15110 case `$CC -V 2>&1 | sed 5q` in
15113 lt_prog_compiler_pic_F77
='-KPIC'
15114 lt_prog_compiler_static_F77
='-Bstatic'
15115 lt_prog_compiler_wl_F77
='-Wl,'
15118 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15119 lt_prog_compiler_pic_F77
='-KPIC'
15120 lt_prog_compiler_static_F77
='-Bstatic'
15121 lt_prog_compiler_wl_F77
=''
15128 osf3
* | osf4
* | osf5
*)
15129 lt_prog_compiler_wl_F77
='-Wl,'
15130 # All OSF/1 code is PIC.
15131 lt_prog_compiler_static_F77
='-non_shared'
15135 lt_prog_compiler_static_F77
='-non_shared'
15139 lt_prog_compiler_pic_F77
='-KPIC'
15140 lt_prog_compiler_static_F77
='-Bstatic'
15141 case $cc_basename in
15142 f77
* | f90
* | f95
*)
15143 lt_prog_compiler_wl_F77
='-Qoption ld ';;
15145 lt_prog_compiler_wl_F77
='-Wl,';;
15150 lt_prog_compiler_wl_F77
='-Qoption ld '
15151 lt_prog_compiler_pic_F77
='-PIC'
15152 lt_prog_compiler_static_F77
='-Bstatic'
15155 sysv4 | sysv4.2uw2
* | sysv4.3
*)
15156 lt_prog_compiler_wl_F77
='-Wl,'
15157 lt_prog_compiler_pic_F77
='-KPIC'
15158 lt_prog_compiler_static_F77
='-Bstatic'
15162 if test -d /usr
/nec
;then
15163 lt_prog_compiler_pic_F77
='-Kconform_pic'
15164 lt_prog_compiler_static_F77
='-Bstatic'
15168 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
15169 lt_prog_compiler_wl_F77
='-Wl,'
15170 lt_prog_compiler_pic_F77
='-KPIC'
15171 lt_prog_compiler_static_F77
='-Bstatic'
15175 lt_prog_compiler_wl_F77
='-Wl,'
15176 lt_prog_compiler_can_build_shared_F77
=no
15180 lt_prog_compiler_pic_F77
='-pic'
15181 lt_prog_compiler_static_F77
='-Bstatic'
15185 lt_prog_compiler_can_build_shared_F77
=no
15190 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15191 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15194 # Check to make sure the PIC flag actually works.
15196 if test -n "$lt_prog_compiler_pic_F77"; then
15198 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15200 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 lt_prog_compiler_pic_works_F77
=no
15204 ac_outfile
=conftest.
$ac_objext
15205 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15206 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
15207 # Insert the option either (1) after the last *FLAGS variable, or
15208 # (2) before a word containing "conftest.", or (3) at the end.
15209 # Note that $ac_compile itself does not contain backslashes and begins
15210 # with a dollar sign (not a hyphen), so the echo should work correctly.
15211 # The option is referenced via a variable to avoid confusing sed.
15212 lt_compile
=`echo "$ac_compile" | $SED \
15213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15215 -e 's:$: $lt_compiler_flag:'`
15216 (eval echo "\"\$as_me:15216: $lt_compile\"" >&5)
15217 (eval "$lt_compile" 2>conftest.err
)
15219 cat conftest.err
>&5
15220 echo "$as_me:15220: \$? = $ac_status" >&5
15221 if (exit $ac_status) && test -s "$ac_outfile"; then
15222 # The compiler can only warn and ignore the option if not recognized
15223 # So say no if there are warnings other than the usual output.
15224 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
15225 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15226 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
15227 lt_prog_compiler_pic_works_F77
=yes
15233 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15234 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15236 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
15237 case $lt_prog_compiler_pic_F77 in
15239 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
15242 lt_prog_compiler_pic_F77
=
15243 lt_prog_compiler_can_build_shared_F77
=no
15248 # For platforms which do not support PIC, -DPIC is meaningless:
15250 lt_prog_compiler_pic_F77
=
15253 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
15258 # Check to make sure the static flag actually works.
15260 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
15261 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15262 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15263 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 lt_prog_compiler_static_works_F77
=no
15267 save_LDFLAGS
="$LDFLAGS"
15268 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
15269 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15270 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15271 # The linker can only warn and ignore the option if not recognized
15272 # So say no if there are warnings
15273 if test -s conftest.err
; then
15274 # Append any errors to the config.log.
15275 cat conftest.err
1>&5
15276 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
15277 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15278 if diff conftest.exp conftest.er2
>/dev
/null
; then
15279 lt_prog_compiler_static_works_F77
=yes
15282 lt_prog_compiler_static_works_F77
=yes
15286 LDFLAGS
="$save_LDFLAGS"
15289 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15290 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15292 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
15295 lt_prog_compiler_static_F77
=
15299 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15300 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15301 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 lt_cv_prog_compiler_c_o_F77
=no
15305 $rm -r conftest
2>/dev
/null
15309 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15311 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15312 # Insert the option either (1) after the last *FLAGS variable, or
15313 # (2) before a word containing "conftest.", or (3) at the end.
15314 # Note that $ac_compile itself does not contain backslashes and begins
15315 # with a dollar sign (not a hyphen), so the echo should work correctly.
15316 lt_compile
=`echo "$ac_compile" | $SED \
15317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15319 -e 's:$: $lt_compiler_flag:'`
15320 (eval echo "\"\$as_me:15320: $lt_compile\"" >&5)
15321 (eval "$lt_compile" 2>out
/conftest.err
)
15323 cat out
/conftest.err
>&5
15324 echo "$as_me:15324: \$? = $ac_status" >&5
15325 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15327 # The compiler can only warn and ignore the option if not recognized
15328 # So say no if there are warnings
15329 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
15330 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
15331 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
15332 lt_cv_prog_compiler_c_o_F77
=yes
15337 # SGI C++ compiler will create directory out/ii_files/ for
15338 # template instantiation
15339 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
15340 $rm out
/* && rmdir out
15346 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15350 hard_links
="nottested"
15351 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
15352 # do not overwrite the value of need_locks provided by the user
15353 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15354 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15357 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15359 ln conftest.a conftest.b
2>&5 || hard_links
=no
15360 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15361 { echo "$as_me:$LINENO: result: $hard_links" >&5
15362 echo "${ECHO_T}$hard_links" >&6; }
15363 if test "$hard_links" = no
; then
15364 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15372 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15376 allow_undefined_flag_F77
=
15377 enable_shared_with_static_runtimes_F77
=no
15379 archive_expsym_cmds_F77
=
15380 old_archive_From_new_cmds_F77
=
15381 old_archive_from_expsyms_cmds_F77
=
15382 export_dynamic_flag_spec_F77
=
15383 whole_archive_flag_spec_F77
=
15384 thread_safe_flag_spec_F77
=
15385 hardcode_libdir_flag_spec_F77
=
15386 hardcode_libdir_flag_spec_ld_F77
=
15387 hardcode_libdir_separator_F77
=
15388 hardcode_direct_F77
=no
15389 hardcode_minus_L_F77
=no
15390 hardcode_shlibpath_var_F77
=unsupported
15391 link_all_deplibs_F77
=unknown
15392 hardcode_automatic_F77
=no
15394 module_expsym_cmds_F77
=
15395 always_export_symbols_F77
=no
15396 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15397 # include_expsyms should be a list of space-separated symbols to be *always*
15398 # included in the symbol list
15399 include_expsyms_F77
=
15400 # exclude_expsyms can be an extended regexp of symbols to exclude
15401 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15402 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15403 # as well as any symbol that contains `d'.
15404 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
15405 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15406 # platforms (ab)use it in PIC code, but their linkers get confused if
15407 # the symbol is explicitly referenced. Since portable code cannot
15408 # rely on this symbol name, it's probably fine to never include it in
15409 # preloaded symbol tables.
15410 extract_expsyms_cmds
=
15411 # Just being paranoid about ensuring that cc_basename is set.
15412 for cc_temp
in $compiler""; do
15414 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
15415 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
15420 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15423 cygwin
* | mingw
* | pw32
*)
15424 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15425 # When not using gcc, we currently assume that we are using
15426 # Microsoft Visual C++.
15427 if test "$GCC" != yes; then
15432 # we just hope/assume this is gcc and not c89 (= MSVC++)
15441 if test "$with_gnu_ld" = yes; then
15442 # If archive_cmds runs LD, not CC, wlarc should be empty
15445 # Set some defaults for GNU ld with shared library support. These
15446 # are reset later if shared libraries are not supported. Putting them
15447 # here allows them to be overridden if necessary.
15448 runpath_var
=LD_RUN_PATH
15449 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
15450 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
15451 # ancient GNU ld didn't support --whole-archive et. al.
15452 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
15453 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15455 whole_archive_flag_spec_F77
=
15457 supports_anon_versioning
=no
15458 case `$LD -v 2>/dev/null` in
15459 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
15460 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
15461 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
15462 *\
2.11.
*) ;; # other 2.11 versions
15463 *) supports_anon_versioning
=yes ;;
15466 # See if GNU ld supports shared libraries.
15468 aix3
* | aix4
* | aix5
*)
15469 # On AIX/PPC, the GNU linker is very broken
15470 if test "$host_cpu" != ia64
; then
15474 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15475 *** to be unable to reliably create shared libraries on AIX.
15476 *** Therefore, libtool is disabling shared libraries support. If you
15477 *** really care for shared libraries, you may want to modify your PATH
15478 *** so that a non-GNU linker is found, and then restart.
15485 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)'
15486 hardcode_libdir_flag_spec_F77
='-L$libdir'
15487 hardcode_minus_L_F77
=yes
15489 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15490 # that the semantics of dynamic libraries on AmigaOS, at least up
15491 # to version 4, is to share data among multiple programs linked
15492 # with the same dynamic library. Since this doesn't match the
15493 # behavior of shared libraries on other platforms, we can't use
15499 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15500 allow_undefined_flag_F77
=unsupported
15501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15502 # support --undefined. This deserves some investigation. FIXME
15503 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15509 cygwin
* | mingw
* | pw32
*)
15510 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15511 # as there is no search path for DLLs.
15512 hardcode_libdir_flag_spec_F77
='-L$libdir'
15513 allow_undefined_flag_F77
=unsupported
15514 always_export_symbols_F77
=no
15515 enable_shared_with_static_runtimes_F77
=yes
15516 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15518 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
15519 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15520 # If the export-symbols file already is a .def file (1st line
15521 # is EXPORTS), use it as is; otherwise, prepend...
15522 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15523 cp $export_symbols $output_objdir/$soname.def;
15525 echo EXPORTS > $output_objdir/$soname.def;
15526 cat $export_symbols >> $output_objdir/$soname.def;
15528 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15535 hardcode_direct_F77
=no
15536 hardcode_shlibpath_var_F77
=no
15537 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15538 export_dynamic_flag_spec_F77
='${wl}-E'
15539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15540 # Instead, shared libraries are loaded at an image base (0x10000000 by
15541 # default) and relocated if they conflict, which is a slow very memory
15542 # consuming and fragmenting process. To avoid this, we pick a random,
15543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15545 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'
15546 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'
15549 gnu
* | linux
* | k
*bsd
*-gnu)
15550 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15552 case $cc_basename,$host_cpu in
15553 pgcc
*) # Portland Group C compiler
15554 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'
15555 tmp_addflag
=' $pic_flag'
15557 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15558 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'
15559 tmp_addflag
=' $pic_flag -Mnomain' ;;
15560 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15561 tmp_addflag
=' -i_dynamic' ;;
15562 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15563 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15564 ifc
* | ifort
*) # Intel Fortran compiler
15565 tmp_addflag
=' -nofor_main' ;;
15567 case `$CC -V 2>&1 | sed 5q` in
15568 *Sun\ C
*) # Sun C 5.9
15569 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'
15570 tmp_sharedflag
='-G' ;;
15571 *Sun\ F
*) # Sun Fortran 8.3
15572 tmp_sharedflag
='-G' ;;
15574 tmp_sharedflag
='-shared' ;;
15576 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15578 if test $supports_anon_versioning = yes; then
15579 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
15580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15581 $echo "local: *; };" >> $output_objdir/$libname.ver~
15582 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15590 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15591 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15594 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15595 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15600 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
15604 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15605 *** create shared libraries on Solaris systems. Therefore, libtool
15606 *** is disabling shared libraries support. We urge you to upgrade GNU
15607 *** binutils to release 2.9.1 or newer. Another option is to modify
15608 *** your PATH or compiler configuration so that the native linker is
15609 *** used, and then restart.
15612 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15613 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15614 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15620 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15621 case `$LD -v 2>&1` in
15622 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15626 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15627 *** reliably create shared libraries on SCO systems. Therefore, libtool
15628 *** is disabling shared libraries support. We urge you to upgrade GNU
15629 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15630 *** your PATH or compiler configuration so that the native linker is
15631 *** used, and then restart.
15636 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15637 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15638 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15639 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15648 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15650 hardcode_direct_F77
=yes
15651 hardcode_shlibpath_var_F77
=no
15655 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15656 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15657 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15664 if test "$ld_shlibs_F77" = no
; then
15666 hardcode_libdir_flag_spec_F77
=
15667 export_dynamic_flag_spec_F77
=
15668 whole_archive_flag_spec_F77
=
15671 # PORTME fill in a description of your system's linker (not GNU ld)
15674 allow_undefined_flag_F77
=unsupported
15675 always_export_symbols_F77
=yes
15676 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'
15677 # Note: this linker hardcodes the directories in LIBPATH if there
15678 # are no directories specified by -L.
15679 hardcode_minus_L_F77
=yes
15680 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15681 # Neither direct hardcoding nor static linking is supported with a
15683 hardcode_direct_F77
=unsupported
15688 if test "$host_cpu" = ia64
; then
15689 # On IA64, the linker does run time linking by default, so we don't
15690 # have to do anything special.
15691 aix_use_runtimelinking
=no
15692 exp_sym_flag
='-Bexport'
15695 # If we're using GNU nm, then we don't want the "-C" option.
15696 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15697 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15698 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'
15700 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'
15702 aix_use_runtimelinking
=no
15704 # Test if we are trying to use run time linking or normal
15705 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15706 # need to do runtime linking.
15707 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15708 for ld_flag
in $LDFLAGS; do
15709 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15710 aix_use_runtimelinking
=yes
15717 exp_sym_flag
='-bexport'
15718 no_entry_flag
='-bnoentry'
15721 # When large executables or shared objects are built, AIX ld can
15722 # have problems creating the table of contents. If linking a library
15723 # or program results in "error TOC overflow" add -mminimal-toc to
15724 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15725 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15727 archive_cmds_F77
=''
15728 hardcode_direct_F77
=yes
15729 hardcode_libdir_separator_F77
=':'
15730 link_all_deplibs_F77
=yes
15732 if test "$GCC" = yes; then
15733 case $host_os in aix4.
[012]|aix4.
[012].
*)
15734 # We only want to do this on AIX 4.2 and lower, the check
15735 # below for broken collect2 doesn't work under 4.3+
15736 collect2name
=`${CC} -print-prog-name=collect2`
15737 if test -f "$collect2name" && \
15738 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15740 # We have reworked collect2
15743 # We have old collect2
15744 hardcode_direct_F77
=unsupported
15745 # It fails to find uninstalled libraries when the uninstalled
15746 # path is not listed in the libpath. Setting hardcode_minus_L
15747 # to unsupported forces relinking
15748 hardcode_minus_L_F77
=yes
15749 hardcode_libdir_flag_spec_F77
='-L$libdir'
15750 hardcode_libdir_separator_F77
=
15754 shared_flag
='-shared'
15755 if test "$aix_use_runtimelinking" = yes; then
15756 shared_flag
="$shared_flag "'${wl}-G'
15760 if test "$host_cpu" = ia64
; then
15761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15762 # chokes on -Wl,-G. The following line is correct:
15765 if test "$aix_use_runtimelinking" = yes; then
15766 shared_flag
='${wl}-G'
15768 shared_flag
='${wl}-bM:SRE'
15773 # It seems that -bexpall does not export symbols beginning with
15774 # underscore (_), so it is better to generate a list of symbols to export.
15775 always_export_symbols_F77
=yes
15776 if test "$aix_use_runtimelinking" = yes; then
15777 # Warning - without using the other runtime loading flags (-brtl),
15778 # -berok will link without error, but may produce a broken library.
15779 allow_undefined_flag_F77
='-berok'
15780 # Determine the default libpath from the value encoded in an empty executable.
15781 cat >conftest.
$ac_ext <<_ACEOF
15786 rm -f conftest.
$ac_objext conftest
$ac_exeext
15787 if { (ac_try
="$ac_link"
15788 case "(($ac_try" in
15789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_link") 2>conftest.er1
15795 grep -v '^ *+' conftest.er1 >conftest.err
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } && {
15800 test -z "$ac_f77_werror_flag" ||
15801 test ! -s conftest.err
15802 } && test -s conftest$ac_exeext &&
15803 $as_test_x conftest$ac_exeext; then
15805 lt_aix_libpath_sed='
15806 /Import File Strings/,/^$/ {
15812 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
15813 # Check for a 64-bit object if we didn't find anything.
15814 if test -z "$aix_libpath"; then
15815 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15825 conftest$ac_exeext conftest.$ac_ext
15826 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15828 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15829 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"
15831 if test "$host_cpu" = ia64; then
15832 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15833 allow_undefined_flag_F77="-z nodefs"
15834 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"
15836 # Determine the default libpath from the value encoded in an empty executable.
15837 cat >conftest.$ac_ext <<_ACEOF
15842 rm -f conftest.$ac_objext conftest$ac_exeext
15843 if { (ac_try="$ac_link"
15844 case "(($ac_try" in
15845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15846 *) ac_try_echo
=$ac_try;;
15848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15849 (eval "$ac_link") 2>conftest.er1
15851 grep -v '^ *+' conftest.er1
>conftest.err
15853 cat conftest.err
>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } && {
15856 test -z "$ac_f77_werror_flag" ||
15857 test ! -s conftest.err
15858 } && test -s conftest
$ac_exeext &&
15859 $as_test_x conftest
$ac_exeext; then
15861 lt_aix_libpath_sed
='
15862 /Import File Strings/,/^$/ {
15868 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15869 # Check for a 64-bit object if we didn't find anything.
15870 if test -z "$aix_libpath"; then
15871 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.
$ac_ext >&5
15880 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15881 conftest
$ac_exeext conftest.
$ac_ext
15882 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15884 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
15885 # Warning - without using the other run time loading flags,
15886 # -berok will link without error, but may produce a broken library.
15887 no_undefined_flag_F77
=' ${wl}-bernotok'
15888 allow_undefined_flag_F77
=' ${wl}-berok'
15889 # Exported symbols can be pulled into shared objects from archives
15890 whole_archive_flag_spec_F77
='$convenience'
15891 archive_cmds_need_lc_F77
=yes
15892 # This is similar to how AIX traditionally builds its shared libraries.
15893 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'
15899 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)'
15900 hardcode_libdir_flag_spec_F77
='-L$libdir'
15901 hardcode_minus_L_F77
=yes
15902 # see comment about different semantics on the GNU ld section
15907 export_dynamic_flag_spec_F77
=-rdynamic
15910 cygwin
* | mingw
* | pw32
*)
15911 # When not using gcc, we currently assume that we are using
15912 # Microsoft Visual C++.
15913 # hardcode_libdir_flag_spec is actually meaningless, as there is
15914 # no search path for DLLs.
15915 hardcode_libdir_flag_spec_F77
=' '
15916 allow_undefined_flag_F77
=unsupported
15917 # Tell ltmain to make .lib files, not .a files.
15919 # Tell ltmain to make .dll files, not .so files.
15921 # FIXME: Setting linknames here is a bad hack.
15922 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15923 # The linker will automatically build a .lib file if we build a DLL.
15924 old_archive_From_new_cmds_F77
='true'
15925 # FIXME: Should let the user specify the lib program.
15926 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15927 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
15928 enable_shared_with_static_runtimes_F77
=yes
15931 darwin
* | rhapsody
*)
15933 rhapsody
* | darwin1.
[012])
15934 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
15937 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15938 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15940 case ${MACOSX_DEPLOYMENT_TARGET} in
15942 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15945 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
15951 archive_cmds_need_lc_F77
=no
15952 hardcode_direct_F77
=no
15953 hardcode_automatic_F77
=yes
15954 hardcode_shlibpath_var_F77
=unsupported
15955 whole_archive_flag_spec_F77
=''
15956 link_all_deplibs_F77
=yes
15957 if test "$GCC" = yes ; then
15958 output_verbose_link_cmd
='echo'
15959 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15960 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15962 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}'
15963 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}'
15965 case $cc_basename in
15967 output_verbose_link_cmd
='echo'
15968 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15969 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15970 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15971 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}'
15972 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}'
15982 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15983 hardcode_libdir_flag_spec_F77
='-L$libdir'
15984 hardcode_shlibpath_var_F77
=no
15991 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15992 # support. Future versions do this automatically, but an explicit c++rt0.o
15993 # does not break anything, and helps significantly (at the cost of a little
15996 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15997 hardcode_libdir_flag_spec_F77
='-R$libdir'
15998 hardcode_direct_F77
=yes
15999 hardcode_shlibpath_var_F77
=no
16002 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16004 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16005 hardcode_direct_F77
=yes
16006 hardcode_minus_L_F77
=yes
16007 hardcode_shlibpath_var_F77
=no
16010 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16011 freebsd
* | dragonfly
*)
16012 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16013 hardcode_libdir_flag_spec_F77
='-R$libdir'
16014 hardcode_direct_F77
=yes
16015 hardcode_shlibpath_var_F77
=no
16019 if test "$GCC" = yes; then
16020 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'
16022 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'
16024 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16025 hardcode_libdir_separator_F77
=:
16026 hardcode_direct_F77
=yes
16028 # hardcode_minus_L: Not really in the search PATH,
16029 # but as the default location of the library.
16030 hardcode_minus_L_F77
=yes
16031 export_dynamic_flag_spec_F77
='${wl}-E'
16035 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16036 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16038 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16040 if test "$with_gnu_ld" = no
; then
16041 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16042 hardcode_libdir_separator_F77
=:
16044 hardcode_direct_F77
=yes
16045 export_dynamic_flag_spec_F77
='${wl}-E'
16047 # hardcode_minus_L: Not really in the search PATH,
16048 # but as the default location of the library.
16049 hardcode_minus_L_F77
=yes
16054 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16057 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16060 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16063 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16069 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16072 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16075 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16079 if test "$with_gnu_ld" = no
; then
16080 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16081 hardcode_libdir_separator_F77
=:
16085 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
16086 hardcode_direct_F77
=no
16087 hardcode_shlibpath_var_F77
=no
16090 hardcode_direct_F77
=yes
16091 export_dynamic_flag_spec_F77
='${wl}-E'
16093 # hardcode_minus_L: Not really in the search PATH,
16094 # but as the default location of the library.
16095 hardcode_minus_L_F77
=yes
16101 irix5
* | irix6
* | nonstopux
*)
16102 if test "$GCC" = yes; then
16103 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'
16105 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'
16106 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
16108 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16109 hardcode_libdir_separator_F77
=:
16110 link_all_deplibs_F77
=yes
16114 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16115 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16117 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16119 hardcode_libdir_flag_spec_F77
='-R$libdir'
16120 hardcode_direct_F77
=yes
16121 hardcode_shlibpath_var_F77
=no
16125 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126 hardcode_direct_F77
=yes
16127 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16128 hardcode_libdir_separator_F77
=:
16129 hardcode_shlibpath_var_F77
=no
16133 if test -f /usr
/libexec
/ld.so
; then
16134 hardcode_direct_F77
=yes
16135 hardcode_shlibpath_var_F77
=no
16136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16137 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16139 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
16140 export_dynamic_flag_spec_F77
='${wl}-E'
16143 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16144 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16145 hardcode_libdir_flag_spec_F77
='-R$libdir'
16148 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16149 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
16159 hardcode_libdir_flag_spec_F77
='-L$libdir'
16160 hardcode_minus_L_F77
=yes
16161 allow_undefined_flag_F77
=unsupported
16162 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'
16163 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16167 if test "$GCC" = yes; then
16168 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
16169 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'
16171 allow_undefined_flag_F77
=' -expect_unresolved \*'
16172 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'
16174 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16175 hardcode_libdir_separator_F77
=:
16178 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16179 if test "$GCC" = yes; then
16180 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
16181 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'
16182 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16184 allow_undefined_flag_F77
=' -expect_unresolved \*'
16185 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'
16186 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~
16187 $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'
16189 # Both c and cxx compiler support -rpath directly
16190 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
16192 hardcode_libdir_separator_F77
=:
16196 no_undefined_flag_F77
=' -z text'
16197 if test "$GCC" = yes; then
16199 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16200 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16201 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16204 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16206 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16208 hardcode_libdir_flag_spec_F77
='-R$libdir'
16209 hardcode_shlibpath_var_F77
=no
16211 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16213 # The compiler driver will combine and reorder linker options,
16214 # but understands `-z linker_flag'. GCC discards it without `$wl',
16215 # but is careful enough not to reorder.
16216 # Supported since Solaris 2.6 (maybe 2.5.1?)
16217 if test "$GCC" = yes; then
16218 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16220 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
16224 link_all_deplibs_F77
=yes
16228 if test "x$host_vendor" = xsequent
; then
16229 # Use $CC to link under sequent, because it throws in some extra .o
16230 # files that make .init and .fini sections work.
16231 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16233 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16235 hardcode_libdir_flag_spec_F77
='-L$libdir'
16236 hardcode_direct_F77
=yes
16237 hardcode_minus_L_F77
=yes
16238 hardcode_shlibpath_var_F77
=no
16242 case $host_vendor in
16244 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245 hardcode_direct_F77
=yes # is this really true???
16248 ## LD is ld it makes a PLAMLIB
16249 ## CC just makes a GrossModule.
16250 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16251 reload_cmds_F77
='$CC -r -o $output$reload_objs'
16252 hardcode_direct_F77
=no
16255 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
16259 runpath_var
='LD_RUN_PATH'
16260 hardcode_shlibpath_var_F77
=no
16264 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16265 hardcode_shlibpath_var_F77
=no
16266 export_dynamic_flag_spec_F77
='-Bexport'
16270 if test -d /usr
/nec
; then
16271 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16272 hardcode_shlibpath_var_F77
=no
16273 runpath_var
=LD_RUN_PATH
16274 hardcode_runpath_var
=yes
16279 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16280 no_undefined_flag_F77
='${wl}-z,text'
16281 archive_cmds_need_lc_F77
=no
16282 hardcode_shlibpath_var_F77
=no
16283 runpath_var
='LD_RUN_PATH'
16285 if test "$GCC" = yes; then
16286 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16287 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16289 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16290 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16294 sysv5
* | sco3.2v5
* | sco5v6
*)
16295 # Note: We can NOT use -z defs as we might desire, because we do not
16296 # link with -lc, and that would cause any symbols used from libc to
16297 # always be unresolved, which means just about no library would
16298 # ever link correctly. If we're not using GNU ld we use -z text
16299 # though, which does catch some bad symbols but isn't as heavy-handed
16301 no_undefined_flag_F77
='${wl}-z,text'
16302 allow_undefined_flag_F77
='${wl}-z,nodefs'
16303 archive_cmds_need_lc_F77
=no
16304 hardcode_shlibpath_var_F77
=no
16305 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16306 hardcode_libdir_separator_F77
=':'
16307 link_all_deplibs_F77
=yes
16308 export_dynamic_flag_spec_F77
='${wl}-Bexport'
16309 runpath_var
='LD_RUN_PATH'
16311 if test "$GCC" = yes; then
16312 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16313 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16315 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16316 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16321 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16322 hardcode_libdir_flag_spec_F77
='-L$libdir'
16323 hardcode_shlibpath_var_F77
=no
16332 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16333 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16334 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
16337 # Do we need to explicitly link libc?
16339 case "x$archive_cmds_need_lc_F77" in
16341 # Assume -lc should be added
16342 archive_cmds_need_lc_F77
=yes
16344 if test "$enable_shared" = yes && test "$GCC" = yes; then
16345 case $archive_cmds_F77 in
16347 # FIXME: we may have to deal with multi-command sequences.
16350 # Test whether the compiler implicitly links with -lc since on some
16351 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16352 # to ld, don't add -lc before -lgcc.
16353 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16354 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16356 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16359 (eval $ac_compile) 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } 2>conftest.err
; then
16365 libobjs
=conftest.
$ac_objext
16367 wl
=$lt_prog_compiler_wl_F77
16368 pic_flag
=$lt_prog_compiler_pic_F77
16374 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
16375 allow_undefined_flag_F77
=
16376 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16377 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }
16382 archive_cmds_need_lc_F77
=no
16384 archive_cmds_need_lc_F77
=yes
16386 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
16388 cat conftest.err
1>&5
16391 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16392 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16399 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16400 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16401 library_names_spec
=
16402 libname_spec
='lib$name'
16406 postuninstall_cmds
=
16410 shlibpath_overrides_runpath
=unknown
16412 dynamic_linker
="$host_os ld.so"
16413 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16415 need_lib_prefix
=unknown
16416 hardcode_into_libs
=no
16418 # when you set need_version to no, make sure it does not cause -set_version
16419 # flags to be left without arguments
16420 need_version
=unknown
16425 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16426 shlibpath_var
=LIBPATH
16428 # AIX 3 has no versioning support, so we append a major version to the name.
16429 soname_spec
='${libname}${release}${shared_ext}$major'
16436 hardcode_into_libs
=yes
16437 if test "$host_cpu" = ia64
; then
16438 # AIX 5 supports IA64
16439 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16440 shlibpath_var
=LD_LIBRARY_PATH
16442 # With GCC up to 2.95.x, collect2 would create an import file
16443 # for dependence libraries. The import file would start with
16444 # the line `#! .'. This would cause the generated library to
16445 # depend on `.', always an invalid library. This was fixed in
16446 # development snapshots of GCC prior to 3.0.
16448 aix4 | aix4.
[01] | aix4.
[01].
*)
16449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16451 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16454 can_build_shared
=no
16458 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16459 # soname into executable. Probably we can add versioning support to
16460 # collect2, so additional links can be useful in future.
16461 if test "$aix_use_runtimelinking" = yes; then
16462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16463 # instead of lib<name>.a to let people know that these are not
16464 # typical AIX shared libraries.
16465 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467 # We preserve .a as extension for shared libraries through AIX4.2
16468 # and later when we are not doing run time linking.
16469 library_names_spec
='${libname}${release}.a $libname.a'
16470 soname_spec
='${libname}${release}${shared_ext}$major'
16472 shlibpath_var
=LIBPATH
16477 library_names_spec
='$libname.ixlibrary $libname.a'
16478 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16479 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'
16483 library_names_spec
='${libname}${shared_ext}'
16484 dynamic_linker
="$host_os ld.so"
16485 shlibpath_var
=LIBRARY_PATH
16491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 soname_spec
='${libname}${release}${shared_ext}$major'
16493 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16494 shlibpath_var
=LD_LIBRARY_PATH
16495 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16496 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16497 # the default ld.so.conf also contains /usr/contrib/lib and
16498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16499 # libtool to hard-code these into programs
16502 cygwin
* | mingw
* | pw32
*)
16503 version_type
=windows
16508 case $GCC,$host_os in
16509 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16510 library_names_spec
='$libname.dll.a'
16511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16512 postinstall_cmds
='base_file=`basename \${file}`~
16513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16514 dldir=$destdir/`dirname \$dlpath`~
16515 test -d \$dldir || mkdir -p \$dldir~
16516 $install_prog $dir/$dlname \$dldir/$dlname~
16517 chmod a+x \$dldir/$dlname'
16518 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16519 dlpath=$dir/\$dldll~
16521 shlibpath_overrides_runpath
=yes
16525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16526 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16527 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16530 # MinGW DLLs use traditional 'lib' prefix
16531 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16532 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16533 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16534 # It is most probably a Windows format PATH printed by
16535 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16536 # path with ; separators, and with drive letters. We can handle the
16537 # drive letters (cygwin fileutils understands them), so leave them,
16538 # especially as we might pass files found there to a mingw objdump,
16539 # which wouldn't understand a cygwinified path. Ahh.
16540 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16542 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16546 # pw32 DLLs use 'pw' prefix rather than 'lib'
16547 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16553 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16556 dynamic_linker
='Win32 ld.exe'
16557 # FIXME: first we should search . and the directory the executable is in
16561 darwin
* | rhapsody
*)
16562 dynamic_linker
="$host_os dyld"
16563 version_type
=darwin
16566 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16567 soname_spec
='${libname}${release}${major}$shared_ext'
16568 shlibpath_overrides_runpath
=yes
16569 shlibpath_var
=DYLD_LIBRARY_PATH
16570 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16572 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16580 soname_spec
='${libname}${release}${shared_ext}$major'
16581 shlibpath_var
=LD_LIBRARY_PATH
16588 freebsd
* | dragonfly
*)
16589 # DragonFly does not have aout. When/if they implement a new
16590 # versioning mechanism, adjust this.
16591 if test -x /usr
/bin
/objformat
; then
16592 objformat
=`/usr/bin/objformat`
16595 freebsd
[123]*) objformat
=aout
;;
16596 *) objformat
=elf
;;
16599 version_type
=freebsd-
$objformat
16600 case $version_type in
16602 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16607 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16611 shlibpath_var
=LD_LIBRARY_PATH
16614 shlibpath_overrides_runpath
=yes
16616 freebsd3.
[01]* | freebsdelf3.
[01]*)
16617 shlibpath_overrides_runpath
=yes
16618 hardcode_into_libs
=yes
16620 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16621 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16622 shlibpath_overrides_runpath
=no
16623 hardcode_into_libs
=yes
16625 *) # from 4.6 on, and DragonFly
16626 shlibpath_overrides_runpath
=yes
16627 hardcode_into_libs
=yes
16636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16637 soname_spec
='${libname}${release}${shared_ext}$major'
16638 shlibpath_var
=LD_LIBRARY_PATH
16639 hardcode_into_libs
=yes
16642 hpux9
* | hpux10
* | hpux11
*)
16643 # Give a soname corresponding to the major version so that dld.sl refuses to
16644 # link against other versions.
16651 hardcode_into_libs
=yes
16652 dynamic_linker
="$host_os dld.so"
16653 shlibpath_var
=LD_LIBRARY_PATH
16654 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16655 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16656 soname_spec
='${libname}${release}${shared_ext}$major'
16657 if test "X$HPUX_IA64_MODE" = X32
; then
16658 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16660 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16662 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16666 hardcode_into_libs
=yes
16667 dynamic_linker
="$host_os dld.sl"
16668 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16669 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16671 soname_spec
='${libname}${release}${shared_ext}$major'
16672 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16673 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16677 dynamic_linker
="$host_os dld.sl"
16678 shlibpath_var
=SHLIB_PATH
16679 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16680 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681 soname_spec
='${libname}${release}${shared_ext}$major'
16684 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16685 postinstall_cmds
='chmod 555 $lib'
16692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16693 soname_spec
='${libname}${release}${shared_ext}$major'
16694 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16695 shlibpath_var
=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath
=no
16697 hardcode_into_libs
=yes
16700 irix5
* | irix6
* | nonstopux
*)
16702 nonstopux
*) version_type
=nonstopux
;;
16704 if test "$lt_cv_prog_gnu_ld" = yes; then
16712 soname_spec
='${libname}${release}${shared_ext}$major'
16713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16715 irix5
* | nonstopux
*)
16716 libsuff
= shlibsuff
=
16719 case $LD in # libtool.m4 will add one of these switches to LD
16720 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16721 libsuff
= shlibsuff
= libmagic
=32-bit;;
16722 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16723 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16724 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16725 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16726 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16730 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16731 shlibpath_overrides_runpath
=no
16732 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16733 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16734 hardcode_into_libs
=yes
16737 # No shared lib support for Linux oldld, aout, or coff.
16738 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16742 # This must be Linux ELF.
16743 linux
* | k
*bsd
*-gnu)
16747 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748 soname_spec
='${libname}${release}${shared_ext}$major'
16749 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16750 shlibpath_var
=LD_LIBRARY_PATH
16751 shlibpath_overrides_runpath
=no
16752 # This implies no fast_install, which is unacceptable.
16753 # Some rework will be needed to allow for fast_install
16754 # before this can be enabled.
16755 hardcode_into_libs
=yes
16756 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16757 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16759 # Append ld.so.conf contents to the search path
16760 if test -f /etc
/ld.so.conf
; then
16761 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' ' '`
16762 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16765 # We used to test for /lib/ld.so.1 and disable shared libraries on
16766 # powerpc, because MkLinux only supported shared libraries with the
16767 # GNU dynamic linker. Since this was broken with cross compilers,
16768 # most powerpc-linux boxes support dynamic linking these days and
16769 # people can always --disable-shared, the test was removed, and we
16770 # assume the GNU/Linux dynamic linker is in use.
16771 dynamic_linker
='GNU/Linux ld.so'
16778 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16779 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16780 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16781 dynamic_linker
='NetBSD (a.out) ld.so'
16783 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16784 soname_spec
='${libname}${release}${shared_ext}$major'
16785 dynamic_linker
='NetBSD ld.elf_so'
16787 shlibpath_var
=LD_LIBRARY_PATH
16788 shlibpath_overrides_runpath
=yes
16789 hardcode_into_libs
=yes
16794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 shlibpath_var
=LD_LIBRARY_PATH
16796 shlibpath_overrides_runpath
=yes
16803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804 soname_spec
='${libname}${release}${shared_ext}$major'
16805 shlibpath_var
=LD_LIBRARY_PATH
16806 shlibpath_overrides_runpath
=yes
16811 sys_lib_dlsearch_path_spec
="/usr/lib"
16813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16815 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16816 *) need_version
=no
;;
16818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16819 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16820 shlibpath_var
=LD_LIBRARY_PATH
16821 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16823 openbsd2.
[89] | openbsd2.
[89].
*)
16824 shlibpath_overrides_runpath
=no
16827 shlibpath_overrides_runpath
=yes
16831 shlibpath_overrides_runpath
=yes
16836 libname_spec
='$name'
16839 library_names_spec
='$libname${shared_ext} $libname.a'
16840 dynamic_linker
='OS/2 ld.exe'
16841 shlibpath_var
=LIBPATH
16844 osf3
* | osf4
* | osf5
*)
16848 soname_spec
='${libname}${release}${shared_ext}$major'
16849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850 shlibpath_var
=LD_LIBRARY_PATH
16851 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16852 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864 soname_spec
='${libname}${release}${shared_ext}$major'
16865 shlibpath_var
=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath
=yes
16867 hardcode_into_libs
=yes
16868 # ldd complains unless libraries are executable
16869 postinstall_cmds
='chmod +x $lib'
16874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16875 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16876 shlibpath_var
=LD_LIBRARY_PATH
16877 shlibpath_overrides_runpath
=yes
16878 if test "$with_gnu_ld" = yes; then
16886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16887 soname_spec
='${libname}${release}${shared_ext}$major'
16888 shlibpath_var
=LD_LIBRARY_PATH
16889 case $host_vendor in
16891 shlibpath_overrides_runpath
=no
16893 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16894 runpath_var
=LD_RUN_PATH
16902 shlibpath_overrides_runpath
=no
16903 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16909 if test -d /usr
/nec
;then
16911 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16912 soname_spec
='$libname${shared_ext}.$major'
16913 shlibpath_var
=LD_LIBRARY_PATH
16917 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16918 version_type
=freebsd-elf
16921 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16922 soname_spec
='${libname}${release}${shared_ext}$major'
16923 shlibpath_var
=LD_LIBRARY_PATH
16924 hardcode_into_libs
=yes
16925 if test "$with_gnu_ld" = yes; then
16926 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16927 shlibpath_overrides_runpath
=no
16929 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16930 shlibpath_overrides_runpath
=yes
16933 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16937 sys_lib_dlsearch_path_spec
='/usr/lib'
16942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943 soname_spec
='${libname}${release}${shared_ext}$major'
16944 shlibpath_var
=LD_LIBRARY_PATH
16951 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16952 echo "${ECHO_T}$dynamic_linker" >&6; }
16953 test "$dynamic_linker" = no
&& can_build_shared
=no
16955 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16956 if test "$GCC" = yes; then
16957 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16960 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16961 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16962 hardcode_action_F77
=
16963 if test -n "$hardcode_libdir_flag_spec_F77" || \
16964 test -n "$runpath_var_F77" || \
16965 test "X$hardcode_automatic_F77" = "Xyes" ; then
16967 # We can hardcode non-existant directories.
16968 if test "$hardcode_direct_F77" != no
&&
16969 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16970 # have to relink, otherwise we might link with an installed library
16971 # when we should be linking with a yet-to-be-installed one
16972 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16973 test "$hardcode_minus_L_F77" != no
; then
16974 # Linking always hardcodes the temporary library directory.
16975 hardcode_action_F77
=relink
16977 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16978 hardcode_action_F77
=immediate
16981 # We cannot hardcode anything, or else we can only hardcode existing
16983 hardcode_action_F77
=unsupported
16985 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16986 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16988 if test "$hardcode_action_F77" = relink
; then
16989 # Fast installation is not supported
16990 enable_fast_install
=no
16991 elif test "$shlibpath_overrides_runpath" = yes ||
16992 test "$enable_shared" = no
; then
16993 # Fast installation is not necessary
16994 enable_fast_install
=needless
16998 # The else clause should only fire when bootstrapping the
16999 # libtool distribution, otherwise you forgot to ship ltmain.sh
17000 # with your package, and you will get complaints that there are
17001 # no rules to generate ltmain.sh.
17002 if test -f "$ltmain"; then
17003 # See if we are running on zsh, and set the options which allow our commands through
17004 # without removal of \ escapes.
17005 if test -n "${ZSH_VERSION+set}" ; then
17006 setopt NO_GLOB_SUBST
17008 # Now quote all the things that may contain metacharacters while being
17009 # careful not to overquote the AC_SUBSTed values. We take copies of the
17010 # variables and quote the copies for generation of the libtool script.
17011 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17013 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17014 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17015 deplibs_check_method reload_flag reload_cmds need_locks \
17016 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17017 lt_cv_sys_global_symbol_to_c_name_address \
17018 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17019 old_postinstall_cmds old_postuninstall_cmds \
17023 lt_prog_compiler_wl_F77 \
17024 lt_prog_compiler_pic_F77 \
17025 lt_prog_compiler_static_F77 \
17026 lt_prog_compiler_no_builtin_flag_F77 \
17027 export_dynamic_flag_spec_F77 \
17028 thread_safe_flag_spec_F77 \
17029 whole_archive_flag_spec_F77 \
17030 enable_shared_with_static_runtimes_F77 \
17031 old_archive_cmds_F77 \
17032 old_archive_from_new_cmds_F77 \
17033 predep_objects_F77 \
17034 postdep_objects_F77 \
17037 compiler_lib_search_path_F77 \
17039 archive_expsym_cmds_F77 \
17040 postinstall_cmds_F77 \
17041 postuninstall_cmds_F77 \
17042 old_archive_from_expsyms_cmds_F77 \
17043 allow_undefined_flag_F77 \
17044 no_undefined_flag_F77 \
17045 export_symbols_cmds_F77 \
17046 hardcode_libdir_flag_spec_F77 \
17047 hardcode_libdir_flag_spec_ld_F77 \
17048 hardcode_libdir_separator_F77 \
17049 hardcode_automatic_F77 \
17051 module_expsym_cmds_F77 \
17052 lt_cv_prog_compiler_c_o_F77 \
17053 fix_srcfile_path_F77 \
17054 exclude_expsyms_F77 \
17055 include_expsyms_F77
; do
17058 old_archive_cmds_F77 | \
17059 old_archive_from_new_cmds_F77 | \
17060 archive_cmds_F77 | \
17061 archive_expsym_cmds_F77 | \
17062 module_cmds_F77 | \
17063 module_expsym_cmds_F77 | \
17064 old_archive_from_expsyms_cmds_F77 | \
17065 export_symbols_cmds_F77 | \
17066 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17067 postinstall_cmds | postuninstall_cmds | \
17068 old_postinstall_cmds | old_postuninstall_cmds | \
17069 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
17070 # Double-quote double-evaled strings.
17071 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17080 *'\$0 --fallback-echo"')
17081 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17087 cat <<__EOF__ >> "$cfgfile"
17088 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17092 # Shell to use when invoking shell scripts.
17095 # Whether or not to build shared libraries.
17096 build_libtool_libs=$enable_shared
17098 # Whether or not to build static libraries.
17099 build_old_libs=$enable_static
17101 # Whether or not to add -lc for building shared libraries.
17102 build_libtool_need_lc=$archive_cmds_need_lc_F77
17104 # Whether or not to disallow shared libs when runtime libs are static
17105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17107 # Whether or not to optimize for fast installation.
17108 fast_install=$enable_fast_install
17111 host_alias=$host_alias
17115 # The build system.
17116 build_alias=$build_alias
17120 # An echo program that does not interpret backslashes.
17125 AR_FLAGS=$lt_AR_FLAGS
17130 # LTCC compiler flags.
17131 LTCFLAGS=$lt_LTCFLAGS
17133 # A language-specific compiler.
17134 CC=$lt_compiler_F77
17136 # Is the compiler the GNU C compiler?
17142 # The linker used to build libraries.
17145 # Whether we need hard or soft links.
17148 # A BSD-compatible nm program.
17151 # A symbol stripping program
17154 # Used to examine libraries when file_magic_cmd begins "file"
17155 MAGIC_CMD=$MAGIC_CMD
17157 # Used on cygwin: DLL creation program.
17160 # Used on cygwin: object dumper.
17163 # Used on cygwin: assembler.
17166 # The name of the directory that contains temporary libtool files.
17169 # How to create reloadable object files.
17170 reload_flag=$lt_reload_flag
17171 reload_cmds=$lt_reload_cmds
17173 # How to pass a linker flag through the compiler.
17174 wl=$lt_lt_prog_compiler_wl_F77
17176 # Object file suffix (normally "o").
17177 objext="$ac_objext"
17179 # Old archive suffix (normally "a").
17182 # Shared library suffix (normally ".so").
17183 shrext_cmds='$shrext_cmds'
17185 # Executable file suffix (normally "").
17188 # Additional compiler flags for building library objects.
17189 pic_flag=$lt_lt_prog_compiler_pic_F77
17192 # What is the maximum length of a command?
17193 max_cmd_len=$lt_cv_sys_max_cmd_len
17195 # Does compiler simultaneously support -c and -o options?
17196 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17198 # Must we lock files when doing compilation?
17199 need_locks=$lt_need_locks
17201 # Do we need the lib prefix for modules?
17202 need_lib_prefix=$need_lib_prefix
17204 # Do we need a version for libraries?
17205 need_version=$need_version
17207 # Whether dlopen is supported.
17208 dlopen_support=$enable_dlopen
17210 # Whether dlopen of programs is supported.
17211 dlopen_self=$enable_dlopen_self
17213 # Whether dlopen of statically linked programs is supported.
17214 dlopen_self_static=$enable_dlopen_self_static
17216 # Compiler flag to prevent dynamic linking.
17217 link_static_flag=$lt_lt_prog_compiler_static_F77
17219 # Compiler flag to turn off builtin functions.
17220 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17222 # Compiler flag to allow reflexive dlopens.
17223 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17225 # Compiler flag to generate shared objects directly from archives.
17226 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17228 # Compiler flag to generate thread-safe objects.
17229 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17231 # Library versioning type.
17232 version_type=$version_type
17234 # Format of library name prefix.
17235 libname_spec=$lt_libname_spec
17237 # List of archive names. First name is the real one, the rest are links.
17238 # The last name is the one that the linker finds with -lNAME.
17239 library_names_spec=$lt_library_names_spec
17241 # The coded name of the library, if different from the real name.
17242 soname_spec=$lt_soname_spec
17244 # Commands used to build and install an old-style archive.
17246 old_archive_cmds=$lt_old_archive_cmds_F77
17247 old_postinstall_cmds=$lt_old_postinstall_cmds
17248 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17250 # Create an old-style archive from a shared archive.
17251 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17253 # Create a temporary old-style archive to link instead of a shared archive.
17254 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17256 # Commands used to build and install a shared archive.
17257 archive_cmds=$lt_archive_cmds_F77
17258 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17259 postinstall_cmds=$lt_postinstall_cmds
17260 postuninstall_cmds=$lt_postuninstall_cmds
17262 # Commands used to build a loadable module (assumed same as above if empty)
17263 module_cmds=$lt_module_cmds_F77
17264 module_expsym_cmds=$lt_module_expsym_cmds_F77
17266 # Commands to strip libraries.
17267 old_striplib=$lt_old_striplib
17268 striplib=$lt_striplib
17270 # Dependencies to place before the objects being linked to create a
17272 predep_objects=$lt_predep_objects_F77
17274 # Dependencies to place after the objects being linked to create a
17276 postdep_objects=$lt_postdep_objects_F77
17278 # Dependencies to place before the objects being linked to create a
17280 predeps=$lt_predeps_F77
17282 # Dependencies to place after the objects being linked to create a
17284 postdeps=$lt_postdeps_F77
17286 # The library search path used internally by the compiler when linking
17287 # a shared library.
17288 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17290 # Method to check whether dependent libraries are shared objects.
17291 deplibs_check_method=$lt_deplibs_check_method
17293 # Command to use when deplibs_check_method == file_magic.
17294 file_magic_cmd=$lt_file_magic_cmd
17296 # Flag that allows shared libraries with undefined symbols to be built.
17297 allow_undefined_flag=$lt_allow_undefined_flag_F77
17299 # Flag that forces no undefined symbols.
17300 no_undefined_flag=$lt_no_undefined_flag_F77
17302 # Commands used to finish a libtool library installation in a directory.
17303 finish_cmds=$lt_finish_cmds
17305 # Same as above, but a single script fragment to be evaled but not shown.
17306 finish_eval=$lt_finish_eval
17308 # Take the output of nm and produce a listing of raw symbols and C names.
17309 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17311 # Transform the output of nm in a proper C declaration
17312 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17314 # Transform the output of nm in a C name address pair
17315 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17317 # This is the shared library runtime path variable.
17318 runpath_var=$runpath_var
17320 # This is the shared library path variable.
17321 shlibpath_var=$shlibpath_var
17323 # Is shlibpath searched before the hard-coded library search path?
17324 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17326 # How to hardcode a shared library path into an executable.
17327 hardcode_action=$hardcode_action_F77
17329 # Whether we should hardcode library paths into libraries.
17330 hardcode_into_libs=$hardcode_into_libs
17332 # Flag to hardcode \$libdir into a binary during linking.
17333 # This must work even if \$libdir does not exist.
17334 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17336 # If ld is used when linking, flag to hardcode \$libdir into
17337 # a binary during linking. This must work even if \$libdir does
17339 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17341 # Whether we need a single -rpath flag with a separated argument.
17342 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17344 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17345 # resulting binary.
17346 hardcode_direct=$hardcode_direct_F77
17348 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17349 # resulting binary.
17350 hardcode_minus_L=$hardcode_minus_L_F77
17352 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17353 # the resulting binary.
17354 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17356 # Set to yes if building a shared library automatically hardcodes DIR into the library
17357 # and all subsequent libraries and executables linked against it.
17358 hardcode_automatic=$hardcode_automatic_F77
17360 # Variables whose values should be saved in libtool wrapper scripts and
17361 # restored at relink time.
17362 variables_saved_for_relink="$variables_saved_for_relink"
17364 # Whether libtool must link a program against all its dependency libraries.
17365 link_all_deplibs=$link_all_deplibs_F77
17367 # Compile-time system search path for libraries
17368 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17370 # Run-time system search path for libraries
17371 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17373 # Fix the shell variable \$srcfile for the compiler.
17374 fix_srcfile_path=$lt_fix_srcfile_path
17376 # Set to yes if exported symbols are required.
17377 always_export_symbols=$always_export_symbols_F77
17379 # The commands to list exported symbols.
17380 export_symbols_cmds=$lt_export_symbols_cmds_F77
17382 # The commands to extract the exported symbol list from a shared archive.
17383 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17385 # Symbols that should not be listed in the preloaded symbols.
17386 exclude_expsyms=$lt_exclude_expsyms_F77
17388 # Symbols that must always be exported.
17389 include_expsyms=$lt_include_expsyms_F77
17391 # ### END LIBTOOL TAG CONFIG: $tagname
17397 # If there is no Makefile yet, we rely on a make rule to execute
17398 # `config.status --recheck' to rerun these tests and create the
17399 # libtool script then.
17400 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17401 if test -f "$ltmain_in"; then
17402 test -f Makefile
&& make "$ltmain"
17408 ac_cpp
='$CPP $CPPFLAGS'
17409 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17410 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17411 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17421 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17424 # Source file extension for Java test sources.
17427 # Object file extension for compiled Java test sources.
17431 # Code to be used in simple compile tests
17432 lt_simple_compile_test_code
="class foo {}"
17434 # Code to be used in simple link tests
17435 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
17437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17439 # If no C compiler was specified, use CC.
17442 # If no C compiler flags were specified, use CFLAGS.
17443 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17445 # Allow CC to be a program name with arguments.
17449 # save warnings/boilerplate of simple test code
17450 ac_outfile
=conftest.
$ac_objext
17451 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17452 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17453 _lt_compiler_boilerplate
=`cat conftest.err`
17456 ac_outfile
=conftest.
$ac_objext
17457 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17458 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17459 _lt_linker_boilerplate
=`cat conftest.err`
17463 # Allow CC to be a program name with arguments.
17468 for cc_temp
in $compiler""; do
17470 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17471 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17476 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17479 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17480 archive_cmds_need_lc_GCJ
=no
17482 old_archive_cmds_GCJ
=$old_archive_cmds
17485 lt_prog_compiler_no_builtin_flag_GCJ
=
17487 if test "$GCC" = yes; then
17488 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
17491 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17492 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17493 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 lt_cv_prog_compiler_rtti_exceptions
=no
17497 ac_outfile
=conftest.
$ac_objext
17498 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17499 lt_compiler_flag
="-fno-rtti -fno-exceptions"
17500 # Insert the option either (1) after the last *FLAGS variable, or
17501 # (2) before a word containing "conftest.", or (3) at the end.
17502 # Note that $ac_compile itself does not contain backslashes and begins
17503 # with a dollar sign (not a hyphen), so the echo should work correctly.
17504 # The option is referenced via a variable to avoid confusing sed.
17505 lt_compile
=`echo "$ac_compile" | $SED \
17506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17508 -e 's:$: $lt_compiler_flag:'`
17509 (eval echo "\"\$as_me:17509: $lt_compile\"" >&5)
17510 (eval "$lt_compile" 2>conftest.err
)
17512 cat conftest.err
>&5
17513 echo "$as_me:17513: \$? = $ac_status" >&5
17514 if (exit $ac_status) && test -s "$ac_outfile"; then
17515 # The compiler can only warn and ignore the option if not recognized
17516 # So say no if there are warnings other than the usual output.
17517 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
17518 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17519 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
17520 lt_cv_prog_compiler_rtti_exceptions
=yes
17526 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17527 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17529 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
17530 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17537 lt_prog_compiler_wl_GCJ
=
17538 lt_prog_compiler_pic_GCJ
=
17539 lt_prog_compiler_static_GCJ
=
17541 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17542 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17544 if test "$GCC" = yes; then
17545 lt_prog_compiler_wl_GCJ
='-Wl,'
17546 lt_prog_compiler_static_GCJ
='-static'
17550 # All AIX code is PIC.
17551 if test "$host_cpu" = ia64
; then
17552 # AIX 5 now supports IA64 processor
17553 lt_prog_compiler_static_GCJ
='-Bstatic'
17558 # FIXME: we need at least 68020 code to build shared libraries, but
17559 # adding the `-m68020' flag to GCC prevents building anything better,
17561 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
17564 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
17565 # PIC is the default for these OSes.
17568 mingw
* | cygwin
* | pw32
* | os2
*)
17569 # This hack is so that the source file can tell whether it is being
17570 # built for inclusion in a dll (and should export symbols for example).
17571 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17572 # (--disable-auto-import) libraries
17573 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
17576 darwin
* | rhapsody
*)
17577 # PIC is the default on this platform
17578 # Common symbols not allowed in MH_DYLIB files
17579 lt_prog_compiler_pic_GCJ
='-fno-common'
17583 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17584 # Instead, we relocate shared libraries at runtime.
17588 # Just because we use GCC doesn't mean we suddenly get shared libraries
17589 # on systems that don't support them.
17590 lt_prog_compiler_can_build_shared_GCJ
=no
17595 if test -d /usr
/nec
; then
17596 lt_prog_compiler_pic_GCJ
=-Kconform_pic
17601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17602 # not for PA HP-UX.
17608 lt_prog_compiler_pic_GCJ
='-fPIC'
17614 lt_prog_compiler_pic_GCJ
='-fPIC'
17618 # PORTME Check for flag to pass linker flags through the system compiler.
17621 lt_prog_compiler_wl_GCJ
='-Wl,'
17622 if test "$host_cpu" = ia64
; then
17623 # AIX 5 now supports IA64 processor
17624 lt_prog_compiler_static_GCJ
='-Bstatic'
17626 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
17630 # PIC is the default on this platform
17631 # Common symbols not allowed in MH_DYLIB files
17632 case $cc_basename in
17634 lt_prog_compiler_pic_GCJ
='-qnocommon'
17635 lt_prog_compiler_wl_GCJ
='-Wl,'
17640 mingw
* | cygwin
* | pw32
* | os2
*)
17641 # This hack is so that the source file can tell whether it is being
17642 # built for inclusion in a dll (and should export symbols for example).
17643 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
17646 hpux9
* | hpux10
* | hpux11
*)
17647 lt_prog_compiler_wl_GCJ
='-Wl,'
17648 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17649 # not for PA HP-UX.
17655 lt_prog_compiler_pic_GCJ
='+Z'
17658 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17659 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
17662 irix5
* | irix6
* | nonstopux
*)
17663 lt_prog_compiler_wl_GCJ
='-Wl,'
17664 # PIC (with -KPIC) is the default.
17665 lt_prog_compiler_static_GCJ
='-non_shared'
17669 lt_prog_compiler_pic_GCJ
='-KPIC'
17670 lt_prog_compiler_static_GCJ
='-Bstatic'
17673 linux
* | k
*bsd
*-gnu)
17674 case $cc_basename in
17676 lt_prog_compiler_wl_GCJ
='-Wl,'
17677 lt_prog_compiler_pic_GCJ
='-KPIC'
17678 lt_prog_compiler_static_GCJ
='-static'
17680 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
17681 # Portland Group compilers (*not* the Pentium gcc compiler,
17682 # which looks to be a dead project)
17683 lt_prog_compiler_wl_GCJ
='-Wl,'
17684 lt_prog_compiler_pic_GCJ
='-fpic'
17685 lt_prog_compiler_static_GCJ
='-Bstatic'
17688 lt_prog_compiler_wl_GCJ
='-Wl,'
17689 # All Alpha code is PIC.
17690 lt_prog_compiler_static_GCJ
='-non_shared'
17693 case `$CC -V 2>&1 | sed 5q` in
17696 lt_prog_compiler_pic_GCJ
='-KPIC'
17697 lt_prog_compiler_static_GCJ
='-Bstatic'
17698 lt_prog_compiler_wl_GCJ
='-Wl,'
17701 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17702 lt_prog_compiler_pic_GCJ
='-KPIC'
17703 lt_prog_compiler_static_GCJ
='-Bstatic'
17704 lt_prog_compiler_wl_GCJ
=''
17711 osf3
* | osf4
* | osf5
*)
17712 lt_prog_compiler_wl_GCJ
='-Wl,'
17713 # All OSF/1 code is PIC.
17714 lt_prog_compiler_static_GCJ
='-non_shared'
17718 lt_prog_compiler_static_GCJ
='-non_shared'
17722 lt_prog_compiler_pic_GCJ
='-KPIC'
17723 lt_prog_compiler_static_GCJ
='-Bstatic'
17724 case $cc_basename in
17725 f77
* | f90
* | f95
*)
17726 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
17728 lt_prog_compiler_wl_GCJ
='-Wl,';;
17733 lt_prog_compiler_wl_GCJ
='-Qoption ld '
17734 lt_prog_compiler_pic_GCJ
='-PIC'
17735 lt_prog_compiler_static_GCJ
='-Bstatic'
17738 sysv4 | sysv4.2uw2
* | sysv4.3
*)
17739 lt_prog_compiler_wl_GCJ
='-Wl,'
17740 lt_prog_compiler_pic_GCJ
='-KPIC'
17741 lt_prog_compiler_static_GCJ
='-Bstatic'
17745 if test -d /usr
/nec
;then
17746 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
17747 lt_prog_compiler_static_GCJ
='-Bstatic'
17751 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
17752 lt_prog_compiler_wl_GCJ
='-Wl,'
17753 lt_prog_compiler_pic_GCJ
='-KPIC'
17754 lt_prog_compiler_static_GCJ
='-Bstatic'
17758 lt_prog_compiler_wl_GCJ
='-Wl,'
17759 lt_prog_compiler_can_build_shared_GCJ
=no
17763 lt_prog_compiler_pic_GCJ
='-pic'
17764 lt_prog_compiler_static_GCJ
='-Bstatic'
17768 lt_prog_compiler_can_build_shared_GCJ
=no
17773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17774 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17777 # Check to make sure the PIC flag actually works.
17779 if test -n "$lt_prog_compiler_pic_GCJ"; then
17781 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17783 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 lt_prog_compiler_pic_works_GCJ
=no
17787 ac_outfile
=conftest.
$ac_objext
17788 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17789 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
17790 # Insert the option either (1) after the last *FLAGS variable, or
17791 # (2) before a word containing "conftest.", or (3) at the end.
17792 # Note that $ac_compile itself does not contain backslashes and begins
17793 # with a dollar sign (not a hyphen), so the echo should work correctly.
17794 # The option is referenced via a variable to avoid confusing sed.
17795 lt_compile
=`echo "$ac_compile" | $SED \
17796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17798 -e 's:$: $lt_compiler_flag:'`
17799 (eval echo "\"\$as_me:17799: $lt_compile\"" >&5)
17800 (eval "$lt_compile" 2>conftest.err
)
17802 cat conftest.err
>&5
17803 echo "$as_me:17803: \$? = $ac_status" >&5
17804 if (exit $ac_status) && test -s "$ac_outfile"; then
17805 # The compiler can only warn and ignore the option if not recognized
17806 # So say no if there are warnings other than the usual output.
17807 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
17808 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17809 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
17810 lt_prog_compiler_pic_works_GCJ
=yes
17816 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17817 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17819 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
17820 case $lt_prog_compiler_pic_GCJ in
17822 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
17825 lt_prog_compiler_pic_GCJ
=
17826 lt_prog_compiler_can_build_shared_GCJ
=no
17831 # For platforms which do not support PIC, -DPIC is meaningless:
17833 lt_prog_compiler_pic_GCJ
=
17836 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
17841 # Check to make sure the static flag actually works.
17843 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
17844 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17845 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17846 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 lt_prog_compiler_static_works_GCJ
=no
17850 save_LDFLAGS
="$LDFLAGS"
17851 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17852 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17853 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17854 # The linker can only warn and ignore the option if not recognized
17855 # So say no if there are warnings
17856 if test -s conftest.err
; then
17857 # Append any errors to the config.log.
17858 cat conftest.err
1>&5
17859 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17860 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17861 if diff conftest.exp conftest.er2
>/dev
/null
; then
17862 lt_prog_compiler_static_works_GCJ
=yes
17865 lt_prog_compiler_static_works_GCJ
=yes
17869 LDFLAGS
="$save_LDFLAGS"
17872 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17873 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17875 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
17878 lt_prog_compiler_static_GCJ
=
17882 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17883 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17884 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17887 lt_cv_prog_compiler_c_o_GCJ
=no
17888 $rm -r conftest
2>/dev
/null
17892 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17894 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17895 # Insert the option either (1) after the last *FLAGS variable, or
17896 # (2) before a word containing "conftest.", or (3) at the end.
17897 # Note that $ac_compile itself does not contain backslashes and begins
17898 # with a dollar sign (not a hyphen), so the echo should work correctly.
17899 lt_compile
=`echo "$ac_compile" | $SED \
17900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17902 -e 's:$: $lt_compiler_flag:'`
17903 (eval echo "\"\$as_me:17903: $lt_compile\"" >&5)
17904 (eval "$lt_compile" 2>out
/conftest.err
)
17906 cat out
/conftest.err
>&5
17907 echo "$as_me:17907: \$? = $ac_status" >&5
17908 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17910 # The compiler can only warn and ignore the option if not recognized
17911 # So say no if there are warnings
17912 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17913 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17914 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17915 lt_cv_prog_compiler_c_o_GCJ
=yes
17920 # SGI C++ compiler will create directory out/ii_files/ for
17921 # template instantiation
17922 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
17923 $rm out
/* && rmdir out
17929 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17930 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17933 hard_links
="nottested"
17934 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
17935 # do not overwrite the value of need_locks provided by the user
17936 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17937 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17940 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17942 ln conftest.a conftest.b
2>&5 || hard_links
=no
17943 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17944 { echo "$as_me:$LINENO: result: $hard_links" >&5
17945 echo "${ECHO_T}$hard_links" >&6; }
17946 if test "$hard_links" = no
; then
17947 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17948 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17955 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17956 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17959 allow_undefined_flag_GCJ
=
17960 enable_shared_with_static_runtimes_GCJ
=no
17962 archive_expsym_cmds_GCJ
=
17963 old_archive_From_new_cmds_GCJ
=
17964 old_archive_from_expsyms_cmds_GCJ
=
17965 export_dynamic_flag_spec_GCJ
=
17966 whole_archive_flag_spec_GCJ
=
17967 thread_safe_flag_spec_GCJ
=
17968 hardcode_libdir_flag_spec_GCJ
=
17969 hardcode_libdir_flag_spec_ld_GCJ
=
17970 hardcode_libdir_separator_GCJ
=
17971 hardcode_direct_GCJ
=no
17972 hardcode_minus_L_GCJ
=no
17973 hardcode_shlibpath_var_GCJ
=unsupported
17974 link_all_deplibs_GCJ
=unknown
17975 hardcode_automatic_GCJ
=no
17977 module_expsym_cmds_GCJ
=
17978 always_export_symbols_GCJ
=no
17979 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17980 # include_expsyms should be a list of space-separated symbols to be *always*
17981 # included in the symbol list
17982 include_expsyms_GCJ
=
17983 # exclude_expsyms can be an extended regexp of symbols to exclude
17984 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17985 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17986 # as well as any symbol that contains `d'.
17987 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
17988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17989 # platforms (ab)use it in PIC code, but their linkers get confused if
17990 # the symbol is explicitly referenced. Since portable code cannot
17991 # rely on this symbol name, it's probably fine to never include it in
17992 # preloaded symbol tables.
17993 extract_expsyms_cmds
=
17994 # Just being paranoid about ensuring that cc_basename is set.
17995 for cc_temp
in $compiler""; do
17997 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17998 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18003 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18006 cygwin
* | mingw
* | pw32
*)
18007 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18008 # When not using gcc, we currently assume that we are using
18009 # Microsoft Visual C++.
18010 if test "$GCC" != yes; then
18015 # we just hope/assume this is gcc and not c89 (= MSVC++)
18024 if test "$with_gnu_ld" = yes; then
18025 # If archive_cmds runs LD, not CC, wlarc should be empty
18028 # Set some defaults for GNU ld with shared library support. These
18029 # are reset later if shared libraries are not supported. Putting them
18030 # here allows them to be overridden if necessary.
18031 runpath_var
=LD_RUN_PATH
18032 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
18033 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
18034 # ancient GNU ld didn't support --whole-archive et. al.
18035 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
18036 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18038 whole_archive_flag_spec_GCJ
=
18040 supports_anon_versioning
=no
18041 case `$LD -v 2>/dev/null` in
18042 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
18043 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
18044 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
18045 *\
2.11.
*) ;; # other 2.11 versions
18046 *) supports_anon_versioning
=yes ;;
18049 # See if GNU ld supports shared libraries.
18051 aix3
* | aix4
* | aix5
*)
18052 # On AIX/PPC, the GNU linker is very broken
18053 if test "$host_cpu" != ia64
; then
18057 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18058 *** to be unable to reliably create shared libraries on AIX.
18059 *** Therefore, libtool is disabling shared libraries support. If you
18060 *** really care for shared libraries, you may want to modify your PATH
18061 *** so that a non-GNU linker is found, and then restart.
18068 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)'
18069 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18070 hardcode_minus_L_GCJ
=yes
18072 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18073 # that the semantics of dynamic libraries on AmigaOS, at least up
18074 # to version 4, is to share data among multiple programs linked
18075 # with the same dynamic library. Since this doesn't match the
18076 # behavior of shared libraries on other platforms, we can't use
18082 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
18083 allow_undefined_flag_GCJ
=unsupported
18084 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18085 # support --undefined. This deserves some investigation. FIXME
18086 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18092 cygwin
* | mingw
* | pw32
*)
18093 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18094 # as there is no search path for DLLs.
18095 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18096 allow_undefined_flag_GCJ
=unsupported
18097 always_export_symbols_GCJ
=no
18098 enable_shared_with_static_runtimes_GCJ
=yes
18099 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18101 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
18102 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18103 # If the export-symbols file already is a .def file (1st line
18104 # is EXPORTS), use it as is; otherwise, prepend...
18105 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18106 cp $export_symbols $output_objdir/$soname.def;
18108 echo EXPORTS > $output_objdir/$soname.def;
18109 cat $export_symbols >> $output_objdir/$soname.def;
18111 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18118 hardcode_direct_GCJ
=no
18119 hardcode_shlibpath_var_GCJ
=no
18120 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18121 export_dynamic_flag_spec_GCJ
='${wl}-E'
18122 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18123 # Instead, shared libraries are loaded at an image base (0x10000000 by
18124 # default) and relocated if they conflict, which is a slow very memory
18125 # consuming and fragmenting process. To avoid this, we pick a random,
18126 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18127 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18128 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'
18129 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'
18132 gnu
* | linux
* | k
*bsd
*-gnu)
18133 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
18135 case $cc_basename,$host_cpu in
18136 pgcc
*) # Portland Group C compiler
18137 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'
18138 tmp_addflag
=' $pic_flag'
18140 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
18141 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'
18142 tmp_addflag
=' $pic_flag -Mnomain' ;;
18143 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
18144 tmp_addflag
=' -i_dynamic' ;;
18145 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
18146 tmp_addflag
=' -i_dynamic -nofor_main' ;;
18147 ifc
* | ifort
*) # Intel Fortran compiler
18148 tmp_addflag
=' -nofor_main' ;;
18150 case `$CC -V 2>&1 | sed 5q` in
18151 *Sun\ C
*) # Sun C 5.9
18152 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'
18153 tmp_sharedflag
='-G' ;;
18154 *Sun\ F
*) # Sun Fortran 8.3
18155 tmp_sharedflag
='-G' ;;
18157 tmp_sharedflag
='-shared' ;;
18159 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18161 if test $supports_anon_versioning = yes; then
18162 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
18163 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18164 $echo "local: *; };" >> $output_objdir/$libname.ver~
18165 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18173 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18174 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18177 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18178 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18183 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
18187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18188 *** create shared libraries on Solaris systems. Therefore, libtool
18189 *** is disabling shared libraries support. We urge you to upgrade GNU
18190 *** binutils to release 2.9.1 or newer. Another option is to modify
18191 *** your PATH or compiler configuration so that the native linker is
18192 *** used, and then restart.
18195 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
18196 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18197 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18203 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
18204 case `$LD -v 2>&1` in
18205 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
18209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18210 *** reliably create shared libraries on SCO systems. Therefore, libtool
18211 *** is disabling shared libraries support. We urge you to upgrade GNU
18212 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18213 *** your PATH or compiler configuration so that the native linker is
18214 *** used, and then restart.
18219 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
18220 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18221 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18222 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18231 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18233 hardcode_direct_GCJ
=yes
18234 hardcode_shlibpath_var_GCJ
=no
18238 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
18239 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18240 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18247 if test "$ld_shlibs_GCJ" = no
; then
18249 hardcode_libdir_flag_spec_GCJ
=
18250 export_dynamic_flag_spec_GCJ
=
18251 whole_archive_flag_spec_GCJ
=
18254 # PORTME fill in a description of your system's linker (not GNU ld)
18257 allow_undefined_flag_GCJ
=unsupported
18258 always_export_symbols_GCJ
=yes
18259 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'
18260 # Note: this linker hardcodes the directories in LIBPATH if there
18261 # are no directories specified by -L.
18262 hardcode_minus_L_GCJ
=yes
18263 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18264 # Neither direct hardcoding nor static linking is supported with a
18266 hardcode_direct_GCJ
=unsupported
18271 if test "$host_cpu" = ia64
; then
18272 # On IA64, the linker does run time linking by default, so we don't
18273 # have to do anything special.
18274 aix_use_runtimelinking
=no
18275 exp_sym_flag
='-Bexport'
18278 # If we're using GNU nm, then we don't want the "-C" option.
18279 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18280 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
18281 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'
18283 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'
18285 aix_use_runtimelinking
=no
18287 # Test if we are trying to use run time linking or normal
18288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18289 # need to do runtime linking.
18290 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
18291 for ld_flag
in $LDFLAGS; do
18292 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
18293 aix_use_runtimelinking
=yes
18300 exp_sym_flag
='-bexport'
18301 no_entry_flag
='-bnoentry'
18304 # When large executables or shared objects are built, AIX ld can
18305 # have problems creating the table of contents. If linking a library
18306 # or program results in "error TOC overflow" add -mminimal-toc to
18307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18310 archive_cmds_GCJ
=''
18311 hardcode_direct_GCJ
=yes
18312 hardcode_libdir_separator_GCJ
=':'
18313 link_all_deplibs_GCJ
=yes
18315 if test "$GCC" = yes; then
18316 case $host_os in aix4.
[012]|aix4.
[012].
*)
18317 # We only want to do this on AIX 4.2 and lower, the check
18318 # below for broken collect2 doesn't work under 4.3+
18319 collect2name
=`${CC} -print-prog-name=collect2`
18320 if test -f "$collect2name" && \
18321 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
18323 # We have reworked collect2
18326 # We have old collect2
18327 hardcode_direct_GCJ
=unsupported
18328 # It fails to find uninstalled libraries when the uninstalled
18329 # path is not listed in the libpath. Setting hardcode_minus_L
18330 # to unsupported forces relinking
18331 hardcode_minus_L_GCJ
=yes
18332 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18333 hardcode_libdir_separator_GCJ
=
18337 shared_flag
='-shared'
18338 if test "$aix_use_runtimelinking" = yes; then
18339 shared_flag
="$shared_flag "'${wl}-G'
18343 if test "$host_cpu" = ia64
; then
18344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18345 # chokes on -Wl,-G. The following line is correct:
18348 if test "$aix_use_runtimelinking" = yes; then
18349 shared_flag
='${wl}-G'
18351 shared_flag
='${wl}-bM:SRE'
18356 # It seems that -bexpall does not export symbols beginning with
18357 # underscore (_), so it is better to generate a list of symbols to export.
18358 always_export_symbols_GCJ
=yes
18359 if test "$aix_use_runtimelinking" = yes; then
18360 # Warning - without using the other runtime loading flags (-brtl),
18361 # -berok will link without error, but may produce a broken library.
18362 allow_undefined_flag_GCJ
='-berok'
18363 # Determine the default libpath from the value encoded in an empty executable.
18364 cat >conftest.
$ac_ext <<_ACEOF
18367 cat confdefs.h
>>conftest.
$ac_ext
18368 cat >>conftest.
$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18379 rm -f conftest.
$ac_objext conftest
$ac_exeext
18380 if { (ac_try
="$ac_link"
18381 case "(($ac_try" in
18382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386 (eval "$ac_link") 2>conftest.er1
18388 grep -v '^ *+' conftest.er1 >conftest.err
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } && {
18393 test -z "$ac_c_werror_flag" ||
18394 test ! -s conftest.err
18395 } && test -s conftest$ac_exeext &&
18396 $as_test_x conftest$ac_exeext; then
18398 lt_aix_libpath_sed='
18399 /Import File Strings/,/^$/ {
18405 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
18406 # Check for a 64-bit object if we didn't find anything.
18407 if test -z "$aix_libpath"; then
18408 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18418 conftest$ac_exeext conftest.$ac_ext
18419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18421 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18422 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"
18424 if test "$host_cpu" = ia64; then
18425 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18426 allow_undefined_flag_GCJ="-z nodefs"
18427 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"
18429 # Determine the default libpath from the value encoded in an empty executable.
18430 cat >conftest.$ac_ext <<_ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h. */
18445 rm -f conftest.$ac_objext conftest$ac_exeext
18446 if { (ac_try="$ac_link"
18447 case "(($ac_try" in
18448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18449 *) ac_try_echo
=$ac_try;;
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_link") 2>conftest.er1
18454 grep -v '^ *+' conftest.er1
>conftest.err
18456 cat conftest.err
>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } && {
18459 test -z "$ac_c_werror_flag" ||
18460 test ! -s conftest.err
18461 } && test -s conftest
$ac_exeext &&
18462 $as_test_x conftest
$ac_exeext; then
18464 lt_aix_libpath_sed
='
18465 /Import File Strings/,/^$/ {
18471 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18472 # Check for a 64-bit object if we didn't find anything.
18473 if test -z "$aix_libpath"; then
18474 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.
$ac_ext >&5
18483 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18484 conftest
$ac_exeext conftest.
$ac_ext
18485 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18487 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
18488 # Warning - without using the other run time loading flags,
18489 # -berok will link without error, but may produce a broken library.
18490 no_undefined_flag_GCJ
=' ${wl}-bernotok'
18491 allow_undefined_flag_GCJ
=' ${wl}-berok'
18492 # Exported symbols can be pulled into shared objects from archives
18493 whole_archive_flag_spec_GCJ
='$convenience'
18494 archive_cmds_need_lc_GCJ
=yes
18495 # This is similar to how AIX traditionally builds its shared libraries.
18496 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'
18502 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)'
18503 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18504 hardcode_minus_L_GCJ
=yes
18505 # see comment about different semantics on the GNU ld section
18510 export_dynamic_flag_spec_GCJ
=-rdynamic
18513 cygwin
* | mingw
* | pw32
*)
18514 # When not using gcc, we currently assume that we are using
18515 # Microsoft Visual C++.
18516 # hardcode_libdir_flag_spec is actually meaningless, as there is
18517 # no search path for DLLs.
18518 hardcode_libdir_flag_spec_GCJ
=' '
18519 allow_undefined_flag_GCJ
=unsupported
18520 # Tell ltmain to make .lib files, not .a files.
18522 # Tell ltmain to make .dll files, not .so files.
18524 # FIXME: Setting linknames here is a bad hack.
18525 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18526 # The linker will automatically build a .lib file if we build a DLL.
18527 old_archive_From_new_cmds_GCJ
='true'
18528 # FIXME: Should let the user specify the lib program.
18529 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18530 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
18531 enable_shared_with_static_runtimes_GCJ
=yes
18534 darwin
* | rhapsody
*)
18536 rhapsody
* | darwin1.
[012])
18537 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
18540 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18541 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18543 case ${MACOSX_DEPLOYMENT_TARGET} in
18545 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18548 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
18554 archive_cmds_need_lc_GCJ
=no
18555 hardcode_direct_GCJ
=no
18556 hardcode_automatic_GCJ
=yes
18557 hardcode_shlibpath_var_GCJ
=unsupported
18558 whole_archive_flag_spec_GCJ
=''
18559 link_all_deplibs_GCJ
=yes
18560 if test "$GCC" = yes ; then
18561 output_verbose_link_cmd
='echo'
18562 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18563 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18564 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18565 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}'
18566 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}'
18568 case $cc_basename in
18570 output_verbose_link_cmd
='echo'
18571 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18572 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18574 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}'
18575 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}'
18585 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18586 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18587 hardcode_shlibpath_var_GCJ
=no
18594 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18595 # support. Future versions do this automatically, but an explicit c++rt0.o
18596 # does not break anything, and helps significantly (at the cost of a little
18599 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18600 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18601 hardcode_direct_GCJ
=yes
18602 hardcode_shlibpath_var_GCJ
=no
18605 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18607 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18608 hardcode_direct_GCJ
=yes
18609 hardcode_minus_L_GCJ
=yes
18610 hardcode_shlibpath_var_GCJ
=no
18613 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18614 freebsd
* | dragonfly
*)
18615 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18616 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18617 hardcode_direct_GCJ
=yes
18618 hardcode_shlibpath_var_GCJ
=no
18622 if test "$GCC" = yes; then
18623 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'
18625 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'
18627 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
18628 hardcode_libdir_separator_GCJ
=:
18629 hardcode_direct_GCJ
=yes
18631 # hardcode_minus_L: Not really in the search PATH,
18632 # but as the default location of the library.
18633 hardcode_minus_L_GCJ
=yes
18634 export_dynamic_flag_spec_GCJ
='${wl}-E'
18638 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18639 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18641 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18643 if test "$with_gnu_ld" = no
; then
18644 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
18645 hardcode_libdir_separator_GCJ
=:
18647 hardcode_direct_GCJ
=yes
18648 export_dynamic_flag_spec_GCJ
='${wl}-E'
18650 # hardcode_minus_L: Not really in the search PATH,
18651 # but as the default location of the library.
18652 hardcode_minus_L_GCJ
=yes
18657 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18660 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18663 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18666 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18672 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18675 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18678 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18682 if test "$with_gnu_ld" = no
; then
18683 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
18684 hardcode_libdir_separator_GCJ
=:
18688 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
18689 hardcode_direct_GCJ
=no
18690 hardcode_shlibpath_var_GCJ
=no
18693 hardcode_direct_GCJ
=yes
18694 export_dynamic_flag_spec_GCJ
='${wl}-E'
18696 # hardcode_minus_L: Not really in the search PATH,
18697 # but as the default location of the library.
18698 hardcode_minus_L_GCJ
=yes
18704 irix5
* | irix6
* | nonstopux
*)
18705 if test "$GCC" = yes; then
18706 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'
18708 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'
18709 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
18711 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18712 hardcode_libdir_separator_GCJ
=:
18713 link_all_deplibs_GCJ
=yes
18717 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18718 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18720 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18722 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18723 hardcode_direct_GCJ
=yes
18724 hardcode_shlibpath_var_GCJ
=no
18728 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18729 hardcode_direct_GCJ
=yes
18730 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18731 hardcode_libdir_separator_GCJ
=:
18732 hardcode_shlibpath_var_GCJ
=no
18736 if test -f /usr
/libexec
/ld.so
; then
18737 hardcode_direct_GCJ
=yes
18738 hardcode_shlibpath_var_GCJ
=no
18739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18740 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18741 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18742 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18743 export_dynamic_flag_spec_GCJ
='${wl}-E'
18746 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18747 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18748 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18751 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18752 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18762 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18763 hardcode_minus_L_GCJ
=yes
18764 allow_undefined_flag_GCJ
=unsupported
18765 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'
18766 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18770 if test "$GCC" = yes; then
18771 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
18772 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'
18774 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
18775 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'
18777 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18778 hardcode_libdir_separator_GCJ
=:
18781 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18782 if test "$GCC" = yes; then
18783 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
18784 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'
18785 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
18787 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
18788 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'
18789 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~
18790 $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'
18792 # Both c and cxx compiler support -rpath directly
18793 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
18795 hardcode_libdir_separator_GCJ
=:
18799 no_undefined_flag_GCJ
=' -z text'
18800 if test "$GCC" = yes; then
18802 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18803 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18804 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18807 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18808 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18809 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18811 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18812 hardcode_shlibpath_var_GCJ
=no
18814 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18816 # The compiler driver will combine and reorder linker options,
18817 # but understands `-z linker_flag'. GCC discards it without `$wl',
18818 # but is careful enough not to reorder.
18819 # Supported since Solaris 2.6 (maybe 2.5.1?)
18820 if test "$GCC" = yes; then
18821 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18823 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
18827 link_all_deplibs_GCJ
=yes
18831 if test "x$host_vendor" = xsequent
; then
18832 # Use $CC to link under sequent, because it throws in some extra .o
18833 # files that make .init and .fini sections work.
18834 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18836 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18838 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18839 hardcode_direct_GCJ
=yes
18840 hardcode_minus_L_GCJ
=yes
18841 hardcode_shlibpath_var_GCJ
=no
18845 case $host_vendor in
18847 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18848 hardcode_direct_GCJ
=yes # is this really true???
18851 ## LD is ld it makes a PLAMLIB
18852 ## CC just makes a GrossModule.
18853 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18854 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
18855 hardcode_direct_GCJ
=no
18858 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18859 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
18862 runpath_var
='LD_RUN_PATH'
18863 hardcode_shlibpath_var_GCJ
=no
18867 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18868 hardcode_shlibpath_var_GCJ
=no
18869 export_dynamic_flag_spec_GCJ
='-Bexport'
18873 if test -d /usr
/nec
; then
18874 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18875 hardcode_shlibpath_var_GCJ
=no
18876 runpath_var
=LD_RUN_PATH
18877 hardcode_runpath_var
=yes
18882 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18883 no_undefined_flag_GCJ
='${wl}-z,text'
18884 archive_cmds_need_lc_GCJ
=no
18885 hardcode_shlibpath_var_GCJ
=no
18886 runpath_var
='LD_RUN_PATH'
18888 if test "$GCC" = yes; then
18889 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18890 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18892 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18893 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18897 sysv5
* | sco3.2v5
* | sco5v6
*)
18898 # Note: We can NOT use -z defs as we might desire, because we do not
18899 # link with -lc, and that would cause any symbols used from libc to
18900 # always be unresolved, which means just about no library would
18901 # ever link correctly. If we're not using GNU ld we use -z text
18902 # though, which does catch some bad symbols but isn't as heavy-handed
18904 no_undefined_flag_GCJ
='${wl}-z,text'
18905 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
18906 archive_cmds_need_lc_GCJ
=no
18907 hardcode_shlibpath_var_GCJ
=no
18908 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18909 hardcode_libdir_separator_GCJ
=':'
18910 link_all_deplibs_GCJ
=yes
18911 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
18912 runpath_var
='LD_RUN_PATH'
18914 if test "$GCC" = yes; then
18915 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18916 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18918 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18919 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18924 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18925 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18926 hardcode_shlibpath_var_GCJ
=no
18935 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18936 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18937 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
18940 # Do we need to explicitly link libc?
18942 case "x$archive_cmds_need_lc_GCJ" in
18944 # Assume -lc should be added
18945 archive_cmds_need_lc_GCJ
=yes
18947 if test "$enable_shared" = yes && test "$GCC" = yes; then
18948 case $archive_cmds_GCJ in
18950 # FIXME: we may have to deal with multi-command sequences.
18953 # Test whether the compiler implicitly links with -lc since on some
18954 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18955 # to ld, don't add -lc before -lgcc.
18956 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18957 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18959 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962 (eval $ac_compile) 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } 2>conftest.err
; then
18968 libobjs
=conftest.
$ac_objext
18970 wl
=$lt_prog_compiler_wl_GCJ
18971 pic_flag
=$lt_prog_compiler_pic_GCJ
18977 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
18978 allow_undefined_flag_GCJ
=
18979 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18980 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }
18985 archive_cmds_need_lc_GCJ
=no
18987 archive_cmds_need_lc_GCJ
=yes
18989 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
18991 cat conftest.err
1>&5
18994 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18995 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19002 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19003 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19004 library_names_spec
=
19005 libname_spec
='lib$name'
19009 postuninstall_cmds
=
19013 shlibpath_overrides_runpath
=unknown
19015 dynamic_linker
="$host_os ld.so"
19016 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19018 need_lib_prefix
=unknown
19019 hardcode_into_libs
=no
19021 # when you set need_version to no, make sure it does not cause -set_version
19022 # flags to be left without arguments
19023 need_version
=unknown
19028 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19029 shlibpath_var
=LIBPATH
19031 # AIX 3 has no versioning support, so we append a major version to the name.
19032 soname_spec
='${libname}${release}${shared_ext}$major'
19039 hardcode_into_libs
=yes
19040 if test "$host_cpu" = ia64
; then
19041 # AIX 5 supports IA64
19042 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19043 shlibpath_var
=LD_LIBRARY_PATH
19045 # With GCC up to 2.95.x, collect2 would create an import file
19046 # for dependence libraries. The import file would start with
19047 # the line `#! .'. This would cause the generated library to
19048 # depend on `.', always an invalid library. This was fixed in
19049 # development snapshots of GCC prior to 3.0.
19051 aix4 | aix4.
[01] | aix4.
[01].
*)
19052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19054 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
19057 can_build_shared
=no
19061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19062 # soname into executable. Probably we can add versioning support to
19063 # collect2, so additional links can be useful in future.
19064 if test "$aix_use_runtimelinking" = yes; then
19065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19066 # instead of lib<name>.a to let people know that these are not
19067 # typical AIX shared libraries.
19068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19070 # We preserve .a as extension for shared libraries through AIX4.2
19071 # and later when we are not doing run time linking.
19072 library_names_spec
='${libname}${release}.a $libname.a'
19073 soname_spec
='${libname}${release}${shared_ext}$major'
19075 shlibpath_var
=LIBPATH
19080 library_names_spec
='$libname.ixlibrary $libname.a'
19081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19082 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'
19086 library_names_spec
='${libname}${shared_ext}'
19087 dynamic_linker
="$host_os ld.so"
19088 shlibpath_var
=LIBRARY_PATH
19094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19095 soname_spec
='${libname}${release}${shared_ext}$major'
19096 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19097 shlibpath_var
=LD_LIBRARY_PATH
19098 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19099 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19100 # the default ld.so.conf also contains /usr/contrib/lib and
19101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19102 # libtool to hard-code these into programs
19105 cygwin
* | mingw
* | pw32
*)
19106 version_type
=windows
19111 case $GCC,$host_os in
19112 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
19113 library_names_spec
='$libname.dll.a'
19114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19115 postinstall_cmds
='base_file=`basename \${file}`~
19116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19117 dldir=$destdir/`dirname \$dlpath`~
19118 test -d \$dldir || mkdir -p \$dldir~
19119 $install_prog $dir/$dlname \$dldir/$dlname~
19120 chmod a+x \$dldir/$dlname'
19121 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19122 dlpath=$dir/\$dldll~
19124 shlibpath_overrides_runpath
=yes
19128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19129 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19130 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
19133 # MinGW DLLs use traditional 'lib' prefix
19134 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19135 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19136 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
19137 # It is most probably a Windows format PATH printed by
19138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19139 # path with ; separators, and with drive letters. We can handle the
19140 # drive letters (cygwin fileutils understands them), so leave them,
19141 # especially as we might pass files found there to a mingw objdump,
19142 # which wouldn't understand a cygwinified path. Ahh.
19143 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19145 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19149 # pw32 DLLs use 'pw' prefix rather than 'lib'
19150 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19156 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19159 dynamic_linker
='Win32 ld.exe'
19160 # FIXME: first we should search . and the directory the executable is in
19164 darwin
* | rhapsody
*)
19165 dynamic_linker
="$host_os dyld"
19166 version_type
=darwin
19169 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19170 soname_spec
='${libname}${release}${major}$shared_ext'
19171 shlibpath_overrides_runpath
=yes
19172 shlibpath_var
=DYLD_LIBRARY_PATH
19173 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19175 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19183 soname_spec
='${libname}${release}${shared_ext}$major'
19184 shlibpath_var
=LD_LIBRARY_PATH
19191 freebsd
* | dragonfly
*)
19192 # DragonFly does not have aout. When/if they implement a new
19193 # versioning mechanism, adjust this.
19194 if test -x /usr
/bin
/objformat
; then
19195 objformat
=`/usr/bin/objformat`
19198 freebsd
[123]*) objformat
=aout
;;
19199 *) objformat
=elf
;;
19202 version_type
=freebsd-
$objformat
19203 case $version_type in
19205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19210 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19214 shlibpath_var
=LD_LIBRARY_PATH
19217 shlibpath_overrides_runpath
=yes
19219 freebsd3.
[01]* | freebsdelf3.
[01]*)
19220 shlibpath_overrides_runpath
=yes
19221 hardcode_into_libs
=yes
19223 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19224 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19225 shlibpath_overrides_runpath
=no
19226 hardcode_into_libs
=yes
19228 *) # from 4.6 on, and DragonFly
19229 shlibpath_overrides_runpath
=yes
19230 hardcode_into_libs
=yes
19239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19240 soname_spec
='${libname}${release}${shared_ext}$major'
19241 shlibpath_var
=LD_LIBRARY_PATH
19242 hardcode_into_libs
=yes
19245 hpux9
* | hpux10
* | hpux11
*)
19246 # Give a soname corresponding to the major version so that dld.sl refuses to
19247 # link against other versions.
19254 hardcode_into_libs
=yes
19255 dynamic_linker
="$host_os dld.so"
19256 shlibpath_var
=LD_LIBRARY_PATH
19257 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19258 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19259 soname_spec
='${libname}${release}${shared_ext}$major'
19260 if test "X$HPUX_IA64_MODE" = X32
; then
19261 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19263 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19265 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19269 hardcode_into_libs
=yes
19270 dynamic_linker
="$host_os dld.sl"
19271 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19272 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19273 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19274 soname_spec
='${libname}${release}${shared_ext}$major'
19275 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19276 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19280 dynamic_linker
="$host_os dld.sl"
19281 shlibpath_var
=SHLIB_PATH
19282 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19284 soname_spec
='${libname}${release}${shared_ext}$major'
19287 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19288 postinstall_cmds
='chmod 555 $lib'
19295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19296 soname_spec
='${libname}${release}${shared_ext}$major'
19297 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19298 shlibpath_var
=LD_LIBRARY_PATH
19299 shlibpath_overrides_runpath
=no
19300 hardcode_into_libs
=yes
19303 irix5
* | irix6
* | nonstopux
*)
19305 nonstopux
*) version_type
=nonstopux
;;
19307 if test "$lt_cv_prog_gnu_ld" = yes; then
19315 soname_spec
='${libname}${release}${shared_ext}$major'
19316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19318 irix5
* | nonstopux
*)
19319 libsuff
= shlibsuff
=
19322 case $LD in # libtool.m4 will add one of these switches to LD
19323 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19324 libsuff
= shlibsuff
= libmagic
=32-bit;;
19325 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19326 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19327 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19328 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19329 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19333 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19334 shlibpath_overrides_runpath
=no
19335 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19336 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19337 hardcode_into_libs
=yes
19340 # No shared lib support for Linux oldld, aout, or coff.
19341 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19345 # This must be Linux ELF.
19346 linux
* | k
*bsd
*-gnu)
19350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19351 soname_spec
='${libname}${release}${shared_ext}$major'
19352 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19353 shlibpath_var
=LD_LIBRARY_PATH
19354 shlibpath_overrides_runpath
=no
19355 # This implies no fast_install, which is unacceptable.
19356 # Some rework will be needed to allow for fast_install
19357 # before this can be enabled.
19358 hardcode_into_libs
=yes
19359 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19360 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19362 # Append ld.so.conf contents to the search path
19363 if test -f /etc
/ld.so.conf
; then
19364 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' ' '`
19365 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19368 # We used to test for /lib/ld.so.1 and disable shared libraries on
19369 # powerpc, because MkLinux only supported shared libraries with the
19370 # GNU dynamic linker. Since this was broken with cross compilers,
19371 # most powerpc-linux boxes support dynamic linking these days and
19372 # people can always --disable-shared, the test was removed, and we
19373 # assume the GNU/Linux dynamic linker is in use.
19374 dynamic_linker
='GNU/Linux ld.so'
19381 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19382 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19383 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19384 dynamic_linker
='NetBSD (a.out) ld.so'
19386 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19387 soname_spec
='${libname}${release}${shared_ext}$major'
19388 dynamic_linker
='NetBSD ld.elf_so'
19390 shlibpath_var
=LD_LIBRARY_PATH
19391 shlibpath_overrides_runpath
=yes
19392 hardcode_into_libs
=yes
19397 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19398 shlibpath_var
=LD_LIBRARY_PATH
19399 shlibpath_overrides_runpath
=yes
19406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19407 soname_spec
='${libname}${release}${shared_ext}$major'
19408 shlibpath_var
=LD_LIBRARY_PATH
19409 shlibpath_overrides_runpath
=yes
19414 sys_lib_dlsearch_path_spec
="/usr/lib"
19416 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19418 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19419 *) need_version
=no
;;
19421 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19422 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19423 shlibpath_var
=LD_LIBRARY_PATH
19424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19426 openbsd2.
[89] | openbsd2.
[89].
*)
19427 shlibpath_overrides_runpath
=no
19430 shlibpath_overrides_runpath
=yes
19434 shlibpath_overrides_runpath
=yes
19439 libname_spec
='$name'
19442 library_names_spec
='$libname${shared_ext} $libname.a'
19443 dynamic_linker
='OS/2 ld.exe'
19444 shlibpath_var
=LIBPATH
19447 osf3
* | osf4
* | osf5
*)
19451 soname_spec
='${libname}${release}${shared_ext}$major'
19452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19453 shlibpath_var
=LD_LIBRARY_PATH
19454 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19455 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19466 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19467 soname_spec
='${libname}${release}${shared_ext}$major'
19468 shlibpath_var
=LD_LIBRARY_PATH
19469 shlibpath_overrides_runpath
=yes
19470 hardcode_into_libs
=yes
19471 # ldd complains unless libraries are executable
19472 postinstall_cmds
='chmod +x $lib'
19477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19478 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19479 shlibpath_var
=LD_LIBRARY_PATH
19480 shlibpath_overrides_runpath
=yes
19481 if test "$with_gnu_ld" = yes; then
19489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19490 soname_spec
='${libname}${release}${shared_ext}$major'
19491 shlibpath_var
=LD_LIBRARY_PATH
19492 case $host_vendor in
19494 shlibpath_overrides_runpath
=no
19496 export_dynamic_flag_spec
='${wl}-Blargedynsym'
19497 runpath_var
=LD_RUN_PATH
19505 shlibpath_overrides_runpath
=no
19506 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19512 if test -d /usr
/nec
;then
19514 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19515 soname_spec
='$libname${shared_ext}.$major'
19516 shlibpath_var
=LD_LIBRARY_PATH
19520 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19521 version_type
=freebsd-elf
19524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19525 soname_spec
='${libname}${release}${shared_ext}$major'
19526 shlibpath_var
=LD_LIBRARY_PATH
19527 hardcode_into_libs
=yes
19528 if test "$with_gnu_ld" = yes; then
19529 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19530 shlibpath_overrides_runpath
=no
19532 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19533 shlibpath_overrides_runpath
=yes
19536 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19540 sys_lib_dlsearch_path_spec
='/usr/lib'
19545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19546 soname_spec
='${libname}${release}${shared_ext}$major'
19547 shlibpath_var
=LD_LIBRARY_PATH
19554 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19555 echo "${ECHO_T}$dynamic_linker" >&6; }
19556 test "$dynamic_linker" = no
&& can_build_shared
=no
19558 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19559 if test "$GCC" = yes; then
19560 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19563 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19564 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19565 hardcode_action_GCJ
=
19566 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19567 test -n "$runpath_var_GCJ" || \
19568 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19570 # We can hardcode non-existant directories.
19571 if test "$hardcode_direct_GCJ" != no
&&
19572 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19573 # have to relink, otherwise we might link with an installed library
19574 # when we should be linking with a yet-to-be-installed one
19575 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19576 test "$hardcode_minus_L_GCJ" != no
; then
19577 # Linking always hardcodes the temporary library directory.
19578 hardcode_action_GCJ
=relink
19580 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19581 hardcode_action_GCJ
=immediate
19584 # We cannot hardcode anything, or else we can only hardcode existing
19586 hardcode_action_GCJ
=unsupported
19588 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19589 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19591 if test "$hardcode_action_GCJ" = relink
; then
19592 # Fast installation is not supported
19593 enable_fast_install
=no
19594 elif test "$shlibpath_overrides_runpath" = yes ||
19595 test "$enable_shared" = no
; then
19596 # Fast installation is not necessary
19597 enable_fast_install
=needless
19601 # The else clause should only fire when bootstrapping the
19602 # libtool distribution, otherwise you forgot to ship ltmain.sh
19603 # with your package, and you will get complaints that there are
19604 # no rules to generate ltmain.sh.
19605 if test -f "$ltmain"; then
19606 # See if we are running on zsh, and set the options which allow our commands through
19607 # without removal of \ escapes.
19608 if test -n "${ZSH_VERSION+set}" ; then
19609 setopt NO_GLOB_SUBST
19611 # Now quote all the things that may contain metacharacters while being
19612 # careful not to overquote the AC_SUBSTed values. We take copies of the
19613 # variables and quote the copies for generation of the libtool script.
19614 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19616 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19617 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19618 deplibs_check_method reload_flag reload_cmds need_locks \
19619 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19620 lt_cv_sys_global_symbol_to_c_name_address \
19621 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19622 old_postinstall_cmds old_postuninstall_cmds \
19626 lt_prog_compiler_wl_GCJ \
19627 lt_prog_compiler_pic_GCJ \
19628 lt_prog_compiler_static_GCJ \
19629 lt_prog_compiler_no_builtin_flag_GCJ \
19630 export_dynamic_flag_spec_GCJ \
19631 thread_safe_flag_spec_GCJ \
19632 whole_archive_flag_spec_GCJ \
19633 enable_shared_with_static_runtimes_GCJ \
19634 old_archive_cmds_GCJ \
19635 old_archive_from_new_cmds_GCJ \
19636 predep_objects_GCJ \
19637 postdep_objects_GCJ \
19640 compiler_lib_search_path_GCJ \
19642 archive_expsym_cmds_GCJ \
19643 postinstall_cmds_GCJ \
19644 postuninstall_cmds_GCJ \
19645 old_archive_from_expsyms_cmds_GCJ \
19646 allow_undefined_flag_GCJ \
19647 no_undefined_flag_GCJ \
19648 export_symbols_cmds_GCJ \
19649 hardcode_libdir_flag_spec_GCJ \
19650 hardcode_libdir_flag_spec_ld_GCJ \
19651 hardcode_libdir_separator_GCJ \
19652 hardcode_automatic_GCJ \
19654 module_expsym_cmds_GCJ \
19655 lt_cv_prog_compiler_c_o_GCJ \
19656 fix_srcfile_path_GCJ \
19657 exclude_expsyms_GCJ \
19658 include_expsyms_GCJ
; do
19661 old_archive_cmds_GCJ | \
19662 old_archive_from_new_cmds_GCJ | \
19663 archive_cmds_GCJ | \
19664 archive_expsym_cmds_GCJ | \
19665 module_cmds_GCJ | \
19666 module_expsym_cmds_GCJ | \
19667 old_archive_from_expsyms_cmds_GCJ | \
19668 export_symbols_cmds_GCJ | \
19669 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19670 postinstall_cmds | postuninstall_cmds | \
19671 old_postinstall_cmds | old_postuninstall_cmds | \
19672 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19673 # Double-quote double-evaled strings.
19674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19677 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19683 *'\$0 --fallback-echo"')
19684 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19690 cat <<__EOF__ >> "$cfgfile"
19691 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19695 # Shell to use when invoking shell scripts.
19698 # Whether or not to build shared libraries.
19699 build_libtool_libs=$enable_shared
19701 # Whether or not to build static libraries.
19702 build_old_libs=$enable_static
19704 # Whether or not to add -lc for building shared libraries.
19705 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19707 # Whether or not to disallow shared libs when runtime libs are static
19708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19710 # Whether or not to optimize for fast installation.
19711 fast_install=$enable_fast_install
19714 host_alias=$host_alias
19718 # The build system.
19719 build_alias=$build_alias
19723 # An echo program that does not interpret backslashes.
19728 AR_FLAGS=$lt_AR_FLAGS
19733 # LTCC compiler flags.
19734 LTCFLAGS=$lt_LTCFLAGS
19736 # A language-specific compiler.
19737 CC=$lt_compiler_GCJ
19739 # Is the compiler the GNU C compiler?
19745 # The linker used to build libraries.
19748 # Whether we need hard or soft links.
19751 # A BSD-compatible nm program.
19754 # A symbol stripping program
19757 # Used to examine libraries when file_magic_cmd begins "file"
19758 MAGIC_CMD=$MAGIC_CMD
19760 # Used on cygwin: DLL creation program.
19763 # Used on cygwin: object dumper.
19766 # Used on cygwin: assembler.
19769 # The name of the directory that contains temporary libtool files.
19772 # How to create reloadable object files.
19773 reload_flag=$lt_reload_flag
19774 reload_cmds=$lt_reload_cmds
19776 # How to pass a linker flag through the compiler.
19777 wl=$lt_lt_prog_compiler_wl_GCJ
19779 # Object file suffix (normally "o").
19780 objext="$ac_objext"
19782 # Old archive suffix (normally "a").
19785 # Shared library suffix (normally ".so").
19786 shrext_cmds='$shrext_cmds'
19788 # Executable file suffix (normally "").
19791 # Additional compiler flags for building library objects.
19792 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19795 # What is the maximum length of a command?
19796 max_cmd_len=$lt_cv_sys_max_cmd_len
19798 # Does compiler simultaneously support -c and -o options?
19799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19801 # Must we lock files when doing compilation?
19802 need_locks=$lt_need_locks
19804 # Do we need the lib prefix for modules?
19805 need_lib_prefix=$need_lib_prefix
19807 # Do we need a version for libraries?
19808 need_version=$need_version
19810 # Whether dlopen is supported.
19811 dlopen_support=$enable_dlopen
19813 # Whether dlopen of programs is supported.
19814 dlopen_self=$enable_dlopen_self
19816 # Whether dlopen of statically linked programs is supported.
19817 dlopen_self_static=$enable_dlopen_self_static
19819 # Compiler flag to prevent dynamic linking.
19820 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19822 # Compiler flag to turn off builtin functions.
19823 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19825 # Compiler flag to allow reflexive dlopens.
19826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19828 # Compiler flag to generate shared objects directly from archives.
19829 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19831 # Compiler flag to generate thread-safe objects.
19832 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19834 # Library versioning type.
19835 version_type=$version_type
19837 # Format of library name prefix.
19838 libname_spec=$lt_libname_spec
19840 # List of archive names. First name is the real one, the rest are links.
19841 # The last name is the one that the linker finds with -lNAME.
19842 library_names_spec=$lt_library_names_spec
19844 # The coded name of the library, if different from the real name.
19845 soname_spec=$lt_soname_spec
19847 # Commands used to build and install an old-style archive.
19849 old_archive_cmds=$lt_old_archive_cmds_GCJ
19850 old_postinstall_cmds=$lt_old_postinstall_cmds
19851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19853 # Create an old-style archive from a shared archive.
19854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19856 # Create a temporary old-style archive to link instead of a shared archive.
19857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19859 # Commands used to build and install a shared archive.
19860 archive_cmds=$lt_archive_cmds_GCJ
19861 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19862 postinstall_cmds=$lt_postinstall_cmds
19863 postuninstall_cmds=$lt_postuninstall_cmds
19865 # Commands used to build a loadable module (assumed same as above if empty)
19866 module_cmds=$lt_module_cmds_GCJ
19867 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19869 # Commands to strip libraries.
19870 old_striplib=$lt_old_striplib
19871 striplib=$lt_striplib
19873 # Dependencies to place before the objects being linked to create a
19875 predep_objects=$lt_predep_objects_GCJ
19877 # Dependencies to place after the objects being linked to create a
19879 postdep_objects=$lt_postdep_objects_GCJ
19881 # Dependencies to place before the objects being linked to create a
19883 predeps=$lt_predeps_GCJ
19885 # Dependencies to place after the objects being linked to create a
19887 postdeps=$lt_postdeps_GCJ
19889 # The library search path used internally by the compiler when linking
19890 # a shared library.
19891 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19893 # Method to check whether dependent libraries are shared objects.
19894 deplibs_check_method=$lt_deplibs_check_method
19896 # Command to use when deplibs_check_method == file_magic.
19897 file_magic_cmd=$lt_file_magic_cmd
19899 # Flag that allows shared libraries with undefined symbols to be built.
19900 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19902 # Flag that forces no undefined symbols.
19903 no_undefined_flag=$lt_no_undefined_flag_GCJ
19905 # Commands used to finish a libtool library installation in a directory.
19906 finish_cmds=$lt_finish_cmds
19908 # Same as above, but a single script fragment to be evaled but not shown.
19909 finish_eval=$lt_finish_eval
19911 # Take the output of nm and produce a listing of raw symbols and C names.
19912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19914 # Transform the output of nm in a proper C declaration
19915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19917 # Transform the output of nm in a C name address pair
19918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19920 # This is the shared library runtime path variable.
19921 runpath_var=$runpath_var
19923 # This is the shared library path variable.
19924 shlibpath_var=$shlibpath_var
19926 # Is shlibpath searched before the hard-coded library search path?
19927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19929 # How to hardcode a shared library path into an executable.
19930 hardcode_action=$hardcode_action_GCJ
19932 # Whether we should hardcode library paths into libraries.
19933 hardcode_into_libs=$hardcode_into_libs
19935 # Flag to hardcode \$libdir into a binary during linking.
19936 # This must work even if \$libdir does not exist.
19937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19939 # If ld is used when linking, flag to hardcode \$libdir into
19940 # a binary during linking. This must work even if \$libdir does
19942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19944 # Whether we need a single -rpath flag with a separated argument.
19945 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19948 # resulting binary.
19949 hardcode_direct=$hardcode_direct_GCJ
19951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19952 # resulting binary.
19953 hardcode_minus_L=$hardcode_minus_L_GCJ
19955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19956 # the resulting binary.
19957 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19959 # Set to yes if building a shared library automatically hardcodes DIR into the library
19960 # and all subsequent libraries and executables linked against it.
19961 hardcode_automatic=$hardcode_automatic_GCJ
19963 # Variables whose values should be saved in libtool wrapper scripts and
19964 # restored at relink time.
19965 variables_saved_for_relink="$variables_saved_for_relink"
19967 # Whether libtool must link a program against all its dependency libraries.
19968 link_all_deplibs=$link_all_deplibs_GCJ
19970 # Compile-time system search path for libraries
19971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19973 # Run-time system search path for libraries
19974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19976 # Fix the shell variable \$srcfile for the compiler.
19977 fix_srcfile_path=$lt_fix_srcfile_path
19979 # Set to yes if exported symbols are required.
19980 always_export_symbols=$always_export_symbols_GCJ
19982 # The commands to list exported symbols.
19983 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19985 # The commands to extract the exported symbol list from a shared archive.
19986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19988 # Symbols that should not be listed in the preloaded symbols.
19989 exclude_expsyms=$lt_exclude_expsyms_GCJ
19991 # Symbols that must always be exported.
19992 include_expsyms=$lt_include_expsyms_GCJ
19994 # ### END LIBTOOL TAG CONFIG: $tagname
20000 # If there is no Makefile yet, we rely on a make rule to execute
20001 # `config.status --recheck' to rerun these tests and create the
20002 # libtool script then.
20003 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20004 if test -f "$ltmain_in"; then
20005 test -f Makefile
&& make "$ltmain"
20011 ac_cpp
='$CPP $CPPFLAGS'
20012 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20013 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20014 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20026 # Source file extension for RC test sources.
20029 # Object file extension for compiled RC test sources.
20033 # Code to be used in simple compile tests
20034 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20036 # Code to be used in simple link tests
20037 lt_simple_link_test_code
="$lt_simple_compile_test_code"
20039 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20041 # If no C compiler was specified, use CC.
20044 # If no C compiler flags were specified, use CFLAGS.
20045 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20047 # Allow CC to be a program name with arguments.
20051 # save warnings/boilerplate of simple test code
20052 ac_outfile
=conftest.
$ac_objext
20053 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20054 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20055 _lt_compiler_boilerplate
=`cat conftest.err`
20058 ac_outfile
=conftest.
$ac_objext
20059 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20060 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20061 _lt_linker_boilerplate
=`cat conftest.err`
20065 # Allow CC to be a program name with arguments.
20070 for cc_temp
in $compiler""; do
20072 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20073 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20078 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20080 lt_cv_prog_compiler_c_o_RC
=yes
20082 # The else clause should only fire when bootstrapping the
20083 # libtool distribution, otherwise you forgot to ship ltmain.sh
20084 # with your package, and you will get complaints that there are
20085 # no rules to generate ltmain.sh.
20086 if test -f "$ltmain"; then
20087 # See if we are running on zsh, and set the options which allow our commands through
20088 # without removal of \ escapes.
20089 if test -n "${ZSH_VERSION+set}" ; then
20090 setopt NO_GLOB_SUBST
20092 # Now quote all the things that may contain metacharacters while being
20093 # careful not to overquote the AC_SUBSTed values. We take copies of the
20094 # variables and quote the copies for generation of the libtool script.
20095 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20097 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20098 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20099 deplibs_check_method reload_flag reload_cmds need_locks \
20100 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20101 lt_cv_sys_global_symbol_to_c_name_address \
20102 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20103 old_postinstall_cmds old_postuninstall_cmds \
20107 lt_prog_compiler_wl_RC \
20108 lt_prog_compiler_pic_RC \
20109 lt_prog_compiler_static_RC \
20110 lt_prog_compiler_no_builtin_flag_RC \
20111 export_dynamic_flag_spec_RC \
20112 thread_safe_flag_spec_RC \
20113 whole_archive_flag_spec_RC \
20114 enable_shared_with_static_runtimes_RC \
20115 old_archive_cmds_RC \
20116 old_archive_from_new_cmds_RC \
20117 predep_objects_RC \
20118 postdep_objects_RC \
20121 compiler_lib_search_path_RC \
20123 archive_expsym_cmds_RC \
20124 postinstall_cmds_RC \
20125 postuninstall_cmds_RC \
20126 old_archive_from_expsyms_cmds_RC \
20127 allow_undefined_flag_RC \
20128 no_undefined_flag_RC \
20129 export_symbols_cmds_RC \
20130 hardcode_libdir_flag_spec_RC \
20131 hardcode_libdir_flag_spec_ld_RC \
20132 hardcode_libdir_separator_RC \
20133 hardcode_automatic_RC \
20135 module_expsym_cmds_RC \
20136 lt_cv_prog_compiler_c_o_RC \
20137 fix_srcfile_path_RC \
20138 exclude_expsyms_RC \
20139 include_expsyms_RC
; do
20142 old_archive_cmds_RC | \
20143 old_archive_from_new_cmds_RC | \
20144 archive_cmds_RC | \
20145 archive_expsym_cmds_RC | \
20147 module_expsym_cmds_RC | \
20148 old_archive_from_expsyms_cmds_RC | \
20149 export_symbols_cmds_RC | \
20150 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20151 postinstall_cmds | postuninstall_cmds | \
20152 old_postinstall_cmds | old_postuninstall_cmds | \
20153 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
20154 # Double-quote double-evaled strings.
20155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20158 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20164 *'\$0 --fallback-echo"')
20165 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20171 cat <<__EOF__ >> "$cfgfile"
20172 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20174 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20176 # Shell to use when invoking shell scripts.
20179 # Whether or not to build shared libraries.
20180 build_libtool_libs=$enable_shared
20182 # Whether or not to build static libraries.
20183 build_old_libs=$enable_static
20185 # Whether or not to add -lc for building shared libraries.
20186 build_libtool_need_lc=$archive_cmds_need_lc_RC
20188 # Whether or not to disallow shared libs when runtime libs are static
20189 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20191 # Whether or not to optimize for fast installation.
20192 fast_install=$enable_fast_install
20195 host_alias=$host_alias
20199 # The build system.
20200 build_alias=$build_alias
20204 # An echo program that does not interpret backslashes.
20209 AR_FLAGS=$lt_AR_FLAGS
20214 # LTCC compiler flags.
20215 LTCFLAGS=$lt_LTCFLAGS
20217 # A language-specific compiler.
20220 # Is the compiler the GNU C compiler?
20226 # The linker used to build libraries.
20229 # Whether we need hard or soft links.
20232 # A BSD-compatible nm program.
20235 # A symbol stripping program
20238 # Used to examine libraries when file_magic_cmd begins "file"
20239 MAGIC_CMD=$MAGIC_CMD
20241 # Used on cygwin: DLL creation program.
20244 # Used on cygwin: object dumper.
20247 # Used on cygwin: assembler.
20250 # The name of the directory that contains temporary libtool files.
20253 # How to create reloadable object files.
20254 reload_flag=$lt_reload_flag
20255 reload_cmds=$lt_reload_cmds
20257 # How to pass a linker flag through the compiler.
20258 wl=$lt_lt_prog_compiler_wl_RC
20260 # Object file suffix (normally "o").
20261 objext="$ac_objext"
20263 # Old archive suffix (normally "a").
20266 # Shared library suffix (normally ".so").
20267 shrext_cmds='$shrext_cmds'
20269 # Executable file suffix (normally "").
20272 # Additional compiler flags for building library objects.
20273 pic_flag=$lt_lt_prog_compiler_pic_RC
20276 # What is the maximum length of a command?
20277 max_cmd_len=$lt_cv_sys_max_cmd_len
20279 # Does compiler simultaneously support -c and -o options?
20280 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20282 # Must we lock files when doing compilation?
20283 need_locks=$lt_need_locks
20285 # Do we need the lib prefix for modules?
20286 need_lib_prefix=$need_lib_prefix
20288 # Do we need a version for libraries?
20289 need_version=$need_version
20291 # Whether dlopen is supported.
20292 dlopen_support=$enable_dlopen
20294 # Whether dlopen of programs is supported.
20295 dlopen_self=$enable_dlopen_self
20297 # Whether dlopen of statically linked programs is supported.
20298 dlopen_self_static=$enable_dlopen_self_static
20300 # Compiler flag to prevent dynamic linking.
20301 link_static_flag=$lt_lt_prog_compiler_static_RC
20303 # Compiler flag to turn off builtin functions.
20304 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20306 # Compiler flag to allow reflexive dlopens.
20307 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20309 # Compiler flag to generate shared objects directly from archives.
20310 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20312 # Compiler flag to generate thread-safe objects.
20313 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20315 # Library versioning type.
20316 version_type=$version_type
20318 # Format of library name prefix.
20319 libname_spec=$lt_libname_spec
20321 # List of archive names. First name is the real one, the rest are links.
20322 # The last name is the one that the linker finds with -lNAME.
20323 library_names_spec=$lt_library_names_spec
20325 # The coded name of the library, if different from the real name.
20326 soname_spec=$lt_soname_spec
20328 # Commands used to build and install an old-style archive.
20330 old_archive_cmds=$lt_old_archive_cmds_RC
20331 old_postinstall_cmds=$lt_old_postinstall_cmds
20332 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20334 # Create an old-style archive from a shared archive.
20335 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20337 # Create a temporary old-style archive to link instead of a shared archive.
20338 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20340 # Commands used to build and install a shared archive.
20341 archive_cmds=$lt_archive_cmds_RC
20342 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20343 postinstall_cmds=$lt_postinstall_cmds
20344 postuninstall_cmds=$lt_postuninstall_cmds
20346 # Commands used to build a loadable module (assumed same as above if empty)
20347 module_cmds=$lt_module_cmds_RC
20348 module_expsym_cmds=$lt_module_expsym_cmds_RC
20350 # Commands to strip libraries.
20351 old_striplib=$lt_old_striplib
20352 striplib=$lt_striplib
20354 # Dependencies to place before the objects being linked to create a
20356 predep_objects=$lt_predep_objects_RC
20358 # Dependencies to place after the objects being linked to create a
20360 postdep_objects=$lt_postdep_objects_RC
20362 # Dependencies to place before the objects being linked to create a
20364 predeps=$lt_predeps_RC
20366 # Dependencies to place after the objects being linked to create a
20368 postdeps=$lt_postdeps_RC
20370 # The library search path used internally by the compiler when linking
20371 # a shared library.
20372 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20374 # Method to check whether dependent libraries are shared objects.
20375 deplibs_check_method=$lt_deplibs_check_method
20377 # Command to use when deplibs_check_method == file_magic.
20378 file_magic_cmd=$lt_file_magic_cmd
20380 # Flag that allows shared libraries with undefined symbols to be built.
20381 allow_undefined_flag=$lt_allow_undefined_flag_RC
20383 # Flag that forces no undefined symbols.
20384 no_undefined_flag=$lt_no_undefined_flag_RC
20386 # Commands used to finish a libtool library installation in a directory.
20387 finish_cmds=$lt_finish_cmds
20389 # Same as above, but a single script fragment to be evaled but not shown.
20390 finish_eval=$lt_finish_eval
20392 # Take the output of nm and produce a listing of raw symbols and C names.
20393 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20395 # Transform the output of nm in a proper C declaration
20396 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20398 # Transform the output of nm in a C name address pair
20399 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20401 # This is the shared library runtime path variable.
20402 runpath_var=$runpath_var
20404 # This is the shared library path variable.
20405 shlibpath_var=$shlibpath_var
20407 # Is shlibpath searched before the hard-coded library search path?
20408 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20410 # How to hardcode a shared library path into an executable.
20411 hardcode_action=$hardcode_action_RC
20413 # Whether we should hardcode library paths into libraries.
20414 hardcode_into_libs=$hardcode_into_libs
20416 # Flag to hardcode \$libdir into a binary during linking.
20417 # This must work even if \$libdir does not exist.
20418 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20420 # If ld is used when linking, flag to hardcode \$libdir into
20421 # a binary during linking. This must work even if \$libdir does
20423 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20425 # Whether we need a single -rpath flag with a separated argument.
20426 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20428 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20429 # resulting binary.
20430 hardcode_direct=$hardcode_direct_RC
20432 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20433 # resulting binary.
20434 hardcode_minus_L=$hardcode_minus_L_RC
20436 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20437 # the resulting binary.
20438 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20440 # Set to yes if building a shared library automatically hardcodes DIR into the library
20441 # and all subsequent libraries and executables linked against it.
20442 hardcode_automatic=$hardcode_automatic_RC
20444 # Variables whose values should be saved in libtool wrapper scripts and
20445 # restored at relink time.
20446 variables_saved_for_relink="$variables_saved_for_relink"
20448 # Whether libtool must link a program against all its dependency libraries.
20449 link_all_deplibs=$link_all_deplibs_RC
20451 # Compile-time system search path for libraries
20452 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20454 # Run-time system search path for libraries
20455 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20457 # Fix the shell variable \$srcfile for the compiler.
20458 fix_srcfile_path=$lt_fix_srcfile_path
20460 # Set to yes if exported symbols are required.
20461 always_export_symbols=$always_export_symbols_RC
20463 # The commands to list exported symbols.
20464 export_symbols_cmds=$lt_export_symbols_cmds_RC
20466 # The commands to extract the exported symbol list from a shared archive.
20467 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20469 # Symbols that should not be listed in the preloaded symbols.
20470 exclude_expsyms=$lt_exclude_expsyms_RC
20472 # Symbols that must always be exported.
20473 include_expsyms=$lt_include_expsyms_RC
20475 # ### END LIBTOOL TAG CONFIG: $tagname
20481 # If there is no Makefile yet, we rely on a make rule to execute
20482 # `config.status --recheck' to rerun these tests and create the
20483 # libtool script then.
20484 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20485 if test -f "$ltmain_in"; then
20486 test -f Makefile
&& make "$ltmain"
20492 ac_cpp
='$CPP $CPPFLAGS'
20493 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20494 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20495 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20502 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20503 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20504 { (exit 1); exit 1; }; }
20508 # Append the new tag name to the list of available tags.
20509 if test -n "$tagname" ; then
20510 available_tags
="$available_tags $tagname"
20516 # Now substitute the updated list of available tags.
20517 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20518 mv "${ofile}T" "$ofile"
20522 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20523 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20524 { (exit 1); exit 1; }; }
20530 # This can be used to rebuild libtool when needed
20531 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
20533 # Always use our own libtool.
20534 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
20536 # Prevent multiple expansion
20558 if test "$PS" = "ps"
20560 { { echo "$as_me:$LINENO: error: Cannot find pathname to ps" >&5
20561 echo "$as_me: error: Cannot find pathname to ps" >&2;}
20562 { (exit 1); exit 1; }; }
20565 if test x
$GXX = xyes
20567 CFLAGS
="-Wall $CFLAGS"
20570 CFLAGS
="-I.. -I$srcdir/.. $CFLAGS"
20573 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20574 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20575 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 cat >conftest.
$ac_ext <<_ACEOF
20581 cat confdefs.h
>>conftest.
$ac_ext
20582 cat >>conftest.
$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 #include <sys/types.h>
20585 #include <sys/wait.h>
20586 #ifndef WEXITSTATUS
20587 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20590 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20598 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20603 rm -f conftest.
$ac_objext
20604 if { (ac_try
="$ac_compile"
20605 case "(($ac_try" in
20606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20607 *) ac_try_echo=$ac_try;;
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610 (eval "$ac_compile") 2>conftest.er1
20612 grep -v '^ *+' conftest.er1 >conftest.err
20614 cat conftest.err >&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && {
20617 test -z "$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20619 } && test -s conftest.$ac_objext; then
20620 ac_cv_header_sys_wait_h=yes
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 ac_cv_header_sys_wait_h=no
20628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20631 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20632 if test $ac_cv_header_sys_wait_h = yes; then
20634 cat >>confdefs.h <<\_ACEOF
20635 #define HAVE_SYS_WAIT_H 1
20642 for ac_header in unistd.h fcntl.h
20644 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
20645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 ac_res=`eval echo '${'$as_ac_Header'}'`
20652 { echo "$as_me:$LINENO: result: $ac_res" >&5
20653 echo "${ECHO_T}$ac_res" >&6; }
20655 # Is the header compilable?
20656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20658 cat >conftest.$ac_ext <<_ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664 $ac_includes_default
20665 #include <$ac_header>
20667 rm -f conftest.$ac_objext
20668 if { (ac_try="$ac_compile"
20669 case "(($ac_try" in
20670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20671 *) ac_try_echo
=$ac_try;;
20673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_compile") 2>conftest.er1
20676 grep -v '^ *+' conftest.er1
>conftest.err
20678 cat conftest.err
>&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } && {
20681 test -z "$ac_c_werror_flag" ||
20682 test ! -s conftest.err
20683 } && test -s conftest.
$ac_objext; then
20684 ac_header_compiler
=yes
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.
$ac_ext >&5
20689 ac_header_compiler
=no
20692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20694 echo "${ECHO_T}$ac_header_compiler" >&6; }
20696 # Is the header present?
20697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20699 cat >conftest.
$ac_ext <<_ACEOF
20702 cat confdefs.h
>>conftest.
$ac_ext
20703 cat >>conftest.
$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 #include <$ac_header>
20707 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20708 case "(($ac_try" in
20709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20715 grep -v '^ *+' conftest.er1 >conftest.err
20717 cat conftest.err >&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } >/dev/null && {
20720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20721 test ! -s conftest.err
20723 ac_header_preproc=yes
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 ac_header_preproc=no
20731 rm -f conftest.err conftest.$ac_ext
20732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20733 echo "${ECHO_T}$ac_header_preproc" >&6; }
20735 # So? What about this header?
20736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20742 ac_header_preproc=yes
20745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20758 ## -------------------------------------------------- ##
20759 ## Report this to courier-users@lists.sourceforge.net ##
20760 ## -------------------------------------------------- ##
20762 ) | sed "s/^/$as_me: WARNING: /" >&2
20765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 eval "$as_ac_Header=\$ac_header_preproc"
20772 ac_res=`eval echo '${'$as_ac_Header'}'`
20773 { echo "$as_me:$LINENO: result: $ac_res" >&5
20774 echo "${ECHO_T}$ac_res" >&6; }
20777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20778 cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20787 { echo "$as_me:$LINENO: checking for pid_t" >&5
20788 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20789 if test "${ac_cv_type_pid_t+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20792 cat >conftest.$ac_ext <<_ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20798 $ac_includes_default
20799 typedef pid_t ac__type_new_;
20803 if ((ac__type_new_ *) 0)
20805 if (sizeof (ac__type_new_))
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20815 *) ac_try_echo
=$ac_try;;
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_compile") 2>conftest.er1
20820 grep -v '^ *+' conftest.er1
>conftest.err
20822 cat conftest.err
>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && {
20825 test -z "$ac_c_werror_flag" ||
20826 test ! -s conftest.err
20827 } && test -s conftest.
$ac_objext; then
20828 ac_cv_type_pid_t
=yes
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.
$ac_ext >&5
20833 ac_cv_type_pid_t
=no
20836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20838 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20839 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20840 if test $ac_cv_type_pid_t = yes; then
20844 cat >>confdefs.h
<<_ACEOF
20852 # Check whether --with-random was given.
20853 if test "${with_random+set}" = set; then
20854 withval
=$with_random; random
="$withval"
20864 { echo "$as_me:$LINENO: checking for random source" >&5
20865 echo $ECHO_N "checking for random source... $ECHO_C" >&6; }
20866 if test "${random_cv_RANDOM+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 if test -c /dev
/urandom
20871 random_cv_RANDOM
=/dev
/urandom
20873 if test -c /dev
/random
20875 random_cv_RANDOM
=/dev
/random
20877 random_cv_RANDOM
="none"
20882 { echo "$as_me:$LINENO: result: $random_cv_RANDOM" >&5
20883 echo "${ECHO_T}$random_cv_RANDOM" >&6; }
20884 random
="$random_cv_RANDOM"
20891 if test "$random" != "none"
20894 cat >>confdefs.h
<<_ACEOF
20895 #define RANDOM "$random"
20900 { echo "$as_me:$LINENO: checking for some good options for ps" >&5
20901 echo $ECHO_N "checking for some good options for ps... $ECHO_C" >&6; }
20902 if test "${random_cv_PS_OPTIONS+set}" = set; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 for opts
in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
20907 ps
$opts >/dev
/null
2>/dev
/null ||
continue
20910 random_cv_PS_OPTIONS
="$opts"
20913 { echo "$as_me:$LINENO: result: $random_cv_PS_OPTIONS" >&5
20914 echo "${ECHO_T}$random_cv_PS_OPTIONS" >&6; }
20917 cat >>confdefs.h
<<_ACEOF
20918 #define PS_OPTIONS "$random_cv_PS_OPTIONS"
20922 cat >>confdefs.h
<<_ACEOF
20927 if test "$W" != "w"
20930 cat >>confdefs.h
<<_ACEOF
20936 ac_config_files
="$ac_config_files Makefile"
20938 cat >confcache
<<\_ACEOF
20939 # This file is a shell script that caches the results of configure
20940 # tests run on this system so they can be shared between configure
20941 # scripts and configure runs, see configure's option --config-cache.
20942 # It is not useful on other systems. If it contains results you don't
20943 # want to keep, you may remove or edit it.
20945 # config.status only pays attention to the cache file if you give it
20946 # the --recheck option to rerun configure.
20948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20950 # following values.
20954 # The following way of writing the cache mishandles newlines in values,
20955 # but we know of no workaround that is simple, portable, and efficient.
20956 # So, we kill variables containing newlines.
20957 # Ultrix sh set writes to stderr and can't be redirected directly,
20958 # and sets the high bit in the cache file unless we assign to the vars.
20960 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20961 eval ac_val
=\$
$ac_var
20965 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20966 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20969 _ | IFS | as_nl
) ;; #(
20970 *) $as_unset $ac_var ;;
20976 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20977 *${as_nl}ac_space
=\
*)
20978 # `set' does not quote correctly, so add quotes (double-quote
20979 # substitution turns \\\\ into \\, and sed turns \\ into \).
20982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20985 # `set' quotes correctly as required by POSIX, so do not add quotes.
20986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20997 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20999 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
21000 if test -w "$cache_file"; then
21001 test "x$cache_file" != "x/dev/null" &&
21002 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21003 echo "$as_me: updating cache $cache_file" >&6;}
21004 cat confcache
>$cache_file
21006 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21007 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21012 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21013 # Let make expand exec_prefix.
21014 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21016 DEFS
=-DHAVE_CONFIG_H
21020 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21021 # 1. Remove the extension, and $U if already installed.
21022 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
21023 ac_i
=`echo "$ac_i" | sed "$ac_script"`
21024 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21025 # will be set to the directory where LIBOBJS objects are built.
21026 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21027 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21029 LIBOBJS
=$ac_libobjs
21031 LTLIBOBJS
=$ac_ltlibobjs
21034 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21035 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21036 Usually this means the macro was only invoked conditionally." >&5
21037 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21038 Usually this means the macro was only invoked conditionally." >&2;}
21039 { (exit 1); exit 1; }; }
21041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21042 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21043 Usually this means the macro was only invoked conditionally." >&5
21044 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21045 Usually this means the macro was only invoked conditionally." >&2;}
21046 { (exit 1); exit 1; }; }
21048 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21049 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21050 Usually this means the macro was only invoked conditionally." >&5
21051 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21052 Usually this means the macro was only invoked conditionally." >&2;}
21053 { (exit 1); exit 1; }; }
21055 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21056 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21057 Usually this means the macro was only invoked conditionally." >&5
21058 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21059 Usually this means the macro was only invoked conditionally." >&2;}
21060 { (exit 1); exit 1; }; }
21063 : ${CONFIG_STATUS=./config.status}
21064 ac_clean_files_save
=$ac_clean_files
21065 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21066 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21067 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21068 cat >$CONFIG_STATUS <<_ACEOF
21070 # Generated by $as_me.
21071 # Run this file to recreate the current configuration.
21072 # Compiler output produced by configure, useful for debugging
21073 # configure, is in config.log if it exists.
21076 ac_cs_recheck=false
21078 SHELL=\${CONFIG_SHELL-$SHELL}
21081 cat >>$CONFIG_STATUS <<\_ACEOF
21082 ## --------------------- ##
21083 ## M4sh Initialization. ##
21084 ## --------------------- ##
21086 # Be more Bourne compatible
21087 DUALCASE
=1; export DUALCASE
# for MKS sh
21088 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21091 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21092 # is contrary to our usage. Disable this feature.
21093 alias -g '${1+"$@"}'='"$@"'
21094 setopt NO_GLOB_SUBST
21096 case `(set -o) 2>/dev/null` in
21097 *posix
*) set -o posix
;;
21106 # Avoid depending upon Character Ranges.
21107 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21108 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21109 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21110 as_cr_digits
='0123456789'
21111 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21113 # The user is always right.
21114 if test "${PATH_SEPARATOR+set}" != set; then
21115 echo "#! /bin/sh" >conf$$.sh
21116 echo "exit 0" >>conf$$.sh
21118 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21126 # Support unset when possible.
21127 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21135 # We need space, tab and new line, in precisely that order. Quoting is
21136 # there to prevent editors from complaining about space-tab.
21137 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21138 # splitting by setting IFS to empty value.)
21143 # Find who we are. Look in the path if we contain no directory separator.
21145 *[\\/]* ) as_myself
=$0 ;;
21146 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21147 for as_dir
in $PATH
21150 test -z "$as_dir" && as_dir
=.
21151 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21157 # We did not find ourselves, most probably we were run as `sh COMMAND'
21158 # in which case we are not to be found in the path.
21159 if test "x$as_myself" = x
; then
21162 if test ! -f "$as_myself"; then
21163 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21164 { (exit 1); exit 1; }
21167 # Work around bugs in pre-3.0 UWIN ksh.
21168 for as_var
in ENV MAIL MAILPATH
21169 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
21177 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21178 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21179 LC_TELEPHONE LC_TIME
21181 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21182 eval $as_var=C
; export $as_var
21184 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
21188 # Required to use basename.
21189 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21190 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21196 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21197 as_basename
=basename
21203 # Name of the executable.
21204 as_me
=`$as_basename -- "$0" ||
21205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21206 X"$0" : 'X\(//\)$' \| \
21207 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21209 sed '/^.*\/\([^/][^/]*\)\/*$/{
21228 as_lineno_1
=$LINENO
21229 as_lineno_2
=$LINENO
21230 test "x$as_lineno_1" != "x$as_lineno_2" &&
21231 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
21233 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21234 # uniformly replaced by the line number. The first 'sed' inserts a
21235 # line-number line after each line using $LINENO; the second 'sed'
21236 # does the real work. The second script uses 'N' to pair each
21237 # line-number line with the line containing $LINENO, and appends
21238 # trailing '-' during substitution so that $LINENO is not a special
21239 # case at line end.
21240 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21241 # scripts with optimization help from Paolo Bonzini. Blame Lee
21242 # E. McMahon (1931-1989) for sed's syntax. :-)
21254 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21257 ' >$as_me.lineno
&&
21258 chmod +x
"$as_me.lineno" ||
21259 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21260 { (exit 1); exit 1; }; }
21262 # Don't try to exec as it changes $[0], causing all sort of problems
21263 # (the dirname of $[0] is not the place where we might find the
21264 # original and so on. Autoconf is especially sensitive to this).
21265 .
"./$as_me.lineno"
21266 # Exit status is that of the last command.
21271 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
21277 ECHO_C
= ECHO_N
= ECHO_T
=
21278 case `echo -n x` in
21280 case `echo 'x\c'` in
21281 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
21288 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21289 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21295 rm -f conf$$ conf$$.exe conf$$.
file
21296 if test -d conf$$.dir
; then
21297 rm -f conf$$.dir
/conf$$.
file
21303 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21305 # ... but there are two gotchas:
21306 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21307 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21308 # In both cases, we have to default to `cp -p'.
21309 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
21311 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21316 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
21317 rmdir conf$$.dir
2>/dev
/null
21319 if mkdir
-p .
2>/dev
/null
; then
21322 test -d .
/-p && rmdir .
/-p
21326 if test -x / >/dev
/null
2>&1; then
21327 as_test_x
='test -x'
21329 if ls -dL / >/dev
/null
2>&1; then
21336 if test -d "$1"; then
21342 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21343 ???[sx]*):;;*)false;;esac;fi
21347 as_executable_p
=$as_test_x
21349 # Sed expression to map a string onto a valid CPP name.
21350 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21352 # Sed expression to map a string onto a valid variable name.
21353 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21358 # Save the log message, to keep $[0] and so on meaningful, and to
21359 # report actual input values of CONFIG_FILES etc. instead of their
21360 # values after options handling.
21362 This file was extended by random128 $as_me 0.10, which was
21363 generated by GNU Autoconf 2.61. Invocation command line was
21365 CONFIG_FILES = $CONFIG_FILES
21366 CONFIG_HEADERS = $CONFIG_HEADERS
21367 CONFIG_LINKS = $CONFIG_LINKS
21368 CONFIG_COMMANDS = $CONFIG_COMMANDS
21371 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21376 cat >>$CONFIG_STATUS <<_ACEOF
21377 # Files that config.status was made for.
21378 config_files="$ac_config_files"
21379 config_headers="$ac_config_headers"
21380 config_commands="$ac_config_commands"
21384 cat >>$CONFIG_STATUS <<\_ACEOF
21386 \`$as_me' instantiates files from templates according to the
21387 current configuration.
21389 Usage: $0 [OPTIONS] [FILE]...
21391 -h, --help print this help, then exit
21392 -V, --version print version number and configuration settings, then exit
21393 -q, --quiet do not print progress messages
21394 -d, --debug don't remove temporary files
21395 --recheck update $as_me by reconfiguring in the same conditions
21396 --file=FILE[:TEMPLATE]
21397 instantiate the configuration file FILE
21398 --header=FILE[:TEMPLATE]
21399 instantiate the configuration header FILE
21401 Configuration files:
21404 Configuration headers:
21407 Configuration commands:
21410 Report bugs to <bug-autoconf@gnu.org>."
21413 cat >>$CONFIG_STATUS <<_ACEOF
21415 random128 config.status 0.10
21416 configured by $0, generated by GNU Autoconf 2.61,
21417 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21419 Copyright (C) 2006 Free Software Foundation, Inc.
21420 This config.status script is free software; the Free Software Foundation
21421 gives unlimited permission to copy, distribute and modify it."
21429 cat >>$CONFIG_STATUS <<\_ACEOF
21430 # If no file are specified by the user, then we need to provide default
21431 # value. By we need to know if files were specified by the user.
21437 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
21438 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
21449 # Handling of the options.
21450 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21452 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
21453 echo "$ac_cs_version"; exit ;;
21454 --debug |
--debu |
--deb |
--de |
--d |
-d )
21456 --file |
--fil |
--fi |
--f )
21458 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21459 ac_need_defaults
=false
;;
21460 --header |
--heade |
--head |
--hea )
21462 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21463 ac_need_defaults
=false
;;
21465 # Conflict between --help and --header
21466 { echo "$as_me: error: ambiguous option: $1
21467 Try \`$0 --help' for more information." >&2
21468 { (exit 1); exit 1; }; };;
21469 --help |
--hel |
-h )
21470 echo "$ac_cs_usage"; exit ;;
21471 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21472 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21475 # This is an error.
21476 -*) { echo "$as_me: error: unrecognized option: $1
21477 Try \`$0 --help' for more information." >&2
21478 { (exit 1); exit 1; }; } ;;
21480 *) ac_config_targets
="$ac_config_targets $1"
21481 ac_need_defaults
=false
;;
21487 ac_configure_extra_args
=
21489 if $ac_cs_silent; then
21491 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21495 cat >>$CONFIG_STATUS <<_ACEOF
21496 if \$ac_cs_recheck; then
21497 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21498 CONFIG_SHELL=$SHELL
21499 export CONFIG_SHELL
21500 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21504 cat >>$CONFIG_STATUS <<\_ACEOF
21508 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21509 ## Running $as_me. ##
21515 cat >>$CONFIG_STATUS <<_ACEOF
21519 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21523 cat >>$CONFIG_STATUS <<\_ACEOF
21525 # Handling of arguments.
21526 for ac_config_target
in $ac_config_targets
21528 case $ac_config_target in
21529 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
21530 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21531 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21533 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21534 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21535 { (exit 1); exit 1; }; };;
21540 # If the user did not use the arguments to specify the items to instantiate,
21541 # then the envvar interface is used. Set only those that are not.
21542 # We use the long form for the default assignment because of an extremely
21543 # bizarre bug on SunOS 4.1.3.
21544 if $ac_need_defaults; then
21545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21546 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21550 # Have a temporary directory for convenience. Make it in the build tree
21551 # simply because there is no reason against having it here, and in addition,
21552 # creating and moving files from /tmp can sometimes cause problems.
21553 # Hook for its removal unless debugging.
21554 # Note that there is a small window in which the directory will not be cleaned:
21555 # after its creation but before its name has been assigned to `$tmp'.
21559 trap 'exit_status=$?
21560 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21562 trap '{ (exit 1); exit 1; }' 1 2 13 15
21564 # Create a (secure) tmp directory for tmp files.
21567 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21568 test -n "$tmp" && test -d "$tmp"
21571 tmp
=.
/conf$$
-$RANDOM
21572 (umask 077 && mkdir
"$tmp")
21575 echo "$me: cannot create a temporary directory in ." >&2
21576 { (exit 1); exit 1; }
21580 # Set up the sed scripts for CONFIG_FILES section.
21583 # No need to generate the scripts if there are no CONFIG_FILES.
21584 # This happens for instance when ./config.status config.h
21585 if test -n "$CONFIG_FILES"; then
21592 for ac_last_try
in false false false false false
:; do
21593 cat >conf$
$subs.
sed <<_ACEOF
21594 SHELL!$SHELL$ac_delim
21595 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21596 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21597 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21598 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21599 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21600 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21601 exec_prefix!$exec_prefix$ac_delim
21602 prefix!$prefix$ac_delim
21603 program_transform_name!$program_transform_name$ac_delim
21604 bindir!$bindir$ac_delim
21605 sbindir!$sbindir$ac_delim
21606 libexecdir!$libexecdir$ac_delim
21607 datarootdir!$datarootdir$ac_delim
21608 datadir!$datadir$ac_delim
21609 sysconfdir!$sysconfdir$ac_delim
21610 sharedstatedir!$sharedstatedir$ac_delim
21611 localstatedir!$localstatedir$ac_delim
21612 includedir!$includedir$ac_delim
21613 oldincludedir!$oldincludedir$ac_delim
21614 docdir!$docdir$ac_delim
21615 infodir!$infodir$ac_delim
21616 htmldir!$htmldir$ac_delim
21617 dvidir!$dvidir$ac_delim
21618 pdfdir!$pdfdir$ac_delim
21619 psdir!$psdir$ac_delim
21620 libdir!$libdir$ac_delim
21621 localedir!$localedir$ac_delim
21622 mandir!$mandir$ac_delim
21623 DEFS!$DEFS$ac_delim
21624 ECHO_C!$ECHO_C$ac_delim
21625 ECHO_N!$ECHO_N$ac_delim
21626 ECHO_T!$ECHO_T$ac_delim
21627 LIBS!$LIBS$ac_delim
21628 build_alias!$build_alias$ac_delim
21629 host_alias!$host_alias$ac_delim
21630 target_alias!$target_alias$ac_delim
21631 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21632 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21633 INSTALL_DATA!$INSTALL_DATA$ac_delim
21634 am__isrc!$am__isrc$ac_delim
21635 CYGPATH_W!$CYGPATH_W$ac_delim
21636 PACKAGE!$PACKAGE$ac_delim
21637 VERSION!$VERSION$ac_delim
21638 ACLOCAL!$ACLOCAL$ac_delim
21639 AUTOCONF!$AUTOCONF$ac_delim
21640 AUTOMAKE!$AUTOMAKE$ac_delim
21641 AUTOHEADER!$AUTOHEADER$ac_delim
21642 MAKEINFO!$MAKEINFO$ac_delim
21643 install_sh!$install_sh$ac_delim
21644 STRIP!$STRIP$ac_delim
21645 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21646 mkdir_p!$mkdir_p$ac_delim
21648 SET_MAKE!$SET_MAKE$ac_delim
21649 am__leading_dot!$am__leading_dot$ac_delim
21650 AMTAR!$AMTAR$ac_delim
21651 am__tar!$am__tar$ac_delim
21652 am__untar!$am__untar$ac_delim
21654 CFLAGS!$CFLAGS$ac_delim
21655 LDFLAGS!$LDFLAGS$ac_delim
21656 CPPFLAGS!$CPPFLAGS$ac_delim
21657 ac_ct_CC!$ac_ct_CC$ac_delim
21658 EXEEXT!$EXEEXT$ac_delim
21659 OBJEXT!$OBJEXT$ac_delim
21660 DEPDIR!$DEPDIR$ac_delim
21661 am__include!$am__include$ac_delim
21662 am__quote!$am__quote$ac_delim
21663 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21664 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21665 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21666 CCDEPMODE!$CCDEPMODE$ac_delim
21667 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21668 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21670 GREP!$GREP$ac_delim
21671 EGREP!$EGREP$ac_delim
21672 LN_S!$LN_S$ac_delim
21675 build!$build$ac_delim
21676 build_cpu!$build_cpu$ac_delim
21677 build_vendor!$build_vendor$ac_delim
21678 build_os!$build_os$ac_delim
21679 host!$host$ac_delim
21680 host_cpu!$host_cpu$ac_delim
21681 host_vendor!$host_vendor$ac_delim
21682 host_os!$host_os$ac_delim
21684 ECHO!$ECHO$ac_delim
21686 RANLIB!$RANLIB$ac_delim
21688 CXXFLAGS!$CXXFLAGS$ac_delim
21689 ac_ct_CXX!$ac_ct_CXX$ac_delim
21690 CXXDEPMODE!$CXXDEPMODE$ac_delim
21693 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21695 elif $ac_last_try; then
21696 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21697 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21698 { (exit 1); exit 1; }; }
21700 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21704 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21705 if test -n "$ac_eof"; then
21706 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21707 ac_eof
=`expr $ac_eof + 1`
21710 cat >>$CONFIG_STATUS <<_ACEOF
21711 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21715 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21716 s/^/s,@/; s/!/@,|#_!!_#|/
21719 s/'"$ac_delim"'$/,g/; t
21721 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21722 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21723 rm -f conf$
$subs.
sed
21724 cat >>$CONFIG_STATUS <<_ACEOF
21730 for ac_last_try
in false false false false false
:; do
21731 cat >conf$
$subs.
sed <<_ACEOF
21732 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21733 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21734 CXXCPP!$CXXCPP$ac_delim
21736 FFLAGS!$FFLAGS$ac_delim
21737 ac_ct_F77!$ac_ct_F77$ac_delim
21738 LIBTOOL!$LIBTOOL$ac_delim
21739 LIBOBJS!$LIBOBJS$ac_delim
21740 LTLIBOBJS!$LTLIBOBJS$ac_delim
21743 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
21745 elif $ac_last_try; then
21746 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21747 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21748 { (exit 1); exit 1; }; }
21750 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21754 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21755 if test -n "$ac_eof"; then
21756 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21757 ac_eof
=`expr $ac_eof + 1`
21760 cat >>$CONFIG_STATUS <<_ACEOF
21761 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21765 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21766 s/^/s,@/; s/!/@,|#_!!_#|/
21769 s/'"$ac_delim"'$/,g/; t
21771 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21772 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21773 rm -f conf$
$subs.
sed
21774 cat >>$CONFIG_STATUS <<_ACEOF
21781 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21783 # trailing colons and then remove the whole line if VPATH becomes empty
21784 # (actually we leave an empty line to preserve line numbers).
21785 if test "x$srcdir" = x.
; then
21786 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21787 s/:*\$(srcdir):*/:/
21788 s/:*\${srcdir}:*/:/
21790 s/^\([^=]*=[ ]*\):*/\1/
21796 cat >>$CONFIG_STATUS <<\_ACEOF
21797 fi # test -n "$CONFIG_FILES"
21800 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
21803 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21805 case $ac_mode$ac_tag in
21807 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21808 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21809 { (exit 1); exit 1; }; };;
21810 :[FH
]-) ac_tag
=-:-;;
21811 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21828 -) ac_f
="$tmp/stdin";;
21829 *) # Look for the file first in the build tree, then in the source tree
21830 # (if the path is not absolute). The absolute path cannot be DOS-style,
21831 # because $ac_f cannot contain `:'.
21835 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21837 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21838 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21839 { (exit 1); exit 1; }; };;
21841 ac_file_inputs
="$ac_file_inputs $ac_f"
21844 # Let's still pretend it is `configure' which instantiates (i.e., don't
21845 # use $as_me), people would be surprised to read:
21846 # /* config.h. Generated by config.status. */
21847 configure_input
="Generated from "`IFS=:
21848 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21849 if test x
"$ac_file" != x-
; then
21850 configure_input
="$ac_file. $configure_input"
21851 { echo "$as_me:$LINENO: creating $ac_file" >&5
21852 echo "$as_me: creating $ac_file" >&6;}
21856 *:-:* |
*:-) cat >"$tmp/stdin";;
21861 ac_dir
=`$as_dirname -- "$ac_file" ||
21862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21863 X"$ac_file" : 'X\(//\)[^/]' \| \
21864 X"$ac_file" : 'X\(//\)$' \| \
21865 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21871 /^X\(\/\/\)[^/].*/{
21886 -*) as_dir
=.
/$as_dir;;
21888 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21892 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21893 *) as_qdir
=$as_dir;;
21895 as_dirs
="'$as_qdir' $as_dirs"
21896 as_dir
=`$as_dirname -- "$as_dir" ||
21897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21898 X"$as_dir" : 'X\(//\)[^/]' \| \
21899 X"$as_dir" : 'X\(//\)$' \| \
21900 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21906 /^X\(\/\/\)[^/].*/{
21919 test -d "$as_dir" && break
21921 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21922 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21923 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21924 { (exit 1); exit 1; }; }; }
21928 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21930 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21931 # A ".." for each directory in $ac_dir_suffix.
21932 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21933 case $ac_top_builddir_sub in
21934 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21935 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21938 ac_abs_top_builddir
=$ac_pwd
21939 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21940 # for backward compatibility:
21941 ac_top_builddir
=$ac_top_build_prefix
21944 .
) # We are building in place.
21946 ac_top_srcdir
=$ac_top_builddir_sub
21947 ac_abs_top_srcdir
=$ac_pwd ;;
21948 [\\/]* | ?
:[\\/]* ) # Absolute name.
21949 ac_srcdir
=$srcdir$ac_dir_suffix;
21950 ac_top_srcdir
=$srcdir
21951 ac_abs_top_srcdir
=$srcdir ;;
21952 *) # Relative name.
21953 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21954 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21955 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21957 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21967 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21968 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21970 ac_MKDIR_P
=$MKDIR_P
21972 [\\/$
]* | ?
:[\\/]* ) ;;
21973 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21977 cat >>$CONFIG_STATUS <<\_ACEOF
21978 # If the template does not know about datarootdir, expand it.
21979 # FIXME: This hack should be removed a few years after 2.60.
21980 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21982 case `sed -n '/datarootdir/ {
21991 ' $ac_file_inputs` in
21992 *datarootdir
*) ac_datarootdir_seen
=yes;;
21993 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21994 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21995 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21997 cat >>$CONFIG_STATUS <<_ACEOF
21998 ac_datarootdir_hack='
21999 s&@datadir@&$datadir&g
22000 s&@docdir@&$docdir&g
22001 s&@infodir@&$infodir&g
22002 s&@localedir@&$localedir&g
22003 s&@mandir@&$mandir&g
22004 s&\\\${datarootdir}&$datarootdir&g' ;;
22008 # Neutralize VPATH when `$srcdir' = `.'.
22009 # Shell code in configure.ac might set extrasub.
22010 # FIXME: do we really want to maintain this feature?
22011 cat >>$CONFIG_STATUS <<_ACEOF
22015 cat >>$CONFIG_STATUS <<\_ACEOF
22017 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22018 s
&@configure_input@
&$configure_input&;t t
22019 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
22020 s
&@srcdir@
&$ac_srcdir&;t t
22021 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
22022 s
&@top_srcdir@
&$ac_top_srcdir&;t t
22023 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
22024 s
&@builddir@
&$ac_builddir&;t t
22025 s
&@abs_builddir@
&$ac_abs_builddir&;t t
22026 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
22027 s
&@INSTALL@
&$ac_INSTALL&;t t
22028 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
22029 $ac_datarootdir_hack
22030 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
22032 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22033 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
22034 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
22035 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
22036 which seems to be undefined. Please make sure it is defined." >&5
22037 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
22038 which seems to be undefined. Please make sure it is defined." >&2;}
22042 -) cat "$tmp/out"; rm -f "$tmp/out";;
22043 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22052 # Transform confdefs.h into a sed script `conftest.defines', that
22053 # substitutes the proper values into config.h.in to produce config.h.
22054 rm -f conftest.defines conftest.
tail
22055 # First, append a space to every undef/define line, to ease matching.
22056 echo 's/$/ /' >conftest.defines
22057 # Then, protect against being on the right side of a sed subst, or in
22058 # an unquoted here document, in config.status. If some macros were
22059 # called several times there might be several #defines for the same
22060 # symbol, which is useless. But do not sort them, since the last
22061 # AC_DEFINE must be honored.
22062 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
22063 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22064 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22065 # PARAMS is the parameter list in the macro definition--in most cases, it's
22066 # just an empty string.
22067 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22068 ac_dB
='\\)[ (].*,\\1define\\2'
22076 s/^[ ]*#[ ]*define[ ][ ]*//
22081 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22082 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22083 ' >>conftest.defines
22085 # Remove the space that was appended to ease matching.
22086 # Then replace #undef with comments. This is necessary, for
22087 # example, in the case of _POSIX_SOURCE, which is predefined and required
22088 # on some systems where configure will not decide to define it.
22089 # (The regexp can be short, since the line contains either #define or #undef.)
22091 s,^[ #]*u.*,/* & */,' >>conftest.defines
22093 # Break up conftest.defines:
22094 ac_max_sed_lines
=50
22096 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22097 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22098 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22100 ac_in
='$ac_file_inputs'
22101 ac_out
='"$tmp/out1"'
22102 ac_nxt
='"$tmp/out2"'
22106 # Write a here document:
22107 cat >>$CONFIG_STATUS <<_ACEOF
22108 # First, check the format of the line:
22109 cat >"\$tmp/defines.sed" <<\\CEOF
22110 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22111 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22115 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
22117 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22118 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
22119 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
22120 grep . conftest.
tail >/dev
/null ||
break
22121 rm -f conftest.defines
22122 mv conftest.
tail conftest.defines
22124 rm -f conftest.defines conftest.
tail
22126 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22127 cat >>$CONFIG_STATUS <<\_ACEOF
22128 if test x
"$ac_file" != x-
; then
22129 echo "/* $configure_input */" >"$tmp/config.h"
22130 cat "$ac_result" >>"$tmp/config.h"
22131 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
22132 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22133 echo "$as_me: $ac_file is unchanged" >&6;}
22136 mv "$tmp/config.h" $ac_file
22139 echo "/* $configure_input */"
22143 # Compute $ac_file's index in $config_headers.
22146 for _am_header
in $config_headers :; do
22147 case $_am_header in
22148 $_am_arg |
$_am_arg:* )
22151 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
22154 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22155 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22156 X"$_am_arg" : 'X\(//\)[^/]' \| \
22157 X"$_am_arg" : 'X\(//\)$' \| \
22158 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22164 /^X\(\/\/\)[^/].*/{
22176 s/.*/./; q'`/stamp-h
$_am_stamp_count
22179 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22180 echo "$as_me: executing $ac_file commands" >&6;}
22185 case $ac_file$ac_mode in
22186 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
22187 # Strip MF so we end up with the name of the file.
22188 mf
=`echo "$mf" | sed -e 's/:.*$//'`
22189 # Check whether this is an Automake generated Makefile or not.
22190 # We used to match only the files named `Makefile.in', but
22191 # some people rename them; so instead we look at the file content.
22192 # Grep'ing the first line is not enough: some people post-process
22193 # each Makefile.in and add a new line on top of each file to say so.
22194 # Grep'ing the whole file is not good either: AIX grep has a line
22195 # limit of 2048, but all sed's we know have understand at least 4000.
22196 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
22197 dirpart
=`$as_dirname -- "$mf" ||
22198 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22199 X"$mf" : 'X\(//\)[^/]' \| \
22200 X"$mf" : 'X\(//\)$' \| \
22201 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22207 /^X\(\/\/\)[^/].*/{
22223 # Extract the definition of DEPDIR, am__include, and am__quote
22224 # from the Makefile without running `make'.
22225 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
22226 test -z "$DEPDIR" && continue
22227 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
22228 test -z "am__include" && continue
22229 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
22230 # When using ansi2knr, U may be empty or an underscore; expand it
22231 U
=`sed -n 's/^U = //p' < "$mf"`
22232 # Find all dependency output files, they are included files with
22233 # $(DEPDIR) in their names. We invoke sed twice because it is the
22234 # simplest approach to changing $(DEPDIR) to its actual value in the
22236 for file in `sed -n "
22237 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22238 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22239 # Make sure the directory exists.
22240 test -f "$dirpart/$file" && continue
22241 fdir
=`$as_dirname -- "$file" ||
22242 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22243 X"$file" : 'X\(//\)[^/]' \| \
22244 X"$file" : 'X\(//\)$' \| \
22245 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22251 /^X\(\/\/\)[^/].*/{
22264 { as_dir
=$dirpart/$fdir
22266 -*) as_dir
=.
/$as_dir;;
22268 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22272 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22273 *) as_qdir
=$as_dir;;
22275 as_dirs
="'$as_qdir' $as_dirs"
22276 as_dir
=`$as_dirname -- "$as_dir" ||
22277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22278 X"$as_dir" : 'X\(//\)[^/]' \| \
22279 X"$as_dir" : 'X\(//\)$' \| \
22280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22286 /^X\(\/\/\)[^/].*/{
22299 test -d "$as_dir" && break
22301 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22302 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22303 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22304 { (exit 1); exit 1; }; }; }
22305 # echo "creating $dirpart/$file"
22306 echo '# dummy' > "$dirpart/$file"
22315 { (exit 0); exit 0; }
22317 chmod +x
$CONFIG_STATUS
22318 ac_clean_files
=$ac_clean_files_save
22321 # configure is writing to config.log, and then calls config.status.
22322 # config.status does its own redirection, appending to config.log.
22323 # Unfortunately, on DOS this fails, as config.log is still kept open
22324 # by configure, so config.status won't be able to write to it; its
22325 # output is simply discarded. So we exec the FD to /dev/null,
22326 # effectively closing config.log, so it can be properly (re)opened and
22327 # appended to by config.status. When coming back to configure, we
22328 # need to make the FD available again.
22329 if test "$no_create" != yes; then
22331 ac_config_status_args
=
22332 test "$silent" = yes &&
22333 ac_config_status_args
="$ac_config_status_args --quiet"
22335 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22337 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22338 # would make configure fail if this is the last instruction.
22339 $ac_cs_success ||
{ (exit 1); exit 1; }