2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for rfc822lib 0.12.
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
='rfc822lib'
730 PACKAGE_TARNAME
='rfc822lib'
731 PACKAGE_VERSION
='0.12'
732 PACKAGE_STRING
='rfc822lib 0.12'
733 PACKAGE_BUGREPORT
='courier-users@lists.sourceforge.net'
735 ac_unique_file
="rfc822.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 rfc822lib 0.12 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/rfc822lib]
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 rfc822lib 0.12:";;
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
]
1489 Some influential environment variables
:
1490 CC C compiler
command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1493 nonstandard directory
<lib dir
>
1494 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1495 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1496 you have headers
in a nonstandard directory
<include dir
>
1498 CXX C
++ compiler
command
1499 CXXFLAGS C
++ compiler flags
1500 CXXCPP C
++ preprocessor
1501 F77 Fortran
77 compiler
command
1502 FFLAGS Fortran
77 compiler flags
1504 Use these variables to override the choices made by
`configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1507 Report bugs to <courier-users@lists.sourceforge.net>.
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" || continue
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1535 .) # We are building in place.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1568 rfc822lib configure 0.12
1569 generated by GNU Autoconf 2.61
1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1582 It was created by rfc822lib $as_me 0.12, which was
1583 generated by GNU Autoconf 2.61. Invocation command line was
1595 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1596 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1597 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1598 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1599 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1601 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1602 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1604 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1605 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1606 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1607 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1608 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1609 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1610 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_must_keep_next=false
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1654 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 -* ) ac_must_keep_next=true ;;
1675 ac_configure_args="$ac_configure_args '$ac_arg'"
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log. We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1699 # The following way of writing the cache mishandles newlines in values,
1701 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1702 eval ac_val=\$$ac_var
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1716 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1736 for ac_var in $ac_subst_vars
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 echo "$ac_var='\''$ac_val'\''"
1746 if test -n "$ac_subst_files"; then
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1753 for ac_var in $ac_subst_files
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 echo "$ac_var='\''$ac_val'\''"
1764 if test -s confdefs.h; then
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
1830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1838 if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1855 # Check that the precious variables saved in the cache have kept the same
1857 ac_cache_corrupted=false
1858 for ac_var in $ac_precious_vars; do
1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860 eval ac_new_set=\$ac_env_${ac_var}_set
1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862 eval ac_new_val=\$ac_env_${ac_var}_value
1863 case $ac_old_set,$ac_new_set in
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1866 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1870 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1874 if test "x$ac_old_val" != "x$ac_new_val"; then
1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1877 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1878 echo "$as_me: former value
: $ac_old_val" >&2;}
1879 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1880 echo "$as_me: current value
: $ac_new_val" >&2;}
1881 ac_cache_corrupted=:
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1888 *) ac_arg=$ac_var=$ac_new_val ;;
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896 if $ac_cache_corrupted; then
1897 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1898 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1899 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1900 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1901 { (exit 1); exit 1; }; }
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 >confdefs.h # Kill PACKAGE_ macros
1939 am__api_version='1.10'
1942 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1943 if test -f "$ac_dir/install-sh"; then
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 elif test -f "$ac_dir/install.sh"; then
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 elif test -f "$ac_dir/shtool"; then
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 if test -z "$ac_aux_dir"; then
1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1972 # Find a good install program. We prefer a C program (faster),
1973 # so one script is as good as another. But avoid the broken or
1974 # incompatible versions:
1975 # SysV /etc/install, /usr/sbin/install
1976 # SunOS /usr/etc/install
1977 # IRIX /sbin/install
1979 # AmigaOS /C/install, which installs bootblocks on floppy discs
1980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1983 # OS/2's system install, which has a completely different semantic
1984 # ./install, which can be erroneously created by make from ./install.sh.
1985 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1987 if test -z "$INSTALL"; then
1988 if test "${ac_cv_path_install+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2031 if test "${ac_cv_path_install+set}" = set; then
2032 INSTALL=$ac_cv_path_install
2034 # As a last resort, use the slow shell script. Don't cache a
2035 # value for INSTALL within a source directory, because that will
2036 # break other packages using the cache if that directory is
2037 # removed, or if the value is a relative name.
2038 INSTALL=$ac_install_sh
2041 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2042 echo "${ECHO_T}$INSTALL" >&6; }
2044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2045 # It thinks the first close brace ends the variable substitution.
2046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2053 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2056 echo timestamp > conftest.file
2057 # Do `set' in a subshell so we don't clobber the current shell
's
2058 # arguments. Must try -L first in case configure is actually a
2059 # symlink; some systems play weird games with the mod time of symlinks
2060 # (eg FreeBSD returns the mod time of the symlink's containing
2063 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2064 if test "$*" = "X"; then
2066 set X
`ls -t $srcdir/configure conftest.file`
2069 if test "$*" != "X $srcdir/configure conftest.file" \
2070 && test "$*" != "X conftest.file $srcdir/configure"; then
2072 # If neither matched, then we have a broken ls. This can happen
2073 # if, for instance, CONFIG_SHELL is bash and it inherits a
2074 # broken ls alias from the environment. This has actually
2075 # happened. Such a system could not be considered "sane".
2076 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2077 alias in your environment" >&5
2078 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&2;}
2080 { (exit 1); exit 1; }; }
2083 test "$2" = conftest.
file
2089 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2090 Check your system clock" >&5
2091 echo "$as_me: error: newly created file is older than distributed files!
2092 Check your system clock" >&2;}
2093 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: yes" >&5
2096 echo "${ECHO_T}yes" >&6; }
2097 test "$program_prefix" != NONE
&&
2098 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2099 # Use a double $ so make ignores it.
2100 test "$program_suffix" != NONE
&&
2101 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2102 # Double any \ or $. echo might interpret backslashes.
2103 # By default was `s,x,x', remove it if useless.
2104 cat <<\_ACEOF
>conftest.
sed
2105 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2107 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2110 # expand $ac_aux_dir to an absolute path
2111 am_aux_dir
=`cd $ac_aux_dir && pwd`
2113 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2114 # Use eval to expand $SHELL
2115 if eval "$MISSING --run true"; then
2116 am_missing_run
="$MISSING --run "
2119 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2120 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2123 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2124 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2125 if test -z "$MKDIR_P"; then
2126 if test "${ac_cv_path_mkdir+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2130 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2133 test -z "$as_dir" && as_dir
=.
2134 for ac_prog
in mkdir gmkdir
; do
2135 for ac_exec_ext
in '' $ac_executable_extensions; do
2136 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2137 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2138 'mkdir (GNU coreutils) '* | \
2139 'mkdir (coreutils) '* | \
2140 'mkdir (fileutils) '4.1*)
2141 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2151 if test "${ac_cv_path_mkdir+set}" = set; then
2152 MKDIR_P
="$ac_cv_path_mkdir -p"
2154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for MKDIR_P within a source directory, because that will
2156 # break other packages using the cache if that directory is
2157 # removed, or if the value is a relative name.
2158 test -d .
/--version && rmdir .
/--version
2159 MKDIR_P
="$ac_install_sh -d"
2162 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2163 echo "${ECHO_T}$MKDIR_P" >&6; }
2167 [\\/$
]* | ?
:[\\/]*) ;;
2168 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2171 for ac_prog
in gawk mawk nawk
awk
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy
$ac_prog; ac_word
=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_AWK+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$AWK"; then
2181 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2187 test -z "$as_dir" && as_dir
=.
2188 for ac_exec_ext
in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190 ac_cv_prog_AWK
="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 if test -n "$AWK"; then
2202 { echo "$as_me:$LINENO: result: $AWK" >&5
2203 echo "${ECHO_T}$AWK" >&6; }
2205 { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2210 test -n "$AWK" && break
2213 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2214 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2215 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2216 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 cat >conftest.
make <<\_ACEOF
2222 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2225 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2229 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2233 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6; }
2238 { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2240 SET_MAKE
="MAKE=${MAKE-make}"
2243 rm -rf .tst
2>/dev
/null
2244 mkdir .tst
2>/dev
/null
2245 if test -d .tst
; then
2250 rmdir .tst
2>/dev
/null
2252 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2253 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2254 # is not polluted with repeated "-I."
2255 am__isrc
=' -I$(srcdir)'
2256 # test to see if srcdir already configured
2257 if test -f $srcdir/config.status
; then
2258 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2259 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2260 { (exit 1); exit 1; }; }
2264 # test whether we have cygpath
2265 if test -z "$CYGPATH_W"; then
2266 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2267 CYGPATH_W
='cygpath -w'
2274 # Define the identity of the package.
2279 # Some tools Automake needs.
2281 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2287 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2293 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2295 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2297 # Installed binaries are usually stripped using `strip' when the user
2298 # run `make install-strip'. However `strip' might not be the right
2299 # tool to use in cross-compilation environments, therefore Automake
2300 # will honor the `STRIP' environment variable to overrule this program.
2301 if test "$cross_compiling" != no
; then
2302 if test -n "$ac_tool_prefix"; then
2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2307 if test "${ac_cv_prog_STRIP+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 if test -n "$STRIP"; then
2311 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2317 test -z "$as_dir" && as_dir
=.
2318 for ac_exec_ext
in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 STRIP
=$ac_cv_prog_STRIP
2331 if test -n "$STRIP"; then
2332 { echo "$as_me:$LINENO: result: $STRIP" >&5
2333 echo "${ECHO_T}$STRIP" >&6; }
2335 { echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6; }
2341 if test -z "$ac_cv_prog_STRIP"; then
2343 # Extract the first word of "strip", so it can be a program name with args.
2344 set dummy strip
; ac_word
=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 if test -n "$ac_ct_STRIP"; then
2351 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir
=.
2358 for ac_exec_ext
in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_ac_ct_STRIP
="strip"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2371 if test -n "$ac_ct_STRIP"; then
2372 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2379 if test "x$ac_ct_STRIP" = x
; then
2382 case $cross_compiling:$ac_tool_warned in
2384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385 whose name does not start with the host triplet. If you think this
2386 configuration is useful to you, please write to autoconf@gnu.org." >&5
2387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet. If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390 ac_tool_warned
=yes ;;
2395 STRIP
="$ac_cv_prog_STRIP"
2399 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2401 # We need awk for the "check" target. The system "awk" is bad on
2403 # Always define AMTAR for backward compatibility.
2405 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2407 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2413 ac_config_headers
="$ac_config_headers config.h"
2417 ac_cpp
='$CPP $CPPFLAGS'
2418 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2421 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2426 if test "${ac_cv_prog_CC+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC
="$CC" # Let the user override the test.
2432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir
=.
2437 for ac_exec_ext
in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 if test -n "$CC"; then
2451 { echo "$as_me:$LINENO: result: $CC" >&5
2452 echo "${ECHO_T}$CC" >&6; }
2454 { echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6; }
2460 if test -z "$ac_cv_prog_CC"; then
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463 set dummy gcc
; ac_word
=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir
=.
2477 for ac_exec_ext
in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_ac_ct_CC
="gcc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2490 if test -n "$ac_ct_CC"; then
2491 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2492 echo "${ECHO_T}$ac_ct_CC" >&6; }
2494 { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2498 if test "x$ac_ct_CC" = x
; then
2501 case $cross_compiling:$ac_tool_warned in
2503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504 whose name does not start with the host triplet. If you think this
2505 configuration is useful to you, please write to autoconf@gnu.org." >&5
2506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507 whose name does not start with the host triplet. If you think this
2508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509 ac_tool_warned
=yes ;;
2517 if test -z "$CC"; then
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2520 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC
="$CC" # Let the user override the test.
2529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir
=.
2534 for ac_exec_ext
in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 if test -n "$CC"; then
2548 { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2551 { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2558 if test -z "$CC"; then
2559 # Extract the first word of "cc", so it can be a program name with args.
2560 set dummy cc
; ac_word
=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC
="$CC" # Let the user override the test.
2570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir
=.
2575 for ac_exec_ext
in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2578 ac_prog_rejected
=yes
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 if test $ac_prog_rejected = yes; then
2590 # We found a bogon in the path, so make sure we never use it.
2591 set dummy
$ac_cv_prog_CC
2593 if test $# != 0; then
2594 # We chose a different compiler from the bogus one.
2595 # However, it has the same basename, so the bogon will be chosen
2596 # first if we set CC to just the basename; use the full file name.
2598 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2604 if test -n "$CC"; then
2605 { echo "$as_me:$LINENO: result: $CC" >&5
2606 echo "${ECHO_T}$CC" >&6; }
2608 { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2614 if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
2616 for ac_prog
in cl.exe
2618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2619 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_CC+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 if test -n "$CC"; then
2626 ac_cv_prog_CC
="$CC" # Let the user override the test.
2628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir
=.
2633 for ac_exec_ext
in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 if test -n "$CC"; then
2647 { echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6; }
2650 { echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6; }
2655 test -n "$CC" && break
2658 if test -z "$CC"; then
2660 for ac_prog
in cl.exe
2662 # Extract the first word of "$ac_prog", so it can be a program name with args.
2663 set dummy
$ac_prog; ac_word
=$2
2664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 if test -n "$ac_ct_CC"; then
2670 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir
=.
2677 for ac_exec_ext
in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_ac_ct_CC
="$ac_prog"
2680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2690 if test -n "$ac_ct_CC"; then
2691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2692 echo "${ECHO_T}$ac_ct_CC" >&6; }
2694 { echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6; }
2699 test -n "$ac_ct_CC" && break
2702 if test "x$ac_ct_CC" = x
; then
2705 case $cross_compiling:$ac_tool_warned in
2707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2708 whose name does not start with the host triplet. If you think this
2709 configuration is useful to you, please write to autoconf@gnu.org." >&5
2710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2711 whose name does not start with the host triplet. If you think this
2712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2713 ac_tool_warned
=yes ;;
2722 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2723 See \`config.log' for more details." >&5
2724 echo "$as_me: error: no acceptable C compiler found in \$PATH
2725 See \`config.log' for more details." >&2;}
2726 { (exit 1); exit 1; }; }
2728 # Provide some information about the compiler.
2729 echo "$as_me:$LINENO: checking for C compiler version" >&5
2730 ac_compiler
=`set X $ac_compile; echo $2`
2731 { (ac_try
="$ac_compiler --version >&5"
2733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler --version >&5") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
2741 { (ac_try="$ac_compiler -v >&5"
2743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2744 *) ac_try_echo
=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler -v >&5") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
2751 { (ac_try
="$ac_compiler -V >&5"
2753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler -V >&5") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2762 cat >conftest.$ac_ext <<_ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2777 ac_clean_files_save=$ac_clean_files
2778 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2779 # Try to create an executable without -o first, disregard a.out.
2780 # It will help us diagnose broken compilers, and finding out an intuition
2782 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2783 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2784 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2786 # List of possible output files, starting from the most likely.
2787 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2788 # only as a last resort. b.out is created by i960 compilers.
2789 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2791 # The IRIX 6 linker writes into existing files which may not be
2792 # executable, retaining their permissions. Remove them first so a
2793 # subsequent execution test works.
2795 for ac_file in $ac_files
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2799 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2804 if { (ac_try="$ac_link_default"
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_link_default") 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; then
2814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2815 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2816 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2817 # so that the user can short-circuit this test for compilers unknown to
2819 for ac_file
in $ac_files ''
2821 test -f "$ac_file" ||
continue
2823 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2826 # We found the default executable, but exeext='' is most
2830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2832 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834 # We set ac_cv_exeext here because the later test for it is not
2835 # safe: cross compilers may not add the suffix if given an `-o'
2836 # argument, so we may need to know it at that point already.
2837 # Even if this section looks crufty: it has the advantage of
2844 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2850 { echo "$as_me:$LINENO: result: $ac_file" >&5
2851 echo "${ECHO_T}$ac_file" >&6; }
2852 if test -z "$ac_file"; then
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.
$ac_ext >&5
2856 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2857 See \`config.log' for more details." >&5
2858 echo "$as_me: error: C compiler cannot create executables
2859 See \`config.log' for more details." >&2;}
2860 { (exit 77); exit 77; }; }
2863 ac_exeext
=$ac_cv_exeext
2865 # Check that the compiler produces executables we can run. If not, either
2866 # the compiler is broken, or we cross compile.
2867 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2868 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2869 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2870 # If not cross compiling, check that we can run a simple program.
2871 if test "$cross_compiling" != yes; then
2872 if { ac_try
='./$ac_file'
2873 { (case "(($ac_try" in
2874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_try") 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2884 if test "$cross_compiling" = maybe; then
2887 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2888 If you meant to cross compile, use \`--host'.
2889 See \`config.log' for more details.
" >&5
2890 echo "$as_me: error
: cannot run C compiled programs.
2891 If you meant to cross compile
, use \
`--host'.
2892 See \`config.log
' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2897 { echo "$as_me:$LINENO: result: yes" >&5
2898 echo "${ECHO_T}yes" >&6; }
2900 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2901 ac_clean_files=$ac_clean_files_save
2902 # Check that the compiler produces executables we can run. If not, either
2903 # the compiler is broken, or we cross compile.
2904 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2905 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2906 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2907 echo "${ECHO_T}$cross_compiling" >&6; }
2909 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2910 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2911 if { (ac_try="$ac_link"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_link") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
2921 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2922 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2923 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2925 for ac_file
in conftest.exe conftest conftest.
*; do
2926 test -f "$ac_file" ||
continue
2928 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2929 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2935 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2936 See \`config.log' for more details." >&5
2937 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2938 See \`config.log' for more details." >&2;}
2939 { (exit 1); exit 1; }; }
2942 rm -f conftest
$ac_cv_exeext
2943 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2944 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2946 rm -f conftest.
$ac_ext
2947 EXEEXT
=$ac_cv_exeext
2949 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2950 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2951 if test "${ac_cv_objext+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 cat >conftest.
$ac_ext <<_ACEOF
2957 cat confdefs.h
>>conftest.
$ac_ext
2958 cat >>conftest.
$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2969 rm -f conftest.o conftest.obj
2970 if { (ac_try
="$ac_compile"
2972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; then
2980 for ac_file in conftest.o conftest.obj conftest.*; do
2981 test -f "$ac_file" || continue;
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2993 See \`config.log
' for more details." >&5
2994 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2995 See \`config.log' for more details.
" >&2;}
2996 { (exit 1); exit 1; }; }
2999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3002 echo "${ECHO_T}$ac_cv_objext" >&6; }
3003 OBJEXT=$ac_cv_objext
3005 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3006 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3007 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3008 echo $ECHO_N "(cached
) $ECHO_C" >&6
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3028 rm -f conftest.$ac_objext
3029 if { (ac_try="$ac_compile"
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_compile") 2>conftest.er1
3037 grep -v '^ *+' conftest.er1 >conftest.err
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3041 (exit $ac_status); } && {
3042 test -z "$ac_c_werror_flag" ||
3043 test ! -s conftest.err
3044 } && test -s conftest.$ac_objext; then
3047 echo "$as_me: failed program was
:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3059 GCC=`test $ac_compiler_gnu = yes && echo yes`
3060 ac_test_CFLAGS=${CFLAGS+set}
3061 ac_save_CFLAGS=$CFLAGS
3062 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3063 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3064 if test "${ac_cv_prog_cc_g+set}" = set; then
3065 echo $ECHO_N "(cached
) $ECHO_C" >&6
3067 ac_save_c_werror_flag=$ac_c_werror_flag
3068 ac_c_werror_flag=yes
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3099 (exit $ac_status); } && {
3100 test -z "$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
3105 echo "$as_me: failed program was
:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3137 (exit $ac_status); } && {
3138 test -z "$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 } && test -s conftest.$ac_objext; then
3143 echo "$as_me: failed program was
:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 ac_c_werror_flag=$ac_save_c_werror_flag
3148 cat >conftest.$ac_ext <<_ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3172 grep -v '^ *+' conftest.er1 >conftest.err
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
3182 echo "$as_me: failed program was
:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_c_werror_flag=$ac_save_c_werror_flag
3197 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3198 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3199 if test "$ac_test_CFLAGS" = set; then
3200 CFLAGS=$ac_save_CFLAGS
3201 elif test $ac_cv_prog_cc_g = yes; then
3202 if test "$GCC" = yes; then
3208 if test "$GCC" = yes; then
3214 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3215 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3216 if test "${ac_cv_prog_cc_c89+set}" = set; then
3217 echo $ECHO_N "(cached
) $ECHO_C" >&6
3219 ac_cv_prog_cc_c89=no
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3229 #include <sys/types.h>
3230 #include <sys/stat.h>
3231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232 struct buf { int x; };
3233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234 static char *e (p, i)
3240 static char *f (char * (*g) (char **, int), char **p, ...)
3245 s = g (p, va_arg (v,int));
3250 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3251 function prototypes and stuff, but not '\xHH' hex character constants.
3252 These don't provoke an error unfortunately, instead are silently treated
3253 as 'x'. The following induces an error, until -std is added to get
3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3255 array size at least. It's necessary to write '\x00'==0 to get something
3256 that's true only with -std. */
3257 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260 inside strings and character constants. */
3262 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264 int test (int i, double x);
3265 struct s1 {int (*f) (int a);};
3266 struct s2 {int (*f) (double a);};
3267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3278 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281 CC="$ac_save_CC $ac_arg"
3282 rm -f conftest.$ac_objext
3283 if { (ac_try="$ac_compile"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_compile") 2>conftest.er1
3291 grep -v '^ *+' conftest.er1 >conftest.err
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3295 (exit $ac_status); } && {
3296 test -z "$ac_c_werror_flag" ||
3297 test ! -s conftest.err
3298 } && test -s conftest.$ac_objext; then
3299 ac_cv_prog_cc_c89=$ac_arg
3301 echo "$as_me: failed program was
:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3307 rm -f core conftest.err conftest.$ac_objext
3308 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3310 rm -f conftest.$ac_ext
3315 case "x
$ac_cv_prog_cc_c89" in
3317 { echo "$as_me:$LINENO: result
: none needed
" >&5
3318 echo "${ECHO_T}none needed
" >&6; } ;;
3320 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3321 echo "${ECHO_T}unsupported
" >&6; } ;;
3323 CC="$CC $ac_cv_prog_cc_c89"
3324 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3325 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 DEPDIR="${am__leading_dot}deps
"
3336 ac_config_commands="$ac_config_commands depfiles
"
3339 am_make=${MAKE-make}
3340 cat > confinc << 'END'
3345 # If we don't find an include directive, just comment out the code.
3346 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3347 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3351 # First try GNU make style include.
3352 echo "include confinc" > confmf
3353 # We grep out `Entering directory' and `Leaving directory'
3354 # messages which can occur if `w' ends up in MAKEFLAGS.
3355 # In particular we don't look at `^make:' because GNU make might
3356 # be invoked under some other name (usually "gmake"), in which
3357 # case it prints its new name instead of `make'.
3358 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3363 # Now try BSD make style include.
3364 if test "$am__include" = "#"; then
3365 echo '.include "confinc"' > confmf
3366 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3367 am__include
=.include
3374 { echo "$as_me:$LINENO: result: $_am_result" >&5
3375 echo "${ECHO_T}$_am_result" >&6; }
3376 rm -f confinc confmf
3378 # Check whether --enable-dependency-tracking was given.
3379 if test "${enable_dependency_tracking+set}" = set; then
3380 enableval
=$enable_dependency_tracking;
3383 if test "x$enable_dependency_tracking" != xno
; then
3384 am_depcomp
="$ac_aux_dir/depcomp"
3387 if test "x$enable_dependency_tracking" != xno; then
3397 depcc
="$CC" am_compiler_list
=
3399 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3400 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3401 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3405 # We make a subdir and do the tests there. Otherwise we can end up
3406 # making bogus files that we don't know about and never remove. For
3407 # instance it was reported that on HP-UX the gcc test will end up
3408 # making a dummy file named `D' -- because `-MD' means `put the output
3411 # Copy depcomp to subdir because otherwise we won't find it if we're
3412 # using a relative directory.
3413 cp "$am_depcomp" conftest.dir
3415 # We will build objects and dependencies in a subdirectory because
3416 # it helps to detect inapplicable dependency modes. For instance
3417 # both Tru64's cc and ICC support -MD to output dependencies as a
3418 # side effect of compilation, but ICC will put the dependencies in
3419 # the current directory while Tru64 will put them in the object
3423 am_cv_CC_dependencies_compiler_type
=none
3424 if test "$am_compiler_list" = ""; then
3425 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3427 for depmode
in $am_compiler_list; do
3428 # Setup a source with many dependencies, because some compilers
3429 # like to wrap large dependency lists on column 80 (with \), and
3430 # we should not choose a depcomp mode which is confused by this.
3432 # We need to recreate these files for each test, as the compiler may
3433 # overwrite some of them when testing with obscure command lines.
3434 # This happens at least with the AIX C compiler.
3436 for i
in 1 2 3 4 5 6; do
3437 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3438 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3439 # Solaris 8's {/usr,}/bin/sh.
3440 touch sub
/conftst
$i.h
3442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3446 # after this tag, mechanisms are not by side-effect, so they'll
3447 # only be used when explicitly requested
3448 if test "x$enable_dependency_tracking" = xyes
; then
3456 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3457 # mode. It turns out that the SunPro C++ compiler does not properly
3458 # handle `-M -o', and we need to detect this.
3459 if depmode
=$depmode \
3460 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3461 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3462 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3463 >/dev
/null
2>conftest.err
&&
3464 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3465 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3466 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3467 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3468 # icc doesn't choke on unknown options, it will just issue warnings
3469 # or remarks (even with -Werror). So we grep stderr for any message
3470 # that says an option was ignored or not supported.
3471 # When given -MP, icc 7.0 and 7.1 complain thusly:
3472 # icc: Command line warning: ignoring option '-M'; no argument required
3473 # The diagnosis changed in icc 8.0:
3474 # icc: Command line remark: option '-MP' not supported
3475 if (grep 'ignoring option' conftest.err ||
3476 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3477 am_cv_CC_dependencies_compiler_type
=$depmode
3486 am_cv_CC_dependencies_compiler_type
=none
3490 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3491 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3492 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3495 test "x$enable_dependency_tracking" != xno \
3496 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3498 am__fastdepCC_FALSE
='#'
3500 am__fastdepCC_TRUE
='#'
3501 am__fastdepCC_FALSE
=
3506 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3507 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3508 if test "${ac_cv_search_strerror+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 ac_func_search_save_LIBS
=$LIBS
3512 cat >conftest.
$ac_ext <<_ACEOF
3515 cat confdefs.h
>>conftest.
$ac_ext
3516 cat >>conftest.
$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3519 /* Override any GCC internal prototype to avoid an error.
3520 Use char because int might match the return type of a GCC
3521 builtin and then its argument prototype would still apply. */
3534 for ac_lib
in '' cposix
; do
3535 if test -z "$ac_lib"; then
3536 ac_res
="none required"
3539 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3541 rm -f conftest.
$ac_objext conftest
$ac_exeext
3542 if { (ac_try
="$ac_link"
3544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_link") 2>conftest.er1
3550 grep -v '^ *+' conftest.er1 >conftest.err
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } && {
3555 test -z "$ac_c_werror_flag" ||
3556 test ! -s conftest.err
3557 } && test -s conftest$ac_exeext &&
3558 $as_test_x conftest$ac_exeext; then
3559 ac_cv_search_strerror=$ac_res
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3569 if test "${ac_cv_search_strerror+set}" = set; then
3573 if test "${ac_cv_search_strerror+set}" = set; then
3576 ac_cv_search_strerror=no
3579 LIBS=$ac_func_search_save_LIBS
3581 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3582 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3583 ac_res=$ac_cv_search_strerror
3584 if test "$ac_res" != no; then
3585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3595 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3596 # On Suns, sometimes $CPP names a directory.
3597 if test -n "$CPP" && test -d "$CPP"; then
3600 if test -z "$CPP"; then
3601 if test "${ac_cv_prog_CPP+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 # Double quotes because CPP needs to be expanded
3605 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3608 for ac_c_preproc_warn_flag in '' yes
3610 # Use a header file that comes with gcc, so configuring glibc
3611 # with a fresh cross-compiler works.
3612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3613 # <limits.h> exists even on freestanding compilers.
3614 # On the NeXT, cc -E runs the code through the compiler's parser,
3615 # not just through cpp. "Syntax error" is here to catch this case.
3616 cat >conftest.$ac_ext <<_ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3623 # include <limits.h>
3625 # include <assert.h>
3629 if { (ac_try="$ac_cpp conftest.$ac_ext"
3631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3632 *) ac_try_echo
=$ac_try;;
3634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3637 grep -v '^ *+' conftest.er1
>conftest.err
3639 cat conftest.err
>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } >/dev
/null
&& {
3642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3643 test ! -s conftest.err
3647 echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.
$ac_ext >&5
3650 # Broken: fails on valid input.
3654 rm -f conftest.err conftest.
$ac_ext
3656 # OK, works on sane cases. Now check whether nonexistent headers
3657 # can be detected and how.
3658 cat >conftest.
$ac_ext <<_ACEOF
3661 cat confdefs.h
>>conftest.
$ac_ext
3662 cat >>conftest.
$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3664 #include <ac_nonexistent.h>
3666 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3674 grep -v '^ *+' conftest.er1 >conftest.err
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } >/dev/null && {
3679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3682 # Broken: success on invalid input.
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3688 # Passes both tests.
3693 rm -f conftest.err conftest.$ac_ext
3696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3697 rm -f conftest.err conftest.
$ac_ext
3698 if $ac_preproc_ok; then
3710 { echo "$as_me:$LINENO: result: $CPP" >&5
3711 echo "${ECHO_T}$CPP" >&6; }
3713 for ac_c_preproc_warn_flag
in '' yes
3715 # Use a header file that comes with gcc, so configuring glibc
3716 # with a fresh cross-compiler works.
3717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3718 # <limits.h> exists even on freestanding compilers.
3719 # On the NeXT, cc -E runs the code through the compiler's parser,
3720 # not just through cpp. "Syntax error" is here to catch this case.
3721 cat >conftest.
$ac_ext <<_ACEOF
3724 cat confdefs.h
>>conftest.
$ac_ext
3725 cat >>conftest.
$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3728 # include <limits.h>
3730 # include <assert.h>
3734 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3742 grep -v '^ *+' conftest.er1 >conftest.err
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev/null && {
3747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3748 test ! -s conftest.err
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3755 # Broken: fails on valid input.
3759 rm -f conftest.err conftest.$ac_ext
3761 # OK, works on sane cases. Now check whether nonexistent headers
3762 # can be detected and how.
3763 cat >conftest.$ac_ext <<_ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3769 #include <ac_nonexistent.h>
3771 if { (ac_try="$ac_cpp conftest.$ac_ext"
3773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3774 *) ac_try_echo
=$ac_try;;
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3779 grep -v '^ *+' conftest.er1
>conftest.err
3781 cat conftest.err
>&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } >/dev
/null
&& {
3784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3787 # Broken: success on invalid input.
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.
$ac_ext >&5
3793 # Passes both tests.
3798 rm -f conftest.err conftest.
$ac_ext
3801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3802 rm -f conftest.err conftest.
$ac_ext
3803 if $ac_preproc_ok; then
3806 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3807 See \`config.log' for more details." >&5
3808 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3809 See \`config.log' for more details." >&2;}
3810 { (exit 1); exit 1; }; }
3814 ac_cpp
='$CPP $CPPFLAGS'
3815 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3820 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3821 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3822 if test "${ac_cv_path_GREP+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 # Extract the first word of "grep ggrep" to use in msg output
3826 if test -z "$GREP"; then
3827 set dummy
grep ggrep
; ac_prog_name
=$2
3828 if test "${ac_cv_path_GREP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 ac_path_GREP_found
=false
3832 # Loop through the user's path and test for each of PROGNAME-LIST
3833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3834 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3837 test -z "$as_dir" && as_dir
=.
3838 for ac_prog
in grep ggrep
; do
3839 for ac_exec_ext
in '' $ac_executable_extensions; do
3840 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3841 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3842 # Check for GNU ac_path_GREP and select it if it is found.
3843 # Check for GNU $ac_path_GREP
3844 case `"$ac_path_GREP" --version 2>&1` in
3846 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3849 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 echo 'GREP' >> "conftest.nl"
3856 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3857 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3858 ac_count
=`expr $ac_count + 1`
3859 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_GREP
="$ac_path_GREP"
3862 ac_path_GREP_max
=$ac_count
3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3867 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3871 $ac_path_GREP_found && break 3
3881 GREP
="$ac_cv_path_GREP"
3882 if test -z "$GREP"; then
3883 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3884 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3885 { (exit 1); exit 1; }; }
3889 ac_cv_path_GREP
=$GREP
3894 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3895 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3896 GREP
="$ac_cv_path_GREP"
3899 { echo "$as_me:$LINENO: checking for egrep" >&5
3900 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3901 if test "${ac_cv_path_EGREP+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3905 then ac_cv_path_EGREP
="$GREP -E"
3907 # Extract the first word of "egrep" to use in msg output
3908 if test -z "$EGREP"; then
3909 set dummy
egrep; ac_prog_name
=$2
3910 if test "${ac_cv_path_EGREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 ac_path_EGREP_found
=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3916 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3919 test -z "$as_dir" && as_dir
=.
3920 for ac_prog
in egrep; do
3921 for ac_exec_ext
in '' $ac_executable_extensions; do
3922 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3923 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3924 # Check for GNU ac_path_EGREP and select it if it is found.
3925 # Check for GNU $ac_path_EGREP
3926 case `"$ac_path_EGREP" --version 2>&1` in
3928 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3931 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 echo 'EGREP' >> "conftest.nl"
3938 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3939 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3940 ac_count
=`expr $ac_count + 1`
3941 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_EGREP
="$ac_path_EGREP"
3944 ac_path_EGREP_max
=$ac_count
3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3949 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3953 $ac_path_EGREP_found && break 3
3963 EGREP
="$ac_cv_path_EGREP"
3964 if test -z "$EGREP"; then
3965 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3966 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3967 { (exit 1); exit 1; }; }
3971 ac_cv_path_EGREP
=$EGREP
3977 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3978 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3979 EGREP
="$ac_cv_path_EGREP"
3983 { echo "$as_me:$LINENO: checking for AIX" >&5
3984 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3985 cat >conftest.
$ac_ext <<_ACEOF
3988 cat confdefs.h
>>conftest.
$ac_ext
3989 cat >>conftest.
$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3997 $EGREP "yes" >/dev
/null
2>&1; then
3998 { echo "$as_me:$LINENO: result: yes" >&5
3999 echo "${ECHO_T}yes" >&6; }
4000 cat >>confdefs.h
<<\_ACEOF
4001 #define _ALL_SOURCE 1
4005 { echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6; }
4011 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4012 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4013 if test "${ac_cv_header_stdc+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 cat >conftest.
$ac_ext <<_ACEOF
4019 cat confdefs.h
>>conftest.
$ac_ext
4020 cat >>conftest.
$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4035 rm -f conftest.
$ac_objext
4036 if { (ac_try
="$ac_compile"
4038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_compile") 2>conftest.er1
4044 grep -v '^ *+' conftest.er1 >conftest.err
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } && {
4049 test -z "$ac_c_werror_flag" ||
4050 test ! -s conftest.err
4051 } && test -s conftest.$ac_objext; then
4052 ac_cv_header_stdc=yes
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 ac_cv_header_stdc=no
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 if test $ac_cv_header_stdc = yes; then
4063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4074 $EGREP "memchr" >/dev/null 2>&1; then
4077 ac_cv_header_stdc=no
4083 if test $ac_cv_header_stdc = yes; then
4084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 $EGREP "free" >/dev/null 2>&1; then
4098 ac_cv_header_stdc=no
4104 if test $ac_cv_header_stdc = yes; then
4105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4106 if test "$cross_compiling" = yes; then
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4117 #if ((' ' & 0x0FF) == 0x020)
4118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4121 # define ISLOWER(c) \
4122 (('a' <= (c) && (c) <= 'i') \
4123 || ('j' <= (c) && (c) <= 'r') \
4124 || ('s' <= (c) && (c) <= 'z'))
4125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4133 for (i = 0; i < 256; i++)
4134 if (XOR (islower (i), ISLOWER (i))
4135 || toupper (i) != TOUPPER (i))
4140 rm -f conftest$ac_exeext
4141 if { (ac_try="$ac_link"
4143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4144 *) ac_try_echo
=$ac_try;;
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_link") 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4151 { (case "(($ac_try" in
4152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4162 echo "$as_me: program exited with status $ac_status" >&5
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4167 ac_cv_header_stdc=no
4169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4175 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4176 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4177 if test $ac_cv_header_stdc = yes; then
4179 cat >>confdefs.h <<\_ACEOF
4180 #define STDC_HEADERS 1
4185 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4195 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4196 inttypes.h stdint.h unistd.h
4198 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 $ac_includes_default
4212 #include <$ac_header>
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4218 *) ac_try_echo
=$ac_try;;
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4223 grep -v '^ *+' conftest.er1
>conftest.err
4225 cat conftest.err
>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && {
4228 test -z "$ac_c_werror_flag" ||
4229 test ! -s conftest.err
4230 } && test -s conftest.
$ac_objext; then
4231 eval "$as_ac_Header=yes"
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.
$ac_ext >&5
4236 eval "$as_ac_Header=no"
4239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4241 ac_res
=`eval echo '${'$as_ac_Header'}'`
4242 { echo "$as_me:$LINENO: result: $ac_res" >&5
4243 echo "${ECHO_T}$ac_res" >&6; }
4244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4245 cat >>confdefs.h
<<_ACEOF
4246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4254 if test "${ac_cv_header_minix_config_h+set}" = set; then
4255 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4256 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4257 if test "${ac_cv_header_minix_config_h+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4261 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4263 # Is the header compilable?
4264 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4265 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4266 cat >conftest.
$ac_ext <<_ACEOF
4269 cat confdefs.h
>>conftest.
$ac_ext
4270 cat >>conftest.
$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 $ac_includes_default
4273 #include <minix/config.h>
4275 rm -f conftest.
$ac_objext
4276 if { (ac_try
="$ac_compile"
4278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_compile") 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && {
4289 test -z "$ac_c_werror_flag" ||
4290 test ! -s conftest.err
4291 } && test -s conftest.$ac_objext; then
4292 ac_header_compiler=yes
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_header_compiler=no
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4302 echo "${ECHO_T}$ac_header_compiler" >&6; }
4304 # Is the header present?
4305 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4306 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 #include <minix/config.h>
4315 if { (ac_try="$ac_cpp conftest.$ac_ext"
4317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4318 *) ac_try_echo
=$ac_try;;
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4323 grep -v '^ *+' conftest.er1
>conftest.err
4325 cat conftest.err
>&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } >/dev
/null
&& {
4328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4329 test ! -s conftest.err
4331 ac_header_preproc
=yes
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.
$ac_ext >&5
4336 ac_header_preproc
=no
4339 rm -f conftest.err conftest.
$ac_ext
4340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4341 echo "${ECHO_T}$ac_header_preproc" >&6; }
4343 # So? What about this header?
4344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4346 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4347 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4348 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4349 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4350 ac_header_preproc
=yes
4353 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4354 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4355 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4356 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4357 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4358 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4359 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4360 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4361 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4362 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4363 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4364 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4366 ## -------------------------------------------------- ##
4367 ## Report this to courier-users@lists.sourceforge.net ##
4368 ## -------------------------------------------------- ##
4370 ) |
sed "s/^/$as_me: WARNING: /" >&2
4373 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4374 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4375 if test "${ac_cv_header_minix_config_h+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 ac_cv_header_minix_config_h
=$ac_header_preproc
4380 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4381 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4384 if test $ac_cv_header_minix_config_h = yes; then
4391 if test "$MINIX" = yes; then
4393 cat >>confdefs.h
<<\_ACEOF
4394 #define _POSIX_SOURCE 1
4398 cat >>confdefs.h
<<\_ACEOF
4399 #define _POSIX_1_SOURCE 2
4403 cat >>confdefs.h
<<\_ACEOF
4409 # Check whether --enable-shared was given.
4410 if test "${enable_shared+set}" = set; then
4411 enableval
=$enable_shared; p
=${PACKAGE-default}
4413 yes) enable_shared
=yes ;;
4414 no
) enable_shared
=no
;;
4417 # Look at the argument we got. We use all the common list separators.
4418 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4419 for pkg
in $enableval; do
4421 if test "X$pkg" = "X$p"; then
4433 # Check whether --enable-static was given.
4434 if test "${enable_static+set}" = set; then
4435 enableval
=$enable_static; p
=${PACKAGE-default}
4437 yes) enable_static
=yes ;;
4438 no
) enable_static
=no
;;
4441 # Look at the argument we got. We use all the common list separators.
4442 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4443 for pkg
in $enableval; do
4445 if test "X$pkg" = "X$p"; then
4457 # Check whether --enable-fast-install was given.
4458 if test "${enable_fast_install+set}" = set; then
4459 enableval
=$enable_fast_install; p
=${PACKAGE-default}
4461 yes) enable_fast_install
=yes ;;
4462 no
) enable_fast_install
=no
;;
4464 enable_fast_install
=no
4465 # Look at the argument we got. We use all the common list separators.
4466 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4467 for pkg
in $enableval; do
4469 if test "X$pkg" = "X$p"; then
4470 enable_fast_install
=yes
4477 enable_fast_install
=yes
4481 # Make sure we can run config.sub.
4482 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4483 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4484 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4485 { (exit 1); exit 1; }; }
4487 { echo "$as_me:$LINENO: checking build system type" >&5
4488 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4489 if test "${ac_cv_build+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 ac_build_alias
=$build_alias
4493 test "x$ac_build_alias" = x
&&
4494 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4495 test "x$ac_build_alias" = x
&&
4496 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4497 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4498 { (exit 1); exit 1; }; }
4499 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4500 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4501 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4502 { (exit 1); exit 1; }; }
4505 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4506 echo "${ECHO_T}$ac_cv_build" >&6; }
4507 case $ac_cv_build in
4509 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4510 echo "$as_me: error: invalid value of canonical build" >&2;}
4511 { (exit 1); exit 1; }; };;
4514 ac_save_IFS
=$IFS; IFS
='-'
4520 # Remember, the first character of IFS is used to create $*,
4521 # except with old shells:
4524 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4527 { echo "$as_me:$LINENO: checking host system type" >&5
4528 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4529 if test "${ac_cv_host+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 if test "x$host_alias" = x
; then
4533 ac_cv_host
=$ac_cv_build
4535 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4536 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4537 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4538 { (exit 1); exit 1; }; }
4542 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4543 echo "${ECHO_T}$ac_cv_host" >&6; }
4546 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4547 echo "$as_me: error: invalid value of canonical host" >&2;}
4548 { (exit 1); exit 1; }; };;
4551 ac_save_IFS
=$IFS; IFS
='-'
4557 # Remember, the first character of IFS is used to create $*,
4558 # except with old shells:
4561 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4564 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4565 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4566 if test "${lt_cv_path_SED+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 # Loop through the user's path and test for sed and gsed.
4570 # Then use that list of sed's as ones to test for truncation.
4571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir
=.
4576 for lt_ac_prog
in sed gsed
; do
4577 for ac_exec_ext
in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4579 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4587 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4588 # along with /bin/sed that truncates output.
4589 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
4590 test ! -f $lt_ac_sed && continue
4591 cat /dev
/null
> conftest.
in
4593 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
4594 # Check for GNU sed and select it if it is found.
4595 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
4596 lt_cv_path_SED
=$lt_ac_sed
4600 cat conftest.
in conftest.
in >conftest.tmp
4601 mv conftest.tmp conftest.
in
4602 cp conftest.
in conftest.
nl
4604 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
4605 cmp -s conftest.out conftest.
nl ||
break
4606 # 10000 chars as input seems more than enough
4607 test $lt_ac_count -gt 10 && break
4608 lt_ac_count
=`expr $lt_ac_count + 1`
4609 if test $lt_ac_count -gt $lt_ac_max; then
4610 lt_ac_max
=$lt_ac_count
4611 lt_cv_path_SED
=$lt_ac_sed
4620 { echo "$as_me:$LINENO: result: $SED" >&5
4621 echo "${ECHO_T}$SED" >&6; }
4624 # Check whether --with-gnu-ld was given.
4625 if test "${with_gnu_ld+set}" = set; then
4626 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4632 if test "$GCC" = yes; then
4633 # Check if gcc -print-prog-name=ld gives a path.
4634 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4635 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4638 # gcc leaves a trailing carriage return which upsets mingw
4639 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4641 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4644 # Accept absolute paths.
4646 re_direlt
='/[^/][^/]*/\.\./'
4647 # Canonicalize the pathname of ld
4648 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
4649 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4650 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4652 test -z "$LD" && LD
="$ac_prog"
4655 # If it fails, then pretend we aren't using GCC.
4659 # If it is relative, then search for the first ld in PATH.
4663 elif test "$with_gnu_ld" = yes; then
4664 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4665 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4667 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4668 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4670 if test "${lt_cv_path_LD+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 if test -z "$LD"; then
4674 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4675 for ac_dir
in $PATH; do
4677 test -z "$ac_dir" && ac_dir
=.
4678 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4679 lt_cv_path_LD
="$ac_dir/$ac_prog"
4680 # Check to see if the program is GNU ld. I'd rather use --version,
4681 # but apparently some variants of GNU ld only accept -v.
4682 # Break only if it was the GNU/non-GNU ld that we prefer.
4683 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4684 *GNU
* |
*'with BFD'*)
4685 test "$with_gnu_ld" != no
&& break
4688 test "$with_gnu_ld" != yes && break
4695 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4700 if test -n "$LD"; then
4701 { echo "$as_me:$LINENO: result: $LD" >&5
4702 echo "${ECHO_T}$LD" >&6; }
4704 { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4707 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4708 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4709 { (exit 1); exit 1; }; }
4710 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4711 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4712 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4716 case `$LD -v 2>&1 </dev/null` in
4717 *GNU
* |
*'with BFD'*)
4718 lt_cv_prog_gnu_ld
=yes
4721 lt_cv_prog_gnu_ld
=no
4725 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4726 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4727 with_gnu_ld
=$lt_cv_prog_gnu_ld
4730 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4731 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4732 if test "${lt_cv_ld_reload_flag+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 lt_cv_ld_reload_flag
='-r'
4737 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4738 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4739 reload_flag
=$lt_cv_ld_reload_flag
4740 case $reload_flag in
4742 *) reload_flag
=" $reload_flag" ;;
4744 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4747 if test "$GCC" = yes; then
4748 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4750 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4755 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4756 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4757 if test "${lt_cv_path_NM+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 if test -n "$NM"; then
4761 # Let the user override the test.
4764 lt_nm_to_check
="${ac_tool_prefix}nm"
4765 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4766 lt_nm_to_check
="$lt_nm_to_check nm"
4768 for lt_tmp_nm
in $lt_nm_to_check; do
4769 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4770 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4772 test -z "$ac_dir" && ac_dir
=.
4773 tmp_nm
="$ac_dir/$lt_tmp_nm"
4774 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4775 # Check to see if the nm accepts a BSD-compat flag.
4776 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4777 # nm: unknown option "B" ignored
4778 # Tru64's nm complains that /dev/null is an invalid object file
4779 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4780 */dev
/null
* |
*'Invalid file or object type'*)
4781 lt_cv_path_NM
="$tmp_nm -B"
4785 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4787 lt_cv_path_NM
="$tmp_nm -p"
4791 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4792 continue # so that we can try to find one that supports BSD flags
4801 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4804 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4805 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4808 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4809 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4811 if test "$LN_S" = "ln -s"; then
4812 { echo "$as_me:$LINENO: result: yes" >&5
4813 echo "${ECHO_T}yes" >&6; }
4815 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4816 echo "${ECHO_T}no, using $LN_S" >&6; }
4819 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4820 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4821 if test "${lt_cv_deplibs_check_method+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4825 lt_cv_file_magic_test_file
=
4826 lt_cv_deplibs_check_method
='unknown'
4827 # Need to set the preceding variable on all platforms that support
4828 # interlibrary dependencies.
4829 # 'none' -- dependencies not supported.
4830 # `unknown' -- same as none, but documents that we really don't know.
4831 # 'pass_all' -- all dependencies passed with no checks.
4832 # 'test_compile' -- check by making test program.
4833 # 'file_magic [[regex]]' -- check by looking for files in library path
4834 # which responds to the $file_magic_cmd with a given extended regex.
4835 # If you have `file' or equivalent on your system and you're not sure
4836 # whether `pass_all' will *always* work, you probably want this one.
4840 lt_cv_deplibs_check_method
=pass_all
4844 lt_cv_deplibs_check_method
=pass_all
4848 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4849 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4850 lt_cv_file_magic_test_file
=/shlib
/libc.so
4854 # func_win32_libid is a shell function defined in ltmain.sh
4855 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4856 lt_cv_file_magic_cmd
='func_win32_libid'
4860 # Base MSYS/MinGW do not provide the 'file' command needed by
4861 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4862 # unless we find 'file', for example because we are cross-compiling.
4863 if ( file / ) >/dev
/null
2>&1; then
4864 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4865 lt_cv_file_magic_cmd
='func_win32_libid'
4867 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4868 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4872 darwin
* | rhapsody
*)
4873 lt_cv_deplibs_check_method
=pass_all
4876 freebsd
* | dragonfly
*)
4877 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4880 # Not sure whether the presence of OpenBSD here was a mistake.
4881 # Let's accept both of them until this is cleared up.
4882 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4883 lt_cv_file_magic_cmd
=/usr
/bin
/file
4884 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4888 lt_cv_deplibs_check_method
=pass_all
4893 lt_cv_deplibs_check_method
=pass_all
4896 hpux10.20
* | hpux11
*)
4897 lt_cv_file_magic_cmd
=/usr
/bin
/file
4900 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4901 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4904 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]'
4905 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4908 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4909 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4915 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4916 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4919 irix5
* | irix6
* | nonstopux
*)
4921 *-32|
*"-32 ") libmagic
=32-bit;;
4922 *-n32|
*"-n32 ") libmagic
=N32
;;
4923 *-64|
*"-64 ") libmagic
=64-bit;;
4924 *) libmagic
=never-match
;;
4926 lt_cv_deplibs_check_method
=pass_all
4929 # This must be Linux ELF.
4930 linux
* | k
*bsd
*-gnu)
4931 lt_cv_deplibs_check_method
=pass_all
4935 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4936 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4938 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4943 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4944 lt_cv_file_magic_cmd
=/usr
/bin
/file
4945 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4949 lt_cv_deplibs_check_method
=unknown
4953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4954 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4956 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4960 osf3
* | osf4
* | osf5
*)
4961 lt_cv_deplibs_check_method
=pass_all
4965 lt_cv_deplibs_check_method
=pass_all
4969 lt_cv_deplibs_check_method
=pass_all
4973 case $host_vendor in
4975 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]'
4976 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4979 lt_cv_deplibs_check_method
=pass_all
4982 lt_cv_file_magic_cmd
='/bin/file'
4983 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4986 lt_cv_file_magic_cmd
='/bin/file'
4987 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4988 lt_cv_file_magic_test_file
=/lib
/libc.so
4991 lt_cv_deplibs_check_method
=pass_all
4994 lt_cv_deplibs_check_method
=pass_all
4999 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
5000 lt_cv_deplibs_check_method
=pass_all
5005 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5006 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5007 file_magic_cmd
=$lt_cv_file_magic_cmd
5008 deplibs_check_method
=$lt_cv_deplibs_check_method
5009 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
5014 # If no C compiler was specified, use CC.
5017 # If no C compiler flags were specified, use CFLAGS.
5018 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
5020 # Allow CC to be a program name with arguments.
5023 # Check whether --enable-libtool-lock was given.
5024 if test "${enable_libtool_lock+set}" = set; then
5025 enableval
=$enable_libtool_lock;
5028 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
5030 # Some flags need to be propagated to the compiler or linker for good
5034 # Find out which ABI we are using.
5035 echo 'int i;' > conftest.
$ac_ext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; then
5041 case `/usr/bin/file conftest.$ac_objext` in
5053 # Find out which ABI we are using.
5054 echo '#line 5054 "configure"' > conftest.
$ac_ext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; then
5060 if test "$lt_cv_prog_gnu_ld" = yes; then
5061 case `/usr/bin/file conftest.$ac_objext` in
5063 LD
="${LD-ld} -melf32bsmip"
5066 LD
="${LD-ld} -melf32bmipn32"
5069 LD
="${LD-ld} -melf64bmip"
5073 case `/usr/bin/file conftest.$ac_objext` in
5089 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
5090 s390
*-*linux
*|sparc
*-*linux
*)
5091 # Find out which ABI we are using.
5092 echo 'int i;' > conftest.
$ac_ext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094 (eval $ac_compile) 2>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; then
5098 case `/usr/bin/file conftest.o` in
5101 x86_64-
*kfreebsd
*-gnu)
5102 LD
="${LD-ld} -m elf_i386_fbsd"
5105 LD
="${LD-ld} -m elf_i386"
5107 ppc64-
*linux
*|powerpc64-
*linux
*)
5108 LD
="${LD-ld} -m elf32ppclinux"
5111 LD
="${LD-ld} -m elf_s390"
5114 LD
="${LD-ld} -m elf32_sparc"
5121 x86_64-
*kfreebsd
*-gnu)
5122 LD
="${LD-ld} -m elf_x86_64_fbsd"
5125 LD
="${LD-ld} -m elf_x86_64"
5127 ppc
*-*linux
*|powerpc
*-*linux
*)
5128 LD
="${LD-ld} -m elf64ppc"
5131 LD
="${LD-ld} -m elf64_s390"
5134 LD
="${LD-ld} -m elf64_sparc"
5144 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5145 SAVE_CFLAGS
="$CFLAGS"
5146 CFLAGS
="$CFLAGS -belf"
5147 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5148 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5149 if test "${lt_cv_cc_needs_belf+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 ac_cpp
='$CPP $CPPFLAGS'
5154 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5158 cat >conftest.
$ac_ext <<_ACEOF
5161 cat confdefs.h
>>conftest.
$ac_ext
5162 cat >>conftest.
$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5173 rm -f conftest.
$ac_objext conftest
$ac_exeext
5174 if { (ac_try
="$ac_link"
5176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_link") 2>conftest.er1
5182 grep -v '^ *+' conftest.er1 >conftest.err
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } && {
5187 test -z "$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5189 } && test -s conftest$ac_exeext &&
5190 $as_test_x conftest$ac_exeext; then
5191 lt_cv_cc_needs_belf=yes
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 lt_cv_cc_needs_belf=no
5199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5200 conftest$ac_exeext conftest.$ac_ext
5202 ac_cpp='$CPP $CPPFLAGS'
5203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5209 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5212 CFLAGS="$SAVE_CFLAGS"
5216 # Find out which ABI we are using.
5217 echo 'int i;' > conftest.$ac_ext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; then
5223 case `/usr
/bin
/file conftest.o
` in
5225 case $lt_cv_prog_gnu_ld in
5226 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5227 *) LD="${LD-ld} -64" ;;
5238 need_locks="$enable_libtool_lock"
5242 for ac_header in dlfcn.h
5244 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 ac_res=`eval echo '${'$as_ac_Header'}'`
5252 { echo "$as_me:$LINENO: result: $ac_res" >&5
5253 echo "${ECHO_T}$ac_res" >&6; }
5255 # Is the header compilable?
5256 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5258 cat >conftest.$ac_ext <<_ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 $ac_includes_default
5265 #include <$ac_header>
5267 rm -f conftest.$ac_objext
5268 if { (ac_try="$ac_compile"
5270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5271 *) ac_try_echo
=$ac_try;;
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_compile") 2>conftest.er1
5276 grep -v '^ *+' conftest.er1
>conftest.err
5278 cat conftest.err
>&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } && {
5281 test -z "$ac_c_werror_flag" ||
5282 test ! -s conftest.err
5283 } && test -s conftest.
$ac_objext; then
5284 ac_header_compiler
=yes
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.
$ac_ext >&5
5289 ac_header_compiler
=no
5292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5294 echo "${ECHO_T}$ac_header_compiler" >&6; }
5296 # Is the header present?
5297 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5299 cat >conftest.
$ac_ext <<_ACEOF
5302 cat confdefs.h
>>conftest.
$ac_ext
5303 cat >>conftest.
$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 #include <$ac_header>
5307 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5315 grep -v '^ *+' conftest.er1 >conftest.err
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } >/dev/null && {
5320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5321 test ! -s conftest.err
5323 ac_header_preproc=yes
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 ac_header_preproc=no
5331 rm -f conftest.err conftest.$ac_ext
5332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5333 echo "${ECHO_T}$ac_header_preproc" >&6; }
5335 # So? What about this header?
5336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5342 ac_header_preproc=yes
5345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5352 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5358 ## -------------------------------------------------- ##
5359 ## Report this to courier-users@lists.sourceforge.net ##
5360 ## -------------------------------------------------- ##
5362 ) | sed "s/^/$as_me: WARNING: /" >&2
5365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 eval "$as_ac_Header=\$ac_header_preproc"
5372 ac_res=`eval echo '${'$as_ac_Header'}'`
5373 { echo "$as_me:$LINENO: result: $ac_res" >&5
5374 echo "${ECHO_T}$ac_res" >&6; }
5377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5378 cat >>confdefs.h <<_ACEOF
5379 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5387 ac_cpp='$CXXCPP $CPPFLAGS'
5388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5391 if test -z "$CXX"; then
5392 if test -n "$CCC"; then
5395 if test -n "$ac_tool_prefix"; then
5396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5402 if test "${ac_cv_prog_CXX+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 if test -n "$CXX"; then
5406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 if test -n "$CXX"; then
5427 { echo "$as_me:$LINENO: result: $CXX" >&5
5428 echo "${ECHO_T}$CXX" >&6; }
5430 { echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6; }
5435 test -n "$CXX" && break
5438 if test -z "$CXX"; then
5440 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5442 # Extract the first word of "$ac_prog", so it can be a program name with args.
5443 set dummy $ac_prog; ac_word=$2
5444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5446 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 if test -n "$ac_ct_CXX"; then
5450 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5459 ac_cv_prog_ac_ct_CXX="$ac_prog"
5460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5470 if test -n "$ac_ct_CXX"; then
5471 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5472 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5474 { echo "$as_me:$LINENO: result: no" >&5
5475 echo "${ECHO_T}no" >&6; }
5479 test -n "$ac_ct_CXX" && break
5482 if test "x$ac_ct_CXX" = x; then
5485 case $cross_compiling:$ac_tool_warned in
5487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5488 whose name does not start with the host triplet. If you think this
5489 configuration is useful to you, please write to autoconf@gnu.org." >&5
5490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5491 whose name does not start with the host triplet. If you think this
5492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5493 ac_tool_warned=yes ;;
5501 # Provide some information about the compiler.
5502 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5503 ac_compiler=`set X
$ac_compile; echo $2`
5504 { (ac_try="$ac_compiler --version >&5"
5506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5507 *) ac_try_echo
=$ac_try;;
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_compiler --version >&5") 2>&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }
5514 { (ac_try
="$ac_compiler -v >&5"
5516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compiler -v >&5") 2>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }
5524 { (ac_try="$ac_compiler -V >&5"
5526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5527 *) ac_try_echo
=$ac_try;;
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compiler -V >&5") 2>&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }
5535 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5536 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5537 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 cat >conftest.
$ac_ext <<_ACEOF
5543 cat confdefs.h
>>conftest.
$ac_ext
5544 cat >>conftest.
$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5558 rm -f conftest.
$ac_objext
5559 if { (ac_try
="$ac_compile"
5561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_compile") 2>conftest.er1
5567 grep -v '^ *+' conftest.er1 >conftest.err
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } && {
5572 test -z "$ac_cxx_werror_flag" ||
5573 test ! -s conftest.err
5574 } && test -s conftest.$ac_objext; then
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5587 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5588 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5589 GXX=`test $ac_compiler_gnu = yes && echo yes`
5590 ac_test_CXXFLAGS=${CXXFLAGS+set}
5591 ac_save_CXXFLAGS=$CXXFLAGS
5592 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5593 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5594 if test "${ac_cv_prog_cxx_g+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5598 ac_cxx_werror_flag=yes
5601 cat >conftest.$ac_ext <<_ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5616 rm -f conftest.$ac_objext
5617 if { (ac_try="$ac_compile"
5619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5620 *) ac_try_echo
=$ac_try;;
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_compile") 2>conftest.er1
5625 grep -v '^ *+' conftest.er1
>conftest.err
5627 cat conftest.err
>&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } && {
5630 test -z "$ac_cxx_werror_flag" ||
5631 test ! -s conftest.err
5632 } && test -s conftest.
$ac_objext; then
5633 ac_cv_prog_cxx_g
=yes
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.
$ac_ext >&5
5639 cat >conftest.
$ac_ext <<_ACEOF
5642 cat confdefs.h
>>conftest.
$ac_ext
5643 cat >>conftest.
$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5654 rm -f conftest.
$ac_objext
5655 if { (ac_try
="$ac_compile"
5657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_cxx_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5678 cat >conftest.$ac_ext <<_ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5693 rm -f conftest.$ac_objext
5694 if { (ac_try="$ac_compile"
5696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5697 *) ac_try_echo
=$ac_try;;
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_compile") 2>conftest.er1
5702 grep -v '^ *+' conftest.er1
>conftest.err
5704 cat conftest.err
>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_cxx_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest.
$ac_objext; then
5710 ac_cv_prog_cxx_g
=yes
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.
$ac_ext >&5
5718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5725 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5727 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5728 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5729 if test "$ac_test_CXXFLAGS" = set; then
5730 CXXFLAGS
=$ac_save_CXXFLAGS
5731 elif test $ac_cv_prog_cxx_g = yes; then
5732 if test "$GXX" = yes; then
5738 if test "$GXX" = yes; then
5745 ac_cpp
='$CXXCPP $CPPFLAGS'
5746 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5747 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5748 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5750 depcc
="$CXX" am_compiler_list
=
5752 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5753 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5754 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5758 # We make a subdir and do the tests there. Otherwise we can end up
5759 # making bogus files that we don't know about and never remove. For
5760 # instance it was reported that on HP-UX the gcc test will end up
5761 # making a dummy file named `D' -- because `-MD' means `put the output
5764 # Copy depcomp to subdir because otherwise we won't find it if we're
5765 # using a relative directory.
5766 cp "$am_depcomp" conftest.dir
5768 # We will build objects and dependencies in a subdirectory because
5769 # it helps to detect inapplicable dependency modes. For instance
5770 # both Tru64's cc and ICC support -MD to output dependencies as a
5771 # side effect of compilation, but ICC will put the dependencies in
5772 # the current directory while Tru64 will put them in the object
5776 am_cv_CXX_dependencies_compiler_type
=none
5777 if test "$am_compiler_list" = ""; then
5778 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5780 for depmode
in $am_compiler_list; do
5781 # Setup a source with many dependencies, because some compilers
5782 # like to wrap large dependency lists on column 80 (with \), and
5783 # we should not choose a depcomp mode which is confused by this.
5785 # We need to recreate these files for each test, as the compiler may
5786 # overwrite some of them when testing with obscure command lines.
5787 # This happens at least with the AIX C compiler.
5789 for i
in 1 2 3 4 5 6; do
5790 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5791 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5792 # Solaris 8's {/usr,}/bin/sh.
5793 touch sub
/conftst
$i.h
5795 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5799 # after this tag, mechanisms are not by side-effect, so they'll
5800 # only be used when explicitly requested
5801 if test "x$enable_dependency_tracking" = xyes
; then
5809 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5810 # mode. It turns out that the SunPro C++ compiler does not properly
5811 # handle `-M -o', and we need to detect this.
5812 if depmode
=$depmode \
5813 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5814 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5815 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5816 >/dev
/null
2>conftest.err
&&
5817 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5818 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5819 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5820 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5821 # icc doesn't choke on unknown options, it will just issue warnings
5822 # or remarks (even with -Werror). So we grep stderr for any message
5823 # that says an option was ignored or not supported.
5824 # When given -MP, icc 7.0 and 7.1 complain thusly:
5825 # icc: Command line warning: ignoring option '-M'; no argument required
5826 # The diagnosis changed in icc 8.0:
5827 # icc: Command line remark: option '-MP' not supported
5828 if (grep 'ignoring option' conftest.err ||
5829 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5830 am_cv_CXX_dependencies_compiler_type
=$depmode
5839 am_cv_CXX_dependencies_compiler_type
=none
5843 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5844 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5845 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5848 test "x$enable_dependency_tracking" != xno \
5849 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5850 am__fastdepCXX_TRUE
=
5851 am__fastdepCXX_FALSE
='#'
5853 am__fastdepCXX_TRUE
='#'
5854 am__fastdepCXX_FALSE
=
5860 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5861 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5862 (test "X$CXX" != "Xg++"))) ; then
5864 ac_cpp
='$CXXCPP $CPPFLAGS'
5865 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5868 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5869 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5870 if test -z "$CXXCPP"; then
5871 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 # Double quotes because CXXCPP needs to be expanded
5875 for CXXCPP
in "$CXX -E" "/lib/cpp"
5878 for ac_cxx_preproc_warn_flag
in '' yes
5880 # Use a header file that comes with gcc, so configuring glibc
5881 # with a fresh cross-compiler works.
5882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5883 # <limits.h> exists even on freestanding compilers.
5884 # On the NeXT, cc -E runs the code through the compiler's parser,
5885 # not just through cpp. "Syntax error" is here to catch this case.
5886 cat >conftest.
$ac_ext <<_ACEOF
5889 cat confdefs.h
>>conftest.
$ac_ext
5890 cat >>conftest.
$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5893 # include <limits.h>
5895 # include <assert.h>
5899 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } >/dev/null && {
5912 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5913 test ! -s conftest.err
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5920 # Broken: fails on valid input.
5924 rm -f conftest.err conftest.$ac_ext
5926 # OK, works on sane cases. Now check whether nonexistent headers
5927 # can be detected and how.
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #include <ac_nonexistent.h>
5936 if { (ac_try="$ac_cpp conftest.$ac_ext"
5938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5939 *) ac_try_echo
=$ac_try;;
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5944 grep -v '^ *+' conftest.er1
>conftest.err
5946 cat conftest.err
>&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } >/dev
/null
&& {
5949 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5950 test ! -s conftest.err
5952 # Broken: success on invalid input.
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.
$ac_ext >&5
5958 # Passes both tests.
5963 rm -f conftest.err conftest.
$ac_ext
5966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5967 rm -f conftest.err conftest.
$ac_ext
5968 if $ac_preproc_ok; then
5973 ac_cv_prog_CXXCPP
=$CXXCPP
5976 CXXCPP
=$ac_cv_prog_CXXCPP
5978 ac_cv_prog_CXXCPP
=$CXXCPP
5980 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5981 echo "${ECHO_T}$CXXCPP" >&6; }
5983 for ac_cxx_preproc_warn_flag
in '' yes
5985 # Use a header file that comes with gcc, so configuring glibc
5986 # with a fresh cross-compiler works.
5987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 # <limits.h> exists even on freestanding compilers.
5989 # On the NeXT, cc -E runs the code through the compiler's parser,
5990 # not just through cpp. "Syntax error" is here to catch this case.
5991 cat >conftest.
$ac_ext <<_ACEOF
5994 cat confdefs.h
>>conftest.
$ac_ext
5995 cat >>conftest.
$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5998 # include <limits.h>
6000 # include <assert.h>
6004 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6012 grep -v '^ *+' conftest.er1 >conftest.err
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } >/dev/null && {
6017 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6018 test ! -s conftest.err
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 # Broken: fails on valid input.
6029 rm -f conftest.err conftest.$ac_ext
6031 # OK, works on sane cases. Now check whether nonexistent headers
6032 # can be detected and how.
6033 cat >conftest.$ac_ext <<_ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 #include <ac_nonexistent.h>
6041 if { (ac_try="$ac_cpp conftest.$ac_ext"
6043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6044 *) ac_try_echo
=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6049 grep -v '^ *+' conftest.er1
>conftest.err
6051 cat conftest.err
>&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } >/dev
/null
&& {
6054 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6055 test ! -s conftest.err
6057 # Broken: success on invalid input.
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.
$ac_ext >&5
6063 # Passes both tests.
6068 rm -f conftest.err conftest.
$ac_ext
6071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6072 rm -f conftest.err conftest.
$ac_ext
6073 if $ac_preproc_ok; then
6076 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6077 See \`config.log' for more details." >&5
6078 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6079 See \`config.log' for more details." >&2;}
6080 { (exit 1); exit 1; }; }
6084 ac_cpp
='$CXXCPP $CPPFLAGS'
6085 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6093 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6094 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6095 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
6096 if test -n "$ac_tool_prefix"; then
6097 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
6099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6100 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6103 if test "${ac_cv_prog_F77+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 if test -n "$F77"; then
6107 ac_cv_prog_F77
="$F77" # Let the user override the test.
6109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir
=.
6114 for ac_exec_ext
in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 if test -n "$F77"; then
6128 { echo "$as_me:$LINENO: result: $F77" >&5
6129 echo "${ECHO_T}$F77" >&6; }
6131 { echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6; }
6136 test -n "$F77" && break
6139 if test -z "$F77"; then
6141 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
6143 # Extract the first word of "$ac_prog", so it can be a program name with args.
6144 set dummy
$ac_prog; ac_word
=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 if test -n "$ac_ct_F77"; then
6151 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
6153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6157 test -z "$as_dir" && as_dir
=.
6158 for ac_exec_ext
in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_ac_ct_F77
="$ac_prog"
6161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
6171 if test -n "$ac_ct_F77"; then
6172 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6173 echo "${ECHO_T}$ac_ct_F77" >&6; }
6175 { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6180 test -n "$ac_ct_F77" && break
6183 if test "x$ac_ct_F77" = x
; then
6186 case $cross_compiling:$ac_tool_warned in
6188 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6189 whose name does not start with the host triplet. If you think this
6190 configuration is useful to you, please write to autoconf@gnu.org." >&5
6191 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6192 whose name does not start with the host triplet. If you think this
6193 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6194 ac_tool_warned
=yes ;;
6201 # Provide some information about the compiler.
6202 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6203 ac_compiler
=`set X $ac_compile; echo $2`
6204 { (ac_try
="$ac_compiler --version >&5"
6206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compiler --version >&5") 2>&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }
6214 { (ac_try="$ac_compiler -v >&5"
6216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6217 *) ac_try_echo
=$ac_try;;
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compiler -v >&5") 2>&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }
6224 { (ac_try
="$ac_compiler -V >&5"
6226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compiler -V >&5") 2>&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }
6236 # If we don't use `.F
' as extension, the preprocessor is not run on the
6237 # input file. (Note that this only needs to work for GNU compilers.)
6240 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6241 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6242 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 cat >conftest.$ac_ext <<_ACEOF
6253 rm -f conftest.$ac_objext
6254 if { (ac_try="$ac_compile"
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_compile") 2>conftest.er1
6262 grep -v '^
*+' conftest.er1 >conftest.err
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } && {
6267 test -z "$ac_f77_werror_flag" ||
6268 test ! -s conftest.err
6269 } && test -s conftest.$ac_objext; then
6272 echo "$as_me: failed program was:" >&5
6273 sed 's
/^
/|
/' conftest.$ac_ext >&5
6278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6282 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6283 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6285 ac_test_FFLAGS=${FFLAGS+set}
6286 ac_save_FFLAGS=$FFLAGS
6288 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6289 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6290 if test "${ac_cv_prog_f77_g+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 cat >conftest.$ac_ext <<_ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (ac_try="$ac_compile"
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6308 grep -v '^
*+' conftest.er1 >conftest.err
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_f77_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_objext; then
6316 ac_cv_prog_f77_g=yes
6318 echo "$as_me: failed program was:" >&5
6319 sed 's
/^
/|
/' conftest.$ac_ext >&5
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6328 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6329 if test "$ac_test_FFLAGS" = set; then
6330 FFLAGS=$ac_save_FFLAGS
6331 elif test $ac_cv_prog_f77_g = yes; then
6332 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6338 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6345 G77=`test $ac_compiler_gnu = yes && echo yes`
6347 ac_cpp='$CPP $CPPFLAGS'
6348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6349 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6356 # find the maximum length of command line arguments
6357 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6358 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6359 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 # On DJGPP, this test can blow up pretty badly due to problems in libc
6368 # (any single argument exceeding 2000 bytes causes a buffer overrun
6369 # during glob expansion). Even if it were fixed, the result of this
6370 # check would be larger than it should be.
6371 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6375 # Under GNU Hurd, this test is not required because there is
6376 # no limit to the length of command line arguments.
6377 # Libtool will interpret -1 as no limit whatsoever
6378 lt_cv_sys_max_cmd_len
=-1;
6382 # On Win9x/ME, this test blows up -- it succeeds, but takes
6383 # about 5 minutes as the teststring grows exponentially.
6384 # Worse, since 9x/ME are not pre-emptively multitasking,
6385 # you end up with a "frozen" computer, even though with patience
6386 # the test eventually succeeds (with a max line length of 256k).
6387 # Instead, let's just punt: use the minimum linelength reported by
6388 # all of the supported platforms: 8192 (on NT/2K/XP).
6389 lt_cv_sys_max_cmd_len
=8192;
6393 # On AmigaOS with pdksh, this test takes hours, literally.
6394 # So we just punt and use a minimum line length of 8192.
6395 lt_cv_sys_max_cmd_len
=8192;
6398 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6399 # This has been around since 386BSD, at least. Likely further.
6400 if test -x /sbin
/sysctl
; then
6401 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6402 elif test -x /usr
/sbin
/sysctl
; then
6403 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6405 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6407 # And add a safety zone
6408 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6409 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6413 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6414 lt_cv_sys_max_cmd_len
=196608
6418 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6419 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6420 # nice to cause kernel panics so lets avoid the loop below.
6421 # First set a reasonable default.
6422 lt_cv_sys_max_cmd_len
=16384
6424 if test -x /sbin
/sysconfig
; then
6425 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6426 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6431 lt_cv_sys_max_cmd_len
=102400
6433 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6434 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6435 if test -n "$kargmax"; then
6436 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6438 lt_cv_sys_max_cmd_len
=32768
6442 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6443 if test -n "$lt_cv_sys_max_cmd_len"; then
6444 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6445 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6447 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6448 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6449 = "XX$teststring") >/dev
/null
2>&1 &&
6450 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6451 lt_cv_sys_max_cmd_len
=$new_result &&
6452 test $i != 17 # 1/2 MB should be enough
6455 teststring
=$teststring$teststring
6458 # Add a significant safety factor because C++ compilers can tack on massive
6459 # amounts of additional arguments before passing them to the linker.
6460 # It appears as though 1/2 is a usable value.
6461 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6468 if test -n $lt_cv_sys_max_cmd_len ; then
6469 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6470 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6472 { echo "$as_me:$LINENO: result: none" >&5
6473 echo "${ECHO_T}none" >&6; }
6480 # Check for command to grab the raw symbol name followed by C symbol from nm.
6481 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6482 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6483 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 # These are sane defaults that work on at least a few old systems.
6488 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6490 # Character class describing NM global symbol codes.
6491 symcode
='[BCDEGRST]'
6493 # Regexp to match symbols that can be accessed directly from C.
6494 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6496 # Transform an extracted symbol line into a proper C declaration
6497 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6499 # Transform an extracted symbol line into symbol name and symbol address
6500 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'"
6502 # Define system-specific variables.
6507 cygwin
* | mingw
* | pw32
*)
6508 symcode
='[ABCDGISTW]'
6510 hpux
*) # Its linker distinguishes data from code symbols
6511 if test "$host_cpu" = ia64
; then
6512 symcode
='[ABCDEGRST]'
6514 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6515 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'"
6517 linux
* | k
*bsd
*-gnu)
6518 if test "$host_cpu" = ia64
; then
6519 symcode
='[ABCDGIRSTW]'
6520 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6521 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'"
6525 symcode
='[BCDEGRST]'
6528 symcode
='[BCDEGQRST]'
6539 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6547 # Handle CRLF in mingw tool chain
6551 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6555 # If we're using GNU nm, then use its standard symbol codes.
6556 case `$NM -V 2>&1` in
6557 *GNU
* |
*'with BFD'*)
6558 symcode
='[ABCDGIRSTW]' ;;
6561 # Try without a prefix undercore, then with it.
6562 for ac_symprfx
in "" "_"; do
6564 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6565 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6567 # Write the raw and C identifiers.
6568 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6570 # Check to see that the pipe works correctly.
6574 cat > conftest.
$ac_ext <<EOF
6579 void nm_test_func(){}
6583 int main(){nm_test_var='a';nm_test_func();return(0);}
6586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6587 (eval $ac_compile) 2>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; then
6591 # Now try to grab the symbols.
6593 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6594 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && test -s "$nlist"; then
6598 # Try sorting and uniquifying the output.
6599 if sort "$nlist" |
uniq > "$nlist"T
; then
6600 mv -f "$nlist"T
"$nlist"
6605 # Make sure that we snagged all the symbols we need.
6606 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6607 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6608 cat <<EOF > conftest.$ac_ext
6614 # Now generate the symbol file.
6615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6617 cat <<EOF >> conftest.$ac_ext
6618 #if defined (__STDC__) && __STDC__
6619 # define lt_ptr_t void *
6621 # define lt_ptr_t char *
6625 /* The mapping between symbol names and symbols. */
6630 lt_preloaded_symbols[] =
6633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6634 cat <<\EOF
>> conftest.
$ac_ext
6642 # Now try linking the two files.
6643 mv conftest.
$ac_objext conftstm.
$ac_objext
6644 lt_save_LIBS
="$LIBS"
6645 lt_save_CFLAGS
="$CFLAGS"
6646 LIBS
="conftstm.$ac_objext"
6647 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649 (eval $ac_link) 2>&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6655 LIBS
="$lt_save_LIBS"
6656 CFLAGS
="$lt_save_CFLAGS"
6658 echo "cannot find nm_test_func in $nlist" >&5
6661 echo "cannot find nm_test_var in $nlist" >&5
6664 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6667 echo "$progname: failed program was:" >&5
6668 cat conftest.
$ac_ext >&5
6670 rm -f conftest
* conftst
*
6672 # Do not use the global_symbol_pipe unless it works.
6673 if test "$pipe_works" = yes; then
6676 lt_cv_sys_global_symbol_pipe
=
6682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6683 lt_cv_sys_global_symbol_to_cdecl
=
6685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6686 { echo "$as_me:$LINENO: result: failed" >&5
6687 echo "${ECHO_T}failed" >&6; }
6689 { echo "$as_me:$LINENO: result: ok" >&5
6690 echo "${ECHO_T}ok" >&6; }
6693 { echo "$as_me:$LINENO: checking for objdir" >&5
6694 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6695 if test "${lt_cv_objdir+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 rm -f .libs
2>/dev
/null
6699 mkdir .libs
2>/dev
/null
6700 if test -d .libs
; then
6703 # MS-DOS does not allow filenames that begin with a dot.
6706 rmdir .libs
2>/dev
/null
6708 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6709 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6710 objdir
=$lt_cv_objdir
6718 # AIX sometimes has problems with the GCC collect2 program. For some
6719 # reason, if we set the COLLECT_NAMES environment variable, the problems
6720 # vanish in a puff of smoke.
6721 if test "X${COLLECT_NAMES+set}" != Xset
; then
6723 export COLLECT_NAMES
6728 # Sed substitution that helps us do robust quoting. It backslashifies
6729 # metacharacters that are still active within double-quoted strings.
6730 Xsed
='sed -e 1s/^X//'
6731 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6733 # Same as above, but do not quote variable references.
6734 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6736 # Sed substitution to delay expansion of an escaped shell variable in a
6737 # double_quote_subst'ed string.
6738 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6740 # Sed substitution to avoid accidental globbing in evaled expressions
6741 no_glob_subst
='s/\*/\\\*/g'
6747 default_ofile
=libtool
6748 can_build_shared
=yes
6750 # All known linkers require a `.a' archive for static linking (except MSVC,
6751 # which needs '.lib').
6753 ltmain
="$ac_aux_dir/ltmain.sh"
6754 ofile
="$default_ofile"
6755 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6759 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_AR+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test -n "$AR"; then
6766 ac_cv_prog_AR
="$AR" # Let the user override the test.
6768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir
=.
6773 for ac_exec_ext
in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 if test -n "$AR"; then
6787 { echo "$as_me:$LINENO: result: $AR" >&5
6788 echo "${ECHO_T}$AR" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6796 if test -z "$ac_cv_prog_AR"; then
6798 # Extract the first word of "ar", so it can be a program name with args.
6799 set dummy
ar; ac_word
=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 if test -n "$ac_ct_AR"; then
6806 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir
=.
6813 for ac_exec_ext
in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_AR
="ar"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6826 if test -n "$ac_ct_AR"; then
6827 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6828 echo "${ECHO_T}$ac_ct_AR" >&6; }
6830 { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6834 if test "x$ac_ct_AR" = x
; then
6837 case $cross_compiling:$ac_tool_warned in
6839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6840 whose name does not start with the host triplet. If you think this
6841 configuration is useful to you, please write to autoconf@gnu.org." >&5
6842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6843 whose name does not start with the host triplet. If you think this
6844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6845 ac_tool_warned
=yes ;;
6853 if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_RANLIB+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir
=.
6869 for ac_exec_ext
in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 RANLIB
=$ac_cv_prog_RANLIB
6882 if test -n "$RANLIB"; then
6883 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884 echo "${ECHO_T}$RANLIB" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6892 if test -z "$ac_cv_prog_RANLIB"; then
6893 ac_ct_RANLIB
=$RANLIB
6894 # Extract the first word of "ranlib", so it can be a program name with args.
6895 set dummy ranlib
; ac_word
=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 if test -n "$ac_ct_RANLIB"; then
6902 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir
=.
6909 for ac_exec_ext
in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6922 if test -n "$ac_ct_RANLIB"; then
6923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6930 if test "x$ac_ct_RANLIB" = x
; then
6933 case $cross_compiling:$ac_tool_warned in
6935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet. If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet. If you think this
6940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941 ac_tool_warned
=yes ;;
6943 RANLIB
=$ac_ct_RANLIB
6946 RANLIB
="$ac_cv_prog_RANLIB"
6949 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6951 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_prog_STRIP+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 if test -n "$STRIP"; then
6958 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir
=.
6965 for ac_exec_ext
in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 STRIP
=$ac_cv_prog_STRIP
6978 if test -n "$STRIP"; then
6979 { echo "$as_me:$LINENO: result: $STRIP" >&5
6980 echo "${ECHO_T}$STRIP" >&6; }
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6988 if test -z "$ac_cv_prog_STRIP"; then
6990 # Extract the first word of "strip", so it can be a program name with args.
6991 set dummy strip
; ac_word
=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 if test -n "$ac_ct_STRIP"; then
6998 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir
=.
7005 for ac_exec_ext
in '' $ac_executable_extensions; do
7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007 ac_cv_prog_ac_ct_STRIP
="strip"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7018 if test -n "$ac_ct_STRIP"; then
7019 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7020 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7026 if test "x$ac_ct_STRIP" = x
; then
7029 case $cross_compiling:$ac_tool_warned in
7031 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7032 whose name does not start with the host triplet. If you think this
7033 configuration is useful to you, please write to autoconf@gnu.org." >&5
7034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7035 whose name does not start with the host triplet. If you think this
7036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7037 ac_tool_warned
=yes ;;
7042 STRIP
="$ac_cv_prog_STRIP"
7047 old_CFLAGS
="$CFLAGS"
7049 # Set sane defaults for various variables
7050 test -z "$AR" && AR
=ar
7051 test -z "$AR_FLAGS" && AR_FLAGS
=cru
7052 test -z "$AS" && AS
=as
7053 test -z "$CC" && CC
=cc
7054 test -z "$LTCC" && LTCC
=$CC
7055 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7056 test -z "$DLLTOOL" && DLLTOOL
=dlltool
7057 test -z "$LD" && LD
=ld
7058 test -z "$LN_S" && LN_S
="ln -s"
7059 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7060 test -z "$NM" && NM
=nm
7061 test -z "$SED" && SED
=sed
7062 test -z "$OBJDUMP" && OBJDUMP
=objdump
7063 test -z "$RANLIB" && RANLIB
=:
7064 test -z "$STRIP" && STRIP
=:
7065 test -z "$ac_objext" && ac_objext
=o
7067 # Determine commands to create old-style static archives.
7068 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7069 old_postinstall_cmds
='chmod 644 $oldlib'
7070 old_postuninstall_cmds
=
7072 if test -n "$RANLIB"; then
7075 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7078 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
7081 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
7084 for cc_temp
in $compiler""; do
7086 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7087 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7092 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7095 # Only perform the check for file, if the check method requires it
7096 case $deplibs_check_method in
7098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7099 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7100 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7109 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7110 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7111 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7112 for ac_dir
in $ac_dummy; do
7114 test -z "$ac_dir" && ac_dir
=.
7115 if test -f $ac_dir/${ac_tool_prefix}file; then
7116 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7117 if test -n "$file_magic_test_file"; then
7118 case $deplibs_check_method in
7120 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7121 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7122 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7123 $EGREP "$file_magic_regex" > /dev
/null
; then
7128 *** Warning: the command libtool uses to detect shared libraries,
7129 *** $file_magic_cmd, produces output that libtool cannot recognize.
7130 *** The result is that libtool may fail to recognize shared libraries
7131 *** as such. This will affect the creation of libtool libraries that
7132 *** depend on shared libraries, but programs linked with such libtool
7133 *** libraries will work regardless of this problem. Nevertheless, you
7134 *** may want to report the problem to your system manager and/or to
7135 *** bug-libtool@gnu.org
7145 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7150 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7151 if test -n "$MAGIC_CMD"; then
7152 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7153 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7159 if test -z "$lt_cv_path_MAGIC_CMD"; then
7160 if test -n "$ac_tool_prefix"; then
7161 { echo "$as_me:$LINENO: checking for file" >&5
7162 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7163 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7171 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7172 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7173 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7174 for ac_dir
in $ac_dummy; do
7176 test -z "$ac_dir" && ac_dir
=.
7177 if test -f $ac_dir/file; then
7178 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7179 if test -n "$file_magic_test_file"; then
7180 case $deplibs_check_method in
7182 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7183 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7184 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7185 $EGREP "$file_magic_regex" > /dev
/null
; then
7190 *** Warning: the command libtool uses to detect shared libraries,
7191 *** $file_magic_cmd, produces output that libtool cannot recognize.
7192 *** The result is that libtool may fail to recognize shared libraries
7193 *** as such. This will affect the creation of libtool libraries that
7194 *** depend on shared libraries, but programs linked with such libtool
7195 *** libraries will work regardless of this problem. Nevertheless, you
7196 *** may want to report the problem to your system manager and/or to
7197 *** bug-libtool@gnu.org
7207 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7212 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7213 if test -n "$MAGIC_CMD"; then
7214 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7215 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7217 { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7233 # Check whether --enable-libtool-lock was given.
7234 if test "${enable_libtool_lock+set}" = set; then
7235 enableval
=$enable_libtool_lock;
7238 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7241 # Check whether --with-pic was given.
7242 if test "${with_pic+set}" = set; then
7243 withval
=$with_pic; pic_mode
="$withval"
7248 test -z "$pic_mode" && pic_mode
=default
7250 # Use C for the default configuration in the libtool script
7254 ac_cpp
='$CPP $CPPFLAGS'
7255 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7260 # Source file extension for C test sources.
7263 # Object file extension for compiled C test sources.
7267 # Code to be used in simple compile tests
7268 lt_simple_compile_test_code
="int some_variable = 0;"
7270 # Code to be used in simple link tests
7271 lt_simple_link_test_code
='int main(){return(0);}'
7274 # If no C compiler was specified, use CC.
7277 # If no C compiler flags were specified, use CFLAGS.
7278 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7280 # Allow CC to be a program name with arguments.
7284 # save warnings/boilerplate of simple test code
7285 ac_outfile
=conftest.
$ac_objext
7286 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7287 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7288 _lt_compiler_boilerplate
=`cat conftest.err`
7291 ac_outfile
=conftest.
$ac_objext
7292 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7293 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7294 _lt_linker_boilerplate
=`cat conftest.err`
7299 lt_prog_compiler_no_builtin_flag
=
7301 if test "$GCC" = yes; then
7302 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7305 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7306 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7307 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 lt_cv_prog_compiler_rtti_exceptions
=no
7311 ac_outfile
=conftest.
$ac_objext
7312 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7313 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7314 # Insert the option either (1) after the last *FLAGS variable, or
7315 # (2) before a word containing "conftest.", or (3) at the end.
7316 # Note that $ac_compile itself does not contain backslashes and begins
7317 # with a dollar sign (not a hyphen), so the echo should work correctly.
7318 # The option is referenced via a variable to avoid confusing sed.
7319 lt_compile
=`echo "$ac_compile" | $SED \
7320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7322 -e 's:$: $lt_compiler_flag:'`
7323 (eval echo "\"\$as_me:7323: $lt_compile\"" >&5)
7324 (eval "$lt_compile" 2>conftest.err
)
7326 cat conftest.err
>&5
7327 echo "$as_me:7327: \$? = $ac_status" >&5
7328 if (exit $ac_status) && test -s "$ac_outfile"; then
7329 # The compiler can only warn and ignore the option if not recognized
7330 # So say no if there are warnings other than the usual output.
7331 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7332 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7333 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7334 lt_cv_prog_compiler_rtti_exceptions
=yes
7340 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7341 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7343 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7344 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7351 lt_prog_compiler_wl
=
7352 lt_prog_compiler_pic
=
7353 lt_prog_compiler_static
=
7355 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7356 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7358 if test "$GCC" = yes; then
7359 lt_prog_compiler_wl
='-Wl,'
7360 lt_prog_compiler_static
='-static'
7364 # All AIX code is PIC.
7365 if test "$host_cpu" = ia64
; then
7366 # AIX 5 now supports IA64 processor
7367 lt_prog_compiler_static
='-Bstatic'
7372 # FIXME: we need at least 68020 code to build shared libraries, but
7373 # adding the `-m68020' flag to GCC prevents building anything better,
7375 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7378 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7379 # PIC is the default for these OSes.
7382 mingw
* | cygwin
* | pw32
* | os2
*)
7383 # This hack is so that the source file can tell whether it is being
7384 # built for inclusion in a dll (and should export symbols for example).
7385 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7386 # (--disable-auto-import) libraries
7387 lt_prog_compiler_pic
='-DDLL_EXPORT'
7390 darwin
* | rhapsody
*)
7391 # PIC is the default on this platform
7392 # Common symbols not allowed in MH_DYLIB files
7393 lt_prog_compiler_pic
='-fno-common'
7397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7398 # Instead, we relocate shared libraries at runtime.
7402 # Just because we use GCC doesn't mean we suddenly get shared libraries
7403 # on systems that don't support them.
7404 lt_prog_compiler_can_build_shared
=no
7409 if test -d /usr
/nec
; then
7410 lt_prog_compiler_pic
=-Kconform_pic
7415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7422 lt_prog_compiler_pic
='-fPIC'
7428 lt_prog_compiler_pic
='-fPIC'
7432 # PORTME Check for flag to pass linker flags through the system compiler.
7435 lt_prog_compiler_wl
='-Wl,'
7436 if test "$host_cpu" = ia64
; then
7437 # AIX 5 now supports IA64 processor
7438 lt_prog_compiler_static
='-Bstatic'
7440 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7444 # PIC is the default on this platform
7445 # Common symbols not allowed in MH_DYLIB files
7446 case $cc_basename in
7448 lt_prog_compiler_pic
='-qnocommon'
7449 lt_prog_compiler_wl
='-Wl,'
7454 mingw
* | cygwin
* | pw32
* | os2
*)
7455 # This hack is so that the source file can tell whether it is being
7456 # built for inclusion in a dll (and should export symbols for example).
7457 lt_prog_compiler_pic
='-DDLL_EXPORT'
7460 hpux9
* | hpux10
* | hpux11
*)
7461 lt_prog_compiler_wl
='-Wl,'
7462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7469 lt_prog_compiler_pic
='+Z'
7472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7473 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7476 irix5
* | irix6
* | nonstopux
*)
7477 lt_prog_compiler_wl
='-Wl,'
7478 # PIC (with -KPIC) is the default.
7479 lt_prog_compiler_static
='-non_shared'
7483 lt_prog_compiler_pic
='-KPIC'
7484 lt_prog_compiler_static
='-Bstatic'
7487 linux
* | k
*bsd
*-gnu)
7488 case $cc_basename in
7490 lt_prog_compiler_wl
='-Wl,'
7491 lt_prog_compiler_pic
='-KPIC'
7492 lt_prog_compiler_static
='-static'
7494 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7495 # Portland Group compilers (*not* the Pentium gcc compiler,
7496 # which looks to be a dead project)
7497 lt_prog_compiler_wl
='-Wl,'
7498 lt_prog_compiler_pic
='-fpic'
7499 lt_prog_compiler_static
='-Bstatic'
7502 lt_prog_compiler_wl
='-Wl,'
7503 # All Alpha code is PIC.
7504 lt_prog_compiler_static
='-non_shared'
7507 case `$CC -V 2>&1 | sed 5q` in
7510 lt_prog_compiler_pic
='-KPIC'
7511 lt_prog_compiler_static
='-Bstatic'
7512 lt_prog_compiler_wl
='-Wl,'
7515 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7516 lt_prog_compiler_pic
='-KPIC'
7517 lt_prog_compiler_static
='-Bstatic'
7518 lt_prog_compiler_wl
=''
7525 osf3
* | osf4
* | osf5
*)
7526 lt_prog_compiler_wl
='-Wl,'
7527 # All OSF/1 code is PIC.
7528 lt_prog_compiler_static
='-non_shared'
7532 lt_prog_compiler_static
='-non_shared'
7536 lt_prog_compiler_pic
='-KPIC'
7537 lt_prog_compiler_static
='-Bstatic'
7538 case $cc_basename in
7540 lt_prog_compiler_wl
='-Qoption ld ';;
7542 lt_prog_compiler_wl
='-Wl,';;
7547 lt_prog_compiler_wl
='-Qoption ld '
7548 lt_prog_compiler_pic
='-PIC'
7549 lt_prog_compiler_static
='-Bstatic'
7552 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7553 lt_prog_compiler_wl
='-Wl,'
7554 lt_prog_compiler_pic
='-KPIC'
7555 lt_prog_compiler_static
='-Bstatic'
7559 if test -d /usr
/nec
;then
7560 lt_prog_compiler_pic
='-Kconform_pic'
7561 lt_prog_compiler_static
='-Bstatic'
7565 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7566 lt_prog_compiler_wl
='-Wl,'
7567 lt_prog_compiler_pic
='-KPIC'
7568 lt_prog_compiler_static
='-Bstatic'
7572 lt_prog_compiler_wl
='-Wl,'
7573 lt_prog_compiler_can_build_shared
=no
7577 lt_prog_compiler_pic
='-pic'
7578 lt_prog_compiler_static
='-Bstatic'
7582 lt_prog_compiler_can_build_shared
=no
7587 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7588 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7591 # Check to make sure the PIC flag actually works.
7593 if test -n "$lt_prog_compiler_pic"; then
7595 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7596 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7597 if test "${lt_prog_compiler_pic_works+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 lt_prog_compiler_pic_works
=no
7601 ac_outfile
=conftest.
$ac_objext
7602 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7603 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7604 # Insert the option either (1) after the last *FLAGS variable, or
7605 # (2) before a word containing "conftest.", or (3) at the end.
7606 # Note that $ac_compile itself does not contain backslashes and begins
7607 # with a dollar sign (not a hyphen), so the echo should work correctly.
7608 # The option is referenced via a variable to avoid confusing sed.
7609 lt_compile
=`echo "$ac_compile" | $SED \
7610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7612 -e 's:$: $lt_compiler_flag:'`
7613 (eval echo "\"\$as_me:7613: $lt_compile\"" >&5)
7614 (eval "$lt_compile" 2>conftest.err
)
7616 cat conftest.err
>&5
7617 echo "$as_me:7617: \$? = $ac_status" >&5
7618 if (exit $ac_status) && test -s "$ac_outfile"; then
7619 # The compiler can only warn and ignore the option if not recognized
7620 # So say no if there are warnings other than the usual output.
7621 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7622 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7623 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7624 lt_prog_compiler_pic_works
=yes
7630 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7631 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7633 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7634 case $lt_prog_compiler_pic in
7636 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7639 lt_prog_compiler_pic
=
7640 lt_prog_compiler_can_build_shared
=no
7645 # For platforms which do not support PIC, -DPIC is meaningless:
7647 lt_prog_compiler_pic
=
7650 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7655 # Check to make sure the static flag actually works.
7657 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7658 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7659 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7660 if test "${lt_prog_compiler_static_works+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 lt_prog_compiler_static_works
=no
7664 save_LDFLAGS
="$LDFLAGS"
7665 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7666 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7667 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7668 # The linker can only warn and ignore the option if not recognized
7669 # So say no if there are warnings
7670 if test -s conftest.err
; then
7671 # Append any errors to the config.log.
7672 cat conftest.err
1>&5
7673 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7674 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7675 if diff conftest.exp conftest.er2
>/dev
/null
; then
7676 lt_prog_compiler_static_works
=yes
7679 lt_prog_compiler_static_works
=yes
7683 LDFLAGS
="$save_LDFLAGS"
7686 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7687 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7689 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7692 lt_prog_compiler_static
=
7696 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7697 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7698 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 lt_cv_prog_compiler_c_o
=no
7702 $rm -r conftest
2>/dev
/null
7706 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7708 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7709 # Insert the option either (1) after the last *FLAGS variable, or
7710 # (2) before a word containing "conftest.", or (3) at the end.
7711 # Note that $ac_compile itself does not contain backslashes and begins
7712 # with a dollar sign (not a hyphen), so the echo should work correctly.
7713 lt_compile
=`echo "$ac_compile" | $SED \
7714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7716 -e 's:$: $lt_compiler_flag:'`
7717 (eval echo "\"\$as_me:7717: $lt_compile\"" >&5)
7718 (eval "$lt_compile" 2>out
/conftest.err
)
7720 cat out
/conftest.err
>&5
7721 echo "$as_me:7721: \$? = $ac_status" >&5
7722 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7724 # The compiler can only warn and ignore the option if not recognized
7725 # So say no if there are warnings
7726 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7727 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7728 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7729 lt_cv_prog_compiler_c_o
=yes
7734 # SGI C++ compiler will create directory out/ii_files/ for
7735 # template instantiation
7736 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7737 $rm out
/* && rmdir out
7743 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7744 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7747 hard_links
="nottested"
7748 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7749 # do not overwrite the value of need_locks provided by the user
7750 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7751 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7754 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7756 ln conftest.a conftest.b
2>&5 || hard_links
=no
7757 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7758 { echo "$as_me:$LINENO: result: $hard_links" >&5
7759 echo "${ECHO_T}$hard_links" >&6; }
7760 if test "$hard_links" = no
; then
7761 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7762 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7769 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7770 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7773 allow_undefined_flag
=
7774 enable_shared_with_static_runtimes
=no
7776 archive_expsym_cmds
=
7777 old_archive_From_new_cmds
=
7778 old_archive_from_expsyms_cmds
=
7779 export_dynamic_flag_spec
=
7780 whole_archive_flag_spec
=
7781 thread_safe_flag_spec
=
7782 hardcode_libdir_flag_spec
=
7783 hardcode_libdir_flag_spec_ld
=
7784 hardcode_libdir_separator
=
7787 hardcode_shlibpath_var
=unsupported
7788 link_all_deplibs
=unknown
7789 hardcode_automatic
=no
7792 always_export_symbols
=no
7793 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7794 # include_expsyms should be a list of space-separated symbols to be *always*
7795 # included in the symbol list
7797 # exclude_expsyms can be an extended regexp of symbols to exclude
7798 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7799 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7800 # as well as any symbol that contains `d'.
7801 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7802 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7803 # platforms (ab)use it in PIC code, but their linkers get confused if
7804 # the symbol is explicitly referenced. Since portable code cannot
7805 # rely on this symbol name, it's probably fine to never include it in
7806 # preloaded symbol tables.
7807 extract_expsyms_cmds
=
7808 # Just being paranoid about ensuring that cc_basename is set.
7809 for cc_temp
in $compiler""; do
7811 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7812 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7817 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7820 cygwin
* | mingw
* | pw32
*)
7821 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7822 # When not using gcc, we currently assume that we are using
7823 # Microsoft Visual C++.
7824 if test "$GCC" != yes; then
7829 # we just hope/assume this is gcc and not c89 (= MSVC++)
7838 if test "$with_gnu_ld" = yes; then
7839 # If archive_cmds runs LD, not CC, wlarc should be empty
7842 # Set some defaults for GNU ld with shared library support. These
7843 # are reset later if shared libraries are not supported. Putting them
7844 # here allows them to be overridden if necessary.
7845 runpath_var
=LD_RUN_PATH
7846 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7847 export_dynamic_flag_spec
='${wl}--export-dynamic'
7848 # ancient GNU ld didn't support --whole-archive et. al.
7849 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7850 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7852 whole_archive_flag_spec
=
7854 supports_anon_versioning
=no
7855 case `$LD -v 2>/dev/null` in
7856 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7857 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7858 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7859 *\
2.11.
*) ;; # other 2.11 versions
7860 *) supports_anon_versioning
=yes ;;
7863 # See if GNU ld supports shared libraries.
7865 aix3
* | aix4
* | aix5
*)
7866 # On AIX/PPC, the GNU linker is very broken
7867 if test "$host_cpu" != ia64
; then
7871 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7872 *** to be unable to reliably create shared libraries on AIX.
7873 *** Therefore, libtool is disabling shared libraries support. If you
7874 *** really care for shared libraries, you may want to modify your PATH
7875 *** so that a non-GNU linker is found, and then restart.
7882 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)'
7883 hardcode_libdir_flag_spec
='-L$libdir'
7884 hardcode_minus_L
=yes
7886 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7887 # that the semantics of dynamic libraries on AmigaOS, at least up
7888 # to version 4, is to share data among multiple programs linked
7889 # with the same dynamic library. Since this doesn't match the
7890 # behavior of shared libraries on other platforms, we can't use
7896 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7897 allow_undefined_flag
=unsupported
7898 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7899 # support --undefined. This deserves some investigation. FIXME
7900 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7906 cygwin
* | mingw
* | pw32
*)
7907 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7908 # as there is no search path for DLLs.
7909 hardcode_libdir_flag_spec
='-L$libdir'
7910 allow_undefined_flag
=unsupported
7911 always_export_symbols
=no
7912 enable_shared_with_static_runtimes
=yes
7913 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7915 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7916 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7917 # If the export-symbols file already is a .def file (1st line
7918 # is EXPORTS), use it as is; otherwise, prepend...
7919 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7920 cp $export_symbols $output_objdir/$soname.def;
7922 echo EXPORTS > $output_objdir/$soname.def;
7923 cat $export_symbols >> $output_objdir/$soname.def;
7925 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7933 hardcode_shlibpath_var
=no
7934 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7935 export_dynamic_flag_spec
='${wl}-E'
7936 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7937 # Instead, shared libraries are loaded at an image base (0x10000000 by
7938 # default) and relocated if they conflict, which is a slow very memory
7939 # consuming and fragmenting process. To avoid this, we pick a random,
7940 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7941 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7942 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7943 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'
7946 gnu
* | linux
* | k
*bsd
*-gnu)
7947 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7949 case $cc_basename,$host_cpu in
7950 pgcc
*) # Portland Group C compiler
7951 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'
7952 tmp_addflag
=' $pic_flag'
7954 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7955 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'
7956 tmp_addflag
=' $pic_flag -Mnomain' ;;
7957 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7958 tmp_addflag
=' -i_dynamic' ;;
7959 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7960 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7961 ifc
* | ifort
*) # Intel Fortran compiler
7962 tmp_addflag
=' -nofor_main' ;;
7964 case `$CC -V 2>&1 | sed 5q` in
7965 *Sun\ C
*) # Sun C 5.9
7966 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'
7967 tmp_sharedflag
='-G' ;;
7968 *Sun\ F
*) # Sun Fortran 8.3
7969 tmp_sharedflag
='-G' ;;
7971 tmp_sharedflag
='-shared' ;;
7973 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7975 if test $supports_anon_versioning = yes; then
7976 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7978 $echo "local: *; };" >> $output_objdir/$libname.ver~
7979 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7987 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7988 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7991 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7992 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7997 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
8001 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8002 *** create shared libraries on Solaris systems. Therefore, libtool
8003 *** is disabling shared libraries support. We urge you to upgrade GNU
8004 *** binutils to release 2.9.1 or newer. Another option is to modify
8005 *** your PATH or compiler configuration so that the native linker is
8006 *** used, and then restart.
8009 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8010 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8017 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8018 case `$LD -v 2>&1` in
8019 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8023 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8024 *** reliably create shared libraries on SCO systems. Therefore, libtool
8025 *** is disabling shared libraries support. We urge you to upgrade GNU
8026 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8027 *** your PATH or compiler configuration so that the native linker is
8028 *** used, and then restart.
8033 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8034 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8035 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8036 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8045 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8048 hardcode_shlibpath_var
=no
8052 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8053 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8054 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8061 if test "$ld_shlibs" = no
; then
8063 hardcode_libdir_flag_spec
=
8064 export_dynamic_flag_spec
=
8065 whole_archive_flag_spec
=
8068 # PORTME fill in a description of your system's linker (not GNU ld)
8071 allow_undefined_flag
=unsupported
8072 always_export_symbols
=yes
8073 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'
8074 # Note: this linker hardcodes the directories in LIBPATH if there
8075 # are no directories specified by -L.
8076 hardcode_minus_L
=yes
8077 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8078 # Neither direct hardcoding nor static linking is supported with a
8080 hardcode_direct
=unsupported
8085 if test "$host_cpu" = ia64
; then
8086 # On IA64, the linker does run time linking by default, so we don't
8087 # have to do anything special.
8088 aix_use_runtimelinking
=no
8089 exp_sym_flag
='-Bexport'
8092 # If we're using GNU nm, then we don't want the "-C" option.
8093 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8094 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
8095 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'
8097 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'
8099 aix_use_runtimelinking
=no
8101 # Test if we are trying to use run time linking or normal
8102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8103 # need to do runtime linking.
8104 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
8105 for ld_flag
in $LDFLAGS; do
8106 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8107 aix_use_runtimelinking
=yes
8114 exp_sym_flag
='-bexport'
8115 no_entry_flag
='-bnoentry'
8118 # When large executables or shared objects are built, AIX ld can
8119 # have problems creating the table of contents. If linking a library
8120 # or program results in "error TOC overflow" add -mminimal-toc to
8121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8126 hardcode_libdir_separator
=':'
8127 link_all_deplibs
=yes
8129 if test "$GCC" = yes; then
8130 case $host_os in aix4.
[012]|aix4.
[012].
*)
8131 # We only want to do this on AIX 4.2 and lower, the check
8132 # below for broken collect2 doesn't work under 4.3+
8133 collect2name
=`${CC} -print-prog-name=collect2`
8134 if test -f "$collect2name" && \
8135 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
8137 # We have reworked collect2
8140 # We have old collect2
8141 hardcode_direct
=unsupported
8142 # It fails to find uninstalled libraries when the uninstalled
8143 # path is not listed in the libpath. Setting hardcode_minus_L
8144 # to unsupported forces relinking
8145 hardcode_minus_L
=yes
8146 hardcode_libdir_flag_spec
='-L$libdir'
8147 hardcode_libdir_separator
=
8151 shared_flag
='-shared'
8152 if test "$aix_use_runtimelinking" = yes; then
8153 shared_flag
="$shared_flag "'${wl}-G'
8157 if test "$host_cpu" = ia64
; then
8158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8159 # chokes on -Wl,-G. The following line is correct:
8162 if test "$aix_use_runtimelinking" = yes; then
8163 shared_flag
='${wl}-G'
8165 shared_flag
='${wl}-bM:SRE'
8170 # It seems that -bexpall does not export symbols beginning with
8171 # underscore (_), so it is better to generate a list of symbols to export.
8172 always_export_symbols
=yes
8173 if test "$aix_use_runtimelinking" = yes; then
8174 # Warning - without using the other runtime loading flags (-brtl),
8175 # -berok will link without error, but may produce a broken library.
8176 allow_undefined_flag
='-berok'
8177 # Determine the default libpath from the value encoded in an empty executable.
8178 cat >conftest.
$ac_ext <<_ACEOF
8181 cat confdefs.h
>>conftest.
$ac_ext
8182 cat >>conftest.
$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8193 rm -f conftest.
$ac_objext conftest
$ac_exeext
8194 if { (ac_try
="$ac_link"
8196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest$ac_exeext &&
8210 $as_test_x conftest$ac_exeext; then
8212 lt_aix_libpath_sed='
8213 /Import File Strings/,/^$/ {
8219 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8220 # Check for a 64-bit object if we didn't find anything.
8221 if test -z "$aix_libpath"; then
8222 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8232 conftest$ac_exeext conftest.$ac_ext
8233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8236 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"
8238 if test "$host_cpu" = ia64; then
8239 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8240 allow_undefined_flag="-z nodefs"
8241 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"
8243 # Determine the default libpath from the value encoded in an empty executable.
8244 cat >conftest.$ac_ext <<_ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8259 rm -f conftest.$ac_objext conftest$ac_exeext
8260 if { (ac_try="$ac_link"
8262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8263 *) ac_try_echo
=$ac_try;;
8265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266 (eval "$ac_link") 2>conftest.er1
8268 grep -v '^ *+' conftest.er1
>conftest.err
8270 cat conftest.err
>&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && {
8273 test -z "$ac_c_werror_flag" ||
8274 test ! -s conftest.err
8275 } && test -s conftest
$ac_exeext &&
8276 $as_test_x conftest
$ac_exeext; then
8278 lt_aix_libpath_sed
='
8279 /Import File Strings/,/^$/ {
8285 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8286 # Check for a 64-bit object if we didn't find anything.
8287 if test -z "$aix_libpath"; then
8288 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.
$ac_ext >&5
8297 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8298 conftest
$ac_exeext conftest.
$ac_ext
8299 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8301 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8302 # Warning - without using the other run time loading flags,
8303 # -berok will link without error, but may produce a broken library.
8304 no_undefined_flag
=' ${wl}-bernotok'
8305 allow_undefined_flag
=' ${wl}-berok'
8306 # Exported symbols can be pulled into shared objects from archives
8307 whole_archive_flag_spec
='$convenience'
8308 archive_cmds_need_lc
=yes
8309 # This is similar to how AIX traditionally builds its shared libraries.
8310 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'
8316 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)'
8317 hardcode_libdir_flag_spec
='-L$libdir'
8318 hardcode_minus_L
=yes
8319 # see comment about different semantics on the GNU ld section
8324 export_dynamic_flag_spec
=-rdynamic
8327 cygwin
* | mingw
* | pw32
*)
8328 # When not using gcc, we currently assume that we are using
8329 # Microsoft Visual C++.
8330 # hardcode_libdir_flag_spec is actually meaningless, as there is
8331 # no search path for DLLs.
8332 hardcode_libdir_flag_spec
=' '
8333 allow_undefined_flag
=unsupported
8334 # Tell ltmain to make .lib files, not .a files.
8336 # Tell ltmain to make .dll files, not .so files.
8338 # FIXME: Setting linknames here is a bad hack.
8339 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8340 # The linker will automatically build a .lib file if we build a DLL.
8341 old_archive_From_new_cmds
='true'
8342 # FIXME: Should let the user specify the lib program.
8343 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8344 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8345 enable_shared_with_static_runtimes
=yes
8348 darwin
* | rhapsody
*)
8350 rhapsody
* | darwin1.
[012])
8351 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8354 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8355 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8357 case ${MACOSX_DEPLOYMENT_TARGET} in
8359 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8362 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8368 archive_cmds_need_lc
=no
8370 hardcode_automatic
=yes
8371 hardcode_shlibpath_var
=unsupported
8372 whole_archive_flag_spec
=''
8373 link_all_deplibs
=yes
8374 if test "$GCC" = yes ; then
8375 output_verbose_link_cmd
='echo'
8376 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8377 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8379 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}'
8380 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}'
8382 case $cc_basename in
8384 output_verbose_link_cmd
='echo'
8385 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8386 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8387 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8388 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}'
8389 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}'
8399 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_libdir_flag_spec
='-L$libdir'
8401 hardcode_shlibpath_var
=no
8408 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8409 # support. Future versions do this automatically, but an explicit c++rt0.o
8410 # does not break anything, and helps significantly (at the cost of a little
8413 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8414 hardcode_libdir_flag_spec
='-R$libdir'
8416 hardcode_shlibpath_var
=no
8419 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8421 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8423 hardcode_minus_L
=yes
8424 hardcode_shlibpath_var
=no
8427 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8428 freebsd
* | dragonfly
*)
8429 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8430 hardcode_libdir_flag_spec
='-R$libdir'
8432 hardcode_shlibpath_var
=no
8436 if test "$GCC" = yes; then
8437 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'
8439 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'
8441 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8442 hardcode_libdir_separator
=:
8445 # hardcode_minus_L: Not really in the search PATH,
8446 # but as the default location of the library.
8447 hardcode_minus_L
=yes
8448 export_dynamic_flag_spec
='${wl}-E'
8452 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8453 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8455 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8457 if test "$with_gnu_ld" = no
; then
8458 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8459 hardcode_libdir_separator
=:
8462 export_dynamic_flag_spec
='${wl}-E'
8464 # hardcode_minus_L: Not really in the search PATH,
8465 # but as the default location of the library.
8466 hardcode_minus_L
=yes
8471 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8474 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8477 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8480 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8486 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8489 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8492 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8496 if test "$with_gnu_ld" = no
; then
8497 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8498 hardcode_libdir_separator
=:
8502 hardcode_libdir_flag_spec_ld
='+b $libdir'
8504 hardcode_shlibpath_var
=no
8508 export_dynamic_flag_spec
='${wl}-E'
8510 # hardcode_minus_L: Not really in the search PATH,
8511 # but as the default location of the library.
8512 hardcode_minus_L
=yes
8518 irix5
* | irix6
* | nonstopux
*)
8519 if test "$GCC" = yes; then
8520 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'
8522 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'
8523 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8525 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8526 hardcode_libdir_separator
=:
8527 link_all_deplibs
=yes
8531 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8532 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8534 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8536 hardcode_libdir_flag_spec
='-R$libdir'
8538 hardcode_shlibpath_var
=no
8542 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8544 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8545 hardcode_libdir_separator
=:
8546 hardcode_shlibpath_var
=no
8550 if test -f /usr
/libexec
/ld.so
; then
8552 hardcode_shlibpath_var
=no
8553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8554 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8555 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8556 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8557 export_dynamic_flag_spec
='${wl}-E'
8560 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8561 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8562 hardcode_libdir_flag_spec
='-R$libdir'
8565 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8566 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8576 hardcode_libdir_flag_spec
='-L$libdir'
8577 hardcode_minus_L
=yes
8578 allow_undefined_flag
=unsupported
8579 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'
8580 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8584 if test "$GCC" = yes; then
8585 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8586 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'
8588 allow_undefined_flag
=' -expect_unresolved \*'
8589 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'
8591 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8592 hardcode_libdir_separator
=:
8595 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8596 if test "$GCC" = yes; then
8597 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8598 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'
8599 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8601 allow_undefined_flag
=' -expect_unresolved \*'
8602 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'
8603 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8604 $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'
8606 # Both c and cxx compiler support -rpath directly
8607 hardcode_libdir_flag_spec
='-rpath $libdir'
8609 hardcode_libdir_separator
=:
8613 no_undefined_flag
=' -z text'
8614 if test "$GCC" = yes; then
8616 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8617 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8618 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8621 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8622 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8623 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8625 hardcode_libdir_flag_spec
='-R$libdir'
8626 hardcode_shlibpath_var
=no
8628 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8630 # The compiler driver will combine and reorder linker options,
8631 # but understands `-z linker_flag'. GCC discards it without `$wl',
8632 # but is careful enough not to reorder.
8633 # Supported since Solaris 2.6 (maybe 2.5.1?)
8634 if test "$GCC" = yes; then
8635 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8637 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8641 link_all_deplibs
=yes
8645 if test "x$host_vendor" = xsequent
; then
8646 # Use $CC to link under sequent, because it throws in some extra .o
8647 # files that make .init and .fini sections work.
8648 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8650 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8652 hardcode_libdir_flag_spec
='-L$libdir'
8654 hardcode_minus_L
=yes
8655 hardcode_shlibpath_var
=no
8659 case $host_vendor in
8661 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662 hardcode_direct
=yes # is this really true???
8665 ## LD is ld it makes a PLAMLIB
8666 ## CC just makes a GrossModule.
8667 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8668 reload_cmds
='$CC -r -o $output$reload_objs'
8672 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8673 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8676 runpath_var
='LD_RUN_PATH'
8677 hardcode_shlibpath_var
=no
8681 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8682 hardcode_shlibpath_var
=no
8683 export_dynamic_flag_spec
='-Bexport'
8687 if test -d /usr
/nec
; then
8688 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689 hardcode_shlibpath_var
=no
8690 runpath_var
=LD_RUN_PATH
8691 hardcode_runpath_var
=yes
8696 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8697 no_undefined_flag
='${wl}-z,text'
8698 archive_cmds_need_lc
=no
8699 hardcode_shlibpath_var
=no
8700 runpath_var
='LD_RUN_PATH'
8702 if test "$GCC" = yes; then
8703 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8704 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8706 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8707 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8711 sysv5
* | sco3.2v5
* | sco5v6
*)
8712 # Note: We can NOT use -z defs as we might desire, because we do not
8713 # link with -lc, and that would cause any symbols used from libc to
8714 # always be unresolved, which means just about no library would
8715 # ever link correctly. If we're not using GNU ld we use -z text
8716 # though, which does catch some bad symbols but isn't as heavy-handed
8718 no_undefined_flag
='${wl}-z,text'
8719 allow_undefined_flag
='${wl}-z,nodefs'
8720 archive_cmds_need_lc
=no
8721 hardcode_shlibpath_var
=no
8722 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8723 hardcode_libdir_separator
=':'
8724 link_all_deplibs
=yes
8725 export_dynamic_flag_spec
='${wl}-Bexport'
8726 runpath_var
='LD_RUN_PATH'
8728 if test "$GCC" = yes; then
8729 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8732 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739 hardcode_libdir_flag_spec
='-L$libdir'
8740 hardcode_shlibpath_var
=no
8749 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8750 echo "${ECHO_T}$ld_shlibs" >&6; }
8751 test "$ld_shlibs" = no
&& can_build_shared
=no
8754 # Do we need to explicitly link libc?
8756 case "x$archive_cmds_need_lc" in
8758 # Assume -lc should be added
8759 archive_cmds_need_lc
=yes
8761 if test "$enable_shared" = yes && test "$GCC" = yes; then
8762 case $archive_cmds in
8764 # FIXME: we may have to deal with multi-command sequences.
8767 # Test whether the compiler implicitly links with -lc since on some
8768 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8769 # to ld, don't add -lc before -lgcc.
8770 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8771 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8773 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8776 (eval $ac_compile) 2>&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } 2>conftest.err
; then
8782 libobjs
=conftest.
$ac_objext
8784 wl
=$lt_prog_compiler_wl
8785 pic_flag
=$lt_prog_compiler_pic
8791 lt_save_allow_undefined_flag
=$allow_undefined_flag
8792 allow_undefined_flag
=
8793 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8794 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }
8799 archive_cmds_need_lc
=no
8801 archive_cmds_need_lc
=yes
8803 allow_undefined_flag
=$lt_save_allow_undefined_flag
8805 cat conftest.err
1>&5
8808 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8809 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8816 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8817 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8819 libname_spec
='lib$name'
8827 shlibpath_overrides_runpath
=unknown
8829 dynamic_linker
="$host_os ld.so"
8830 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8832 if test "$GCC" = yes; then
8834 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
8835 *) lt_awk_arg
="/^libraries:/" ;;
8837 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8838 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
8839 # if the path contains ";" then we assume it to be the separator
8840 # otherwise default to the standard path separator (i.e. ":") - it is
8841 # assumed that no part of a normal pathname contains ";" but that should
8842 # okay in the real world where ";" in dirpaths is itself problematic.
8843 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8845 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8847 # Ok, now we have the path, separated by spaces, we can step through it
8848 # and add multilib dir if necessary.
8849 lt_tmp_lt_search_path_spec
=
8850 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8851 for lt_sys_path
in $lt_search_path_spec; do
8852 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8853 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8855 test -d "$lt_sys_path" && \
8856 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
8859 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
8860 BEGIN {RS=" "; FS="/|\n";} {
8863 for (lt_i = NF; lt_i > 0; lt_i--) {
8864 if ($lt_i != "" && $lt_i != ".") {
8865 if ($lt_i == "..") {
8868 if (lt_count == 0) {
8869 lt_foo="/" $lt_i lt_foo;
8876 if (lt_foo != "") { lt_freq[lt_foo]++; }
8877 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8879 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
8881 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8883 need_lib_prefix
=unknown
8884 hardcode_into_libs
=no
8886 # when you set need_version to no, make sure it does not cause -set_version
8887 # flags to be left without arguments
8888 need_version
=unknown
8893 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8894 shlibpath_var
=LIBPATH
8896 # AIX 3 has no versioning support, so we append a major version to the name.
8897 soname_spec
='${libname}${release}${shared_ext}$major'
8904 hardcode_into_libs
=yes
8905 if test "$host_cpu" = ia64
; then
8906 # AIX 5 supports IA64
8907 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8908 shlibpath_var
=LD_LIBRARY_PATH
8910 # With GCC up to 2.95.x, collect2 would create an import file
8911 # for dependence libraries. The import file would start with
8912 # the line `#! .'. This would cause the generated library to
8913 # depend on `.', always an invalid library. This was fixed in
8914 # development snapshots of GCC prior to 3.0.
8916 aix4 | aix4.
[01] | aix4.
[01].
*)
8917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8919 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8927 # soname into executable. Probably we can add versioning support to
8928 # collect2, so additional links can be useful in future.
8929 if test "$aix_use_runtimelinking" = yes; then
8930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8931 # instead of lib<name>.a to let people know that these are not
8932 # typical AIX shared libraries.
8933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935 # We preserve .a as extension for shared libraries through AIX4.2
8936 # and later when we are not doing run time linking.
8937 library_names_spec
='${libname}${release}.a $libname.a'
8938 soname_spec
='${libname}${release}${shared_ext}$major'
8940 shlibpath_var
=LIBPATH
8945 library_names_spec
='$libname.ixlibrary $libname.a'
8946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8947 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'
8951 library_names_spec
='${libname}${shared_ext}'
8952 dynamic_linker
="$host_os ld.so"
8953 shlibpath_var
=LIBRARY_PATH
8959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960 soname_spec
='${libname}${release}${shared_ext}$major'
8961 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8962 shlibpath_var
=LD_LIBRARY_PATH
8963 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8964 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8965 # the default ld.so.conf also contains /usr/contrib/lib and
8966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8967 # libtool to hard-code these into programs
8970 cygwin
* | mingw
* | pw32
*)
8971 version_type
=windows
8976 case $GCC,$host_os in
8977 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8978 library_names_spec
='$libname.dll.a'
8979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8980 postinstall_cmds
='base_file=`basename \${file}`~
8981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8982 dldir=$destdir/`dirname \$dlpath`~
8983 test -d \$dldir || mkdir -p \$dldir~
8984 $install_prog $dir/$dlname \$dldir/$dlname~
8985 chmod a+x \$dldir/$dlname'
8986 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8987 dlpath=$dir/\$dldll~
8989 shlibpath_overrides_runpath
=yes
8993 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8994 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8998 # MinGW DLLs use traditional 'lib' prefix
8999 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9000 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9001 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9002 # It is most probably a Windows format PATH printed by
9003 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9004 # path with ; separators, and with drive letters. We can handle the
9005 # drive letters (cygwin fileutils understands them), so leave them,
9006 # especially as we might pass files found there to a mingw objdump,
9007 # which wouldn't understand a cygwinified path. Ahh.
9008 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9010 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9014 # pw32 DLLs use 'pw' prefix rather than 'lib'
9015 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9021 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9024 dynamic_linker
='Win32 ld.exe'
9025 # FIXME: first we should search . and the directory the executable is in
9029 darwin
* | rhapsody
*)
9030 dynamic_linker
="$host_os dyld"
9034 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9035 soname_spec
='${libname}${release}${major}$shared_ext'
9036 shlibpath_overrides_runpath
=yes
9037 shlibpath_var
=DYLD_LIBRARY_PATH
9038 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9040 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9041 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9048 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9049 soname_spec
='${libname}${release}${shared_ext}$major'
9050 shlibpath_var
=LD_LIBRARY_PATH
9057 freebsd
* | dragonfly
*)
9058 # DragonFly does not have aout. When/if they implement a new
9059 # versioning mechanism, adjust this.
9060 if test -x /usr
/bin
/objformat
; then
9061 objformat
=`/usr/bin/objformat`
9064 freebsd
[123]*) objformat
=aout
;;
9068 version_type
=freebsd-
$objformat
9069 case $version_type in
9071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9076 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9080 shlibpath_var
=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath
=yes
9085 freebsd3.
[01]* | freebsdelf3.
[01]*)
9086 shlibpath_overrides_runpath
=yes
9087 hardcode_into_libs
=yes
9089 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9090 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9091 shlibpath_overrides_runpath
=no
9092 hardcode_into_libs
=yes
9094 *) # from 4.6 on, and DragonFly
9095 shlibpath_overrides_runpath
=yes
9096 hardcode_into_libs
=yes
9105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9106 soname_spec
='${libname}${release}${shared_ext}$major'
9107 shlibpath_var
=LD_LIBRARY_PATH
9108 hardcode_into_libs
=yes
9111 hpux9
* | hpux10
* | hpux11
*)
9112 # Give a soname corresponding to the major version so that dld.sl refuses to
9113 # link against other versions.
9120 hardcode_into_libs
=yes
9121 dynamic_linker
="$host_os dld.so"
9122 shlibpath_var
=LD_LIBRARY_PATH
9123 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 soname_spec
='${libname}${release}${shared_ext}$major'
9126 if test "X$HPUX_IA64_MODE" = X32
; then
9127 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9129 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9131 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9135 hardcode_into_libs
=yes
9136 dynamic_linker
="$host_os dld.sl"
9137 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9138 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9139 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140 soname_spec
='${libname}${release}${shared_ext}$major'
9141 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9142 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9146 dynamic_linker
="$host_os dld.sl"
9147 shlibpath_var
=SHLIB_PATH
9148 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec
='${libname}${release}${shared_ext}$major'
9153 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9154 postinstall_cmds
='chmod 555 $lib'
9161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9162 soname_spec
='${libname}${release}${shared_ext}$major'
9163 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9164 shlibpath_var
=LD_LIBRARY_PATH
9165 shlibpath_overrides_runpath
=no
9166 hardcode_into_libs
=yes
9169 irix5
* | irix6
* | nonstopux
*)
9171 nonstopux
*) version_type
=nonstopux
;;
9173 if test "$lt_cv_prog_gnu_ld" = yes; then
9181 soname_spec
='${libname}${release}${shared_ext}$major'
9182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9184 irix5
* | nonstopux
*)
9188 case $LD in # libtool.m4 will add one of these switches to LD
9189 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9190 libsuff
= shlibsuff
= libmagic
=32-bit;;
9191 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9192 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9193 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9194 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9195 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9199 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9200 shlibpath_overrides_runpath
=no
9201 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9202 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9203 hardcode_into_libs
=yes
9206 # No shared lib support for Linux oldld, aout, or coff.
9207 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9211 # This must be Linux ELF.
9212 linux
* | k
*bsd
*-gnu)
9216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217 soname_spec
='${libname}${release}${shared_ext}$major'
9218 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9219 shlibpath_var
=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath
=no
9221 # This implies no fast_install, which is unacceptable.
9222 # Some rework will be needed to allow for fast_install
9223 # before this can be enabled.
9224 hardcode_into_libs
=yes
9225 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9226 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9228 # Append ld.so.conf contents to the search path
9229 if test -f /etc
/ld.so.conf
; then
9230 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' ' '`
9231 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9234 # We used to test for /lib/ld.so.1 and disable shared libraries on
9235 # powerpc, because MkLinux only supported shared libraries with the
9236 # GNU dynamic linker. Since this was broken with cross compilers,
9237 # most powerpc-linux boxes support dynamic linking these days and
9238 # people can always --disable-shared, the test was removed, and we
9239 # assume the GNU/Linux dynamic linker is in use.
9240 dynamic_linker
='GNU/Linux ld.so'
9247 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9248 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250 dynamic_linker
='NetBSD (a.out) ld.so'
9252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9253 soname_spec
='${libname}${release}${shared_ext}$major'
9254 dynamic_linker
='NetBSD ld.elf_so'
9256 shlibpath_var
=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath
=yes
9258 hardcode_into_libs
=yes
9263 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 shlibpath_var
=LD_LIBRARY_PATH
9265 shlibpath_overrides_runpath
=yes
9272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 soname_spec
='${libname}${release}${shared_ext}$major'
9274 shlibpath_var
=LD_LIBRARY_PATH
9275 shlibpath_overrides_runpath
=yes
9280 sys_lib_dlsearch_path_spec
="/usr/lib"
9282 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9284 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9285 *) need_version
=no
;;
9287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9288 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9289 shlibpath_var
=LD_LIBRARY_PATH
9290 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9292 openbsd2.
[89] | openbsd2.
[89].
*)
9293 shlibpath_overrides_runpath
=no
9296 shlibpath_overrides_runpath
=yes
9300 shlibpath_overrides_runpath
=yes
9305 libname_spec
='$name'
9308 library_names_spec
='$libname${shared_ext} $libname.a'
9309 dynamic_linker
='OS/2 ld.exe'
9310 shlibpath_var
=LIBPATH
9313 osf3
* | osf4
* | osf5
*)
9317 soname_spec
='${libname}${release}${shared_ext}$major'
9318 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 shlibpath_var
=LD_LIBRARY_PATH
9320 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9321 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333 soname_spec
='${libname}${release}${shared_ext}$major'
9334 shlibpath_var
=LD_LIBRARY_PATH
9335 shlibpath_overrides_runpath
=yes
9336 hardcode_into_libs
=yes
9337 # ldd complains unless libraries are executable
9338 postinstall_cmds
='chmod +x $lib'
9343 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9344 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9345 shlibpath_var
=LD_LIBRARY_PATH
9346 shlibpath_overrides_runpath
=yes
9347 if test "$with_gnu_ld" = yes; then
9355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9356 soname_spec
='${libname}${release}${shared_ext}$major'
9357 shlibpath_var
=LD_LIBRARY_PATH
9358 case $host_vendor in
9360 shlibpath_overrides_runpath
=no
9362 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9363 runpath_var
=LD_RUN_PATH
9371 shlibpath_overrides_runpath
=no
9372 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9378 if test -d /usr
/nec
;then
9380 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9381 soname_spec
='$libname${shared_ext}.$major'
9382 shlibpath_var
=LD_LIBRARY_PATH
9386 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9387 version_type
=freebsd-elf
9390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9391 soname_spec
='${libname}${release}${shared_ext}$major'
9392 shlibpath_var
=LD_LIBRARY_PATH
9393 hardcode_into_libs
=yes
9394 if test "$with_gnu_ld" = yes; then
9395 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9396 shlibpath_overrides_runpath
=no
9398 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9399 shlibpath_overrides_runpath
=yes
9402 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9406 sys_lib_dlsearch_path_spec
='/usr/lib'
9411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9412 soname_spec
='${libname}${release}${shared_ext}$major'
9413 shlibpath_var
=LD_LIBRARY_PATH
9420 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9421 echo "${ECHO_T}$dynamic_linker" >&6; }
9422 test "$dynamic_linker" = no
&& can_build_shared
=no
9424 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9425 if test "$GCC" = yes; then
9426 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9429 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9430 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9432 if test -n "$hardcode_libdir_flag_spec" || \
9433 test -n "$runpath_var" || \
9434 test "X$hardcode_automatic" = "Xyes" ; then
9436 # We can hardcode non-existant directories.
9437 if test "$hardcode_direct" != no
&&
9438 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9439 # have to relink, otherwise we might link with an installed library
9440 # when we should be linking with a yet-to-be-installed one
9441 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9442 test "$hardcode_minus_L" != no
; then
9443 # Linking always hardcodes the temporary library directory.
9444 hardcode_action
=relink
9446 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9447 hardcode_action
=immediate
9450 # We cannot hardcode anything, or else we can only hardcode existing
9452 hardcode_action
=unsupported
9454 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9455 echo "${ECHO_T}$hardcode_action" >&6; }
9457 if test "$hardcode_action" = relink
; then
9458 # Fast installation is not supported
9459 enable_fast_install
=no
9460 elif test "$shlibpath_overrides_runpath" = yes ||
9461 test "$enable_shared" = no
; then
9462 # Fast installation is not necessary
9463 enable_fast_install
=needless
9468 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9469 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9470 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9471 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9472 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9473 { echo "$as_me:$LINENO: result: yes" >&5
9474 echo "${ECHO_T}yes" >&6; }
9476 # FIXME - insert some real tests, host_os isn't really good enough
9479 if test -n "$STRIP" ; then
9480 striplib
="$STRIP -x"
9481 old_striplib
="$STRIP -S"
9482 { echo "$as_me:$LINENO: result: yes" >&5
9483 echo "${ECHO_T}yes" >&6; }
9485 { echo "$as_me:$LINENO: result: no" >&5
9486 echo "${ECHO_T}no" >&6; }
9490 { echo "$as_me:$LINENO: result: no" >&5
9491 echo "${ECHO_T}no" >&6; }
9496 if test "x$enable_dlopen" != xyes
; then
9497 enable_dlopen
=unknown
9498 enable_dlopen_self
=unknown
9499 enable_dlopen_self_static
=unknown
9506 lt_cv_dlopen
="load_add_on"
9508 lt_cv_dlopen_self
=yes
9512 lt_cv_dlopen
="LoadLibrary"
9517 lt_cv_dlopen
="dlopen"
9522 # if libdl is installed we need to link against it
9523 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9524 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9525 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 ac_check_lib_save_LIBS
=$LIBS
9530 cat >conftest.
$ac_ext <<_ACEOF
9533 cat confdefs.h
>>conftest.
$ac_ext
9534 cat >>conftest.
$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9537 /* Override any GCC internal prototype to avoid an error.
9538 Use char because int might match the return type of a GCC
9539 builtin and then its argument prototype would still apply. */
9552 rm -f conftest.
$ac_objext conftest
$ac_exeext
9553 if { (ac_try
="$ac_link"
9555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_link") 2>conftest.er1
9561 grep -v '^ *+' conftest.er1 >conftest.err
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } && {
9566 test -z "$ac_c_werror_flag" ||
9567 test ! -s conftest.err
9568 } && test -s conftest$ac_exeext &&
9569 $as_test_x conftest$ac_exeext; then
9570 ac_cv_lib_dl_dlopen=yes
9572 echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9575 ac_cv_lib_dl_dlopen=no
9578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9579 conftest$ac_exeext conftest.$ac_ext
9580 LIBS=$ac_check_lib_save_LIBS
9582 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9583 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9584 if test $ac_cv_lib_dl_dlopen = yes; then
9585 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9590 lt_cv_dlopen_self=yes
9597 { echo "$as_me:$LINENO: checking for shl_load" >&5
9598 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9599 if test "${ac_cv_func_shl_load+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 cat >conftest.$ac_ext <<_ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9610 #define shl_load innocuous_shl_load
9612 /* System header to define __stub macros and hopefully few prototypes,
9613 which can conflict with char shl_load (); below.
9614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9615 <limits.h> exists even on freestanding compilers. */
9618 # include <limits.h>
9620 # include <assert.h>
9625 /* Override any GCC internal prototype to avoid an error.
9626 Use char because int might match the return type of a GCC
9627 builtin and then its argument prototype would still apply. */
9632 /* The GNU C library defines this for functions which it implements
9633 to always fail with ENOSYS. Some functions are actually named
9634 something starting with __ and the normal name is an alias. */
9635 #if defined __stub_shl_load || defined __stub___shl_load
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9651 *) ac_try_echo
=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
9656 grep -v '^ *+' conftest.er1
>conftest.err
9658 cat conftest.err
>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest
$ac_exeext &&
9664 $as_test_x conftest
$ac_exeext; then
9665 ac_cv_func_shl_load
=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.
$ac_ext >&5
9670 ac_cv_func_shl_load
=no
9673 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9674 conftest
$ac_exeext conftest.
$ac_ext
9676 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9677 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9678 if test $ac_cv_func_shl_load = yes; then
9679 lt_cv_dlopen
="shl_load"
9681 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9682 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9683 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 ac_check_lib_save_LIBS
=$LIBS
9688 cat >conftest.
$ac_ext <<_ACEOF
9691 cat confdefs.h
>>conftest.
$ac_ext
9692 cat >>conftest.
$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9695 /* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
9710 rm -f conftest.
$ac_objext conftest
$ac_exeext
9711 if { (ac_try
="$ac_link"
9713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_link") 2>conftest.er1
9719 grep -v '^ *+' conftest.er1 >conftest.err
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest$ac_exeext &&
9727 $as_test_x conftest$ac_exeext; then
9728 ac_cv_lib_dld_shl_load=yes
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 ac_cv_lib_dld_shl_load=no
9736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9737 conftest$ac_exeext conftest.$ac_ext
9738 LIBS=$ac_check_lib_save_LIBS
9740 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9741 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9742 if test $ac_cv_lib_dld_shl_load = yes; then
9743 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9745 { echo "$as_me:$LINENO: checking for dlopen" >&5
9746 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9747 if test "${ac_cv_func_dlopen+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 cat >conftest.$ac_ext <<_ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9758 #define dlopen innocuous_dlopen
9760 /* System header to define __stub macros and hopefully few prototypes,
9761 which can conflict with char dlopen (); below.
9762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9763 <limits.h> exists even on freestanding compilers. */
9766 # include <limits.h>
9768 # include <assert.h>
9773 /* Override any GCC internal prototype to avoid an error.
9774 Use char because int might match the return type of a GCC
9775 builtin and then its argument prototype would still apply. */
9780 /* The GNU C library defines this for functions which it implements
9781 to always fail with ENOSYS. Some functions are actually named
9782 something starting with __ and the normal name is an alias. */
9783 #if defined __stub_dlopen || defined __stub___dlopen
9795 rm -f conftest.$ac_objext conftest$ac_exeext
9796 if { (ac_try="$ac_link"
9798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9799 *) ac_try_echo
=$ac_try;;
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_link") 2>conftest.er1
9804 grep -v '^ *+' conftest.er1
>conftest.err
9806 cat conftest.err
>&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } && {
9809 test -z "$ac_c_werror_flag" ||
9810 test ! -s conftest.err
9811 } && test -s conftest
$ac_exeext &&
9812 $as_test_x conftest
$ac_exeext; then
9813 ac_cv_func_dlopen
=yes
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.
$ac_ext >&5
9818 ac_cv_func_dlopen
=no
9821 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9822 conftest
$ac_exeext conftest.
$ac_ext
9824 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9825 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9826 if test $ac_cv_func_dlopen = yes; then
9827 lt_cv_dlopen
="dlopen"
9829 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9830 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 ac_check_lib_save_LIBS
=$LIBS
9836 cat >conftest.
$ac_ext <<_ACEOF
9839 cat confdefs.h
>>conftest.
$ac_ext
9840 cat >>conftest.
$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9843 /* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
9858 rm -f conftest.
$ac_objext conftest
$ac_exeext
9859 if { (ac_try
="$ac_link"
9861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_link") 2>conftest.er1
9867 grep -v '^ *+' conftest.er1 >conftest.err
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest$ac_exeext &&
9875 $as_test_x conftest$ac_exeext; then
9876 ac_cv_lib_dl_dlopen=yes
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_cv_lib_dl_dlopen=no
9884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9885 conftest$ac_exeext conftest.$ac_ext
9886 LIBS=$ac_check_lib_save_LIBS
9888 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9889 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9890 if test $ac_cv_lib_dl_dlopen = yes; then
9891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9893 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9894 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9895 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 ac_check_lib_save_LIBS=$LIBS
9900 cat >conftest.$ac_ext <<_ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9907 /* Override any GCC internal prototype to avoid an error.
9908 Use char because int might match the return type of a GCC
9909 builtin and then its argument prototype would still apply. */
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9926 *) ac_try_echo
=$ac_try;;
9928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929 (eval "$ac_link") 2>conftest.er1
9931 grep -v '^ *+' conftest.er1
>conftest.err
9933 cat conftest.err
>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } && {
9936 test -z "$ac_c_werror_flag" ||
9937 test ! -s conftest.err
9938 } && test -s conftest
$ac_exeext &&
9939 $as_test_x conftest
$ac_exeext; then
9940 ac_cv_lib_svld_dlopen
=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.
$ac_ext >&5
9945 ac_cv_lib_svld_dlopen
=no
9948 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9949 conftest
$ac_exeext conftest.
$ac_ext
9950 LIBS
=$ac_check_lib_save_LIBS
9952 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9953 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9954 if test $ac_cv_lib_svld_dlopen = yes; then
9955 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9957 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9958 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9959 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 ac_check_lib_save_LIBS
=$LIBS
9964 cat >conftest.
$ac_ext <<_ACEOF
9967 cat confdefs.h
>>conftest.
$ac_ext
9968 cat >>conftest.
$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9971 /* Override any GCC internal prototype to avoid an error.
9972 Use char because int might match the return type of a GCC
9973 builtin and then its argument prototype would still apply. */
9986 rm -f conftest.
$ac_objext conftest
$ac_exeext
9987 if { (ac_try
="$ac_link"
9989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_link") 2>conftest.er1
9995 grep -v '^ *+' conftest.er1 >conftest.err
9997 cat conftest.err >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } && {
10000 test -z "$ac_c_werror_flag" ||
10001 test ! -s conftest.err
10002 } && test -s conftest$ac_exeext &&
10003 $as_test_x conftest$ac_exeext; then
10004 ac_cv_lib_dld_dld_link=yes
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 ac_cv_lib_dld_dld_link=no
10012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10013 conftest$ac_exeext conftest.$ac_ext
10014 LIBS=$ac_check_lib_save_LIBS
10016 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10017 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10018 if test $ac_cv_lib_dld_dld_link = yes; then
10019 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10040 if test "x$lt_cv_dlopen" != xno; then
10046 case $lt_cv_dlopen in
10048 save_CPPFLAGS="$CPPFLAGS"
10049 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10051 save_LDFLAGS="$LDFLAGS"
10052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10055 LIBS="$lt_cv_dlopen_libs $LIBS"
10057 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10058 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10059 if test "${lt_cv_dlopen_self+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 if test "$cross_compiling" = yes; then :
10063 lt_cv_dlopen_self=cross
10065 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10066 lt_status=$lt_dlunknown
10067 cat > conftest.$ac_ext <<EOF
10068 #line 10068 "configure"
10069 #include "confdefs.h"
10078 # define LT_DLGLOBAL RTLD_GLOBAL
10081 # define LT_DLGLOBAL DL_GLOBAL
10083 # define LT_DLGLOBAL 0
10087 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10088 find out it does not work in some platform. */
10089 #ifndef LT_DLLAZY_OR_NOW
10091 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10094 # define LT_DLLAZY_OR_NOW DL_LAZY
10097 # define LT_DLLAZY_OR_NOW RTLD_NOW
10100 # define LT_DLLAZY_OR_NOW DL_NOW
10102 # define LT_DLLAZY_OR_NOW 0
10110 extern "C" void exit (int);
10113 void fnord() { int i=42;}
10116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10117 int status = $lt_dlunknown;
10121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10122 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10123 /* dlclose (self); */
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10136 (./conftest; exit; ) >&5 2>/dev/null
10138 case x$lt_status in
10139 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10140 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10141 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10144 # compilation failed
10145 lt_cv_dlopen_self=no
10152 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10153 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10155 if test "x$lt_cv_dlopen_self" = xyes; then
10156 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10157 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10158 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10159 if test "${lt_cv_dlopen_self_static+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 if test "$cross_compiling" = yes; then :
10163 lt_cv_dlopen_self_static=cross
10165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10166 lt_status=$lt_dlunknown
10167 cat > conftest.$ac_ext <<EOF
10168 #line 10168 "configure"
10169 #include "confdefs.h"
10178 # define LT_DLGLOBAL RTLD_GLOBAL
10181 # define LT_DLGLOBAL DL_GLOBAL
10183 # define LT_DLGLOBAL 0
10187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10188 find out it does not work in some platform. */
10189 #ifndef LT_DLLAZY_OR_NOW
10191 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10194 # define LT_DLLAZY_OR_NOW DL_LAZY
10197 # define LT_DLLAZY_OR_NOW RTLD_NOW
10200 # define LT_DLLAZY_OR_NOW DL_NOW
10202 # define LT_DLLAZY_OR_NOW 0
10210 extern "C" void exit (int);
10213 void fnord() { int i=42;}
10216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10217 int status = $lt_dlunknown;
10221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10222 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10223 /* dlclose (self); */
10231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232 (eval $ac_link) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10236 (./conftest; exit; ) >&5 2>/dev/null
10238 case x$lt_status in
10239 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10240 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10241 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10244 # compilation failed
10245 lt_cv_dlopen_self_static=no
10252 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10253 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10256 CPPFLAGS="$save_CPPFLAGS"
10257 LDFLAGS="$save_LDFLAGS"
10262 case $lt_cv_dlopen_self in
10263 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10264 *) enable_dlopen_self=unknown ;;
10267 case $lt_cv_dlopen_self_static in
10268 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10269 *) enable_dlopen_self_static=unknown ;;
10274 # Report which library types will actually be built
10275 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10276 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10277 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10278 echo "${ECHO_T}$can_build_shared" >&6; }
10280 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10281 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10282 test "$can_build_shared" = "no" && enable_shared=no
10284 # On AIX, shared libraries and static libraries use the same namespace, and
10285 # are all built from PIC.
10288 test "$enable_shared" = yes && enable_static=no
10289 if test -n "$RANLIB"; then
10290 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10291 postinstall_cmds='$RANLIB $lib'
10296 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10297 test "$enable_shared" = yes && enable_static=no
10301 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10302 echo "${ECHO_T}$enable_shared" >&6; }
10304 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10305 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10306 # Make sure either enable_shared or enable_static is yes.
10307 test "$enable_shared" = yes || enable_static=yes
10308 { echo "$as_me:$LINENO: result: $enable_static" >&5
10309 echo "${ECHO_T}$enable_static" >&6; }
10311 # The else clause should only fire when bootstrapping the
10312 # libtool distribution, otherwise you forgot to ship ltmain.sh
10313 # with your package, and you will get complaints that there are
10314 # no rules to generate ltmain.sh.
10315 if test -f "$ltmain"; then
10316 # See if we are running on zsh, and set the options which allow our commands through
10317 # without removal of \ escapes.
10318 if test -n "${ZSH_VERSION+set}" ; then
10319 setopt NO_GLOB_SUBST
10321 # Now quote all the things that may contain metacharacters while being
10322 # careful not to overquote the AC_SUBSTed values. We take copies of the
10323 # variables and quote the copies for generation of the libtool script.
10324 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10326 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10327 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10328 deplibs_check_method reload_flag reload_cmds need_locks \
10329 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10330 lt_cv_sys_global_symbol_to_c_name_address \
10331 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10332 old_postinstall_cmds old_postuninstall_cmds \
10336 lt_prog_compiler_wl \
10337 lt_prog_compiler_pic \
10338 lt_prog_compiler_static \
10339 lt_prog_compiler_no_builtin_flag \
10340 export_dynamic_flag_spec \
10341 thread_safe_flag_spec \
10342 whole_archive_flag_spec \
10343 enable_shared_with_static_runtimes \
10345 old_archive_from_new_cmds \
10350 compiler_lib_search_path \
10352 archive_expsym_cmds \
10354 postuninstall_cmds \
10355 old_archive_from_expsyms_cmds \
10356 allow_undefined_flag \
10357 no_undefined_flag \
10358 export_symbols_cmds \
10359 hardcode_libdir_flag_spec \
10360 hardcode_libdir_flag_spec_ld \
10361 hardcode_libdir_separator \
10362 hardcode_automatic \
10364 module_expsym_cmds \
10365 lt_cv_prog_compiler_c_o \
10368 include_expsyms; do
10371 old_archive_cmds | \
10372 old_archive_from_new_cmds | \
10374 archive_expsym_cmds | \
10376 module_expsym_cmds | \
10377 old_archive_from_expsyms_cmds | \
10378 export_symbols_cmds | \
10379 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10380 postinstall_cmds | postuninstall_cmds | \
10381 old_postinstall_cmds | old_postuninstall_cmds | \
10382 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10383 # Double-quote double-evaled strings.
10384 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10387 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10393 *'\$0 --fallback-echo"')
10394 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10398 cfgfile="${ofile}T"
10399 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10401 { echo "$as_me:$LINENO: creating $ofile" >&5
10402 echo "$as_me: creating $ofile" >&6;}
10404 cat <<__EOF__ >> "$cfgfile"
10407 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10408 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10409 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10411 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10412 # Free Software Foundation, Inc.
10414 # This file is part of GNU Libtool:
10415 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10417 # This program is free software; you can redistribute it and/or modify
10418 # it under the terms of the GNU General Public License as published by
10419 # the Free Software Foundation; either version 2 of the License, or
10420 # (at your option) any later version.
10422 # This program is distributed in the hope that it will be useful, but
10423 # WITHOUT ANY WARRANTY; without even the implied warranty of
10424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10425 # General Public License for more details.
10427 # You should have received a copy of the GNU General Public License
10428 # along with this program; if not, write to the Free Software
10429 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10431 # As a special exception to the GNU General Public License, if you
10432 # distribute this file as part of a program that contains a
10433 # configuration script generated by Autoconf, you may include it under
10434 # the same distribution terms that you use for the rest of that program.
10436 # A sed program that does not truncate output.
10439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10440 Xsed="$SED -e 1s/^X//"
10442 # The HP-UX ksh and POSIX shell print the target directory to stdout
10443 # if CDPATH is set.
10444 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10446 # The names of the tagged configurations supported by this script.
10449 # ### BEGIN LIBTOOL CONFIG
10451 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10453 # Shell to use when invoking shell scripts.
10456 # Whether or not to build shared libraries.
10457 build_libtool_libs=$enable_shared
10459 # Whether or not to build static libraries.
10460 build_old_libs=$enable_static
10462 # Whether or not to add -lc for building shared libraries.
10463 build_libtool_need_lc=$archive_cmds_need_lc
10465 # Whether or not to disallow shared libs when runtime libs are static
10466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10468 # Whether or not to optimize for fast installation.
10469 fast_install=$enable_fast_install
10472 host_alias=$host_alias
10476 # The build system.
10477 build_alias=$build_alias
10481 # An echo program that does not interpret backslashes.
10486 AR_FLAGS=$lt_AR_FLAGS
10491 # LTCC compiler flags.
10492 LTCFLAGS=$lt_LTCFLAGS
10494 # A language-specific compiler.
10497 # Is the compiler the GNU C compiler?
10503 # The linker used to build libraries.
10506 # Whether we need hard or soft links.
10509 # A BSD-compatible nm program.
10512 # A symbol stripping program
10515 # Used to examine libraries when file_magic_cmd begins "file"
10516 MAGIC_CMD=$MAGIC_CMD
10518 # Used on cygwin: DLL creation program.
10521 # Used on cygwin: object dumper.
10524 # Used on cygwin: assembler.
10527 # The name of the directory that contains temporary libtool files.
10530 # How to create reloadable object files.
10531 reload_flag=$lt_reload_flag
10532 reload_cmds=$lt_reload_cmds
10534 # How to pass a linker flag through the compiler.
10535 wl=$lt_lt_prog_compiler_wl
10537 # Object file suffix (normally "o").
10538 objext="$ac_objext"
10540 # Old archive suffix (normally "a").
10543 # Shared library suffix (normally ".so").
10544 shrext_cmds='$shrext_cmds'
10546 # Executable file suffix (normally "").
10549 # Additional compiler flags for building library objects.
10550 pic_flag=$lt_lt_prog_compiler_pic
10553 # What is the maximum length of a command?
10554 max_cmd_len=$lt_cv_sys_max_cmd_len
10556 # Does compiler simultaneously support -c and -o options?
10557 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10559 # Must we lock files when doing compilation?
10560 need_locks=$lt_need_locks
10562 # Do we need the lib prefix for modules?
10563 need_lib_prefix=$need_lib_prefix
10565 # Do we need a version for libraries?
10566 need_version=$need_version
10568 # Whether dlopen is supported.
10569 dlopen_support=$enable_dlopen
10571 # Whether dlopen of programs is supported.
10572 dlopen_self=$enable_dlopen_self
10574 # Whether dlopen of statically linked programs is supported.
10575 dlopen_self_static=$enable_dlopen_self_static
10577 # Compiler flag to prevent dynamic linking.
10578 link_static_flag=$lt_lt_prog_compiler_static
10580 # Compiler flag to turn off builtin functions.
10581 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10583 # Compiler flag to allow reflexive dlopens.
10584 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10586 # Compiler flag to generate shared objects directly from archives.
10587 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10589 # Compiler flag to generate thread-safe objects.
10590 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10592 # Library versioning type.
10593 version_type=$version_type
10595 # Format of library name prefix.
10596 libname_spec=$lt_libname_spec
10598 # List of archive names. First name is the real one, the rest are links.
10599 # The last name is the one that the linker finds with -lNAME.
10600 library_names_spec=$lt_library_names_spec
10602 # The coded name of the library, if different from the real name.
10603 soname_spec=$lt_soname_spec
10605 # Commands used to build and install an old-style archive.
10607 old_archive_cmds=$lt_old_archive_cmds
10608 old_postinstall_cmds=$lt_old_postinstall_cmds
10609 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10611 # Create an old-style archive from a shared archive.
10612 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10614 # Create a temporary old-style archive to link instead of a shared archive.
10615 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10617 # Commands used to build and install a shared archive.
10618 archive_cmds=$lt_archive_cmds
10619 archive_expsym_cmds=$lt_archive_expsym_cmds
10620 postinstall_cmds=$lt_postinstall_cmds
10621 postuninstall_cmds=$lt_postuninstall_cmds
10623 # Commands used to build a loadable module (assumed same as above if empty)
10624 module_cmds=$lt_module_cmds
10625 module_expsym_cmds=$lt_module_expsym_cmds
10627 # Commands to strip libraries.
10628 old_striplib=$lt_old_striplib
10629 striplib=$lt_striplib
10631 # Dependencies to place before the objects being linked to create a
10633 predep_objects=$lt_predep_objects
10635 # Dependencies to place after the objects being linked to create a
10637 postdep_objects=$lt_postdep_objects
10639 # Dependencies to place before the objects being linked to create a
10641 predeps=$lt_predeps
10643 # Dependencies to place after the objects being linked to create a
10645 postdeps=$lt_postdeps
10647 # The library search path used internally by the compiler when linking
10648 # a shared library.
10649 compiler_lib_search_path=$lt_compiler_lib_search_path
10651 # Method to check whether dependent libraries are shared objects.
10652 deplibs_check_method=$lt_deplibs_check_method
10654 # Command to use when deplibs_check_method == file_magic.
10655 file_magic_cmd=$lt_file_magic_cmd
10657 # Flag that allows shared libraries with undefined symbols to be built.
10658 allow_undefined_flag=$lt_allow_undefined_flag
10660 # Flag that forces no undefined symbols.
10661 no_undefined_flag=$lt_no_undefined_flag
10663 # Commands used to finish a libtool library installation in a directory.
10664 finish_cmds=$lt_finish_cmds
10666 # Same as above, but a single script fragment to be evaled but not shown.
10667 finish_eval=$lt_finish_eval
10669 # Take the output of nm and produce a listing of raw symbols and C names.
10670 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10672 # Transform the output of nm in a proper C declaration
10673 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10675 # Transform the output of nm in a C name address pair
10676 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10678 # This is the shared library runtime path variable.
10679 runpath_var=$runpath_var
10681 # This is the shared library path variable.
10682 shlibpath_var=$shlibpath_var
10684 # Is shlibpath searched before the hard-coded library search path?
10685 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10687 # How to hardcode a shared library path into an executable.
10688 hardcode_action=$hardcode_action
10690 # Whether we should hardcode library paths into libraries.
10691 hardcode_into_libs=$hardcode_into_libs
10693 # Flag to hardcode \$libdir into a binary during linking.
10694 # This must work even if \$libdir does not exist.
10695 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10697 # If ld is used when linking, flag to hardcode \$libdir into
10698 # a binary during linking. This must work even if \$libdir does
10700 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10702 # Whether we need a single -rpath flag with a separated argument.
10703 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10705 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10706 # resulting binary.
10707 hardcode_direct=$hardcode_direct
10709 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10710 # resulting binary.
10711 hardcode_minus_L=$hardcode_minus_L
10713 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10714 # the resulting binary.
10715 hardcode_shlibpath_var=$hardcode_shlibpath_var
10717 # Set to yes if building a shared library automatically hardcodes DIR into the library
10718 # and all subsequent libraries and executables linked against it.
10719 hardcode_automatic=$hardcode_automatic
10721 # Variables whose values should be saved in libtool wrapper scripts and
10722 # restored at relink time.
10723 variables_saved_for_relink="$variables_saved_for_relink"
10725 # Whether libtool must link a program against all its dependency libraries.
10726 link_all_deplibs=$link_all_deplibs
10728 # Compile-time system search path for libraries
10729 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10731 # Run-time system search path for libraries
10732 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10734 # Fix the shell variable \$srcfile for the compiler.
10735 fix_srcfile_path=$lt_fix_srcfile_path
10737 # Set to yes if exported symbols are required.
10738 always_export_symbols=$always_export_symbols
10740 # The commands to list exported symbols.
10741 export_symbols_cmds=$lt_export_symbols_cmds
10743 # The commands to extract the exported symbol list from a shared archive.
10744 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10746 # Symbols that should not be listed in the preloaded symbols.
10747 exclude_expsyms=$lt_exclude_expsyms
10749 # Symbols that must always be exported.
10750 include_expsyms=$lt_include_expsyms
10752 # ### END LIBTOOL CONFIG
10759 cat <<\EOF >> "$cfgfile"
10761 # AIX sometimes has problems with the GCC collect2 program. For some
10762 # reason, if we set the COLLECT_NAMES environment variable, the problems
10763 # vanish in a puff of smoke.
10764 if test "X${COLLECT_NAMES+set}" != Xset; then
10766 export COLLECT_NAMES
10772 # We use sed instead of cat because bash on DJGPP gets confused if
10773 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10774 # text mode, it properly converts lines to CR/LF. This bash problem
10775 # is reportedly fixed, but why not run on old versions too?
10776 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10778 mv -f "$cfgfile" "$ofile" || \
10779 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10783 # If there is no Makefile yet, we rely on a make rule to execute
10784 # `config.status
--recheck' to rerun these tests and create the
10785 # libtool script then.
10786 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10787 if test -f "$ltmain_in"; then
10788 test -f Makefile && make "$ltmain"
10794 ac_cpp='$CPP $CPPFLAGS'
10795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10796 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10802 # Check whether --with-tags was given.
10803 if test "${with_tags+set}" = set; then
10804 withval=$with_tags; tagnames="$withval"
10808 if test -f "$ltmain" && test -n "$tagnames"; then
10809 if test ! -f "${ofile}"; then
10810 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10811 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10814 if test -z "$LTCC"; then
10815 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10816 if test -z "$LTCC"; then
10817 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10818 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10820 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10821 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10824 if test -z "$LTCFLAGS"; then
10825 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10828 # Extract list of available tagged configurations in $ofile.
10829 # Note that this assumes the entire list is on one line.
10830 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10833 for tagname in $tagnames; do
10835 # Check whether tagname contains only valid characters
10836 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10838 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10839 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10840 { (exit 1); exit 1; }; }
10844 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10846 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10847 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10848 { (exit 1); exit 1; }; }
10851 # Update the list of available tags.
10852 if test -n "$tagname"; then
10853 echo appending configuration tag \"$tagname\" to $ofile
10857 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10858 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10859 (test "X$CXX" != "Xg++"))) ; then
10861 ac_cpp='$CXXCPP $CPPFLAGS'
10862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10869 archive_cmds_need_lc_CXX=no
10870 allow_undefined_flag_CXX=
10871 always_export_symbols_CXX=no
10872 archive_expsym_cmds_CXX=
10873 export_dynamic_flag_spec_CXX=
10874 hardcode_direct_CXX=no
10875 hardcode_libdir_flag_spec_CXX=
10876 hardcode_libdir_flag_spec_ld_CXX=
10877 hardcode_libdir_separator_CXX=
10878 hardcode_minus_L_CXX=no
10879 hardcode_shlibpath_var_CXX=unsupported
10880 hardcode_automatic_CXX=no
10882 module_expsym_cmds_CXX=
10883 link_all_deplibs_CXX=unknown
10884 old_archive_cmds_CXX=$old_archive_cmds
10885 no_undefined_flag_CXX=
10886 whole_archive_flag_spec_CXX=
10887 enable_shared_with_static_runtimes_CXX=no
10889 # Dependencies to place before and after the object being linked:
10890 predep_objects_CXX=
10891 postdep_objects_CXX=
10894 compiler_lib_search_path_CXX=
10896 # Source file extension for C++ test sources.
10899 # Object file extension for compiled C++ test sources.
10903 # Code to be used in simple compile tests
10904 lt_simple_compile_test_code="int some_variable = 0;"
10906 # Code to be used in simple link tests
10907 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10909 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10911 # If no C compiler was specified, use CC.
10914 # If no C compiler flags were specified, use CFLAGS.
10915 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10917 # Allow CC to be a program name with arguments.
10921 # save warnings/boilerplate of simple test code
10922 ac_outfile=conftest.$ac_objext
10923 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10924 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10925 _lt_compiler_boilerplate=`cat conftest.err
`
10928 ac_outfile=conftest.$ac_objext
10929 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10930 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10931 _lt_linker_boilerplate=`cat conftest.err
`
10935 # Allow CC to be a program name with arguments.
10940 lt_save_with_gnu_ld=$with_gnu_ld
10941 lt_save_path_LD=$lt_cv_path_LD
10942 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10943 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10945 $as_unset lt_cv_prog_gnu_ld
10947 if test -n "${lt_cv_path_LDCXX+set}"; then
10948 lt_cv_path_LD=$lt_cv_path_LDCXX
10950 $as_unset lt_cv_path_LD
10952 test -z "${LDCXX+set}" || LD=$LDCXX
10956 for cc_temp in $compiler""; do
10958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10964 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10967 # We don't want -fno-exception wen compiling C++ code, so set the
10968 # no_builtin_flag separately
10969 if test "$GXX" = yes; then
10970 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10972 lt_prog_compiler_no_builtin_flag_CXX=
10975 if test "$GXX" = yes; then
10976 # Set up default GNU C++ configuration
10979 # Check whether --with-gnu-ld was given.
10980 if test "${with_gnu_ld+set}" = set; then
10981 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10987 if test "$GCC" = yes; then
10988 # Check if gcc -print-prog-name=ld gives a path.
10989 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10990 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10993 # gcc leaves a trailing carriage return which upsets mingw
10994 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
10996 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
10999 # Accept absolute paths.
11001 re_direlt='/[^/][^/]*/\.\./'
11002 # Canonicalize the pathname of ld
11003 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
11004 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11005 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
11007 test -z "$LD" && LD="$ac_prog"
11010 # If it fails, then pretend we aren't using GCC.
11014 # If it is relative, then search for the first ld in PATH.
11015 with_gnu_ld=unknown
11018 elif test "$with_gnu_ld" = yes; then
11019 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11020 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11022 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11023 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11025 if test "${lt_cv_path_LD+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 if test -z "$LD"; then
11029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11030 for ac_dir in $PATH; do
11032 test -z "$ac_dir" && ac_dir=.
11033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11034 lt_cv_path_LD="$ac_dir/$ac_prog"
11035 # Check to see if the program is GNU ld. I'd rather use --version,
11036 # but apparently some variants of GNU ld only accept -v.
11037 # Break only if it was the GNU/non-GNU ld that we prefer.
11038 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
11039 *GNU* | *'with BFD'*)
11040 test "$with_gnu_ld" != no && break
11043 test "$with_gnu_ld" != yes && break
11050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11054 LD="$lt_cv_path_LD"
11055 if test -n "$LD"; then
11056 { echo "$as_me:$LINENO: result: $LD" >&5
11057 echo "${ECHO_T}$LD" >&6; }
11059 { echo "$as_me:$LINENO: result: no" >&5
11060 echo "${ECHO_T}no" >&6; }
11062 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11063 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11064 { (exit 1); exit 1; }; }
11065 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11066 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11067 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11071 case `$LD -v 2>&1 </dev
/null
` in
11072 *GNU* | *'with BFD'*)
11073 lt_cv_prog_gnu_ld=yes
11076 lt_cv_prog_gnu_ld=no
11080 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11081 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11082 with_gnu_ld=$lt_cv_prog_gnu_ld
11086 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11087 # archiving commands below assume that GNU ld is being used.
11088 if test "$with_gnu_ld" = yes; then
11089 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11090 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'
11092 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11093 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11095 # If archive_cmds runs LD, not CC, wlarc should be empty
11096 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11097 # investigate it a little bit more. (MM)
11100 # ancient GNU ld didn't support --whole-archive et. al.
11101 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
11102 grep 'no-whole-archive' > /dev/null; then
11103 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11105 whole_archive_flag_spec_CXX=
11111 # A generic and very simple default shared library creation
11112 # command for GNU C++ for the case where it uses the native
11113 # linker, instead of GNU ld. If possible, this setting should
11114 # overridden to take advantage of the native linker features on
11115 # the platform it is being used on.
11116 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11119 # Commands to make compiler produce verbose output that lists
11120 # what "hidden" libraries, object files and flags are used when
11121 # linking a shared library.
11122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11130 # PORTME: fill in a description of your system's C++ link characteristics
11131 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11132 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11136 # FIXME: insert proper C++ library support
11140 if test "$host_cpu" = ia64; then
11141 # On IA64, the linker does run time linking by default, so we don't
11142 # have to do anything special.
11143 aix_use_runtimelinking=no
11144 exp_sym_flag='-Bexport'
11147 aix_use_runtimelinking=no
11149 # Test if we are trying to use run time linking or normal
11150 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11151 # need to do runtime linking.
11152 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11153 for ld_flag in $LDFLAGS; do
11156 aix_use_runtimelinking=yes
11164 exp_sym_flag='-bexport'
11165 no_entry_flag='-bnoentry'
11168 # When large executables or shared objects are built, AIX ld can
11169 # have problems creating the table of contents. If linking a library
11170 # or program results in "error TOC overflow" add -mminimal-toc to
11171 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11172 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11174 archive_cmds_CXX=''
11175 hardcode_direct_CXX=yes
11176 hardcode_libdir_separator_CXX=':'
11177 link_all_deplibs_CXX=yes
11179 if test "$GXX" = yes; then
11180 case $host_os in aix4.[012]|aix4.[012].*)
11181 # We only want to do this on AIX 4.2 and lower, the check
11182 # below for broken collect2 doesn't work under 4.3+
11183 collect2name=`${CC} -print-prog-name=collect2
`
11184 if test -f "$collect2name" && \
11185 strings "$collect2name" | grep resolve_lib_name >/dev/null
11187 # We have reworked collect2
11190 # We have old collect2
11191 hardcode_direct_CXX=unsupported
11192 # It fails to find uninstalled libraries when the uninstalled
11193 # path is not listed in the libpath. Setting hardcode_minus_L
11194 # to unsupported forces relinking
11195 hardcode_minus_L_CXX=yes
11196 hardcode_libdir_flag_spec_CXX='-L$libdir'
11197 hardcode_libdir_separator_CXX=
11201 shared_flag='-shared'
11202 if test "$aix_use_runtimelinking" = yes; then
11203 shared_flag="$shared_flag "'${wl}-G'
11207 if test "$host_cpu" = ia64; then
11208 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11209 # chokes on -Wl,-G. The following line is correct:
11212 if test "$aix_use_runtimelinking" = yes; then
11213 shared_flag='${wl}-G'
11215 shared_flag='${wl}-bM:SRE'
11220 # It seems that -bexpall does not export symbols beginning with
11221 # underscore (_), so it is better to generate a list of symbols to export.
11222 always_export_symbols_CXX=yes
11223 if test "$aix_use_runtimelinking" = yes; then
11224 # Warning - without using the other runtime loading flags (-brtl),
11225 # -berok will link without error, but may produce a broken library.
11226 allow_undefined_flag_CXX='-berok'
11227 # Determine the default libpath from the value encoded in an empty executable.
11228 cat >conftest.$ac_ext <<_ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11243 rm -f conftest.$ac_objext conftest$ac_exeext
11244 if { (ac_try="$ac_link"
11245 case "(($ac_try" in
11246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11247 *) ac_try_echo
=$ac_try;;
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_link") 2>conftest.er1
11252 grep -v '^ *+' conftest.er1
>conftest.err
11254 cat conftest.err
>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } && {
11257 test -z "$ac_cxx_werror_flag" ||
11258 test ! -s conftest.err
11259 } && test -s conftest
$ac_exeext &&
11260 $as_test_x conftest
$ac_exeext; then
11262 lt_aix_libpath_sed
='
11263 /Import File Strings/,/^$/ {
11269 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11270 # Check for a 64-bit object if we didn't find anything.
11271 if test -z "$aix_libpath"; then
11272 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.
$ac_ext >&5
11281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11282 conftest
$ac_exeext conftest.
$ac_ext
11283 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11285 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11287 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"
11289 if test "$host_cpu" = ia64
; then
11290 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11291 allow_undefined_flag_CXX
="-z nodefs"
11292 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"
11294 # Determine the default libpath from the value encoded in an empty executable.
11295 cat >conftest.
$ac_ext <<_ACEOF
11298 cat confdefs.h
>>conftest.
$ac_ext
11299 cat >>conftest.
$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11310 rm -f conftest.
$ac_objext conftest
$ac_exeext
11311 if { (ac_try
="$ac_link"
11312 case "(($ac_try" in
11313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_link") 2>conftest.er1
11319 grep -v '^ *+' conftest.er1 >conftest.err
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } && {
11324 test -z "$ac_cxx_werror_flag" ||
11325 test ! -s conftest.err
11326 } && test -s conftest$ac_exeext &&
11327 $as_test_x conftest$ac_exeext; then
11329 lt_aix_libpath_sed='
11330 /Import File Strings/,/^$/ {
11336 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11337 # Check for a 64-bit object if we didn't find anything.
11338 if test -z "$aix_libpath"; then
11339 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11349 conftest$ac_exeext conftest.$ac_ext
11350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11352 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11353 # Warning - without using the other run time loading flags,
11354 # -berok will link without error, but may produce a broken library.
11355 no_undefined_flag_CXX=' ${wl}-bernotok'
11356 allow_undefined_flag_CXX=' ${wl}-berok'
11357 # Exported symbols can be pulled into shared objects from archives
11358 whole_archive_flag_spec_CXX='$convenience'
11359 archive_cmds_need_lc_CXX=yes
11360 # This is similar to how AIX traditionally builds its shared libraries.
11361 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'
11367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11368 allow_undefined_flag_CXX=unsupported
11369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11370 # support --undefined. This deserves some investigation. FIXME
11371 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11378 case $cc_basename in
11380 # FIXME: insert proper C++ library support
11386 cygwin* | mingw* | pw32*)
11387 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11388 # as there is no search path for DLLs.
11389 hardcode_libdir_flag_spec_CXX='-L$libdir'
11390 allow_undefined_flag_CXX=unsupported
11391 always_export_symbols_CXX=no
11392 enable_shared_with_static_runtimes_CXX=yes
11394 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11395 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'
11396 # If the export-symbols file already is a .def file (1st line
11397 # is EXPORTS), use it as is; otherwise, prepend...
11398 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11399 cp $export_symbols $output_objdir/$soname.def;
11401 echo EXPORTS > $output_objdir/$soname.def;
11402 cat $export_symbols >> $output_objdir/$soname.def;
11404 $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'
11409 darwin* | rhapsody*)
11411 rhapsody* | darwin1.[012])
11412 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11415 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11416 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11418 case ${MACOSX_DEPLOYMENT_TARGET} in
11420 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11423 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11429 archive_cmds_need_lc_CXX=no
11430 hardcode_direct_CXX=no
11431 hardcode_automatic_CXX=yes
11432 hardcode_shlibpath_var_CXX=unsupported
11433 whole_archive_flag_spec_CXX=''
11434 link_all_deplibs_CXX=yes
11436 if test "$GXX" = yes ; then
11437 lt_int_apple_cc_single_mod=no
11438 output_verbose_link_cmd='echo'
11439 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11440 lt_int_apple_cc_single_mod=yes
11442 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11443 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11445 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'
11447 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11448 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11449 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11450 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}'
11452 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}'
11454 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}'
11456 case $cc_basename in
11458 output_verbose_link_cmd='echo'
11459 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'
11460 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11462 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}'
11463 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}'
11473 case $cc_basename in
11475 # FIXME: insert proper C++ library support
11479 # Green Hills C++ Compiler
11480 # FIXME: insert proper C++ library support
11484 # FIXME: insert proper C++ library support
11490 # C++ shared libraries reported to be fairly broken before switch to ELF
11494 archive_cmds_need_lc_CXX=no
11496 freebsd* | dragonfly*)
11497 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11504 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11505 hardcode_libdir_separator_CXX=:
11506 export_dynamic_flag_spec_CXX='${wl}-E'
11507 hardcode_direct_CXX=yes
11508 hardcode_minus_L_CXX=yes # Not in the search PATH,
11509 # but as the default
11510 # location of the library.
11512 case $cc_basename in
11514 # FIXME: insert proper C++ library support
11518 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'
11519 # Commands to make compiler produce verbose output that lists
11520 # what "hidden" libraries, object files and flags are used when
11521 # linking a shared library.
11523 # There doesn't appear to be a way to prevent this compiler from
11524 # explicitly linking system object files so we need to strip them
11525 # from the output so that they don't get included in the library
11527 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'
11530 if test "$GXX" = yes; then
11531 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'
11533 # FIXME: insert proper C++ library support
11540 if test $with_gnu_ld = no; then
11541 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11542 hardcode_libdir_separator_CXX=:
11547 export_dynamic_flag_spec_CXX='${wl}-E'
11553 hardcode_direct_CXX=no
11554 hardcode_shlibpath_var_CXX=no
11557 hardcode_direct_CXX=yes
11558 hardcode_minus_L_CXX=yes # Not in the search PATH,
11559 # but as the default
11560 # location of the library.
11564 case $cc_basename in
11566 # FIXME: insert proper C++ library support
11572 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11575 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11581 # Commands to make compiler produce verbose output that lists
11582 # what "hidden" libraries, object files and flags are used when
11583 # linking a shared library.
11585 # There doesn't appear to be a way to prevent this compiler from
11586 # explicitly linking system object files so we need to strip them
11587 # from the output so that they don't get included in the library
11589 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'
11592 if test "$GXX" = yes; then
11593 if test $with_gnu_ld = no; then
11596 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11599 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11602 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'
11607 # FIXME: insert proper C++ library support
11614 hardcode_direct_CXX=no
11615 hardcode_shlibpath_var_CXX=no
11616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11617 export_dynamic_flag_spec_CXX='${wl}-E'
11618 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11619 # Instead, shared libraries are loaded at an image base (0x10000000 by
11620 # default) and relocated if they conflict, which is a slow very memory
11621 # consuming and fragmenting process. To avoid this, we pick a random,
11622 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11623 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11624 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'
11625 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'
11628 case $cc_basename in
11631 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'
11633 # Archives containing C++ object files must be created using
11634 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11635 # necessary to make sure instantiated templates are included
11637 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11640 if test "$GXX" = yes; then
11641 if test "$with_gnu_ld" = no; then
11642 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'
11644 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'
11647 link_all_deplibs_CXX=yes
11650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11651 hardcode_libdir_separator_CXX=:
11653 linux* | k*bsd*-gnu)
11654 case $cc_basename in
11656 # Kuck and Associates, Inc. (KAI) C++ Compiler
11658 # KCC will only create a shared library if the output file
11659 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11660 # to its proper name (with version) after linking.
11661 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'
11662 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'
11663 # Commands to make compiler produce verbose output that lists
11664 # what "hidden" libraries, object files and flags are used when
11665 # linking a shared library.
11667 # There doesn't appear to be a way to prevent this compiler from
11668 # explicitly linking system object files so we need to strip them
11669 # from the output so that they don't get included in the library
11671 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'
11673 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11674 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11676 # Archives containing C++ object files must be created using
11677 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11678 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11683 # version 8.0 and above of icpc choke on multiply defined symbols
11684 # if we add $predep_objects and $postdep_objects, however 7.1 and
11685 # earlier do not add the objects themselves.
11686 case `$CC -V 2>&1` in
11688 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11689 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'
11691 *) # Version 8.0 or newer
11694 ia64
*) tmp_idyn
=' -i_dynamic';;
11696 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11697 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'
11700 archive_cmds_need_lc_CXX
=no
11701 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11702 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11703 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11706 # Portland Group C++ compiler
11707 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11708 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'
11710 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11711 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11712 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'
11716 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11717 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'
11719 runpath_var
=LD_RUN_PATH
11720 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11721 hardcode_libdir_separator_CXX
=:
11723 # Commands to make compiler produce verbose output that lists
11724 # what "hidden" libraries, object files and flags are used when
11725 # linking a shared library.
11727 # There doesn't appear to be a way to prevent this compiler from
11728 # explicitly linking system object files so we need to strip them
11729 # from the output so that they don't get included in the library
11731 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'
11734 case `$CC -V 2>&1 | sed 5q` in
11737 no_undefined_flag_CXX
=' -zdefs'
11738 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11739 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'
11740 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11741 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'
11743 # Not sure whether something based on
11744 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11746 output_verbose_link_cmd
='echo'
11748 # Archives containing C++ object files must be created using
11749 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11750 # necessary to make sure instantiated templates are included
11752 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11759 # FIXME: insert proper C++ library support
11763 # FIXME: insert proper C++ library support
11767 case $cc_basename in
11769 # FIXME: insert proper C++ library support
11773 # FIXME: insert proper C++ library support
11779 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11780 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11782 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11783 hardcode_direct_CXX
=yes
11784 hardcode_shlibpath_var_CXX
=no
11786 # Workaround some broken pre-1.5 toolchains
11787 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11790 # C++ shared libraries are fairly broken
11794 if test -f /usr
/libexec
/ld.so
; then
11795 hardcode_direct_CXX
=yes
11796 hardcode_shlibpath_var_CXX
=no
11797 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11798 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11800 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11801 export_dynamic_flag_spec_CXX
='${wl}-E'
11802 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11804 output_verbose_link_cmd
='echo'
11810 case $cc_basename in
11812 # Kuck and Associates, Inc. (KAI) C++ Compiler
11814 # KCC will only create a shared library if the output file
11815 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11816 # to its proper name (with version) after linking.
11817 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'
11819 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11820 hardcode_libdir_separator_CXX
=:
11822 # Archives containing C++ object files must be created using
11823 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11824 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11828 # Rational C++ 2.4.1
11829 # FIXME: insert proper C++ library support
11833 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11834 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'
11836 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11837 hardcode_libdir_separator_CXX
=:
11839 # Commands to make compiler produce verbose output that lists
11840 # what "hidden" libraries, object files and flags are used when
11841 # linking a shared library.
11843 # There doesn't appear to be a way to prevent this compiler from
11844 # explicitly linking system object files so we need to strip them
11845 # from the output so that they don't get included in the library
11847 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'
11850 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11851 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11852 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'
11854 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11855 hardcode_libdir_separator_CXX
=:
11857 # Commands to make compiler produce verbose output that lists
11858 # what "hidden" libraries, object files and flags are used when
11859 # linking a shared library.
11860 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11863 # FIXME: insert proper C++ library support
11870 case $cc_basename in
11872 # Kuck and Associates, Inc. (KAI) C++ Compiler
11874 # KCC will only create a shared library if the output file
11875 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11876 # to its proper name (with version) after linking.
11877 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'
11879 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11880 hardcode_libdir_separator_CXX
=:
11882 # Archives containing C++ object files must be created using
11883 # the KAI C++ compiler.
11884 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11887 # Rational C++ 2.4.1
11888 # FIXME: insert proper C++ library support
11892 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11893 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'
11894 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11895 echo "-hidden">> $lib.exp~
11896 $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~
11899 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11900 hardcode_libdir_separator_CXX
=:
11902 # Commands to make compiler produce verbose output that lists
11903 # what "hidden" libraries, object files and flags are used when
11904 # linking a shared library.
11906 # There doesn't appear to be a way to prevent this compiler from
11907 # explicitly linking system object files so we need to strip them
11908 # from the output so that they don't get included in the library
11910 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'
11913 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11914 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11915 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'
11917 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11918 hardcode_libdir_separator_CXX
=:
11920 # Commands to make compiler produce verbose output that lists
11921 # what "hidden" libraries, object files and flags are used when
11922 # linking a shared library.
11923 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11926 # FIXME: insert proper C++ library support
11933 # FIXME: insert proper C++ library support
11937 case $cc_basename in
11940 # FIXME: insert proper C++ library support
11945 # FIXME: insert proper C++ library support
11949 # FIXME: insert proper C++ library support
11955 case $cc_basename in
11957 # Sun C++ 4.2, 5.x and Centerline C++
11958 archive_cmds_need_lc_CXX
=yes
11959 no_undefined_flag_CXX
=' -zdefs'
11960 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11961 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11962 $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'
11964 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11965 hardcode_shlibpath_var_CXX
=no
11967 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11969 # The compiler driver will combine and reorder linker options,
11970 # but understands `-z linker_flag'.
11971 # Supported since Solaris 2.6 (maybe 2.5.1?)
11972 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
11975 link_all_deplibs_CXX
=yes
11977 output_verbose_link_cmd
='echo'
11979 # Archives containing C++ object files must be created using
11980 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11981 # necessary to make sure instantiated templates are included
11983 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11986 # Green Hills C++ Compiler
11987 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11989 # The C++ compiler must be used to create the archive.
11990 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11993 # GNU C++ compiler with Solaris linker
11994 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11995 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11996 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11997 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11998 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11999 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12001 # Commands to make compiler produce verbose output that lists
12002 # what "hidden" libraries, object files and flags are used when
12003 # linking a shared library.
12004 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12006 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12008 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12009 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12010 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12012 # Commands to make compiler produce verbose output that lists
12013 # what "hidden" libraries, object files and flags are used when
12014 # linking a shared library.
12015 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12018 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
12020 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12022 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12029 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12030 no_undefined_flag_CXX
='${wl}-z,text'
12031 archive_cmds_need_lc_CXX
=no
12032 hardcode_shlibpath_var_CXX
=no
12033 runpath_var
='LD_RUN_PATH'
12035 case $cc_basename in
12037 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12038 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12041 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12042 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12046 sysv5
* | sco3.2v5
* | sco5v6
*)
12047 # Note: We can NOT use -z defs as we might desire, because we do not
12048 # link with -lc, and that would cause any symbols used from libc to
12049 # always be unresolved, which means just about no library would
12050 # ever link correctly. If we're not using GNU ld we use -z text
12051 # though, which does catch some bad symbols but isn't as heavy-handed
12053 # For security reasons, it is highly recommended that you always
12054 # use absolute paths for naming shared libraries, and exclude the
12055 # DT_RUNPATH tag from executables and libraries. But doing so
12056 # requires that you compile everything twice, which is a pain.
12057 # So that behaviour is only enabled if SCOABSPATH is set to a
12058 # non-empty value in the environment. Most likely only useful for
12059 # creating official distributions of packages.
12060 # This is a hack until libtool officially supports absolute path
12061 # names for shared libraries.
12062 no_undefined_flag_CXX
='${wl}-z,text'
12063 allow_undefined_flag_CXX
='${wl}-z,nodefs'
12064 archive_cmds_need_lc_CXX
=no
12065 hardcode_shlibpath_var_CXX
=no
12066 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12067 hardcode_libdir_separator_CXX
=':'
12068 link_all_deplibs_CXX
=yes
12069 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
12070 runpath_var
='LD_RUN_PATH'
12072 case $cc_basename in
12074 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12075 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12078 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12079 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12084 case $cc_basename in
12086 # NonStop-UX NCC 3.20
12087 # FIXME: insert proper C++ library support
12091 # FIXME: insert proper C++ library support
12097 # FIXME: insert proper C++ library support
12101 # FIXME: insert proper C++ library support
12105 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12106 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12107 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12113 cat > conftest.
$ac_ext <<EOF
12117 Foo (void) { a = 0; }
12123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12124 (eval $ac_compile) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; then
12128 # Parse the compiler output and extract the necessary
12129 # objects, libraries and library flags.
12131 # Sentinel used to keep track of whether or not we are before
12132 # the conftest object file.
12133 pre_test_object_deps_done
=no
12135 # The `*' in the case matches for architectures that use `case' in
12136 # $output_verbose_cmd can trigger glob expansion during the loop
12137 # eval without this substitution.
12138 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12140 for p
in `eval $output_verbose_link_cmd`; do
12144 # Some compilers place space between "-{L,R}" and the path.
12145 # Remove the space.
12146 if test $p = "-L" \
12147 ||
test $p = "-R"; then
12154 if test "$pre_test_object_deps_done" = no
; then
12157 # Internal compiler library paths should come after those
12158 # provided the user. The postdeps already come after the
12159 # user supplied libs so there is no need to process them.
12160 if test -z "$compiler_lib_search_path_CXX"; then
12161 compiler_lib_search_path_CXX
="${prev}${p}"
12163 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
12166 # The "-l" case would never come before the object being
12167 # linked, so don't bother handling this case.
12170 if test -z "$postdeps_CXX"; then
12171 postdeps_CXX
="${prev}${p}"
12173 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
12179 # This assumes that the test object file only shows up
12180 # once in the compiler output.
12181 if test "$p" = "conftest.$objext"; then
12182 pre_test_object_deps_done
=yes
12186 if test "$pre_test_object_deps_done" = no
; then
12187 if test -z "$predep_objects_CXX"; then
12188 predep_objects_CXX
="$p"
12190 predep_objects_CXX
="$predep_objects_CXX $p"
12193 if test -z "$postdep_objects_CXX"; then
12194 postdep_objects_CXX
="$p"
12196 postdep_objects_CXX
="$postdep_objects_CXX $p"
12201 *) ;; # Ignore the rest.
12209 echo "libtool.m4: error: problem compiling CXX test program"
12212 $rm -f confest.
$objext
12214 # PORTME: override above test on systems where it is broken
12217 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12218 # hack all around it, let's just trust "g++" to DTRT.
12219 predep_objects_CXX
=
12220 postdep_objects_CXX
=
12225 case `$CC -V 2>&1 | sed 5q` in
12229 # The more standards-conforming stlport4 library is
12230 # incompatible with the Cstd library. Avoid specifying
12231 # it if it's in CXXFLAGS. Ignore libCrun as
12232 # -library=stlport4 depends on it.
12233 case " $CXX $CXXFLAGS " in
12234 *" -library=stlport4 "*)
12235 solaris_use_stlport4
=yes
12238 if test "$solaris_use_stlport4" != yes; then
12239 postdeps_CXX
='-library=Cstd -library=Crun'
12246 case $cc_basename in
12248 # The more standards-conforming stlport4 library is
12249 # incompatible with the Cstd library. Avoid specifying
12250 # it if it's in CXXFLAGS. Ignore libCrun as
12251 # -library=stlport4 depends on it.
12252 case " $CXX $CXXFLAGS " in
12253 *" -library=stlport4 "*)
12254 solaris_use_stlport4
=yes
12258 # Adding this requires a known-good setup of shared libraries for
12259 # Sun compiler versions before 5.6, else PIC objects from an old
12260 # archive will be linked into the output, leading to subtle bugs.
12261 if test "$solaris_use_stlport4" != yes; then
12262 postdeps_CXX
='-library=Cstd -library=Crun'
12270 case " $postdeps_CXX " in
12271 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
12274 lt_prog_compiler_wl_CXX
=
12275 lt_prog_compiler_pic_CXX
=
12276 lt_prog_compiler_static_CXX
=
12278 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12279 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12281 # C++ specific cases for pic, static, wl, etc.
12282 if test "$GXX" = yes; then
12283 lt_prog_compiler_wl_CXX
='-Wl,'
12284 lt_prog_compiler_static_CXX
='-static'
12288 # All AIX code is PIC.
12289 if test "$host_cpu" = ia64
; then
12290 # AIX 5 now supports IA64 processor
12291 lt_prog_compiler_static_CXX
='-Bstatic'
12295 # FIXME: we need at least 68020 code to build shared libraries, but
12296 # adding the `-m68020' flag to GCC prevents building anything better,
12298 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12300 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12301 # PIC is the default for these OSes.
12303 mingw
* | cygwin
* | os2
* | pw32
*)
12304 # This hack is so that the source file can tell whether it is being
12305 # built for inclusion in a dll (and should export symbols for example).
12306 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12307 # (--disable-auto-import) libraries
12308 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12310 darwin
* | rhapsody
*)
12311 # PIC is the default on this platform
12312 # Common symbols not allowed in MH_DYLIB files
12313 lt_prog_compiler_pic_CXX
='-fno-common'
12316 # DJGPP does not support shared libraries at all
12317 lt_prog_compiler_pic_CXX
=
12320 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12321 # Instead, we relocate shared libraries at runtime.
12324 if test -d /usr
/nec
; then
12325 lt_prog_compiler_pic_CXX
=-Kconform_pic
12329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12330 # not for PA HP-UX.
12335 lt_prog_compiler_pic_CXX
='-fPIC'
12340 lt_prog_compiler_pic_CXX
='-fPIC'
12346 # All AIX code is PIC.
12347 if test "$host_cpu" = ia64
; then
12348 # AIX 5 now supports IA64 processor
12349 lt_prog_compiler_static_CXX
='-Bstatic'
12351 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12355 case $cc_basename in
12357 # Green Hills C++ Compiler
12358 # _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"
12363 # PIC is the default on this platform
12364 # Common symbols not allowed in MH_DYLIB files
12365 case $cc_basename in
12367 lt_prog_compiler_pic_CXX
='-qnocommon'
12368 lt_prog_compiler_wl_CXX
='-Wl,'
12373 case $cc_basename in
12375 lt_prog_compiler_pic_CXX
='-KPIC'
12378 # Green Hills C++ Compiler
12379 lt_prog_compiler_pic_CXX
='-pic'
12385 freebsd
* | dragonfly
*)
12386 # FreeBSD uses GNU C++
12388 hpux9
* | hpux10
* | hpux11
*)
12389 case $cc_basename in
12391 lt_prog_compiler_wl_CXX
='-Wl,'
12392 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12393 if test "$host_cpu" != ia64
; then
12394 lt_prog_compiler_pic_CXX
='+Z'
12398 lt_prog_compiler_wl_CXX
='-Wl,'
12399 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12405 lt_prog_compiler_pic_CXX
='+Z'
12414 # This is c89, which is MS Visual C++ (no shared libs)
12415 # Anyone wants to do a port?
12417 irix5
* | irix6
* | nonstopux
*)
12418 case $cc_basename in
12420 lt_prog_compiler_wl_CXX
='-Wl,'
12421 lt_prog_compiler_static_CXX
='-non_shared'
12422 # CC pic flag -KPIC is the default.
12428 linux
* | k
*bsd
*-gnu)
12429 case $cc_basename in
12432 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12433 lt_prog_compiler_pic_CXX
='-fPIC'
12437 lt_prog_compiler_wl_CXX
='-Wl,'
12438 lt_prog_compiler_pic_CXX
='-KPIC'
12439 lt_prog_compiler_static_CXX
='-static'
12442 # Portland Group C++ compiler.
12443 lt_prog_compiler_wl_CXX
='-Wl,'
12444 lt_prog_compiler_pic_CXX
='-fpic'
12445 lt_prog_compiler_static_CXX
='-Bstatic'
12449 # Make sure the PIC flag is empty. It appears that all Alpha
12450 # Linux and Compaq Tru64 Unix objects are PIC.
12451 lt_prog_compiler_pic_CXX
=
12452 lt_prog_compiler_static_CXX
='-non_shared'
12455 case `$CC -V 2>&1 | sed 5q` in
12458 lt_prog_compiler_pic_CXX
='-KPIC'
12459 lt_prog_compiler_static_CXX
='-Bstatic'
12460 lt_prog_compiler_wl_CXX
='-Qoption ld '
12471 case $cc_basename in
12473 lt_prog_compiler_pic_CXX
='-W c,exportall'
12481 osf3
* | osf4
* | osf5
*)
12482 case $cc_basename in
12484 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12487 # Rational C++ 2.4.1
12488 lt_prog_compiler_pic_CXX
='-pic'
12491 # Digital/Compaq C++
12492 lt_prog_compiler_wl_CXX
='-Wl,'
12493 # Make sure the PIC flag is empty. It appears that all Alpha
12494 # Linux and Compaq Tru64 Unix objects are PIC.
12495 lt_prog_compiler_pic_CXX
=
12496 lt_prog_compiler_static_CXX
='-non_shared'
12505 case $cc_basename in
12507 # Sun C++ 4.2, 5.x and Centerline C++
12508 lt_prog_compiler_pic_CXX
='-KPIC'
12509 lt_prog_compiler_static_CXX
='-Bstatic'
12510 lt_prog_compiler_wl_CXX
='-Qoption ld '
12513 # Green Hills C++ Compiler
12514 lt_prog_compiler_pic_CXX
='-PIC'
12521 case $cc_basename in
12524 lt_prog_compiler_pic_CXX
='-pic'
12525 lt_prog_compiler_static_CXX
='-Bstatic'
12529 lt_prog_compiler_pic_CXX
='-pic'
12536 case $cc_basename in
12538 # NonStop-UX NCC 3.20
12539 lt_prog_compiler_pic_CXX
='-KPIC'
12545 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12546 case $cc_basename in
12548 lt_prog_compiler_wl_CXX
='-Wl,'
12549 lt_prog_compiler_pic_CXX
='-KPIC'
12550 lt_prog_compiler_static_CXX
='-Bstatic'
12557 lt_prog_compiler_can_build_shared_CXX
=no
12562 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12563 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12566 # Check to make sure the PIC flag actually works.
12568 if test -n "$lt_prog_compiler_pic_CXX"; then
12570 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12571 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12572 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 lt_prog_compiler_pic_works_CXX
=no
12576 ac_outfile
=conftest.
$ac_objext
12577 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12578 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12579 # Insert the option either (1) after the last *FLAGS variable, or
12580 # (2) before a word containing "conftest.", or (3) at the end.
12581 # Note that $ac_compile itself does not contain backslashes and begins
12582 # with a dollar sign (not a hyphen), so the echo should work correctly.
12583 # The option is referenced via a variable to avoid confusing sed.
12584 lt_compile
=`echo "$ac_compile" | $SED \
12585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12587 -e 's:$: $lt_compiler_flag:'`
12588 (eval echo "\"\$as_me:12588: $lt_compile\"" >&5)
12589 (eval "$lt_compile" 2>conftest.err
)
12591 cat conftest.err
>&5
12592 echo "$as_me:12592: \$? = $ac_status" >&5
12593 if (exit $ac_status) && test -s "$ac_outfile"; then
12594 # The compiler can only warn and ignore the option if not recognized
12595 # So say no if there are warnings other than the usual output.
12596 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12597 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12598 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12599 lt_prog_compiler_pic_works_CXX
=yes
12605 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12606 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12608 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12609 case $lt_prog_compiler_pic_CXX in
12611 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12614 lt_prog_compiler_pic_CXX
=
12615 lt_prog_compiler_can_build_shared_CXX
=no
12620 # For platforms which do not support PIC, -DPIC is meaningless:
12622 lt_prog_compiler_pic_CXX
=
12625 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12630 # Check to make sure the static flag actually works.
12632 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12633 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12634 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12635 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 lt_prog_compiler_static_works_CXX
=no
12639 save_LDFLAGS
="$LDFLAGS"
12640 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12641 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12642 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12643 # The linker can only warn and ignore the option if not recognized
12644 # So say no if there are warnings
12645 if test -s conftest.err
; then
12646 # Append any errors to the config.log.
12647 cat conftest.err
1>&5
12648 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12649 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12650 if diff conftest.exp conftest.er2
>/dev
/null
; then
12651 lt_prog_compiler_static_works_CXX
=yes
12654 lt_prog_compiler_static_works_CXX
=yes
12658 LDFLAGS
="$save_LDFLAGS"
12661 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12662 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12664 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12667 lt_prog_compiler_static_CXX
=
12671 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12672 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12673 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 lt_cv_prog_compiler_c_o_CXX
=no
12677 $rm -r conftest
2>/dev
/null
12681 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12683 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12684 # Insert the option either (1) after the last *FLAGS variable, or
12685 # (2) before a word containing "conftest.", or (3) at the end.
12686 # Note that $ac_compile itself does not contain backslashes and begins
12687 # with a dollar sign (not a hyphen), so the echo should work correctly.
12688 lt_compile
=`echo "$ac_compile" | $SED \
12689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12691 -e 's:$: $lt_compiler_flag:'`
12692 (eval echo "\"\$as_me:12692: $lt_compile\"" >&5)
12693 (eval "$lt_compile" 2>out
/conftest.err
)
12695 cat out
/conftest.err
>&5
12696 echo "$as_me:12696: \$? = $ac_status" >&5
12697 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12699 # The compiler can only warn and ignore the option if not recognized
12700 # So say no if there are warnings
12701 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12702 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12703 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12704 lt_cv_prog_compiler_c_o_CXX
=yes
12709 # SGI C++ compiler will create directory out/ii_files/ for
12710 # template instantiation
12711 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12712 $rm out
/* && rmdir out
12718 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12719 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12722 hard_links
="nottested"
12723 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12724 # do not overwrite the value of need_locks provided by the user
12725 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12726 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12729 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12731 ln conftest.a conftest.b
2>&5 || hard_links
=no
12732 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12733 { echo "$as_me:$LINENO: result: $hard_links" >&5
12734 echo "${ECHO_T}$hard_links" >&6; }
12735 if test "$hard_links" = no
; then
12736 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12737 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12744 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12745 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12747 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12750 # If we're using GNU nm, then we don't want the "-C" option.
12751 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12752 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12753 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'
12755 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'
12759 export_symbols_cmds_CXX
="$ltdll_cmds"
12762 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'
12765 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12769 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12770 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12771 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12774 # Do we need to explicitly link libc?
12776 case "x$archive_cmds_need_lc_CXX" in
12778 # Assume -lc should be added
12779 archive_cmds_need_lc_CXX
=yes
12781 if test "$enable_shared" = yes && test "$GCC" = yes; then
12782 case $archive_cmds_CXX in
12784 # FIXME: we may have to deal with multi-command sequences.
12787 # Test whether the compiler implicitly links with -lc since on some
12788 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12789 # to ld, don't add -lc before -lgcc.
12790 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12791 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12793 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796 (eval $ac_compile) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } 2>conftest.err
; then
12802 libobjs
=conftest.
$ac_objext
12804 wl
=$lt_prog_compiler_wl_CXX
12805 pic_flag
=$lt_prog_compiler_pic_CXX
12811 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12812 allow_undefined_flag_CXX
=
12813 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12814 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }
12819 archive_cmds_need_lc_CXX
=no
12821 archive_cmds_need_lc_CXX
=yes
12823 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12825 cat conftest.err
1>&5
12828 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12829 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12836 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12837 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12838 library_names_spec
=
12839 libname_spec
='lib$name'
12843 postuninstall_cmds
=
12847 shlibpath_overrides_runpath
=unknown
12849 dynamic_linker
="$host_os ld.so"
12850 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12852 need_lib_prefix
=unknown
12853 hardcode_into_libs
=no
12855 # when you set need_version to no, make sure it does not cause -set_version
12856 # flags to be left without arguments
12857 need_version
=unknown
12862 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12863 shlibpath_var
=LIBPATH
12865 # AIX 3 has no versioning support, so we append a major version to the name.
12866 soname_spec
='${libname}${release}${shared_ext}$major'
12873 hardcode_into_libs
=yes
12874 if test "$host_cpu" = ia64
; then
12875 # AIX 5 supports IA64
12876 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12877 shlibpath_var
=LD_LIBRARY_PATH
12879 # With GCC up to 2.95.x, collect2 would create an import file
12880 # for dependence libraries. The import file would start with
12881 # the line `#! .'. This would cause the generated library to
12882 # depend on `.', always an invalid library. This was fixed in
12883 # development snapshots of GCC prior to 3.0.
12885 aix4 | aix4.
[01] | aix4.
[01].
*)
12886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12888 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12891 can_build_shared
=no
12895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12896 # soname into executable. Probably we can add versioning support to
12897 # collect2, so additional links can be useful in future.
12898 if test "$aix_use_runtimelinking" = yes; then
12899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12900 # instead of lib<name>.a to let people know that these are not
12901 # typical AIX shared libraries.
12902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12904 # We preserve .a as extension for shared libraries through AIX4.2
12905 # and later when we are not doing run time linking.
12906 library_names_spec
='${libname}${release}.a $libname.a'
12907 soname_spec
='${libname}${release}${shared_ext}$major'
12909 shlibpath_var
=LIBPATH
12914 library_names_spec
='$libname.ixlibrary $libname.a'
12915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12916 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'
12920 library_names_spec
='${libname}${shared_ext}'
12921 dynamic_linker
="$host_os ld.so"
12922 shlibpath_var
=LIBRARY_PATH
12928 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12929 soname_spec
='${libname}${release}${shared_ext}$major'
12930 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12931 shlibpath_var
=LD_LIBRARY_PATH
12932 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12933 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12934 # the default ld.so.conf also contains /usr/contrib/lib and
12935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12936 # libtool to hard-code these into programs
12939 cygwin
* | mingw
* | pw32
*)
12940 version_type
=windows
12945 case $GCC,$host_os in
12946 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12947 library_names_spec
='$libname.dll.a'
12948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12949 postinstall_cmds
='base_file=`basename \${file}`~
12950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12951 dldir=$destdir/`dirname \$dlpath`~
12952 test -d \$dldir || mkdir -p \$dldir~
12953 $install_prog $dir/$dlname \$dldir/$dlname~
12954 chmod a+x \$dldir/$dlname'
12955 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12956 dlpath=$dir/\$dldll~
12958 shlibpath_overrides_runpath
=yes
12962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12963 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12964 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12967 # MinGW DLLs use traditional 'lib' prefix
12968 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12969 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12970 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12971 # It is most probably a Windows format PATH printed by
12972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12973 # path with ; separators, and with drive letters. We can handle the
12974 # drive letters (cygwin fileutils understands them), so leave them,
12975 # especially as we might pass files found there to a mingw objdump,
12976 # which wouldn't understand a cygwinified path. Ahh.
12977 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12979 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12983 # pw32 DLLs use 'pw' prefix rather than 'lib'
12984 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12990 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12993 dynamic_linker
='Win32 ld.exe'
12994 # FIXME: first we should search . and the directory the executable is in
12998 darwin
* | rhapsody
*)
12999 dynamic_linker
="$host_os dyld"
13000 version_type
=darwin
13003 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13004 soname_spec
='${libname}${release}${major}$shared_ext'
13005 shlibpath_overrides_runpath
=yes
13006 shlibpath_var
=DYLD_LIBRARY_PATH
13007 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13009 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13017 soname_spec
='${libname}${release}${shared_ext}$major'
13018 shlibpath_var
=LD_LIBRARY_PATH
13025 freebsd
* | dragonfly
*)
13026 # DragonFly does not have aout. When/if they implement a new
13027 # versioning mechanism, adjust this.
13028 if test -x /usr
/bin
/objformat
; then
13029 objformat
=`/usr/bin/objformat`
13032 freebsd
[123]*) objformat
=aout
;;
13033 *) objformat
=elf
;;
13036 version_type
=freebsd-
$objformat
13037 case $version_type in
13039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13044 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13048 shlibpath_var
=LD_LIBRARY_PATH
13051 shlibpath_overrides_runpath
=yes
13053 freebsd3.
[01]* | freebsdelf3.
[01]*)
13054 shlibpath_overrides_runpath
=yes
13055 hardcode_into_libs
=yes
13057 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13058 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13059 shlibpath_overrides_runpath
=no
13060 hardcode_into_libs
=yes
13062 *) # from 4.6 on, and DragonFly
13063 shlibpath_overrides_runpath
=yes
13064 hardcode_into_libs
=yes
13073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13074 soname_spec
='${libname}${release}${shared_ext}$major'
13075 shlibpath_var
=LD_LIBRARY_PATH
13076 hardcode_into_libs
=yes
13079 hpux9
* | hpux10
* | hpux11
*)
13080 # Give a soname corresponding to the major version so that dld.sl refuses to
13081 # link against other versions.
13088 hardcode_into_libs
=yes
13089 dynamic_linker
="$host_os dld.so"
13090 shlibpath_var
=LD_LIBRARY_PATH
13091 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13093 soname_spec
='${libname}${release}${shared_ext}$major'
13094 if test "X$HPUX_IA64_MODE" = X32
; then
13095 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13097 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13099 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13103 hardcode_into_libs
=yes
13104 dynamic_linker
="$host_os dld.sl"
13105 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
13106 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13108 soname_spec
='${libname}${release}${shared_ext}$major'
13109 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13110 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13114 dynamic_linker
="$host_os dld.sl"
13115 shlibpath_var
=SHLIB_PATH
13116 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13118 soname_spec
='${libname}${release}${shared_ext}$major'
13121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13122 postinstall_cmds
='chmod 555 $lib'
13129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13130 soname_spec
='${libname}${release}${shared_ext}$major'
13131 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
13132 shlibpath_var
=LD_LIBRARY_PATH
13133 shlibpath_overrides_runpath
=no
13134 hardcode_into_libs
=yes
13137 irix5
* | irix6
* | nonstopux
*)
13139 nonstopux
*) version_type
=nonstopux
;;
13141 if test "$lt_cv_prog_gnu_ld" = yes; then
13149 soname_spec
='${libname}${release}${shared_ext}$major'
13150 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13152 irix5
* | nonstopux
*)
13153 libsuff
= shlibsuff
=
13156 case $LD in # libtool.m4 will add one of these switches to LD
13157 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
13158 libsuff
= shlibsuff
= libmagic
=32-bit;;
13159 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
13160 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13161 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
13162 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13163 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13167 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13168 shlibpath_overrides_runpath
=no
13169 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13170 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13171 hardcode_into_libs
=yes
13174 # No shared lib support for Linux oldld, aout, or coff.
13175 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13179 # This must be Linux ELF.
13180 linux
* | k
*bsd
*-gnu)
13184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13185 soname_spec
='${libname}${release}${shared_ext}$major'
13186 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13187 shlibpath_var
=LD_LIBRARY_PATH
13188 shlibpath_overrides_runpath
=no
13189 # This implies no fast_install, which is unacceptable.
13190 # Some rework will be needed to allow for fast_install
13191 # before this can be enabled.
13192 hardcode_into_libs
=yes
13193 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13194 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13196 # Append ld.so.conf contents to the search path
13197 if test -f /etc
/ld.so.conf
; then
13198 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' ' '`
13199 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13202 # We used to test for /lib/ld.so.1 and disable shared libraries on
13203 # powerpc, because MkLinux only supported shared libraries with the
13204 # GNU dynamic linker. Since this was broken with cross compilers,
13205 # most powerpc-linux boxes support dynamic linking these days and
13206 # people can always --disable-shared, the test was removed, and we
13207 # assume the GNU/Linux dynamic linker is in use.
13208 dynamic_linker
='GNU/Linux ld.so'
13215 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13217 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13218 dynamic_linker
='NetBSD (a.out) ld.so'
13220 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13221 soname_spec
='${libname}${release}${shared_ext}$major'
13222 dynamic_linker
='NetBSD ld.elf_so'
13224 shlibpath_var
=LD_LIBRARY_PATH
13225 shlibpath_overrides_runpath
=yes
13226 hardcode_into_libs
=yes
13231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13232 shlibpath_var
=LD_LIBRARY_PATH
13233 shlibpath_overrides_runpath
=yes
13240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13241 soname_spec
='${libname}${release}${shared_ext}$major'
13242 shlibpath_var
=LD_LIBRARY_PATH
13243 shlibpath_overrides_runpath
=yes
13248 sys_lib_dlsearch_path_spec
="/usr/lib"
13250 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13252 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13253 *) need_version
=no
;;
13255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13256 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13257 shlibpath_var
=LD_LIBRARY_PATH
13258 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13260 openbsd2.
[89] | openbsd2.
[89].
*)
13261 shlibpath_overrides_runpath
=no
13264 shlibpath_overrides_runpath
=yes
13268 shlibpath_overrides_runpath
=yes
13273 libname_spec
='$name'
13276 library_names_spec
='$libname${shared_ext} $libname.a'
13277 dynamic_linker
='OS/2 ld.exe'
13278 shlibpath_var
=LIBPATH
13281 osf3
* | osf4
* | osf5
*)
13285 soname_spec
='${libname}${release}${shared_ext}$major'
13286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13287 shlibpath_var
=LD_LIBRARY_PATH
13288 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13289 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13301 soname_spec
='${libname}${release}${shared_ext}$major'
13302 shlibpath_var
=LD_LIBRARY_PATH
13303 shlibpath_overrides_runpath
=yes
13304 hardcode_into_libs
=yes
13305 # ldd complains unless libraries are executable
13306 postinstall_cmds
='chmod +x $lib'
13311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13312 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13313 shlibpath_var
=LD_LIBRARY_PATH
13314 shlibpath_overrides_runpath
=yes
13315 if test "$with_gnu_ld" = yes; then
13323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13324 soname_spec
='${libname}${release}${shared_ext}$major'
13325 shlibpath_var
=LD_LIBRARY_PATH
13326 case $host_vendor in
13328 shlibpath_overrides_runpath
=no
13330 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13331 runpath_var
=LD_RUN_PATH
13339 shlibpath_overrides_runpath
=no
13340 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13346 if test -d /usr
/nec
;then
13348 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13349 soname_spec
='$libname${shared_ext}.$major'
13350 shlibpath_var
=LD_LIBRARY_PATH
13354 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13355 version_type
=freebsd-elf
13358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13359 soname_spec
='${libname}${release}${shared_ext}$major'
13360 shlibpath_var
=LD_LIBRARY_PATH
13361 hardcode_into_libs
=yes
13362 if test "$with_gnu_ld" = yes; then
13363 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13364 shlibpath_overrides_runpath
=no
13366 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13367 shlibpath_overrides_runpath
=yes
13370 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13374 sys_lib_dlsearch_path_spec
='/usr/lib'
13379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380 soname_spec
='${libname}${release}${shared_ext}$major'
13381 shlibpath_var
=LD_LIBRARY_PATH
13388 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13389 echo "${ECHO_T}$dynamic_linker" >&6; }
13390 test "$dynamic_linker" = no
&& can_build_shared
=no
13392 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13393 if test "$GCC" = yes; then
13394 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13397 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13398 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13399 hardcode_action_CXX
=
13400 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13401 test -n "$runpath_var_CXX" || \
13402 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13404 # We can hardcode non-existant directories.
13405 if test "$hardcode_direct_CXX" != no
&&
13406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13407 # have to relink, otherwise we might link with an installed library
13408 # when we should be linking with a yet-to-be-installed one
13409 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13410 test "$hardcode_minus_L_CXX" != no
; then
13411 # Linking always hardcodes the temporary library directory.
13412 hardcode_action_CXX
=relink
13414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13415 hardcode_action_CXX
=immediate
13418 # We cannot hardcode anything, or else we can only hardcode existing
13420 hardcode_action_CXX
=unsupported
13422 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13423 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13425 if test "$hardcode_action_CXX" = relink
; then
13426 # Fast installation is not supported
13427 enable_fast_install
=no
13428 elif test "$shlibpath_overrides_runpath" = yes ||
13429 test "$enable_shared" = no
; then
13430 # Fast installation is not necessary
13431 enable_fast_install
=needless
13435 # The else clause should only fire when bootstrapping the
13436 # libtool distribution, otherwise you forgot to ship ltmain.sh
13437 # with your package, and you will get complaints that there are
13438 # no rules to generate ltmain.sh.
13439 if test -f "$ltmain"; then
13440 # See if we are running on zsh, and set the options which allow our commands through
13441 # without removal of \ escapes.
13442 if test -n "${ZSH_VERSION+set}" ; then
13443 setopt NO_GLOB_SUBST
13445 # Now quote all the things that may contain metacharacters while being
13446 # careful not to overquote the AC_SUBSTed values. We take copies of the
13447 # variables and quote the copies for generation of the libtool script.
13448 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13450 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13451 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13452 deplibs_check_method reload_flag reload_cmds need_locks \
13453 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13454 lt_cv_sys_global_symbol_to_c_name_address \
13455 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13456 old_postinstall_cmds old_postuninstall_cmds \
13460 lt_prog_compiler_wl_CXX \
13461 lt_prog_compiler_pic_CXX \
13462 lt_prog_compiler_static_CXX \
13463 lt_prog_compiler_no_builtin_flag_CXX \
13464 export_dynamic_flag_spec_CXX \
13465 thread_safe_flag_spec_CXX \
13466 whole_archive_flag_spec_CXX \
13467 enable_shared_with_static_runtimes_CXX \
13468 old_archive_cmds_CXX \
13469 old_archive_from_new_cmds_CXX \
13470 predep_objects_CXX \
13471 postdep_objects_CXX \
13474 compiler_lib_search_path_CXX \
13476 archive_expsym_cmds_CXX \
13477 postinstall_cmds_CXX \
13478 postuninstall_cmds_CXX \
13479 old_archive_from_expsyms_cmds_CXX \
13480 allow_undefined_flag_CXX \
13481 no_undefined_flag_CXX \
13482 export_symbols_cmds_CXX \
13483 hardcode_libdir_flag_spec_CXX \
13484 hardcode_libdir_flag_spec_ld_CXX \
13485 hardcode_libdir_separator_CXX \
13486 hardcode_automatic_CXX \
13488 module_expsym_cmds_CXX \
13489 lt_cv_prog_compiler_c_o_CXX \
13490 fix_srcfile_path_CXX \
13491 exclude_expsyms_CXX \
13492 include_expsyms_CXX
; do
13495 old_archive_cmds_CXX | \
13496 old_archive_from_new_cmds_CXX | \
13497 archive_cmds_CXX | \
13498 archive_expsym_cmds_CXX | \
13499 module_cmds_CXX | \
13500 module_expsym_cmds_CXX | \
13501 old_archive_from_expsyms_cmds_CXX | \
13502 export_symbols_cmds_CXX | \
13503 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13504 postinstall_cmds | postuninstall_cmds | \
13505 old_postinstall_cmds | old_postuninstall_cmds | \
13506 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13507 # Double-quote double-evaled strings.
13508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13517 *'\$0 --fallback-echo"')
13518 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13524 cat <<__EOF__ >> "$cfgfile"
13525 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13527 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13529 # Shell to use when invoking shell scripts.
13532 # Whether or not to build shared libraries.
13533 build_libtool_libs=$enable_shared
13535 # Whether or not to build static libraries.
13536 build_old_libs=$enable_static
13538 # Whether or not to add -lc for building shared libraries.
13539 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13541 # Whether or not to disallow shared libs when runtime libs are static
13542 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13544 # Whether or not to optimize for fast installation.
13545 fast_install=$enable_fast_install
13548 host_alias=$host_alias
13552 # The build system.
13553 build_alias=$build_alias
13557 # An echo program that does not interpret backslashes.
13562 AR_FLAGS=$lt_AR_FLAGS
13567 # LTCC compiler flags.
13568 LTCFLAGS=$lt_LTCFLAGS
13570 # A language-specific compiler.
13571 CC=$lt_compiler_CXX
13573 # Is the compiler the GNU C compiler?
13579 # The linker used to build libraries.
13582 # Whether we need hard or soft links.
13585 # A BSD-compatible nm program.
13588 # A symbol stripping program
13591 # Used to examine libraries when file_magic_cmd begins "file"
13592 MAGIC_CMD=$MAGIC_CMD
13594 # Used on cygwin: DLL creation program.
13597 # Used on cygwin: object dumper.
13600 # Used on cygwin: assembler.
13603 # The name of the directory that contains temporary libtool files.
13606 # How to create reloadable object files.
13607 reload_flag=$lt_reload_flag
13608 reload_cmds=$lt_reload_cmds
13610 # How to pass a linker flag through the compiler.
13611 wl=$lt_lt_prog_compiler_wl_CXX
13613 # Object file suffix (normally "o").
13614 objext="$ac_objext"
13616 # Old archive suffix (normally "a").
13619 # Shared library suffix (normally ".so").
13620 shrext_cmds='$shrext_cmds'
13622 # Executable file suffix (normally "").
13625 # Additional compiler flags for building library objects.
13626 pic_flag=$lt_lt_prog_compiler_pic_CXX
13629 # What is the maximum length of a command?
13630 max_cmd_len=$lt_cv_sys_max_cmd_len
13632 # Does compiler simultaneously support -c and -o options?
13633 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13635 # Must we lock files when doing compilation?
13636 need_locks=$lt_need_locks
13638 # Do we need the lib prefix for modules?
13639 need_lib_prefix=$need_lib_prefix
13641 # Do we need a version for libraries?
13642 need_version=$need_version
13644 # Whether dlopen is supported.
13645 dlopen_support=$enable_dlopen
13647 # Whether dlopen of programs is supported.
13648 dlopen_self=$enable_dlopen_self
13650 # Whether dlopen of statically linked programs is supported.
13651 dlopen_self_static=$enable_dlopen_self_static
13653 # Compiler flag to prevent dynamic linking.
13654 link_static_flag=$lt_lt_prog_compiler_static_CXX
13656 # Compiler flag to turn off builtin functions.
13657 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13659 # Compiler flag to allow reflexive dlopens.
13660 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13662 # Compiler flag to generate shared objects directly from archives.
13663 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13665 # Compiler flag to generate thread-safe objects.
13666 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13668 # Library versioning type.
13669 version_type=$version_type
13671 # Format of library name prefix.
13672 libname_spec=$lt_libname_spec
13674 # List of archive names. First name is the real one, the rest are links.
13675 # The last name is the one that the linker finds with -lNAME.
13676 library_names_spec=$lt_library_names_spec
13678 # The coded name of the library, if different from the real name.
13679 soname_spec=$lt_soname_spec
13681 # Commands used to build and install an old-style archive.
13683 old_archive_cmds=$lt_old_archive_cmds_CXX
13684 old_postinstall_cmds=$lt_old_postinstall_cmds
13685 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13687 # Create an old-style archive from a shared archive.
13688 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13690 # Create a temporary old-style archive to link instead of a shared archive.
13691 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13693 # Commands used to build and install a shared archive.
13694 archive_cmds=$lt_archive_cmds_CXX
13695 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13696 postinstall_cmds=$lt_postinstall_cmds
13697 postuninstall_cmds=$lt_postuninstall_cmds
13699 # Commands used to build a loadable module (assumed same as above if empty)
13700 module_cmds=$lt_module_cmds_CXX
13701 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13703 # Commands to strip libraries.
13704 old_striplib=$lt_old_striplib
13705 striplib=$lt_striplib
13707 # Dependencies to place before the objects being linked to create a
13709 predep_objects=$lt_predep_objects_CXX
13711 # Dependencies to place after the objects being linked to create a
13713 postdep_objects=$lt_postdep_objects_CXX
13715 # Dependencies to place before the objects being linked to create a
13717 predeps=$lt_predeps_CXX
13719 # Dependencies to place after the objects being linked to create a
13721 postdeps=$lt_postdeps_CXX
13723 # The library search path used internally by the compiler when linking
13724 # a shared library.
13725 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13727 # Method to check whether dependent libraries are shared objects.
13728 deplibs_check_method=$lt_deplibs_check_method
13730 # Command to use when deplibs_check_method == file_magic.
13731 file_magic_cmd=$lt_file_magic_cmd
13733 # Flag that allows shared libraries with undefined symbols to be built.
13734 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13736 # Flag that forces no undefined symbols.
13737 no_undefined_flag=$lt_no_undefined_flag_CXX
13739 # Commands used to finish a libtool library installation in a directory.
13740 finish_cmds=$lt_finish_cmds
13742 # Same as above, but a single script fragment to be evaled but not shown.
13743 finish_eval=$lt_finish_eval
13745 # Take the output of nm and produce a listing of raw symbols and C names.
13746 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13748 # Transform the output of nm in a proper C declaration
13749 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13751 # Transform the output of nm in a C name address pair
13752 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13754 # This is the shared library runtime path variable.
13755 runpath_var=$runpath_var
13757 # This is the shared library path variable.
13758 shlibpath_var=$shlibpath_var
13760 # Is shlibpath searched before the hard-coded library search path?
13761 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13763 # How to hardcode a shared library path into an executable.
13764 hardcode_action=$hardcode_action_CXX
13766 # Whether we should hardcode library paths into libraries.
13767 hardcode_into_libs=$hardcode_into_libs
13769 # Flag to hardcode \$libdir into a binary during linking.
13770 # This must work even if \$libdir does not exist.
13771 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13773 # If ld is used when linking, flag to hardcode \$libdir into
13774 # a binary during linking. This must work even if \$libdir does
13776 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13778 # Whether we need a single -rpath flag with a separated argument.
13779 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13781 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13782 # resulting binary.
13783 hardcode_direct=$hardcode_direct_CXX
13785 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13786 # resulting binary.
13787 hardcode_minus_L=$hardcode_minus_L_CXX
13789 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13790 # the resulting binary.
13791 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13793 # Set to yes if building a shared library automatically hardcodes DIR into the library
13794 # and all subsequent libraries and executables linked against it.
13795 hardcode_automatic=$hardcode_automatic_CXX
13797 # Variables whose values should be saved in libtool wrapper scripts and
13798 # restored at relink time.
13799 variables_saved_for_relink="$variables_saved_for_relink"
13801 # Whether libtool must link a program against all its dependency libraries.
13802 link_all_deplibs=$link_all_deplibs_CXX
13804 # Compile-time system search path for libraries
13805 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13807 # Run-time system search path for libraries
13808 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13810 # Fix the shell variable \$srcfile for the compiler.
13811 fix_srcfile_path=$lt_fix_srcfile_path
13813 # Set to yes if exported symbols are required.
13814 always_export_symbols=$always_export_symbols_CXX
13816 # The commands to list exported symbols.
13817 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13819 # The commands to extract the exported symbol list from a shared archive.
13820 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13822 # Symbols that should not be listed in the preloaded symbols.
13823 exclude_expsyms=$lt_exclude_expsyms_CXX
13825 # Symbols that must always be exported.
13826 include_expsyms=$lt_include_expsyms_CXX
13828 # ### END LIBTOOL TAG CONFIG: $tagname
13834 # If there is no Makefile yet, we rely on a make rule to execute
13835 # `config.status --recheck' to rerun these tests and create the
13836 # libtool script then.
13837 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13838 if test -f "$ltmain_in"; then
13839 test -f Makefile
&& make "$ltmain"
13845 ac_cpp
='$CPP $CPPFLAGS'
13846 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13847 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13848 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13854 with_gnu_ldcxx
=$with_gnu_ld
13855 with_gnu_ld
=$lt_save_with_gnu_ld
13856 lt_cv_path_LDCXX
=$lt_cv_path_LD
13857 lt_cv_path_LD
=$lt_save_path_LD
13858 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13859 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13867 if test -n "$F77" && test "X$F77" != "Xno"; then
13870 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13871 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13872 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13875 archive_cmds_need_lc_F77
=no
13876 allow_undefined_flag_F77
=
13877 always_export_symbols_F77
=no
13878 archive_expsym_cmds_F77
=
13879 export_dynamic_flag_spec_F77
=
13880 hardcode_direct_F77
=no
13881 hardcode_libdir_flag_spec_F77
=
13882 hardcode_libdir_flag_spec_ld_F77
=
13883 hardcode_libdir_separator_F77
=
13884 hardcode_minus_L_F77
=no
13885 hardcode_automatic_F77
=no
13887 module_expsym_cmds_F77
=
13888 link_all_deplibs_F77
=unknown
13889 old_archive_cmds_F77
=$old_archive_cmds
13890 no_undefined_flag_F77
=
13891 whole_archive_flag_spec_F77
=
13892 enable_shared_with_static_runtimes_F77
=no
13894 # Source file extension for f77 test sources.
13897 # Object file extension for compiled f77 test sources.
13901 # Code to be used in simple compile tests
13902 lt_simple_compile_test_code
="\
13908 # Code to be used in simple link tests
13909 lt_simple_link_test_code
="\
13914 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13916 # If no C compiler was specified, use CC.
13919 # If no C compiler flags were specified, use CFLAGS.
13920 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13922 # Allow CC to be a program name with arguments.
13926 # save warnings/boilerplate of simple test code
13927 ac_outfile
=conftest.
$ac_objext
13928 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
13929 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13930 _lt_compiler_boilerplate
=`cat conftest.err`
13933 ac_outfile
=conftest.
$ac_objext
13934 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
13935 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13936 _lt_linker_boilerplate
=`cat conftest.err`
13940 # Allow CC to be a program name with arguments.
13945 for cc_temp
in $compiler""; do
13947 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13948 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13953 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13956 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13957 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13958 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13959 echo "${ECHO_T}$can_build_shared" >&6; }
13961 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13962 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13963 test "$can_build_shared" = "no" && enable_shared
=no
13965 # On AIX, shared libraries and static libraries use the same namespace, and
13966 # are all built from PIC.
13969 test "$enable_shared" = yes && enable_static
=no
13970 if test -n "$RANLIB"; then
13971 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13972 postinstall_cmds
='$RANLIB $lib'
13976 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13977 test "$enable_shared" = yes && enable_static
=no
13981 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13982 echo "${ECHO_T}$enable_shared" >&6; }
13984 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13985 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13986 # Make sure either enable_shared or enable_static is yes.
13987 test "$enable_shared" = yes || enable_static
=yes
13988 { echo "$as_me:$LINENO: result: $enable_static" >&5
13989 echo "${ECHO_T}$enable_static" >&6; }
13994 lt_prog_compiler_wl_F77
=
13995 lt_prog_compiler_pic_F77
=
13996 lt_prog_compiler_static_F77
=
13998 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13999 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14001 if test "$GCC" = yes; then
14002 lt_prog_compiler_wl_F77
='-Wl,'
14003 lt_prog_compiler_static_F77
='-static'
14007 # All AIX code is PIC.
14008 if test "$host_cpu" = ia64
; then
14009 # AIX 5 now supports IA64 processor
14010 lt_prog_compiler_static_F77
='-Bstatic'
14015 # FIXME: we need at least 68020 code to build shared libraries, but
14016 # adding the `-m68020' flag to GCC prevents building anything better,
14018 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
14021 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14022 # PIC is the default for these OSes.
14025 mingw
* | cygwin
* | pw32
* | os2
*)
14026 # This hack is so that the source file can tell whether it is being
14027 # built for inclusion in a dll (and should export symbols for example).
14028 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14029 # (--disable-auto-import) libraries
14030 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14033 darwin
* | rhapsody
*)
14034 # PIC is the default on this platform
14035 # Common symbols not allowed in MH_DYLIB files
14036 lt_prog_compiler_pic_F77
='-fno-common'
14040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14041 # Instead, we relocate shared libraries at runtime.
14045 # Just because we use GCC doesn't mean we suddenly get shared libraries
14046 # on systems that don't support them.
14047 lt_prog_compiler_can_build_shared_F77
=no
14052 if test -d /usr
/nec
; then
14053 lt_prog_compiler_pic_F77
=-Kconform_pic
14058 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14059 # not for PA HP-UX.
14065 lt_prog_compiler_pic_F77
='-fPIC'
14071 lt_prog_compiler_pic_F77
='-fPIC'
14075 # PORTME Check for flag to pass linker flags through the system compiler.
14078 lt_prog_compiler_wl_F77
='-Wl,'
14079 if test "$host_cpu" = ia64
; then
14080 # AIX 5 now supports IA64 processor
14081 lt_prog_compiler_static_F77
='-Bstatic'
14083 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
14087 # PIC is the default on this platform
14088 # Common symbols not allowed in MH_DYLIB files
14089 case $cc_basename in
14091 lt_prog_compiler_pic_F77
='-qnocommon'
14092 lt_prog_compiler_wl_F77
='-Wl,'
14097 mingw
* | cygwin
* | pw32
* | os2
*)
14098 # This hack is so that the source file can tell whether it is being
14099 # built for inclusion in a dll (and should export symbols for example).
14100 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14103 hpux9
* | hpux10
* | hpux11
*)
14104 lt_prog_compiler_wl_F77
='-Wl,'
14105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14106 # not for PA HP-UX.
14112 lt_prog_compiler_pic_F77
='+Z'
14115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14116 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
14119 irix5
* | irix6
* | nonstopux
*)
14120 lt_prog_compiler_wl_F77
='-Wl,'
14121 # PIC (with -KPIC) is the default.
14122 lt_prog_compiler_static_F77
='-non_shared'
14126 lt_prog_compiler_pic_F77
='-KPIC'
14127 lt_prog_compiler_static_F77
='-Bstatic'
14130 linux
* | k
*bsd
*-gnu)
14131 case $cc_basename in
14133 lt_prog_compiler_wl_F77
='-Wl,'
14134 lt_prog_compiler_pic_F77
='-KPIC'
14135 lt_prog_compiler_static_F77
='-static'
14137 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14138 # Portland Group compilers (*not* the Pentium gcc compiler,
14139 # which looks to be a dead project)
14140 lt_prog_compiler_wl_F77
='-Wl,'
14141 lt_prog_compiler_pic_F77
='-fpic'
14142 lt_prog_compiler_static_F77
='-Bstatic'
14145 lt_prog_compiler_wl_F77
='-Wl,'
14146 # All Alpha code is PIC.
14147 lt_prog_compiler_static_F77
='-non_shared'
14150 case `$CC -V 2>&1 | sed 5q` in
14153 lt_prog_compiler_pic_F77
='-KPIC'
14154 lt_prog_compiler_static_F77
='-Bstatic'
14155 lt_prog_compiler_wl_F77
='-Wl,'
14158 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14159 lt_prog_compiler_pic_F77
='-KPIC'
14160 lt_prog_compiler_static_F77
='-Bstatic'
14161 lt_prog_compiler_wl_F77
=''
14168 osf3
* | osf4
* | osf5
*)
14169 lt_prog_compiler_wl_F77
='-Wl,'
14170 # All OSF/1 code is PIC.
14171 lt_prog_compiler_static_F77
='-non_shared'
14175 lt_prog_compiler_static_F77
='-non_shared'
14179 lt_prog_compiler_pic_F77
='-KPIC'
14180 lt_prog_compiler_static_F77
='-Bstatic'
14181 case $cc_basename in
14182 f77
* | f90
* | f95
*)
14183 lt_prog_compiler_wl_F77
='-Qoption ld ';;
14185 lt_prog_compiler_wl_F77
='-Wl,';;
14190 lt_prog_compiler_wl_F77
='-Qoption ld '
14191 lt_prog_compiler_pic_F77
='-PIC'
14192 lt_prog_compiler_static_F77
='-Bstatic'
14195 sysv4 | sysv4.2uw2
* | sysv4.3
*)
14196 lt_prog_compiler_wl_F77
='-Wl,'
14197 lt_prog_compiler_pic_F77
='-KPIC'
14198 lt_prog_compiler_static_F77
='-Bstatic'
14202 if test -d /usr
/nec
;then
14203 lt_prog_compiler_pic_F77
='-Kconform_pic'
14204 lt_prog_compiler_static_F77
='-Bstatic'
14208 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14209 lt_prog_compiler_wl_F77
='-Wl,'
14210 lt_prog_compiler_pic_F77
='-KPIC'
14211 lt_prog_compiler_static_F77
='-Bstatic'
14215 lt_prog_compiler_wl_F77
='-Wl,'
14216 lt_prog_compiler_can_build_shared_F77
=no
14220 lt_prog_compiler_pic_F77
='-pic'
14221 lt_prog_compiler_static_F77
='-Bstatic'
14225 lt_prog_compiler_can_build_shared_F77
=no
14230 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14231 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14234 # Check to make sure the PIC flag actually works.
14236 if test -n "$lt_prog_compiler_pic_F77"; then
14238 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14239 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14240 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 lt_prog_compiler_pic_works_F77
=no
14244 ac_outfile
=conftest.
$ac_objext
14245 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14246 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
14247 # Insert the option either (1) after the last *FLAGS variable, or
14248 # (2) before a word containing "conftest.", or (3) at the end.
14249 # Note that $ac_compile itself does not contain backslashes and begins
14250 # with a dollar sign (not a hyphen), so the echo should work correctly.
14251 # The option is referenced via a variable to avoid confusing sed.
14252 lt_compile
=`echo "$ac_compile" | $SED \
14253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14255 -e 's:$: $lt_compiler_flag:'`
14256 (eval echo "\"\$as_me:14256: $lt_compile\"" >&5)
14257 (eval "$lt_compile" 2>conftest.err
)
14259 cat conftest.err
>&5
14260 echo "$as_me:14260: \$? = $ac_status" >&5
14261 if (exit $ac_status) && test -s "$ac_outfile"; then
14262 # The compiler can only warn and ignore the option if not recognized
14263 # So say no if there are warnings other than the usual output.
14264 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14265 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14266 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14267 lt_prog_compiler_pic_works_F77
=yes
14273 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14274 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14276 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14277 case $lt_prog_compiler_pic_F77 in
14279 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14282 lt_prog_compiler_pic_F77
=
14283 lt_prog_compiler_can_build_shared_F77
=no
14288 # For platforms which do not support PIC, -DPIC is meaningless:
14290 lt_prog_compiler_pic_F77
=
14293 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14298 # Check to make sure the static flag actually works.
14300 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14301 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14302 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14303 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 lt_prog_compiler_static_works_F77
=no
14307 save_LDFLAGS
="$LDFLAGS"
14308 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14309 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14310 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14311 # The linker can only warn and ignore the option if not recognized
14312 # So say no if there are warnings
14313 if test -s conftest.err
; then
14314 # Append any errors to the config.log.
14315 cat conftest.err
1>&5
14316 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14317 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14318 if diff conftest.exp conftest.er2
>/dev
/null
; then
14319 lt_prog_compiler_static_works_F77
=yes
14322 lt_prog_compiler_static_works_F77
=yes
14326 LDFLAGS
="$save_LDFLAGS"
14329 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14330 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14332 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14335 lt_prog_compiler_static_F77
=
14339 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14340 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14341 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 lt_cv_prog_compiler_c_o_F77
=no
14345 $rm -r conftest
2>/dev
/null
14349 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14351 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14352 # Insert the option either (1) after the last *FLAGS variable, or
14353 # (2) before a word containing "conftest.", or (3) at the end.
14354 # Note that $ac_compile itself does not contain backslashes and begins
14355 # with a dollar sign (not a hyphen), so the echo should work correctly.
14356 lt_compile
=`echo "$ac_compile" | $SED \
14357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14359 -e 's:$: $lt_compiler_flag:'`
14360 (eval echo "\"\$as_me:14360: $lt_compile\"" >&5)
14361 (eval "$lt_compile" 2>out
/conftest.err
)
14363 cat out
/conftest.err
>&5
14364 echo "$as_me:14364: \$? = $ac_status" >&5
14365 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14367 # The compiler can only warn and ignore the option if not recognized
14368 # So say no if there are warnings
14369 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14370 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14371 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14372 lt_cv_prog_compiler_c_o_F77
=yes
14377 # SGI C++ compiler will create directory out/ii_files/ for
14378 # template instantiation
14379 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14380 $rm out
/* && rmdir out
14386 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14387 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14390 hard_links
="nottested"
14391 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14392 # do not overwrite the value of need_locks provided by the user
14393 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14394 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14397 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14399 ln conftest.a conftest.b
2>&5 || hard_links
=no
14400 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14401 { echo "$as_me:$LINENO: result: $hard_links" >&5
14402 echo "${ECHO_T}$hard_links" >&6; }
14403 if test "$hard_links" = no
; then
14404 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14405 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14412 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14413 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14416 allow_undefined_flag_F77
=
14417 enable_shared_with_static_runtimes_F77
=no
14419 archive_expsym_cmds_F77
=
14420 old_archive_From_new_cmds_F77
=
14421 old_archive_from_expsyms_cmds_F77
=
14422 export_dynamic_flag_spec_F77
=
14423 whole_archive_flag_spec_F77
=
14424 thread_safe_flag_spec_F77
=
14425 hardcode_libdir_flag_spec_F77
=
14426 hardcode_libdir_flag_spec_ld_F77
=
14427 hardcode_libdir_separator_F77
=
14428 hardcode_direct_F77
=no
14429 hardcode_minus_L_F77
=no
14430 hardcode_shlibpath_var_F77
=unsupported
14431 link_all_deplibs_F77
=unknown
14432 hardcode_automatic_F77
=no
14434 module_expsym_cmds_F77
=
14435 always_export_symbols_F77
=no
14436 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14437 # include_expsyms should be a list of space-separated symbols to be *always*
14438 # included in the symbol list
14439 include_expsyms_F77
=
14440 # exclude_expsyms can be an extended regexp of symbols to exclude
14441 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14442 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14443 # as well as any symbol that contains `d'.
14444 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14445 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14446 # platforms (ab)use it in PIC code, but their linkers get confused if
14447 # the symbol is explicitly referenced. Since portable code cannot
14448 # rely on this symbol name, it's probably fine to never include it in
14449 # preloaded symbol tables.
14450 extract_expsyms_cmds
=
14451 # Just being paranoid about ensuring that cc_basename is set.
14452 for cc_temp
in $compiler""; do
14454 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14455 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14460 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14463 cygwin
* | mingw
* | pw32
*)
14464 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14465 # When not using gcc, we currently assume that we are using
14466 # Microsoft Visual C++.
14467 if test "$GCC" != yes; then
14472 # we just hope/assume this is gcc and not c89 (= MSVC++)
14481 if test "$with_gnu_ld" = yes; then
14482 # If archive_cmds runs LD, not CC, wlarc should be empty
14485 # Set some defaults for GNU ld with shared library support. These
14486 # are reset later if shared libraries are not supported. Putting them
14487 # here allows them to be overridden if necessary.
14488 runpath_var
=LD_RUN_PATH
14489 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14490 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14491 # ancient GNU ld didn't support --whole-archive et. al.
14492 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14493 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14495 whole_archive_flag_spec_F77
=
14497 supports_anon_versioning
=no
14498 case `$LD -v 2>/dev/null` in
14499 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14500 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14501 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14502 *\
2.11.
*) ;; # other 2.11 versions
14503 *) supports_anon_versioning
=yes ;;
14506 # See if GNU ld supports shared libraries.
14508 aix3
* | aix4
* | aix5
*)
14509 # On AIX/PPC, the GNU linker is very broken
14510 if test "$host_cpu" != ia64
; then
14514 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14515 *** to be unable to reliably create shared libraries on AIX.
14516 *** Therefore, libtool is disabling shared libraries support. If you
14517 *** really care for shared libraries, you may want to modify your PATH
14518 *** so that a non-GNU linker is found, and then restart.
14525 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)'
14526 hardcode_libdir_flag_spec_F77
='-L$libdir'
14527 hardcode_minus_L_F77
=yes
14529 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14530 # that the semantics of dynamic libraries on AmigaOS, at least up
14531 # to version 4, is to share data among multiple programs linked
14532 # with the same dynamic library. Since this doesn't match the
14533 # behavior of shared libraries on other platforms, we can't use
14539 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14540 allow_undefined_flag_F77
=unsupported
14541 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14542 # support --undefined. This deserves some investigation. FIXME
14543 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14549 cygwin
* | mingw
* | pw32
*)
14550 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14551 # as there is no search path for DLLs.
14552 hardcode_libdir_flag_spec_F77
='-L$libdir'
14553 allow_undefined_flag_F77
=unsupported
14554 always_export_symbols_F77
=no
14555 enable_shared_with_static_runtimes_F77
=yes
14556 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14558 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14559 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14560 # If the export-symbols file already is a .def file (1st line
14561 # is EXPORTS), use it as is; otherwise, prepend...
14562 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14563 cp $export_symbols $output_objdir/$soname.def;
14565 echo EXPORTS > $output_objdir/$soname.def;
14566 cat $export_symbols >> $output_objdir/$soname.def;
14568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14575 hardcode_direct_F77
=no
14576 hardcode_shlibpath_var_F77
=no
14577 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14578 export_dynamic_flag_spec_F77
='${wl}-E'
14579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14580 # Instead, shared libraries are loaded at an image base (0x10000000 by
14581 # default) and relocated if they conflict, which is a slow very memory
14582 # consuming and fragmenting process. To avoid this, we pick a random,
14583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14584 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14585 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'
14586 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'
14589 gnu
* | linux
* | k
*bsd
*-gnu)
14590 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14592 case $cc_basename,$host_cpu in
14593 pgcc
*) # Portland Group C compiler
14594 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'
14595 tmp_addflag
=' $pic_flag'
14597 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14598 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'
14599 tmp_addflag
=' $pic_flag -Mnomain' ;;
14600 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14601 tmp_addflag
=' -i_dynamic' ;;
14602 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14603 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14604 ifc
* | ifort
*) # Intel Fortran compiler
14605 tmp_addflag
=' -nofor_main' ;;
14607 case `$CC -V 2>&1 | sed 5q` in
14608 *Sun\ C
*) # Sun C 5.9
14609 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'
14610 tmp_sharedflag
='-G' ;;
14611 *Sun\ F
*) # Sun Fortran 8.3
14612 tmp_sharedflag
='-G' ;;
14614 tmp_sharedflag
='-shared' ;;
14616 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14618 if test $supports_anon_versioning = yes; then
14619 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14621 $echo "local: *; };" >> $output_objdir/$libname.ver~
14622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14630 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14631 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14634 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14635 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14640 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14645 *** create shared libraries on Solaris systems. Therefore, libtool
14646 *** is disabling shared libraries support. We urge you to upgrade GNU
14647 *** binutils to release 2.9.1 or newer. Another option is to modify
14648 *** your PATH or compiler configuration so that the native linker is
14649 *** used, and then restart.
14652 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14653 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14654 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14660 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14661 case `$LD -v 2>&1` in
14662 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14666 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14667 *** reliably create shared libraries on SCO systems. Therefore, libtool
14668 *** is disabling shared libraries support. We urge you to upgrade GNU
14669 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14670 *** your PATH or compiler configuration so that the native linker is
14671 *** used, and then restart.
14676 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14677 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14678 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14679 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14688 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14690 hardcode_direct_F77
=yes
14691 hardcode_shlibpath_var_F77
=no
14695 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14696 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14697 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14704 if test "$ld_shlibs_F77" = no
; then
14706 hardcode_libdir_flag_spec_F77
=
14707 export_dynamic_flag_spec_F77
=
14708 whole_archive_flag_spec_F77
=
14711 # PORTME fill in a description of your system's linker (not GNU ld)
14714 allow_undefined_flag_F77
=unsupported
14715 always_export_symbols_F77
=yes
14716 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'
14717 # Note: this linker hardcodes the directories in LIBPATH if there
14718 # are no directories specified by -L.
14719 hardcode_minus_L_F77
=yes
14720 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14721 # Neither direct hardcoding nor static linking is supported with a
14723 hardcode_direct_F77
=unsupported
14728 if test "$host_cpu" = ia64
; then
14729 # On IA64, the linker does run time linking by default, so we don't
14730 # have to do anything special.
14731 aix_use_runtimelinking
=no
14732 exp_sym_flag
='-Bexport'
14735 # If we're using GNU nm, then we don't want the "-C" option.
14736 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14737 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14738 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'
14740 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'
14742 aix_use_runtimelinking
=no
14744 # Test if we are trying to use run time linking or normal
14745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14746 # need to do runtime linking.
14747 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14748 for ld_flag
in $LDFLAGS; do
14749 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14750 aix_use_runtimelinking
=yes
14757 exp_sym_flag
='-bexport'
14758 no_entry_flag
='-bnoentry'
14761 # When large executables or shared objects are built, AIX ld can
14762 # have problems creating the table of contents. If linking a library
14763 # or program results in "error TOC overflow" add -mminimal-toc to
14764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14767 archive_cmds_F77
=''
14768 hardcode_direct_F77
=yes
14769 hardcode_libdir_separator_F77
=':'
14770 link_all_deplibs_F77
=yes
14772 if test "$GCC" = yes; then
14773 case $host_os in aix4.
[012]|aix4.
[012].
*)
14774 # We only want to do this on AIX 4.2 and lower, the check
14775 # below for broken collect2 doesn't work under 4.3+
14776 collect2name
=`${CC} -print-prog-name=collect2`
14777 if test -f "$collect2name" && \
14778 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14780 # We have reworked collect2
14783 # We have old collect2
14784 hardcode_direct_F77
=unsupported
14785 # It fails to find uninstalled libraries when the uninstalled
14786 # path is not listed in the libpath. Setting hardcode_minus_L
14787 # to unsupported forces relinking
14788 hardcode_minus_L_F77
=yes
14789 hardcode_libdir_flag_spec_F77
='-L$libdir'
14790 hardcode_libdir_separator_F77
=
14794 shared_flag
='-shared'
14795 if test "$aix_use_runtimelinking" = yes; then
14796 shared_flag
="$shared_flag "'${wl}-G'
14800 if test "$host_cpu" = ia64
; then
14801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14802 # chokes on -Wl,-G. The following line is correct:
14805 if test "$aix_use_runtimelinking" = yes; then
14806 shared_flag
='${wl}-G'
14808 shared_flag
='${wl}-bM:SRE'
14813 # It seems that -bexpall does not export symbols beginning with
14814 # underscore (_), so it is better to generate a list of symbols to export.
14815 always_export_symbols_F77
=yes
14816 if test "$aix_use_runtimelinking" = yes; then
14817 # Warning - without using the other runtime loading flags (-brtl),
14818 # -berok will link without error, but may produce a broken library.
14819 allow_undefined_flag_F77
='-berok'
14820 # Determine the default libpath from the value encoded in an empty executable.
14821 cat >conftest.
$ac_ext <<_ACEOF
14826 rm -f conftest.
$ac_objext conftest
$ac_exeext
14827 if { (ac_try
="$ac_link"
14828 case "(($ac_try" in
14829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_link") 2>conftest.er1
14835 grep -v '^ *+' conftest.er1 >conftest.err
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_f77_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest$ac_exeext &&
14843 $as_test_x conftest$ac_exeext; then
14845 lt_aix_libpath_sed='
14846 /Import File Strings/,/^$/ {
14852 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14853 # Check for a 64-bit object if we didn't find anything.
14854 if test -z "$aix_libpath"; then
14855 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14865 conftest$ac_exeext conftest.$ac_ext
14866 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14868 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14869 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"
14871 if test "$host_cpu" = ia64; then
14872 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14873 allow_undefined_flag_F77="-z nodefs"
14874 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"
14876 # Determine the default libpath from the value encoded in an empty executable.
14877 cat >conftest.$ac_ext <<_ACEOF
14882 rm -f conftest.$ac_objext conftest$ac_exeext
14883 if { (ac_try="$ac_link"
14884 case "(($ac_try" in
14885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14886 *) ac_try_echo
=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_link") 2>conftest.er1
14891 grep -v '^ *+' conftest.er1
>conftest.err
14893 cat conftest.err
>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } && {
14896 test -z "$ac_f77_werror_flag" ||
14897 test ! -s conftest.err
14898 } && test -s conftest
$ac_exeext &&
14899 $as_test_x conftest
$ac_exeext; then
14901 lt_aix_libpath_sed
='
14902 /Import File Strings/,/^$/ {
14908 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14909 # Check for a 64-bit object if we didn't find anything.
14910 if test -z "$aix_libpath"; then
14911 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.
$ac_ext >&5
14920 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14921 conftest
$ac_exeext conftest.
$ac_ext
14922 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14924 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14925 # Warning - without using the other run time loading flags,
14926 # -berok will link without error, but may produce a broken library.
14927 no_undefined_flag_F77
=' ${wl}-bernotok'
14928 allow_undefined_flag_F77
=' ${wl}-berok'
14929 # Exported symbols can be pulled into shared objects from archives
14930 whole_archive_flag_spec_F77
='$convenience'
14931 archive_cmds_need_lc_F77
=yes
14932 # This is similar to how AIX traditionally builds its shared libraries.
14933 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'
14939 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)'
14940 hardcode_libdir_flag_spec_F77
='-L$libdir'
14941 hardcode_minus_L_F77
=yes
14942 # see comment about different semantics on the GNU ld section
14947 export_dynamic_flag_spec_F77
=-rdynamic
14950 cygwin
* | mingw
* | pw32
*)
14951 # When not using gcc, we currently assume that we are using
14952 # Microsoft Visual C++.
14953 # hardcode_libdir_flag_spec is actually meaningless, as there is
14954 # no search path for DLLs.
14955 hardcode_libdir_flag_spec_F77
=' '
14956 allow_undefined_flag_F77
=unsupported
14957 # Tell ltmain to make .lib files, not .a files.
14959 # Tell ltmain to make .dll files, not .so files.
14961 # FIXME: Setting linknames here is a bad hack.
14962 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14963 # The linker will automatically build a .lib file if we build a DLL.
14964 old_archive_From_new_cmds_F77
='true'
14965 # FIXME: Should let the user specify the lib program.
14966 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
14967 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14968 enable_shared_with_static_runtimes_F77
=yes
14971 darwin
* | rhapsody
*)
14973 rhapsody
* | darwin1.
[012])
14974 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14977 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14978 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14980 case ${MACOSX_DEPLOYMENT_TARGET} in
14982 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14985 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14991 archive_cmds_need_lc_F77
=no
14992 hardcode_direct_F77
=no
14993 hardcode_automatic_F77
=yes
14994 hardcode_shlibpath_var_F77
=unsupported
14995 whole_archive_flag_spec_F77
=''
14996 link_all_deplibs_F77
=yes
14997 if test "$GCC" = yes ; then
14998 output_verbose_link_cmd
='echo'
14999 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15000 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15001 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15002 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}'
15003 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}'
15005 case $cc_basename in
15007 output_verbose_link_cmd
='echo'
15008 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15009 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15010 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15011 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}'
15012 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}'
15022 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15023 hardcode_libdir_flag_spec_F77
='-L$libdir'
15024 hardcode_shlibpath_var_F77
=no
15031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15032 # support. Future versions do this automatically, but an explicit c++rt0.o
15033 # does not break anything, and helps significantly (at the cost of a little
15036 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15037 hardcode_libdir_flag_spec_F77
='-R$libdir'
15038 hardcode_direct_F77
=yes
15039 hardcode_shlibpath_var_F77
=no
15042 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15044 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15045 hardcode_direct_F77
=yes
15046 hardcode_minus_L_F77
=yes
15047 hardcode_shlibpath_var_F77
=no
15050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15051 freebsd
* | dragonfly
*)
15052 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15053 hardcode_libdir_flag_spec_F77
='-R$libdir'
15054 hardcode_direct_F77
=yes
15055 hardcode_shlibpath_var_F77
=no
15059 if test "$GCC" = yes; then
15060 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'
15062 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'
15064 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15065 hardcode_libdir_separator_F77
=:
15066 hardcode_direct_F77
=yes
15068 # hardcode_minus_L: Not really in the search PATH,
15069 # but as the default location of the library.
15070 hardcode_minus_L_F77
=yes
15071 export_dynamic_flag_spec_F77
='${wl}-E'
15075 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15076 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15078 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15080 if test "$with_gnu_ld" = no
; then
15081 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15082 hardcode_libdir_separator_F77
=:
15084 hardcode_direct_F77
=yes
15085 export_dynamic_flag_spec_F77
='${wl}-E'
15087 # hardcode_minus_L: Not really in the search PATH,
15088 # but as the default location of the library.
15089 hardcode_minus_L_F77
=yes
15094 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15097 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15100 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15103 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15109 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15112 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15115 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15119 if test "$with_gnu_ld" = no
; then
15120 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15121 hardcode_libdir_separator_F77
=:
15125 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
15126 hardcode_direct_F77
=no
15127 hardcode_shlibpath_var_F77
=no
15130 hardcode_direct_F77
=yes
15131 export_dynamic_flag_spec_F77
='${wl}-E'
15133 # hardcode_minus_L: Not really in the search PATH,
15134 # but as the default location of the library.
15135 hardcode_minus_L_F77
=yes
15141 irix5
* | irix6
* | nonstopux
*)
15142 if test "$GCC" = yes; then
15143 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'
15145 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'
15146 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
15148 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15149 hardcode_libdir_separator_F77
=:
15150 link_all_deplibs_F77
=yes
15154 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15155 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15157 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15159 hardcode_libdir_flag_spec_F77
='-R$libdir'
15160 hardcode_direct_F77
=yes
15161 hardcode_shlibpath_var_F77
=no
15165 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15166 hardcode_direct_F77
=yes
15167 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15168 hardcode_libdir_separator_F77
=:
15169 hardcode_shlibpath_var_F77
=no
15173 if test -f /usr
/libexec
/ld.so
; then
15174 hardcode_direct_F77
=yes
15175 hardcode_shlibpath_var_F77
=no
15176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15177 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15178 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15179 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15180 export_dynamic_flag_spec_F77
='${wl}-E'
15183 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15184 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185 hardcode_libdir_flag_spec_F77
='-R$libdir'
15188 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15189 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15199 hardcode_libdir_flag_spec_F77
='-L$libdir'
15200 hardcode_minus_L_F77
=yes
15201 allow_undefined_flag_F77
=unsupported
15202 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'
15203 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15207 if test "$GCC" = yes; then
15208 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15209 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'
15211 allow_undefined_flag_F77
=' -expect_unresolved \*'
15212 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'
15214 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15215 hardcode_libdir_separator_F77
=:
15218 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15219 if test "$GCC" = yes; then
15220 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15221 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'
15222 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15224 allow_undefined_flag_F77
=' -expect_unresolved \*'
15225 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'
15226 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~
15227 $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'
15229 # Both c and cxx compiler support -rpath directly
15230 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
15232 hardcode_libdir_separator_F77
=:
15236 no_undefined_flag_F77
=' -z text'
15237 if test "$GCC" = yes; then
15239 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15240 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15241 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15244 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15245 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15246 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15248 hardcode_libdir_flag_spec_F77
='-R$libdir'
15249 hardcode_shlibpath_var_F77
=no
15251 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15253 # The compiler driver will combine and reorder linker options,
15254 # but understands `-z linker_flag'. GCC discards it without `$wl',
15255 # but is careful enough not to reorder.
15256 # Supported since Solaris 2.6 (maybe 2.5.1?)
15257 if test "$GCC" = yes; then
15258 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15260 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
15264 link_all_deplibs_F77
=yes
15268 if test "x$host_vendor" = xsequent
; then
15269 # Use $CC to link under sequent, because it throws in some extra .o
15270 # files that make .init and .fini sections work.
15271 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15273 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15275 hardcode_libdir_flag_spec_F77
='-L$libdir'
15276 hardcode_direct_F77
=yes
15277 hardcode_minus_L_F77
=yes
15278 hardcode_shlibpath_var_F77
=no
15282 case $host_vendor in
15284 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15285 hardcode_direct_F77
=yes # is this really true???
15288 ## LD is ld it makes a PLAMLIB
15289 ## CC just makes a GrossModule.
15290 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15291 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15292 hardcode_direct_F77
=no
15295 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15296 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15299 runpath_var
='LD_RUN_PATH'
15300 hardcode_shlibpath_var_F77
=no
15304 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15305 hardcode_shlibpath_var_F77
=no
15306 export_dynamic_flag_spec_F77
='-Bexport'
15310 if test -d /usr
/nec
; then
15311 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15312 hardcode_shlibpath_var_F77
=no
15313 runpath_var
=LD_RUN_PATH
15314 hardcode_runpath_var
=yes
15319 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15320 no_undefined_flag_F77
='${wl}-z,text'
15321 archive_cmds_need_lc_F77
=no
15322 hardcode_shlibpath_var_F77
=no
15323 runpath_var
='LD_RUN_PATH'
15325 if test "$GCC" = yes; then
15326 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15327 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15329 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15330 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15334 sysv5
* | sco3.2v5
* | sco5v6
*)
15335 # Note: We can NOT use -z defs as we might desire, because we do not
15336 # link with -lc, and that would cause any symbols used from libc to
15337 # always be unresolved, which means just about no library would
15338 # ever link correctly. If we're not using GNU ld we use -z text
15339 # though, which does catch some bad symbols but isn't as heavy-handed
15341 no_undefined_flag_F77
='${wl}-z,text'
15342 allow_undefined_flag_F77
='${wl}-z,nodefs'
15343 archive_cmds_need_lc_F77
=no
15344 hardcode_shlibpath_var_F77
=no
15345 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15346 hardcode_libdir_separator_F77
=':'
15347 link_all_deplibs_F77
=yes
15348 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15349 runpath_var
='LD_RUN_PATH'
15351 if test "$GCC" = yes; then
15352 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15353 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15355 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15356 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15361 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15362 hardcode_libdir_flag_spec_F77
='-L$libdir'
15363 hardcode_shlibpath_var_F77
=no
15372 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15373 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15374 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15377 # Do we need to explicitly link libc?
15379 case "x$archive_cmds_need_lc_F77" in
15381 # Assume -lc should be added
15382 archive_cmds_need_lc_F77
=yes
15384 if test "$enable_shared" = yes && test "$GCC" = yes; then
15385 case $archive_cmds_F77 in
15387 # FIXME: we may have to deal with multi-command sequences.
15390 # Test whether the compiler implicitly links with -lc since on some
15391 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15392 # to ld, don't add -lc before -lgcc.
15393 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15394 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15396 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15399 (eval $ac_compile) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } 2>conftest.err
; then
15405 libobjs
=conftest.
$ac_objext
15407 wl
=$lt_prog_compiler_wl_F77
15408 pic_flag
=$lt_prog_compiler_pic_F77
15414 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15415 allow_undefined_flag_F77
=
15416 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15417 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }
15422 archive_cmds_need_lc_F77
=no
15424 archive_cmds_need_lc_F77
=yes
15426 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15428 cat conftest.err
1>&5
15431 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15432 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15439 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15440 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15441 library_names_spec
=
15442 libname_spec
='lib$name'
15446 postuninstall_cmds
=
15450 shlibpath_overrides_runpath
=unknown
15452 dynamic_linker
="$host_os ld.so"
15453 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15455 need_lib_prefix
=unknown
15456 hardcode_into_libs
=no
15458 # when you set need_version to no, make sure it does not cause -set_version
15459 # flags to be left without arguments
15460 need_version
=unknown
15465 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15466 shlibpath_var
=LIBPATH
15468 # AIX 3 has no versioning support, so we append a major version to the name.
15469 soname_spec
='${libname}${release}${shared_ext}$major'
15476 hardcode_into_libs
=yes
15477 if test "$host_cpu" = ia64
; then
15478 # AIX 5 supports IA64
15479 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15480 shlibpath_var
=LD_LIBRARY_PATH
15482 # With GCC up to 2.95.x, collect2 would create an import file
15483 # for dependence libraries. The import file would start with
15484 # the line `#! .'. This would cause the generated library to
15485 # depend on `.', always an invalid library. This was fixed in
15486 # development snapshots of GCC prior to 3.0.
15488 aix4 | aix4.
[01] | aix4.
[01].
*)
15489 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15491 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15494 can_build_shared
=no
15498 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15499 # soname into executable. Probably we can add versioning support to
15500 # collect2, so additional links can be useful in future.
15501 if test "$aix_use_runtimelinking" = yes; then
15502 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15503 # instead of lib<name>.a to let people know that these are not
15504 # typical AIX shared libraries.
15505 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15507 # We preserve .a as extension for shared libraries through AIX4.2
15508 # and later when we are not doing run time linking.
15509 library_names_spec
='${libname}${release}.a $libname.a'
15510 soname_spec
='${libname}${release}${shared_ext}$major'
15512 shlibpath_var
=LIBPATH
15517 library_names_spec
='$libname.ixlibrary $libname.a'
15518 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15519 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'
15523 library_names_spec
='${libname}${shared_ext}'
15524 dynamic_linker
="$host_os ld.so"
15525 shlibpath_var
=LIBRARY_PATH
15531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec
='${libname}${release}${shared_ext}$major'
15533 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15534 shlibpath_var
=LD_LIBRARY_PATH
15535 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15536 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15537 # the default ld.so.conf also contains /usr/contrib/lib and
15538 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15539 # libtool to hard-code these into programs
15542 cygwin
* | mingw
* | pw32
*)
15543 version_type
=windows
15548 case $GCC,$host_os in
15549 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15550 library_names_spec
='$libname.dll.a'
15551 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15552 postinstall_cmds
='base_file=`basename \${file}`~
15553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15554 dldir=$destdir/`dirname \$dlpath`~
15555 test -d \$dldir || mkdir -p \$dldir~
15556 $install_prog $dir/$dlname \$dldir/$dlname~
15557 chmod a+x \$dldir/$dlname'
15558 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15559 dlpath=$dir/\$dldll~
15561 shlibpath_overrides_runpath
=yes
15565 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15566 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15567 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15570 # MinGW DLLs use traditional 'lib' prefix
15571 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15572 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15573 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15574 # It is most probably a Windows format PATH printed by
15575 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15576 # path with ; separators, and with drive letters. We can handle the
15577 # drive letters (cygwin fileutils understands them), so leave them,
15578 # especially as we might pass files found there to a mingw objdump,
15579 # which wouldn't understand a cygwinified path. Ahh.
15580 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15582 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15586 # pw32 DLLs use 'pw' prefix rather than 'lib'
15587 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15593 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15596 dynamic_linker
='Win32 ld.exe'
15597 # FIXME: first we should search . and the directory the executable is in
15601 darwin
* | rhapsody
*)
15602 dynamic_linker
="$host_os dyld"
15603 version_type
=darwin
15606 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15607 soname_spec
='${libname}${release}${major}$shared_ext'
15608 shlibpath_overrides_runpath
=yes
15609 shlibpath_var
=DYLD_LIBRARY_PATH
15610 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15612 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15620 soname_spec
='${libname}${release}${shared_ext}$major'
15621 shlibpath_var
=LD_LIBRARY_PATH
15628 freebsd
* | dragonfly
*)
15629 # DragonFly does not have aout. When/if they implement a new
15630 # versioning mechanism, adjust this.
15631 if test -x /usr
/bin
/objformat
; then
15632 objformat
=`/usr/bin/objformat`
15635 freebsd
[123]*) objformat
=aout
;;
15636 *) objformat
=elf
;;
15639 version_type
=freebsd-
$objformat
15640 case $version_type in
15642 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15647 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15651 shlibpath_var
=LD_LIBRARY_PATH
15654 shlibpath_overrides_runpath
=yes
15656 freebsd3.
[01]* | freebsdelf3.
[01]*)
15657 shlibpath_overrides_runpath
=yes
15658 hardcode_into_libs
=yes
15660 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15661 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15662 shlibpath_overrides_runpath
=no
15663 hardcode_into_libs
=yes
15665 *) # from 4.6 on, and DragonFly
15666 shlibpath_overrides_runpath
=yes
15667 hardcode_into_libs
=yes
15676 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15677 soname_spec
='${libname}${release}${shared_ext}$major'
15678 shlibpath_var
=LD_LIBRARY_PATH
15679 hardcode_into_libs
=yes
15682 hpux9
* | hpux10
* | hpux11
*)
15683 # Give a soname corresponding to the major version so that dld.sl refuses to
15684 # link against other versions.
15691 hardcode_into_libs
=yes
15692 dynamic_linker
="$host_os dld.so"
15693 shlibpath_var
=LD_LIBRARY_PATH
15694 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15695 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15696 soname_spec
='${libname}${release}${shared_ext}$major'
15697 if test "X$HPUX_IA64_MODE" = X32
; then
15698 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15700 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15702 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15706 hardcode_into_libs
=yes
15707 dynamic_linker
="$host_os dld.sl"
15708 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15709 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15710 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15711 soname_spec
='${libname}${release}${shared_ext}$major'
15712 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15713 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15717 dynamic_linker
="$host_os dld.sl"
15718 shlibpath_var
=SHLIB_PATH
15719 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15720 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 soname_spec
='${libname}${release}${shared_ext}$major'
15724 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15725 postinstall_cmds
='chmod 555 $lib'
15732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15733 soname_spec
='${libname}${release}${shared_ext}$major'
15734 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15735 shlibpath_var
=LD_LIBRARY_PATH
15736 shlibpath_overrides_runpath
=no
15737 hardcode_into_libs
=yes
15740 irix5
* | irix6
* | nonstopux
*)
15742 nonstopux
*) version_type
=nonstopux
;;
15744 if test "$lt_cv_prog_gnu_ld" = yes; then
15752 soname_spec
='${libname}${release}${shared_ext}$major'
15753 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15755 irix5
* | nonstopux
*)
15756 libsuff
= shlibsuff
=
15759 case $LD in # libtool.m4 will add one of these switches to LD
15760 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15761 libsuff
= shlibsuff
= libmagic
=32-bit;;
15762 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15763 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15764 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15765 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15766 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15770 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15771 shlibpath_overrides_runpath
=no
15772 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15773 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15774 hardcode_into_libs
=yes
15777 # No shared lib support for Linux oldld, aout, or coff.
15778 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15782 # This must be Linux ELF.
15783 linux
* | k
*bsd
*-gnu)
15787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec
='${libname}${release}${shared_ext}$major'
15789 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15790 shlibpath_var
=LD_LIBRARY_PATH
15791 shlibpath_overrides_runpath
=no
15792 # This implies no fast_install, which is unacceptable.
15793 # Some rework will be needed to allow for fast_install
15794 # before this can be enabled.
15795 hardcode_into_libs
=yes
15796 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15797 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15799 # Append ld.so.conf contents to the search path
15800 if test -f /etc
/ld.so.conf
; then
15801 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' ' '`
15802 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15805 # We used to test for /lib/ld.so.1 and disable shared libraries on
15806 # powerpc, because MkLinux only supported shared libraries with the
15807 # GNU dynamic linker. Since this was broken with cross compilers,
15808 # most powerpc-linux boxes support dynamic linking these days and
15809 # people can always --disable-shared, the test was removed, and we
15810 # assume the GNU/Linux dynamic linker is in use.
15811 dynamic_linker
='GNU/Linux ld.so'
15818 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15820 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15821 dynamic_linker
='NetBSD (a.out) ld.so'
15823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15824 soname_spec
='${libname}${release}${shared_ext}$major'
15825 dynamic_linker
='NetBSD ld.elf_so'
15827 shlibpath_var
=LD_LIBRARY_PATH
15828 shlibpath_overrides_runpath
=yes
15829 hardcode_into_libs
=yes
15834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835 shlibpath_var
=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath
=yes
15843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15844 soname_spec
='${libname}${release}${shared_ext}$major'
15845 shlibpath_var
=LD_LIBRARY_PATH
15846 shlibpath_overrides_runpath
=yes
15851 sys_lib_dlsearch_path_spec
="/usr/lib"
15853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15855 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15856 *) need_version
=no
;;
15858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15859 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15860 shlibpath_var
=LD_LIBRARY_PATH
15861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15863 openbsd2.
[89] | openbsd2.
[89].
*)
15864 shlibpath_overrides_runpath
=no
15867 shlibpath_overrides_runpath
=yes
15871 shlibpath_overrides_runpath
=yes
15876 libname_spec
='$name'
15879 library_names_spec
='$libname${shared_ext} $libname.a'
15880 dynamic_linker
='OS/2 ld.exe'
15881 shlibpath_var
=LIBPATH
15884 osf3
* | osf4
* | osf5
*)
15888 soname_spec
='${libname}${release}${shared_ext}$major'
15889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890 shlibpath_var
=LD_LIBRARY_PATH
15891 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15892 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904 soname_spec
='${libname}${release}${shared_ext}$major'
15905 shlibpath_var
=LD_LIBRARY_PATH
15906 shlibpath_overrides_runpath
=yes
15907 hardcode_into_libs
=yes
15908 # ldd complains unless libraries are executable
15909 postinstall_cmds
='chmod +x $lib'
15914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15915 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15916 shlibpath_var
=LD_LIBRARY_PATH
15917 shlibpath_overrides_runpath
=yes
15918 if test "$with_gnu_ld" = yes; then
15926 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec
='${libname}${release}${shared_ext}$major'
15928 shlibpath_var
=LD_LIBRARY_PATH
15929 case $host_vendor in
15931 shlibpath_overrides_runpath
=no
15933 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15934 runpath_var
=LD_RUN_PATH
15942 shlibpath_overrides_runpath
=no
15943 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15949 if test -d /usr
/nec
;then
15951 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15952 soname_spec
='$libname${shared_ext}.$major'
15953 shlibpath_var
=LD_LIBRARY_PATH
15957 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15958 version_type
=freebsd-elf
15961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15962 soname_spec
='${libname}${release}${shared_ext}$major'
15963 shlibpath_var
=LD_LIBRARY_PATH
15964 hardcode_into_libs
=yes
15965 if test "$with_gnu_ld" = yes; then
15966 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15967 shlibpath_overrides_runpath
=no
15969 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15970 shlibpath_overrides_runpath
=yes
15973 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15977 sys_lib_dlsearch_path_spec
='/usr/lib'
15982 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15983 soname_spec
='${libname}${release}${shared_ext}$major'
15984 shlibpath_var
=LD_LIBRARY_PATH
15991 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15992 echo "${ECHO_T}$dynamic_linker" >&6; }
15993 test "$dynamic_linker" = no
&& can_build_shared
=no
15995 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15996 if test "$GCC" = yes; then
15997 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16000 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16001 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16002 hardcode_action_F77
=
16003 if test -n "$hardcode_libdir_flag_spec_F77" || \
16004 test -n "$runpath_var_F77" || \
16005 test "X$hardcode_automatic_F77" = "Xyes" ; then
16007 # We can hardcode non-existant directories.
16008 if test "$hardcode_direct_F77" != no
&&
16009 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16010 # have to relink, otherwise we might link with an installed library
16011 # when we should be linking with a yet-to-be-installed one
16012 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16013 test "$hardcode_minus_L_F77" != no
; then
16014 # Linking always hardcodes the temporary library directory.
16015 hardcode_action_F77
=relink
16017 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16018 hardcode_action_F77
=immediate
16021 # We cannot hardcode anything, or else we can only hardcode existing
16023 hardcode_action_F77
=unsupported
16025 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16026 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16028 if test "$hardcode_action_F77" = relink
; then
16029 # Fast installation is not supported
16030 enable_fast_install
=no
16031 elif test "$shlibpath_overrides_runpath" = yes ||
16032 test "$enable_shared" = no
; then
16033 # Fast installation is not necessary
16034 enable_fast_install
=needless
16038 # The else clause should only fire when bootstrapping the
16039 # libtool distribution, otherwise you forgot to ship ltmain.sh
16040 # with your package, and you will get complaints that there are
16041 # no rules to generate ltmain.sh.
16042 if test -f "$ltmain"; then
16043 # See if we are running on zsh, and set the options which allow our commands through
16044 # without removal of \ escapes.
16045 if test -n "${ZSH_VERSION+set}" ; then
16046 setopt NO_GLOB_SUBST
16048 # Now quote all the things that may contain metacharacters while being
16049 # careful not to overquote the AC_SUBSTed values. We take copies of the
16050 # variables and quote the copies for generation of the libtool script.
16051 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16053 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16054 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16055 deplibs_check_method reload_flag reload_cmds need_locks \
16056 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16057 lt_cv_sys_global_symbol_to_c_name_address \
16058 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16059 old_postinstall_cmds old_postuninstall_cmds \
16063 lt_prog_compiler_wl_F77 \
16064 lt_prog_compiler_pic_F77 \
16065 lt_prog_compiler_static_F77 \
16066 lt_prog_compiler_no_builtin_flag_F77 \
16067 export_dynamic_flag_spec_F77 \
16068 thread_safe_flag_spec_F77 \
16069 whole_archive_flag_spec_F77 \
16070 enable_shared_with_static_runtimes_F77 \
16071 old_archive_cmds_F77 \
16072 old_archive_from_new_cmds_F77 \
16073 predep_objects_F77 \
16074 postdep_objects_F77 \
16077 compiler_lib_search_path_F77 \
16079 archive_expsym_cmds_F77 \
16080 postinstall_cmds_F77 \
16081 postuninstall_cmds_F77 \
16082 old_archive_from_expsyms_cmds_F77 \
16083 allow_undefined_flag_F77 \
16084 no_undefined_flag_F77 \
16085 export_symbols_cmds_F77 \
16086 hardcode_libdir_flag_spec_F77 \
16087 hardcode_libdir_flag_spec_ld_F77 \
16088 hardcode_libdir_separator_F77 \
16089 hardcode_automatic_F77 \
16091 module_expsym_cmds_F77 \
16092 lt_cv_prog_compiler_c_o_F77 \
16093 fix_srcfile_path_F77 \
16094 exclude_expsyms_F77 \
16095 include_expsyms_F77
; do
16098 old_archive_cmds_F77 | \
16099 old_archive_from_new_cmds_F77 | \
16100 archive_cmds_F77 | \
16101 archive_expsym_cmds_F77 | \
16102 module_cmds_F77 | \
16103 module_expsym_cmds_F77 | \
16104 old_archive_from_expsyms_cmds_F77 | \
16105 export_symbols_cmds_F77 | \
16106 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16107 postinstall_cmds | postuninstall_cmds | \
16108 old_postinstall_cmds | old_postuninstall_cmds | \
16109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
16110 # Double-quote double-evaled strings.
16111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16120 *'\$0 --fallback-echo"')
16121 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16127 cat <<__EOF__ >> "$cfgfile"
16128 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16132 # Shell to use when invoking shell scripts.
16135 # Whether or not to build shared libraries.
16136 build_libtool_libs=$enable_shared
16138 # Whether or not to build static libraries.
16139 build_old_libs=$enable_static
16141 # Whether or not to add -lc for building shared libraries.
16142 build_libtool_need_lc=$archive_cmds_need_lc_F77
16144 # Whether or not to disallow shared libs when runtime libs are static
16145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16147 # Whether or not to optimize for fast installation.
16148 fast_install=$enable_fast_install
16151 host_alias=$host_alias
16155 # The build system.
16156 build_alias=$build_alias
16160 # An echo program that does not interpret backslashes.
16165 AR_FLAGS=$lt_AR_FLAGS
16170 # LTCC compiler flags.
16171 LTCFLAGS=$lt_LTCFLAGS
16173 # A language-specific compiler.
16174 CC=$lt_compiler_F77
16176 # Is the compiler the GNU C compiler?
16182 # The linker used to build libraries.
16185 # Whether we need hard or soft links.
16188 # A BSD-compatible nm program.
16191 # A symbol stripping program
16194 # Used to examine libraries when file_magic_cmd begins "file"
16195 MAGIC_CMD=$MAGIC_CMD
16197 # Used on cygwin: DLL creation program.
16200 # Used on cygwin: object dumper.
16203 # Used on cygwin: assembler.
16206 # The name of the directory that contains temporary libtool files.
16209 # How to create reloadable object files.
16210 reload_flag=$lt_reload_flag
16211 reload_cmds=$lt_reload_cmds
16213 # How to pass a linker flag through the compiler.
16214 wl=$lt_lt_prog_compiler_wl_F77
16216 # Object file suffix (normally "o").
16217 objext="$ac_objext"
16219 # Old archive suffix (normally "a").
16222 # Shared library suffix (normally ".so").
16223 shrext_cmds='$shrext_cmds'
16225 # Executable file suffix (normally "").
16228 # Additional compiler flags for building library objects.
16229 pic_flag=$lt_lt_prog_compiler_pic_F77
16232 # What is the maximum length of a command?
16233 max_cmd_len=$lt_cv_sys_max_cmd_len
16235 # Does compiler simultaneously support -c and -o options?
16236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16238 # Must we lock files when doing compilation?
16239 need_locks=$lt_need_locks
16241 # Do we need the lib prefix for modules?
16242 need_lib_prefix=$need_lib_prefix
16244 # Do we need a version for libraries?
16245 need_version=$need_version
16247 # Whether dlopen is supported.
16248 dlopen_support=$enable_dlopen
16250 # Whether dlopen of programs is supported.
16251 dlopen_self=$enable_dlopen_self
16253 # Whether dlopen of statically linked programs is supported.
16254 dlopen_self_static=$enable_dlopen_self_static
16256 # Compiler flag to prevent dynamic linking.
16257 link_static_flag=$lt_lt_prog_compiler_static_F77
16259 # Compiler flag to turn off builtin functions.
16260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16262 # Compiler flag to allow reflexive dlopens.
16263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16265 # Compiler flag to generate shared objects directly from archives.
16266 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16268 # Compiler flag to generate thread-safe objects.
16269 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16271 # Library versioning type.
16272 version_type=$version_type
16274 # Format of library name prefix.
16275 libname_spec=$lt_libname_spec
16277 # List of archive names. First name is the real one, the rest are links.
16278 # The last name is the one that the linker finds with -lNAME.
16279 library_names_spec=$lt_library_names_spec
16281 # The coded name of the library, if different from the real name.
16282 soname_spec=$lt_soname_spec
16284 # Commands used to build and install an old-style archive.
16286 old_archive_cmds=$lt_old_archive_cmds_F77
16287 old_postinstall_cmds=$lt_old_postinstall_cmds
16288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16290 # Create an old-style archive from a shared archive.
16291 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16293 # Create a temporary old-style archive to link instead of a shared archive.
16294 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16296 # Commands used to build and install a shared archive.
16297 archive_cmds=$lt_archive_cmds_F77
16298 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16299 postinstall_cmds=$lt_postinstall_cmds
16300 postuninstall_cmds=$lt_postuninstall_cmds
16302 # Commands used to build a loadable module (assumed same as above if empty)
16303 module_cmds=$lt_module_cmds_F77
16304 module_expsym_cmds=$lt_module_expsym_cmds_F77
16306 # Commands to strip libraries.
16307 old_striplib=$lt_old_striplib
16308 striplib=$lt_striplib
16310 # Dependencies to place before the objects being linked to create a
16312 predep_objects=$lt_predep_objects_F77
16314 # Dependencies to place after the objects being linked to create a
16316 postdep_objects=$lt_postdep_objects_F77
16318 # Dependencies to place before the objects being linked to create a
16320 predeps=$lt_predeps_F77
16322 # Dependencies to place after the objects being linked to create a
16324 postdeps=$lt_postdeps_F77
16326 # The library search path used internally by the compiler when linking
16327 # a shared library.
16328 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16330 # Method to check whether dependent libraries are shared objects.
16331 deplibs_check_method=$lt_deplibs_check_method
16333 # Command to use when deplibs_check_method == file_magic.
16334 file_magic_cmd=$lt_file_magic_cmd
16336 # Flag that allows shared libraries with undefined symbols to be built.
16337 allow_undefined_flag=$lt_allow_undefined_flag_F77
16339 # Flag that forces no undefined symbols.
16340 no_undefined_flag=$lt_no_undefined_flag_F77
16342 # Commands used to finish a libtool library installation in a directory.
16343 finish_cmds=$lt_finish_cmds
16345 # Same as above, but a single script fragment to be evaled but not shown.
16346 finish_eval=$lt_finish_eval
16348 # Take the output of nm and produce a listing of raw symbols and C names.
16349 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16351 # Transform the output of nm in a proper C declaration
16352 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16354 # Transform the output of nm in a C name address pair
16355 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16357 # This is the shared library runtime path variable.
16358 runpath_var=$runpath_var
16360 # This is the shared library path variable.
16361 shlibpath_var=$shlibpath_var
16363 # Is shlibpath searched before the hard-coded library search path?
16364 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16366 # How to hardcode a shared library path into an executable.
16367 hardcode_action=$hardcode_action_F77
16369 # Whether we should hardcode library paths into libraries.
16370 hardcode_into_libs=$hardcode_into_libs
16372 # Flag to hardcode \$libdir into a binary during linking.
16373 # This must work even if \$libdir does not exist.
16374 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16376 # If ld is used when linking, flag to hardcode \$libdir into
16377 # a binary during linking. This must work even if \$libdir does
16379 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16381 # Whether we need a single -rpath flag with a separated argument.
16382 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16384 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16385 # resulting binary.
16386 hardcode_direct=$hardcode_direct_F77
16388 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16389 # resulting binary.
16390 hardcode_minus_L=$hardcode_minus_L_F77
16392 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16393 # the resulting binary.
16394 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16396 # Set to yes if building a shared library automatically hardcodes DIR into the library
16397 # and all subsequent libraries and executables linked against it.
16398 hardcode_automatic=$hardcode_automatic_F77
16400 # Variables whose values should be saved in libtool wrapper scripts and
16401 # restored at relink time.
16402 variables_saved_for_relink="$variables_saved_for_relink"
16404 # Whether libtool must link a program against all its dependency libraries.
16405 link_all_deplibs=$link_all_deplibs_F77
16407 # Compile-time system search path for libraries
16408 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16410 # Run-time system search path for libraries
16411 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16413 # Fix the shell variable \$srcfile for the compiler.
16414 fix_srcfile_path=$lt_fix_srcfile_path
16416 # Set to yes if exported symbols are required.
16417 always_export_symbols=$always_export_symbols_F77
16419 # The commands to list exported symbols.
16420 export_symbols_cmds=$lt_export_symbols_cmds_F77
16422 # The commands to extract the exported symbol list from a shared archive.
16423 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16425 # Symbols that should not be listed in the preloaded symbols.
16426 exclude_expsyms=$lt_exclude_expsyms_F77
16428 # Symbols that must always be exported.
16429 include_expsyms=$lt_include_expsyms_F77
16431 # ### END LIBTOOL TAG CONFIG: $tagname
16437 # If there is no Makefile yet, we rely on a make rule to execute
16438 # `config.status --recheck' to rerun these tests and create the
16439 # libtool script then.
16440 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16441 if test -f "$ltmain_in"; then
16442 test -f Makefile
&& make "$ltmain"
16448 ac_cpp
='$CPP $CPPFLAGS'
16449 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16450 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16451 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16461 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16464 # Source file extension for Java test sources.
16467 # Object file extension for compiled Java test sources.
16471 # Code to be used in simple compile tests
16472 lt_simple_compile_test_code
="class foo {}"
16474 # Code to be used in simple link tests
16475 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
16477 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16479 # If no C compiler was specified, use CC.
16482 # If no C compiler flags were specified, use CFLAGS.
16483 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16485 # Allow CC to be a program name with arguments.
16489 # save warnings/boilerplate of simple test code
16490 ac_outfile
=conftest.
$ac_objext
16491 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16492 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16493 _lt_compiler_boilerplate
=`cat conftest.err`
16496 ac_outfile
=conftest.
$ac_objext
16497 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16498 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16499 _lt_linker_boilerplate
=`cat conftest.err`
16503 # Allow CC to be a program name with arguments.
16508 for cc_temp
in $compiler""; do
16510 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16511 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16516 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16519 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16520 archive_cmds_need_lc_GCJ
=no
16522 old_archive_cmds_GCJ
=$old_archive_cmds
16525 lt_prog_compiler_no_builtin_flag_GCJ
=
16527 if test "$GCC" = yes; then
16528 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16531 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16532 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16533 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16536 lt_cv_prog_compiler_rtti_exceptions
=no
16537 ac_outfile
=conftest.
$ac_objext
16538 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16539 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16540 # Insert the option either (1) after the last *FLAGS variable, or
16541 # (2) before a word containing "conftest.", or (3) at the end.
16542 # Note that $ac_compile itself does not contain backslashes and begins
16543 # with a dollar sign (not a hyphen), so the echo should work correctly.
16544 # The option is referenced via a variable to avoid confusing sed.
16545 lt_compile
=`echo "$ac_compile" | $SED \
16546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16548 -e 's:$: $lt_compiler_flag:'`
16549 (eval echo "\"\$as_me:16549: $lt_compile\"" >&5)
16550 (eval "$lt_compile" 2>conftest.err
)
16552 cat conftest.err
>&5
16553 echo "$as_me:16553: \$? = $ac_status" >&5
16554 if (exit $ac_status) && test -s "$ac_outfile"; then
16555 # The compiler can only warn and ignore the option if not recognized
16556 # So say no if there are warnings other than the usual output.
16557 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16558 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16559 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16560 lt_cv_prog_compiler_rtti_exceptions
=yes
16566 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16567 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16569 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16570 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16577 lt_prog_compiler_wl_GCJ
=
16578 lt_prog_compiler_pic_GCJ
=
16579 lt_prog_compiler_static_GCJ
=
16581 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16582 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16584 if test "$GCC" = yes; then
16585 lt_prog_compiler_wl_GCJ
='-Wl,'
16586 lt_prog_compiler_static_GCJ
='-static'
16590 # All AIX code is PIC.
16591 if test "$host_cpu" = ia64
; then
16592 # AIX 5 now supports IA64 processor
16593 lt_prog_compiler_static_GCJ
='-Bstatic'
16598 # FIXME: we need at least 68020 code to build shared libraries, but
16599 # adding the `-m68020' flag to GCC prevents building anything better,
16601 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16604 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16605 # PIC is the default for these OSes.
16608 mingw
* | cygwin
* | pw32
* | os2
*)
16609 # This hack is so that the source file can tell whether it is being
16610 # built for inclusion in a dll (and should export symbols for example).
16611 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16612 # (--disable-auto-import) libraries
16613 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16616 darwin
* | rhapsody
*)
16617 # PIC is the default on this platform
16618 # Common symbols not allowed in MH_DYLIB files
16619 lt_prog_compiler_pic_GCJ
='-fno-common'
16623 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16624 # Instead, we relocate shared libraries at runtime.
16628 # Just because we use GCC doesn't mean we suddenly get shared libraries
16629 # on systems that don't support them.
16630 lt_prog_compiler_can_build_shared_GCJ
=no
16635 if test -d /usr
/nec
; then
16636 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16642 # not for PA HP-UX.
16648 lt_prog_compiler_pic_GCJ
='-fPIC'
16654 lt_prog_compiler_pic_GCJ
='-fPIC'
16658 # PORTME Check for flag to pass linker flags through the system compiler.
16661 lt_prog_compiler_wl_GCJ
='-Wl,'
16662 if test "$host_cpu" = ia64
; then
16663 # AIX 5 now supports IA64 processor
16664 lt_prog_compiler_static_GCJ
='-Bstatic'
16666 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16670 # PIC is the default on this platform
16671 # Common symbols not allowed in MH_DYLIB files
16672 case $cc_basename in
16674 lt_prog_compiler_pic_GCJ
='-qnocommon'
16675 lt_prog_compiler_wl_GCJ
='-Wl,'
16680 mingw
* | cygwin
* | pw32
* | os2
*)
16681 # This hack is so that the source file can tell whether it is being
16682 # built for inclusion in a dll (and should export symbols for example).
16683 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16686 hpux9
* | hpux10
* | hpux11
*)
16687 lt_prog_compiler_wl_GCJ
='-Wl,'
16688 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16689 # not for PA HP-UX.
16695 lt_prog_compiler_pic_GCJ
='+Z'
16698 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16699 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16702 irix5
* | irix6
* | nonstopux
*)
16703 lt_prog_compiler_wl_GCJ
='-Wl,'
16704 # PIC (with -KPIC) is the default.
16705 lt_prog_compiler_static_GCJ
='-non_shared'
16709 lt_prog_compiler_pic_GCJ
='-KPIC'
16710 lt_prog_compiler_static_GCJ
='-Bstatic'
16713 linux
* | k
*bsd
*-gnu)
16714 case $cc_basename in
16716 lt_prog_compiler_wl_GCJ
='-Wl,'
16717 lt_prog_compiler_pic_GCJ
='-KPIC'
16718 lt_prog_compiler_static_GCJ
='-static'
16720 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16721 # Portland Group compilers (*not* the Pentium gcc compiler,
16722 # which looks to be a dead project)
16723 lt_prog_compiler_wl_GCJ
='-Wl,'
16724 lt_prog_compiler_pic_GCJ
='-fpic'
16725 lt_prog_compiler_static_GCJ
='-Bstatic'
16728 lt_prog_compiler_wl_GCJ
='-Wl,'
16729 # All Alpha code is PIC.
16730 lt_prog_compiler_static_GCJ
='-non_shared'
16733 case `$CC -V 2>&1 | sed 5q` in
16736 lt_prog_compiler_pic_GCJ
='-KPIC'
16737 lt_prog_compiler_static_GCJ
='-Bstatic'
16738 lt_prog_compiler_wl_GCJ
='-Wl,'
16741 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16742 lt_prog_compiler_pic_GCJ
='-KPIC'
16743 lt_prog_compiler_static_GCJ
='-Bstatic'
16744 lt_prog_compiler_wl_GCJ
=''
16751 osf3
* | osf4
* | osf5
*)
16752 lt_prog_compiler_wl_GCJ
='-Wl,'
16753 # All OSF/1 code is PIC.
16754 lt_prog_compiler_static_GCJ
='-non_shared'
16758 lt_prog_compiler_static_GCJ
='-non_shared'
16762 lt_prog_compiler_pic_GCJ
='-KPIC'
16763 lt_prog_compiler_static_GCJ
='-Bstatic'
16764 case $cc_basename in
16765 f77
* | f90
* | f95
*)
16766 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16768 lt_prog_compiler_wl_GCJ
='-Wl,';;
16773 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16774 lt_prog_compiler_pic_GCJ
='-PIC'
16775 lt_prog_compiler_static_GCJ
='-Bstatic'
16778 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16779 lt_prog_compiler_wl_GCJ
='-Wl,'
16780 lt_prog_compiler_pic_GCJ
='-KPIC'
16781 lt_prog_compiler_static_GCJ
='-Bstatic'
16785 if test -d /usr
/nec
;then
16786 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16787 lt_prog_compiler_static_GCJ
='-Bstatic'
16791 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16792 lt_prog_compiler_wl_GCJ
='-Wl,'
16793 lt_prog_compiler_pic_GCJ
='-KPIC'
16794 lt_prog_compiler_static_GCJ
='-Bstatic'
16798 lt_prog_compiler_wl_GCJ
='-Wl,'
16799 lt_prog_compiler_can_build_shared_GCJ
=no
16803 lt_prog_compiler_pic_GCJ
='-pic'
16804 lt_prog_compiler_static_GCJ
='-Bstatic'
16808 lt_prog_compiler_can_build_shared_GCJ
=no
16813 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16814 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16817 # Check to make sure the PIC flag actually works.
16819 if test -n "$lt_prog_compiler_pic_GCJ"; then
16821 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16822 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16823 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 lt_prog_compiler_pic_works_GCJ
=no
16827 ac_outfile
=conftest.
$ac_objext
16828 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16829 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16830 # Insert the option either (1) after the last *FLAGS variable, or
16831 # (2) before a word containing "conftest.", or (3) at the end.
16832 # Note that $ac_compile itself does not contain backslashes and begins
16833 # with a dollar sign (not a hyphen), so the echo should work correctly.
16834 # The option is referenced via a variable to avoid confusing sed.
16835 lt_compile
=`echo "$ac_compile" | $SED \
16836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16838 -e 's:$: $lt_compiler_flag:'`
16839 (eval echo "\"\$as_me:16839: $lt_compile\"" >&5)
16840 (eval "$lt_compile" 2>conftest.err
)
16842 cat conftest.err
>&5
16843 echo "$as_me:16843: \$? = $ac_status" >&5
16844 if (exit $ac_status) && test -s "$ac_outfile"; then
16845 # The compiler can only warn and ignore the option if not recognized
16846 # So say no if there are warnings other than the usual output.
16847 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16848 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16849 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16850 lt_prog_compiler_pic_works_GCJ
=yes
16856 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16857 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16859 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16860 case $lt_prog_compiler_pic_GCJ in
16862 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16865 lt_prog_compiler_pic_GCJ
=
16866 lt_prog_compiler_can_build_shared_GCJ
=no
16871 # For platforms which do not support PIC, -DPIC is meaningless:
16873 lt_prog_compiler_pic_GCJ
=
16876 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16881 # Check to make sure the static flag actually works.
16883 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16884 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16885 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16886 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16887 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 lt_prog_compiler_static_works_GCJ
=no
16890 save_LDFLAGS
="$LDFLAGS"
16891 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16892 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16893 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16894 # The linker can only warn and ignore the option if not recognized
16895 # So say no if there are warnings
16896 if test -s conftest.err
; then
16897 # Append any errors to the config.log.
16898 cat conftest.err
1>&5
16899 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16900 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16901 if diff conftest.exp conftest.er2
>/dev
/null
; then
16902 lt_prog_compiler_static_works_GCJ
=yes
16905 lt_prog_compiler_static_works_GCJ
=yes
16909 LDFLAGS
="$save_LDFLAGS"
16912 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16913 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16915 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
16918 lt_prog_compiler_static_GCJ
=
16922 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16923 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16924 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16927 lt_cv_prog_compiler_c_o_GCJ
=no
16928 $rm -r conftest
2>/dev
/null
16932 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16934 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16935 # Insert the option either (1) after the last *FLAGS variable, or
16936 # (2) before a word containing "conftest.", or (3) at the end.
16937 # Note that $ac_compile itself does not contain backslashes and begins
16938 # with a dollar sign (not a hyphen), so the echo should work correctly.
16939 lt_compile
=`echo "$ac_compile" | $SED \
16940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16942 -e 's:$: $lt_compiler_flag:'`
16943 (eval echo "\"\$as_me:16943: $lt_compile\"" >&5)
16944 (eval "$lt_compile" 2>out
/conftest.err
)
16946 cat out
/conftest.err
>&5
16947 echo "$as_me:16947: \$? = $ac_status" >&5
16948 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16950 # The compiler can only warn and ignore the option if not recognized
16951 # So say no if there are warnings
16952 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16953 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16954 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16955 lt_cv_prog_compiler_c_o_GCJ
=yes
16960 # SGI C++ compiler will create directory out/ii_files/ for
16961 # template instantiation
16962 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16963 $rm out
/* && rmdir out
16969 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16970 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16973 hard_links
="nottested"
16974 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16975 # do not overwrite the value of need_locks provided by the user
16976 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16977 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16980 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16982 ln conftest.a conftest.b
2>&5 || hard_links
=no
16983 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16984 { echo "$as_me:$LINENO: result: $hard_links" >&5
16985 echo "${ECHO_T}$hard_links" >&6; }
16986 if test "$hard_links" = no
; then
16987 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16988 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16995 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16999 allow_undefined_flag_GCJ
=
17000 enable_shared_with_static_runtimes_GCJ
=no
17002 archive_expsym_cmds_GCJ
=
17003 old_archive_From_new_cmds_GCJ
=
17004 old_archive_from_expsyms_cmds_GCJ
=
17005 export_dynamic_flag_spec_GCJ
=
17006 whole_archive_flag_spec_GCJ
=
17007 thread_safe_flag_spec_GCJ
=
17008 hardcode_libdir_flag_spec_GCJ
=
17009 hardcode_libdir_flag_spec_ld_GCJ
=
17010 hardcode_libdir_separator_GCJ
=
17011 hardcode_direct_GCJ
=no
17012 hardcode_minus_L_GCJ
=no
17013 hardcode_shlibpath_var_GCJ
=unsupported
17014 link_all_deplibs_GCJ
=unknown
17015 hardcode_automatic_GCJ
=no
17017 module_expsym_cmds_GCJ
=
17018 always_export_symbols_GCJ
=no
17019 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17020 # include_expsyms should be a list of space-separated symbols to be *always*
17021 # included in the symbol list
17022 include_expsyms_GCJ
=
17023 # exclude_expsyms can be an extended regexp of symbols to exclude
17024 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17025 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17026 # as well as any symbol that contains `d'.
17027 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
17028 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17029 # platforms (ab)use it in PIC code, but their linkers get confused if
17030 # the symbol is explicitly referenced. Since portable code cannot
17031 # rely on this symbol name, it's probably fine to never include it in
17032 # preloaded symbol tables.
17033 extract_expsyms_cmds
=
17034 # Just being paranoid about ensuring that cc_basename is set.
17035 for cc_temp
in $compiler""; do
17037 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17038 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17043 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17046 cygwin
* | mingw
* | pw32
*)
17047 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17048 # When not using gcc, we currently assume that we are using
17049 # Microsoft Visual C++.
17050 if test "$GCC" != yes; then
17055 # we just hope/assume this is gcc and not c89 (= MSVC++)
17064 if test "$with_gnu_ld" = yes; then
17065 # If archive_cmds runs LD, not CC, wlarc should be empty
17068 # Set some defaults for GNU ld with shared library support. These
17069 # are reset later if shared libraries are not supported. Putting them
17070 # here allows them to be overridden if necessary.
17071 runpath_var
=LD_RUN_PATH
17072 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
17073 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
17074 # ancient GNU ld didn't support --whole-archive et. al.
17075 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
17076 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17078 whole_archive_flag_spec_GCJ
=
17080 supports_anon_versioning
=no
17081 case `$LD -v 2>/dev/null` in
17082 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17083 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17084 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17085 *\
2.11.
*) ;; # other 2.11 versions
17086 *) supports_anon_versioning
=yes ;;
17089 # See if GNU ld supports shared libraries.
17091 aix3
* | aix4
* | aix5
*)
17092 # On AIX/PPC, the GNU linker is very broken
17093 if test "$host_cpu" != ia64
; then
17097 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17098 *** to be unable to reliably create shared libraries on AIX.
17099 *** Therefore, libtool is disabling shared libraries support. If you
17100 *** really care for shared libraries, you may want to modify your PATH
17101 *** so that a non-GNU linker is found, and then restart.
17108 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)'
17109 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17110 hardcode_minus_L_GCJ
=yes
17112 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17113 # that the semantics of dynamic libraries on AmigaOS, at least up
17114 # to version 4, is to share data among multiple programs linked
17115 # with the same dynamic library. Since this doesn't match the
17116 # behavior of shared libraries on other platforms, we can't use
17122 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17123 allow_undefined_flag_GCJ
=unsupported
17124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17125 # support --undefined. This deserves some investigation. FIXME
17126 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17132 cygwin
* | mingw
* | pw32
*)
17133 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17134 # as there is no search path for DLLs.
17135 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17136 allow_undefined_flag_GCJ
=unsupported
17137 always_export_symbols_GCJ
=no
17138 enable_shared_with_static_runtimes_GCJ
=yes
17139 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17141 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
17142 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17143 # If the export-symbols file already is a .def file (1st line
17144 # is EXPORTS), use it as is; otherwise, prepend...
17145 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17146 cp $export_symbols $output_objdir/$soname.def;
17148 echo EXPORTS > $output_objdir/$soname.def;
17149 cat $export_symbols >> $output_objdir/$soname.def;
17151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17158 hardcode_direct_GCJ
=no
17159 hardcode_shlibpath_var_GCJ
=no
17160 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17161 export_dynamic_flag_spec_GCJ
='${wl}-E'
17162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17163 # Instead, shared libraries are loaded at an image base (0x10000000 by
17164 # default) and relocated if they conflict, which is a slow very memory
17165 # consuming and fragmenting process. To avoid this, we pick a random,
17166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17167 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17168 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'
17169 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'
17172 gnu
* | linux
* | k
*bsd
*-gnu)
17173 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17175 case $cc_basename,$host_cpu in
17176 pgcc
*) # Portland Group C compiler
17177 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'
17178 tmp_addflag
=' $pic_flag'
17180 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17181 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'
17182 tmp_addflag
=' $pic_flag -Mnomain' ;;
17183 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17184 tmp_addflag
=' -i_dynamic' ;;
17185 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17186 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17187 ifc
* | ifort
*) # Intel Fortran compiler
17188 tmp_addflag
=' -nofor_main' ;;
17190 case `$CC -V 2>&1 | sed 5q` in
17191 *Sun\ C
*) # Sun C 5.9
17192 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'
17193 tmp_sharedflag
='-G' ;;
17194 *Sun\ F
*) # Sun Fortran 8.3
17195 tmp_sharedflag
='-G' ;;
17197 tmp_sharedflag
='-shared' ;;
17199 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17201 if test $supports_anon_versioning = yes; then
17202 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
17203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17204 $echo "local: *; };" >> $output_objdir/$libname.ver~
17205 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17213 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17214 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17217 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17218 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17223 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
17227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17228 *** create shared libraries on Solaris systems. Therefore, libtool
17229 *** is disabling shared libraries support. We urge you to upgrade GNU
17230 *** binutils to release 2.9.1 or newer. Another option is to modify
17231 *** your PATH or compiler configuration so that the native linker is
17232 *** used, and then restart.
17235 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17236 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17237 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17243 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17244 case `$LD -v 2>&1` in
17245 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17249 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17250 *** reliably create shared libraries on SCO systems. Therefore, libtool
17251 *** is disabling shared libraries support. We urge you to upgrade GNU
17252 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17253 *** your PATH or compiler configuration so that the native linker is
17254 *** used, and then restart.
17259 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17260 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17261 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17262 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17271 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17273 hardcode_direct_GCJ
=yes
17274 hardcode_shlibpath_var_GCJ
=no
17278 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17279 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17280 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17287 if test "$ld_shlibs_GCJ" = no
; then
17289 hardcode_libdir_flag_spec_GCJ
=
17290 export_dynamic_flag_spec_GCJ
=
17291 whole_archive_flag_spec_GCJ
=
17294 # PORTME fill in a description of your system's linker (not GNU ld)
17297 allow_undefined_flag_GCJ
=unsupported
17298 always_export_symbols_GCJ
=yes
17299 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'
17300 # Note: this linker hardcodes the directories in LIBPATH if there
17301 # are no directories specified by -L.
17302 hardcode_minus_L_GCJ
=yes
17303 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17304 # Neither direct hardcoding nor static linking is supported with a
17306 hardcode_direct_GCJ
=unsupported
17311 if test "$host_cpu" = ia64
; then
17312 # On IA64, the linker does run time linking by default, so we don't
17313 # have to do anything special.
17314 aix_use_runtimelinking
=no
17315 exp_sym_flag
='-Bexport'
17318 # If we're using GNU nm, then we don't want the "-C" option.
17319 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17320 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17321 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'
17323 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'
17325 aix_use_runtimelinking
=no
17327 # Test if we are trying to use run time linking or normal
17328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17329 # need to do runtime linking.
17330 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17331 for ld_flag
in $LDFLAGS; do
17332 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17333 aix_use_runtimelinking
=yes
17340 exp_sym_flag
='-bexport'
17341 no_entry_flag
='-bnoentry'
17344 # When large executables or shared objects are built, AIX ld can
17345 # have problems creating the table of contents. If linking a library
17346 # or program results in "error TOC overflow" add -mminimal-toc to
17347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17350 archive_cmds_GCJ
=''
17351 hardcode_direct_GCJ
=yes
17352 hardcode_libdir_separator_GCJ
=':'
17353 link_all_deplibs_GCJ
=yes
17355 if test "$GCC" = yes; then
17356 case $host_os in aix4.
[012]|aix4.
[012].
*)
17357 # We only want to do this on AIX 4.2 and lower, the check
17358 # below for broken collect2 doesn't work under 4.3+
17359 collect2name
=`${CC} -print-prog-name=collect2`
17360 if test -f "$collect2name" && \
17361 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17363 # We have reworked collect2
17366 # We have old collect2
17367 hardcode_direct_GCJ
=unsupported
17368 # It fails to find uninstalled libraries when the uninstalled
17369 # path is not listed in the libpath. Setting hardcode_minus_L
17370 # to unsupported forces relinking
17371 hardcode_minus_L_GCJ
=yes
17372 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17373 hardcode_libdir_separator_GCJ
=
17377 shared_flag
='-shared'
17378 if test "$aix_use_runtimelinking" = yes; then
17379 shared_flag
="$shared_flag "'${wl}-G'
17383 if test "$host_cpu" = ia64
; then
17384 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17385 # chokes on -Wl,-G. The following line is correct:
17388 if test "$aix_use_runtimelinking" = yes; then
17389 shared_flag
='${wl}-G'
17391 shared_flag
='${wl}-bM:SRE'
17396 # It seems that -bexpall does not export symbols beginning with
17397 # underscore (_), so it is better to generate a list of symbols to export.
17398 always_export_symbols_GCJ
=yes
17399 if test "$aix_use_runtimelinking" = yes; then
17400 # Warning - without using the other runtime loading flags (-brtl),
17401 # -berok will link without error, but may produce a broken library.
17402 allow_undefined_flag_GCJ
='-berok'
17403 # Determine the default libpath from the value encoded in an empty executable.
17404 cat >conftest.
$ac_ext <<_ACEOF
17407 cat confdefs.h
>>conftest.
$ac_ext
17408 cat >>conftest.
$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17419 rm -f conftest.
$ac_objext conftest
$ac_exeext
17420 if { (ac_try
="$ac_link"
17421 case "(($ac_try" in
17422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
17428 grep -v '^ *+' conftest.er1 >conftest.err
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } && {
17433 test -z "$ac_c_werror_flag" ||
17434 test ! -s conftest.err
17435 } && test -s conftest$ac_exeext &&
17436 $as_test_x conftest$ac_exeext; then
17438 lt_aix_libpath_sed='
17439 /Import File Strings/,/^$/ {
17445 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17446 # Check for a 64-bit object if we didn't find anything.
17447 if test -z "$aix_libpath"; then
17448 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17458 conftest$ac_exeext conftest.$ac_ext
17459 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17461 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17462 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"
17464 if test "$host_cpu" = ia64; then
17465 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17466 allow_undefined_flag_GCJ="-z nodefs"
17467 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"
17469 # Determine the default libpath from the value encoded in an empty executable.
17470 cat >conftest.$ac_ext <<_ACEOF
17473 cat confdefs.h >>conftest.$ac_ext
17474 cat >>conftest.$ac_ext <<_ACEOF
17475 /* end confdefs.h. */
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (ac_try="$ac_link"
17487 case "(($ac_try" in
17488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17489 *) ac_try_echo
=$ac_try;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_link") 2>conftest.er1
17494 grep -v '^ *+' conftest.er1
>conftest.err
17496 cat conftest.err
>&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } && {
17499 test -z "$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 } && test -s conftest
$ac_exeext &&
17502 $as_test_x conftest
$ac_exeext; then
17504 lt_aix_libpath_sed
='
17505 /Import File Strings/,/^$/ {
17511 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17512 # Check for a 64-bit object if we didn't find anything.
17513 if test -z "$aix_libpath"; then
17514 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.
$ac_ext >&5
17523 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17524 conftest
$ac_exeext conftest.
$ac_ext
17525 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17527 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17528 # Warning - without using the other run time loading flags,
17529 # -berok will link without error, but may produce a broken library.
17530 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17531 allow_undefined_flag_GCJ
=' ${wl}-berok'
17532 # Exported symbols can be pulled into shared objects from archives
17533 whole_archive_flag_spec_GCJ
='$convenience'
17534 archive_cmds_need_lc_GCJ
=yes
17535 # This is similar to how AIX traditionally builds its shared libraries.
17536 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'
17542 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)'
17543 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17544 hardcode_minus_L_GCJ
=yes
17545 # see comment about different semantics on the GNU ld section
17550 export_dynamic_flag_spec_GCJ
=-rdynamic
17553 cygwin
* | mingw
* | pw32
*)
17554 # When not using gcc, we currently assume that we are using
17555 # Microsoft Visual C++.
17556 # hardcode_libdir_flag_spec is actually meaningless, as there is
17557 # no search path for DLLs.
17558 hardcode_libdir_flag_spec_GCJ
=' '
17559 allow_undefined_flag_GCJ
=unsupported
17560 # Tell ltmain to make .lib files, not .a files.
17562 # Tell ltmain to make .dll files, not .so files.
17564 # FIXME: Setting linknames here is a bad hack.
17565 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17566 # The linker will automatically build a .lib file if we build a DLL.
17567 old_archive_From_new_cmds_GCJ
='true'
17568 # FIXME: Should let the user specify the lib program.
17569 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17570 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17571 enable_shared_with_static_runtimes_GCJ
=yes
17574 darwin
* | rhapsody
*)
17576 rhapsody
* | darwin1.
[012])
17577 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17580 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17581 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17583 case ${MACOSX_DEPLOYMENT_TARGET} in
17585 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17588 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17594 archive_cmds_need_lc_GCJ
=no
17595 hardcode_direct_GCJ
=no
17596 hardcode_automatic_GCJ
=yes
17597 hardcode_shlibpath_var_GCJ
=unsupported
17598 whole_archive_flag_spec_GCJ
=''
17599 link_all_deplibs_GCJ
=yes
17600 if test "$GCC" = yes ; then
17601 output_verbose_link_cmd
='echo'
17602 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17603 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17605 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}'
17606 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}'
17608 case $cc_basename in
17610 output_verbose_link_cmd
='echo'
17611 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17612 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17613 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17614 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}'
17615 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}'
17625 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17627 hardcode_shlibpath_var_GCJ
=no
17634 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17635 # support. Future versions do this automatically, but an explicit c++rt0.o
17636 # does not break anything, and helps significantly (at the cost of a little
17639 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17640 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17641 hardcode_direct_GCJ
=yes
17642 hardcode_shlibpath_var_GCJ
=no
17645 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17647 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17648 hardcode_direct_GCJ
=yes
17649 hardcode_minus_L_GCJ
=yes
17650 hardcode_shlibpath_var_GCJ
=no
17653 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17654 freebsd
* | dragonfly
*)
17655 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17656 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17657 hardcode_direct_GCJ
=yes
17658 hardcode_shlibpath_var_GCJ
=no
17662 if test "$GCC" = yes; then
17663 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'
17665 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'
17667 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17668 hardcode_libdir_separator_GCJ
=:
17669 hardcode_direct_GCJ
=yes
17671 # hardcode_minus_L: Not really in the search PATH,
17672 # but as the default location of the library.
17673 hardcode_minus_L_GCJ
=yes
17674 export_dynamic_flag_spec_GCJ
='${wl}-E'
17678 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17679 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17681 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17683 if test "$with_gnu_ld" = no
; then
17684 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17685 hardcode_libdir_separator_GCJ
=:
17687 hardcode_direct_GCJ
=yes
17688 export_dynamic_flag_spec_GCJ
='${wl}-E'
17690 # hardcode_minus_L: Not really in the search PATH,
17691 # but as the default location of the library.
17692 hardcode_minus_L_GCJ
=yes
17697 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17700 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17703 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17706 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17712 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17715 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17718 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17722 if test "$with_gnu_ld" = no
; then
17723 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17724 hardcode_libdir_separator_GCJ
=:
17728 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17729 hardcode_direct_GCJ
=no
17730 hardcode_shlibpath_var_GCJ
=no
17733 hardcode_direct_GCJ
=yes
17734 export_dynamic_flag_spec_GCJ
='${wl}-E'
17736 # hardcode_minus_L: Not really in the search PATH,
17737 # but as the default location of the library.
17738 hardcode_minus_L_GCJ
=yes
17744 irix5
* | irix6
* | nonstopux
*)
17745 if test "$GCC" = yes; then
17746 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'
17748 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'
17749 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17751 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17752 hardcode_libdir_separator_GCJ
=:
17753 link_all_deplibs_GCJ
=yes
17757 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17758 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17760 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17762 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17763 hardcode_direct_GCJ
=yes
17764 hardcode_shlibpath_var_GCJ
=no
17768 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17769 hardcode_direct_GCJ
=yes
17770 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17771 hardcode_libdir_separator_GCJ
=:
17772 hardcode_shlibpath_var_GCJ
=no
17776 if test -f /usr
/libexec
/ld.so
; then
17777 hardcode_direct_GCJ
=yes
17778 hardcode_shlibpath_var_GCJ
=no
17779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17780 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17781 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17782 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17783 export_dynamic_flag_spec_GCJ
='${wl}-E'
17786 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17787 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17788 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17791 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17792 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17802 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17803 hardcode_minus_L_GCJ
=yes
17804 allow_undefined_flag_GCJ
=unsupported
17805 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'
17806 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17810 if test "$GCC" = yes; then
17811 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17812 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'
17814 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17815 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'
17817 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17818 hardcode_libdir_separator_GCJ
=:
17821 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17822 if test "$GCC" = yes; then
17823 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17824 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'
17825 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17827 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17828 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'
17829 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~
17830 $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'
17832 # Both c and cxx compiler support -rpath directly
17833 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17835 hardcode_libdir_separator_GCJ
=:
17839 no_undefined_flag_GCJ
=' -z text'
17840 if test "$GCC" = yes; then
17842 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17843 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17844 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17847 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17848 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17851 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17852 hardcode_shlibpath_var_GCJ
=no
17854 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17856 # The compiler driver will combine and reorder linker options,
17857 # but understands `-z linker_flag'. GCC discards it without `$wl',
17858 # but is careful enough not to reorder.
17859 # Supported since Solaris 2.6 (maybe 2.5.1?)
17860 if test "$GCC" = yes; then
17861 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17863 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
17867 link_all_deplibs_GCJ
=yes
17871 if test "x$host_vendor" = xsequent
; then
17872 # Use $CC to link under sequent, because it throws in some extra .o
17873 # files that make .init and .fini sections work.
17874 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17876 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17878 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17879 hardcode_direct_GCJ
=yes
17880 hardcode_minus_L_GCJ
=yes
17881 hardcode_shlibpath_var_GCJ
=no
17885 case $host_vendor in
17887 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17888 hardcode_direct_GCJ
=yes # is this really true???
17891 ## LD is ld it makes a PLAMLIB
17892 ## CC just makes a GrossModule.
17893 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17894 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17895 hardcode_direct_GCJ
=no
17898 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17899 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17902 runpath_var
='LD_RUN_PATH'
17903 hardcode_shlibpath_var_GCJ
=no
17907 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17908 hardcode_shlibpath_var_GCJ
=no
17909 export_dynamic_flag_spec_GCJ
='-Bexport'
17913 if test -d /usr
/nec
; then
17914 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17915 hardcode_shlibpath_var_GCJ
=no
17916 runpath_var
=LD_RUN_PATH
17917 hardcode_runpath_var
=yes
17922 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17923 no_undefined_flag_GCJ
='${wl}-z,text'
17924 archive_cmds_need_lc_GCJ
=no
17925 hardcode_shlibpath_var_GCJ
=no
17926 runpath_var
='LD_RUN_PATH'
17928 if test "$GCC" = yes; then
17929 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17930 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17932 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17933 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17937 sysv5
* | sco3.2v5
* | sco5v6
*)
17938 # Note: We can NOT use -z defs as we might desire, because we do not
17939 # link with -lc, and that would cause any symbols used from libc to
17940 # always be unresolved, which means just about no library would
17941 # ever link correctly. If we're not using GNU ld we use -z text
17942 # though, which does catch some bad symbols but isn't as heavy-handed
17944 no_undefined_flag_GCJ
='${wl}-z,text'
17945 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17946 archive_cmds_need_lc_GCJ
=no
17947 hardcode_shlibpath_var_GCJ
=no
17948 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17949 hardcode_libdir_separator_GCJ
=':'
17950 link_all_deplibs_GCJ
=yes
17951 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17952 runpath_var
='LD_RUN_PATH'
17954 if test "$GCC" = yes; then
17955 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17956 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17958 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17959 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17964 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17965 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17966 hardcode_shlibpath_var_GCJ
=no
17975 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17976 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17977 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17980 # Do we need to explicitly link libc?
17982 case "x$archive_cmds_need_lc_GCJ" in
17984 # Assume -lc should be added
17985 archive_cmds_need_lc_GCJ
=yes
17987 if test "$enable_shared" = yes && test "$GCC" = yes; then
17988 case $archive_cmds_GCJ in
17990 # FIXME: we may have to deal with multi-command sequences.
17993 # Test whether the compiler implicitly links with -lc since on some
17994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17995 # to ld, don't add -lc before -lgcc.
17996 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17997 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17999 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } 2>conftest.err
; then
18008 libobjs
=conftest.
$ac_objext
18010 wl
=$lt_prog_compiler_wl_GCJ
18011 pic_flag
=$lt_prog_compiler_pic_GCJ
18017 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
18018 allow_undefined_flag_GCJ
=
18019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18020 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }
18025 archive_cmds_need_lc_GCJ
=no
18027 archive_cmds_need_lc_GCJ
=yes
18029 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
18031 cat conftest.err
1>&5
18034 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18035 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18042 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18043 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18044 library_names_spec
=
18045 libname_spec
='lib$name'
18049 postuninstall_cmds
=
18053 shlibpath_overrides_runpath
=unknown
18055 dynamic_linker
="$host_os ld.so"
18056 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18058 need_lib_prefix
=unknown
18059 hardcode_into_libs
=no
18061 # when you set need_version to no, make sure it does not cause -set_version
18062 # flags to be left without arguments
18063 need_version
=unknown
18068 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18069 shlibpath_var
=LIBPATH
18071 # AIX 3 has no versioning support, so we append a major version to the name.
18072 soname_spec
='${libname}${release}${shared_ext}$major'
18079 hardcode_into_libs
=yes
18080 if test "$host_cpu" = ia64
; then
18081 # AIX 5 supports IA64
18082 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18083 shlibpath_var
=LD_LIBRARY_PATH
18085 # With GCC up to 2.95.x, collect2 would create an import file
18086 # for dependence libraries. The import file would start with
18087 # the line `#! .'. This would cause the generated library to
18088 # depend on `.', always an invalid library. This was fixed in
18089 # development snapshots of GCC prior to 3.0.
18091 aix4 | aix4.
[01] | aix4.
[01].
*)
18092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18094 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
18097 can_build_shared
=no
18101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18102 # soname into executable. Probably we can add versioning support to
18103 # collect2, so additional links can be useful in future.
18104 if test "$aix_use_runtimelinking" = yes; then
18105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18106 # instead of lib<name>.a to let people know that these are not
18107 # typical AIX shared libraries.
18108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18110 # We preserve .a as extension for shared libraries through AIX4.2
18111 # and later when we are not doing run time linking.
18112 library_names_spec
='${libname}${release}.a $libname.a'
18113 soname_spec
='${libname}${release}${shared_ext}$major'
18115 shlibpath_var
=LIBPATH
18120 library_names_spec
='$libname.ixlibrary $libname.a'
18121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18122 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'
18126 library_names_spec
='${libname}${shared_ext}'
18127 dynamic_linker
="$host_os ld.so"
18128 shlibpath_var
=LIBRARY_PATH
18134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18135 soname_spec
='${libname}${release}${shared_ext}$major'
18136 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18137 shlibpath_var
=LD_LIBRARY_PATH
18138 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18139 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18140 # the default ld.so.conf also contains /usr/contrib/lib and
18141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18142 # libtool to hard-code these into programs
18145 cygwin
* | mingw
* | pw32
*)
18146 version_type
=windows
18151 case $GCC,$host_os in
18152 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18153 library_names_spec
='$libname.dll.a'
18154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18155 postinstall_cmds
='base_file=`basename \${file}`~
18156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18157 dldir=$destdir/`dirname \$dlpath`~
18158 test -d \$dldir || mkdir -p \$dldir~
18159 $install_prog $dir/$dlname \$dldir/$dlname~
18160 chmod a+x \$dldir/$dlname'
18161 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18162 dlpath=$dir/\$dldll~
18164 shlibpath_overrides_runpath
=yes
18168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18169 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18170 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18173 # MinGW DLLs use traditional 'lib' prefix
18174 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18175 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18176 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
18177 # It is most probably a Windows format PATH printed by
18178 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18179 # path with ; separators, and with drive letters. We can handle the
18180 # drive letters (cygwin fileutils understands them), so leave them,
18181 # especially as we might pass files found there to a mingw objdump,
18182 # which wouldn't understand a cygwinified path. Ahh.
18183 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18185 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18189 # pw32 DLLs use 'pw' prefix rather than 'lib'
18190 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18196 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18199 dynamic_linker
='Win32 ld.exe'
18200 # FIXME: first we should search . and the directory the executable is in
18204 darwin
* | rhapsody
*)
18205 dynamic_linker
="$host_os dyld"
18206 version_type
=darwin
18209 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18210 soname_spec
='${libname}${release}${major}$shared_ext'
18211 shlibpath_overrides_runpath
=yes
18212 shlibpath_var
=DYLD_LIBRARY_PATH
18213 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18215 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18223 soname_spec
='${libname}${release}${shared_ext}$major'
18224 shlibpath_var
=LD_LIBRARY_PATH
18231 freebsd
* | dragonfly
*)
18232 # DragonFly does not have aout. When/if they implement a new
18233 # versioning mechanism, adjust this.
18234 if test -x /usr
/bin
/objformat
; then
18235 objformat
=`/usr/bin/objformat`
18238 freebsd
[123]*) objformat
=aout
;;
18239 *) objformat
=elf
;;
18242 version_type
=freebsd-
$objformat
18243 case $version_type in
18245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18250 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18254 shlibpath_var
=LD_LIBRARY_PATH
18257 shlibpath_overrides_runpath
=yes
18259 freebsd3.
[01]* | freebsdelf3.
[01]*)
18260 shlibpath_overrides_runpath
=yes
18261 hardcode_into_libs
=yes
18263 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18264 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18265 shlibpath_overrides_runpath
=no
18266 hardcode_into_libs
=yes
18268 *) # from 4.6 on, and DragonFly
18269 shlibpath_overrides_runpath
=yes
18270 hardcode_into_libs
=yes
18279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18280 soname_spec
='${libname}${release}${shared_ext}$major'
18281 shlibpath_var
=LD_LIBRARY_PATH
18282 hardcode_into_libs
=yes
18285 hpux9
* | hpux10
* | hpux11
*)
18286 # Give a soname corresponding to the major version so that dld.sl refuses to
18287 # link against other versions.
18294 hardcode_into_libs
=yes
18295 dynamic_linker
="$host_os dld.so"
18296 shlibpath_var
=LD_LIBRARY_PATH
18297 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18299 soname_spec
='${libname}${release}${shared_ext}$major'
18300 if test "X$HPUX_IA64_MODE" = X32
; then
18301 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18303 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18305 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18309 hardcode_into_libs
=yes
18310 dynamic_linker
="$host_os dld.sl"
18311 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18312 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18313 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314 soname_spec
='${libname}${release}${shared_ext}$major'
18315 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18316 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18320 dynamic_linker
="$host_os dld.sl"
18321 shlibpath_var
=SHLIB_PATH
18322 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324 soname_spec
='${libname}${release}${shared_ext}$major'
18327 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18328 postinstall_cmds
='chmod 555 $lib'
18335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18336 soname_spec
='${libname}${release}${shared_ext}$major'
18337 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18338 shlibpath_var
=LD_LIBRARY_PATH
18339 shlibpath_overrides_runpath
=no
18340 hardcode_into_libs
=yes
18343 irix5
* | irix6
* | nonstopux
*)
18345 nonstopux
*) version_type
=nonstopux
;;
18347 if test "$lt_cv_prog_gnu_ld" = yes; then
18355 soname_spec
='${libname}${release}${shared_ext}$major'
18356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18358 irix5
* | nonstopux
*)
18359 libsuff
= shlibsuff
=
18362 case $LD in # libtool.m4 will add one of these switches to LD
18363 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18364 libsuff
= shlibsuff
= libmagic
=32-bit;;
18365 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18366 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18367 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18368 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18369 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18373 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18374 shlibpath_overrides_runpath
=no
18375 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18376 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18377 hardcode_into_libs
=yes
18380 # No shared lib support for Linux oldld, aout, or coff.
18381 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18385 # This must be Linux ELF.
18386 linux
* | k
*bsd
*-gnu)
18390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18391 soname_spec
='${libname}${release}${shared_ext}$major'
18392 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18393 shlibpath_var
=LD_LIBRARY_PATH
18394 shlibpath_overrides_runpath
=no
18395 # This implies no fast_install, which is unacceptable.
18396 # Some rework will be needed to allow for fast_install
18397 # before this can be enabled.
18398 hardcode_into_libs
=yes
18399 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18400 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18402 # Append ld.so.conf contents to the search path
18403 if test -f /etc
/ld.so.conf
; then
18404 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' ' '`
18405 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18408 # We used to test for /lib/ld.so.1 and disable shared libraries on
18409 # powerpc, because MkLinux only supported shared libraries with the
18410 # GNU dynamic linker. Since this was broken with cross compilers,
18411 # most powerpc-linux boxes support dynamic linking these days and
18412 # people can always --disable-shared, the test was removed, and we
18413 # assume the GNU/Linux dynamic linker is in use.
18414 dynamic_linker
='GNU/Linux ld.so'
18421 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18422 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18423 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18424 dynamic_linker
='NetBSD (a.out) ld.so'
18426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18427 soname_spec
='${libname}${release}${shared_ext}$major'
18428 dynamic_linker
='NetBSD ld.elf_so'
18430 shlibpath_var
=LD_LIBRARY_PATH
18431 shlibpath_overrides_runpath
=yes
18432 hardcode_into_libs
=yes
18437 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18438 shlibpath_var
=LD_LIBRARY_PATH
18439 shlibpath_overrides_runpath
=yes
18446 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447 soname_spec
='${libname}${release}${shared_ext}$major'
18448 shlibpath_var
=LD_LIBRARY_PATH
18449 shlibpath_overrides_runpath
=yes
18454 sys_lib_dlsearch_path_spec
="/usr/lib"
18456 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18458 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18459 *) need_version
=no
;;
18461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18462 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18463 shlibpath_var
=LD_LIBRARY_PATH
18464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18466 openbsd2.
[89] | openbsd2.
[89].
*)
18467 shlibpath_overrides_runpath
=no
18470 shlibpath_overrides_runpath
=yes
18474 shlibpath_overrides_runpath
=yes
18479 libname_spec
='$name'
18482 library_names_spec
='$libname${shared_ext} $libname.a'
18483 dynamic_linker
='OS/2 ld.exe'
18484 shlibpath_var
=LIBPATH
18487 osf3
* | osf4
* | osf5
*)
18491 soname_spec
='${libname}${release}${shared_ext}$major'
18492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18493 shlibpath_var
=LD_LIBRARY_PATH
18494 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18495 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18507 soname_spec
='${libname}${release}${shared_ext}$major'
18508 shlibpath_var
=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath
=yes
18510 hardcode_into_libs
=yes
18511 # ldd complains unless libraries are executable
18512 postinstall_cmds
='chmod +x $lib'
18517 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18518 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18519 shlibpath_var
=LD_LIBRARY_PATH
18520 shlibpath_overrides_runpath
=yes
18521 if test "$with_gnu_ld" = yes; then
18529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18530 soname_spec
='${libname}${release}${shared_ext}$major'
18531 shlibpath_var
=LD_LIBRARY_PATH
18532 case $host_vendor in
18534 shlibpath_overrides_runpath
=no
18536 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18537 runpath_var
=LD_RUN_PATH
18545 shlibpath_overrides_runpath
=no
18546 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18552 if test -d /usr
/nec
;then
18554 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18555 soname_spec
='$libname${shared_ext}.$major'
18556 shlibpath_var
=LD_LIBRARY_PATH
18560 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18561 version_type
=freebsd-elf
18564 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18565 soname_spec
='${libname}${release}${shared_ext}$major'
18566 shlibpath_var
=LD_LIBRARY_PATH
18567 hardcode_into_libs
=yes
18568 if test "$with_gnu_ld" = yes; then
18569 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18570 shlibpath_overrides_runpath
=no
18572 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18573 shlibpath_overrides_runpath
=yes
18576 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18580 sys_lib_dlsearch_path_spec
='/usr/lib'
18585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586 soname_spec
='${libname}${release}${shared_ext}$major'
18587 shlibpath_var
=LD_LIBRARY_PATH
18594 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18595 echo "${ECHO_T}$dynamic_linker" >&6; }
18596 test "$dynamic_linker" = no
&& can_build_shared
=no
18598 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18599 if test "$GCC" = yes; then
18600 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18603 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18604 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18605 hardcode_action_GCJ
=
18606 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18607 test -n "$runpath_var_GCJ" || \
18608 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18610 # We can hardcode non-existant directories.
18611 if test "$hardcode_direct_GCJ" != no
&&
18612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18613 # have to relink, otherwise we might link with an installed library
18614 # when we should be linking with a yet-to-be-installed one
18615 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18616 test "$hardcode_minus_L_GCJ" != no
; then
18617 # Linking always hardcodes the temporary library directory.
18618 hardcode_action_GCJ
=relink
18620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18621 hardcode_action_GCJ
=immediate
18624 # We cannot hardcode anything, or else we can only hardcode existing
18626 hardcode_action_GCJ
=unsupported
18628 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18629 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18631 if test "$hardcode_action_GCJ" = relink
; then
18632 # Fast installation is not supported
18633 enable_fast_install
=no
18634 elif test "$shlibpath_overrides_runpath" = yes ||
18635 test "$enable_shared" = no
; then
18636 # Fast installation is not necessary
18637 enable_fast_install
=needless
18641 # The else clause should only fire when bootstrapping the
18642 # libtool distribution, otherwise you forgot to ship ltmain.sh
18643 # with your package, and you will get complaints that there are
18644 # no rules to generate ltmain.sh.
18645 if test -f "$ltmain"; then
18646 # See if we are running on zsh, and set the options which allow our commands through
18647 # without removal of \ escapes.
18648 if test -n "${ZSH_VERSION+set}" ; then
18649 setopt NO_GLOB_SUBST
18651 # Now quote all the things that may contain metacharacters while being
18652 # careful not to overquote the AC_SUBSTed values. We take copies of the
18653 # variables and quote the copies for generation of the libtool script.
18654 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18656 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18657 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18658 deplibs_check_method reload_flag reload_cmds need_locks \
18659 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18660 lt_cv_sys_global_symbol_to_c_name_address \
18661 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18662 old_postinstall_cmds old_postuninstall_cmds \
18666 lt_prog_compiler_wl_GCJ \
18667 lt_prog_compiler_pic_GCJ \
18668 lt_prog_compiler_static_GCJ \
18669 lt_prog_compiler_no_builtin_flag_GCJ \
18670 export_dynamic_flag_spec_GCJ \
18671 thread_safe_flag_spec_GCJ \
18672 whole_archive_flag_spec_GCJ \
18673 enable_shared_with_static_runtimes_GCJ \
18674 old_archive_cmds_GCJ \
18675 old_archive_from_new_cmds_GCJ \
18676 predep_objects_GCJ \
18677 postdep_objects_GCJ \
18680 compiler_lib_search_path_GCJ \
18682 archive_expsym_cmds_GCJ \
18683 postinstall_cmds_GCJ \
18684 postuninstall_cmds_GCJ \
18685 old_archive_from_expsyms_cmds_GCJ \
18686 allow_undefined_flag_GCJ \
18687 no_undefined_flag_GCJ \
18688 export_symbols_cmds_GCJ \
18689 hardcode_libdir_flag_spec_GCJ \
18690 hardcode_libdir_flag_spec_ld_GCJ \
18691 hardcode_libdir_separator_GCJ \
18692 hardcode_automatic_GCJ \
18694 module_expsym_cmds_GCJ \
18695 lt_cv_prog_compiler_c_o_GCJ \
18696 fix_srcfile_path_GCJ \
18697 exclude_expsyms_GCJ \
18698 include_expsyms_GCJ
; do
18701 old_archive_cmds_GCJ | \
18702 old_archive_from_new_cmds_GCJ | \
18703 archive_cmds_GCJ | \
18704 archive_expsym_cmds_GCJ | \
18705 module_cmds_GCJ | \
18706 module_expsym_cmds_GCJ | \
18707 old_archive_from_expsyms_cmds_GCJ | \
18708 export_symbols_cmds_GCJ | \
18709 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18710 postinstall_cmds | postuninstall_cmds | \
18711 old_postinstall_cmds | old_postuninstall_cmds | \
18712 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18713 # Double-quote double-evaled strings.
18714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18723 *'\$0 --fallback-echo"')
18724 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18730 cat <<__EOF__ >> "$cfgfile"
18731 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18733 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18735 # Shell to use when invoking shell scripts.
18738 # Whether or not to build shared libraries.
18739 build_libtool_libs=$enable_shared
18741 # Whether or not to build static libraries.
18742 build_old_libs=$enable_static
18744 # Whether or not to add -lc for building shared libraries.
18745 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18747 # Whether or not to disallow shared libs when runtime libs are static
18748 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18750 # Whether or not to optimize for fast installation.
18751 fast_install=$enable_fast_install
18754 host_alias=$host_alias
18758 # The build system.
18759 build_alias=$build_alias
18763 # An echo program that does not interpret backslashes.
18768 AR_FLAGS=$lt_AR_FLAGS
18773 # LTCC compiler flags.
18774 LTCFLAGS=$lt_LTCFLAGS
18776 # A language-specific compiler.
18777 CC=$lt_compiler_GCJ
18779 # Is the compiler the GNU C compiler?
18785 # The linker used to build libraries.
18788 # Whether we need hard or soft links.
18791 # A BSD-compatible nm program.
18794 # A symbol stripping program
18797 # Used to examine libraries when file_magic_cmd begins "file"
18798 MAGIC_CMD=$MAGIC_CMD
18800 # Used on cygwin: DLL creation program.
18803 # Used on cygwin: object dumper.
18806 # Used on cygwin: assembler.
18809 # The name of the directory that contains temporary libtool files.
18812 # How to create reloadable object files.
18813 reload_flag=$lt_reload_flag
18814 reload_cmds=$lt_reload_cmds
18816 # How to pass a linker flag through the compiler.
18817 wl=$lt_lt_prog_compiler_wl_GCJ
18819 # Object file suffix (normally "o").
18820 objext="$ac_objext"
18822 # Old archive suffix (normally "a").
18825 # Shared library suffix (normally ".so").
18826 shrext_cmds='$shrext_cmds'
18828 # Executable file suffix (normally "").
18831 # Additional compiler flags for building library objects.
18832 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18835 # What is the maximum length of a command?
18836 max_cmd_len=$lt_cv_sys_max_cmd_len
18838 # Does compiler simultaneously support -c and -o options?
18839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18841 # Must we lock files when doing compilation?
18842 need_locks=$lt_need_locks
18844 # Do we need the lib prefix for modules?
18845 need_lib_prefix=$need_lib_prefix
18847 # Do we need a version for libraries?
18848 need_version=$need_version
18850 # Whether dlopen is supported.
18851 dlopen_support=$enable_dlopen
18853 # Whether dlopen of programs is supported.
18854 dlopen_self=$enable_dlopen_self
18856 # Whether dlopen of statically linked programs is supported.
18857 dlopen_self_static=$enable_dlopen_self_static
18859 # Compiler flag to prevent dynamic linking.
18860 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18862 # Compiler flag to turn off builtin functions.
18863 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18865 # Compiler flag to allow reflexive dlopens.
18866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18868 # Compiler flag to generate shared objects directly from archives.
18869 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18871 # Compiler flag to generate thread-safe objects.
18872 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18874 # Library versioning type.
18875 version_type=$version_type
18877 # Format of library name prefix.
18878 libname_spec=$lt_libname_spec
18880 # List of archive names. First name is the real one, the rest are links.
18881 # The last name is the one that the linker finds with -lNAME.
18882 library_names_spec=$lt_library_names_spec
18884 # The coded name of the library, if different from the real name.
18885 soname_spec=$lt_soname_spec
18887 # Commands used to build and install an old-style archive.
18889 old_archive_cmds=$lt_old_archive_cmds_GCJ
18890 old_postinstall_cmds=$lt_old_postinstall_cmds
18891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18893 # Create an old-style archive from a shared archive.
18894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18896 # Create a temporary old-style archive to link instead of a shared archive.
18897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18899 # Commands used to build and install a shared archive.
18900 archive_cmds=$lt_archive_cmds_GCJ
18901 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18902 postinstall_cmds=$lt_postinstall_cmds
18903 postuninstall_cmds=$lt_postuninstall_cmds
18905 # Commands used to build a loadable module (assumed same as above if empty)
18906 module_cmds=$lt_module_cmds_GCJ
18907 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18909 # Commands to strip libraries.
18910 old_striplib=$lt_old_striplib
18911 striplib=$lt_striplib
18913 # Dependencies to place before the objects being linked to create a
18915 predep_objects=$lt_predep_objects_GCJ
18917 # Dependencies to place after the objects being linked to create a
18919 postdep_objects=$lt_postdep_objects_GCJ
18921 # Dependencies to place before the objects being linked to create a
18923 predeps=$lt_predeps_GCJ
18925 # Dependencies to place after the objects being linked to create a
18927 postdeps=$lt_postdeps_GCJ
18929 # The library search path used internally by the compiler when linking
18930 # a shared library.
18931 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18933 # Method to check whether dependent libraries are shared objects.
18934 deplibs_check_method=$lt_deplibs_check_method
18936 # Command to use when deplibs_check_method == file_magic.
18937 file_magic_cmd=$lt_file_magic_cmd
18939 # Flag that allows shared libraries with undefined symbols to be built.
18940 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18942 # Flag that forces no undefined symbols.
18943 no_undefined_flag=$lt_no_undefined_flag_GCJ
18945 # Commands used to finish a libtool library installation in a directory.
18946 finish_cmds=$lt_finish_cmds
18948 # Same as above, but a single script fragment to be evaled but not shown.
18949 finish_eval=$lt_finish_eval
18951 # Take the output of nm and produce a listing of raw symbols and C names.
18952 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18954 # Transform the output of nm in a proper C declaration
18955 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18957 # Transform the output of nm in a C name address pair
18958 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18960 # This is the shared library runtime path variable.
18961 runpath_var=$runpath_var
18963 # This is the shared library path variable.
18964 shlibpath_var=$shlibpath_var
18966 # Is shlibpath searched before the hard-coded library search path?
18967 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18969 # How to hardcode a shared library path into an executable.
18970 hardcode_action=$hardcode_action_GCJ
18972 # Whether we should hardcode library paths into libraries.
18973 hardcode_into_libs=$hardcode_into_libs
18975 # Flag to hardcode \$libdir into a binary during linking.
18976 # This must work even if \$libdir does not exist.
18977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18979 # If ld is used when linking, flag to hardcode \$libdir into
18980 # a binary during linking. This must work even if \$libdir does
18982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18984 # Whether we need a single -rpath flag with a separated argument.
18985 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18987 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18988 # resulting binary.
18989 hardcode_direct=$hardcode_direct_GCJ
18991 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18992 # resulting binary.
18993 hardcode_minus_L=$hardcode_minus_L_GCJ
18995 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18996 # the resulting binary.
18997 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18999 # Set to yes if building a shared library automatically hardcodes DIR into the library
19000 # and all subsequent libraries and executables linked against it.
19001 hardcode_automatic=$hardcode_automatic_GCJ
19003 # Variables whose values should be saved in libtool wrapper scripts and
19004 # restored at relink time.
19005 variables_saved_for_relink="$variables_saved_for_relink"
19007 # Whether libtool must link a program against all its dependency libraries.
19008 link_all_deplibs=$link_all_deplibs_GCJ
19010 # Compile-time system search path for libraries
19011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19013 # Run-time system search path for libraries
19014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19016 # Fix the shell variable \$srcfile for the compiler.
19017 fix_srcfile_path=$lt_fix_srcfile_path
19019 # Set to yes if exported symbols are required.
19020 always_export_symbols=$always_export_symbols_GCJ
19022 # The commands to list exported symbols.
19023 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19025 # The commands to extract the exported symbol list from a shared archive.
19026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19028 # Symbols that should not be listed in the preloaded symbols.
19029 exclude_expsyms=$lt_exclude_expsyms_GCJ
19031 # Symbols that must always be exported.
19032 include_expsyms=$lt_include_expsyms_GCJ
19034 # ### END LIBTOOL TAG CONFIG: $tagname
19040 # If there is no Makefile yet, we rely on a make rule to execute
19041 # `config.status --recheck' to rerun these tests and create the
19042 # libtool script then.
19043 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19044 if test -f "$ltmain_in"; then
19045 test -f Makefile
&& make "$ltmain"
19051 ac_cpp
='$CPP $CPPFLAGS'
19052 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19053 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19054 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19066 # Source file extension for RC test sources.
19069 # Object file extension for compiled RC test sources.
19073 # Code to be used in simple compile tests
19074 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19076 # Code to be used in simple link tests
19077 lt_simple_link_test_code
="$lt_simple_compile_test_code"
19079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19081 # If no C compiler was specified, use CC.
19084 # If no C compiler flags were specified, use CFLAGS.
19085 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19087 # Allow CC to be a program name with arguments.
19091 # save warnings/boilerplate of simple test code
19092 ac_outfile
=conftest.
$ac_objext
19093 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19094 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19095 _lt_compiler_boilerplate
=`cat conftest.err`
19098 ac_outfile
=conftest.
$ac_objext
19099 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19100 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19101 _lt_linker_boilerplate
=`cat conftest.err`
19105 # Allow CC to be a program name with arguments.
19110 for cc_temp
in $compiler""; do
19112 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19113 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19118 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19120 lt_cv_prog_compiler_c_o_RC
=yes
19122 # The else clause should only fire when bootstrapping the
19123 # libtool distribution, otherwise you forgot to ship ltmain.sh
19124 # with your package, and you will get complaints that there are
19125 # no rules to generate ltmain.sh.
19126 if test -f "$ltmain"; then
19127 # See if we are running on zsh, and set the options which allow our commands through
19128 # without removal of \ escapes.
19129 if test -n "${ZSH_VERSION+set}" ; then
19130 setopt NO_GLOB_SUBST
19132 # Now quote all the things that may contain metacharacters while being
19133 # careful not to overquote the AC_SUBSTed values. We take copies of the
19134 # variables and quote the copies for generation of the libtool script.
19135 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19137 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19138 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19139 deplibs_check_method reload_flag reload_cmds need_locks \
19140 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19141 lt_cv_sys_global_symbol_to_c_name_address \
19142 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19143 old_postinstall_cmds old_postuninstall_cmds \
19147 lt_prog_compiler_wl_RC \
19148 lt_prog_compiler_pic_RC \
19149 lt_prog_compiler_static_RC \
19150 lt_prog_compiler_no_builtin_flag_RC \
19151 export_dynamic_flag_spec_RC \
19152 thread_safe_flag_spec_RC \
19153 whole_archive_flag_spec_RC \
19154 enable_shared_with_static_runtimes_RC \
19155 old_archive_cmds_RC \
19156 old_archive_from_new_cmds_RC \
19157 predep_objects_RC \
19158 postdep_objects_RC \
19161 compiler_lib_search_path_RC \
19163 archive_expsym_cmds_RC \
19164 postinstall_cmds_RC \
19165 postuninstall_cmds_RC \
19166 old_archive_from_expsyms_cmds_RC \
19167 allow_undefined_flag_RC \
19168 no_undefined_flag_RC \
19169 export_symbols_cmds_RC \
19170 hardcode_libdir_flag_spec_RC \
19171 hardcode_libdir_flag_spec_ld_RC \
19172 hardcode_libdir_separator_RC \
19173 hardcode_automatic_RC \
19175 module_expsym_cmds_RC \
19176 lt_cv_prog_compiler_c_o_RC \
19177 fix_srcfile_path_RC \
19178 exclude_expsyms_RC \
19179 include_expsyms_RC
; do
19182 old_archive_cmds_RC | \
19183 old_archive_from_new_cmds_RC | \
19184 archive_cmds_RC | \
19185 archive_expsym_cmds_RC | \
19187 module_expsym_cmds_RC | \
19188 old_archive_from_expsyms_cmds_RC | \
19189 export_symbols_cmds_RC | \
19190 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19191 postinstall_cmds | postuninstall_cmds | \
19192 old_postinstall_cmds | old_postuninstall_cmds | \
19193 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19194 # Double-quote double-evaled strings.
19195 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19204 *'\$0 --fallback-echo"')
19205 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19211 cat <<__EOF__ >> "$cfgfile"
19212 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19216 # Shell to use when invoking shell scripts.
19219 # Whether or not to build shared libraries.
19220 build_libtool_libs=$enable_shared
19222 # Whether or not to build static libraries.
19223 build_old_libs=$enable_static
19225 # Whether or not to add -lc for building shared libraries.
19226 build_libtool_need_lc=$archive_cmds_need_lc_RC
19228 # Whether or not to disallow shared libs when runtime libs are static
19229 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19231 # Whether or not to optimize for fast installation.
19232 fast_install=$enable_fast_install
19235 host_alias=$host_alias
19239 # The build system.
19240 build_alias=$build_alias
19244 # An echo program that does not interpret backslashes.
19249 AR_FLAGS=$lt_AR_FLAGS
19254 # LTCC compiler flags.
19255 LTCFLAGS=$lt_LTCFLAGS
19257 # A language-specific compiler.
19260 # Is the compiler the GNU C compiler?
19266 # The linker used to build libraries.
19269 # Whether we need hard or soft links.
19272 # A BSD-compatible nm program.
19275 # A symbol stripping program
19278 # Used to examine libraries when file_magic_cmd begins "file"
19279 MAGIC_CMD=$MAGIC_CMD
19281 # Used on cygwin: DLL creation program.
19284 # Used on cygwin: object dumper.
19287 # Used on cygwin: assembler.
19290 # The name of the directory that contains temporary libtool files.
19293 # How to create reloadable object files.
19294 reload_flag=$lt_reload_flag
19295 reload_cmds=$lt_reload_cmds
19297 # How to pass a linker flag through the compiler.
19298 wl=$lt_lt_prog_compiler_wl_RC
19300 # Object file suffix (normally "o").
19301 objext="$ac_objext"
19303 # Old archive suffix (normally "a").
19306 # Shared library suffix (normally ".so").
19307 shrext_cmds='$shrext_cmds'
19309 # Executable file suffix (normally "").
19312 # Additional compiler flags for building library objects.
19313 pic_flag=$lt_lt_prog_compiler_pic_RC
19316 # What is the maximum length of a command?
19317 max_cmd_len=$lt_cv_sys_max_cmd_len
19319 # Does compiler simultaneously support -c and -o options?
19320 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19322 # Must we lock files when doing compilation?
19323 need_locks=$lt_need_locks
19325 # Do we need the lib prefix for modules?
19326 need_lib_prefix=$need_lib_prefix
19328 # Do we need a version for libraries?
19329 need_version=$need_version
19331 # Whether dlopen is supported.
19332 dlopen_support=$enable_dlopen
19334 # Whether dlopen of programs is supported.
19335 dlopen_self=$enable_dlopen_self
19337 # Whether dlopen of statically linked programs is supported.
19338 dlopen_self_static=$enable_dlopen_self_static
19340 # Compiler flag to prevent dynamic linking.
19341 link_static_flag=$lt_lt_prog_compiler_static_RC
19343 # Compiler flag to turn off builtin functions.
19344 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19346 # Compiler flag to allow reflexive dlopens.
19347 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19349 # Compiler flag to generate shared objects directly from archives.
19350 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19352 # Compiler flag to generate thread-safe objects.
19353 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19355 # Library versioning type.
19356 version_type=$version_type
19358 # Format of library name prefix.
19359 libname_spec=$lt_libname_spec
19361 # List of archive names. First name is the real one, the rest are links.
19362 # The last name is the one that the linker finds with -lNAME.
19363 library_names_spec=$lt_library_names_spec
19365 # The coded name of the library, if different from the real name.
19366 soname_spec=$lt_soname_spec
19368 # Commands used to build and install an old-style archive.
19370 old_archive_cmds=$lt_old_archive_cmds_RC
19371 old_postinstall_cmds=$lt_old_postinstall_cmds
19372 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19374 # Create an old-style archive from a shared archive.
19375 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19377 # Create a temporary old-style archive to link instead of a shared archive.
19378 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19380 # Commands used to build and install a shared archive.
19381 archive_cmds=$lt_archive_cmds_RC
19382 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19383 postinstall_cmds=$lt_postinstall_cmds
19384 postuninstall_cmds=$lt_postuninstall_cmds
19386 # Commands used to build a loadable module (assumed same as above if empty)
19387 module_cmds=$lt_module_cmds_RC
19388 module_expsym_cmds=$lt_module_expsym_cmds_RC
19390 # Commands to strip libraries.
19391 old_striplib=$lt_old_striplib
19392 striplib=$lt_striplib
19394 # Dependencies to place before the objects being linked to create a
19396 predep_objects=$lt_predep_objects_RC
19398 # Dependencies to place after the objects being linked to create a
19400 postdep_objects=$lt_postdep_objects_RC
19402 # Dependencies to place before the objects being linked to create a
19404 predeps=$lt_predeps_RC
19406 # Dependencies to place after the objects being linked to create a
19408 postdeps=$lt_postdeps_RC
19410 # The library search path used internally by the compiler when linking
19411 # a shared library.
19412 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19414 # Method to check whether dependent libraries are shared objects.
19415 deplibs_check_method=$lt_deplibs_check_method
19417 # Command to use when deplibs_check_method == file_magic.
19418 file_magic_cmd=$lt_file_magic_cmd
19420 # Flag that allows shared libraries with undefined symbols to be built.
19421 allow_undefined_flag=$lt_allow_undefined_flag_RC
19423 # Flag that forces no undefined symbols.
19424 no_undefined_flag=$lt_no_undefined_flag_RC
19426 # Commands used to finish a libtool library installation in a directory.
19427 finish_cmds=$lt_finish_cmds
19429 # Same as above, but a single script fragment to be evaled but not shown.
19430 finish_eval=$lt_finish_eval
19432 # Take the output of nm and produce a listing of raw symbols and C names.
19433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19435 # Transform the output of nm in a proper C declaration
19436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19438 # Transform the output of nm in a C name address pair
19439 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19441 # This is the shared library runtime path variable.
19442 runpath_var=$runpath_var
19444 # This is the shared library path variable.
19445 shlibpath_var=$shlibpath_var
19447 # Is shlibpath searched before the hard-coded library search path?
19448 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19450 # How to hardcode a shared library path into an executable.
19451 hardcode_action=$hardcode_action_RC
19453 # Whether we should hardcode library paths into libraries.
19454 hardcode_into_libs=$hardcode_into_libs
19456 # Flag to hardcode \$libdir into a binary during linking.
19457 # This must work even if \$libdir does not exist.
19458 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19460 # If ld is used when linking, flag to hardcode \$libdir into
19461 # a binary during linking. This must work even if \$libdir does
19463 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19465 # Whether we need a single -rpath flag with a separated argument.
19466 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19468 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19469 # resulting binary.
19470 hardcode_direct=$hardcode_direct_RC
19472 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19473 # resulting binary.
19474 hardcode_minus_L=$hardcode_minus_L_RC
19476 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19477 # the resulting binary.
19478 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19480 # Set to yes if building a shared library automatically hardcodes DIR into the library
19481 # and all subsequent libraries and executables linked against it.
19482 hardcode_automatic=$hardcode_automatic_RC
19484 # Variables whose values should be saved in libtool wrapper scripts and
19485 # restored at relink time.
19486 variables_saved_for_relink="$variables_saved_for_relink"
19488 # Whether libtool must link a program against all its dependency libraries.
19489 link_all_deplibs=$link_all_deplibs_RC
19491 # Compile-time system search path for libraries
19492 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19494 # Run-time system search path for libraries
19495 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19497 # Fix the shell variable \$srcfile for the compiler.
19498 fix_srcfile_path=$lt_fix_srcfile_path
19500 # Set to yes if exported symbols are required.
19501 always_export_symbols=$always_export_symbols_RC
19503 # The commands to list exported symbols.
19504 export_symbols_cmds=$lt_export_symbols_cmds_RC
19506 # The commands to extract the exported symbol list from a shared archive.
19507 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19509 # Symbols that should not be listed in the preloaded symbols.
19510 exclude_expsyms=$lt_exclude_expsyms_RC
19512 # Symbols that must always be exported.
19513 include_expsyms=$lt_include_expsyms_RC
19515 # ### END LIBTOOL TAG CONFIG: $tagname
19521 # If there is no Makefile yet, we rely on a make rule to execute
19522 # `config.status --recheck' to rerun these tests and create the
19523 # libtool script then.
19524 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19525 if test -f "$ltmain_in"; then
19526 test -f Makefile
&& make "$ltmain"
19532 ac_cpp
='$CPP $CPPFLAGS'
19533 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19534 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19535 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19542 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19543 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19544 { (exit 1); exit 1; }; }
19548 # Append the new tag name to the list of available tags.
19549 if test -n "$tagname" ; then
19550 available_tags
="$available_tags $tagname"
19556 # Now substitute the updated list of available tags.
19557 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19558 mv "${ofile}T" "$ofile"
19562 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19563 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19564 { (exit 1); exit 1; }; }
19570 # This can be used to rebuild libtool when needed
19571 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19573 # Always use our own libtool.
19574 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19576 # Prevent multiple expansion
19598 if test "$GCC" = yes ; then
19599 CXXFLAGS
="$CXXFLAGS -Wall"
19600 CFLAGS
="$CFLAGS -Wall"
19604 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19605 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19606 if test "${ac_cv_header_stdc+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19609 cat >conftest.
$ac_ext <<_ACEOF
19612 cat confdefs.h
>>conftest.
$ac_ext
19613 cat >>conftest.
$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19615 #include <stdlib.h>
19616 #include <stdarg.h>
19617 #include <string.h>
19628 rm -f conftest.
$ac_objext
19629 if { (ac_try
="$ac_compile"
19630 case "(($ac_try" in
19631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_compile") 2>conftest.er1
19637 grep -v '^ *+' conftest.er1 >conftest.err
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } && {
19642 test -z "$ac_c_werror_flag" ||
19643 test ! -s conftest.err
19644 } && test -s conftest.$ac_objext; then
19645 ac_cv_header_stdc=yes
19647 echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19650 ac_cv_header_stdc=no
19653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19655 if test $ac_cv_header_stdc = yes; then
19656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19657 cat >conftest.$ac_ext <<_ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19663 #include <string.h>
19666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19667 $EGREP "memchr" >/dev/null 2>&1; then
19670 ac_cv_header_stdc=no
19676 if test $ac_cv_header_stdc = yes; then
19677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19678 cat >conftest.$ac_ext <<_ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 #include <stdlib.h>
19687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19688 $EGREP "free" >/dev/null 2>&1; then
19691 ac_cv_header_stdc=no
19697 if test $ac_cv_header_stdc = yes; then
19698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19699 if test "$cross_compiling" = yes; then
19702 cat >conftest.$ac_ext <<_ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19709 #include <stdlib.h>
19710 #if ((' ' & 0x0FF) == 0x020)
19711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19714 # define ISLOWER(c) \
19715 (('a' <= (c) && (c) <= 'i') \
19716 || ('j' <= (c) && (c) <= 'r') \
19717 || ('s' <= (c) && (c) <= 'z'))
19718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19726 for (i = 0; i < 256; i++)
19727 if (XOR (islower (i), ISLOWER (i))
19728 || toupper (i) != TOUPPER (i))
19733 rm -f conftest$ac_exeext
19734 if { (ac_try="$ac_link"
19735 case "(($ac_try" in
19736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19737 *) ac_try_echo
=$ac_try;;
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_link") 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19744 { (case "(($ac_try" in
19745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_try") 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19755 echo "$as_me: program exited with status $ac_status" >&5
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19759 ( exit $ac_status )
19760 ac_cv_header_stdc=no
19762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19768 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19769 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19770 if test $ac_cv_header_stdc = yes; then
19772 cat >>confdefs.h <<\_ACEOF
19773 #define STDC_HEADERS 1
19779 for ac_header in locale.h
19781 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 ac_res=`eval echo '${'$as_ac_Header'}'`
19789 { echo "$as_me:$LINENO: result: $ac_res" >&5
19790 echo "${ECHO_T}$ac_res" >&6; }
19792 # Is the header compilable?
19793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 $ac_includes_default
19802 #include <$ac_header>
19804 rm -f conftest.$ac_objext
19805 if { (ac_try="$ac_compile"
19806 case "(($ac_try" in
19807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19808 *) ac_try_echo
=$ac_try;;
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_compile") 2>conftest.er1
19813 grep -v '^ *+' conftest.er1
>conftest.err
19815 cat conftest.err
>&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } && {
19818 test -z "$ac_c_werror_flag" ||
19819 test ! -s conftest.err
19820 } && test -s conftest.
$ac_objext; then
19821 ac_header_compiler
=yes
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.
$ac_ext >&5
19826 ac_header_compiler
=no
19829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19831 echo "${ECHO_T}$ac_header_compiler" >&6; }
19833 # Is the header present?
19834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19836 cat >conftest.
$ac_ext <<_ACEOF
19839 cat confdefs.h
>>conftest.
$ac_ext
19840 cat >>conftest.
$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 #include <$ac_header>
19844 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19845 case "(($ac_try" in
19846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19852 grep -v '^ *+' conftest.er1 >conftest.err
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } >/dev/null && {
19857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19858 test ! -s conftest.err
19860 ac_header_preproc=yes
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 ac_header_preproc=no
19868 rm -f conftest.err conftest.$ac_ext
19869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19870 echo "${ECHO_T}$ac_header_preproc" >&6; }
19872 # So? What about this header?
19873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19879 ac_header_preproc=yes
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19895 ## -------------------------------------------------- ##
19896 ## Report this to courier-users@lists.sourceforge.net ##
19897 ## -------------------------------------------------- ##
19899 ) | sed "s/^/$as_me: WARNING: /" >&2
19902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 eval "$as_ac_Header=\$ac_header_preproc"
19909 ac_res=`eval echo '${'$as_ac_Header'}'`
19910 { echo "$as_me:$LINENO: result: $ac_res" >&5
19911 echo "${ECHO_T}$ac_res" >&6; }
19914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19915 cat >>confdefs.h <<_ACEOF
19916 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19924 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19925 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19926 if test "${ac_cv_c_const+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19929 cat >conftest.$ac_ext <<_ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19939 /* FIXME: Include the comments suggested by Paul. */
19940 #ifndef __cplusplus
19941 /* Ultrix mips cc rejects this. */
19942 typedef int charset[2];
19944 /* SunOS 4.1.1 cc rejects this. */
19945 char const *const *pcpcc;
19947 /* NEC SVR4.0.2 mips cc rejects this. */
19948 struct point {int x, y;};
19949 static struct point const zero = {0,0};
19950 /* AIX XL C 1.02.0.0 rejects this.
19951 It does not let you subtract one const X* pointer from another in
19952 an arm of an if-expression whose if-part is not a constant
19954 const char *g = "string";
19955 pcpcc = &g + (g ? g-g : 0);
19956 /* HPUX 7.0 cc rejects these. */
19958 ppc = (char**) pcpcc;
19959 pcpcc = (char const *const *) ppc;
19960 { /* SCO 3.2v4 cc rejects this. */
19962 char const *s = 0 ? (char *) 0 : (char const *) 0;
19967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19968 int x[] = {25, 17};
19969 const int *foo = &x[0];
19972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19973 typedef const int *iptr;
19977 { /* AIX XL C 1.02.0.0 rejects this saying
19978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19979 struct s { int j; const int *ap[3]; };
19980 struct s *b; b->j = 5;
19982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19983 const int foo = 10;
19984 if (!foo) return 0;
19986 return !cs[0] && !zero.x;
19993 rm -f conftest.$ac_objext
19994 if { (ac_try="$ac_compile"
19995 case "(($ac_try" in
19996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19997 *) ac_try_echo
=$ac_try;;
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_compile") 2>conftest.er1
20002 grep -v '^ *+' conftest.er1
>conftest.err
20004 cat conftest.err
>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest.
$ac_objext; then
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.
$ac_ext >&5
20018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20020 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20021 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20022 if test $ac_cv_c_const = no
; then
20024 cat >>confdefs.h
<<\_ACEOF
20030 { echo "$as_me:$LINENO: checking for size_t" >&5
20031 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20032 if test "${ac_cv_type_size_t+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 cat >conftest.
$ac_ext <<_ACEOF
20038 cat confdefs.h
>>conftest.
$ac_ext
20039 cat >>conftest.
$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 $ac_includes_default
20042 typedef size_t ac__type_new_;
20046 if ((ac__type_new_ *) 0)
20048 if (sizeof (ac__type_new_))
20054 rm -f conftest.
$ac_objext
20055 if { (ac_try
="$ac_compile"
20056 case "(($ac_try" in
20057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_compile") 2>conftest.er1
20063 grep -v '^ *+' conftest.er1 >conftest.err
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } && {
20068 test -z "$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20070 } && test -s conftest.$ac_objext; then
20071 ac_cv_type_size_t=yes
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20076 ac_cv_type_size_t=no
20079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20081 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20082 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20083 if test $ac_cv_type_size_t = yes; then
20087 cat >>confdefs.h <<_ACEOF
20088 #define size_t unsigned int
20093 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20094 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20095 if test "${ac_cv_struct_tm+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 cat >conftest.$ac_ext <<_ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 #include <sys/types.h>
20111 int *p = &tm.tm_sec;
20117 rm -f conftest.$ac_objext
20118 if { (ac_try="$ac_compile"
20119 case "(($ac_try" in
20120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20121 *) ac_try_echo
=$ac_try;;
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_compile") 2>conftest.er1
20126 grep -v '^ *+' conftest.er1
>conftest.err
20128 cat conftest.err
>&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } && {
20131 test -z "$ac_c_werror_flag" ||
20132 test ! -s conftest.err
20133 } && test -s conftest.
$ac_objext; then
20134 ac_cv_struct_tm
=time.h
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.
$ac_ext >&5
20139 ac_cv_struct_tm
=sys
/time.h
20142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20144 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20145 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20146 if test $ac_cv_struct_tm = sys
/time.h
; then
20148 cat >>confdefs.h
<<\_ACEOF
20149 #define TM_IN_SYS_TIME 1
20159 for ac_func
in strcasecmp strncasecmp setlocale
20161 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20162 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20164 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 cat >conftest.
$ac_ext <<_ACEOF
20170 cat confdefs.h
>>conftest.
$ac_ext
20171 cat >>conftest.
$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20175 #define $ac_func innocuous_$ac_func
20177 /* System header to define __stub macros and hopefully few prototypes,
20178 which can conflict with char $ac_func (); below.
20179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20180 <limits.h> exists even on freestanding compilers. */
20183 # include <limits.h>
20185 # include <assert.h>
20190 /* Override any GCC internal prototype to avoid an error.
20191 Use char because int might match the return type of a GCC
20192 builtin and then its argument prototype would still apply. */
20197 /* The GNU C library defines this for functions which it implements
20198 to always fail with ENOSYS. Some functions are actually named
20199 something starting with __ and the normal name is an alias. */
20200 #if defined __stub_$ac_func || defined __stub___$ac_func
20207 return $ac_func ();
20212 rm -f conftest.
$ac_objext conftest
$ac_exeext
20213 if { (ac_try
="$ac_link"
20214 case "(($ac_try" in
20215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20216 *) ac_try_echo=$ac_try;;
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219 (eval "$ac_link") 2>conftest.er1
20221 grep -v '^ *+' conftest.er1 >conftest.err
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } && {
20226 test -z "$ac_c_werror_flag" ||
20227 test ! -s conftest.err
20228 } && test -s conftest$ac_exeext &&
20229 $as_test_x conftest$ac_exeext; then
20230 eval "$as_ac_var=yes"
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20235 eval "$as_ac_var=no"
20238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20239 conftest$ac_exeext conftest.$ac_ext
20241 ac_res=`eval echo '${'$as_ac_var'}'`
20242 { echo "$as_me:$LINENO: result: $ac_res" >&5
20243 echo "${ECHO_T}$ac_res" >&6; }
20244 if test `eval echo '${'$as_ac_var'}'` = yes; then
20245 cat >>confdefs.h <<_ACEOF
20246 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20253 { echo "$as_me:$LINENO: checking how to calculate alternate timezone" >&5
20254 echo $ECHO_N "checking how to calculate alternate timezone... $ECHO_C" >&6; }
20255 if test "${librfc822_cv_SYS_TIMEZONE+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 cat >conftest.$ac_ext <<_ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20282 rm -f conftest.$ac_objext
20283 if { (ac_try="$ac_compile"
20284 case "(($ac_try" in
20285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20286 *) ac_try_echo
=$ac_try;;
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_compile") 2>conftest.er1
20291 grep -v '^ *+' conftest.er1
>conftest.err
20293 cat conftest.err
>&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } && {
20296 test -z "$ac_c_werror_flag" ||
20297 test ! -s conftest.err
20298 } && test -s conftest.
$ac_objext; then
20299 librfc822_cv_SYS_TIMEZONE
=altzone
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.
$ac_ext >&5
20304 cat >conftest.
$ac_ext <<_ACEOF
20307 cat confdefs.h
>>conftest.
$ac_ext
20308 cat >>conftest.
$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20328 rm -f conftest.
$ac_objext
20329 if { (ac_try
="$ac_compile"
20330 case "(($ac_try" in
20331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_compile") 2>conftest.er1
20337 grep -v '^ *+' conftest.er1 >conftest.err
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } && {
20342 test -z "$ac_c_werror_flag" ||
20343 test ! -s conftest.err
20344 } && test -s conftest.$ac_objext; then
20345 librfc822_cv_SYS_TIMEZONE=daylight
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 cat >conftest.$ac_ext <<_ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20359 extern struct tm dummy;
20367 long n=dummy.tm_gmtoff;
20376 rm -f conftest.$ac_objext
20377 if { (ac_try="$ac_compile"
20378 case "(($ac_try" in
20379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20380 *) ac_try_echo
=$ac_try;;
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_compile") 2>conftest.er1
20385 grep -v '^ *+' conftest.er1
>conftest.err
20387 cat conftest.err
>&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest.
$ac_objext; then
20393 librfc822_cv_SYS_TIMEZONE
=tm_gmtoff
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.
$ac_ext >&5
20398 librfc822_cv_SYS_TIMEZONE
=unknown
20402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20413 { echo "$as_me:$LINENO: result: $librfc822_cv_SYS_TIMEZONE" >&5
20414 echo "${ECHO_T}$librfc822_cv_SYS_TIMEZONE" >&6; }
20416 case $librfc822_cv_SYS_TIMEZONE in
20419 cat >>confdefs.h
<<_ACEOF
20420 #define USE_TIME_GMTOFF 1
20426 cat >>confdefs.h
<<_ACEOF
20427 #define USE_TIME_ALTZONE 1
20433 cat >>confdefs.h
<<_ACEOF
20434 #define USE_TIME_DAYLIGHT 1
20439 { echo "$as_me:$LINENO: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&5
20440 echo "$as_me: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&2;}
20444 if test -d ..
/unicode
20447 cat >>confdefs.h
<<_ACEOF
20448 #define HAVE_LIBUNICODE 1
20453 if test -d ${srcdir}/..
/docbook
; then
20455 HAVE_SGML_FALSE
='#'
20462 ac_config_files
="$ac_config_files Makefile"
20464 cat >confcache
<<\_ACEOF
20465 # This file is a shell script that caches the results of configure
20466 # tests run on this system so they can be shared between configure
20467 # scripts and configure runs, see configure's option --config-cache.
20468 # It is not useful on other systems. If it contains results you don't
20469 # want to keep, you may remove or edit it.
20471 # config.status only pays attention to the cache file if you give it
20472 # the --recheck option to rerun configure.
20474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20476 # following values.
20480 # The following way of writing the cache mishandles newlines in values,
20481 # but we know of no workaround that is simple, portable, and efficient.
20482 # So, we kill variables containing newlines.
20483 # Ultrix sh set writes to stderr and can't be redirected directly,
20484 # and sets the high bit in the cache file unless we assign to the vars.
20486 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20487 eval ac_val
=\$
$ac_var
20491 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20492 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20495 _ | IFS | as_nl
) ;; #(
20496 *) $as_unset $ac_var ;;
20502 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20503 *${as_nl}ac_space
=\
*)
20504 # `set' does not quote correctly, so add quotes (double-quote
20505 # substitution turns \\\\ into \\, and sed turns \\ into \).
20508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20511 # `set' quotes correctly as required by POSIX, so do not add quotes.
20512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20523 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20525 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20526 if test -w "$cache_file"; then
20527 test "x$cache_file" != "x/dev/null" &&
20528 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20529 echo "$as_me: updating cache $cache_file" >&6;}
20530 cat confcache
>$cache_file
20532 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20533 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20538 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20539 # Let make expand exec_prefix.
20540 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20542 DEFS
=-DHAVE_CONFIG_H
20546 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20547 # 1. Remove the extension, and $U if already installed.
20548 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20549 ac_i
=`echo "$ac_i" | sed "$ac_script"`
20550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20551 # will be set to the directory where LIBOBJS objects are built.
20552 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20553 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20555 LIBOBJS
=$ac_libobjs
20557 LTLIBOBJS
=$ac_ltlibobjs
20560 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20561 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20562 Usually this means the macro was only invoked conditionally." >&5
20563 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20564 Usually this means the macro was only invoked conditionally." >&2;}
20565 { (exit 1); exit 1; }; }
20567 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20568 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20569 Usually this means the macro was only invoked conditionally." >&5
20570 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20571 Usually this means the macro was only invoked conditionally." >&2;}
20572 { (exit 1); exit 1; }; }
20574 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20575 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20576 Usually this means the macro was only invoked conditionally." >&5
20577 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20578 Usually this means the macro was only invoked conditionally." >&2;}
20579 { (exit 1); exit 1; }; }
20581 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
20582 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
20583 Usually this means the macro was only invoked conditionally." >&5
20584 echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
20585 Usually this means the macro was only invoked conditionally." >&2;}
20586 { (exit 1); exit 1; }; }
20589 : ${CONFIG_STATUS=./config.status}
20590 ac_clean_files_save
=$ac_clean_files
20591 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20592 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20593 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20594 cat >$CONFIG_STATUS <<_ACEOF
20596 # Generated by $as_me.
20597 # Run this file to recreate the current configuration.
20598 # Compiler output produced by configure, useful for debugging
20599 # configure, is in config.log if it exists.
20602 ac_cs_recheck=false
20604 SHELL=\${CONFIG_SHELL-$SHELL}
20607 cat >>$CONFIG_STATUS <<\_ACEOF
20608 ## --------------------- ##
20609 ## M4sh Initialization. ##
20610 ## --------------------- ##
20612 # Be more Bourne compatible
20613 DUALCASE
=1; export DUALCASE
# for MKS sh
20614 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20617 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20618 # is contrary to our usage. Disable this feature.
20619 alias -g '${1+"$@"}'='"$@"'
20620 setopt NO_GLOB_SUBST
20622 case `(set -o) 2>/dev/null` in
20623 *posix
*) set -o posix
;;
20632 # Avoid depending upon Character Ranges.
20633 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20634 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20635 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20636 as_cr_digits
='0123456789'
20637 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20639 # The user is always right.
20640 if test "${PATH_SEPARATOR+set}" != set; then
20641 echo "#! /bin/sh" >conf$$.sh
20642 echo "exit 0" >>conf$$.sh
20644 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20652 # Support unset when possible.
20653 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
20661 # We need space, tab and new line, in precisely that order. Quoting is
20662 # there to prevent editors from complaining about space-tab.
20663 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20664 # splitting by setting IFS to empty value.)
20669 # Find who we are. Look in the path if we contain no directory separator.
20671 *[\\/]* ) as_myself
=$0 ;;
20672 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20673 for as_dir
in $PATH
20676 test -z "$as_dir" && as_dir
=.
20677 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20683 # We did not find ourselves, most probably we were run as `sh COMMAND'
20684 # in which case we are not to be found in the path.
20685 if test "x$as_myself" = x
; then
20688 if test ! -f "$as_myself"; then
20689 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20690 { (exit 1); exit 1; }
20693 # Work around bugs in pre-3.0 UWIN ksh.
20694 for as_var
in ENV MAIL MAILPATH
20695 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20703 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20704 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20705 LC_TELEPHONE LC_TIME
20707 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20708 eval $as_var=C
; export $as_var
20710 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20714 # Required to use basename.
20715 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20716 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20722 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20723 as_basename
=basename
20729 # Name of the executable.
20730 as_me
=`$as_basename -- "$0" ||
20731 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20732 X"$0" : 'X\(//\)$' \| \
20733 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20735 sed '/^.*\/\([^/][^/]*\)\/*$/{
20754 as_lineno_1
=$LINENO
20755 as_lineno_2
=$LINENO
20756 test "x$as_lineno_1" != "x$as_lineno_2" &&
20757 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
20759 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20760 # uniformly replaced by the line number. The first 'sed' inserts a
20761 # line-number line after each line using $LINENO; the second 'sed'
20762 # does the real work. The second script uses 'N' to pair each
20763 # line-number line with the line containing $LINENO, and appends
20764 # trailing '-' during substitution so that $LINENO is not a special
20765 # case at line end.
20766 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20767 # scripts with optimization help from Paolo Bonzini. Blame Lee
20768 # E. McMahon (1931-1989) for sed's syntax. :-)
20780 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20783 ' >$as_me.lineno
&&
20784 chmod +x
"$as_me.lineno" ||
20785 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20786 { (exit 1); exit 1; }; }
20788 # Don't try to exec as it changes $[0], causing all sort of problems
20789 # (the dirname of $[0] is not the place where we might find the
20790 # original and so on. Autoconf is especially sensitive to this).
20791 .
"./$as_me.lineno"
20792 # Exit status is that of the last command.
20797 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20803 ECHO_C
= ECHO_N
= ECHO_T
=
20804 case `echo -n x` in
20806 case `echo 'x\c'` in
20807 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20814 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20815 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20821 rm -f conf$$ conf$$.exe conf$$.
file
20822 if test -d conf$$.dir
; then
20823 rm -f conf$$.dir
/conf$$.
file
20829 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20831 # ... but there are two gotchas:
20832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20834 # In both cases, we have to default to `cp -p'.
20835 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20837 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20842 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20843 rmdir conf$$.dir
2>/dev
/null
20845 if mkdir
-p .
2>/dev
/null
; then
20848 test -d .
/-p && rmdir .
/-p
20852 if test -x / >/dev
/null
2>&1; then
20853 as_test_x
='test -x'
20855 if ls -dL / >/dev
/null
2>&1; then
20862 if test -d "$1"; then
20868 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20869 ???[sx]*):;;*)false;;esac;fi
20873 as_executable_p
=$as_test_x
20875 # Sed expression to map a string onto a valid CPP name.
20876 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20878 # Sed expression to map a string onto a valid variable name.
20879 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20884 # Save the log message, to keep $[0] and so on meaningful, and to
20885 # report actual input values of CONFIG_FILES etc. instead of their
20886 # values after options handling.
20888 This file was extended by rfc822lib $as_me 0.12, which was
20889 generated by GNU Autoconf 2.61. Invocation command line was
20891 CONFIG_FILES = $CONFIG_FILES
20892 CONFIG_HEADERS = $CONFIG_HEADERS
20893 CONFIG_LINKS = $CONFIG_LINKS
20894 CONFIG_COMMANDS = $CONFIG_COMMANDS
20897 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20902 cat >>$CONFIG_STATUS <<_ACEOF
20903 # Files that config.status was made for.
20904 config_files="$ac_config_files"
20905 config_headers="$ac_config_headers"
20906 config_commands="$ac_config_commands"
20910 cat >>$CONFIG_STATUS <<\_ACEOF
20912 \`$as_me' instantiates files from templates according to the
20913 current configuration.
20915 Usage: $0 [OPTIONS] [FILE]...
20917 -h, --help print this help, then exit
20918 -V, --version print version number and configuration settings, then exit
20919 -q, --quiet do not print progress messages
20920 -d, --debug don't remove temporary files
20921 --recheck update $as_me by reconfiguring in the same conditions
20922 --file=FILE[:TEMPLATE]
20923 instantiate the configuration file FILE
20924 --header=FILE[:TEMPLATE]
20925 instantiate the configuration header FILE
20927 Configuration files:
20930 Configuration headers:
20933 Configuration commands:
20936 Report bugs to <bug-autoconf@gnu.org>."
20939 cat >>$CONFIG_STATUS <<_ACEOF
20941 rfc822lib config.status 0.12
20942 configured by $0, generated by GNU Autoconf 2.61,
20943 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20945 Copyright (C) 2006 Free Software Foundation, Inc.
20946 This config.status script is free software; the Free Software Foundation
20947 gives unlimited permission to copy, distribute and modify it."
20955 cat >>$CONFIG_STATUS <<\_ACEOF
20956 # If no file are specified by the user, then we need to provide default
20957 # value. By we need to know if files were specified by the user.
20963 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20964 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20975 # Handling of the options.
20976 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20978 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20979 echo "$ac_cs_version"; exit ;;
20980 --debug |
--debu |
--deb |
--de |
--d |
-d )
20982 --file |
--fil |
--fi |
--f )
20984 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20985 ac_need_defaults
=false
;;
20986 --header |
--heade |
--head |
--hea )
20988 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20989 ac_need_defaults
=false
;;
20991 # Conflict between --help and --header
20992 { echo "$as_me: error: ambiguous option: $1
20993 Try \`$0 --help' for more information." >&2
20994 { (exit 1); exit 1; }; };;
20995 --help |
--hel |
-h )
20996 echo "$ac_cs_usage"; exit ;;
20997 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20998 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21001 # This is an error.
21002 -*) { echo "$as_me: error: unrecognized option: $1
21003 Try \`$0 --help' for more information." >&2
21004 { (exit 1); exit 1; }; } ;;
21006 *) ac_config_targets
="$ac_config_targets $1"
21007 ac_need_defaults
=false
;;
21013 ac_configure_extra_args
=
21015 if $ac_cs_silent; then
21017 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21021 cat >>$CONFIG_STATUS <<_ACEOF
21022 if \$ac_cs_recheck; then
21023 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21024 CONFIG_SHELL=$SHELL
21025 export CONFIG_SHELL
21026 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21030 cat >>$CONFIG_STATUS <<\_ACEOF
21034 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21035 ## Running $as_me. ##
21041 cat >>$CONFIG_STATUS <<_ACEOF
21045 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21049 cat >>$CONFIG_STATUS <<\_ACEOF
21051 # Handling of arguments.
21052 for ac_config_target
in $ac_config_targets
21054 case $ac_config_target in
21055 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
21056 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21057 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21059 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21060 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21061 { (exit 1); exit 1; }; };;
21066 # If the user did not use the arguments to specify the items to instantiate,
21067 # then the envvar interface is used. Set only those that are not.
21068 # We use the long form for the default assignment because of an extremely
21069 # bizarre bug on SunOS 4.1.3.
21070 if $ac_need_defaults; then
21071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21073 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21076 # Have a temporary directory for convenience. Make it in the build tree
21077 # simply because there is no reason against having it here, and in addition,
21078 # creating and moving files from /tmp can sometimes cause problems.
21079 # Hook for its removal unless debugging.
21080 # Note that there is a small window in which the directory will not be cleaned:
21081 # after its creation but before its name has been assigned to `$tmp'.
21085 trap 'exit_status=$?
21086 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21088 trap '{ (exit 1); exit 1; }' 1 2 13 15
21090 # Create a (secure) tmp directory for tmp files.
21093 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21094 test -n "$tmp" && test -d "$tmp"
21097 tmp
=.
/conf$$
-$RANDOM
21098 (umask 077 && mkdir
"$tmp")
21101 echo "$me: cannot create a temporary directory in ." >&2
21102 { (exit 1); exit 1; }
21106 # Set up the sed scripts for CONFIG_FILES section.
21109 # No need to generate the scripts if there are no CONFIG_FILES.
21110 # This happens for instance when ./config.status config.h
21111 if test -n "$CONFIG_FILES"; then
21118 for ac_last_try
in false false false false false
:; do
21119 cat >conf$
$subs.
sed <<_ACEOF
21120 SHELL!$SHELL$ac_delim
21121 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21122 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21123 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21124 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21125 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21126 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21127 exec_prefix!$exec_prefix$ac_delim
21128 prefix!$prefix$ac_delim
21129 program_transform_name!$program_transform_name$ac_delim
21130 bindir!$bindir$ac_delim
21131 sbindir!$sbindir$ac_delim
21132 libexecdir!$libexecdir$ac_delim
21133 datarootdir!$datarootdir$ac_delim
21134 datadir!$datadir$ac_delim
21135 sysconfdir!$sysconfdir$ac_delim
21136 sharedstatedir!$sharedstatedir$ac_delim
21137 localstatedir!$localstatedir$ac_delim
21138 includedir!$includedir$ac_delim
21139 oldincludedir!$oldincludedir$ac_delim
21140 docdir!$docdir$ac_delim
21141 infodir!$infodir$ac_delim
21142 htmldir!$htmldir$ac_delim
21143 dvidir!$dvidir$ac_delim
21144 pdfdir!$pdfdir$ac_delim
21145 psdir!$psdir$ac_delim
21146 libdir!$libdir$ac_delim
21147 localedir!$localedir$ac_delim
21148 mandir!$mandir$ac_delim
21149 DEFS!$DEFS$ac_delim
21150 ECHO_C!$ECHO_C$ac_delim
21151 ECHO_N!$ECHO_N$ac_delim
21152 ECHO_T!$ECHO_T$ac_delim
21153 LIBS!$LIBS$ac_delim
21154 build_alias!$build_alias$ac_delim
21155 host_alias!$host_alias$ac_delim
21156 target_alias!$target_alias$ac_delim
21157 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21158 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21159 INSTALL_DATA!$INSTALL_DATA$ac_delim
21160 am__isrc!$am__isrc$ac_delim
21161 CYGPATH_W!$CYGPATH_W$ac_delim
21162 PACKAGE!$PACKAGE$ac_delim
21163 VERSION!$VERSION$ac_delim
21164 ACLOCAL!$ACLOCAL$ac_delim
21165 AUTOCONF!$AUTOCONF$ac_delim
21166 AUTOMAKE!$AUTOMAKE$ac_delim
21167 AUTOHEADER!$AUTOHEADER$ac_delim
21168 MAKEINFO!$MAKEINFO$ac_delim
21169 install_sh!$install_sh$ac_delim
21170 STRIP!$STRIP$ac_delim
21171 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21172 mkdir_p!$mkdir_p$ac_delim
21174 SET_MAKE!$SET_MAKE$ac_delim
21175 am__leading_dot!$am__leading_dot$ac_delim
21176 AMTAR!$AMTAR$ac_delim
21177 am__tar!$am__tar$ac_delim
21178 am__untar!$am__untar$ac_delim
21180 CFLAGS!$CFLAGS$ac_delim
21181 LDFLAGS!$LDFLAGS$ac_delim
21182 CPPFLAGS!$CPPFLAGS$ac_delim
21183 ac_ct_CC!$ac_ct_CC$ac_delim
21184 EXEEXT!$EXEEXT$ac_delim
21185 OBJEXT!$OBJEXT$ac_delim
21186 DEPDIR!$DEPDIR$ac_delim
21187 am__include!$am__include$ac_delim
21188 am__quote!$am__quote$ac_delim
21189 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21190 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21191 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21192 CCDEPMODE!$CCDEPMODE$ac_delim
21193 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21194 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21196 GREP!$GREP$ac_delim
21197 EGREP!$EGREP$ac_delim
21198 build!$build$ac_delim
21199 build_cpu!$build_cpu$ac_delim
21200 build_vendor!$build_vendor$ac_delim
21201 build_os!$build_os$ac_delim
21202 host!$host$ac_delim
21203 host_cpu!$host_cpu$ac_delim
21204 host_vendor!$host_vendor$ac_delim
21205 host_os!$host_os$ac_delim
21207 LN_S!$LN_S$ac_delim
21208 ECHO!$ECHO$ac_delim
21210 RANLIB!$RANLIB$ac_delim
21212 CXXFLAGS!$CXXFLAGS$ac_delim
21213 ac_ct_CXX!$ac_ct_CXX$ac_delim
21214 CXXDEPMODE!$CXXDEPMODE$ac_delim
21215 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21216 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21219 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21221 elif $ac_last_try; then
21222 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21223 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21224 { (exit 1); exit 1; }; }
21226 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21230 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21231 if test -n "$ac_eof"; then
21232 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21233 ac_eof
=`expr $ac_eof + 1`
21236 cat >>$CONFIG_STATUS <<_ACEOF
21237 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21241 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21242 s/^/s,@/; s/!/@,|#_!!_#|/
21245 s/'"$ac_delim"'$/,g/; t
21247 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21248 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21249 rm -f conf$
$subs.
sed
21250 cat >>$CONFIG_STATUS <<_ACEOF
21256 for ac_last_try
in false false false false false
:; do
21257 cat >conf$
$subs.
sed <<_ACEOF
21258 CXXCPP!$CXXCPP$ac_delim
21260 FFLAGS!$FFLAGS$ac_delim
21261 ac_ct_F77!$ac_ct_F77$ac_delim
21262 LIBTOOL!$LIBTOOL$ac_delim
21263 HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
21264 HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
21265 LIBOBJS!$LIBOBJS$ac_delim
21266 LTLIBOBJS!$LTLIBOBJS$ac_delim
21269 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
21271 elif $ac_last_try; then
21272 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21273 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21274 { (exit 1); exit 1; }; }
21276 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21280 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21281 if test -n "$ac_eof"; then
21282 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21283 ac_eof
=`expr $ac_eof + 1`
21286 cat >>$CONFIG_STATUS <<_ACEOF
21287 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21291 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21292 s/^/s,@/; s/!/@,|#_!!_#|/
21295 s/'"$ac_delim"'$/,g/; t
21297 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21298 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21299 rm -f conf$
$subs.
sed
21300 cat >>$CONFIG_STATUS <<_ACEOF
21307 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21308 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21309 # trailing colons and then remove the whole line if VPATH becomes empty
21310 # (actually we leave an empty line to preserve line numbers).
21311 if test "x$srcdir" = x.
; then
21312 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21313 s/:*\$(srcdir):*/:/
21314 s/:*\${srcdir}:*/:/
21316 s/^\([^=]*=[ ]*\):*/\1/
21322 cat >>$CONFIG_STATUS <<\_ACEOF
21323 fi # test -n "$CONFIG_FILES"
21326 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
21329 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21331 case $ac_mode$ac_tag in
21333 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21334 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21335 { (exit 1); exit 1; }; };;
21336 :[FH
]-) ac_tag
=-:-;;
21337 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21354 -) ac_f
="$tmp/stdin";;
21355 *) # Look for the file first in the build tree, then in the source tree
21356 # (if the path is not absolute). The absolute path cannot be DOS-style,
21357 # because $ac_f cannot contain `:'.
21361 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21363 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21364 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21365 { (exit 1); exit 1; }; };;
21367 ac_file_inputs
="$ac_file_inputs $ac_f"
21370 # Let's still pretend it is `configure' which instantiates (i.e., don't
21371 # use $as_me), people would be surprised to read:
21372 # /* config.h. Generated by config.status. */
21373 configure_input
="Generated from "`IFS=:
21374 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21375 if test x
"$ac_file" != x-
; then
21376 configure_input
="$ac_file. $configure_input"
21377 { echo "$as_me:$LINENO: creating $ac_file" >&5
21378 echo "$as_me: creating $ac_file" >&6;}
21382 *:-:* |
*:-) cat >"$tmp/stdin";;
21387 ac_dir
=`$as_dirname -- "$ac_file" ||
21388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21389 X"$ac_file" : 'X\(//\)[^/]' \| \
21390 X"$ac_file" : 'X\(//\)$' \| \
21391 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21397 /^X\(\/\/\)[^/].*/{
21412 -*) as_dir
=.
/$as_dir;;
21414 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21418 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21419 *) as_qdir
=$as_dir;;
21421 as_dirs
="'$as_qdir' $as_dirs"
21422 as_dir
=`$as_dirname -- "$as_dir" ||
21423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21424 X"$as_dir" : 'X\(//\)[^/]' \| \
21425 X"$as_dir" : 'X\(//\)$' \| \
21426 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21432 /^X\(\/\/\)[^/].*/{
21445 test -d "$as_dir" && break
21447 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21448 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21449 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21450 { (exit 1); exit 1; }; }; }
21454 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21456 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21457 # A ".." for each directory in $ac_dir_suffix.
21458 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21459 case $ac_top_builddir_sub in
21460 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21461 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21464 ac_abs_top_builddir
=$ac_pwd
21465 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21466 # for backward compatibility:
21467 ac_top_builddir
=$ac_top_build_prefix
21470 .
) # We are building in place.
21472 ac_top_srcdir
=$ac_top_builddir_sub
21473 ac_abs_top_srcdir
=$ac_pwd ;;
21474 [\\/]* | ?
:[\\/]* ) # Absolute name.
21475 ac_srcdir
=$srcdir$ac_dir_suffix;
21476 ac_top_srcdir
=$srcdir
21477 ac_abs_top_srcdir
=$srcdir ;;
21478 *) # Relative name.
21479 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21480 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21481 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21483 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21493 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21494 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21496 ac_MKDIR_P
=$MKDIR_P
21498 [\\/$
]* | ?
:[\\/]* ) ;;
21499 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21503 cat >>$CONFIG_STATUS <<\_ACEOF
21504 # If the template does not know about datarootdir, expand it.
21505 # FIXME: This hack should be removed a few years after 2.60.
21506 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21508 case `sed -n '/datarootdir/ {
21517 ' $ac_file_inputs` in
21518 *datarootdir
*) ac_datarootdir_seen
=yes;;
21519 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21520 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21521 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21523 cat >>$CONFIG_STATUS <<_ACEOF
21524 ac_datarootdir_hack='
21525 s&@datadir@&$datadir&g
21526 s&@docdir@&$docdir&g
21527 s&@infodir@&$infodir&g
21528 s&@localedir@&$localedir&g
21529 s&@mandir@&$mandir&g
21530 s&\\\${datarootdir}&$datarootdir&g' ;;
21534 # Neutralize VPATH when `$srcdir' = `.'.
21535 # Shell code in configure.ac might set extrasub.
21536 # FIXME: do we really want to maintain this feature?
21537 cat >>$CONFIG_STATUS <<_ACEOF
21541 cat >>$CONFIG_STATUS <<\_ACEOF
21543 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21544 s
&@configure_input@
&$configure_input&;t t
21545 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21546 s
&@srcdir@
&$ac_srcdir&;t t
21547 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21548 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21549 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21550 s
&@builddir@
&$ac_builddir&;t t
21551 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21552 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21553 s
&@INSTALL@
&$ac_INSTALL&;t t
21554 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21555 $ac_datarootdir_hack
21556 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
21558 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21559 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21560 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21561 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21562 which seems to be undefined. Please make sure it is defined." >&5
21563 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21564 which seems to be undefined. Please make sure it is defined." >&2;}
21568 -) cat "$tmp/out"; rm -f "$tmp/out";;
21569 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21578 # Transform confdefs.h into a sed script `conftest.defines', that
21579 # substitutes the proper values into config.h.in to produce config.h.
21580 rm -f conftest.defines conftest.
tail
21581 # First, append a space to every undef/define line, to ease matching.
21582 echo 's/$/ /' >conftest.defines
21583 # Then, protect against being on the right side of a sed subst, or in
21584 # an unquoted here document, in config.status. If some macros were
21585 # called several times there might be several #defines for the same
21586 # symbol, which is useless. But do not sort them, since the last
21587 # AC_DEFINE must be honored.
21588 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
21589 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21590 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21591 # PARAMS is the parameter list in the macro definition--in most cases, it's
21592 # just an empty string.
21593 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21594 ac_dB
='\\)[ (].*,\\1define\\2'
21602 s/^[ ]*#[ ]*define[ ][ ]*//
21607 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21608 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21609 ' >>conftest.defines
21611 # Remove the space that was appended to ease matching.
21612 # Then replace #undef with comments. This is necessary, for
21613 # example, in the case of _POSIX_SOURCE, which is predefined and required
21614 # on some systems where configure will not decide to define it.
21615 # (The regexp can be short, since the line contains either #define or #undef.)
21617 s,^[ #]*u.*,/* & */,' >>conftest.defines
21619 # Break up conftest.defines:
21620 ac_max_sed_lines
=50
21622 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21623 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21624 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21626 ac_in
='$ac_file_inputs'
21627 ac_out
='"$tmp/out1"'
21628 ac_nxt
='"$tmp/out2"'
21632 # Write a here document:
21633 cat >>$CONFIG_STATUS <<_ACEOF
21634 # First, check the format of the line:
21635 cat >"\$tmp/defines.sed" <<\\CEOF
21636 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21637 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21641 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
21643 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21644 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
21645 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
21646 grep . conftest.
tail >/dev
/null ||
break
21647 rm -f conftest.defines
21648 mv conftest.
tail conftest.defines
21650 rm -f conftest.defines conftest.
tail
21652 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21653 cat >>$CONFIG_STATUS <<\_ACEOF
21654 if test x
"$ac_file" != x-
; then
21655 echo "/* $configure_input */" >"$tmp/config.h"
21656 cat "$ac_result" >>"$tmp/config.h"
21657 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
21658 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21659 echo "$as_me: $ac_file is unchanged" >&6;}
21662 mv "$tmp/config.h" $ac_file
21665 echo "/* $configure_input */"
21669 # Compute $ac_file's index in $config_headers.
21672 for _am_header
in $config_headers :; do
21673 case $_am_header in
21674 $_am_arg |
$_am_arg:* )
21677 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21680 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21681 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21682 X"$_am_arg" : 'X\(//\)[^/]' \| \
21683 X"$_am_arg" : 'X\(//\)$' \| \
21684 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21690 /^X\(\/\/\)[^/].*/{
21702 s/.*/./; q'`/stamp-h
$_am_stamp_count
21705 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21706 echo "$as_me: executing $ac_file commands" >&6;}
21711 case $ac_file$ac_mode in
21712 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
21713 # Strip MF so we end up with the name of the file.
21714 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21715 # Check whether this is an Automake generated Makefile or not.
21716 # We used to match only the files named `Makefile.in', but
21717 # some people rename them; so instead we look at the file content.
21718 # Grep'ing the first line is not enough: some people post-process
21719 # each Makefile.in and add a new line on top of each file to say so.
21720 # Grep'ing the whole file is not good either: AIX grep has a line
21721 # limit of 2048, but all sed's we know have understand at least 4000.
21722 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21723 dirpart
=`$as_dirname -- "$mf" ||
21724 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21725 X"$mf" : 'X\(//\)[^/]' \| \
21726 X"$mf" : 'X\(//\)$' \| \
21727 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21733 /^X\(\/\/\)[^/].*/{
21749 # Extract the definition of DEPDIR, am__include, and am__quote
21750 # from the Makefile without running `make'.
21751 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21752 test -z "$DEPDIR" && continue
21753 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21754 test -z "am__include" && continue
21755 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21756 # When using ansi2knr, U may be empty or an underscore; expand it
21757 U
=`sed -n 's/^U = //p' < "$mf"`
21758 # Find all dependency output files, they are included files with
21759 # $(DEPDIR) in their names. We invoke sed twice because it is the
21760 # simplest approach to changing $(DEPDIR) to its actual value in the
21762 for file in `sed -n "
21763 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21764 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21765 # Make sure the directory exists.
21766 test -f "$dirpart/$file" && continue
21767 fdir
=`$as_dirname -- "$file" ||
21768 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21769 X"$file" : 'X\(//\)[^/]' \| \
21770 X"$file" : 'X\(//\)$' \| \
21771 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21777 /^X\(\/\/\)[^/].*/{
21790 { as_dir
=$dirpart/$fdir
21792 -*) as_dir
=.
/$as_dir;;
21794 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21798 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21799 *) as_qdir
=$as_dir;;
21801 as_dirs
="'$as_qdir' $as_dirs"
21802 as_dir
=`$as_dirname -- "$as_dir" ||
21803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21804 X"$as_dir" : 'X\(//\)[^/]' \| \
21805 X"$as_dir" : 'X\(//\)$' \| \
21806 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21812 /^X\(\/\/\)[^/].*/{
21825 test -d "$as_dir" && break
21827 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21828 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21829 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21830 { (exit 1); exit 1; }; }; }
21831 # echo "creating $dirpart/$file"
21832 echo '# dummy' > "$dirpart/$file"
21841 { (exit 0); exit 0; }
21843 chmod +x
$CONFIG_STATUS
21844 ac_clean_files
=$ac_clean_files_save
21847 # configure is writing to config.log, and then calls config.status.
21848 # config.status does its own redirection, appending to config.log.
21849 # Unfortunately, on DOS this fails, as config.log is still kept open
21850 # by configure, so config.status won't be able to write to it; its
21851 # output is simply discarded. So we exec the FD to /dev/null,
21852 # effectively closing config.log, so it can be properly (re)opened and
21853 # appended to by config.status. When coming back to configure, we
21854 # need to make the FD available again.
21855 if test "$no_create" != yes; then
21857 ac_config_status_args
=
21858 test "$silent" = yes &&
21859 ac_config_status_args
="$ac_config_status_args --quiet"
21861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21864 # would make configure fail if this is the last instruction.
21865 $ac_cs_success ||
{ (exit 1); exit 1; }