2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for courier-authlib 0.60.2.
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
='courier-authlib'
730 PACKAGE_TARNAME
='courier-authlib'
731 PACKAGE_VERSION
='0.60.2'
732 PACKAGE_STRING
='courier-authlib 0.60.2'
733 PACKAGE_BUGREPORT
='courier-users@lists.sourceforge.net'
735 ac_unique_file
="courierauth.h"
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
944 ac_precious_vars
='build_alias
959 ac_subdirs_all
='libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog'
961 # Initialize some variables set by options.
963 ac_init_version
=false
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
973 program_transform_name
=s
,x
,x
,
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir
='${exec_prefix}/bin'
988 sbindir
='${exec_prefix}/sbin'
989 libexecdir
='${exec_prefix}/libexec'
990 datarootdir
='${prefix}/share'
991 datadir
='${datarootdir}'
992 sysconfdir
='${prefix}/etc'
993 sharedstatedir
='${prefix}/com'
994 localstatedir
='${prefix}/var'
995 includedir
='${prefix}/include'
996 oldincludedir
='/usr/include'
997 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir
='${datarootdir}/info'
1003 libdir
='${exec_prefix}/lib'
1004 localedir
='${datarootdir}/locale'
1005 mandir
='${datarootdir}/man'
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\
$ac_option
1019 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1029 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1031 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1032 bindir
=$ac_optarg ;;
1034 -build |
--build |
--buil |
--bui |
--bu)
1035 ac_prev
=build_alias
;;
1036 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1037 build_alias
=$ac_optarg ;;
1039 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1040 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1041 ac_prev
=cache_file
;;
1042 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1043 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1044 cache_file
=$ac_optarg ;;
1046 --config-cache |
-C)
1047 cache_file
=config.cache
;;
1049 -datadir |
--datadir |
--datadi |
--datad)
1051 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1052 datadir
=$ac_optarg ;;
1054 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1055 |
--dataroo |
--dataro |
--datar)
1056 ac_prev
=datarootdir
;;
1057 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1058 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1059 datarootdir
=$ac_optarg ;;
1061 -disable-* |
--disable-*)
1062 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1068 eval enable_
$ac_feature=no
;;
1070 -docdir |
--docdir |
--docdi |
--doc |
--do)
1072 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1073 docdir
=$ac_optarg ;;
1075 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1077 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1078 dvidir
=$ac_optarg ;;
1080 -enable-* |
--enable-*)
1081 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1087 eval enable_
$ac_feature=\
$ac_optarg ;;
1089 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1090 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1091 |
--exec |
--exe |
--ex)
1092 ac_prev
=exec_prefix
;;
1093 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1094 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1095 |
--exec=* |
--exe=* |
--ex=*)
1096 exec_prefix
=$ac_optarg ;;
1098 -gas |
--gas |
--ga |
--g)
1099 # Obsolete; use --with-gas.
1102 -help |
--help |
--hel |
--he |
-h)
1103 ac_init_help
=long
;;
1104 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1105 ac_init_help
=recursive
;;
1106 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1107 ac_init_help
=short
;;
1109 -host |
--host |
--hos |
--ho)
1110 ac_prev
=host_alias
;;
1111 -host=* |
--host=* |
--hos=* |
--ho=*)
1112 host_alias
=$ac_optarg ;;
1114 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1116 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1118 htmldir
=$ac_optarg ;;
1120 -includedir |
--includedir |
--includedi |
--included |
--include \
1121 |
--includ |
--inclu |
--incl |
--inc)
1122 ac_prev
=includedir
;;
1123 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1124 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1125 includedir
=$ac_optarg ;;
1127 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1129 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1130 infodir
=$ac_optarg ;;
1132 -libdir |
--libdir |
--libdi |
--libd)
1134 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1135 libdir
=$ac_optarg ;;
1137 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1138 |
--libexe |
--libex |
--libe)
1139 ac_prev
=libexecdir
;;
1140 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1141 |
--libexe=* |
--libex=* |
--libe=*)
1142 libexecdir
=$ac_optarg ;;
1144 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1145 ac_prev
=localedir
;;
1146 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1147 localedir
=$ac_optarg ;;
1149 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1150 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1151 ac_prev
=localstatedir
;;
1152 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1153 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1154 localstatedir
=$ac_optarg ;;
1156 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1158 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1159 mandir
=$ac_optarg ;;
1161 -nfp |
--nfp |
--nf)
1162 # Obsolete; use --without-fp.
1165 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1166 |
--no-cr |
--no-c |
-n)
1169 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1170 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1173 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1174 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1175 |
--oldin |
--oldi |
--old |
--ol |
--o)
1176 ac_prev
=oldincludedir
;;
1177 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1178 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1179 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1180 oldincludedir
=$ac_optarg ;;
1182 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1184 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1185 prefix
=$ac_optarg ;;
1187 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1188 |
--program-pre |
--program-pr |
--program-p)
1189 ac_prev
=program_prefix
;;
1190 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1191 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1192 program_prefix
=$ac_optarg ;;
1194 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1195 |
--program-suf |
--program-su |
--program-s)
1196 ac_prev
=program_suffix
;;
1197 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1198 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1199 program_suffix
=$ac_optarg ;;
1201 -program-transform-name |
--program-transform-name \
1202 |
--program-transform-nam |
--program-transform-na \
1203 |
--program-transform-n |
--program-transform- \
1204 |
--program-transform |
--program-transfor \
1205 |
--program-transfo |
--program-transf \
1206 |
--program-trans |
--program-tran \
1207 |
--progr-tra |
--program-tr |
--program-t)
1208 ac_prev
=program_transform_name
;;
1209 -program-transform-name=* |
--program-transform-name=* \
1210 |
--program-transform-nam=* |
--program-transform-na=* \
1211 |
--program-transform-n=* |
--program-transform-=* \
1212 |
--program-transform=* |
--program-transfor=* \
1213 |
--program-transfo=* |
--program-transf=* \
1214 |
--program-trans=* |
--program-tran=* \
1215 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1216 program_transform_name
=$ac_optarg ;;
1218 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1220 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1221 pdfdir
=$ac_optarg ;;
1223 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1225 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1228 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1229 |
-silent |
--silent |
--silen |
--sile |
--sil)
1232 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1234 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1236 sbindir
=$ac_optarg ;;
1238 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1239 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1240 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1242 ac_prev
=sharedstatedir
;;
1243 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1244 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1245 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1247 sharedstatedir
=$ac_optarg ;;
1249 -site |
--site |
--sit)
1251 -site=* |
--site=* |
--sit=*)
1254 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1256 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1257 srcdir
=$ac_optarg ;;
1259 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1260 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1261 ac_prev
=sysconfdir
;;
1262 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1263 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1264 sysconfdir
=$ac_optarg ;;
1266 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1267 ac_prev
=target_alias
;;
1268 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1269 target_alias
=$ac_optarg ;;
1271 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1274 -version |
--version |
--versio |
--versi |
--vers |
-V)
1275 ac_init_version
=: ;;
1278 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1284 eval with_
$ac_package=\
$ac_optarg ;;
1286 -without-* |
--without-*)
1287 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1293 eval with_
$ac_package=no
;;
1296 # Obsolete; use --with-x.
1299 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1300 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1301 ac_prev
=x_includes
;;
1302 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1303 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1304 x_includes
=$ac_optarg ;;
1306 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1307 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1308 ac_prev
=x_libraries
;;
1309 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1310 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1311 x_libraries
=$ac_optarg ;;
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314 Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1319 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
1324 eval $ac_envvar=\
$ac_optarg
1325 export $ac_envvar ;;
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 if test -n "$ac_prev"; then
1339 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1344 # Be sure to have absolute directory names.
1345 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1350 eval ac_val
=\$
$ac_var
1352 [\\/$
]* | ?
:[\\/]* ) continue;;
1353 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target
=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x
; then
1368 if test "x$build_alias" = x
; then
1369 cross_compiling
=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1378 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1380 test "$silent" = yes && exec 6>/dev
/null
1383 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di
=`ls -di .` &&
1385 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted
=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir
=`$as_dirname -- "$0" ||
1398 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
1401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted
=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430 { (exit 1); exit 1; }; }
1432 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435 { (exit 1); exit 1; }; }
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1445 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 for ac_var
in $ac_precious_vars; do
1448 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1450 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1461 \`configure' configures courier-authlib 0.60.2 to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1519 --program-prefix=PREFIX prepend PREFIX to installed program names
1520 --program-suffix=SUFFIX append SUFFIX to installed program names
1521 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1524 --build=BUILD configure
for building on BUILD
[guessed
]
1525 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1529 if test -n "$ac_init_help"; then
1530 case $ac_init_help in
1531 short | recursive
) echo "Configuration of courier-authlib 0.60.2:";;
1536 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1537 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1538 --disable-dependency-tracking speeds up one-time build
1539 --enable-dependency-tracking do not reject slow dependency extractors
1540 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1541 --enable-static[=PKGS
] build static libraries
[default
=yes]
1542 --enable-fast-install[=PKGS
]
1543 optimize
for fast installation
[default
=yes]
1544 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1547 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1548 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1549 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1550 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1552 --with-tags[=TAGS
] include additional configurations
[automatic
]
1554 --with-pkgconfdir=d Install config files
in directory
1555 --with-db=gdbm Use the GDBM library.
1556 --with-db=db Use the libdb.a library.
1557 --without-authuserdb Do not include the authuserdb module
1559 --without-authpam Do not include the authpam module
1560 --with-authpam-libraries="libs" Link
'libs' with authpam
, this may be
1561 required
for FreeBSD
3.3
1562 --without-authldap Do not include the authldap module
1563 --with-authldaprc=filename Expect to
find authldaprc here
1564 --without-authpwd Do not include the authpwd module
1565 --without-authshadow Do not include the authshadow module
1566 --without-authvchkpw Do not include the authvchkpw module
1567 --with-authpgsqlrc=filename Expect to
find authpgsql here
1568 --without-authpgsql Do not include the authpgsql module
1569 --with-pgsql-libs=DIR Look
for pgsql libs
in this dir
1570 --with-pgsql-includes=DIR Look
for pgsql includes
in this dir
1571 --with-authmysqlrc=filename Expect to
find authmysql here
1572 --without-authmysql Do not include the authmysql module
1573 --with-mysql-libs=DIR Look
for mysql libs
in this dir
1574 --with-mysql-includes=DIR Look
for mysql includes
in this dir
1575 --without-authcustom Do not include the authcustom module
1576 --with-pipeprog=filename Expect to
find the pipe-prog here
1577 --without-authpipe Do not include the authpipe module
1578 --with-authdaemonrc=filename Expect to
find authdaemonrc here
1579 --with-authdaemonvar=directory Directory where authdaemon.pid and
1580 the listening socket is created
1581 --with-mailuser=user Specify
mail user name
(defaults to
1582 courier
, daemon
, admin
, bin
, or root
)
1583 --with-mailgroup=group Specify
mail group name
(defaults to courier
,
1584 daemon
, sys
, adm
, or root
)
1585 --without-stdheaderdir Header files will be installed into a directory
1586 not
in the compiler
's default search path.
1588 Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1597 CXX C++ compiler command
1598 CXXFLAGS C++ compiler flags
1599 CXXCPP C++ preprocessor
1600 F77 Fortran 77 compiler command
1601 FFLAGS Fortran 77 compiler flags
1603 Use these variables to override the choices made by `configure' or to
help
1604 it to
find libraries and programs with nonstandard names
/locations.
1606 Report bugs to
<courier-users@lists.sourceforge.net
>.
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1614 test -d "$ac_dir" ||
continue
1618 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1620 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1625 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1628 ac_abs_top_builddir
=$ac_pwd
1629 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir
=$ac_top_build_prefix
1634 .
) # We are building in place.
1636 ac_top_srcdir
=$ac_top_builddir_sub
1637 ac_abs_top_srcdir
=$ac_pwd ;;
1638 [\\/]* | ?
:[\\/]* ) # Absolute name.
1639 ac_srcdir
=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir
=$srcdir
1641 ac_abs_top_srcdir
=$srcdir ;;
1643 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1647 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1649 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1656 $SHELL "$ac_srcdir/configure" --help=recursive
1658 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1667 courier-authlib configure
0.60.2
1668 generated by GNU Autoconf
2.61
1670 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1671 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1672 This configure
script is free software
; the Free Software Foundation
1673 gives unlimited permission to copy
, distribute and modify it.
1677 cat >config.log
<<_ACEOF
1678 This file contains any messages produced by compilers while
1679 running configure, to aid debugging if configure makes a mistake.
1681 It was created by courier-authlib $as_me 0.60.2, which was
1682 generated by GNU Autoconf 2.61. Invocation command line was
1694 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1695 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1696 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1697 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1698 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1701 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1703 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1704 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1705 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1706 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1707 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1708 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1709 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir
=.
1718 echo "PATH: $as_dir"
1734 # Keep a trace of the command line.
1735 # Strip out --no-create and --no-recursion so they do not pile up.
1736 # Strip out --silent because we don't want to record it for future runs.
1737 # Also quote any args containing shell meta-characters.
1738 # Make two passes to allow for proper duplicate-argument suppression.
1742 ac_must_keep_next
=false
1748 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1749 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1750 |
-silent |
--silent |
--silen |
--sile |
--sil)
1753 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1758 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1759 if test $ac_must_keep_next = true
; then
1760 ac_must_keep_next
=false
# Got value, back to normal.
1763 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1764 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1765 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1766 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1767 case "$ac_configure_args0 " in
1768 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771 -* ) ac_must_keep_next
=true
;;
1774 ac_configure_args
="$ac_configure_args '$ac_arg'"
1779 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1780 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1782 # When interrupted or exit'd, cleanup temporary files, and complete
1783 # config.log. We remove comments because anyway the quotes in there
1784 # would cause problems or look ugly.
1785 # WARNING: Use '\'' to represent an apostrophe within the trap.
1786 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1787 trap 'exit_status=$?
1788 # Save into config.log some information that might help in debugging.
1793 ## ---------------- ##
1794 ## Cache variables. ##
1795 ## ---------------- ##
1798 # The following way of writing the cache mishandles newlines in values,
1800 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1801 eval ac_val=\$$ac_var
1805 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1806 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1809 _ | IFS | as_nl) ;; #(
1810 *) $as_unset $ac_var ;;
1815 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1816 *${as_nl}ac_space=\ *)
1818 "s/'\''/'\''\\\\'\'''\''/g;
1819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1830 ## ----------------- ##
1831 ## Output variables. ##
1832 ## ----------------- ##
1835 for ac_var in $ac_subst_vars
1837 eval ac_val=\$$ac_var
1839 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 echo "$ac_var='\''$ac_val'\''"
1845 if test -n "$ac_subst_files"; then
1847 ## ------------------- ##
1848 ## File substitutions. ##
1849 ## ------------------- ##
1852 for ac_var
in $ac_subst_files
1854 eval ac_val
=\$
$ac_var
1856 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 echo "$ac_var='\''$ac_val'\''"
1863 if test -s confdefs.h; then
1873 test "$ac_signal" != 0 &&
1874 echo "$as_me: caught signal $ac_signal"
1875 echo "$as_me: exit $exit_status"
1877 rm -f core *.core core.conftest.* &&
1878 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1881 for ac_signal
in 1 2 13 15; do
1882 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1887 rm -f -r conftest
* confdefs.h
1889 # Predefined preprocessor variables.
1891 cat >>confdefs.h
<<_ACEOF
1892 #define PACKAGE_NAME "$PACKAGE_NAME"
1896 cat >>confdefs.h
<<_ACEOF
1897 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901 cat >>confdefs.h
<<_ACEOF
1902 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1906 cat >>confdefs.h
<<_ACEOF
1907 #define PACKAGE_STRING "$PACKAGE_STRING"
1911 cat >>confdefs.h
<<_ACEOF
1912 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916 # Let the site file select an alternate cache file if it wants to.
1917 # Prefer explicitly selected file to automatically selected ones.
1918 if test -n "$CONFIG_SITE"; then
1919 set x
"$CONFIG_SITE"
1920 elif test "x$prefix" != xNONE
; then
1921 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1923 set x
"$ac_default_prefix/share/config.site" \
1924 "$ac_default_prefix/etc/config.site"
1929 if test -r "$ac_site_file"; then
1930 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1931 echo "$as_me: loading site script $ac_site_file" >&6;}
1932 sed 's/^/| /' "$ac_site_file" >&5
1937 if test -r "$cache_file"; then
1938 # Some versions of bash will fail to source /dev/null (special
1939 # files actually), so we avoid doing that.
1940 if test -f "$cache_file"; then
1941 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1942 echo "$as_me: loading cache $cache_file" >&6;}
1944 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1945 *) .
"./$cache_file";;
1949 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1950 echo "$as_me: creating cache $cache_file" >&6;}
1954 # Check that the precious variables saved in the cache have kept the same
1956 ac_cache_corrupted
=false
1957 for ac_var
in $ac_precious_vars; do
1958 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1959 eval ac_new_set
=\
$ac_env_${ac_var}_set
1960 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1961 eval ac_new_val
=\
$ac_env_${ac_var}_value
1962 case $ac_old_set,$ac_new_set in
1964 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1965 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1966 ac_cache_corrupted
=: ;;
1968 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1969 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1970 ac_cache_corrupted
=: ;;
1973 if test "x$ac_old_val" != "x$ac_new_val"; then
1974 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1975 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1976 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1977 echo "$as_me: former value: $ac_old_val" >&2;}
1978 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1979 echo "$as_me: current value: $ac_new_val" >&2;}
1980 ac_cache_corrupted
=:
1983 # Pass precious variables to config.status.
1984 if test "$ac_new_set" = set; then
1986 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 *) ac_arg
=$ac_var=$ac_new_val ;;
1989 case " $ac_configure_args " in
1990 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1991 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1995 if $ac_cache_corrupted; then
1996 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1997 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1998 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1999 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2000 { (exit 1); exit 1; }; }
2028 ac_cpp
='$CPP $CPPFLAGS'
2029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2036 ac_config_headers
="$ac_config_headers courier_auth_config.h"
2039 am__api_version
='1.10'
2042 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2043 if test -f "$ac_dir/install-sh"; then
2045 ac_install_sh
="$ac_aux_dir/install-sh -c"
2047 elif test -f "$ac_dir/install.sh"; then
2049 ac_install_sh
="$ac_aux_dir/install.sh -c"
2051 elif test -f "$ac_dir/shtool"; then
2053 ac_install_sh
="$ac_aux_dir/shtool install -c"
2057 if test -z "$ac_aux_dir"; then
2058 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2059 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2060 { (exit 1); exit 1; }; }
2063 # These three variables are undocumented and unsupported,
2064 # and are intended to be withdrawn in a future Autoconf release.
2065 # They can cause serious problems if a builder's source tree is in a directory
2066 # whose full name contains unusual characters.
2067 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2068 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2069 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2072 # Find a good install program. We prefer a C program (faster),
2073 # so one script is as good as another. But avoid the broken or
2074 # incompatible versions:
2075 # SysV /etc/install, /usr/sbin/install
2076 # SunOS /usr/etc/install
2077 # IRIX /sbin/install
2079 # AmigaOS /C/install, which installs bootblocks on floppy discs
2080 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2083 # OS/2's system install, which has a completely different semantic
2084 # ./install, which can be erroneously created by make from ./install.sh.
2085 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2086 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2087 if test -z "$INSTALL"; then
2088 if test "${ac_cv_path_install+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2095 test -z "$as_dir" && as_dir
=.
2096 # Account for people who put trailing slashes in PATH elements.
2098 .
/ | .
// |
/cC
/* | \
2099 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2100 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2103 # OSF1 and SCO ODT 3.0 have their own names for install.
2104 # Don't use installbsd from OSF since it installs stuff as root
2106 for ac_prog
in ginstall scoinst
install; do
2107 for ac_exec_ext
in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2109 if test $ac_prog = install &&
2110 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2111 # AIX install. It has an incompatible calling convention.
2113 elif test $ac_prog = install &&
2114 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2115 # program-specific install script used by HP pwplus--don't use.
2118 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2131 if test "${ac_cv_path_install+set}" = set; then
2132 INSTALL
=$ac_cv_path_install
2134 # As a last resort, use the slow shell script. Don't cache a
2135 # value for INSTALL within a source directory, because that will
2136 # break other packages using the cache if that directory is
2137 # removed, or if the value is a relative name.
2138 INSTALL
=$ac_install_sh
2141 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2142 echo "${ECHO_T}$INSTALL" >&6; }
2144 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2145 # It thinks the first close brace ends the variable substitution.
2146 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2148 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2150 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2152 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2153 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2156 echo timestamp
> conftest.
file
2157 # Do `set' in a subshell so we don't clobber the current shell's
2158 # arguments. Must try -L first in case configure is actually a
2159 # symlink; some systems play weird games with the mod time of symlinks
2160 # (eg FreeBSD returns the mod time of the symlink's containing
2163 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2164 if test "$*" = "X"; then
2166 set X
`ls -t $srcdir/configure conftest.file`
2169 if test "$*" != "X $srcdir/configure conftest.file" \
2170 && test "$*" != "X conftest.file $srcdir/configure"; then
2172 # If neither matched, then we have a broken ls. This can happen
2173 # if, for instance, CONFIG_SHELL is bash and it inherits a
2174 # broken ls alias from the environment. This has actually
2175 # happened. Such a system could not be considered "sane".
2176 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2177 alias in your environment" >&5
2178 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2179 alias in your environment" >&2;}
2180 { (exit 1); exit 1; }; }
2183 test "$2" = conftest.
file
2189 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2190 Check your system clock" >&5
2191 echo "$as_me: error: newly created file is older than distributed files!
2192 Check your system clock" >&2;}
2193 { (exit 1); exit 1; }; }
2195 { echo "$as_me:$LINENO: result: yes" >&5
2196 echo "${ECHO_T}yes" >&6; }
2197 test "$program_prefix" != NONE
&&
2198 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2199 # Use a double $ so make ignores it.
2200 test "$program_suffix" != NONE
&&
2201 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2202 # Double any \ or $. echo might interpret backslashes.
2203 # By default was `s,x,x', remove it if useless.
2204 cat <<\_ACEOF
>conftest.
sed
2205 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2207 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2210 # expand $ac_aux_dir to an absolute path
2211 am_aux_dir
=`cd $ac_aux_dir && pwd`
2213 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2214 # Use eval to expand $SHELL
2215 if eval "$MISSING --run true"; then
2216 am_missing_run
="$MISSING --run "
2219 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2220 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2223 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2224 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2225 if test -z "$MKDIR_P"; then
2226 if test "${ac_cv_path_mkdir+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2230 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2233 test -z "$as_dir" && as_dir
=.
2234 for ac_prog
in mkdir gmkdir
; do
2235 for ac_exec_ext
in '' $ac_executable_extensions; do
2236 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2237 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2238 'mkdir (GNU coreutils) '* | \
2239 'mkdir (coreutils) '* | \
2240 'mkdir (fileutils) '4.1*)
2241 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2251 if test "${ac_cv_path_mkdir+set}" = set; then
2252 MKDIR_P
="$ac_cv_path_mkdir -p"
2254 # As a last resort, use the slow shell script. Don't cache a
2255 # value for MKDIR_P within a source directory, because that will
2256 # break other packages using the cache if that directory is
2257 # removed, or if the value is a relative name.
2258 test -d .
/--version && rmdir .
/--version
2259 MKDIR_P
="$ac_install_sh -d"
2262 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2263 echo "${ECHO_T}$MKDIR_P" >&6; }
2267 [\\/$
]* | ?
:[\\/]*) ;;
2268 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2271 for ac_prog
in gawk mawk nawk
awk
2273 # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy
$ac_prog; ac_word
=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_AWK+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 if test -n "$AWK"; then
2281 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir
=.
2288 for ac_exec_ext
in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_AWK
="$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 if test -n "$AWK"; then
2302 { echo "$as_me:$LINENO: result: $AWK" >&5
2303 echo "${ECHO_T}$AWK" >&6; }
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2310 test -n "$AWK" && break
2313 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2314 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2315 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2316 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 cat >conftest.
make <<\_ACEOF
2322 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2324 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2325 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2327 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2329 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2333 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2334 { echo "$as_me:$LINENO: result: yes" >&5
2335 echo "${ECHO_T}yes" >&6; }
2338 { echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6; }
2340 SET_MAKE
="MAKE=${MAKE-make}"
2343 rm -rf .tst
2>/dev
/null
2344 mkdir .tst
2>/dev
/null
2345 if test -d .tst
; then
2350 rmdir .tst
2>/dev
/null
2352 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2353 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2354 # is not polluted with repeated "-I."
2355 am__isrc
=' -I$(srcdir)'
2356 # test to see if srcdir already configured
2357 if test -f $srcdir/config.status
; then
2358 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2359 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2360 { (exit 1); exit 1; }; }
2364 # test whether we have cygpath
2365 if test -z "$CYGPATH_W"; then
2366 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2367 CYGPATH_W
='cygpath -w'
2374 # Define the identity of the package.
2375 PACKAGE
='courier-authlib'
2379 cat >>confdefs.h
<<_ACEOF
2380 #define PACKAGE "$PACKAGE"
2384 cat >>confdefs.h
<<_ACEOF
2385 #define VERSION "$VERSION"
2388 # Some tools Automake needs.
2390 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2393 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2396 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2399 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2402 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2404 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2406 # Installed binaries are usually stripped using `strip' when the user
2407 # run `make install-strip'. However `strip' might not be the right
2408 # tool to use in cross-compilation environments, therefore Automake
2409 # will honor the `STRIP' environment variable to overrule this program.
2410 if test "$cross_compiling" != no
; then
2411 if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2413 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_STRIP+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 if test -n "$STRIP"; then
2420 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir
=.
2427 for ac_exec_ext
in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 STRIP
=$ac_cv_prog_STRIP
2440 if test -n "$STRIP"; then
2441 { echo "$as_me:$LINENO: result: $STRIP" >&5
2442 echo "${ECHO_T}$STRIP" >&6; }
2444 { echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6; }
2450 if test -z "$ac_cv_prog_STRIP"; then
2452 # Extract the first word of "strip", so it can be a program name with args.
2453 set dummy strip
; ac_word
=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 if test -n "$ac_ct_STRIP"; then
2460 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir
=.
2467 for ac_exec_ext
in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_ac_ct_STRIP
="strip"
2470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2480 if test -n "$ac_ct_STRIP"; then
2481 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2482 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2484 { echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6; }
2488 if test "x$ac_ct_STRIP" = x
; then
2491 case $cross_compiling:$ac_tool_warned in
2493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet. If you think this
2495 configuration is useful to you, please write to autoconf@gnu.org." >&5
2496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2497 whose name does not start with the host triplet. If you think this
2498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2499 ac_tool_warned
=yes ;;
2504 STRIP
="$ac_cv_prog_STRIP"
2508 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2510 # We need awk for the "check" target. The system "awk" is bad on
2512 # Always define AMTAR for backward compatibility.
2514 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2516 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2522 >confdefs.h
# Kill PACKAGE_ macros
2524 LPATH
="$PATH:/usr/local/bin"
2526 for ac_prog
in gawk mawk nawk
awk
2528 # Extract the first word of "$ac_prog", so it can be a program name with args.
2529 set dummy
$ac_prog; ac_word
=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_AWK+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$AWK"; then
2536 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir
=.
2543 for ac_exec_ext
in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_AWK
="$ac_prog"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 if test -n "$AWK"; then
2557 { echo "$as_me:$LINENO: result: $AWK" >&5
2558 echo "${ECHO_T}$AWK" >&6; }
2560 { echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6; }
2565 test -n "$AWK" && break
2569 ac_cpp
='$CPP $CPPFLAGS'
2570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2573 if test -n "$ac_tool_prefix"; then
2574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2575 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC
="$CC" # Let the user override the test.
2584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir
=.
2589 for ac_exec_ext
in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 if test -n "$CC"; then
2603 { echo "$as_me:$LINENO: result: $CC" >&5
2604 echo "${ECHO_T}$CC" >&6; }
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2612 if test -z "$ac_cv_prog_CC"; then
2614 # Extract the first word of "gcc", so it can be a program name with args.
2615 set dummy gcc
; ac_word
=$2
2616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 if test -n "$ac_ct_CC"; then
2622 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir
=.
2629 for ac_exec_ext
in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_ac_ct_CC
="gcc"
2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2642 if test -n "$ac_ct_CC"; then
2643 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2644 echo "${ECHO_T}$ac_ct_CC" >&6; }
2646 { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2650 if test "x$ac_ct_CC" = x
; then
2653 case $cross_compiling:$ac_tool_warned in
2655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2656 whose name does not start with the host triplet. If you think this
2657 configuration is useful to you, please write to autoconf@gnu.org." >&5
2658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2659 whose name does not start with the host triplet. If you think this
2660 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2661 ac_tool_warned
=yes ;;
2669 if test -z "$CC"; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2672 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC
="$CC" # Let the user override the test.
2681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir
=.
2686 for ac_exec_ext
in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 if test -n "$CC"; then
2700 { echo "$as_me:$LINENO: result: $CC" >&5
2701 echo "${ECHO_T}$CC" >&6; }
2703 { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2710 if test -z "$CC"; then
2711 # Extract the first word of "cc", so it can be a program name with args.
2712 set dummy cc
; ac_word
=$2
2713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC
="$CC" # Let the user override the test.
2722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir
=.
2727 for ac_exec_ext
in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2730 ac_prog_rejected
=yes
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 if test $ac_prog_rejected = yes; then
2742 # We found a bogon in the path, so make sure we never use it.
2743 set dummy
$ac_cv_prog_CC
2745 if test $# != 0; then
2746 # We chose a different compiler from the bogus one.
2747 # However, it has the same basename, so the bogon will be chosen
2748 # first if we set CC to just the basename; use the full file name.
2750 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2756 if test -n "$CC"; then
2757 { echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6; }
2760 { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2766 if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog
in cl.exe
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC
="$CC" # Let the user override the test.
2780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir
=.
2785 for ac_exec_ext
in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CC"; then
2799 { echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6; }
2802 { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2807 test -n "$CC" && break
2810 if test -z "$CC"; then
2812 for ac_prog
in cl.exe
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy
$ac_prog; ac_word
=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test -n "$ac_ct_CC"; then
2822 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir
=.
2829 for ac_exec_ext
in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CC
="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2842 if test -n "$ac_ct_CC"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2844 echo "${ECHO_T}$ac_ct_CC" >&6; }
2846 { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2851 test -n "$ac_ct_CC" && break
2854 if test "x$ac_ct_CC" = x
; then
2857 case $cross_compiling:$ac_tool_warned in
2859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet. If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned
=yes ;;
2874 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2875 See \`config.log' for more details." >&5
2876 echo "$as_me: error: no acceptable C compiler found in \$PATH
2877 See \`config.log' for more details." >&2;}
2878 { (exit 1); exit 1; }; }
2880 # Provide some information about the compiler.
2881 echo "$as_me:$LINENO: checking for C compiler version" >&5
2882 ac_compiler
=`set X $ac_compile; echo $2`
2883 { (ac_try
="$ac_compiler --version >&5"
2885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler --version >&5") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -v >&5"
2895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2896 *) ac_try_echo
=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -v >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903 { (ac_try
="$ac_compiler -V >&5"
2905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -V >&5") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2914 cat >conftest.$ac_ext <<_ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2929 ac_clean_files_save=$ac_clean_files
2930 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2931 # Try to create an executable without -o first, disregard a.out.
2932 # It will help us diagnose broken compilers, and finding out an intuition
2934 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2935 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2936 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2938 # List of possible output files, starting from the most likely.
2939 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2940 # only as a last resort. b.out is created by i960 compilers.
2941 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2943 # The IRIX 6 linker writes into existing files which may not be
2944 # executable, retaining their permissions. Remove them first so a
2945 # subsequent execution test works.
2947 for ac_file in $ac_files
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2951 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2956 if { (ac_try="$ac_link_default"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_link_default") 2>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
2966 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2967 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2968 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2969 # so that the user can short-circuit this test for compilers unknown to
2971 for ac_file
in $ac_files ''
2973 test -f "$ac_file" ||
continue
2975 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2978 # We found the default executable, but exeext='' is most
2982 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2984 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2986 # We set ac_cv_exeext here because the later test for it is not
2987 # safe: cross compilers may not add the suffix if given an `-o'
2988 # argument, so we may need to know it at that point already.
2989 # Even if this section looks crufty: it has the advantage of
2996 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3002 { echo "$as_me:$LINENO: result: $ac_file" >&5
3003 echo "${ECHO_T}$ac_file" >&6; }
3004 if test -z "$ac_file"; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.
$ac_ext >&5
3008 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: C compiler cannot create executables
3011 See \`config.log' for more details." >&2;}
3012 { (exit 77); exit 77; }; }
3015 ac_exeext
=$ac_cv_exeext
3017 # Check that the compiler produces executables we can run. If not, either
3018 # the compiler is broken, or we cross compile.
3019 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3020 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3021 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3022 # If not cross compiling, check that we can run a simple program.
3023 if test "$cross_compiling" != yes; then
3024 if { ac_try
='./$ac_file'
3025 { (case "(($ac_try" in
3026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3036 if test "$cross_compiling" = maybe; then
3039 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3040 If you meant to cross compile, use \`--host'.
3041 See \`config.log' for more details.
" >&5
3042 echo "$as_me: error
: cannot run C compiled programs.
3043 If you meant to cross compile
, use \
`--host'.
3044 See \`config.log
' for more details." >&2;}
3045 { (exit 1); exit 1; }; }
3049 { echo "$as_me:$LINENO: result: yes" >&5
3050 echo "${ECHO_T}yes" >&6; }
3052 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3053 ac_clean_files=$ac_clean_files_save
3054 # Check that the compiler produces executables we can run. If not, either
3055 # the compiler is broken, or we cross compile.
3056 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3057 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3058 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3059 echo "${ECHO_T}$cross_compiling" >&6; }
3061 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3062 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3063 if { (ac_try="$ac_link"
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_link") 2>&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; then
3073 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3074 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3075 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3077 for ac_file
in conftest.exe conftest conftest.
*; do
3078 test -f "$ac_file" ||
continue
3080 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3081 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3087 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }
3094 rm -f conftest
$ac_cv_exeext
3095 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3096 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3098 rm -f conftest.
$ac_ext
3099 EXEEXT
=$ac_cv_exeext
3101 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3102 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3103 if test "${ac_cv_objext+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 cat >conftest.
$ac_ext <<_ACEOF
3109 cat confdefs.h
>>conftest.
$ac_ext
3110 cat >>conftest.
$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3121 rm -f conftest.o conftest.obj
3122 if { (ac_try
="$ac_compile"
3124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; then
3132 for ac_file in conftest.o conftest.obj conftest.*; do
3133 test -f "$ac_file" || continue;
3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3145 See \`config.log
' for more details." >&5
3146 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3147 See \`config.log' for more details.
" >&2;}
3148 { (exit 1); exit 1; }; }
3151 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3153 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3154 echo "${ECHO_T}$ac_cv_objext" >&6; }
3155 OBJEXT=$ac_cv_objext
3157 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3158 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3159 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3160 echo $ECHO_N "(cached
) $ECHO_C" >&6
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.$ac_objext; then
3199 echo "$as_me: failed program was
:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3209 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3210 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3211 GCC=`test $ac_compiler_gnu = yes && echo yes`
3212 ac_test_CFLAGS=${CFLAGS+set}
3213 ac_save_CFLAGS=$CFLAGS
3214 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3215 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3216 if test "${ac_cv_prog_cc_g+set}" = set; then
3217 echo $ECHO_N "(cached
) $ECHO_C" >&6
3219 ac_save_c_werror_flag=$ac_c_werror_flag
3220 ac_c_werror_flag=yes
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3238 rm -f conftest.$ac_objext
3239 if { (ac_try="$ac_compile"
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_compile") 2>conftest.er1
3247 grep -v '^ *+' conftest.er1 >conftest.err
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3251 (exit $ac_status); } && {
3252 test -z "$ac_c_werror_flag" ||
3253 test ! -s conftest.err
3254 } && test -s conftest.$ac_objext; then
3257 echo "$as_me: failed program was
:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3276 rm -f conftest.$ac_objext
3277 if { (ac_try="$ac_compile"
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_compile") 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3295 echo "$as_me: failed program was
:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3300 cat >conftest.$ac_ext <<_ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3334 echo "$as_me: failed program was
:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3349 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3350 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3351 if test "$ac_test_CFLAGS" = set; then
3352 CFLAGS=$ac_save_CFLAGS
3353 elif test $ac_cv_prog_cc_g = yes; then
3354 if test "$GCC" = yes; then
3360 if test "$GCC" = yes; then
3366 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3367 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3368 if test "${ac_cv_prog_cc_c89+set}" = set; then
3369 echo $ECHO_N "(cached
) $ECHO_C" >&6
3371 ac_cv_prog_cc_c89=no
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3381 #include <sys/types.h>
3382 #include <sys/stat.h>
3383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3384 struct buf { int x; };
3385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3386 static char *e (p, i)
3392 static char *f (char * (*g) (char **, int), char **p, ...)
3397 s = g (p, va_arg (v,int));
3402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3403 function prototypes and stuff, but not '\xHH' hex character constants.
3404 These don't provoke an error unfortunately, instead are silently treated
3405 as 'x'. The following induces an error, until -std is added to get
3406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3407 array size at least. It's necessary to write '\x00'==0 to get something
3408 that's true only with -std. */
3409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3412 inside strings and character constants. */
3414 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3416 int test (int i, double x);
3417 struct s1 {int (*f) (int a);};
3418 struct s2 {int (*f) (double a);};
3419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3425 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3430 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3431 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3433 CC="$ac_save_CC $ac_arg"
3434 rm -f conftest.$ac_objext
3435 if { (ac_try="$ac_compile"
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_compile") 2>conftest.er1
3443 grep -v '^ *+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
3451 ac_cv_prog_cc_c89=$ac_arg
3453 echo "$as_me: failed program was
:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3459 rm -f core conftest.err conftest.$ac_objext
3460 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3462 rm -f conftest.$ac_ext
3467 case "x
$ac_cv_prog_cc_c89" in
3469 { echo "$as_me:$LINENO: result
: none needed
" >&5
3470 echo "${ECHO_T}none needed
" >&6; } ;;
3472 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3473 echo "${ECHO_T}unsupported
" >&6; } ;;
3475 CC="$CC $ac_cv_prog_cc_c89"
3476 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3477 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 DEPDIR="${am__leading_dot}deps
"
3488 ac_config_commands="$ac_config_commands depfiles
"
3491 am_make=${MAKE-make}
3492 cat > confinc << 'END'
3497 # If we don't find an include directive, just comment out the code.
3498 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3499 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3503 # First try GNU make style include.
3504 echo "include confinc" > confmf
3505 # We grep out `Entering directory' and `Leaving directory'
3506 # messages which can occur if `w' ends up in MAKEFLAGS.
3507 # In particular we don't look at `^make:' because GNU make might
3508 # be invoked under some other name (usually "gmake"), in which
3509 # case it prints its new name instead of `make'.
3510 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3515 # Now try BSD make style include.
3516 if test "$am__include" = "#"; then
3517 echo '.include "confinc"' > confmf
3518 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3519 am__include
=.include
3526 { echo "$as_me:$LINENO: result: $_am_result" >&5
3527 echo "${ECHO_T}$_am_result" >&6; }
3528 rm -f confinc confmf
3530 # Check whether --enable-dependency-tracking was given.
3531 if test "${enable_dependency_tracking+set}" = set; then
3532 enableval
=$enable_dependency_tracking;
3535 if test "x$enable_dependency_tracking" != xno
; then
3536 am_depcomp
="$ac_aux_dir/depcomp"
3539 if test "x$enable_dependency_tracking" != xno; then
3549 depcc
="$CC" am_compiler_list
=
3551 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3552 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3553 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3557 # We make a subdir and do the tests there. Otherwise we can end up
3558 # making bogus files that we don't know about and never remove. For
3559 # instance it was reported that on HP-UX the gcc test will end up
3560 # making a dummy file named `D' -- because `-MD' means `put the output
3563 # Copy depcomp to subdir because otherwise we won't find it if we're
3564 # using a relative directory.
3565 cp "$am_depcomp" conftest.dir
3567 # We will build objects and dependencies in a subdirectory because
3568 # it helps to detect inapplicable dependency modes. For instance
3569 # both Tru64's cc and ICC support -MD to output dependencies as a
3570 # side effect of compilation, but ICC will put the dependencies in
3571 # the current directory while Tru64 will put them in the object
3575 am_cv_CC_dependencies_compiler_type
=none
3576 if test "$am_compiler_list" = ""; then
3577 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3579 for depmode
in $am_compiler_list; do
3580 # Setup a source with many dependencies, because some compilers
3581 # like to wrap large dependency lists on column 80 (with \), and
3582 # we should not choose a depcomp mode which is confused by this.
3584 # We need to recreate these files for each test, as the compiler may
3585 # overwrite some of them when testing with obscure command lines.
3586 # This happens at least with the AIX C compiler.
3588 for i
in 1 2 3 4 5 6; do
3589 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3590 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3591 # Solaris 8's {/usr,}/bin/sh.
3592 touch sub
/conftst
$i.h
3594 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3598 # after this tag, mechanisms are not by side-effect, so they'll
3599 # only be used when explicitly requested
3600 if test "x$enable_dependency_tracking" = xyes
; then
3608 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3609 # mode. It turns out that the SunPro C++ compiler does not properly
3610 # handle `-M -o', and we need to detect this.
3611 if depmode
=$depmode \
3612 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3613 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3614 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3615 >/dev
/null
2>conftest.err
&&
3616 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3617 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3618 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3619 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3620 # icc doesn't choke on unknown options, it will just issue warnings
3621 # or remarks (even with -Werror). So we grep stderr for any message
3622 # that says an option was ignored or not supported.
3623 # When given -MP, icc 7.0 and 7.1 complain thusly:
3624 # icc: Command line warning: ignoring option '-M'; no argument required
3625 # The diagnosis changed in icc 8.0:
3626 # icc: Command line remark: option '-MP' not supported
3627 if (grep 'ignoring option' conftest.err ||
3628 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3629 am_cv_CC_dependencies_compiler_type
=$depmode
3638 am_cv_CC_dependencies_compiler_type
=none
3642 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3643 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3644 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3647 test "x$enable_dependency_tracking" != xno \
3648 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3650 am__fastdepCC_FALSE
='#'
3652 am__fastdepCC_TRUE
='#'
3653 am__fastdepCC_FALSE
=
3658 ac_cpp
='$CPP $CPPFLAGS'
3659 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3662 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3663 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3664 # On Suns, sometimes $CPP names a directory.
3665 if test -n "$CPP" && test -d "$CPP"; then
3668 if test -z "$CPP"; then
3669 if test "${ac_cv_prog_CPP+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 # Double quotes because CPP needs to be expanded
3673 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3676 for ac_c_preproc_warn_flag
in '' yes
3678 # Use a header file that comes with gcc, so configuring glibc
3679 # with a fresh cross-compiler works.
3680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3681 # <limits.h> exists even on freestanding compilers.
3682 # On the NeXT, cc -E runs the code through the compiler's parser,
3683 # not just through cpp. "Syntax error" is here to catch this case.
3684 cat >conftest.
$ac_ext <<_ACEOF
3687 cat confdefs.h
>>conftest.
$ac_ext
3688 cat >>conftest.
$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3691 # include <limits.h>
3693 # include <assert.h>
3697 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3705 grep -v '^ *+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } >/dev/null && {
3710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 # Broken: fails on valid input.
3722 rm -f conftest.err conftest.$ac_ext
3724 # OK, works on sane cases. Now check whether nonexistent headers
3725 # can be detected and how.
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3732 #include <ac_nonexistent.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
3750 # Broken: success on invalid input.
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.
$ac_ext >&5
3756 # Passes both tests.
3761 rm -f conftest.err conftest.
$ac_ext
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.
$ac_ext
3766 if $ac_preproc_ok; then
3778 { echo "$as_me:$LINENO: result: $CPP" >&5
3779 echo "${ECHO_T}$CPP" >&6; }
3781 for ac_c_preproc_warn_flag
in '' yes
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat >conftest.
$ac_ext <<_ACEOF
3792 cat confdefs.h
>>conftest.
$ac_ext
3793 cat >>conftest.
$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3796 # include <limits.h>
3798 # include <assert.h>
3802 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810 grep -v '^ *+' conftest.er1 >conftest.err
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } >/dev/null && {
3815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3816 test ! -s conftest.err
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3823 # Broken: fails on valid input.
3827 rm -f conftest.err conftest.$ac_ext
3829 # OK, works on sane cases. Now check whether nonexistent headers
3830 # can be detected and how.
3831 cat >conftest.$ac_ext <<_ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 #include <ac_nonexistent.h>
3839 if { (ac_try="$ac_cpp conftest.$ac_ext"
3841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3842 *) ac_try_echo
=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3847 grep -v '^ *+' conftest.er1
>conftest.err
3849 cat conftest.err
>&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } >/dev
/null
&& {
3852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3855 # Broken: success on invalid input.
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.
$ac_ext >&5
3861 # Passes both tests.
3866 rm -f conftest.err conftest.
$ac_ext
3869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3870 rm -f conftest.err conftest.
$ac_ext
3871 if $ac_preproc_ok; then
3874 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3875 See \`config.log' for more details." >&5
3876 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3877 See \`config.log' for more details." >&2;}
3878 { (exit 1); exit 1; }; }
3882 ac_cpp
='$CPP $CPPFLAGS'
3883 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3887 # Find a good install program. We prefer a C program (faster),
3888 # so one script is as good as another. But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # OS/2's system install, which has a completely different semantic
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir
=.
3911 # Account for people who put trailing slashes in PATH elements.
3913 .
/ | .
// |
/cC
/* | \
3914 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3915 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3918 # OSF1 and SCO ODT 3.0 have their own names for install.
3919 # Don't use installbsd from OSF since it installs stuff as root
3921 for ac_prog
in ginstall scoinst
install; do
3922 for ac_exec_ext
in '' $ac_executable_extensions; do
3923 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3924 if test $ac_prog = install &&
3925 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3926 # AIX install. It has an incompatible calling convention.
3928 elif test $ac_prog = install &&
3929 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3930 # program-specific install script used by HP pwplus--don't use.
3933 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3946 if test "${ac_cv_path_install+set}" = set; then
3947 INSTALL
=$ac_cv_path_install
3949 # As a last resort, use the slow shell script. Don't cache a
3950 # value for INSTALL within a source directory, because that will
3951 # break other packages using the cache if that directory is
3952 # removed, or if the value is a relative name.
3953 INSTALL
=$ac_install_sh
3956 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3957 echo "${ECHO_T}$INSTALL" >&6; }
3959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3960 # It thinks the first close brace ends the variable substitution.
3961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3965 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3967 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3968 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3970 if test "$LN_S" = "ln -s"; then
3971 { echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6; }
3974 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3975 echo "${ECHO_T}no, using $LN_S" >&6; }
3980 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3981 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
3982 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 ac_check_lib_save_LIBS
=$LIBS
3987 cat >conftest.
$ac_ext <<_ACEOF
3990 cat confdefs.h
>>conftest.
$ac_ext
3991 cat >>conftest.
$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3994 /* Override any GCC internal prototype to avoid an error.
3995 Use char because int might match the return type of a GCC
3996 builtin and then its argument prototype would still apply. */
4004 return lt_dlinit ();
4009 rm -f conftest.
$ac_objext conftest
$ac_exeext
4010 if { (ac_try
="$ac_link"
4012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_link") 2>conftest.er1
4018 grep -v '^ *+' conftest.er1 >conftest.err
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } && {
4023 test -z "$ac_c_werror_flag" ||
4024 test ! -s conftest.err
4025 } && test -s conftest$ac_exeext &&
4026 $as_test_x conftest$ac_exeext; then
4027 ac_cv_lib_ltdl_lt_dlinit=yes
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 ac_cv_lib_ltdl_lt_dlinit=no
4035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4036 conftest$ac_exeext conftest.$ac_ext
4037 LIBS=$ac_check_lib_save_LIBS
4039 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4040 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4041 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4042 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4044 if test x"$enable_ltdl_install" = xno; then
4045 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4046 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4048 enable_ltdl_install=yes
4053 if test x"$enable_ltdl_install" = x"yes"; then
4054 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4055 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4056 LTDLINCL='-I${top_srcdir}/''libltdl'
4058 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4062 # For backwards non-gettext consistent compatibility...
4067 # Check whether --enable-shared was given.
4068 if test "${enable_shared+set}" = set; then
4069 enableval=$enable_shared; p=${PACKAGE-default}
4071 yes) enable_shared=yes ;;
4072 no) enable_shared=no ;;
4075 # Look at the argument we got. We use all the common list separators.
4076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4077 for pkg in $enableval; do
4079 if test "X$pkg" = "X$p"; then
4091 # Check whether --enable-static was given.
4092 if test "${enable_static+set}" = set; then
4093 enableval=$enable_static; p=${PACKAGE-default}
4095 yes) enable_static=yes ;;
4096 no) enable_static=no ;;
4099 # Look at the argument we got. We use all the common list separators.
4100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4101 for pkg in $enableval; do
4103 if test "X$pkg" = "X$p"; then
4115 # Check whether --enable-fast-install was given.
4116 if test "${enable_fast_install+set}" = set; then
4117 enableval=$enable_fast_install; p=${PACKAGE-default}
4119 yes) enable_fast_install=yes ;;
4120 no) enable_fast_install=no ;;
4122 enable_fast_install=no
4123 # Look at the argument we got. We use all the common list separators.
4124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4125 for pkg in $enableval; do
4127 if test "X$pkg" = "X$p"; then
4128 enable_fast_install=yes
4135 enable_fast_install=yes
4139 # Make sure we can run config.sub.
4140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4141 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4142 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4143 { (exit 1); exit 1; }; }
4145 { echo "$as_me:$LINENO: checking build system type" >&5
4146 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4147 if test "${ac_cv_build+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 ac_build_alias=$build_alias
4151 test "x$ac_build_alias" = x &&
4152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4153 test "x$ac_build_alias" = x &&
4154 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4155 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4156 { (exit 1); exit 1; }; }
4157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4160 { (exit 1); exit 1; }; }
4163 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4164 echo "${ECHO_T}$ac_cv_build" >&6; }
4165 case $ac_cv_build in
4167 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4168 echo "$as_me: error: invalid value of canonical build" >&2;}
4169 { (exit 1); exit 1; }; };;
4172 ac_save_IFS=$IFS; IFS='-'
4178 # Remember, the first character of IFS is used to create $*,
4179 # except with old shells:
4182 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
4185 { echo "$as_me:$LINENO: checking host system type" >&5
4186 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4187 if test "${ac_cv_host+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 if test "x$host_alias" = x; then
4191 ac_cv_host=$ac_cv_build
4193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4194 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4195 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4196 { (exit 1); exit 1; }; }
4200 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4201 echo "${ECHO_T}$ac_cv_host" >&6; }
4204 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4205 echo "$as_me: error: invalid value of canonical host" >&2;}
4206 { (exit 1); exit 1; }; };;
4209 ac_save_IFS=$IFS; IFS='-'
4215 # Remember, the first character of IFS is used to create $*,
4216 # except with old shells:
4219 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
4222 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4223 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4224 if test "${lt_cv_path_SED+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 # Loop through the user's path and test for sed and gsed.
4228 # Then use that list of sed's as ones to test for truncation.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for lt_ac_prog in sed gsed; do
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4237 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4244 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4245 # along with /bin/sed that truncates output.
4246 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4247 test ! -f $lt_ac_sed && continue
4248 cat /dev/null > conftest.in
4250 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4251 # Check for GNU sed and select it if it is found.
4252 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4253 lt_cv_path_SED=$lt_ac_sed
4257 cat conftest.in conftest.in >conftest.tmp
4258 mv conftest.tmp conftest.in
4259 cp conftest.in conftest.nl
4261 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4262 cmp -s conftest.out conftest.nl || break
4263 # 10000 chars as input seems more than enough
4264 test $lt_ac_count -gt 10 && break
4265 lt_ac_count=`expr $lt_ac_count + 1`
4266 if test $lt_ac_count -gt $lt_ac_max; then
4267 lt_ac_max=$lt_ac_count
4268 lt_cv_path_SED=$lt_ac_sed
4276 { echo "$as_me:$LINENO: result: $SED" >&5
4277 echo "${ECHO_T}$SED" >&6; }
4279 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4280 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4281 if test "${ac_cv_path_GREP+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 # Extract the first word of "grep ggrep" to use in msg output
4285 if test -z "$GREP"; then
4286 set dummy grep ggrep; ac_prog_name=$2
4287 if test "${ac_cv_path_GREP+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 ac_path_GREP_found=false
4291 # Loop through the user's path and test for each of PROGNAME-LIST
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4296 test -z "$as_dir" && as_dir=.
4297 for ac_prog in grep ggrep; do
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4300 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4301 # Check for GNU ac_path_GREP and select it if it is found.
4302 # Check for GNU $ac_path_GREP
4303 case `"$ac_path_GREP" --version 2>&1` in
4305 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4308 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4311 cat "conftest.in" "conftest.in" >"conftest.tmp"
4312 mv "conftest.tmp" "conftest.in"
4313 cp "conftest.in" "conftest.nl"
4314 echo 'GREP' >> "conftest.nl"
4315 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4317 ac_count=`expr $ac_count + 1`
4318 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4319 # Best one so far, save it but keep looking for a better one
4320 ac_cv_path_GREP="$ac_path_GREP"
4321 ac_path_GREP_max=$ac_count
4323 # 10*(2^10) chars as input seems more than enough
4324 test $ac_count -gt 10 && break
4326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4330 $ac_path_GREP_found && break 3
4340 GREP="$ac_cv_path_GREP"
4341 if test -z "$GREP"; then
4342 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4343 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4344 { (exit 1); exit 1; }; }
4348 ac_cv_path_GREP=$GREP
4353 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4354 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4355 GREP="$ac_cv_path_GREP"
4358 { echo "$as_me:$LINENO: checking for egrep" >&5
4359 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4360 if test "${ac_cv_path_EGREP+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4364 then ac_cv_path_EGREP="$GREP -E"
4366 # Extract the first word of "egrep" to use in msg output
4367 if test -z "$EGREP"; then
4368 set dummy egrep; ac_prog_name=$2
4369 if test "${ac_cv_path_EGREP+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 ac_path_EGREP_found=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4378 test -z "$as_dir" && as_dir=.
4379 for ac_prog in egrep; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4382 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4383 # Check for GNU ac_path_EGREP and select it if it is found.
4384 # Check for GNU $ac_path_EGREP
4385 case `"$ac_path_EGREP" --version 2>&1` in
4387 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4390 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 echo 'EGREP' >> "conftest.nl"
4397 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399 ac_count=`expr $ac_count + 1`
4400 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_EGREP="$ac_path_EGREP"
4403 ac_path_EGREP_max=$ac_count
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412 $ac_path_EGREP_found && break 3
4422 EGREP="$ac_cv_path_EGREP"
4423 if test -z "$EGREP"; then
4424 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4425 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4426 { (exit 1); exit 1; }; }
4430 ac_cv_path_EGREP=$EGREP
4436 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4437 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4438 EGREP="$ac_cv_path_EGREP"
4442 # Check whether --with-gnu-ld was given.
4443 if test "${with_gnu_ld+set}" = set; then
4444 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4450 if test "$GCC" = yes; then
4451 # Check if gcc -print-prog-name=ld gives a path.
4452 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4453 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4456 # gcc leaves a trailing carriage return which upsets mingw
4457 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
4459 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
4462 # Accept absolute paths.
4464 re_direlt='/[^/][^/]*/\.\./'
4465 # Canonicalize the pathname of ld
4466 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
4467 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4468 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
4470 test -z "$LD" && LD="$ac_prog"
4473 # If it fails, then pretend we aren't using GCC.
4477 # If it is relative, then search for the first ld in PATH.
4481 elif test "$with_gnu_ld" = yes; then
4482 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4483 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4485 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4486 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4488 if test "${lt_cv_path_LD+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 if test -z "$LD"; then
4492 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4493 for ac_dir in $PATH; do
4495 test -z "$ac_dir" && ac_dir=.
4496 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4497 lt_cv_path_LD="$ac_dir/$ac_prog"
4498 # Check to see if the program is GNU ld. I'd rather use --version,
4499 # but apparently some variants of GNU ld only accept -v.
4500 # Break only if it was the GNU/non-GNU ld that we prefer.
4501 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
4502 *GNU* | *'with BFD'*)
4503 test "$with_gnu_ld" != no && break
4506 test "$with_gnu_ld" != yes && break
4513 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4518 if test -n "$LD"; then
4519 { echo "$as_me:$LINENO: result: $LD" >&5
4520 echo "${ECHO_T}$LD" >&6; }
4522 { echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6; }
4525 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4526 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4527 { (exit 1); exit 1; }; }
4528 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4529 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4530 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4534 case `$LD -v 2>&1 </dev
/null
` in
4535 *GNU* | *'with BFD'*)
4536 lt_cv_prog_gnu_ld=yes
4539 lt_cv_prog_gnu_ld=no
4543 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4544 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4545 with_gnu_ld=$lt_cv_prog_gnu_ld
4548 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4549 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4550 if test "${lt_cv_ld_reload_flag+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 lt_cv_ld_reload_flag='-r'
4555 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4556 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4557 reload_flag=$lt_cv_ld_reload_flag
4558 case $reload_flag in
4560 *) reload_flag=" $reload_flag" ;;
4562 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4565 if test "$GCC" = yes; then
4566 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4568 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4573 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4574 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4575 if test "${lt_cv_path_NM+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 if test -n "$NM"; then
4579 # Let the user override the test.
4582 lt_nm_to_check="${ac_tool_prefix}nm"
4583 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4584 lt_nm_to_check="$lt_nm_to_check nm"
4586 for lt_tmp_nm in $lt_nm_to_check; do
4587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4588 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4590 test -z "$ac_dir" && ac_dir=.
4591 tmp_nm="$ac_dir/$lt_tmp_nm"
4592 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4593 # Check to see if the nm accepts a BSD-compat flag.
4594 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
4595 # nm: unknown option "B" ignored
4596 # Tru64's nm complains that
/dev
/null is an invalid object
file
4597 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4598 */dev
/null
* |
*'Invalid file or object type'*)
4599 lt_cv_path_NM
="$tmp_nm -B"
4603 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4605 lt_cv_path_NM
="$tmp_nm -p"
4609 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4610 continue # so that we can try to find one that supports BSD flags
4619 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4622 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4623 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4626 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4627 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4628 if test "${lt_cv_deplibs_check_method+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4632 lt_cv_file_magic_test_file
=
4633 lt_cv_deplibs_check_method
='unknown'
4634 # Need to set the preceding variable on all platforms that support
4635 # interlibrary dependencies.
4636 # 'none' -- dependencies not supported.
4637 # `unknown' -- same as none, but documents that we really don't know.
4638 # 'pass_all' -- all dependencies passed with no checks.
4639 # 'test_compile' -- check by making test program.
4640 # 'file_magic [[regex]]' -- check by looking for files in library path
4641 # which responds to the $file_magic_cmd with a given extended regex.
4642 # If you have `file' or equivalent on your system and you're not sure
4643 # whether `pass_all' will *always* work, you probably want this one.
4647 lt_cv_deplibs_check_method
=pass_all
4651 lt_cv_deplibs_check_method
=pass_all
4655 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4656 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4657 lt_cv_file_magic_test_file
=/shlib
/libc.so
4661 # func_win32_libid is a shell function defined in ltmain.sh
4662 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4663 lt_cv_file_magic_cmd
='func_win32_libid'
4667 # Base MSYS/MinGW do not provide the 'file' command needed by
4668 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4669 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4670 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4673 darwin
* | rhapsody
*)
4674 lt_cv_deplibs_check_method
=pass_all
4677 freebsd
* | dragonfly
*)
4678 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4681 # Not sure whether the presence of OpenBSD here was a mistake.
4682 # Let's accept both of them until this is cleared up.
4683 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4684 lt_cv_file_magic_cmd
=/usr
/bin
/file
4685 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4689 lt_cv_deplibs_check_method
=pass_all
4694 lt_cv_deplibs_check_method
=pass_all
4697 hpux10.20
* | hpux11
*)
4698 lt_cv_file_magic_cmd
=/usr
/bin
/file
4701 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4702 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4705 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]'
4706 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4709 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4710 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4716 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4717 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4720 irix5
* | irix6
* | nonstopux
*)
4722 *-32|
*"-32 ") libmagic
=32-bit;;
4723 *-n32|
*"-n32 ") libmagic
=N32
;;
4724 *-64|
*"-64 ") libmagic
=64-bit;;
4725 *) libmagic
=never-match
;;
4727 lt_cv_deplibs_check_method
=pass_all
4730 # This must be Linux ELF.
4731 linux
* | k
*bsd
*-gnu)
4732 lt_cv_deplibs_check_method
=pass_all
4735 netbsd
* | netbsdelf
*-gnu)
4736 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4737 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4739 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4744 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4745 lt_cv_file_magic_cmd
=/usr
/bin
/file
4746 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4750 lt_cv_deplibs_check_method
=unknown
4754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4755 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4757 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4761 osf3
* | osf4
* | osf5
*)
4762 lt_cv_deplibs_check_method
=pass_all
4766 lt_cv_deplibs_check_method
=pass_all
4770 case $host_vendor in
4772 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]'
4773 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4776 lt_cv_deplibs_check_method
=pass_all
4779 lt_cv_file_magic_cmd
='/bin/file'
4780 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4783 lt_cv_file_magic_cmd
='/bin/file'
4784 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4785 lt_cv_file_magic_test_file
=/lib
/libc.so
4788 lt_cv_deplibs_check_method
=pass_all
4791 lt_cv_deplibs_check_method
=pass_all
4796 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4797 lt_cv_deplibs_check_method
=pass_all
4802 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4803 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4804 file_magic_cmd
=$lt_cv_file_magic_cmd
4805 deplibs_check_method
=$lt_cv_deplibs_check_method
4806 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4811 # If no C compiler was specified, use CC.
4814 # If no C compiler flags were specified, use CFLAGS.
4815 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4817 # Allow CC to be a program name with arguments.
4820 # Check whether --enable-libtool-lock was given.
4821 if test "${enable_libtool_lock+set}" = set; then
4822 enableval
=$enable_libtool_lock;
4825 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4827 # Some flags need to be propagated to the compiler or linker for good
4831 # Find out which ABI we are using.
4832 echo 'int i;' > conftest.
$ac_ext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; then
4838 case `/usr/bin/file conftest.$ac_objext` in
4850 # Find out which ABI we are using.
4851 echo '#line 4851 "configure"' > conftest.
$ac_ext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; then
4857 if test "$lt_cv_prog_gnu_ld" = yes; then
4858 case `/usr/bin/file conftest.$ac_objext` in
4860 LD
="${LD-ld} -melf32bsmip"
4863 LD
="${LD-ld} -melf32bmipn32"
4866 LD
="${LD-ld} -melf64bmip"
4870 case `/usr/bin/file conftest.$ac_objext` in
4886 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4887 # Find out which ABI we are using.
4888 echo 'int i;' > conftest.
$ac_ext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; then
4894 case `/usr/bin/file conftest.o` in
4898 LD
="${LD-ld} -m elf_i386"
4900 ppc64-
*linux
*|powerpc64-
*linux
*)
4901 LD
="${LD-ld} -m elf32ppclinux"
4904 LD
="${LD-ld} -m elf_s390"
4907 LD
="${LD-ld} -m elf32_sparc"
4914 LD
="${LD-ld} -m elf_x86_64"
4916 ppc
*-*linux
*|powerpc
*-*linux
*)
4917 LD
="${LD-ld} -m elf64ppc"
4920 LD
="${LD-ld} -m elf64_s390"
4923 LD
="${LD-ld} -m elf64_sparc"
4933 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4934 SAVE_CFLAGS
="$CFLAGS"
4935 CFLAGS
="$CFLAGS -belf"
4936 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4937 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4938 if test "${lt_cv_cc_needs_belf+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 ac_cpp
='$CPP $CPPFLAGS'
4943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4947 cat >conftest.
$ac_ext <<_ACEOF
4950 cat confdefs.h
>>conftest.
$ac_ext
4951 cat >>conftest.
$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4962 rm -f conftest.
$ac_objext conftest
$ac_exeext
4963 if { (ac_try
="$ac_link"
4965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_link") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest$ac_exeext &&
4979 $as_test_x conftest$ac_exeext; then
4980 lt_cv_cc_needs_belf=yes
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 lt_cv_cc_needs_belf=no
4988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4989 conftest$ac_exeext conftest.$ac_ext
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4998 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4999 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5001 CFLAGS="$SAVE_CFLAGS"
5005 # Find out which ABI we are using.
5006 echo 'int i;' > conftest.$ac_ext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; then
5012 case `/usr
/bin
/file conftest.o
` in
5014 case $lt_cv_prog_gnu_ld in
5015 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5016 *) LD="${LD-ld} -64" ;;
5027 need_locks="$enable_libtool_lock"
5031 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5033 if test "${ac_cv_header_stdc+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5055 rm -f conftest.$ac_objext
5056 if { (ac_try="$ac_compile"
5058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5059 *) ac_try_echo
=$ac_try;;
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_compile") 2>conftest.er1
5064 grep -v '^ *+' conftest.er1
>conftest.err
5066 cat conftest.err
>&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest.
$ac_objext; then
5072 ac_cv_header_stdc
=yes
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.
$ac_ext >&5
5077 ac_cv_header_stdc
=no
5080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5082 if test $ac_cv_header_stdc = yes; then
5083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5084 cat >conftest.
$ac_ext <<_ACEOF
5087 cat confdefs.h
>>conftest.
$ac_ext
5088 cat >>conftest.
$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5094 $EGREP "memchr" >/dev
/null
2>&1; then
5097 ac_cv_header_stdc
=no
5103 if test $ac_cv_header_stdc = yes; then
5104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5105 cat >conftest.
$ac_ext <<_ACEOF
5108 cat confdefs.h
>>conftest.
$ac_ext
5109 cat >>conftest.
$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5115 $EGREP "free" >/dev
/null
2>&1; then
5118 ac_cv_header_stdc
=no
5124 if test $ac_cv_header_stdc = yes; then
5125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5126 if test "$cross_compiling" = yes; then
5129 cat >conftest.
$ac_ext <<_ACEOF
5132 cat confdefs.h
>>conftest.
$ac_ext
5133 cat >>conftest.
$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5137 #if ((' ' & 0x0FF) == 0x020)
5138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5141 # define ISLOWER(c) \
5142 (('a' <= (c) && (c) <= 'i') \
5143 || ('j' <= (c) && (c) <= 'r') \
5144 || ('s' <= (c) && (c) <= 'z'))
5145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5153 for (i = 0; i < 256; i++)
5154 if (XOR (islower (i), ISLOWER (i))
5155 || toupper (i) != TOUPPER (i))
5160 rm -f conftest
$ac_exeext
5161 if { (ac_try
="$ac_link"
5163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_link") 2>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5171 { (case "(($ac_try" in
5172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5173 *) ac_try_echo
=$ac_try;;
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_try") 2>&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5182 echo "$as_me: program exited with status $ac_status" >&5
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.
$ac_ext >&5
5187 ac_cv_header_stdc
=no
5189 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5195 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5196 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5197 if test $ac_cv_header_stdc = yes; then
5199 cat >>confdefs.h
<<\_ACEOF
5200 #define STDC_HEADERS 1
5205 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5215 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5216 inttypes.h stdint.h unistd.h
5218 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5221 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 cat >conftest.
$ac_ext <<_ACEOF
5227 cat confdefs.h
>>conftest.
$ac_ext
5228 cat >>conftest.
$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 $ac_includes_default
5232 #include <$ac_header>
5234 rm -f conftest.
$ac_objext
5235 if { (ac_try
="$ac_compile"
5237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_compile") 2>conftest.er1
5243 grep -v '^ *+' conftest.er1 >conftest.err
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && {
5248 test -z "$ac_c_werror_flag" ||
5249 test ! -s conftest.err
5250 } && test -s conftest.$ac_objext; then
5251 eval "$as_ac_Header=yes"
5253 echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5256 eval "$as_ac_Header=no"
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 ac_res=`eval echo '${'$as_ac_Header'}'`
5262 { echo "$as_me:$LINENO: result: $ac_res" >&5
5263 echo "${ECHO_T}$ac_res" >&6; }
5264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5265 cat >>confdefs.h <<_ACEOF
5266 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5275 for ac_header in dlfcn.h
5277 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 ac_res=`eval echo '${'$as_ac_Header'}'`
5285 { echo "$as_me:$LINENO: result: $ac_res" >&5
5286 echo "${ECHO_T}$ac_res" >&6; }
5288 # Is the header compilable?
5289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5298 #include <$ac_header>
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5304 *) ac_try_echo
=$ac_try;;
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5309 grep -v '^ *+' conftest.er1
>conftest.err
5311 cat conftest.err
>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.
$ac_objext; then
5317 ac_header_compiler
=yes
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.
$ac_ext >&5
5322 ac_header_compiler
=no
5325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5327 echo "${ECHO_T}$ac_header_compiler" >&6; }
5329 # Is the header present?
5330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5332 cat >conftest.
$ac_ext <<_ACEOF
5335 cat confdefs.h
>>conftest.
$ac_ext
5336 cat >>conftest.
$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <$ac_header>
5340 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5348 grep -v '^ *+' conftest.er1 >conftest.err
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } >/dev/null && {
5353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5354 test ! -s conftest.err
5356 ac_header_preproc=yes
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 ac_header_preproc=no
5364 rm -f conftest.err conftest.$ac_ext
5365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5366 echo "${ECHO_T}$ac_header_preproc" >&6; }
5368 # So? What about this header?
5369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5375 ac_header_preproc=yes
5378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5391 ## -------------------------------------------------- ##
5392 ## Report this to courier-users@lists.sourceforge.net ##
5393 ## -------------------------------------------------- ##
5395 ) | sed "s/^/$as_me: WARNING: /" >&2
5398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 eval "$as_ac_Header=\$ac_header_preproc"
5405 ac_res=`eval echo '${'$as_ac_Header'}'`
5406 { echo "$as_me:$LINENO: result: $ac_res" >&5
5407 echo "${ECHO_T}$ac_res" >&6; }
5410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5411 cat >>confdefs.h <<_ACEOF
5412 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5420 ac_cpp='$CXXCPP $CPPFLAGS'
5421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5424 if test -z "$CXX"; then
5425 if test -n "$CCC"; then
5428 if test -n "$ac_tool_prefix"; then
5429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5435 if test "${ac_cv_prog_CXX+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 if test -n "$CXX"; then
5439 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 if test -n "$CXX"; then
5460 { echo "$as_me:$LINENO: result: $CXX" >&5
5461 echo "${ECHO_T}$CXX" >&6; }
5463 { echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6; }
5468 test -n "$CXX" && break
5471 if test -z "$CXX"; then
5473 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5475 # Extract the first word of "$ac_prog", so it can be a program name with args.
5476 set dummy $ac_prog; ac_word=$2
5477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5479 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 if test -n "$ac_ct_CXX"; then
5483 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_ac_ct_CXX="$ac_prog"
5493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5503 if test -n "$ac_ct_CXX"; then
5504 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5505 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5507 { echo "$as_me:$LINENO: result: no" >&5
5508 echo "${ECHO_T}no" >&6; }
5512 test -n "$ac_ct_CXX" && break
5515 if test "x$ac_ct_CXX" = x; then
5518 case $cross_compiling:$ac_tool_warned in
5520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5521 whose name does not start with the host triplet. If you think this
5522 configuration is useful to you, please write to autoconf@gnu.org." >&5
5523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5524 whose name does not start with the host triplet. If you think this
5525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5526 ac_tool_warned=yes ;;
5534 # Provide some information about the compiler.
5535 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5536 ac_compiler=`set X
$ac_compile; echo $2`
5537 { (ac_try="$ac_compiler --version >&5"
5539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5540 *) ac_try_echo
=$ac_try;;
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_compiler --version >&5") 2>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }
5547 { (ac_try
="$ac_compiler -v >&5"
5549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_compiler -v >&5") 2>&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }
5557 { (ac_try="$ac_compiler -V >&5"
5559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5560 *) ac_try_echo
=$ac_try;;
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_compiler -V >&5") 2>&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }
5568 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5569 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5570 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 cat >conftest.
$ac_ext <<_ACEOF
5576 cat confdefs.h
>>conftest.
$ac_ext
5577 cat >>conftest.
$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5591 rm -f conftest.
$ac_objext
5592 if { (ac_try
="$ac_compile"
5594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compile") 2>conftest.er1
5600 grep -v '^ *+' conftest.er1 >conftest.err
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && {
5605 test -z "$ac_cxx_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest.$ac_objext; then
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5620 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5621 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5622 GXX=`test $ac_compiler_gnu = yes && echo yes`
5623 ac_test_CXXFLAGS=${CXXFLAGS+set}
5624 ac_save_CXXFLAGS=$CXXFLAGS
5625 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5626 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5627 if test "${ac_cv_prog_cxx_g+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5631 ac_cxx_werror_flag=yes
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5649 rm -f conftest.$ac_objext
5650 if { (ac_try="$ac_compile"
5652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5653 *) ac_try_echo
=$ac_try;;
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compile") 2>conftest.er1
5658 grep -v '^ *+' conftest.er1
>conftest.err
5660 cat conftest.err
>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } && {
5663 test -z "$ac_cxx_werror_flag" ||
5664 test ! -s conftest.err
5665 } && test -s conftest.
$ac_objext; then
5666 ac_cv_prog_cxx_g
=yes
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.
$ac_ext >&5
5672 cat >conftest.
$ac_ext <<_ACEOF
5675 cat confdefs.h
>>conftest.
$ac_ext
5676 cat >>conftest.
$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5687 rm -f conftest.
$ac_objext
5688 if { (ac_try
="$ac_compile"
5690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_compile") 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_cxx_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest.$ac_objext; then
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5709 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5711 cat >conftest.$ac_ext <<_ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5730 *) ac_try_echo
=$ac_try;;
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_compile") 2>conftest.er1
5735 grep -v '^ *+' conftest.er1
>conftest.err
5737 cat conftest.err
>&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_cxx_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest.
$ac_objext; then
5743 ac_cv_prog_cxx_g
=yes
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.
$ac_ext >&5
5751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5758 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5760 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5761 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5762 if test "$ac_test_CXXFLAGS" = set; then
5763 CXXFLAGS
=$ac_save_CXXFLAGS
5764 elif test $ac_cv_prog_cxx_g = yes; then
5765 if test "$GXX" = yes; then
5771 if test "$GXX" = yes; then
5778 ac_cpp
='$CXXCPP $CPPFLAGS'
5779 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5783 depcc
="$CXX" am_compiler_list
=
5785 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5786 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5787 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5791 # We make a subdir and do the tests there. Otherwise we can end up
5792 # making bogus files that we don't know about and never remove. For
5793 # instance it was reported that on HP-UX the gcc test will end up
5794 # making a dummy file named `D' -- because `-MD' means `put the output
5797 # Copy depcomp to subdir because otherwise we won't find it if we're
5798 # using a relative directory.
5799 cp "$am_depcomp" conftest.dir
5801 # We will build objects and dependencies in a subdirectory because
5802 # it helps to detect inapplicable dependency modes. For instance
5803 # both Tru64's cc and ICC support -MD to output dependencies as a
5804 # side effect of compilation, but ICC will put the dependencies in
5805 # the current directory while Tru64 will put them in the object
5809 am_cv_CXX_dependencies_compiler_type
=none
5810 if test "$am_compiler_list" = ""; then
5811 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5813 for depmode
in $am_compiler_list; do
5814 # Setup a source with many dependencies, because some compilers
5815 # like to wrap large dependency lists on column 80 (with \), and
5816 # we should not choose a depcomp mode which is confused by this.
5818 # We need to recreate these files for each test, as the compiler may
5819 # overwrite some of them when testing with obscure command lines.
5820 # This happens at least with the AIX C compiler.
5822 for i
in 1 2 3 4 5 6; do
5823 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5824 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5825 # Solaris 8's {/usr,}/bin/sh.
5826 touch sub
/conftst
$i.h
5828 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5832 # after this tag, mechanisms are not by side-effect, so they'll
5833 # only be used when explicitly requested
5834 if test "x$enable_dependency_tracking" = xyes
; then
5842 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5843 # mode. It turns out that the SunPro C++ compiler does not properly
5844 # handle `-M -o', and we need to detect this.
5845 if depmode
=$depmode \
5846 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5847 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5848 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5849 >/dev
/null
2>conftest.err
&&
5850 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5851 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5852 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5853 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5854 # icc doesn't choke on unknown options, it will just issue warnings
5855 # or remarks (even with -Werror). So we grep stderr for any message
5856 # that says an option was ignored or not supported.
5857 # When given -MP, icc 7.0 and 7.1 complain thusly:
5858 # icc: Command line warning: ignoring option '-M'; no argument required
5859 # The diagnosis changed in icc 8.0:
5860 # icc: Command line remark: option '-MP' not supported
5861 if (grep 'ignoring option' conftest.err ||
5862 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5863 am_cv_CXX_dependencies_compiler_type
=$depmode
5872 am_cv_CXX_dependencies_compiler_type
=none
5876 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5877 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5878 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5881 test "x$enable_dependency_tracking" != xno \
5882 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5883 am__fastdepCXX_TRUE
=
5884 am__fastdepCXX_FALSE
='#'
5886 am__fastdepCXX_TRUE
='#'
5887 am__fastdepCXX_FALSE
=
5893 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5894 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5895 (test "X$CXX" != "Xg++"))) ; then
5897 ac_cpp
='$CXXCPP $CPPFLAGS'
5898 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5901 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5902 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5903 if test -z "$CXXCPP"; then
5904 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 # Double quotes because CXXCPP needs to be expanded
5908 for CXXCPP
in "$CXX -E" "/lib/cpp"
5911 for ac_cxx_preproc_warn_flag
in '' yes
5913 # Use a header file that comes with gcc, so configuring glibc
5914 # with a fresh cross-compiler works.
5915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5916 # <limits.h> exists even on freestanding compilers.
5917 # On the NeXT, cc -E runs the code through the compiler's parser,
5918 # not just through cpp. "Syntax error" is here to catch this case.
5919 cat >conftest.
$ac_ext <<_ACEOF
5922 cat confdefs.h
>>conftest.
$ac_ext
5923 cat >>conftest.
$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5926 # include <limits.h>
5928 # include <assert.h>
5932 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } >/dev/null && {
5945 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5946 test ! -s conftest.err
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 # Broken: fails on valid input.
5957 rm -f conftest.err conftest.$ac_ext
5959 # OK, works on sane cases. Now check whether nonexistent headers
5960 # can be detected and how.
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 #include <ac_nonexistent.h>
5969 if { (ac_try="$ac_cpp conftest.$ac_ext"
5971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5972 *) ac_try_echo
=$ac_try;;
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5977 grep -v '^ *+' conftest.er1
>conftest.err
5979 cat conftest.err
>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } >/dev
/null
&& {
5982 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5983 test ! -s conftest.err
5985 # Broken: success on invalid input.
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.
$ac_ext >&5
5991 # Passes both tests.
5996 rm -f conftest.err conftest.
$ac_ext
5999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6000 rm -f conftest.err conftest.
$ac_ext
6001 if $ac_preproc_ok; then
6006 ac_cv_prog_CXXCPP
=$CXXCPP
6009 CXXCPP
=$ac_cv_prog_CXXCPP
6011 ac_cv_prog_CXXCPP
=$CXXCPP
6013 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6014 echo "${ECHO_T}$CXXCPP" >&6; }
6016 for ac_cxx_preproc_warn_flag
in '' yes
6018 # Use a header file that comes with gcc, so configuring glibc
6019 # with a fresh cross-compiler works.
6020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6021 # <limits.h> exists even on freestanding compilers.
6022 # On the NeXT, cc -E runs the code through the compiler's parser,
6023 # not just through cpp. "Syntax error" is here to catch this case.
6024 cat >conftest.
$ac_ext <<_ACEOF
6027 cat confdefs.h
>>conftest.
$ac_ext
6028 cat >>conftest.
$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6031 # include <limits.h>
6033 # include <assert.h>
6037 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6045 grep -v '^ *+' conftest.er1 >conftest.err
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } >/dev/null && {
6050 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6051 test ! -s conftest.err
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6058 # Broken: fails on valid input.
6062 rm -f conftest.err conftest.$ac_ext
6064 # OK, works on sane cases. Now check whether nonexistent headers
6065 # can be detected and how.
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 #include <ac_nonexistent.h>
6074 if { (ac_try="$ac_cpp conftest.$ac_ext"
6076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6077 *) ac_try_echo
=$ac_try;;
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6082 grep -v '^ *+' conftest.er1
>conftest.err
6084 cat conftest.err
>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } >/dev
/null
&& {
6087 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6088 test ! -s conftest.err
6090 # Broken: success on invalid input.
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.
$ac_ext >&5
6096 # Passes both tests.
6101 rm -f conftest.err conftest.
$ac_ext
6104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6105 rm -f conftest.err conftest.
$ac_ext
6106 if $ac_preproc_ok; then
6109 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6110 See \`config.log' for more details." >&5
6111 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6112 See \`config.log' for more details." >&2;}
6113 { (exit 1); exit 1; }; }
6117 ac_cpp
='$CXXCPP $CPPFLAGS'
6118 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6119 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6120 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6126 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6127 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
6129 if test -n "$ac_tool_prefix"; then
6130 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
6132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6133 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_prog_F77+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 if test -n "$F77"; then
6140 ac_cv_prog_F77
="$F77" # Let the user override the test.
6142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6146 test -z "$as_dir" && as_dir
=.
6147 for ac_exec_ext
in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 if test -n "$F77"; then
6161 { echo "$as_me:$LINENO: result: $F77" >&5
6162 echo "${ECHO_T}$F77" >&6; }
6164 { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6169 test -n "$F77" && break
6172 if test -z "$F77"; then
6174 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
6176 # Extract the first word of "$ac_prog", so it can be a program name with args.
6177 set dummy
$ac_prog; ac_word
=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 if test -n "$ac_ct_F77"; then
6184 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
6186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir
=.
6191 for ac_exec_ext
in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_F77
="$ac_prog"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
6204 if test -n "$ac_ct_F77"; then
6205 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6206 echo "${ECHO_T}$ac_ct_F77" >&6; }
6208 { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6213 test -n "$ac_ct_F77" && break
6216 if test "x$ac_ct_F77" = x
; then
6219 case $cross_compiling:$ac_tool_warned in
6221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet. If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&5
6224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6225 whose name does not start with the host triplet. If you think this
6226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6227 ac_tool_warned
=yes ;;
6234 # Provide some information about the compiler.
6235 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6236 ac_compiler
=`set X $ac_compile; echo $2`
6237 { (ac_try
="$ac_compiler --version >&5"
6239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_compiler --version >&5") 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }
6247 { (ac_try="$ac_compiler -v >&5"
6249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6250 *) ac_try_echo
=$ac_try;;
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_compiler -v >&5") 2>&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }
6257 { (ac_try
="$ac_compiler -V >&5"
6259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compiler -V >&5") 2>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }
6269 # If we don't use `.F
' as extension, the preprocessor is not run on the
6270 # input file. (Note that this only needs to work for GNU compilers.)
6273 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6274 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6275 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 cat >conftest.$ac_ext <<_ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (ac_try="$ac_compile"
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_compile") 2>conftest.er1
6295 grep -v '^
*+' conftest.er1 >conftest.err
6297 cat conftest.err >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && {
6300 test -z "$ac_f77_werror_flag" ||
6301 test ! -s conftest.err
6302 } && test -s conftest.$ac_objext; then
6305 echo "$as_me: failed program was:" >&5
6306 sed 's
/^
/|
/' conftest.$ac_ext >&5
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6315 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6316 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6318 ac_test_FFLAGS=${FFLAGS+set}
6319 ac_save_FFLAGS=$FFLAGS
6321 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6322 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6323 if test "${ac_cv_prog_f77_g+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 cat >conftest.$ac_ext <<_ACEOF
6332 rm -f conftest.$ac_objext
6333 if { (ac_try="$ac_compile"
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_compile") 2>conftest.er1
6341 grep -v '^
*+' conftest.er1 >conftest.err
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } && {
6346 test -z "$ac_f77_werror_flag" ||
6347 test ! -s conftest.err
6348 } && test -s conftest.$ac_objext; then
6349 ac_cv_prog_f77_g=yes
6351 echo "$as_me: failed program was:" >&5
6352 sed 's
/^
/|
/' conftest.$ac_ext >&5
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6361 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6362 if test "$ac_test_FFLAGS" = set; then
6363 FFLAGS=$ac_save_FFLAGS
6364 elif test $ac_cv_prog_f77_g = yes; then
6365 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6371 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6378 G77=`test $ac_compiler_gnu = yes && echo yes`
6380 ac_cpp='$CPP $CPPFLAGS'
6381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6382 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6389 # find the maximum length of command line arguments
6390 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6391 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6392 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 # On DJGPP, this test can blow up pretty badly due to problems in libc
6401 # (any single argument exceeding 2000 bytes causes a buffer overrun
6402 # during glob expansion). Even if it were fixed, the result of this
6403 # check would be larger than it should be.
6404 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6408 # Under GNU Hurd, this test is not required because there is
6409 # no limit to the length of command line arguments.
6410 # Libtool will interpret -1 as no limit whatsoever
6411 lt_cv_sys_max_cmd_len
=-1;
6415 # On Win9x/ME, this test blows up -- it succeeds, but takes
6416 # about 5 minutes as the teststring grows exponentially.
6417 # Worse, since 9x/ME are not pre-emptively multitasking,
6418 # you end up with a "frozen" computer, even though with patience
6419 # the test eventually succeeds (with a max line length of 256k).
6420 # Instead, let's just punt: use the minimum linelength reported by
6421 # all of the supported platforms: 8192 (on NT/2K/XP).
6422 lt_cv_sys_max_cmd_len
=8192;
6426 # On AmigaOS with pdksh, this test takes hours, literally.
6427 # So we just punt and use a minimum line length of 8192.
6428 lt_cv_sys_max_cmd_len
=8192;
6431 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6432 # This has been around since 386BSD, at least. Likely further.
6433 if test -x /sbin
/sysctl
; then
6434 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6435 elif test -x /usr
/sbin
/sysctl
; then
6436 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6438 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6440 # And add a safety zone
6441 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6442 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6446 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6447 lt_cv_sys_max_cmd_len
=196608
6451 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6452 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6453 # nice to cause kernel panics so lets avoid the loop below.
6454 # First set a reasonable default.
6455 lt_cv_sys_max_cmd_len
=16384
6457 if test -x /sbin
/sysconfig
; then
6458 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6459 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6464 lt_cv_sys_max_cmd_len
=102400
6466 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6467 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6468 if test -n "$kargmax"; then
6469 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6471 lt_cv_sys_max_cmd_len
=32768
6475 # If test is not a shell built-in, we'll probably end up computing a
6476 # maximum length that is only half of the actual maximum length, but
6478 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6479 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6480 = "XX$teststring") >/dev
/null
2>&1 &&
6481 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6482 lt_cv_sys_max_cmd_len
=$new_result &&
6483 test $i != 17 # 1/2 MB should be enough
6486 teststring
=$teststring$teststring
6489 # Add a significant safety factor because C++ compilers can tack on massive
6490 # amounts of additional arguments before passing them to the linker.
6491 # It appears as though 1/2 is a usable value.
6492 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6498 if test -n $lt_cv_sys_max_cmd_len ; then
6499 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6500 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6502 { echo "$as_me:$LINENO: result: none" >&5
6503 echo "${ECHO_T}none" >&6; }
6509 # Check for command to grab the raw symbol name followed by C symbol from nm.
6510 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6511 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6512 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 # These are sane defaults that work on at least a few old systems.
6517 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6519 # Character class describing NM global symbol codes.
6520 symcode
='[BCDEGRST]'
6522 # Regexp to match symbols that can be accessed directly from C.
6523 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6525 # Transform an extracted symbol line into a proper C declaration
6526 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6528 # Transform an extracted symbol line into symbol name and symbol address
6529 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'"
6531 # Define system-specific variables.
6536 cygwin
* | mingw
* | pw32
*)
6537 symcode
='[ABCDGISTW]'
6539 hpux
*) # Its linker distinguishes data from code symbols
6540 if test "$host_cpu" = ia64
; then
6541 symcode
='[ABCDEGRST]'
6543 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6544 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'"
6546 linux
* | k
*bsd
*-gnu)
6547 if test "$host_cpu" = ia64
; then
6548 symcode
='[ABCDGIRSTW]'
6549 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6550 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'"
6554 symcode
='[BCDEGRST]'
6557 symcode
='[BCDEGQRST]'
6568 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6576 # Handle CRLF in mingw tool chain
6580 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6584 # If we're using GNU nm, then use its standard symbol codes.
6585 case `$NM -V 2>&1` in
6586 *GNU
* |
*'with BFD'*)
6587 symcode
='[ABCDGIRSTW]' ;;
6590 # Try without a prefix undercore, then with it.
6591 for ac_symprfx
in "" "_"; do
6593 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6594 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6596 # Write the raw and C identifiers.
6597 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6599 # Check to see that the pipe works correctly.
6603 cat > conftest.
$ac_ext <<EOF
6608 void nm_test_func(){}
6612 int main(){nm_test_var='a';nm_test_func();return(0);}
6615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6616 (eval $ac_compile) 2>&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; then
6620 # Now try to grab the symbols.
6622 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6623 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } && test -s "$nlist"; then
6627 # Try sorting and uniquifying the output.
6628 if sort "$nlist" |
uniq > "$nlist"T
; then
6629 mv -f "$nlist"T
"$nlist"
6634 # Make sure that we snagged all the symbols we need.
6635 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6636 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6637 cat <<EOF > conftest.$ac_ext
6643 # Now generate the symbol file.
6644 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6646 cat <<EOF >> conftest.$ac_ext
6647 #if defined (__STDC__) && __STDC__
6648 # define lt_ptr_t void *
6650 # define lt_ptr_t char *
6654 /* The mapping between symbol names and symbols. */
6659 lt_preloaded_symbols[] =
6662 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6663 cat <<\EOF
>> conftest.
$ac_ext
6671 # Now try linking the two files.
6672 mv conftest.
$ac_objext conftstm.
$ac_objext
6673 lt_save_LIBS
="$LIBS"
6674 lt_save_CFLAGS
="$CFLAGS"
6675 LIBS
="conftstm.$ac_objext"
6676 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6678 (eval $ac_link) 2>&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6684 LIBS
="$lt_save_LIBS"
6685 CFLAGS
="$lt_save_CFLAGS"
6687 echo "cannot find nm_test_func in $nlist" >&5
6690 echo "cannot find nm_test_var in $nlist" >&5
6693 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6696 echo "$progname: failed program was:" >&5
6697 cat conftest.
$ac_ext >&5
6699 rm -f conftest
* conftst
*
6701 # Do not use the global_symbol_pipe unless it works.
6702 if test "$pipe_works" = yes; then
6705 lt_cv_sys_global_symbol_pipe
=
6711 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6712 lt_cv_sys_global_symbol_to_cdecl
=
6714 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6715 { echo "$as_me:$LINENO: result: failed" >&5
6716 echo "${ECHO_T}failed" >&6; }
6718 { echo "$as_me:$LINENO: result: ok" >&5
6719 echo "${ECHO_T}ok" >&6; }
6722 { echo "$as_me:$LINENO: checking for objdir" >&5
6723 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6724 if test "${lt_cv_objdir+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 rm -f .libs
2>/dev
/null
6728 mkdir .libs
2>/dev
/null
6729 if test -d .libs
; then
6732 # MS-DOS does not allow filenames that begin with a dot.
6735 rmdir .libs
2>/dev
/null
6737 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6738 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6739 objdir
=$lt_cv_objdir
6747 # AIX sometimes has problems with the GCC collect2 program. For some
6748 # reason, if we set the COLLECT_NAMES environment variable, the problems
6749 # vanish in a puff of smoke.
6750 if test "X${COLLECT_NAMES+set}" != Xset
; then
6752 export COLLECT_NAMES
6757 # Sed substitution that helps us do robust quoting. It backslashifies
6758 # metacharacters that are still active within double-quoted strings.
6759 Xsed
='sed -e 1s/^X//'
6760 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6762 # Same as above, but do not quote variable references.
6763 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6765 # Sed substitution to delay expansion of an escaped shell variable in a
6766 # double_quote_subst'ed string.
6767 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6769 # Sed substitution to avoid accidental globbing in evaled expressions
6770 no_glob_subst
='s/\*/\\\*/g'
6776 default_ofile
=libtool
6777 can_build_shared
=yes
6779 # All known linkers require a `.a' archive for static linking (except MSVC,
6780 # which needs '.lib').
6782 ltmain
="$ac_aux_dir/ltmain.sh"
6783 ofile
="$default_ofile"
6784 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6788 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_prog_AR+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 if test -n "$AR"; then
6795 ac_cv_prog_AR
="$AR" # Let the user override the test.
6797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir
=.
6802 for ac_exec_ext
in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 if test -n "$AR"; then
6816 { echo "$as_me:$LINENO: result: $AR" >&5
6817 echo "${ECHO_T}$AR" >&6; }
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6825 if test -z "$ac_cv_prog_AR"; then
6827 # Extract the first word of "ar", so it can be a program name with args.
6828 set dummy
ar; ac_word
=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 if test -n "$ac_ct_AR"; then
6835 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir
=.
6842 for ac_exec_ext
in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_ac_ct_AR
="ar"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6855 if test -n "$ac_ct_AR"; then
6856 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6857 echo "${ECHO_T}$ac_ct_AR" >&6; }
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6863 if test "x$ac_ct_AR" = x
; then
6866 case $cross_compiling:$ac_tool_warned in
6868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6869 whose name does not start with the host triplet. If you think this
6870 configuration is useful to you, please write to autoconf@gnu.org." >&5
6871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6872 whose name does not start with the host triplet. If you think this
6873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6874 ac_tool_warned
=yes ;;
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6884 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887 if test "${ac_cv_prog_RANLIB+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 if test -n "$RANLIB"; then
6891 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir
=.
6898 for ac_exec_ext
in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 RANLIB
=$ac_cv_prog_RANLIB
6911 if test -n "$RANLIB"; then
6912 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6913 echo "${ECHO_T}$RANLIB" >&6; }
6915 { echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6; }
6921 if test -z "$ac_cv_prog_RANLIB"; then
6922 ac_ct_RANLIB
=$RANLIB
6923 # Extract the first word of "ranlib", so it can be a program name with args.
6924 set dummy ranlib
; ac_word
=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 if test -n "$ac_ct_RANLIB"; then
6931 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir
=.
6938 for ac_exec_ext
in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6951 if test -n "$ac_ct_RANLIB"; then
6952 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6953 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6959 if test "x$ac_ct_RANLIB" = x
; then
6962 case $cross_compiling:$ac_tool_warned in
6964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6965 whose name does not start with the host triplet. If you think this
6966 configuration is useful to you, please write to autoconf@gnu.org." >&5
6967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6968 whose name does not start with the host triplet. If you think this
6969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6970 ac_tool_warned
=yes ;;
6972 RANLIB
=$ac_ct_RANLIB
6975 RANLIB
="$ac_cv_prog_RANLIB"
6978 if test -n "$ac_tool_prefix"; then
6979 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6980 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_prog_STRIP+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 if test -n "$STRIP"; then
6987 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir
=.
6994 for ac_exec_ext
in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 STRIP
=$ac_cv_prog_STRIP
7007 if test -n "$STRIP"; then
7008 { echo "$as_me:$LINENO: result: $STRIP" >&5
7009 echo "${ECHO_T}$STRIP" >&6; }
7011 { echo "$as_me:$LINENO: result: no" >&5
7012 echo "${ECHO_T}no" >&6; }
7017 if test -z "$ac_cv_prog_STRIP"; then
7019 # Extract the first word of "strip", so it can be a program name with args.
7020 set dummy strip
; ac_word
=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 if test -n "$ac_ct_STRIP"; then
7027 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir
=.
7034 for ac_exec_ext
in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_prog_ac_ct_STRIP
="strip"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7047 if test -n "$ac_ct_STRIP"; then
7048 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7049 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7055 if test "x$ac_ct_STRIP" = x
; then
7058 case $cross_compiling:$ac_tool_warned in
7060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7061 whose name does not start with the host triplet. If you think this
7062 configuration is useful to you, please write to autoconf@gnu.org." >&5
7063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7064 whose name does not start with the host triplet. If you think this
7065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7066 ac_tool_warned
=yes ;;
7071 STRIP
="$ac_cv_prog_STRIP"
7076 old_CFLAGS
="$CFLAGS"
7078 # Set sane defaults for various variables
7079 test -z "$AR" && AR
=ar
7080 test -z "$AR_FLAGS" && AR_FLAGS
=cru
7081 test -z "$AS" && AS
=as
7082 test -z "$CC" && CC
=cc
7083 test -z "$LTCC" && LTCC
=$CC
7084 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7085 test -z "$DLLTOOL" && DLLTOOL
=dlltool
7086 test -z "$LD" && LD
=ld
7087 test -z "$LN_S" && LN_S
="ln -s"
7088 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7089 test -z "$NM" && NM
=nm
7090 test -z "$SED" && SED
=sed
7091 test -z "$OBJDUMP" && OBJDUMP
=objdump
7092 test -z "$RANLIB" && RANLIB
=:
7093 test -z "$STRIP" && STRIP
=:
7094 test -z "$ac_objext" && ac_objext
=o
7096 # Determine commands to create old-style static archives.
7097 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7098 old_postinstall_cmds
='chmod 644 $oldlib'
7099 old_postuninstall_cmds
=
7101 if test -n "$RANLIB"; then
7104 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7107 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
7110 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
7113 for cc_temp
in $compiler""; do
7115 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7116 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7121 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7124 # Only perform the check for file, if the check method requires it
7125 case $deplibs_check_method in
7127 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7128 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7129 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7130 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7138 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7139 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7140 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7141 for ac_dir
in $ac_dummy; do
7143 test -z "$ac_dir" && ac_dir
=.
7144 if test -f $ac_dir/${ac_tool_prefix}file; then
7145 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7146 if test -n "$file_magic_test_file"; then
7147 case $deplibs_check_method in
7149 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7150 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7151 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7152 $EGREP "$file_magic_regex" > /dev
/null
; then
7157 *** Warning: the command libtool uses to detect shared libraries,
7158 *** $file_magic_cmd, produces output that libtool cannot recognize.
7159 *** The result is that libtool may fail to recognize shared libraries
7160 *** as such. This will affect the creation of libtool libraries that
7161 *** depend on shared libraries, but programs linked with such libtool
7162 *** libraries will work regardless of this problem. Nevertheless, you
7163 *** may want to report the problem to your system manager and/or to
7164 *** bug-libtool@gnu.org
7174 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7179 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7180 if test -n "$MAGIC_CMD"; then
7181 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7182 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7184 { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7188 if test -z "$lt_cv_path_MAGIC_CMD"; then
7189 if test -n "$ac_tool_prefix"; then
7190 { echo "$as_me:$LINENO: checking for file" >&5
7191 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7192 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7200 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7201 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7202 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7203 for ac_dir
in $ac_dummy; do
7205 test -z "$ac_dir" && ac_dir
=.
7206 if test -f $ac_dir/file; then
7207 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7208 if test -n "$file_magic_test_file"; then
7209 case $deplibs_check_method in
7211 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7212 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7213 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7214 $EGREP "$file_magic_regex" > /dev
/null
; then
7219 *** Warning: the command libtool uses to detect shared libraries,
7220 *** $file_magic_cmd, produces output that libtool cannot recognize.
7221 *** The result is that libtool may fail to recognize shared libraries
7222 *** as such. This will affect the creation of libtool libraries that
7223 *** depend on shared libraries, but programs linked with such libtool
7224 *** libraries will work regardless of this problem. Nevertheless, you
7225 *** may want to report the problem to your system manager and/or to
7226 *** bug-libtool@gnu.org
7236 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7241 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7242 if test -n "$MAGIC_CMD"; then
7243 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7244 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7262 # Check whether --enable-libtool-lock was given.
7263 if test "${enable_libtool_lock+set}" = set; then
7264 enableval
=$enable_libtool_lock;
7267 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7270 # Check whether --with-pic was given.
7271 if test "${with_pic+set}" = set; then
7272 withval
=$with_pic; pic_mode
="$withval"
7277 test -z "$pic_mode" && pic_mode
=default
7279 # Use C for the default configuration in the libtool script
7283 ac_cpp
='$CPP $CPPFLAGS'
7284 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7289 # Source file extension for C test sources.
7292 # Object file extension for compiled C test sources.
7296 # Code to be used in simple compile tests
7297 lt_simple_compile_test_code
="int some_variable = 0;\n"
7299 # Code to be used in simple link tests
7300 lt_simple_link_test_code
='int main(){return(0);}\n'
7303 # If no C compiler was specified, use CC.
7306 # If no C compiler flags were specified, use CFLAGS.
7307 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7309 # Allow CC to be a program name with arguments.
7313 # save warnings/boilerplate of simple test code
7314 ac_outfile
=conftest.
$ac_objext
7315 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
7316 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7317 _lt_compiler_boilerplate
=`cat conftest.err`
7320 ac_outfile
=conftest.
$ac_objext
7321 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
7322 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7323 _lt_linker_boilerplate
=`cat conftest.err`
7328 lt_prog_compiler_no_builtin_flag
=
7330 if test "$GCC" = yes; then
7331 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7334 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7335 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7336 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 lt_cv_prog_compiler_rtti_exceptions
=no
7340 ac_outfile
=conftest.
$ac_objext
7341 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7342 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7343 # Insert the option either (1) after the last *FLAGS variable, or
7344 # (2) before a word containing "conftest.", or (3) at the end.
7345 # Note that $ac_compile itself does not contain backslashes and begins
7346 # with a dollar sign (not a hyphen), so the echo should work correctly.
7347 # The option is referenced via a variable to avoid confusing sed.
7348 lt_compile
=`echo "$ac_compile" | $SED \
7349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7351 -e 's:$: $lt_compiler_flag:'`
7352 (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
7353 (eval "$lt_compile" 2>conftest.err
)
7355 cat conftest.err
>&5
7356 echo "$as_me:7356: \$? = $ac_status" >&5
7357 if (exit $ac_status) && test -s "$ac_outfile"; then
7358 # The compiler can only warn and ignore the option if not recognized
7359 # So say no if there are warnings other than the usual output.
7360 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7361 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7362 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7363 lt_cv_prog_compiler_rtti_exceptions
=yes
7369 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7370 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7372 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7373 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7380 lt_prog_compiler_wl
=
7381 lt_prog_compiler_pic
=
7382 lt_prog_compiler_static
=
7384 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7387 if test "$GCC" = yes; then
7388 lt_prog_compiler_wl
='-Wl,'
7389 lt_prog_compiler_static
='-static'
7393 # All AIX code is PIC.
7394 if test "$host_cpu" = ia64
; then
7395 # AIX 5 now supports IA64 processor
7396 lt_prog_compiler_static
='-Bstatic'
7401 # FIXME: we need at least 68020 code to build shared libraries, but
7402 # adding the `-m68020' flag to GCC prevents building anything better,
7404 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7407 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7408 # PIC is the default for these OSes.
7411 mingw
* | pw32
* | os2
*)
7412 # This hack is so that the source file can tell whether it is being
7413 # built for inclusion in a dll (and should export symbols for example).
7414 lt_prog_compiler_pic
='-DDLL_EXPORT'
7417 darwin
* | rhapsody
*)
7418 # PIC is the default on this platform
7419 # Common symbols not allowed in MH_DYLIB files
7420 lt_prog_compiler_pic
='-fno-common'
7424 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7425 # Instead, we relocate shared libraries at runtime.
7429 # Just because we use GCC doesn't mean we suddenly get shared libraries
7430 # on systems that don't support them.
7431 lt_prog_compiler_can_build_shared
=no
7436 if test -d /usr
/nec
; then
7437 lt_prog_compiler_pic
=-Kconform_pic
7442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7449 lt_prog_compiler_pic
='-fPIC'
7455 lt_prog_compiler_pic
='-fPIC'
7459 # PORTME Check for flag to pass linker flags through the system compiler.
7462 lt_prog_compiler_wl
='-Wl,'
7463 if test "$host_cpu" = ia64
; then
7464 # AIX 5 now supports IA64 processor
7465 lt_prog_compiler_static
='-Bstatic'
7467 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7471 # PIC is the default on this platform
7472 # Common symbols not allowed in MH_DYLIB files
7473 case $cc_basename in
7475 lt_prog_compiler_pic
='-qnocommon'
7476 lt_prog_compiler_wl
='-Wl,'
7481 mingw
* | pw32
* | os2
*)
7482 # This hack is so that the source file can tell whether it is being
7483 # built for inclusion in a dll (and should export symbols for example).
7484 lt_prog_compiler_pic
='-DDLL_EXPORT'
7487 hpux9
* | hpux10
* | hpux11
*)
7488 lt_prog_compiler_wl
='-Wl,'
7489 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7496 lt_prog_compiler_pic
='+Z'
7499 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7500 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7503 irix5
* | irix6
* | nonstopux
*)
7504 lt_prog_compiler_wl
='-Wl,'
7505 # PIC (with -KPIC) is the default.
7506 lt_prog_compiler_static
='-non_shared'
7510 lt_prog_compiler_pic
='-KPIC'
7511 lt_prog_compiler_static
='-Bstatic'
7514 linux
* | k
*bsd
*-gnu)
7515 case $cc_basename in
7517 lt_prog_compiler_wl
='-Wl,'
7518 lt_prog_compiler_pic
='-KPIC'
7519 lt_prog_compiler_static
='-static'
7521 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7522 # Portland Group compilers (*not* the Pentium gcc compiler,
7523 # which looks to be a dead project)
7524 lt_prog_compiler_wl
='-Wl,'
7525 lt_prog_compiler_pic
='-fpic'
7526 lt_prog_compiler_static
='-Bstatic'
7529 lt_prog_compiler_wl
='-Wl,'
7530 # All Alpha code is PIC.
7531 lt_prog_compiler_static
='-non_shared'
7536 osf3
* | osf4
* | osf5
*)
7537 lt_prog_compiler_wl
='-Wl,'
7538 # All OSF/1 code is PIC.
7539 lt_prog_compiler_static
='-non_shared'
7543 lt_prog_compiler_pic
='-KPIC'
7544 lt_prog_compiler_static
='-Bstatic'
7545 case $cc_basename in
7547 lt_prog_compiler_wl
='-Qoption ld ';;
7549 lt_prog_compiler_wl
='-Wl,';;
7554 lt_prog_compiler_wl
='-Qoption ld '
7555 lt_prog_compiler_pic
='-PIC'
7556 lt_prog_compiler_static
='-Bstatic'
7559 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7560 lt_prog_compiler_wl
='-Wl,'
7561 lt_prog_compiler_pic
='-KPIC'
7562 lt_prog_compiler_static
='-Bstatic'
7566 if test -d /usr
/nec
;then
7567 lt_prog_compiler_pic
='-Kconform_pic'
7568 lt_prog_compiler_static
='-Bstatic'
7572 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7573 lt_prog_compiler_wl
='-Wl,'
7574 lt_prog_compiler_pic
='-KPIC'
7575 lt_prog_compiler_static
='-Bstatic'
7579 lt_prog_compiler_wl
='-Wl,'
7580 lt_prog_compiler_can_build_shared
=no
7584 lt_prog_compiler_pic
='-pic'
7585 lt_prog_compiler_static
='-Bstatic'
7589 lt_prog_compiler_can_build_shared
=no
7594 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7595 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7598 # Check to make sure the PIC flag actually works.
7600 if test -n "$lt_prog_compiler_pic"; then
7602 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7603 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7604 if test "${lt_prog_compiler_pic_works+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 lt_prog_compiler_pic_works
=no
7608 ac_outfile
=conftest.
$ac_objext
7609 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7610 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7611 # Insert the option either (1) after the last *FLAGS variable, or
7612 # (2) before a word containing "conftest.", or (3) at the end.
7613 # Note that $ac_compile itself does not contain backslashes and begins
7614 # with a dollar sign (not a hyphen), so the echo should work correctly.
7615 # The option is referenced via a variable to avoid confusing sed.
7616 lt_compile
=`echo "$ac_compile" | $SED \
7617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7619 -e 's:$: $lt_compiler_flag:'`
7620 (eval echo "\"\$as_me:7620: $lt_compile\"" >&5)
7621 (eval "$lt_compile" 2>conftest.err
)
7623 cat conftest.err
>&5
7624 echo "$as_me:7624: \$? = $ac_status" >&5
7625 if (exit $ac_status) && test -s "$ac_outfile"; then
7626 # The compiler can only warn and ignore the option if not recognized
7627 # So say no if there are warnings other than the usual output.
7628 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7629 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7630 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7631 lt_prog_compiler_pic_works
=yes
7637 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7638 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7640 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7641 case $lt_prog_compiler_pic in
7643 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7646 lt_prog_compiler_pic
=
7647 lt_prog_compiler_can_build_shared
=no
7652 # For platforms which do not support PIC, -DPIC is meaningless:
7654 lt_prog_compiler_pic
=
7657 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7662 # Check to make sure the static flag actually works.
7664 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7665 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7666 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7667 if test "${lt_prog_compiler_static_works+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 lt_prog_compiler_static_works
=no
7671 save_LDFLAGS
="$LDFLAGS"
7672 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7673 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
7674 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7675 # The linker can only warn and ignore the option if not recognized
7676 # So say no if there are warnings
7677 if test -s conftest.err
; then
7678 # Append any errors to the config.log.
7679 cat conftest.err
1>&5
7680 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7681 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7682 if diff conftest.exp conftest.er2
>/dev
/null
; then
7683 lt_prog_compiler_static_works
=yes
7686 lt_prog_compiler_static_works
=yes
7690 LDFLAGS
="$save_LDFLAGS"
7693 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7694 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7696 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7699 lt_prog_compiler_static
=
7703 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7704 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7705 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 lt_cv_prog_compiler_c_o
=no
7709 $rm -r conftest
2>/dev
/null
7713 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7715 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7716 # Insert the option either (1) after the last *FLAGS variable, or
7717 # (2) before a word containing "conftest.", or (3) at the end.
7718 # Note that $ac_compile itself does not contain backslashes and begins
7719 # with a dollar sign (not a hyphen), so the echo should work correctly.
7720 lt_compile
=`echo "$ac_compile" | $SED \
7721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7723 -e 's:$: $lt_compiler_flag:'`
7724 (eval echo "\"\$as_me:7724: $lt_compile\"" >&5)
7725 (eval "$lt_compile" 2>out
/conftest.err
)
7727 cat out
/conftest.err
>&5
7728 echo "$as_me:7728: \$? = $ac_status" >&5
7729 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7731 # The compiler can only warn and ignore the option if not recognized
7732 # So say no if there are warnings
7733 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7734 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7735 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7736 lt_cv_prog_compiler_c_o
=yes
7741 # SGI C++ compiler will create directory out/ii_files/ for
7742 # template instantiation
7743 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7744 $rm out
/* && rmdir out
7750 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7751 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7754 hard_links
="nottested"
7755 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7756 # do not overwrite the value of need_locks provided by the user
7757 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7758 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7761 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7763 ln conftest.a conftest.b
2>&5 || hard_links
=no
7764 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7765 { echo "$as_me:$LINENO: result: $hard_links" >&5
7766 echo "${ECHO_T}$hard_links" >&6; }
7767 if test "$hard_links" = no
; then
7768 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7769 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7776 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7777 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7780 allow_undefined_flag
=
7781 enable_shared_with_static_runtimes
=no
7783 archive_expsym_cmds
=
7784 old_archive_From_new_cmds
=
7785 old_archive_from_expsyms_cmds
=
7786 export_dynamic_flag_spec
=
7787 whole_archive_flag_spec
=
7788 thread_safe_flag_spec
=
7789 hardcode_libdir_flag_spec
=
7790 hardcode_libdir_flag_spec_ld
=
7791 hardcode_libdir_separator
=
7794 hardcode_shlibpath_var
=unsupported
7795 link_all_deplibs
=unknown
7796 hardcode_automatic
=no
7799 always_export_symbols
=no
7800 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7801 # include_expsyms should be a list of space-separated symbols to be *always*
7802 # included in the symbol list
7804 # exclude_expsyms can be an extended regexp of symbols to exclude
7805 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7806 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7807 # as well as any symbol that contains `d'.
7808 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7809 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7810 # platforms (ab)use it in PIC code, but their linkers get confused if
7811 # the symbol is explicitly referenced. Since portable code cannot
7812 # rely on this symbol name, it's probably fine to never include it in
7813 # preloaded symbol tables.
7814 extract_expsyms_cmds
=
7815 # Just being paranoid about ensuring that cc_basename is set.
7816 for cc_temp
in $compiler""; do
7818 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7819 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7824 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7827 cygwin
* | mingw
* | pw32
*)
7828 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7829 # When not using gcc, we currently assume that we are using
7830 # Microsoft Visual C++.
7831 if test "$GCC" != yes; then
7836 # we just hope/assume this is gcc and not c89 (= MSVC++)
7845 if test "$with_gnu_ld" = yes; then
7846 # If archive_cmds runs LD, not CC, wlarc should be empty
7849 # Set some defaults for GNU ld with shared library support. These
7850 # are reset later if shared libraries are not supported. Putting them
7851 # here allows them to be overridden if necessary.
7852 runpath_var
=LD_RUN_PATH
7853 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7854 export_dynamic_flag_spec
='${wl}--export-dynamic'
7855 # ancient GNU ld didn't support --whole-archive et. al.
7856 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7857 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7859 whole_archive_flag_spec
=
7861 supports_anon_versioning
=no
7862 case `$LD -v 2>/dev/null` in
7863 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7864 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7865 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7866 *\
2.11.
*) ;; # other 2.11 versions
7867 *) supports_anon_versioning
=yes ;;
7870 # See if GNU ld supports shared libraries.
7872 aix3
* | aix4
* | aix5
*)
7873 # On AIX/PPC, the GNU linker is very broken
7874 if test "$host_cpu" != ia64
; then
7878 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7879 *** to be unable to reliably create shared libraries on AIX.
7880 *** Therefore, libtool is disabling shared libraries support. If you
7881 *** really care for shared libraries, you may want to modify your PATH
7882 *** so that a non-GNU linker is found, and then restart.
7889 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)'
7890 hardcode_libdir_flag_spec
='-L$libdir'
7891 hardcode_minus_L
=yes
7893 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7894 # that the semantics of dynamic libraries on AmigaOS, at least up
7895 # to version 4, is to share data among multiple programs linked
7896 # with the same dynamic library. Since this doesn't match the
7897 # behavior of shared libraries on other platforms, we can't use
7903 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7904 allow_undefined_flag
=unsupported
7905 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7906 # support --undefined. This deserves some investigation. FIXME
7907 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7913 cygwin
* | mingw
* | pw32
*)
7914 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7915 # as there is no search path for DLLs.
7916 hardcode_libdir_flag_spec
='-L$libdir'
7917 allow_undefined_flag
=unsupported
7918 always_export_symbols
=no
7919 enable_shared_with_static_runtimes
=yes
7920 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7922 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7923 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7924 # If the export-symbols file already is a .def file (1st line
7925 # is EXPORTS), use it as is; otherwise, prepend...
7926 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7927 cp $export_symbols $output_objdir/$soname.def;
7929 echo EXPORTS > $output_objdir/$soname.def;
7930 cat $export_symbols >> $output_objdir/$soname.def;
7932 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7940 hardcode_shlibpath_var
=no
7941 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7942 export_dynamic_flag_spec
='${wl}-E'
7943 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7944 # Instead, shared libraries are loaded at an image base (0x10000000 by
7945 # default) and relocated if they conflict, which is a slow very memory
7946 # consuming and fragmenting process. To avoid this, we pick a random,
7947 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7948 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7949 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7950 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'
7953 linux
* | k
*bsd
*-gnu)
7954 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7956 case $cc_basename,$host_cpu in
7957 pgcc
*) # Portland Group C compiler
7958 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'
7959 tmp_addflag
=' $pic_flag'
7961 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7962 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'
7963 tmp_addflag
=' $pic_flag -Mnomain' ;;
7964 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7965 tmp_addflag
=' -i_dynamic' ;;
7966 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7967 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7968 ifc
* | ifort
*) # Intel Fortran compiler
7969 tmp_addflag
=' -nofor_main' ;;
7971 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7973 if test $supports_anon_versioning = yes; then
7974 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7975 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7976 $echo "local: *; };" >> $output_objdir/$libname.ver~
7977 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7985 netbsd
* | netbsdelf
*-gnu)
7986 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7987 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7990 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7991 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7996 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
8000 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8001 *** create shared libraries on Solaris systems. Therefore, libtool
8002 *** is disabling shared libraries support. We urge you to upgrade GNU
8003 *** binutils to release 2.9.1 or newer. Another option is to modify
8004 *** your PATH or compiler configuration so that the native linker is
8005 *** used, and then restart.
8008 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8009 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8010 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8016 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8017 case `$LD -v 2>&1` in
8018 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8022 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8023 *** reliably create shared libraries on SCO systems. Therefore, libtool
8024 *** is disabling shared libraries support. We urge you to upgrade GNU
8025 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8026 *** your PATH or compiler configuration so that the native linker is
8027 *** used, and then restart.
8032 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8033 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8034 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8035 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8044 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8047 hardcode_shlibpath_var
=no
8051 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8052 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8060 if test "$ld_shlibs" = no
; then
8062 hardcode_libdir_flag_spec
=
8063 export_dynamic_flag_spec
=
8064 whole_archive_flag_spec
=
8067 # PORTME fill in a description of your system's linker (not GNU ld)
8070 allow_undefined_flag
=unsupported
8071 always_export_symbols
=yes
8072 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'
8073 # Note: this linker hardcodes the directories in LIBPATH if there
8074 # are no directories specified by -L.
8075 hardcode_minus_L
=yes
8076 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8077 # Neither direct hardcoding nor static linking is supported with a
8079 hardcode_direct
=unsupported
8084 if test "$host_cpu" = ia64
; then
8085 # On IA64, the linker does run time linking by default, so we don't
8086 # have to do anything special.
8087 aix_use_runtimelinking
=no
8088 exp_sym_flag
='-Bexport'
8091 # If we're using GNU nm, then we don't want the "-C" option.
8092 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8093 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
8094 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'
8096 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'
8098 aix_use_runtimelinking
=no
8100 # Test if we are trying to use run time linking or normal
8101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8102 # need to do runtime linking.
8103 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
8104 for ld_flag
in $LDFLAGS; do
8105 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8106 aix_use_runtimelinking
=yes
8113 exp_sym_flag
='-bexport'
8114 no_entry_flag
='-bnoentry'
8117 # When large executables or shared objects are built, AIX ld can
8118 # have problems creating the table of contents. If linking a library
8119 # or program results in "error TOC overflow" add -mminimal-toc to
8120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8125 hardcode_libdir_separator
=':'
8126 link_all_deplibs
=yes
8128 if test "$GCC" = yes; then
8129 case $host_os in aix4.
[012]|aix4.
[012].
*)
8130 # We only want to do this on AIX 4.2 and lower, the check
8131 # below for broken collect2 doesn't work under 4.3+
8132 collect2name
=`${CC} -print-prog-name=collect2`
8133 if test -f "$collect2name" && \
8134 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
8136 # We have reworked collect2
8139 # We have old collect2
8140 hardcode_direct
=unsupported
8141 # It fails to find uninstalled libraries when the uninstalled
8142 # path is not listed in the libpath. Setting hardcode_minus_L
8143 # to unsupported forces relinking
8144 hardcode_minus_L
=yes
8145 hardcode_libdir_flag_spec
='-L$libdir'
8146 hardcode_libdir_separator
=
8150 shared_flag
='-shared'
8151 if test "$aix_use_runtimelinking" = yes; then
8152 shared_flag
="$shared_flag "'${wl}-G'
8156 if test "$host_cpu" = ia64
; then
8157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8158 # chokes on -Wl,-G. The following line is correct:
8161 if test "$aix_use_runtimelinking" = yes; then
8162 shared_flag
='${wl}-G'
8164 shared_flag
='${wl}-bM:SRE'
8169 # It seems that -bexpall does not export symbols beginning with
8170 # underscore (_), so it is better to generate a list of symbols to export.
8171 always_export_symbols
=yes
8172 if test "$aix_use_runtimelinking" = yes; then
8173 # Warning - without using the other runtime loading flags (-brtl),
8174 # -berok will link without error, but may produce a broken library.
8175 allow_undefined_flag
='-berok'
8176 # Determine the default libpath from the value encoded in an empty executable.
8177 cat >conftest.
$ac_ext <<_ACEOF
8180 cat confdefs.h
>>conftest.
$ac_ext
8181 cat >>conftest.
$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8192 rm -f conftest.
$ac_objext conftest
$ac_exeext
8193 if { (ac_try
="$ac_link"
8195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_link") 2>conftest.er1
8201 grep -v '^ *+' conftest.er1 >conftest.err
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest$ac_exeext &&
8209 $as_test_x conftest$ac_exeext; then
8211 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8213 # Check for a 64-bit object if we didn't find anything.
8214 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8224 conftest$ac_exeext conftest.$ac_ext
8225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8227 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8228 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"
8230 if test "$host_cpu" = ia64; then
8231 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8232 allow_undefined_flag="-z nodefs"
8233 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"
8235 # Determine the default libpath from the value encoded in an empty executable.
8236 cat >conftest.$ac_ext <<_ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (ac_try="$ac_link"
8254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8255 *) ac_try_echo
=$ac_try;;
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_link") 2>conftest.er1
8260 grep -v '^ *+' conftest.er1
>conftest.err
8262 cat conftest.err
>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && {
8265 test -z "$ac_c_werror_flag" ||
8266 test ! -s conftest.err
8267 } && test -s conftest
$ac_exeext &&
8268 $as_test_x conftest
$ac_exeext; then
8270 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8272 # Check for a 64-bit object if we didn't find anything.
8273 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.
$ac_ext >&5
8282 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8283 conftest
$ac_exeext conftest.
$ac_ext
8284 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8286 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8287 # Warning - without using the other run time loading flags,
8288 # -berok will link without error, but may produce a broken library.
8289 no_undefined_flag
=' ${wl}-bernotok'
8290 allow_undefined_flag
=' ${wl}-berok'
8291 # Exported symbols can be pulled into shared objects from archives
8292 whole_archive_flag_spec
='$convenience'
8293 archive_cmds_need_lc
=yes
8294 # This is similar to how AIX traditionally builds its shared libraries.
8295 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'
8301 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)'
8302 hardcode_libdir_flag_spec
='-L$libdir'
8303 hardcode_minus_L
=yes
8304 # see comment about different semantics on the GNU ld section
8309 export_dynamic_flag_spec
=-rdynamic
8312 cygwin
* | mingw
* | pw32
*)
8313 # When not using gcc, we currently assume that we are using
8314 # Microsoft Visual C++.
8315 # hardcode_libdir_flag_spec is actually meaningless, as there is
8316 # no search path for DLLs.
8317 hardcode_libdir_flag_spec
=' '
8318 allow_undefined_flag
=unsupported
8319 # Tell ltmain to make .lib files, not .a files.
8321 # Tell ltmain to make .dll files, not .so files.
8323 # FIXME: Setting linknames here is a bad hack.
8324 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8325 # The linker will automatically build a .lib file if we build a DLL.
8326 old_archive_From_new_cmds
='true'
8327 # FIXME: Should let the user specify the lib program.
8328 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
8329 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8330 enable_shared_with_static_runtimes
=yes
8333 darwin
* | rhapsody
*)
8335 rhapsody
* | darwin1.
[012])
8336 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8339 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8340 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8342 case ${MACOSX_DEPLOYMENT_TARGET} in
8344 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8347 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8353 archive_cmds_need_lc
=no
8355 hardcode_automatic
=yes
8356 hardcode_shlibpath_var
=unsupported
8357 whole_archive_flag_spec
=''
8358 link_all_deplibs
=yes
8359 if test "$GCC" = yes ; then
8360 output_verbose_link_cmd
='echo'
8361 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8362 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8363 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8364 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}'
8365 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}'
8367 case $cc_basename in
8369 output_verbose_link_cmd
='echo'
8370 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8371 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8372 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8373 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8374 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}'
8384 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8385 hardcode_libdir_flag_spec
='-L$libdir'
8386 hardcode_shlibpath_var
=no
8393 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8394 # support. Future versions do this automatically, but an explicit c++rt0.o
8395 # does not break anything, and helps significantly (at the cost of a little
8398 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8399 hardcode_libdir_flag_spec
='-R$libdir'
8401 hardcode_shlibpath_var
=no
8404 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8406 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8408 hardcode_minus_L
=yes
8409 hardcode_shlibpath_var
=no
8412 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8413 freebsd
* | dragonfly
*)
8414 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8415 hardcode_libdir_flag_spec
='-R$libdir'
8417 hardcode_shlibpath_var
=no
8421 if test "$GCC" = yes; then
8422 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'
8424 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'
8426 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8427 hardcode_libdir_separator
=:
8430 # hardcode_minus_L: Not really in the search PATH,
8431 # but as the default location of the library.
8432 hardcode_minus_L
=yes
8433 export_dynamic_flag_spec
='${wl}-E'
8437 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8438 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8440 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8442 if test "$with_gnu_ld" = no
; then
8443 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8444 hardcode_libdir_separator
=:
8447 export_dynamic_flag_spec
='${wl}-E'
8449 # hardcode_minus_L: Not really in the search PATH,
8450 # but as the default location of the library.
8451 hardcode_minus_L
=yes
8456 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8459 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8462 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8465 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8471 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8474 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8477 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8481 if test "$with_gnu_ld" = no
; then
8482 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8483 hardcode_libdir_separator
=:
8487 hardcode_libdir_flag_spec_ld
='+b $libdir'
8489 hardcode_shlibpath_var
=no
8493 export_dynamic_flag_spec
='${wl}-E'
8495 # hardcode_minus_L: Not really in the search PATH,
8496 # but as the default location of the library.
8497 hardcode_minus_L
=yes
8503 irix5
* | irix6
* | nonstopux
*)
8504 if test "$GCC" = yes; then
8505 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'
8507 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'
8508 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8510 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8511 hardcode_libdir_separator
=:
8512 link_all_deplibs
=yes
8515 netbsd
* | netbsdelf
*-gnu)
8516 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8517 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8519 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8521 hardcode_libdir_flag_spec
='-R$libdir'
8523 hardcode_shlibpath_var
=no
8527 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8529 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8530 hardcode_libdir_separator
=:
8531 hardcode_shlibpath_var
=no
8536 hardcode_shlibpath_var
=no
8537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8538 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8539 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8540 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8541 export_dynamic_flag_spec
='${wl}-E'
8544 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8545 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8546 hardcode_libdir_flag_spec
='-R$libdir'
8549 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8550 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8557 hardcode_libdir_flag_spec
='-L$libdir'
8558 hardcode_minus_L
=yes
8559 allow_undefined_flag
=unsupported
8560 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'
8561 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8565 if test "$GCC" = yes; then
8566 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8567 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'
8569 allow_undefined_flag
=' -expect_unresolved \*'
8570 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'
8572 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8573 hardcode_libdir_separator
=:
8576 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8577 if test "$GCC" = yes; then
8578 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8579 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'
8580 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8582 allow_undefined_flag
=' -expect_unresolved \*'
8583 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'
8584 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8585 $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'
8587 # Both c and cxx compiler support -rpath directly
8588 hardcode_libdir_flag_spec
='-rpath $libdir'
8590 hardcode_libdir_separator
=:
8594 no_undefined_flag
=' -z text'
8595 if test "$GCC" = yes; then
8597 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8598 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8599 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8602 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8603 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8604 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8606 hardcode_libdir_flag_spec
='-R$libdir'
8607 hardcode_shlibpath_var
=no
8609 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8611 # The compiler driver will combine linker options so we
8612 # cannot just pass the convience library names through
8613 # without $wl, iff we do not link with $LD.
8614 # Luckily, gcc supports the same syntax we need for Sun Studio.
8615 # Supported since Solaris 2.6 (maybe 2.5.1?)
8618 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
8620 whole_archive_flag_spec
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8623 link_all_deplibs
=yes
8627 if test "x$host_vendor" = xsequent
; then
8628 # Use $CC to link under sequent, because it throws in some extra .o
8629 # files that make .init and .fini sections work.
8630 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8632 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8634 hardcode_libdir_flag_spec
='-L$libdir'
8636 hardcode_minus_L
=yes
8637 hardcode_shlibpath_var
=no
8641 case $host_vendor in
8643 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8644 hardcode_direct
=yes # is this really true???
8647 ## LD is ld it makes a PLAMLIB
8648 ## CC just makes a GrossModule.
8649 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8650 reload_cmds
='$CC -r -o $output$reload_objs'
8654 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8658 runpath_var
='LD_RUN_PATH'
8659 hardcode_shlibpath_var
=no
8663 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_shlibpath_var
=no
8665 export_dynamic_flag_spec
='-Bexport'
8669 if test -d /usr
/nec
; then
8670 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8671 hardcode_shlibpath_var
=no
8672 runpath_var
=LD_RUN_PATH
8673 hardcode_runpath_var
=yes
8678 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
8679 no_undefined_flag
='${wl}-z,text'
8680 archive_cmds_need_lc
=no
8681 hardcode_shlibpath_var
=no
8682 runpath_var
='LD_RUN_PATH'
8684 if test "$GCC" = yes; then
8685 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8686 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8688 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8693 sysv5
* | sco3.2v5
* | sco5v6
*)
8694 # Note: We can NOT use -z defs as we might desire, because we do not
8695 # link with -lc, and that would cause any symbols used from libc to
8696 # always be unresolved, which means just about no library would
8697 # ever link correctly. If we're not using GNU ld we use -z text
8698 # though, which does catch some bad symbols but isn't as heavy-handed
8700 no_undefined_flag
='${wl}-z,text'
8701 allow_undefined_flag
='${wl}-z,nodefs'
8702 archive_cmds_need_lc
=no
8703 hardcode_shlibpath_var
=no
8704 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8705 hardcode_libdir_separator
=':'
8706 link_all_deplibs
=yes
8707 export_dynamic_flag_spec
='${wl}-Bexport'
8708 runpath_var
='LD_RUN_PATH'
8710 if test "$GCC" = yes; then
8711 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8715 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8721 hardcode_libdir_flag_spec
='-L$libdir'
8722 hardcode_shlibpath_var
=no
8731 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8732 echo "${ECHO_T}$ld_shlibs" >&6; }
8733 test "$ld_shlibs" = no
&& can_build_shared
=no
8736 # Do we need to explicitly link libc?
8738 case "x$archive_cmds_need_lc" in
8740 # Assume -lc should be added
8741 archive_cmds_need_lc
=yes
8743 if test "$enable_shared" = yes && test "$GCC" = yes; then
8744 case $archive_cmds in
8746 # FIXME: we may have to deal with multi-command sequences.
8749 # Test whether the compiler implicitly links with -lc since on some
8750 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8751 # to ld, don't add -lc before -lgcc.
8752 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8753 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8755 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } 2>conftest.err
; then
8764 libobjs
=conftest.
$ac_objext
8766 wl
=$lt_prog_compiler_wl
8767 pic_flag
=$lt_prog_compiler_pic
8773 lt_save_allow_undefined_flag
=$allow_undefined_flag
8774 allow_undefined_flag
=
8775 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8776 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }
8781 archive_cmds_need_lc
=no
8783 archive_cmds_need_lc
=yes
8785 allow_undefined_flag
=$lt_save_allow_undefined_flag
8787 cat conftest.err
1>&5
8790 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8791 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8798 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8799 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8801 libname_spec
='lib$name'
8809 shlibpath_overrides_runpath
=unknown
8811 dynamic_linker
="$host_os ld.so"
8812 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8813 if test "$GCC" = yes; then
8814 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8815 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8816 # if the path contains ";" then we assume it to be the separator
8817 # otherwise default to the standard path separator (i.e. ":") - it is
8818 # assumed that no part of a normal pathname contains ";" but that should
8819 # okay in the real world where ";" in dirpaths is itself problematic.
8820 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8822 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8825 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8827 need_lib_prefix
=unknown
8828 hardcode_into_libs
=no
8830 # when you set need_version to no, make sure it does not cause -set_version
8831 # flags to be left without arguments
8832 need_version
=unknown
8837 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8838 shlibpath_var
=LIBPATH
8840 # AIX 3 has no versioning support, so we append a major version to the name.
8841 soname_spec
='${libname}${release}${shared_ext}$major'
8848 hardcode_into_libs
=yes
8849 if test "$host_cpu" = ia64
; then
8850 # AIX 5 supports IA64
8851 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8852 shlibpath_var
=LD_LIBRARY_PATH
8854 # With GCC up to 2.95.x, collect2 would create an import file
8855 # for dependence libraries. The import file would start with
8856 # the line `#! .'. This would cause the generated library to
8857 # depend on `.', always an invalid library. This was fixed in
8858 # development snapshots of GCC prior to 3.0.
8860 aix4 | aix4.
[01] | aix4.
[01].
*)
8861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8863 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8870 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8871 # soname into executable. Probably we can add versioning support to
8872 # collect2, so additional links can be useful in future.
8873 if test "$aix_use_runtimelinking" = yes; then
8874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8875 # instead of lib<name>.a to let people know that these are not
8876 # typical AIX shared libraries.
8877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879 # We preserve .a as extension for shared libraries through AIX4.2
8880 # and later when we are not doing run time linking.
8881 library_names_spec
='${libname}${release}.a $libname.a'
8882 soname_spec
='${libname}${release}${shared_ext}$major'
8884 shlibpath_var
=LIBPATH
8889 library_names_spec
='$libname.ixlibrary $libname.a'
8890 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8891 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'
8895 library_names_spec
='${libname}${shared_ext}'
8896 dynamic_linker
="$host_os ld.so"
8897 shlibpath_var
=LIBRARY_PATH
8903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904 soname_spec
='${libname}${release}${shared_ext}$major'
8905 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8906 shlibpath_var
=LD_LIBRARY_PATH
8907 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8908 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8909 # the default ld.so.conf also contains /usr/contrib/lib and
8910 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8911 # libtool to hard-code these into programs
8914 cygwin
* | mingw
* | pw32
*)
8915 version_type
=windows
8920 case $GCC,$host_os in
8921 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8922 library_names_spec
='$libname.dll.a'
8923 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8924 postinstall_cmds
='base_file=`basename \${file}`~
8925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8926 dldir=$destdir/`dirname \$dlpath`~
8927 test -d \$dldir || mkdir -p \$dldir~
8928 $install_prog $dir/$dlname \$dldir/$dlname~
8929 chmod a+x \$dldir/$dlname'
8930 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8931 dlpath=$dir/\$dldll~
8933 shlibpath_overrides_runpath
=yes
8937 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8938 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8939 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8942 # MinGW DLLs use traditional 'lib' prefix
8943 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8944 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8945 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8946 # It is most probably a Windows format PATH printed by
8947 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8948 # path with ; separators, and with drive letters. We can handle the
8949 # drive letters (cygwin fileutils understands them), so leave them,
8950 # especially as we might pass files found there to a mingw objdump,
8951 # which wouldn't understand a cygwinified path. Ahh.
8952 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8954 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8958 # pw32 DLLs use 'pw' prefix rather than 'lib'
8959 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8965 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8968 dynamic_linker
='Win32 ld.exe'
8969 # FIXME: first we should search . and the directory the executable is in
8973 darwin
* | rhapsody
*)
8974 dynamic_linker
="$host_os dyld"
8978 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8979 soname_spec
='${libname}${release}${major}$shared_ext'
8980 shlibpath_overrides_runpath
=yes
8981 shlibpath_var
=DYLD_LIBRARY_PATH
8982 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8983 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8984 if test "$GCC" = yes; then
8985 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8987 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8989 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8997 soname_spec
='${libname}${release}${shared_ext}$major'
8998 shlibpath_var
=LD_LIBRARY_PATH
9005 freebsd
* | dragonfly
*)
9006 # DragonFly does not have aout. When/if they implement a new
9007 # versioning mechanism, adjust this.
9008 if test -x /usr
/bin
/objformat
; then
9009 objformat
=`/usr/bin/objformat`
9012 freebsd
[123]*) objformat
=aout
;;
9016 version_type
=freebsd-
$objformat
9017 case $version_type in
9019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9024 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9028 shlibpath_var
=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath
=yes
9033 freebsd3.
[01]* | freebsdelf3.
[01]*)
9034 shlibpath_overrides_runpath
=yes
9035 hardcode_into_libs
=yes
9037 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9038 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9039 shlibpath_overrides_runpath
=no
9040 hardcode_into_libs
=yes
9042 freebsd
*) # from 4.6 on
9043 shlibpath_overrides_runpath
=yes
9044 hardcode_into_libs
=yes
9053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9054 soname_spec
='${libname}${release}${shared_ext}$major'
9055 shlibpath_var
=LD_LIBRARY_PATH
9056 hardcode_into_libs
=yes
9059 hpux9
* | hpux10
* | hpux11
*)
9060 # Give a soname corresponding to the major version so that dld.sl refuses to
9061 # link against other versions.
9068 hardcode_into_libs
=yes
9069 dynamic_linker
="$host_os dld.so"
9070 shlibpath_var
=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9072 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec
='${libname}${release}${shared_ext}$major'
9074 if test "X$HPUX_IA64_MODE" = X32
; then
9075 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9077 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9079 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9083 hardcode_into_libs
=yes
9084 dynamic_linker
="$host_os dld.sl"
9085 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9086 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088 soname_spec
='${libname}${release}${shared_ext}$major'
9089 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9090 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9094 dynamic_linker
="$host_os dld.sl"
9095 shlibpath_var
=SHLIB_PATH
9096 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9097 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec
='${libname}${release}${shared_ext}$major'
9101 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9102 postinstall_cmds
='chmod 555 $lib'
9109 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9110 soname_spec
='${libname}${release}${shared_ext}$major'
9111 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9112 shlibpath_var
=LD_LIBRARY_PATH
9113 shlibpath_overrides_runpath
=no
9114 hardcode_into_libs
=yes
9117 irix5
* | irix6
* | nonstopux
*)
9119 nonstopux
*) version_type
=nonstopux
;;
9121 if test "$lt_cv_prog_gnu_ld" = yes; then
9129 soname_spec
='${libname}${release}${shared_ext}$major'
9130 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9132 irix5
* | nonstopux
*)
9136 case $LD in # libtool.m4 will add one of these switches to LD
9137 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9138 libsuff
= shlibsuff
= libmagic
=32-bit;;
9139 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9140 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9141 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9142 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9143 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9147 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9148 shlibpath_overrides_runpath
=no
9149 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9150 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9151 hardcode_into_libs
=yes
9154 # No shared lib support for Linux oldld, aout, or coff.
9155 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9159 # This must be Linux ELF.
9160 linux
* | k
*bsd
*-gnu)
9164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 soname_spec
='${libname}${release}${shared_ext}$major'
9166 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9167 shlibpath_var
=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath
=no
9169 # This implies no fast_install, which is unacceptable.
9170 # Some rework will be needed to allow for fast_install
9171 # before this can be enabled.
9172 hardcode_into_libs
=yes
9174 # Append ld.so.conf contents to the search path
9175 if test -f /etc
/ld.so.conf
; then
9176 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9177 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
9180 # We used to test for /lib/ld.so.1 and disable shared libraries on
9181 # powerpc, because MkLinux only supported shared libraries with the
9182 # GNU dynamic linker. Since this was broken with cross compilers,
9183 # most powerpc-linux boxes support dynamic linking these days and
9184 # people can always --disable-shared, the test was removed, and we
9185 # assume the GNU/Linux dynamic linker is in use.
9186 dynamic_linker
='GNU/Linux ld.so'
9193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9194 soname_spec
='${libname}${release}${shared_ext}$major'
9195 shlibpath_var
=LD_LIBRARY_PATH
9196 shlibpath_overrides_runpath
=no
9197 hardcode_into_libs
=yes
9198 dynamic_linker
='NetBSD ld.elf_so'
9205 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9207 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9208 dynamic_linker
='NetBSD (a.out) ld.so'
9210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9211 soname_spec
='${libname}${release}${shared_ext}$major'
9212 dynamic_linker
='NetBSD ld.elf_so'
9214 shlibpath_var
=LD_LIBRARY_PATH
9215 shlibpath_overrides_runpath
=yes
9216 hardcode_into_libs
=yes
9221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222 shlibpath_var
=LD_LIBRARY_PATH
9223 shlibpath_overrides_runpath
=yes
9230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 soname_spec
='${libname}${release}${shared_ext}$major'
9232 shlibpath_var
=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath
=yes
9238 sys_lib_dlsearch_path_spec
="/usr/lib"
9240 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9242 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9243 *) need_version
=no
;;
9245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9247 shlibpath_var
=LD_LIBRARY_PATH
9248 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9250 openbsd2.
[89] | openbsd2.
[89].
*)
9251 shlibpath_overrides_runpath
=no
9254 shlibpath_overrides_runpath
=yes
9258 shlibpath_overrides_runpath
=yes
9263 libname_spec
='$name'
9266 library_names_spec
='$libname${shared_ext} $libname.a'
9267 dynamic_linker
='OS/2 ld.exe'
9268 shlibpath_var
=LIBPATH
9271 osf3
* | osf4
* | osf5
*)
9275 soname_spec
='${libname}${release}${shared_ext}$major'
9276 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277 shlibpath_var
=LD_LIBRARY_PATH
9278 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9279 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 soname_spec
='${libname}${release}${shared_ext}$major'
9288 shlibpath_var
=LD_LIBRARY_PATH
9289 shlibpath_overrides_runpath
=yes
9290 hardcode_into_libs
=yes
9291 # ldd complains unless libraries are executable
9292 postinstall_cmds
='chmod +x $lib'
9297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9298 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9299 shlibpath_var
=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath
=yes
9301 if test "$with_gnu_ld" = yes; then
9309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 soname_spec
='${libname}${release}${shared_ext}$major'
9311 shlibpath_var
=LD_LIBRARY_PATH
9312 case $host_vendor in
9314 shlibpath_overrides_runpath
=no
9316 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9317 runpath_var
=LD_RUN_PATH
9325 shlibpath_overrides_runpath
=no
9326 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9332 if test -d /usr
/nec
;then
9334 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9335 soname_spec
='$libname${shared_ext}.$major'
9336 shlibpath_var
=LD_LIBRARY_PATH
9340 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9341 version_type
=freebsd-elf
9344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9345 soname_spec
='${libname}${release}${shared_ext}$major'
9346 shlibpath_var
=LD_LIBRARY_PATH
9347 hardcode_into_libs
=yes
9348 if test "$with_gnu_ld" = yes; then
9349 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9350 shlibpath_overrides_runpath
=no
9352 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9353 shlibpath_overrides_runpath
=yes
9356 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9360 sys_lib_dlsearch_path_spec
='/usr/lib'
9365 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 soname_spec
='${libname}${release}${shared_ext}$major'
9367 shlibpath_var
=LD_LIBRARY_PATH
9374 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9375 echo "${ECHO_T}$dynamic_linker" >&6; }
9376 test "$dynamic_linker" = no
&& can_build_shared
=no
9378 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9379 if test "$GCC" = yes; then
9380 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9383 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9384 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9386 if test -n "$hardcode_libdir_flag_spec" || \
9387 test -n "$runpath_var" || \
9388 test "X$hardcode_automatic" = "Xyes" ; then
9390 # We can hardcode non-existant directories.
9391 if test "$hardcode_direct" != no
&&
9392 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9393 # have to relink, otherwise we might link with an installed library
9394 # when we should be linking with a yet-to-be-installed one
9395 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9396 test "$hardcode_minus_L" != no
; then
9397 # Linking always hardcodes the temporary library directory.
9398 hardcode_action
=relink
9400 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9401 hardcode_action
=immediate
9404 # We cannot hardcode anything, or else we can only hardcode existing
9406 hardcode_action
=unsupported
9408 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9409 echo "${ECHO_T}$hardcode_action" >&6; }
9411 if test "$hardcode_action" = relink
; then
9412 # Fast installation is not supported
9413 enable_fast_install
=no
9414 elif test "$shlibpath_overrides_runpath" = yes ||
9415 test "$enable_shared" = no
; then
9416 # Fast installation is not necessary
9417 enable_fast_install
=needless
9422 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9423 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9424 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9425 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9426 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9427 { echo "$as_me:$LINENO: result: yes" >&5
9428 echo "${ECHO_T}yes" >&6; }
9430 # FIXME - insert some real tests, host_os isn't really good enough
9433 if test -n "$STRIP" ; then
9434 striplib
="$STRIP -x"
9435 { echo "$as_me:$LINENO: result: yes" >&5
9436 echo "${ECHO_T}yes" >&6; }
9438 { echo "$as_me:$LINENO: result: no" >&5
9439 echo "${ECHO_T}no" >&6; }
9443 { echo "$as_me:$LINENO: result: no" >&5
9444 echo "${ECHO_T}no" >&6; }
9449 if test "x$enable_dlopen" != xyes
; then
9450 enable_dlopen
=unknown
9451 enable_dlopen_self
=unknown
9452 enable_dlopen_self_static
=unknown
9459 lt_cv_dlopen
="load_add_on"
9461 lt_cv_dlopen_self
=yes
9465 lt_cv_dlopen
="LoadLibrary"
9470 lt_cv_dlopen
="dlopen"
9475 # if libdl is installed we need to link against it
9476 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9477 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9478 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 ac_check_lib_save_LIBS
=$LIBS
9483 cat >conftest.
$ac_ext <<_ACEOF
9486 cat confdefs.h
>>conftest.
$ac_ext
9487 cat >>conftest.
$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9490 /* Override any GCC internal prototype to avoid an error.
9491 Use char because int might match the return type of a GCC
9492 builtin and then its argument prototype would still apply. */
9505 rm -f conftest.
$ac_objext conftest
$ac_exeext
9506 if { (ac_try
="$ac_link"
9508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_link") 2>conftest.er1
9514 grep -v '^ *+' conftest.er1 >conftest.err
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } && {
9519 test -z "$ac_c_werror_flag" ||
9520 test ! -s conftest.err
9521 } && test -s conftest$ac_exeext &&
9522 $as_test_x conftest$ac_exeext; then
9523 ac_cv_lib_dl_dlopen=yes
9525 echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9528 ac_cv_lib_dl_dlopen=no
9531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9532 conftest$ac_exeext conftest.$ac_ext
9533 LIBS=$ac_check_lib_save_LIBS
9535 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9536 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9537 if test $ac_cv_lib_dl_dlopen = yes; then
9538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9543 lt_cv_dlopen_self=yes
9550 { echo "$as_me:$LINENO: checking for shl_load" >&5
9551 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9552 if test "${ac_cv_func_shl_load+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 cat >conftest.$ac_ext <<_ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9561 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9563 #define shl_load innocuous_shl_load
9565 /* System header to define __stub macros and hopefully few prototypes,
9566 which can conflict with char shl_load (); below.
9567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9568 <limits.h> exists even on freestanding compilers. */
9571 # include <limits.h>
9573 # include <assert.h>
9578 /* Override any GCC internal prototype to avoid an error.
9579 Use char because int might match the return type of a GCC
9580 builtin and then its argument prototype would still apply. */
9585 /* The GNU C library defines this for functions which it implements
9586 to always fail with ENOSYS. Some functions are actually named
9587 something starting with __ and the normal name is an alias. */
9588 #if defined __stub_shl_load || defined __stub___shl_load
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9604 *) ac_try_echo
=$ac_try;;
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_link") 2>conftest.er1
9609 grep -v '^ *+' conftest.er1
>conftest.err
9611 cat conftest.err
>&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest
$ac_exeext &&
9617 $as_test_x conftest
$ac_exeext; then
9618 ac_cv_func_shl_load
=yes
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.
$ac_ext >&5
9623 ac_cv_func_shl_load
=no
9626 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9627 conftest
$ac_exeext conftest.
$ac_ext
9629 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9630 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9631 if test $ac_cv_func_shl_load = yes; then
9632 lt_cv_dlopen
="shl_load"
9634 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9635 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9636 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 ac_check_lib_save_LIBS
=$LIBS
9641 cat >conftest.
$ac_ext <<_ACEOF
9644 cat confdefs.h
>>conftest.
$ac_ext
9645 cat >>conftest.
$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9648 /* Override any GCC internal prototype to avoid an error.
9649 Use char because int might match the return type of a GCC
9650 builtin and then its argument prototype would still apply. */
9663 rm -f conftest.
$ac_objext conftest
$ac_exeext
9664 if { (ac_try
="$ac_link"
9666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_link") 2>conftest.er1
9672 grep -v '^ *+' conftest.er1 >conftest.err
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest$ac_exeext &&
9680 $as_test_x conftest$ac_exeext; then
9681 ac_cv_lib_dld_shl_load=yes
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9686 ac_cv_lib_dld_shl_load=no
9689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690 conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9693 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9694 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9695 if test $ac_cv_lib_dld_shl_load = yes; then
9696 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9698 { echo "$as_me:$LINENO: checking for dlopen" >&5
9699 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9700 if test "${ac_cv_func_dlopen+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 cat >conftest.$ac_ext <<_ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9711 #define dlopen innocuous_dlopen
9713 /* System header to define __stub macros and hopefully few prototypes,
9714 which can conflict with char dlopen (); below.
9715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716 <limits.h> exists even on freestanding compilers. */
9719 # include <limits.h>
9721 # include <assert.h>
9726 /* Override any GCC internal prototype to avoid an error.
9727 Use char because int might match the return type of a GCC
9728 builtin and then its argument prototype would still apply. */
9733 /* The GNU C library defines this for functions which it implements
9734 to always fail with ENOSYS. Some functions are actually named
9735 something starting with __ and the normal name is an alias. */
9736 #if defined __stub_dlopen || defined __stub___dlopen
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (ac_try="$ac_link"
9751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9752 *) ac_try_echo
=$ac_try;;
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_link") 2>conftest.er1
9757 grep -v '^ *+' conftest.er1
>conftest.err
9759 cat conftest.err
>&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && {
9762 test -z "$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 } && test -s conftest
$ac_exeext &&
9765 $as_test_x conftest
$ac_exeext; then
9766 ac_cv_func_dlopen
=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.
$ac_ext >&5
9771 ac_cv_func_dlopen
=no
9774 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9775 conftest
$ac_exeext conftest.
$ac_ext
9777 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9778 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9779 if test $ac_cv_func_dlopen = yes; then
9780 lt_cv_dlopen
="dlopen"
9782 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9783 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9784 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 ac_check_lib_save_LIBS
=$LIBS
9789 cat >conftest.
$ac_ext <<_ACEOF
9792 cat confdefs.h
>>conftest.
$ac_ext
9793 cat >>conftest.
$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9796 /* Override any GCC internal prototype to avoid an error.
9797 Use char because int might match the return type of a GCC
9798 builtin and then its argument prototype would still apply. */
9811 rm -f conftest.
$ac_objext conftest
$ac_exeext
9812 if { (ac_try
="$ac_link"
9814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_link") 2>conftest.er1
9820 grep -v '^ *+' conftest.er1 >conftest.err
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } && {
9825 test -z "$ac_c_werror_flag" ||
9826 test ! -s conftest.err
9827 } && test -s conftest$ac_exeext &&
9828 $as_test_x conftest$ac_exeext; then
9829 ac_cv_lib_dl_dlopen=yes
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9834 ac_cv_lib_dl_dlopen=no
9837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9838 conftest$ac_exeext conftest.$ac_ext
9839 LIBS=$ac_check_lib_save_LIBS
9841 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9842 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9843 if test $ac_cv_lib_dl_dlopen = yes; then
9844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9846 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9847 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9848 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 ac_check_lib_save_LIBS=$LIBS
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9879 *) ac_try_echo
=$ac_try;;
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9884 grep -v '^ *+' conftest.er1
>conftest.err
9886 cat conftest.err
>&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest
$ac_exeext &&
9892 $as_test_x conftest
$ac_exeext; then
9893 ac_cv_lib_svld_dlopen
=yes
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.
$ac_ext >&5
9898 ac_cv_lib_svld_dlopen
=no
9901 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9902 conftest
$ac_exeext conftest.
$ac_ext
9903 LIBS
=$ac_check_lib_save_LIBS
9905 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9906 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9907 if test $ac_cv_lib_svld_dlopen = yes; then
9908 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9910 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9911 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9912 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 ac_check_lib_save_LIBS
=$LIBS
9917 cat >conftest.
$ac_ext <<_ACEOF
9920 cat confdefs.h
>>conftest.
$ac_ext
9921 cat >>conftest.
$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9939 rm -f conftest.
$ac_objext conftest
$ac_exeext
9940 if { (ac_try
="$ac_link"
9942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_link") 2>conftest.er1
9948 grep -v '^ *+' conftest.er1 >conftest.err
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } && {
9953 test -z "$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 } && test -s conftest$ac_exeext &&
9956 $as_test_x conftest$ac_exeext; then
9957 ac_cv_lib_dld_dld_link=yes
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 ac_cv_lib_dld_dld_link=no
9965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9966 conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_lib_save_LIBS
9969 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9970 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9971 if test $ac_cv_lib_dld_dld_link = yes; then
9972 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9993 if test "x$lt_cv_dlopen" != xno; then
9999 case $lt_cv_dlopen in
10001 save_CPPFLAGS="$CPPFLAGS"
10002 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10004 save_LDFLAGS="$LDFLAGS"
10005 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10008 LIBS="$lt_cv_dlopen_libs $LIBS"
10010 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10011 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10012 if test "${lt_cv_dlopen_self+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 if test "$cross_compiling" = yes; then :
10016 lt_cv_dlopen_self=cross
10018 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10019 lt_status=$lt_dlunknown
10020 cat > conftest.$ac_ext <<EOF
10021 #line 10021 "configure"
10022 #include "confdefs.h"
10031 # define LT_DLGLOBAL RTLD_GLOBAL
10034 # define LT_DLGLOBAL DL_GLOBAL
10036 # define LT_DLGLOBAL 0
10040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10041 find out it does not work in some platform. */
10042 #ifndef LT_DLLAZY_OR_NOW
10044 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10047 # define LT_DLLAZY_OR_NOW DL_LAZY
10050 # define LT_DLLAZY_OR_NOW RTLD_NOW
10053 # define LT_DLLAZY_OR_NOW DL_NOW
10055 # define LT_DLLAZY_OR_NOW 0
10063 extern "C" void exit (int);
10066 void fnord() { int i=42;}
10069 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10070 int status = $lt_dlunknown;
10074 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10075 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10076 /* dlclose (self); */
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10089 (./conftest; exit; ) >&5 2>/dev/null
10091 case x$lt_status in
10092 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10093 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10094 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10097 # compilation failed
10098 lt_cv_dlopen_self=no
10105 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10106 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10108 if test "x$lt_cv_dlopen_self" = xyes; then
10109 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10110 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10111 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10112 if test "${lt_cv_dlopen_self_static+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 if test "$cross_compiling" = yes; then :
10116 lt_cv_dlopen_self_static=cross
10118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10119 lt_status=$lt_dlunknown
10120 cat > conftest.$ac_ext <<EOF
10121 #line 10121 "configure"
10122 #include "confdefs.h"
10131 # define LT_DLGLOBAL RTLD_GLOBAL
10134 # define LT_DLGLOBAL DL_GLOBAL
10136 # define LT_DLGLOBAL 0
10140 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10141 find out it does not work in some platform. */
10142 #ifndef LT_DLLAZY_OR_NOW
10144 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10147 # define LT_DLLAZY_OR_NOW DL_LAZY
10150 # define LT_DLLAZY_OR_NOW RTLD_NOW
10153 # define LT_DLLAZY_OR_NOW DL_NOW
10155 # define LT_DLLAZY_OR_NOW 0
10163 extern "C" void exit (int);
10166 void fnord() { int i=42;}
10169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10170 int status = $lt_dlunknown;
10174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10175 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10176 /* dlclose (self); */
10184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185 (eval $ac_link) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10189 (./conftest; exit; ) >&5 2>/dev/null
10191 case x$lt_status in
10192 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10193 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10194 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10197 # compilation failed
10198 lt_cv_dlopen_self_static=no
10205 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10206 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10209 CPPFLAGS="$save_CPPFLAGS"
10210 LDFLAGS="$save_LDFLAGS"
10215 case $lt_cv_dlopen_self in
10216 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10217 *) enable_dlopen_self=unknown ;;
10220 case $lt_cv_dlopen_self_static in
10221 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10222 *) enable_dlopen_self_static=unknown ;;
10227 # Report which library types will actually be built
10228 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10229 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10230 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10231 echo "${ECHO_T}$can_build_shared" >&6; }
10233 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10234 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10235 test "$can_build_shared" = "no" && enable_shared=no
10237 # On AIX, shared libraries and static libraries use the same namespace, and
10238 # are all built from PIC.
10241 test "$enable_shared" = yes && enable_static=no
10242 if test -n "$RANLIB"; then
10243 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10244 postinstall_cmds='$RANLIB $lib'
10249 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10250 test "$enable_shared" = yes && enable_static=no
10254 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10255 echo "${ECHO_T}$enable_shared" >&6; }
10257 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10258 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10259 # Make sure either enable_shared or enable_static is yes.
10260 test "$enable_shared" = yes || enable_static=yes
10261 { echo "$as_me:$LINENO: result: $enable_static" >&5
10262 echo "${ECHO_T}$enable_static" >&6; }
10264 # The else clause should only fire when bootstrapping the
10265 # libtool distribution, otherwise you forgot to ship ltmain.sh
10266 # with your package, and you will get complaints that there are
10267 # no rules to generate ltmain.sh.
10268 if test -f "$ltmain"; then
10269 # See if we are running on zsh, and set the options which allow our commands through
10270 # without removal of \ escapes.
10271 if test -n "${ZSH_VERSION+set}" ; then
10272 setopt NO_GLOB_SUBST
10274 # Now quote all the things that may contain metacharacters while being
10275 # careful not to overquote the AC_SUBSTed values. We take copies of the
10276 # variables and quote the copies for generation of the libtool script.
10277 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10279 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10280 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10281 deplibs_check_method reload_flag reload_cmds need_locks \
10282 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10283 lt_cv_sys_global_symbol_to_c_name_address \
10284 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10285 old_postinstall_cmds old_postuninstall_cmds \
10289 lt_prog_compiler_wl \
10290 lt_prog_compiler_pic \
10291 lt_prog_compiler_static \
10292 lt_prog_compiler_no_builtin_flag \
10293 export_dynamic_flag_spec \
10294 thread_safe_flag_spec \
10295 whole_archive_flag_spec \
10296 enable_shared_with_static_runtimes \
10298 old_archive_from_new_cmds \
10303 compiler_lib_search_path \
10305 archive_expsym_cmds \
10307 postuninstall_cmds \
10308 old_archive_from_expsyms_cmds \
10309 allow_undefined_flag \
10310 no_undefined_flag \
10311 export_symbols_cmds \
10312 hardcode_libdir_flag_spec \
10313 hardcode_libdir_flag_spec_ld \
10314 hardcode_libdir_separator \
10315 hardcode_automatic \
10317 module_expsym_cmds \
10318 lt_cv_prog_compiler_c_o \
10320 include_expsyms; do
10323 old_archive_cmds | \
10324 old_archive_from_new_cmds | \
10326 archive_expsym_cmds | \
10328 module_expsym_cmds | \
10329 old_archive_from_expsyms_cmds | \
10330 export_symbols_cmds | \
10331 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10332 postinstall_cmds | postuninstall_cmds | \
10333 old_postinstall_cmds | old_postuninstall_cmds | \
10334 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10335 # Double-quote double-evaled strings.
10336 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10339 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10345 *'\$0 --fallback-echo"')
10346 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10350 cfgfile="${ofile}T"
10351 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10353 { echo "$as_me:$LINENO: creating $ofile" >&5
10354 echo "$as_me: creating $ofile" >&6;}
10356 cat <<__EOF__ >> "$cfgfile"
10359 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10360 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10361 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10363 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10364 # Free Software Foundation, Inc.
10366 # This file is part of GNU Libtool:
10367 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10369 # This program is free software; you can redistribute it and/or modify
10370 # it under the terms of the GNU General Public License as published by
10371 # the Free Software Foundation; either version 2 of the License, or
10372 # (at your option) any later version.
10374 # This program is distributed in the hope that it will be useful, but
10375 # WITHOUT ANY WARRANTY; without even the implied warranty of
10376 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10377 # General Public License for more details.
10379 # You should have received a copy of the GNU General Public License
10380 # along with this program; if not, write to the Free Software
10381 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10383 # As a special exception to the GNU General Public License, if you
10384 # distribute this file as part of a program that contains a
10385 # configuration script generated by Autoconf, you may include it under
10386 # the same distribution terms that you use for the rest of that program.
10388 # A sed program that does not truncate output.
10391 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10392 Xsed="$SED -e 1s/^X//"
10394 # The HP-UX ksh and POSIX shell print the target directory to stdout
10395 # if CDPATH is set.
10396 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10398 # The names of the tagged configurations supported by this script.
10401 # ### BEGIN LIBTOOL CONFIG
10403 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10405 # Shell to use when invoking shell scripts.
10408 # Whether or not to build shared libraries.
10409 build_libtool_libs=$enable_shared
10411 # Whether or not to build static libraries.
10412 build_old_libs=$enable_static
10414 # Whether or not to add -lc for building shared libraries.
10415 build_libtool_need_lc=$archive_cmds_need_lc
10417 # Whether or not to disallow shared libs when runtime libs are static
10418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10420 # Whether or not to optimize for fast installation.
10421 fast_install=$enable_fast_install
10424 host_alias=$host_alias
10428 # The build system.
10429 build_alias=$build_alias
10433 # An echo program that does not interpret backslashes.
10438 AR_FLAGS=$lt_AR_FLAGS
10443 # LTCC compiler flags.
10444 LTCFLAGS=$lt_LTCFLAGS
10446 # A language-specific compiler.
10449 # Is the compiler the GNU C compiler?
10455 # The linker used to build libraries.
10458 # Whether we need hard or soft links.
10461 # A BSD-compatible nm program.
10464 # A symbol stripping program
10467 # Used to examine libraries when file_magic_cmd begins "file"
10468 MAGIC_CMD=$MAGIC_CMD
10470 # Used on cygwin: DLL creation program.
10473 # Used on cygwin: object dumper.
10476 # Used on cygwin: assembler.
10479 # The name of the directory that contains temporary libtool files.
10482 # How to create reloadable object files.
10483 reload_flag=$lt_reload_flag
10484 reload_cmds=$lt_reload_cmds
10486 # How to pass a linker flag through the compiler.
10487 wl=$lt_lt_prog_compiler_wl
10489 # Object file suffix (normally "o").
10490 objext="$ac_objext"
10492 # Old archive suffix (normally "a").
10495 # Shared library suffix (normally ".so").
10496 shrext_cmds='$shrext_cmds'
10498 # Executable file suffix (normally "").
10501 # Additional compiler flags for building library objects.
10502 pic_flag=$lt_lt_prog_compiler_pic
10505 # What is the maximum length of a command?
10506 max_cmd_len=$lt_cv_sys_max_cmd_len
10508 # Does compiler simultaneously support -c and -o options?
10509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10511 # Must we lock files when doing compilation?
10512 need_locks=$lt_need_locks
10514 # Do we need the lib prefix for modules?
10515 need_lib_prefix=$need_lib_prefix
10517 # Do we need a version for libraries?
10518 need_version=$need_version
10520 # Whether dlopen is supported.
10521 dlopen_support=$enable_dlopen
10523 # Whether dlopen of programs is supported.
10524 dlopen_self=$enable_dlopen_self
10526 # Whether dlopen of statically linked programs is supported.
10527 dlopen_self_static=$enable_dlopen_self_static
10529 # Compiler flag to prevent dynamic linking.
10530 link_static_flag=$lt_lt_prog_compiler_static
10532 # Compiler flag to turn off builtin functions.
10533 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10535 # Compiler flag to allow reflexive dlopens.
10536 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10538 # Compiler flag to generate shared objects directly from archives.
10539 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10541 # Compiler flag to generate thread-safe objects.
10542 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10544 # Library versioning type.
10545 version_type=$version_type
10547 # Format of library name prefix.
10548 libname_spec=$lt_libname_spec
10550 # List of archive names. First name is the real one, the rest are links.
10551 # The last name is the one that the linker finds with -lNAME.
10552 library_names_spec=$lt_library_names_spec
10554 # The coded name of the library, if different from the real name.
10555 soname_spec=$lt_soname_spec
10557 # Commands used to build and install an old-style archive.
10559 old_archive_cmds=$lt_old_archive_cmds
10560 old_postinstall_cmds=$lt_old_postinstall_cmds
10561 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10563 # Create an old-style archive from a shared archive.
10564 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10566 # Create a temporary old-style archive to link instead of a shared archive.
10567 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10569 # Commands used to build and install a shared archive.
10570 archive_cmds=$lt_archive_cmds
10571 archive_expsym_cmds=$lt_archive_expsym_cmds
10572 postinstall_cmds=$lt_postinstall_cmds
10573 postuninstall_cmds=$lt_postuninstall_cmds
10575 # Commands used to build a loadable module (assumed same as above if empty)
10576 module_cmds=$lt_module_cmds
10577 module_expsym_cmds=$lt_module_expsym_cmds
10579 # Commands to strip libraries.
10580 old_striplib=$lt_old_striplib
10581 striplib=$lt_striplib
10583 # Dependencies to place before the objects being linked to create a
10585 predep_objects=$lt_predep_objects
10587 # Dependencies to place after the objects being linked to create a
10589 postdep_objects=$lt_postdep_objects
10591 # Dependencies to place before the objects being linked to create a
10593 predeps=$lt_predeps
10595 # Dependencies to place after the objects being linked to create a
10597 postdeps=$lt_postdeps
10599 # The library search path used internally by the compiler when linking
10600 # a shared library.
10601 compiler_lib_search_path=$lt_compiler_lib_search_path
10603 # Method to check whether dependent libraries are shared objects.
10604 deplibs_check_method=$lt_deplibs_check_method
10606 # Command to use when deplibs_check_method == file_magic.
10607 file_magic_cmd=$lt_file_magic_cmd
10609 # Flag that allows shared libraries with undefined symbols to be built.
10610 allow_undefined_flag=$lt_allow_undefined_flag
10612 # Flag that forces no undefined symbols.
10613 no_undefined_flag=$lt_no_undefined_flag
10615 # Commands used to finish a libtool library installation in a directory.
10616 finish_cmds=$lt_finish_cmds
10618 # Same as above, but a single script fragment to be evaled but not shown.
10619 finish_eval=$lt_finish_eval
10621 # Take the output of nm and produce a listing of raw symbols and C names.
10622 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10624 # Transform the output of nm in a proper C declaration
10625 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10627 # Transform the output of nm in a C name address pair
10628 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10630 # This is the shared library runtime path variable.
10631 runpath_var=$runpath_var
10633 # This is the shared library path variable.
10634 shlibpath_var=$shlibpath_var
10636 # Is shlibpath searched before the hard-coded library search path?
10637 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10639 # How to hardcode a shared library path into an executable.
10640 hardcode_action=$hardcode_action
10642 # Whether we should hardcode library paths into libraries.
10643 hardcode_into_libs=$hardcode_into_libs
10645 # Flag to hardcode \$libdir into a binary during linking.
10646 # This must work even if \$libdir does not exist.
10647 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10649 # If ld is used when linking, flag to hardcode \$libdir into
10650 # a binary during linking. This must work even if \$libdir does
10652 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10654 # Whether we need a single -rpath flag with a separated argument.
10655 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10657 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10658 # resulting binary.
10659 hardcode_direct=$hardcode_direct
10661 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10662 # resulting binary.
10663 hardcode_minus_L=$hardcode_minus_L
10665 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10666 # the resulting binary.
10667 hardcode_shlibpath_var=$hardcode_shlibpath_var
10669 # Set to yes if building a shared library automatically hardcodes DIR into the library
10670 # and all subsequent libraries and executables linked against it.
10671 hardcode_automatic=$hardcode_automatic
10673 # Variables whose values should be saved in libtool wrapper scripts and
10674 # restored at relink time.
10675 variables_saved_for_relink="$variables_saved_for_relink"
10677 # Whether libtool must link a program against all its dependency libraries.
10678 link_all_deplibs=$link_all_deplibs
10680 # Compile-time system search path for libraries
10681 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10683 # Run-time system search path for libraries
10684 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10686 # Fix the shell variable \$srcfile for the compiler.
10687 fix_srcfile_path="$fix_srcfile_path"
10689 # Set to yes if exported symbols are required.
10690 always_export_symbols=$always_export_symbols
10692 # The commands to list exported symbols.
10693 export_symbols_cmds=$lt_export_symbols_cmds
10695 # The commands to extract the exported symbol list from a shared archive.
10696 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10698 # Symbols that should not be listed in the preloaded symbols.
10699 exclude_expsyms=$lt_exclude_expsyms
10701 # Symbols that must always be exported.
10702 include_expsyms=$lt_include_expsyms
10704 # ### END LIBTOOL CONFIG
10711 cat <<\EOF >> "$cfgfile"
10713 # AIX sometimes has problems with the GCC collect2 program. For some
10714 # reason, if we set the COLLECT_NAMES environment variable, the problems
10715 # vanish in a puff of smoke.
10716 if test "X${COLLECT_NAMES+set}" != Xset; then
10718 export COLLECT_NAMES
10724 # We use sed instead of cat because bash on DJGPP gets confused if
10725 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10726 # text mode, it properly converts lines to CR/LF. This bash problem
10727 # is reportedly fixed, but why not run on old versions too?
10728 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10730 mv -f "$cfgfile" "$ofile" || \
10731 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10735 # If there is no Makefile yet, we rely on a make rule to execute
10736 # `config.status
--recheck' to rerun these tests and create the
10737 # libtool script then.
10738 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10739 if test -f "$ltmain_in"; then
10740 test -f Makefile && make "$ltmain"
10746 ac_cpp='$CPP $CPPFLAGS'
10747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10748 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10754 # Check whether --with-tags was given.
10755 if test "${with_tags+set}" = set; then
10756 withval=$with_tags; tagnames="$withval"
10760 if test -f "$ltmain" && test -n "$tagnames"; then
10761 if test ! -f "${ofile}"; then
10762 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10763 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10766 if test -z "$LTCC"; then
10767 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10768 if test -z "$LTCC"; then
10769 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10770 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10772 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10773 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10776 if test -z "$LTCFLAGS"; then
10777 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10780 # Extract list of available tagged configurations in $ofile.
10781 # Note that this assumes the entire list is on one line.
10782 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10785 for tagname in $tagnames; do
10787 # Check whether tagname contains only valid characters
10788 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10790 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10791 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10792 { (exit 1); exit 1; }; }
10796 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10798 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10799 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10800 { (exit 1); exit 1; }; }
10803 # Update the list of available tags.
10804 if test -n "$tagname"; then
10805 echo appending configuration tag \"$tagname\" to $ofile
10809 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10810 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10811 (test "X$CXX" != "Xg++"))) ; then
10813 ac_cpp='$CXXCPP $CPPFLAGS'
10814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10821 archive_cmds_need_lc_CXX=no
10822 allow_undefined_flag_CXX=
10823 always_export_symbols_CXX=no
10824 archive_expsym_cmds_CXX=
10825 export_dynamic_flag_spec_CXX=
10826 hardcode_direct_CXX=no
10827 hardcode_libdir_flag_spec_CXX=
10828 hardcode_libdir_flag_spec_ld_CXX=
10829 hardcode_libdir_separator_CXX=
10830 hardcode_minus_L_CXX=no
10831 hardcode_shlibpath_var_CXX=unsupported
10832 hardcode_automatic_CXX=no
10834 module_expsym_cmds_CXX=
10835 link_all_deplibs_CXX=unknown
10836 old_archive_cmds_CXX=$old_archive_cmds
10837 no_undefined_flag_CXX=
10838 whole_archive_flag_spec_CXX=
10839 enable_shared_with_static_runtimes_CXX=no
10841 # Dependencies to place before and after the object being linked:
10842 predep_objects_CXX=
10843 postdep_objects_CXX=
10846 compiler_lib_search_path_CXX=
10848 # Source file extension for C++ test sources.
10851 # Object file extension for compiled C++ test sources.
10855 # Code to be used in simple compile tests
10856 lt_simple_compile_test_code="int some_variable = 0;\n"
10858 # Code to be used in simple link tests
10859 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10861 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10863 # If no C compiler was specified, use CC.
10866 # If no C compiler flags were specified, use CFLAGS.
10867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10869 # Allow CC to be a program name with arguments.
10873 # save warnings/boilerplate of simple test code
10874 ac_outfile=conftest.$ac_objext
10875 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10877 _lt_compiler_boilerplate=`cat conftest.err
`
10880 ac_outfile=conftest.$ac_objext
10881 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10882 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10883 _lt_linker_boilerplate=`cat conftest.err
`
10887 # Allow CC to be a program name with arguments.
10892 lt_save_with_gnu_ld=$with_gnu_ld
10893 lt_save_path_LD=$lt_cv_path_LD
10894 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10895 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10897 $as_unset lt_cv_prog_gnu_ld
10899 if test -n "${lt_cv_path_LDCXX+set}"; then
10900 lt_cv_path_LD=$lt_cv_path_LDCXX
10902 $as_unset lt_cv_path_LD
10904 test -z "${LDCXX+set}" || LD=$LDCXX
10908 for cc_temp in $compiler""; do
10910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10916 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10919 # We don't want -fno-exception wen compiling C++ code, so set the
10920 # no_builtin_flag separately
10921 if test "$GXX" = yes; then
10922 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10924 lt_prog_compiler_no_builtin_flag_CXX=
10927 if test "$GXX" = yes; then
10928 # Set up default GNU C++ configuration
10931 # Check whether --with-gnu-ld was given.
10932 if test "${with_gnu_ld+set}" = set; then
10933 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10939 if test "$GCC" = yes; then
10940 # Check if gcc -print-prog-name=ld gives a path.
10941 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10942 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10945 # gcc leaves a trailing carriage return which upsets mingw
10946 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
10948 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
10951 # Accept absolute paths.
10953 re_direlt='/[^/][^/]*/\.\./'
10954 # Canonicalize the pathname of ld
10955 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
10956 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10957 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
10959 test -z "$LD" && LD="$ac_prog"
10962 # If it fails, then pretend we aren't using GCC.
10966 # If it is relative, then search for the first ld in PATH.
10967 with_gnu_ld=unknown
10970 elif test "$with_gnu_ld" = yes; then
10971 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10972 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10974 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10975 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10977 if test "${lt_cv_path_LD+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 if test -z "$LD"; then
10981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10982 for ac_dir in $PATH; do
10984 test -z "$ac_dir" && ac_dir=.
10985 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10986 lt_cv_path_LD="$ac_dir/$ac_prog"
10987 # Check to see if the program is GNU ld. I'd rather use --version,
10988 # but apparently some variants of GNU ld only accept -v.
10989 # Break only if it was the GNU/non-GNU ld that we prefer.
10990 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
10991 *GNU* | *'with BFD'*)
10992 test "$with_gnu_ld" != no && break
10995 test "$with_gnu_ld" != yes && break
11002 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11006 LD="$lt_cv_path_LD"
11007 if test -n "$LD"; then
11008 { echo "$as_me:$LINENO: result: $LD" >&5
11009 echo "${ECHO_T}$LD" >&6; }
11011 { echo "$as_me:$LINENO: result: no" >&5
11012 echo "${ECHO_T}no" >&6; }
11014 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11015 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11016 { (exit 1); exit 1; }; }
11017 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11018 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11019 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11023 case `$LD -v 2>&1 </dev
/null
` in
11024 *GNU* | *'with BFD'*)
11025 lt_cv_prog_gnu_ld=yes
11028 lt_cv_prog_gnu_ld=no
11032 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11033 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11034 with_gnu_ld=$lt_cv_prog_gnu_ld
11038 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11039 # archiving commands below assume that GNU ld is being used.
11040 if test "$with_gnu_ld" = yes; then
11041 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11042 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'
11044 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11045 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11047 # If archive_cmds runs LD, not CC, wlarc should be empty
11048 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11049 # investigate it a little bit more. (MM)
11052 # ancient GNU ld didn't support --whole-archive et. al.
11053 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
11054 grep 'no-whole-archive' > /dev/null; then
11055 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11057 whole_archive_flag_spec_CXX=
11063 # A generic and very simple default shared library creation
11064 # command for GNU C++ for the case where it uses the native
11065 # linker, instead of GNU ld. If possible, this setting should
11066 # overridden to take advantage of the native linker features on
11067 # the platform it is being used on.
11068 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11071 # Commands to make compiler produce verbose output that lists
11072 # what "hidden" libraries, object files and flags are used when
11073 # linking a shared library.
11074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11082 # PORTME: fill in a description of your system's C++ link characteristics
11083 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11084 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11088 # FIXME: insert proper C++ library support
11092 if test "$host_cpu" = ia64; then
11093 # On IA64, the linker does run time linking by default, so we don't
11094 # have to do anything special.
11095 aix_use_runtimelinking=no
11096 exp_sym_flag='-Bexport'
11099 aix_use_runtimelinking=no
11101 # Test if we are trying to use run time linking or normal
11102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11103 # need to do runtime linking.
11104 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11105 for ld_flag in $LDFLAGS; do
11108 aix_use_runtimelinking=yes
11116 exp_sym_flag='-bexport'
11117 no_entry_flag='-bnoentry'
11120 # When large executables or shared objects are built, AIX ld can
11121 # have problems creating the table of contents. If linking a library
11122 # or program results in "error TOC overflow" add -mminimal-toc to
11123 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11124 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11126 archive_cmds_CXX=''
11127 hardcode_direct_CXX=yes
11128 hardcode_libdir_separator_CXX=':'
11129 link_all_deplibs_CXX=yes
11131 if test "$GXX" = yes; then
11132 case $host_os in aix4.[012]|aix4.[012].*)
11133 # We only want to do this on AIX 4.2 and lower, the check
11134 # below for broken collect2 doesn't work under 4.3+
11135 collect2name=`${CC} -print-prog-name=collect2
`
11136 if test -f "$collect2name" && \
11137 strings "$collect2name" | grep resolve_lib_name >/dev/null
11139 # We have reworked collect2
11140 hardcode_direct_CXX=yes
11142 # We have old collect2
11143 hardcode_direct_CXX=unsupported
11144 # It fails to find uninstalled libraries when the uninstalled
11145 # path is not listed in the libpath. Setting hardcode_minus_L
11146 # to unsupported forces relinking
11147 hardcode_minus_L_CXX=yes
11148 hardcode_libdir_flag_spec_CXX='-L$libdir'
11149 hardcode_libdir_separator_CXX=
11153 shared_flag='-shared'
11154 if test "$aix_use_runtimelinking" = yes; then
11155 shared_flag="$shared_flag "'${wl}-G'
11159 if test "$host_cpu" = ia64; then
11160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11161 # chokes on -Wl,-G. The following line is correct:
11164 if test "$aix_use_runtimelinking" = yes; then
11165 shared_flag='${wl}-G'
11167 shared_flag='${wl}-bM:SRE'
11172 # It seems that -bexpall does not export symbols beginning with
11173 # underscore (_), so it is better to generate a list of symbols to export.
11174 always_export_symbols_CXX=yes
11175 if test "$aix_use_runtimelinking" = yes; then
11176 # Warning - without using the other runtime loading flags (-brtl),
11177 # -berok will link without error, but may produce a broken library.
11178 allow_undefined_flag_CXX='-berok'
11179 # Determine the default libpath from the value encoded in an empty executable.
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (ac_try="$ac_link"
11197 case "(($ac_try" in
11198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11199 *) ac_try_echo
=$ac_try;;
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_link") 2>conftest.er1
11204 grep -v '^ *+' conftest.er1
>conftest.err
11206 cat conftest.err
>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } && {
11209 test -z "$ac_cxx_werror_flag" ||
11210 test ! -s conftest.err
11211 } && test -s conftest
$ac_exeext &&
11212 $as_test_x conftest
$ac_exeext; then
11214 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11216 # Check for a 64-bit object if we didn't find anything.
11217 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.
$ac_ext >&5
11226 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11227 conftest
$ac_exeext conftest.
$ac_ext
11228 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11230 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11232 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"
11234 if test "$host_cpu" = ia64
; then
11235 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11236 allow_undefined_flag_CXX
="-z nodefs"
11237 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"
11239 # Determine the default libpath from the value encoded in an empty executable.
11240 cat >conftest.
$ac_ext <<_ACEOF
11243 cat confdefs.h
>>conftest.
$ac_ext
11244 cat >>conftest.
$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11255 rm -f conftest.
$ac_objext conftest
$ac_exeext
11256 if { (ac_try
="$ac_link"
11257 case "(($ac_try" in
11258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_link") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_cxx_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest$ac_exeext &&
11272 $as_test_x conftest$ac_exeext; then
11274 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11276 # Check for a 64-bit object if we didn't find anything.
11277 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11287 conftest$ac_exeext conftest.$ac_ext
11288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11290 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11291 # Warning - without using the other run time loading flags,
11292 # -berok will link without error, but may produce a broken library.
11293 no_undefined_flag_CXX=' ${wl}-bernotok'
11294 allow_undefined_flag_CXX=' ${wl}-berok'
11295 # Exported symbols can be pulled into shared objects from archives
11296 whole_archive_flag_spec_CXX='$convenience'
11297 archive_cmds_need_lc_CXX=yes
11298 # This is similar to how AIX traditionally builds its shared libraries.
11299 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'
11305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11306 allow_undefined_flag_CXX=unsupported
11307 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11308 # support --undefined. This deserves some investigation. FIXME
11309 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11316 case $cc_basename in
11318 # FIXME: insert proper C++ library support
11324 cygwin* | mingw* | pw32*)
11325 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11326 # as there is no search path for DLLs.
11327 hardcode_libdir_flag_spec_CXX='-L$libdir'
11328 allow_undefined_flag_CXX=unsupported
11329 always_export_symbols_CXX=no
11330 enable_shared_with_static_runtimes_CXX=yes
11332 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11333 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'
11334 # If the export-symbols file already is a .def file (1st line
11335 # is EXPORTS), use it as is; otherwise, prepend...
11336 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11337 cp $export_symbols $output_objdir/$soname.def;
11339 echo EXPORTS > $output_objdir/$soname.def;
11340 cat $export_symbols >> $output_objdir/$soname.def;
11342 $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'
11347 darwin* | rhapsody*)
11349 rhapsody* | darwin1.[012])
11350 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11353 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11354 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11356 case ${MACOSX_DEPLOYMENT_TARGET} in
11358 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11361 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11367 archive_cmds_need_lc_CXX=no
11368 hardcode_direct_CXX=no
11369 hardcode_automatic_CXX=yes
11370 hardcode_shlibpath_var_CXX=unsupported
11371 whole_archive_flag_spec_CXX=''
11372 link_all_deplibs_CXX=yes
11374 if test "$GXX" = yes ; then
11375 lt_int_apple_cc_single_mod=no
11376 output_verbose_link_cmd='echo'
11377 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11378 lt_int_apple_cc_single_mod=yes
11380 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11381 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11383 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'
11385 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11386 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11387 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11388 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}'
11390 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}'
11392 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}'
11394 case $cc_basename in
11396 output_verbose_link_cmd='echo'
11397 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11398 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11399 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11400 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11401 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}'
11411 case $cc_basename in
11413 # FIXME: insert proper C++ library support
11417 # Green Hills C++ Compiler
11418 # FIXME: insert proper C++ library support
11422 # FIXME: insert proper C++ library support
11428 # C++ shared libraries reported to be fairly broken before switch to ELF
11432 archive_cmds_need_lc_CXX=no
11434 freebsd* | dragonfly*)
11435 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11442 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11443 hardcode_libdir_separator_CXX=:
11444 export_dynamic_flag_spec_CXX='${wl}-E'
11445 hardcode_direct_CXX=yes
11446 hardcode_minus_L_CXX=yes # Not in the search PATH,
11447 # but as the default
11448 # location of the library.
11450 case $cc_basename in
11452 # FIXME: insert proper C++ library support
11456 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'
11457 # Commands to make compiler produce verbose output that lists
11458 # what "hidden" libraries, object files and flags are used when
11459 # linking a shared library.
11461 # There doesn't appear to be a way to prevent this compiler from
11462 # explicitly linking system object files so we need to strip them
11463 # from the output so that they don't get included in the library
11465 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'
11468 if test "$GXX" = yes; then
11469 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'
11471 # FIXME: insert proper C++ library support
11478 if test $with_gnu_ld = no; then
11479 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11480 hardcode_libdir_separator_CXX=:
11484 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11487 export_dynamic_flag_spec_CXX='${wl}-E'
11493 hardcode_direct_CXX=no
11494 hardcode_shlibpath_var_CXX=no
11497 hardcode_direct_CXX=yes
11498 hardcode_minus_L_CXX=yes # Not in the search PATH,
11499 # but as the default
11500 # location of the library.
11504 case $cc_basename in
11506 # FIXME: insert proper C++ library support
11512 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11515 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11518 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11521 # Commands to make compiler produce verbose output that lists
11522 # what "hidden" libraries, object files and flags are used when
11523 # linking a shared library.
11525 # There doesn't appear to be a way to prevent this compiler from
11526 # explicitly linking system object files so we need to strip them
11527 # from the output so that they don't get included in the library
11529 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'
11532 if test "$GXX" = yes; then
11533 if test $with_gnu_ld = no; then
11536 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11539 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11542 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'
11547 # FIXME: insert proper C++ library support
11554 hardcode_direct_CXX=no
11555 hardcode_shlibpath_var_CXX=no
11556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11557 export_dynamic_flag_spec_CXX='${wl}-E'
11558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11559 # Instead, shared libraries are loaded at an image base (0x10000000 by
11560 # default) and relocated if they conflict, which is a slow very memory
11561 # consuming and fragmenting process. To avoid this, we pick a random,
11562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11564 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'
11565 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'
11568 case $cc_basename in
11571 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'
11573 # Archives containing C++ object files must be created using
11574 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11575 # necessary to make sure instantiated templates are included
11577 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11580 if test "$GXX" = yes; then
11581 if test "$with_gnu_ld" = no; then
11582 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'
11584 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'
11587 link_all_deplibs_CXX=yes
11590 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11591 hardcode_libdir_separator_CXX=:
11593 linux* | k*bsd*-gnu)
11594 case $cc_basename in
11596 # Kuck and Associates, Inc. (KAI) C++ Compiler
11598 # KCC will only create a shared library if the output file
11599 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11600 # to its proper name (with version) after linking.
11601 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'
11602 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'
11603 # Commands to make compiler produce verbose output that lists
11604 # what "hidden" libraries, object files and flags are used when
11605 # linking a shared library.
11607 # There doesn't appear to be a way to prevent this compiler from
11608 # explicitly linking system object files so we need to strip them
11609 # from the output so that they don't get included in the library
11611 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'
11613 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11614 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11616 # Archives containing C++ object files must be created using
11617 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11618 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11623 # version 8.0 and above of icpc choke on multiply defined symbols
11624 # if we add $predep_objects and $postdep_objects, however 7.1 and
11625 # earlier do not add the objects themselves.
11626 case `$CC -V 2>&1` in
11628 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11629 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'
11631 *) # Version 8.0 or newer
11634 ia64
*) tmp_idyn
=' -i_dynamic';;
11636 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11637 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'
11640 archive_cmds_need_lc_CXX
=no
11641 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11642 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11643 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11646 # Portland Group C++ compiler
11647 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11648 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'
11650 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11651 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11652 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'
11656 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11657 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'
11659 runpath_var
=LD_RUN_PATH
11660 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11661 hardcode_libdir_separator_CXX
=:
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 -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'
11676 # FIXME: insert proper C++ library support
11680 # FIXME: insert proper C++ library support
11684 case $cc_basename in
11686 # FIXME: insert proper C++ library support
11690 # FIXME: insert proper C++ library support
11695 netbsd
* | netbsdelf
*-gnu)
11696 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11697 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11699 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11700 hardcode_direct_CXX
=yes
11701 hardcode_shlibpath_var_CXX
=no
11703 # Workaround some broken pre-1.5 toolchains
11704 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11707 # C++ shared libraries are fairly broken
11711 hardcode_direct_CXX
=yes
11712 hardcode_shlibpath_var_CXX
=no
11713 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11714 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11716 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11717 export_dynamic_flag_spec_CXX
='${wl}-E'
11718 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11720 output_verbose_link_cmd
='echo'
11723 case $cc_basename in
11725 # Kuck and Associates, Inc. (KAI) C++ Compiler
11727 # KCC will only create a shared library if the output file
11728 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11729 # to its proper name (with version) after linking.
11730 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'
11732 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11733 hardcode_libdir_separator_CXX
=:
11735 # Archives containing C++ object files must be created using
11736 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11737 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11741 # Rational C++ 2.4.1
11742 # FIXME: insert proper C++ library support
11746 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11747 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'
11749 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11750 hardcode_libdir_separator_CXX
=:
11752 # Commands to make compiler produce verbose output that lists
11753 # what "hidden" libraries, object files and flags are used when
11754 # linking a shared library.
11756 # There doesn't appear to be a way to prevent this compiler from
11757 # explicitly linking system object files so we need to strip them
11758 # from the output so that they don't get included in the library
11760 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'
11763 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11764 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11765 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'
11767 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11768 hardcode_libdir_separator_CXX
=:
11770 # Commands to make compiler produce verbose output that lists
11771 # what "hidden" libraries, object files and flags are used when
11772 # linking a shared library.
11773 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11776 # FIXME: insert proper C++ library support
11783 case $cc_basename in
11785 # Kuck and Associates, Inc. (KAI) C++ Compiler
11787 # KCC will only create a shared library if the output file
11788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11789 # to its proper name (with version) after linking.
11790 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'
11792 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11793 hardcode_libdir_separator_CXX
=:
11795 # Archives containing C++ object files must be created using
11796 # the KAI C++ compiler.
11797 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11800 # Rational C++ 2.4.1
11801 # FIXME: insert proper C++ library support
11805 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11806 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'
11807 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11808 echo "-hidden">> $lib.exp~
11809 $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~
11812 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11813 hardcode_libdir_separator_CXX
=:
11815 # Commands to make compiler produce verbose output that lists
11816 # what "hidden" libraries, object files and flags are used when
11817 # linking a shared library.
11819 # There doesn't appear to be a way to prevent this compiler from
11820 # explicitly linking system object files so we need to strip them
11821 # from the output so that they don't get included in the library
11823 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'
11826 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11827 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11828 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'
11830 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11831 hardcode_libdir_separator_CXX
=:
11833 # Commands to make compiler produce verbose output that lists
11834 # what "hidden" libraries, object files and flags are used when
11835 # linking a shared library.
11836 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11839 # FIXME: insert proper C++ library support
11846 # FIXME: insert proper C++ library support
11850 case $cc_basename in
11853 # FIXME: insert proper C++ library support
11858 # FIXME: insert proper C++ library support
11862 # FIXME: insert proper C++ library support
11868 case $cc_basename in
11870 # Sun C++ 4.2, 5.x and Centerline C++
11871 archive_cmds_need_lc_CXX
=yes
11872 no_undefined_flag_CXX
=' -zdefs'
11873 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11874 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11875 $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'
11877 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11878 hardcode_shlibpath_var_CXX
=no
11880 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11882 # The C++ compiler is used as linker so we must use $wl
11883 # flag to pass the commands to the underlying system
11884 # linker. We must also pass each convience library through
11885 # to the system linker between allextract/defaultextract.
11886 # The C++ compiler will combine linker options so we
11887 # cannot just pass the convience library names through
11889 # Supported since Solaris 2.6 (maybe 2.5.1?)
11890 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11893 link_all_deplibs_CXX
=yes
11895 output_verbose_link_cmd
='echo'
11897 # Archives containing C++ object files must be created using
11898 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11899 # necessary to make sure instantiated templates are included
11901 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11904 # Green Hills C++ Compiler
11905 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11907 # The C++ compiler must be used to create the archive.
11908 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11911 # GNU C++ compiler with Solaris linker
11912 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11913 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11914 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11915 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11916 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11917 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11919 # Commands to make compiler produce verbose output that lists
11920 # what "hidden" libraries, object files and flags are used when
11921 # linking a shared library.
11922 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11924 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11926 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11927 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11928 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11930 # Commands to make compiler produce verbose output that lists
11931 # what "hidden" libraries, object files and flags are used when
11932 # linking a shared library.
11933 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11936 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11941 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11942 no_undefined_flag_CXX
='${wl}-z,text'
11943 archive_cmds_need_lc_CXX
=no
11944 hardcode_shlibpath_var_CXX
=no
11945 runpath_var
='LD_RUN_PATH'
11947 case $cc_basename in
11949 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11950 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11953 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11958 sysv5
* | sco3.2v5
* | sco5v6
*)
11959 # Note: We can NOT use -z defs as we might desire, because we do not
11960 # link with -lc, and that would cause any symbols used from libc to
11961 # always be unresolved, which means just about no library would
11962 # ever link correctly. If we're not using GNU ld we use -z text
11963 # though, which does catch some bad symbols but isn't as heavy-handed
11965 # For security reasons, it is highly recommended that you always
11966 # use absolute paths for naming shared libraries, and exclude the
11967 # DT_RUNPATH tag from executables and libraries. But doing so
11968 # requires that you compile everything twice, which is a pain.
11969 # So that behaviour is only enabled if SCOABSPATH is set to a
11970 # non-empty value in the environment. Most likely only useful for
11971 # creating official distributions of packages.
11972 # This is a hack until libtool officially supports absolute path
11973 # names for shared libraries.
11974 no_undefined_flag_CXX
='${wl}-z,text'
11975 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11976 archive_cmds_need_lc_CXX
=no
11977 hardcode_shlibpath_var_CXX
=no
11978 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11979 hardcode_libdir_separator_CXX
=':'
11980 link_all_deplibs_CXX
=yes
11981 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11982 runpath_var
='LD_RUN_PATH'
11984 case $cc_basename in
11986 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11987 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11990 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11991 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11996 case $cc_basename in
11998 # NonStop-UX NCC 3.20
11999 # FIXME: insert proper C++ library support
12003 # FIXME: insert proper C++ library support
12009 # FIXME: insert proper C++ library support
12013 # FIXME: insert proper C++ library support
12017 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12018 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12019 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12025 cat > conftest.
$ac_ext <<EOF
12029 Foo (void) { a = 0; }
12035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; then
12040 # Parse the compiler output and extract the necessary
12041 # objects, libraries and library flags.
12043 # Sentinel used to keep track of whether or not we are before
12044 # the conftest object file.
12045 pre_test_object_deps_done
=no
12047 # The `*' in the case matches for architectures that use `case' in
12048 # $output_verbose_cmd can trigger glob expansion during the loop
12049 # eval without this substitution.
12050 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12052 for p
in `eval $output_verbose_link_cmd`; do
12056 # Some compilers place space between "-{L,R}" and the path.
12057 # Remove the space.
12058 if test $p = "-L" \
12059 ||
test $p = "-R"; then
12066 if test "$pre_test_object_deps_done" = no
; then
12069 # Internal compiler library paths should come after those
12070 # provided the user. The postdeps already come after the
12071 # user supplied libs so there is no need to process them.
12072 if test -z "$compiler_lib_search_path_CXX"; then
12073 compiler_lib_search_path_CXX
="${prev}${p}"
12075 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
12078 # The "-l" case would never come before the object being
12079 # linked, so don't bother handling this case.
12082 if test -z "$postdeps_CXX"; then
12083 postdeps_CXX
="${prev}${p}"
12085 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
12091 # This assumes that the test object file only shows up
12092 # once in the compiler output.
12093 if test "$p" = "conftest.$objext"; then
12094 pre_test_object_deps_done
=yes
12098 if test "$pre_test_object_deps_done" = no
; then
12099 if test -z "$predep_objects_CXX"; then
12100 predep_objects_CXX
="$p"
12102 predep_objects_CXX
="$predep_objects_CXX $p"
12105 if test -z "$postdep_objects_CXX"; then
12106 postdep_objects_CXX
="$p"
12108 postdep_objects_CXX
="$postdep_objects_CXX $p"
12113 *) ;; # Ignore the rest.
12121 echo "libtool.m4: error: problem compiling CXX test program"
12124 $rm -f confest.
$objext
12126 # PORTME: override above test on systems where it is broken
12129 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12130 # hack all around it, let's just trust "g++" to DTRT.
12131 predep_objects_CXX
=
12132 postdep_objects_CXX
=
12137 case $cc_basename in
12139 # Adding this requires a known-good setup of shared libraries for
12140 # Sun compiler versions before 5.6, else PIC objects from an old
12141 # archive will be linked into the output, leading to subtle bugs.
12142 postdeps_CXX
='-lCstd -lCrun'
12149 case " $postdeps_CXX " in
12150 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
12153 lt_prog_compiler_wl_CXX
=
12154 lt_prog_compiler_pic_CXX
=
12155 lt_prog_compiler_static_CXX
=
12157 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12158 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12160 # C++ specific cases for pic, static, wl, etc.
12161 if test "$GXX" = yes; then
12162 lt_prog_compiler_wl_CXX
='-Wl,'
12163 lt_prog_compiler_static_CXX
='-static'
12167 # All AIX code is PIC.
12168 if test "$host_cpu" = ia64
; then
12169 # AIX 5 now supports IA64 processor
12170 lt_prog_compiler_static_CXX
='-Bstatic'
12174 # FIXME: we need at least 68020 code to build shared libraries, but
12175 # adding the `-m68020' flag to GCC prevents building anything better,
12177 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12179 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12180 # PIC is the default for these OSes.
12182 mingw
* | os2
* | pw32
*)
12183 # This hack is so that the source file can tell whether it is being
12184 # built for inclusion in a dll (and should export symbols for example).
12185 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12187 darwin
* | rhapsody
*)
12188 # PIC is the default on this platform
12189 # Common symbols not allowed in MH_DYLIB files
12190 lt_prog_compiler_pic_CXX
='-fno-common'
12193 # DJGPP does not support shared libraries at all
12194 lt_prog_compiler_pic_CXX
=
12197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12198 # Instead, we relocate shared libraries at runtime.
12201 if test -d /usr
/nec
; then
12202 lt_prog_compiler_pic_CXX
=-Kconform_pic
12206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12207 # not for PA HP-UX.
12212 lt_prog_compiler_pic_CXX
='-fPIC'
12217 lt_prog_compiler_pic_CXX
='-fPIC'
12223 # All AIX code is PIC.
12224 if test "$host_cpu" = ia64
; then
12225 # AIX 5 now supports IA64 processor
12226 lt_prog_compiler_static_CXX
='-Bstatic'
12228 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12232 case $cc_basename in
12234 # Green Hills C++ Compiler
12235 # _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"
12240 # PIC is the default on this platform
12241 # Common symbols not allowed in MH_DYLIB files
12242 case $cc_basename in
12244 lt_prog_compiler_pic_CXX
='-qnocommon'
12245 lt_prog_compiler_wl_CXX
='-Wl,'
12250 case $cc_basename in
12252 lt_prog_compiler_pic_CXX
='-KPIC'
12255 # Green Hills C++ Compiler
12256 lt_prog_compiler_pic_CXX
='-pic'
12262 freebsd
* | dragonfly
*)
12263 # FreeBSD uses GNU C++
12265 hpux9
* | hpux10
* | hpux11
*)
12266 case $cc_basename in
12268 lt_prog_compiler_wl_CXX
='-Wl,'
12269 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12270 if test "$host_cpu" != ia64
; then
12271 lt_prog_compiler_pic_CXX
='+Z'
12275 lt_prog_compiler_wl_CXX
='-Wl,'
12276 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12282 lt_prog_compiler_pic_CXX
='+Z'
12291 # This is c89, which is MS Visual C++ (no shared libs)
12292 # Anyone wants to do a port?
12294 irix5
* | irix6
* | nonstopux
*)
12295 case $cc_basename in
12297 lt_prog_compiler_wl_CXX
='-Wl,'
12298 lt_prog_compiler_static_CXX
='-non_shared'
12299 # CC pic flag -KPIC is the default.
12305 linux
* | k
*bsd
*-gnu)
12306 case $cc_basename in
12309 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12310 lt_prog_compiler_pic_CXX
='-fPIC'
12314 lt_prog_compiler_wl_CXX
='-Wl,'
12315 lt_prog_compiler_pic_CXX
='-KPIC'
12316 lt_prog_compiler_static_CXX
='-static'
12319 # Portland Group C++ compiler.
12320 lt_prog_compiler_wl_CXX
='-Wl,'
12321 lt_prog_compiler_pic_CXX
='-fpic'
12322 lt_prog_compiler_static_CXX
='-Bstatic'
12326 # Make sure the PIC flag is empty. It appears that all Alpha
12327 # Linux and Compaq Tru64 Unix objects are PIC.
12328 lt_prog_compiler_pic_CXX
=
12329 lt_prog_compiler_static_CXX
='-non_shared'
12340 case $cc_basename in
12342 lt_prog_compiler_pic_CXX
='-W c,exportall'
12348 netbsd
* | netbsdelf
*-gnu)
12350 osf3
* | osf4
* | osf5
*)
12351 case $cc_basename in
12353 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12356 # Rational C++ 2.4.1
12357 lt_prog_compiler_pic_CXX
='-pic'
12360 # Digital/Compaq C++
12361 lt_prog_compiler_wl_CXX
='-Wl,'
12362 # Make sure the PIC flag is empty. It appears that all Alpha
12363 # Linux and Compaq Tru64 Unix objects are PIC.
12364 lt_prog_compiler_pic_CXX
=
12365 lt_prog_compiler_static_CXX
='-non_shared'
12374 case $cc_basename in
12376 # Sun C++ 4.2, 5.x and Centerline C++
12377 lt_prog_compiler_pic_CXX
='-KPIC'
12378 lt_prog_compiler_static_CXX
='-Bstatic'
12379 lt_prog_compiler_wl_CXX
='-Qoption ld '
12382 # Green Hills C++ Compiler
12383 lt_prog_compiler_pic_CXX
='-PIC'
12390 case $cc_basename in
12393 lt_prog_compiler_pic_CXX
='-pic'
12394 lt_prog_compiler_static_CXX
='-Bstatic'
12398 lt_prog_compiler_pic_CXX
='-pic'
12405 case $cc_basename in
12407 # NonStop-UX NCC 3.20
12408 lt_prog_compiler_pic_CXX
='-KPIC'
12414 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12415 case $cc_basename in
12417 lt_prog_compiler_wl_CXX
='-Wl,'
12418 lt_prog_compiler_pic_CXX
='-KPIC'
12419 lt_prog_compiler_static_CXX
='-Bstatic'
12426 lt_prog_compiler_can_build_shared_CXX
=no
12431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12432 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12435 # Check to make sure the PIC flag actually works.
12437 if test -n "$lt_prog_compiler_pic_CXX"; then
12439 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12440 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12441 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 lt_prog_compiler_pic_works_CXX
=no
12445 ac_outfile
=conftest.
$ac_objext
12446 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12447 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12448 # Insert the option either (1) after the last *FLAGS variable, or
12449 # (2) before a word containing "conftest.", or (3) at the end.
12450 # Note that $ac_compile itself does not contain backslashes and begins
12451 # with a dollar sign (not a hyphen), so the echo should work correctly.
12452 # The option is referenced via a variable to avoid confusing sed.
12453 lt_compile
=`echo "$ac_compile" | $SED \
12454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12456 -e 's:$: $lt_compiler_flag:'`
12457 (eval echo "\"\$as_me:12457: $lt_compile\"" >&5)
12458 (eval "$lt_compile" 2>conftest.err
)
12460 cat conftest.err
>&5
12461 echo "$as_me:12461: \$? = $ac_status" >&5
12462 if (exit $ac_status) && test -s "$ac_outfile"; then
12463 # The compiler can only warn and ignore the option if not recognized
12464 # So say no if there are warnings other than the usual output.
12465 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12466 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12467 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12468 lt_prog_compiler_pic_works_CXX
=yes
12474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12475 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12477 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12478 case $lt_prog_compiler_pic_CXX in
12480 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12483 lt_prog_compiler_pic_CXX
=
12484 lt_prog_compiler_can_build_shared_CXX
=no
12489 # For platforms which do not support PIC, -DPIC is meaningless:
12491 lt_prog_compiler_pic_CXX
=
12494 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12499 # Check to make sure the static flag actually works.
12501 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12502 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12503 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12504 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 lt_prog_compiler_static_works_CXX
=no
12508 save_LDFLAGS
="$LDFLAGS"
12509 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12510 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
12511 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12512 # The linker can only warn and ignore the option if not recognized
12513 # So say no if there are warnings
12514 if test -s conftest.err
; then
12515 # Append any errors to the config.log.
12516 cat conftest.err
1>&5
12517 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12518 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12519 if diff conftest.exp conftest.er2
>/dev
/null
; then
12520 lt_prog_compiler_static_works_CXX
=yes
12523 lt_prog_compiler_static_works_CXX
=yes
12527 LDFLAGS
="$save_LDFLAGS"
12530 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12531 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12533 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12536 lt_prog_compiler_static_CXX
=
12540 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12541 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12542 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 lt_cv_prog_compiler_c_o_CXX
=no
12546 $rm -r conftest
2>/dev
/null
12550 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12552 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12553 # Insert the option either (1) after the last *FLAGS variable, or
12554 # (2) before a word containing "conftest.", or (3) at the end.
12555 # Note that $ac_compile itself does not contain backslashes and begins
12556 # with a dollar sign (not a hyphen), so the echo should work correctly.
12557 lt_compile
=`echo "$ac_compile" | $SED \
12558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12560 -e 's:$: $lt_compiler_flag:'`
12561 (eval echo "\"\$as_me:12561: $lt_compile\"" >&5)
12562 (eval "$lt_compile" 2>out
/conftest.err
)
12564 cat out
/conftest.err
>&5
12565 echo "$as_me:12565: \$? = $ac_status" >&5
12566 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12568 # The compiler can only warn and ignore the option if not recognized
12569 # So say no if there are warnings
12570 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12571 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12572 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12573 lt_cv_prog_compiler_c_o_CXX
=yes
12578 # SGI C++ compiler will create directory out/ii_files/ for
12579 # template instantiation
12580 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12581 $rm out
/* && rmdir out
12587 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12588 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12591 hard_links
="nottested"
12592 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12593 # do not overwrite the value of need_locks provided by the user
12594 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12595 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12598 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12600 ln conftest.a conftest.b
2>&5 || hard_links
=no
12601 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12602 { echo "$as_me:$LINENO: result: $hard_links" >&5
12603 echo "${ECHO_T}$hard_links" >&6; }
12604 if test "$hard_links" = no
; then
12605 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12606 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12613 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12616 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12619 # If we're using GNU nm, then we don't want the "-C" option.
12620 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12621 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12622 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'
12624 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'
12628 export_symbols_cmds_CXX
="$ltdll_cmds"
12631 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'
12633 linux
* | k
*bsd
*-gnu)
12634 link_all_deplibs_CXX
=no
12637 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12641 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12642 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12643 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12646 # Do we need to explicitly link libc?
12648 case "x$archive_cmds_need_lc_CXX" in
12650 # Assume -lc should be added
12651 archive_cmds_need_lc_CXX
=yes
12653 if test "$enable_shared" = yes && test "$GCC" = yes; then
12654 case $archive_cmds_CXX in
12656 # FIXME: we may have to deal with multi-command sequences.
12659 # Test whether the compiler implicitly links with -lc since on some
12660 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12661 # to ld, don't add -lc before -lgcc.
12662 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12663 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12665 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } 2>conftest.err
; then
12674 libobjs
=conftest.
$ac_objext
12676 wl
=$lt_prog_compiler_wl_CXX
12677 pic_flag
=$lt_prog_compiler_pic_CXX
12683 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12684 allow_undefined_flag_CXX
=
12685 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12686 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }
12691 archive_cmds_need_lc_CXX
=no
12693 archive_cmds_need_lc_CXX
=yes
12695 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12697 cat conftest.err
1>&5
12700 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12701 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12708 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12710 library_names_spec
=
12711 libname_spec
='lib$name'
12715 postuninstall_cmds
=
12719 shlibpath_overrides_runpath
=unknown
12721 dynamic_linker
="$host_os ld.so"
12722 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12723 if test "$GCC" = yes; then
12724 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12725 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
12726 # if the path contains ";" then we assume it to be the separator
12727 # otherwise default to the standard path separator (i.e. ":") - it is
12728 # assumed that no part of a normal pathname contains ";" but that should
12729 # okay in the real world where ";" in dirpaths is itself problematic.
12730 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12732 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12735 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12737 need_lib_prefix
=unknown
12738 hardcode_into_libs
=no
12740 # when you set need_version to no, make sure it does not cause -set_version
12741 # flags to be left without arguments
12742 need_version
=unknown
12747 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12748 shlibpath_var
=LIBPATH
12750 # AIX 3 has no versioning support, so we append a major version to the name.
12751 soname_spec
='${libname}${release}${shared_ext}$major'
12758 hardcode_into_libs
=yes
12759 if test "$host_cpu" = ia64
; then
12760 # AIX 5 supports IA64
12761 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12762 shlibpath_var
=LD_LIBRARY_PATH
12764 # With GCC up to 2.95.x, collect2 would create an import file
12765 # for dependence libraries. The import file would start with
12766 # the line `#! .'. This would cause the generated library to
12767 # depend on `.', always an invalid library. This was fixed in
12768 # development snapshots of GCC prior to 3.0.
12770 aix4 | aix4.
[01] | aix4.
[01].
*)
12771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12773 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12776 can_build_shared
=no
12780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12781 # soname into executable. Probably we can add versioning support to
12782 # collect2, so additional links can be useful in future.
12783 if test "$aix_use_runtimelinking" = yes; then
12784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12785 # instead of lib<name>.a to let people know that these are not
12786 # typical AIX shared libraries.
12787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789 # We preserve .a as extension for shared libraries through AIX4.2
12790 # and later when we are not doing run time linking.
12791 library_names_spec
='${libname}${release}.a $libname.a'
12792 soname_spec
='${libname}${release}${shared_ext}$major'
12794 shlibpath_var
=LIBPATH
12799 library_names_spec
='$libname.ixlibrary $libname.a'
12800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12801 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'
12805 library_names_spec
='${libname}${shared_ext}'
12806 dynamic_linker
="$host_os ld.so"
12807 shlibpath_var
=LIBRARY_PATH
12813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814 soname_spec
='${libname}${release}${shared_ext}$major'
12815 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12816 shlibpath_var
=LD_LIBRARY_PATH
12817 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12818 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12819 # the default ld.so.conf also contains /usr/contrib/lib and
12820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12821 # libtool to hard-code these into programs
12824 cygwin
* | mingw
* | pw32
*)
12825 version_type
=windows
12830 case $GCC,$host_os in
12831 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12832 library_names_spec
='$libname.dll.a'
12833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12834 postinstall_cmds
='base_file=`basename \${file}`~
12835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12836 dldir=$destdir/`dirname \$dlpath`~
12837 test -d \$dldir || mkdir -p \$dldir~
12838 $install_prog $dir/$dlname \$dldir/$dlname~
12839 chmod a+x \$dldir/$dlname'
12840 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12841 dlpath=$dir/\$dldll~
12843 shlibpath_overrides_runpath
=yes
12847 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12848 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12849 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12852 # MinGW DLLs use traditional 'lib' prefix
12853 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12854 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12855 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12856 # It is most probably a Windows format PATH printed by
12857 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12858 # path with ; separators, and with drive letters. We can handle the
12859 # drive letters (cygwin fileutils understands them), so leave them,
12860 # especially as we might pass files found there to a mingw objdump,
12861 # which wouldn't understand a cygwinified path. Ahh.
12862 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12864 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12868 # pw32 DLLs use 'pw' prefix rather than 'lib'
12869 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12875 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12878 dynamic_linker
='Win32 ld.exe'
12879 # FIXME: first we should search . and the directory the executable is in
12883 darwin
* | rhapsody
*)
12884 dynamic_linker
="$host_os dyld"
12885 version_type
=darwin
12888 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12889 soname_spec
='${libname}${release}${major}$shared_ext'
12890 shlibpath_overrides_runpath
=yes
12891 shlibpath_var
=DYLD_LIBRARY_PATH
12892 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12893 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12894 if test "$GCC" = yes; then
12895 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12897 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12899 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12907 soname_spec
='${libname}${release}${shared_ext}$major'
12908 shlibpath_var
=LD_LIBRARY_PATH
12915 freebsd
* | dragonfly
*)
12916 # DragonFly does not have aout. When/if they implement a new
12917 # versioning mechanism, adjust this.
12918 if test -x /usr
/bin
/objformat
; then
12919 objformat
=`/usr/bin/objformat`
12922 freebsd
[123]*) objformat
=aout
;;
12923 *) objformat
=elf
;;
12926 version_type
=freebsd-
$objformat
12927 case $version_type in
12929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12934 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12938 shlibpath_var
=LD_LIBRARY_PATH
12941 shlibpath_overrides_runpath
=yes
12943 freebsd3.
[01]* | freebsdelf3.
[01]*)
12944 shlibpath_overrides_runpath
=yes
12945 hardcode_into_libs
=yes
12947 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12948 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12949 shlibpath_overrides_runpath
=no
12950 hardcode_into_libs
=yes
12952 freebsd
*) # from 4.6 on
12953 shlibpath_overrides_runpath
=yes
12954 hardcode_into_libs
=yes
12963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12964 soname_spec
='${libname}${release}${shared_ext}$major'
12965 shlibpath_var
=LD_LIBRARY_PATH
12966 hardcode_into_libs
=yes
12969 hpux9
* | hpux10
* | hpux11
*)
12970 # Give a soname corresponding to the major version so that dld.sl refuses to
12971 # link against other versions.
12978 hardcode_into_libs
=yes
12979 dynamic_linker
="$host_os dld.so"
12980 shlibpath_var
=LD_LIBRARY_PATH
12981 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12982 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12983 soname_spec
='${libname}${release}${shared_ext}$major'
12984 if test "X$HPUX_IA64_MODE" = X32
; then
12985 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12987 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12989 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12993 hardcode_into_libs
=yes
12994 dynamic_linker
="$host_os dld.sl"
12995 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12996 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998 soname_spec
='${libname}${release}${shared_ext}$major'
12999 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13000 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13004 dynamic_linker
="$host_os dld.sl"
13005 shlibpath_var
=SHLIB_PATH
13006 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13008 soname_spec
='${libname}${release}${shared_ext}$major'
13011 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13012 postinstall_cmds
='chmod 555 $lib'
13019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13020 soname_spec
='${libname}${release}${shared_ext}$major'
13021 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
13022 shlibpath_var
=LD_LIBRARY_PATH
13023 shlibpath_overrides_runpath
=no
13024 hardcode_into_libs
=yes
13027 irix5
* | irix6
* | nonstopux
*)
13029 nonstopux
*) version_type
=nonstopux
;;
13031 if test "$lt_cv_prog_gnu_ld" = yes; then
13039 soname_spec
='${libname}${release}${shared_ext}$major'
13040 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13042 irix5
* | nonstopux
*)
13043 libsuff
= shlibsuff
=
13046 case $LD in # libtool.m4 will add one of these switches to LD
13047 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
13048 libsuff
= shlibsuff
= libmagic
=32-bit;;
13049 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
13050 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13051 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
13052 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13053 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13057 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13058 shlibpath_overrides_runpath
=no
13059 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13060 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13061 hardcode_into_libs
=yes
13064 # No shared lib support for Linux oldld, aout, or coff.
13065 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13069 # This must be Linux ELF.
13070 linux
* | k
*bsd
*-gnu)
13074 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13075 soname_spec
='${libname}${release}${shared_ext}$major'
13076 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13077 shlibpath_var
=LD_LIBRARY_PATH
13078 shlibpath_overrides_runpath
=no
13079 # This implies no fast_install, which is unacceptable.
13080 # Some rework will be needed to allow for fast_install
13081 # before this can be enabled.
13082 hardcode_into_libs
=yes
13084 # Append ld.so.conf contents to the search path
13085 if test -f /etc
/ld.so.conf
; then
13086 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13087 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
13090 # We used to test for /lib/ld.so.1 and disable shared libraries on
13091 # powerpc, because MkLinux only supported shared libraries with the
13092 # GNU dynamic linker. Since this was broken with cross compilers,
13093 # most powerpc-linux boxes support dynamic linking these days and
13094 # people can always --disable-shared, the test was removed, and we
13095 # assume the GNU/Linux dynamic linker is in use.
13096 dynamic_linker
='GNU/Linux ld.so'
13103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13104 soname_spec
='${libname}${release}${shared_ext}$major'
13105 shlibpath_var
=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath
=no
13107 hardcode_into_libs
=yes
13108 dynamic_linker
='NetBSD ld.elf_so'
13115 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13117 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13118 dynamic_linker
='NetBSD (a.out) ld.so'
13120 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13121 soname_spec
='${libname}${release}${shared_ext}$major'
13122 dynamic_linker
='NetBSD ld.elf_so'
13124 shlibpath_var
=LD_LIBRARY_PATH
13125 shlibpath_overrides_runpath
=yes
13126 hardcode_into_libs
=yes
13131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 shlibpath_var
=LD_LIBRARY_PATH
13133 shlibpath_overrides_runpath
=yes
13140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141 soname_spec
='${libname}${release}${shared_ext}$major'
13142 shlibpath_var
=LD_LIBRARY_PATH
13143 shlibpath_overrides_runpath
=yes
13148 sys_lib_dlsearch_path_spec
="/usr/lib"
13150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13152 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13153 *) need_version
=no
;;
13155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13156 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13157 shlibpath_var
=LD_LIBRARY_PATH
13158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13160 openbsd2.
[89] | openbsd2.
[89].
*)
13161 shlibpath_overrides_runpath
=no
13164 shlibpath_overrides_runpath
=yes
13168 shlibpath_overrides_runpath
=yes
13173 libname_spec
='$name'
13176 library_names_spec
='$libname${shared_ext} $libname.a'
13177 dynamic_linker
='OS/2 ld.exe'
13178 shlibpath_var
=LIBPATH
13181 osf3
* | osf4
* | osf5
*)
13185 soname_spec
='${libname}${release}${shared_ext}$major'
13186 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187 shlibpath_var
=LD_LIBRARY_PATH
13188 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13189 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13196 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197 soname_spec
='${libname}${release}${shared_ext}$major'
13198 shlibpath_var
=LD_LIBRARY_PATH
13199 shlibpath_overrides_runpath
=yes
13200 hardcode_into_libs
=yes
13201 # ldd complains unless libraries are executable
13202 postinstall_cmds
='chmod +x $lib'
13207 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13208 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13209 shlibpath_var
=LD_LIBRARY_PATH
13210 shlibpath_overrides_runpath
=yes
13211 if test "$with_gnu_ld" = yes; then
13219 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220 soname_spec
='${libname}${release}${shared_ext}$major'
13221 shlibpath_var
=LD_LIBRARY_PATH
13222 case $host_vendor in
13224 shlibpath_overrides_runpath
=no
13226 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13227 runpath_var
=LD_RUN_PATH
13235 shlibpath_overrides_runpath
=no
13236 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13242 if test -d /usr
/nec
;then
13244 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13245 soname_spec
='$libname${shared_ext}.$major'
13246 shlibpath_var
=LD_LIBRARY_PATH
13250 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13251 version_type
=freebsd-elf
13254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13255 soname_spec
='${libname}${release}${shared_ext}$major'
13256 shlibpath_var
=LD_LIBRARY_PATH
13257 hardcode_into_libs
=yes
13258 if test "$with_gnu_ld" = yes; then
13259 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13260 shlibpath_overrides_runpath
=no
13262 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13263 shlibpath_overrides_runpath
=yes
13266 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13270 sys_lib_dlsearch_path_spec
='/usr/lib'
13275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276 soname_spec
='${libname}${release}${shared_ext}$major'
13277 shlibpath_var
=LD_LIBRARY_PATH
13284 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13285 echo "${ECHO_T}$dynamic_linker" >&6; }
13286 test "$dynamic_linker" = no
&& can_build_shared
=no
13288 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13289 if test "$GCC" = yes; then
13290 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13293 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13294 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13295 hardcode_action_CXX
=
13296 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13297 test -n "$runpath_var_CXX" || \
13298 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13300 # We can hardcode non-existant directories.
13301 if test "$hardcode_direct_CXX" != no
&&
13302 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13303 # have to relink, otherwise we might link with an installed library
13304 # when we should be linking with a yet-to-be-installed one
13305 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13306 test "$hardcode_minus_L_CXX" != no
; then
13307 # Linking always hardcodes the temporary library directory.
13308 hardcode_action_CXX
=relink
13310 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13311 hardcode_action_CXX
=immediate
13314 # We cannot hardcode anything, or else we can only hardcode existing
13316 hardcode_action_CXX
=unsupported
13318 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13319 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13321 if test "$hardcode_action_CXX" = relink
; then
13322 # Fast installation is not supported
13323 enable_fast_install
=no
13324 elif test "$shlibpath_overrides_runpath" = yes ||
13325 test "$enable_shared" = no
; then
13326 # Fast installation is not necessary
13327 enable_fast_install
=needless
13331 # The else clause should only fire when bootstrapping the
13332 # libtool distribution, otherwise you forgot to ship ltmain.sh
13333 # with your package, and you will get complaints that there are
13334 # no rules to generate ltmain.sh.
13335 if test -f "$ltmain"; then
13336 # See if we are running on zsh, and set the options which allow our commands through
13337 # without removal of \ escapes.
13338 if test -n "${ZSH_VERSION+set}" ; then
13339 setopt NO_GLOB_SUBST
13341 # Now quote all the things that may contain metacharacters while being
13342 # careful not to overquote the AC_SUBSTed values. We take copies of the
13343 # variables and quote the copies for generation of the libtool script.
13344 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13346 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13347 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13348 deplibs_check_method reload_flag reload_cmds need_locks \
13349 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13350 lt_cv_sys_global_symbol_to_c_name_address \
13351 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13352 old_postinstall_cmds old_postuninstall_cmds \
13356 lt_prog_compiler_wl_CXX \
13357 lt_prog_compiler_pic_CXX \
13358 lt_prog_compiler_static_CXX \
13359 lt_prog_compiler_no_builtin_flag_CXX \
13360 export_dynamic_flag_spec_CXX \
13361 thread_safe_flag_spec_CXX \
13362 whole_archive_flag_spec_CXX \
13363 enable_shared_with_static_runtimes_CXX \
13364 old_archive_cmds_CXX \
13365 old_archive_from_new_cmds_CXX \
13366 predep_objects_CXX \
13367 postdep_objects_CXX \
13370 compiler_lib_search_path_CXX \
13372 archive_expsym_cmds_CXX \
13373 postinstall_cmds_CXX \
13374 postuninstall_cmds_CXX \
13375 old_archive_from_expsyms_cmds_CXX \
13376 allow_undefined_flag_CXX \
13377 no_undefined_flag_CXX \
13378 export_symbols_cmds_CXX \
13379 hardcode_libdir_flag_spec_CXX \
13380 hardcode_libdir_flag_spec_ld_CXX \
13381 hardcode_libdir_separator_CXX \
13382 hardcode_automatic_CXX \
13384 module_expsym_cmds_CXX \
13385 lt_cv_prog_compiler_c_o_CXX \
13386 exclude_expsyms_CXX \
13387 include_expsyms_CXX
; do
13390 old_archive_cmds_CXX | \
13391 old_archive_from_new_cmds_CXX | \
13392 archive_cmds_CXX | \
13393 archive_expsym_cmds_CXX | \
13394 module_cmds_CXX | \
13395 module_expsym_cmds_CXX | \
13396 old_archive_from_expsyms_cmds_CXX | \
13397 export_symbols_cmds_CXX | \
13398 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13399 postinstall_cmds | postuninstall_cmds | \
13400 old_postinstall_cmds | old_postuninstall_cmds | \
13401 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13402 # Double-quote double-evaled strings.
13403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13412 *'\$0 --fallback-echo"')
13413 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13419 cat <<__EOF__ >> "$cfgfile"
13420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13424 # Shell to use when invoking shell scripts.
13427 # Whether or not to build shared libraries.
13428 build_libtool_libs=$enable_shared
13430 # Whether or not to build static libraries.
13431 build_old_libs=$enable_static
13433 # Whether or not to add -lc for building shared libraries.
13434 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13436 # Whether or not to disallow shared libs when runtime libs are static
13437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13439 # Whether or not to optimize for fast installation.
13440 fast_install=$enable_fast_install
13443 host_alias=$host_alias
13447 # The build system.
13448 build_alias=$build_alias
13452 # An echo program that does not interpret backslashes.
13457 AR_FLAGS=$lt_AR_FLAGS
13462 # LTCC compiler flags.
13463 LTCFLAGS=$lt_LTCFLAGS
13465 # A language-specific compiler.
13466 CC=$lt_compiler_CXX
13468 # Is the compiler the GNU C compiler?
13474 # The linker used to build libraries.
13477 # Whether we need hard or soft links.
13480 # A BSD-compatible nm program.
13483 # A symbol stripping program
13486 # Used to examine libraries when file_magic_cmd begins "file"
13487 MAGIC_CMD=$MAGIC_CMD
13489 # Used on cygwin: DLL creation program.
13492 # Used on cygwin: object dumper.
13495 # Used on cygwin: assembler.
13498 # The name of the directory that contains temporary libtool files.
13501 # How to create reloadable object files.
13502 reload_flag=$lt_reload_flag
13503 reload_cmds=$lt_reload_cmds
13505 # How to pass a linker flag through the compiler.
13506 wl=$lt_lt_prog_compiler_wl_CXX
13508 # Object file suffix (normally "o").
13509 objext="$ac_objext"
13511 # Old archive suffix (normally "a").
13514 # Shared library suffix (normally ".so").
13515 shrext_cmds='$shrext_cmds'
13517 # Executable file suffix (normally "").
13520 # Additional compiler flags for building library objects.
13521 pic_flag=$lt_lt_prog_compiler_pic_CXX
13524 # What is the maximum length of a command?
13525 max_cmd_len=$lt_cv_sys_max_cmd_len
13527 # Does compiler simultaneously support -c and -o options?
13528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13530 # Must we lock files when doing compilation?
13531 need_locks=$lt_need_locks
13533 # Do we need the lib prefix for modules?
13534 need_lib_prefix=$need_lib_prefix
13536 # Do we need a version for libraries?
13537 need_version=$need_version
13539 # Whether dlopen is supported.
13540 dlopen_support=$enable_dlopen
13542 # Whether dlopen of programs is supported.
13543 dlopen_self=$enable_dlopen_self
13545 # Whether dlopen of statically linked programs is supported.
13546 dlopen_self_static=$enable_dlopen_self_static
13548 # Compiler flag to prevent dynamic linking.
13549 link_static_flag=$lt_lt_prog_compiler_static_CXX
13551 # Compiler flag to turn off builtin functions.
13552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13554 # Compiler flag to allow reflexive dlopens.
13555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13557 # Compiler flag to generate shared objects directly from archives.
13558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13560 # Compiler flag to generate thread-safe objects.
13561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13563 # Library versioning type.
13564 version_type=$version_type
13566 # Format of library name prefix.
13567 libname_spec=$lt_libname_spec
13569 # List of archive names. First name is the real one, the rest are links.
13570 # The last name is the one that the linker finds with -lNAME.
13571 library_names_spec=$lt_library_names_spec
13573 # The coded name of the library, if different from the real name.
13574 soname_spec=$lt_soname_spec
13576 # Commands used to build and install an old-style archive.
13578 old_archive_cmds=$lt_old_archive_cmds_CXX
13579 old_postinstall_cmds=$lt_old_postinstall_cmds
13580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13582 # Create an old-style archive from a shared archive.
13583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13585 # Create a temporary old-style archive to link instead of a shared archive.
13586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13588 # Commands used to build and install a shared archive.
13589 archive_cmds=$lt_archive_cmds_CXX
13590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13591 postinstall_cmds=$lt_postinstall_cmds
13592 postuninstall_cmds=$lt_postuninstall_cmds
13594 # Commands used to build a loadable module (assumed same as above if empty)
13595 module_cmds=$lt_module_cmds_CXX
13596 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13598 # Commands to strip libraries.
13599 old_striplib=$lt_old_striplib
13600 striplib=$lt_striplib
13602 # Dependencies to place before the objects being linked to create a
13604 predep_objects=$lt_predep_objects_CXX
13606 # Dependencies to place after the objects being linked to create a
13608 postdep_objects=$lt_postdep_objects_CXX
13610 # Dependencies to place before the objects being linked to create a
13612 predeps=$lt_predeps_CXX
13614 # Dependencies to place after the objects being linked to create a
13616 postdeps=$lt_postdeps_CXX
13618 # The library search path used internally by the compiler when linking
13619 # a shared library.
13620 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13622 # Method to check whether dependent libraries are shared objects.
13623 deplibs_check_method=$lt_deplibs_check_method
13625 # Command to use when deplibs_check_method == file_magic.
13626 file_magic_cmd=$lt_file_magic_cmd
13628 # Flag that allows shared libraries with undefined symbols to be built.
13629 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13631 # Flag that forces no undefined symbols.
13632 no_undefined_flag=$lt_no_undefined_flag_CXX
13634 # Commands used to finish a libtool library installation in a directory.
13635 finish_cmds=$lt_finish_cmds
13637 # Same as above, but a single script fragment to be evaled but not shown.
13638 finish_eval=$lt_finish_eval
13640 # Take the output of nm and produce a listing of raw symbols and C names.
13641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13643 # Transform the output of nm in a proper C declaration
13644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13646 # Transform the output of nm in a C name address pair
13647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13649 # This is the shared library runtime path variable.
13650 runpath_var=$runpath_var
13652 # This is the shared library path variable.
13653 shlibpath_var=$shlibpath_var
13655 # Is shlibpath searched before the hard-coded library search path?
13656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13658 # How to hardcode a shared library path into an executable.
13659 hardcode_action=$hardcode_action_CXX
13661 # Whether we should hardcode library paths into libraries.
13662 hardcode_into_libs=$hardcode_into_libs
13664 # Flag to hardcode \$libdir into a binary during linking.
13665 # This must work even if \$libdir does not exist.
13666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13668 # If ld is used when linking, flag to hardcode \$libdir into
13669 # a binary during linking. This must work even if \$libdir does
13671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13673 # Whether we need a single -rpath flag with a separated argument.
13674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13677 # resulting binary.
13678 hardcode_direct=$hardcode_direct_CXX
13680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13681 # resulting binary.
13682 hardcode_minus_L=$hardcode_minus_L_CXX
13684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13685 # the resulting binary.
13686 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13688 # Set to yes if building a shared library automatically hardcodes DIR into the library
13689 # and all subsequent libraries and executables linked against it.
13690 hardcode_automatic=$hardcode_automatic_CXX
13692 # Variables whose values should be saved in libtool wrapper scripts and
13693 # restored at relink time.
13694 variables_saved_for_relink="$variables_saved_for_relink"
13696 # Whether libtool must link a program against all its dependency libraries.
13697 link_all_deplibs=$link_all_deplibs_CXX
13699 # Compile-time system search path for libraries
13700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13702 # Run-time system search path for libraries
13703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13705 # Fix the shell variable \$srcfile for the compiler.
13706 fix_srcfile_path="$fix_srcfile_path_CXX"
13708 # Set to yes if exported symbols are required.
13709 always_export_symbols=$always_export_symbols_CXX
13711 # The commands to list exported symbols.
13712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13714 # The commands to extract the exported symbol list from a shared archive.
13715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13717 # Symbols that should not be listed in the preloaded symbols.
13718 exclude_expsyms=$lt_exclude_expsyms_CXX
13720 # Symbols that must always be exported.
13721 include_expsyms=$lt_include_expsyms_CXX
13723 # ### END LIBTOOL TAG CONFIG: $tagname
13729 # If there is no Makefile yet, we rely on a make rule to execute
13730 # `config.status --recheck' to rerun these tests and create the
13731 # libtool script then.
13732 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13733 if test -f "$ltmain_in"; then
13734 test -f Makefile
&& make "$ltmain"
13740 ac_cpp
='$CPP $CPPFLAGS'
13741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13749 with_gnu_ldcxx
=$with_gnu_ld
13750 with_gnu_ld
=$lt_save_with_gnu_ld
13751 lt_cv_path_LDCXX
=$lt_cv_path_LD
13752 lt_cv_path_LD
=$lt_save_path_LD
13753 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13754 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13762 if test -n "$F77" && test "X$F77" != "Xno"; then
13765 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13766 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13767 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13770 archive_cmds_need_lc_F77
=no
13771 allow_undefined_flag_F77
=
13772 always_export_symbols_F77
=no
13773 archive_expsym_cmds_F77
=
13774 export_dynamic_flag_spec_F77
=
13775 hardcode_direct_F77
=no
13776 hardcode_libdir_flag_spec_F77
=
13777 hardcode_libdir_flag_spec_ld_F77
=
13778 hardcode_libdir_separator_F77
=
13779 hardcode_minus_L_F77
=no
13780 hardcode_automatic_F77
=no
13782 module_expsym_cmds_F77
=
13783 link_all_deplibs_F77
=unknown
13784 old_archive_cmds_F77
=$old_archive_cmds
13785 no_undefined_flag_F77
=
13786 whole_archive_flag_spec_F77
=
13787 enable_shared_with_static_runtimes_F77
=no
13789 # Source file extension for f77 test sources.
13792 # Object file extension for compiled f77 test sources.
13796 # Code to be used in simple compile tests
13797 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13799 # Code to be used in simple link tests
13800 lt_simple_link_test_code
=" program t\n end\n"
13802 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13804 # If no C compiler was specified, use CC.
13807 # If no C compiler flags were specified, use CFLAGS.
13808 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13810 # Allow CC to be a program name with arguments.
13814 # save warnings/boilerplate of simple test code
13815 ac_outfile
=conftest.
$ac_objext
13816 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
13817 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13818 _lt_compiler_boilerplate
=`cat conftest.err`
13821 ac_outfile
=conftest.
$ac_objext
13822 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
13823 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13824 _lt_linker_boilerplate
=`cat conftest.err`
13828 # Allow CC to be a program name with arguments.
13833 for cc_temp
in $compiler""; do
13835 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13836 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13841 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13844 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13845 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13846 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13847 echo "${ECHO_T}$can_build_shared" >&6; }
13849 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13850 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13851 test "$can_build_shared" = "no" && enable_shared
=no
13853 # On AIX, shared libraries and static libraries use the same namespace, and
13854 # are all built from PIC.
13857 test "$enable_shared" = yes && enable_static
=no
13858 if test -n "$RANLIB"; then
13859 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13860 postinstall_cmds
='$RANLIB $lib'
13864 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13865 test "$enable_shared" = yes && enable_static
=no
13869 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13870 echo "${ECHO_T}$enable_shared" >&6; }
13872 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13873 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13874 # Make sure either enable_shared or enable_static is yes.
13875 test "$enable_shared" = yes || enable_static
=yes
13876 { echo "$as_me:$LINENO: result: $enable_static" >&5
13877 echo "${ECHO_T}$enable_static" >&6; }
13882 lt_prog_compiler_wl_F77
=
13883 lt_prog_compiler_pic_F77
=
13884 lt_prog_compiler_static_F77
=
13886 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13887 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13889 if test "$GCC" = yes; then
13890 lt_prog_compiler_wl_F77
='-Wl,'
13891 lt_prog_compiler_static_F77
='-static'
13895 # All AIX code is PIC.
13896 if test "$host_cpu" = ia64
; then
13897 # AIX 5 now supports IA64 processor
13898 lt_prog_compiler_static_F77
='-Bstatic'
13903 # FIXME: we need at least 68020 code to build shared libraries, but
13904 # adding the `-m68020' flag to GCC prevents building anything better,
13906 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13909 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13910 # PIC is the default for these OSes.
13913 mingw
* | pw32
* | os2
*)
13914 # This hack is so that the source file can tell whether it is being
13915 # built for inclusion in a dll (and should export symbols for example).
13916 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13919 darwin
* | rhapsody
*)
13920 # PIC is the default on this platform
13921 # Common symbols not allowed in MH_DYLIB files
13922 lt_prog_compiler_pic_F77
='-fno-common'
13926 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13927 # Instead, we relocate shared libraries at runtime.
13931 # Just because we use GCC doesn't mean we suddenly get shared libraries
13932 # on systems that don't support them.
13933 lt_prog_compiler_can_build_shared_F77
=no
13938 if test -d /usr
/nec
; then
13939 lt_prog_compiler_pic_F77
=-Kconform_pic
13944 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13945 # not for PA HP-UX.
13951 lt_prog_compiler_pic_F77
='-fPIC'
13957 lt_prog_compiler_pic_F77
='-fPIC'
13961 # PORTME Check for flag to pass linker flags through the system compiler.
13964 lt_prog_compiler_wl_F77
='-Wl,'
13965 if test "$host_cpu" = ia64
; then
13966 # AIX 5 now supports IA64 processor
13967 lt_prog_compiler_static_F77
='-Bstatic'
13969 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13973 # PIC is the default on this platform
13974 # Common symbols not allowed in MH_DYLIB files
13975 case $cc_basename in
13977 lt_prog_compiler_pic_F77
='-qnocommon'
13978 lt_prog_compiler_wl_F77
='-Wl,'
13983 mingw
* | pw32
* | os2
*)
13984 # This hack is so that the source file can tell whether it is being
13985 # built for inclusion in a dll (and should export symbols for example).
13986 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13989 hpux9
* | hpux10
* | hpux11
*)
13990 lt_prog_compiler_wl_F77
='-Wl,'
13991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13992 # not for PA HP-UX.
13998 lt_prog_compiler_pic_F77
='+Z'
14001 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14002 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
14005 irix5
* | irix6
* | nonstopux
*)
14006 lt_prog_compiler_wl_F77
='-Wl,'
14007 # PIC (with -KPIC) is the default.
14008 lt_prog_compiler_static_F77
='-non_shared'
14012 lt_prog_compiler_pic_F77
='-KPIC'
14013 lt_prog_compiler_static_F77
='-Bstatic'
14016 linux
* | k
*bsd
*-gnu)
14017 case $cc_basename in
14019 lt_prog_compiler_wl_F77
='-Wl,'
14020 lt_prog_compiler_pic_F77
='-KPIC'
14021 lt_prog_compiler_static_F77
='-static'
14023 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14024 # Portland Group compilers (*not* the Pentium gcc compiler,
14025 # which looks to be a dead project)
14026 lt_prog_compiler_wl_F77
='-Wl,'
14027 lt_prog_compiler_pic_F77
='-fpic'
14028 lt_prog_compiler_static_F77
='-Bstatic'
14031 lt_prog_compiler_wl_F77
='-Wl,'
14032 # All Alpha code is PIC.
14033 lt_prog_compiler_static_F77
='-non_shared'
14038 osf3
* | osf4
* | osf5
*)
14039 lt_prog_compiler_wl_F77
='-Wl,'
14040 # All OSF/1 code is PIC.
14041 lt_prog_compiler_static_F77
='-non_shared'
14045 lt_prog_compiler_pic_F77
='-KPIC'
14046 lt_prog_compiler_static_F77
='-Bstatic'
14047 case $cc_basename in
14048 f77
* | f90
* | f95
*)
14049 lt_prog_compiler_wl_F77
='-Qoption ld ';;
14051 lt_prog_compiler_wl_F77
='-Wl,';;
14056 lt_prog_compiler_wl_F77
='-Qoption ld '
14057 lt_prog_compiler_pic_F77
='-PIC'
14058 lt_prog_compiler_static_F77
='-Bstatic'
14061 sysv4 | sysv4.2uw2
* | sysv4.3
*)
14062 lt_prog_compiler_wl_F77
='-Wl,'
14063 lt_prog_compiler_pic_F77
='-KPIC'
14064 lt_prog_compiler_static_F77
='-Bstatic'
14068 if test -d /usr
/nec
;then
14069 lt_prog_compiler_pic_F77
='-Kconform_pic'
14070 lt_prog_compiler_static_F77
='-Bstatic'
14074 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14075 lt_prog_compiler_wl_F77
='-Wl,'
14076 lt_prog_compiler_pic_F77
='-KPIC'
14077 lt_prog_compiler_static_F77
='-Bstatic'
14081 lt_prog_compiler_wl_F77
='-Wl,'
14082 lt_prog_compiler_can_build_shared_F77
=no
14086 lt_prog_compiler_pic_F77
='-pic'
14087 lt_prog_compiler_static_F77
='-Bstatic'
14091 lt_prog_compiler_can_build_shared_F77
=no
14096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14097 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14100 # Check to make sure the PIC flag actually works.
14102 if test -n "$lt_prog_compiler_pic_F77"; then
14104 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14105 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14106 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 lt_prog_compiler_pic_works_F77
=no
14110 ac_outfile
=conftest.
$ac_objext
14111 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14112 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
14113 # Insert the option either (1) after the last *FLAGS variable, or
14114 # (2) before a word containing "conftest.", or (3) at the end.
14115 # Note that $ac_compile itself does not contain backslashes and begins
14116 # with a dollar sign (not a hyphen), so the echo should work correctly.
14117 # The option is referenced via a variable to avoid confusing sed.
14118 lt_compile
=`echo "$ac_compile" | $SED \
14119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14121 -e 's:$: $lt_compiler_flag:'`
14122 (eval echo "\"\$as_me:14122: $lt_compile\"" >&5)
14123 (eval "$lt_compile" 2>conftest.err
)
14125 cat conftest.err
>&5
14126 echo "$as_me:14126: \$? = $ac_status" >&5
14127 if (exit $ac_status) && test -s "$ac_outfile"; then
14128 # The compiler can only warn and ignore the option if not recognized
14129 # So say no if there are warnings other than the usual output.
14130 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14131 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14132 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14133 lt_prog_compiler_pic_works_F77
=yes
14139 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14140 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14142 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14143 case $lt_prog_compiler_pic_F77 in
14145 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14148 lt_prog_compiler_pic_F77
=
14149 lt_prog_compiler_can_build_shared_F77
=no
14154 # For platforms which do not support PIC, -DPIC is meaningless:
14156 lt_prog_compiler_pic_F77
=
14159 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14164 # Check to make sure the static flag actually works.
14166 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14167 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14168 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14169 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 lt_prog_compiler_static_works_F77
=no
14173 save_LDFLAGS
="$LDFLAGS"
14174 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14175 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
14176 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14177 # The linker can only warn and ignore the option if not recognized
14178 # So say no if there are warnings
14179 if test -s conftest.err
; then
14180 # Append any errors to the config.log.
14181 cat conftest.err
1>&5
14182 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14183 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14184 if diff conftest.exp conftest.er2
>/dev
/null
; then
14185 lt_prog_compiler_static_works_F77
=yes
14188 lt_prog_compiler_static_works_F77
=yes
14192 LDFLAGS
="$save_LDFLAGS"
14195 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14196 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14198 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14201 lt_prog_compiler_static_F77
=
14205 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14206 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14207 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 lt_cv_prog_compiler_c_o_F77
=no
14211 $rm -r conftest
2>/dev
/null
14215 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14217 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14218 # Insert the option either (1) after the last *FLAGS variable, or
14219 # (2) before a word containing "conftest.", or (3) at the end.
14220 # Note that $ac_compile itself does not contain backslashes and begins
14221 # with a dollar sign (not a hyphen), so the echo should work correctly.
14222 lt_compile
=`echo "$ac_compile" | $SED \
14223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14225 -e 's:$: $lt_compiler_flag:'`
14226 (eval echo "\"\$as_me:14226: $lt_compile\"" >&5)
14227 (eval "$lt_compile" 2>out
/conftest.err
)
14229 cat out
/conftest.err
>&5
14230 echo "$as_me:14230: \$? = $ac_status" >&5
14231 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14233 # The compiler can only warn and ignore the option if not recognized
14234 # So say no if there are warnings
14235 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14236 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14237 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14238 lt_cv_prog_compiler_c_o_F77
=yes
14243 # SGI C++ compiler will create directory out/ii_files/ for
14244 # template instantiation
14245 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14246 $rm out
/* && rmdir out
14252 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14253 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14256 hard_links
="nottested"
14257 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14258 # do not overwrite the value of need_locks provided by the user
14259 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14260 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14263 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14265 ln conftest.a conftest.b
2>&5 || hard_links
=no
14266 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14267 { echo "$as_me:$LINENO: result: $hard_links" >&5
14268 echo "${ECHO_T}$hard_links" >&6; }
14269 if test "$hard_links" = no
; then
14270 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14271 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14278 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14282 allow_undefined_flag_F77
=
14283 enable_shared_with_static_runtimes_F77
=no
14285 archive_expsym_cmds_F77
=
14286 old_archive_From_new_cmds_F77
=
14287 old_archive_from_expsyms_cmds_F77
=
14288 export_dynamic_flag_spec_F77
=
14289 whole_archive_flag_spec_F77
=
14290 thread_safe_flag_spec_F77
=
14291 hardcode_libdir_flag_spec_F77
=
14292 hardcode_libdir_flag_spec_ld_F77
=
14293 hardcode_libdir_separator_F77
=
14294 hardcode_direct_F77
=no
14295 hardcode_minus_L_F77
=no
14296 hardcode_shlibpath_var_F77
=unsupported
14297 link_all_deplibs_F77
=unknown
14298 hardcode_automatic_F77
=no
14300 module_expsym_cmds_F77
=
14301 always_export_symbols_F77
=no
14302 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14303 # include_expsyms should be a list of space-separated symbols to be *always*
14304 # included in the symbol list
14305 include_expsyms_F77
=
14306 # exclude_expsyms can be an extended regexp of symbols to exclude
14307 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14309 # as well as any symbol that contains `d'.
14310 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14312 # platforms (ab)use it in PIC code, but their linkers get confused if
14313 # the symbol is explicitly referenced. Since portable code cannot
14314 # rely on this symbol name, it's probably fine to never include it in
14315 # preloaded symbol tables.
14316 extract_expsyms_cmds
=
14317 # Just being paranoid about ensuring that cc_basename is set.
14318 for cc_temp
in $compiler""; do
14320 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14321 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14326 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14329 cygwin
* | mingw
* | pw32
*)
14330 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14331 # When not using gcc, we currently assume that we are using
14332 # Microsoft Visual C++.
14333 if test "$GCC" != yes; then
14338 # we just hope/assume this is gcc and not c89 (= MSVC++)
14347 if test "$with_gnu_ld" = yes; then
14348 # If archive_cmds runs LD, not CC, wlarc should be empty
14351 # Set some defaults for GNU ld with shared library support. These
14352 # are reset later if shared libraries are not supported. Putting them
14353 # here allows them to be overridden if necessary.
14354 runpath_var
=LD_RUN_PATH
14355 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14356 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14357 # ancient GNU ld didn't support --whole-archive et. al.
14358 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14359 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14361 whole_archive_flag_spec_F77
=
14363 supports_anon_versioning
=no
14364 case `$LD -v 2>/dev/null` in
14365 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14366 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14367 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14368 *\
2.11.
*) ;; # other 2.11 versions
14369 *) supports_anon_versioning
=yes ;;
14372 # See if GNU ld supports shared libraries.
14374 aix3
* | aix4
* | aix5
*)
14375 # On AIX/PPC, the GNU linker is very broken
14376 if test "$host_cpu" != ia64
; then
14380 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14381 *** to be unable to reliably create shared libraries on AIX.
14382 *** Therefore, libtool is disabling shared libraries support. If you
14383 *** really care for shared libraries, you may want to modify your PATH
14384 *** so that a non-GNU linker is found, and then restart.
14391 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)'
14392 hardcode_libdir_flag_spec_F77
='-L$libdir'
14393 hardcode_minus_L_F77
=yes
14395 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14396 # that the semantics of dynamic libraries on AmigaOS, at least up
14397 # to version 4, is to share data among multiple programs linked
14398 # with the same dynamic library. Since this doesn't match the
14399 # behavior of shared libraries on other platforms, we can't use
14405 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14406 allow_undefined_flag_F77
=unsupported
14407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14408 # support --undefined. This deserves some investigation. FIXME
14409 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14415 cygwin
* | mingw
* | pw32
*)
14416 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14417 # as there is no search path for DLLs.
14418 hardcode_libdir_flag_spec_F77
='-L$libdir'
14419 allow_undefined_flag_F77
=unsupported
14420 always_export_symbols_F77
=no
14421 enable_shared_with_static_runtimes_F77
=yes
14422 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14424 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14425 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14426 # If the export-symbols file already is a .def file (1st line
14427 # is EXPORTS), use it as is; otherwise, prepend...
14428 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14429 cp $export_symbols $output_objdir/$soname.def;
14431 echo EXPORTS > $output_objdir/$soname.def;
14432 cat $export_symbols >> $output_objdir/$soname.def;
14434 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14441 hardcode_direct_F77
=no
14442 hardcode_shlibpath_var_F77
=no
14443 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14444 export_dynamic_flag_spec_F77
='${wl}-E'
14445 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14446 # Instead, shared libraries are loaded at an image base (0x10000000 by
14447 # default) and relocated if they conflict, which is a slow very memory
14448 # consuming and fragmenting process. To avoid this, we pick a random,
14449 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14450 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14451 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'
14452 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'
14455 linux
* | k
*bsd
*-gnu)
14456 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14458 case $cc_basename,$host_cpu in
14459 pgcc
*) # Portland Group C compiler
14460 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'
14461 tmp_addflag
=' $pic_flag'
14463 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14464 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'
14465 tmp_addflag
=' $pic_flag -Mnomain' ;;
14466 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14467 tmp_addflag
=' -i_dynamic' ;;
14468 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14469 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14470 ifc
* | ifort
*) # Intel Fortran compiler
14471 tmp_addflag
=' -nofor_main' ;;
14473 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14475 if test $supports_anon_versioning = yes; then
14476 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14478 $echo "local: *; };" >> $output_objdir/$libname.ver~
14479 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14481 link_all_deplibs_F77
=no
14487 netbsd
* | netbsdelf
*-gnu)
14488 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14489 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14492 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14493 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14498 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14502 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14503 *** create shared libraries on Solaris systems. Therefore, libtool
14504 *** is disabling shared libraries support. We urge you to upgrade GNU
14505 *** binutils to release 2.9.1 or newer. Another option is to modify
14506 *** your PATH or compiler configuration so that the native linker is
14507 *** used, and then restart.
14510 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14511 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14512 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14518 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14519 case `$LD -v 2>&1` in
14520 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14524 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14525 *** reliably create shared libraries on SCO systems. Therefore, libtool
14526 *** is disabling shared libraries support. We urge you to upgrade GNU
14527 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14528 *** your PATH or compiler configuration so that the native linker is
14529 *** used, and then restart.
14534 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14535 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14536 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14537 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14546 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14548 hardcode_direct_F77
=yes
14549 hardcode_shlibpath_var_F77
=no
14553 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14554 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14555 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14562 if test "$ld_shlibs_F77" = no
; then
14564 hardcode_libdir_flag_spec_F77
=
14565 export_dynamic_flag_spec_F77
=
14566 whole_archive_flag_spec_F77
=
14569 # PORTME fill in a description of your system's linker (not GNU ld)
14572 allow_undefined_flag_F77
=unsupported
14573 always_export_symbols_F77
=yes
14574 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'
14575 # Note: this linker hardcodes the directories in LIBPATH if there
14576 # are no directories specified by -L.
14577 hardcode_minus_L_F77
=yes
14578 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14579 # Neither direct hardcoding nor static linking is supported with a
14581 hardcode_direct_F77
=unsupported
14586 if test "$host_cpu" = ia64
; then
14587 # On IA64, the linker does run time linking by default, so we don't
14588 # have to do anything special.
14589 aix_use_runtimelinking
=no
14590 exp_sym_flag
='-Bexport'
14593 # If we're using GNU nm, then we don't want the "-C" option.
14594 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14595 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14596 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'
14598 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'
14600 aix_use_runtimelinking
=no
14602 # Test if we are trying to use run time linking or normal
14603 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14604 # need to do runtime linking.
14605 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14606 for ld_flag
in $LDFLAGS; do
14607 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14608 aix_use_runtimelinking
=yes
14615 exp_sym_flag
='-bexport'
14616 no_entry_flag
='-bnoentry'
14619 # When large executables or shared objects are built, AIX ld can
14620 # have problems creating the table of contents. If linking a library
14621 # or program results in "error TOC overflow" add -mminimal-toc to
14622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14625 archive_cmds_F77
=''
14626 hardcode_direct_F77
=yes
14627 hardcode_libdir_separator_F77
=':'
14628 link_all_deplibs_F77
=yes
14630 if test "$GCC" = yes; then
14631 case $host_os in aix4.
[012]|aix4.
[012].
*)
14632 # We only want to do this on AIX 4.2 and lower, the check
14633 # below for broken collect2 doesn't work under 4.3+
14634 collect2name
=`${CC} -print-prog-name=collect2`
14635 if test -f "$collect2name" && \
14636 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14638 # We have reworked collect2
14639 hardcode_direct_F77
=yes
14641 # We have old collect2
14642 hardcode_direct_F77
=unsupported
14643 # It fails to find uninstalled libraries when the uninstalled
14644 # path is not listed in the libpath. Setting hardcode_minus_L
14645 # to unsupported forces relinking
14646 hardcode_minus_L_F77
=yes
14647 hardcode_libdir_flag_spec_F77
='-L$libdir'
14648 hardcode_libdir_separator_F77
=
14652 shared_flag
='-shared'
14653 if test "$aix_use_runtimelinking" = yes; then
14654 shared_flag
="$shared_flag "'${wl}-G'
14658 if test "$host_cpu" = ia64
; then
14659 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14660 # chokes on -Wl,-G. The following line is correct:
14663 if test "$aix_use_runtimelinking" = yes; then
14664 shared_flag
='${wl}-G'
14666 shared_flag
='${wl}-bM:SRE'
14671 # It seems that -bexpall does not export symbols beginning with
14672 # underscore (_), so it is better to generate a list of symbols to export.
14673 always_export_symbols_F77
=yes
14674 if test "$aix_use_runtimelinking" = yes; then
14675 # Warning - without using the other runtime loading flags (-brtl),
14676 # -berok will link without error, but may produce a broken library.
14677 allow_undefined_flag_F77
='-berok'
14678 # Determine the default libpath from the value encoded in an empty executable.
14679 cat >conftest.
$ac_ext <<_ACEOF
14684 rm -f conftest.
$ac_objext conftest
$ac_exeext
14685 if { (ac_try
="$ac_link"
14686 case "(($ac_try" in
14687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_link") 2>conftest.er1
14693 grep -v '^ *+' conftest.er1 >conftest.err
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } && {
14698 test -z "$ac_f77_werror_flag" ||
14699 test ! -s conftest.err
14700 } && test -s conftest$ac_exeext &&
14701 $as_test_x conftest$ac_exeext; then
14703 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14705 # Check for a 64-bit object if we didn't find anything.
14706 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14716 conftest$ac_exeext conftest.$ac_ext
14717 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14719 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14720 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"
14722 if test "$host_cpu" = ia64; then
14723 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14724 allow_undefined_flag_F77="-z nodefs"
14725 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"
14727 # Determine the default libpath from the value encoded in an empty executable.
14728 cat >conftest.$ac_ext <<_ACEOF
14733 rm -f conftest.$ac_objext conftest$ac_exeext
14734 if { (ac_try="$ac_link"
14735 case "(($ac_try" in
14736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14737 *) ac_try_echo
=$ac_try;;
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_link") 2>conftest.er1
14742 grep -v '^ *+' conftest.er1
>conftest.err
14744 cat conftest.err
>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } && {
14747 test -z "$ac_f77_werror_flag" ||
14748 test ! -s conftest.err
14749 } && test -s conftest
$ac_exeext &&
14750 $as_test_x conftest
$ac_exeext; then
14752 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14754 # Check for a 64-bit object if we didn't find anything.
14755 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14758 echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.
$ac_ext >&5
14764 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14765 conftest
$ac_exeext conftest.
$ac_ext
14766 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14768 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14769 # Warning - without using the other run time loading flags,
14770 # -berok will link without error, but may produce a broken library.
14771 no_undefined_flag_F77
=' ${wl}-bernotok'
14772 allow_undefined_flag_F77
=' ${wl}-berok'
14773 # Exported symbols can be pulled into shared objects from archives
14774 whole_archive_flag_spec_F77
='$convenience'
14775 archive_cmds_need_lc_F77
=yes
14776 # This is similar to how AIX traditionally builds its shared libraries.
14777 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'
14783 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)'
14784 hardcode_libdir_flag_spec_F77
='-L$libdir'
14785 hardcode_minus_L_F77
=yes
14786 # see comment about different semantics on the GNU ld section
14791 export_dynamic_flag_spec_F77
=-rdynamic
14794 cygwin
* | mingw
* | pw32
*)
14795 # When not using gcc, we currently assume that we are using
14796 # Microsoft Visual C++.
14797 # hardcode_libdir_flag_spec is actually meaningless, as there is
14798 # no search path for DLLs.
14799 hardcode_libdir_flag_spec_F77
=' '
14800 allow_undefined_flag_F77
=unsupported
14801 # Tell ltmain to make .lib files, not .a files.
14803 # Tell ltmain to make .dll files, not .so files.
14805 # FIXME: Setting linknames here is a bad hack.
14806 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14807 # The linker will automatically build a .lib file if we build a DLL.
14808 old_archive_From_new_cmds_F77
='true'
14809 # FIXME: Should let the user specify the lib program.
14810 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14811 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14812 enable_shared_with_static_runtimes_F77
=yes
14815 darwin
* | rhapsody
*)
14817 rhapsody
* | darwin1.
[012])
14818 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14821 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14822 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14824 case ${MACOSX_DEPLOYMENT_TARGET} in
14826 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14829 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14835 archive_cmds_need_lc_F77
=no
14836 hardcode_direct_F77
=no
14837 hardcode_automatic_F77
=yes
14838 hardcode_shlibpath_var_F77
=unsupported
14839 whole_archive_flag_spec_F77
=''
14840 link_all_deplibs_F77
=yes
14841 if test "$GCC" = yes ; then
14842 output_verbose_link_cmd
='echo'
14843 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14844 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14845 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14846 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}'
14847 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}'
14849 case $cc_basename in
14851 output_verbose_link_cmd
='echo'
14852 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14853 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14854 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14855 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14856 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}'
14866 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14867 hardcode_libdir_flag_spec_F77
='-L$libdir'
14868 hardcode_shlibpath_var_F77
=no
14875 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14876 # support. Future versions do this automatically, but an explicit c++rt0.o
14877 # does not break anything, and helps significantly (at the cost of a little
14880 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14881 hardcode_libdir_flag_spec_F77
='-R$libdir'
14882 hardcode_direct_F77
=yes
14883 hardcode_shlibpath_var_F77
=no
14886 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14888 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14889 hardcode_direct_F77
=yes
14890 hardcode_minus_L_F77
=yes
14891 hardcode_shlibpath_var_F77
=no
14894 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14895 freebsd
* | dragonfly
*)
14896 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14897 hardcode_libdir_flag_spec_F77
='-R$libdir'
14898 hardcode_direct_F77
=yes
14899 hardcode_shlibpath_var_F77
=no
14903 if test "$GCC" = yes; then
14904 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'
14906 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'
14908 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14909 hardcode_libdir_separator_F77
=:
14910 hardcode_direct_F77
=yes
14912 # hardcode_minus_L: Not really in the search PATH,
14913 # but as the default location of the library.
14914 hardcode_minus_L_F77
=yes
14915 export_dynamic_flag_spec_F77
='${wl}-E'
14919 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14920 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14922 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14924 if test "$with_gnu_ld" = no
; then
14925 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14926 hardcode_libdir_separator_F77
=:
14928 hardcode_direct_F77
=yes
14929 export_dynamic_flag_spec_F77
='${wl}-E'
14931 # hardcode_minus_L: Not really in the search PATH,
14932 # but as the default location of the library.
14933 hardcode_minus_L_F77
=yes
14938 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14941 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14944 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14947 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14953 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14956 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14959 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14963 if test "$with_gnu_ld" = no
; then
14964 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14965 hardcode_libdir_separator_F77
=:
14969 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14970 hardcode_direct_F77
=no
14971 hardcode_shlibpath_var_F77
=no
14974 hardcode_direct_F77
=yes
14975 export_dynamic_flag_spec_F77
='${wl}-E'
14977 # hardcode_minus_L: Not really in the search PATH,
14978 # but as the default location of the library.
14979 hardcode_minus_L_F77
=yes
14985 irix5
* | irix6
* | nonstopux
*)
14986 if test "$GCC" = yes; then
14987 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'
14989 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'
14990 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14992 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14993 hardcode_libdir_separator_F77
=:
14994 link_all_deplibs_F77
=yes
14997 netbsd
* | netbsdelf
*-gnu)
14998 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14999 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15001 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15003 hardcode_libdir_flag_spec_F77
='-R$libdir'
15004 hardcode_direct_F77
=yes
15005 hardcode_shlibpath_var_F77
=no
15009 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15010 hardcode_direct_F77
=yes
15011 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15012 hardcode_libdir_separator_F77
=:
15013 hardcode_shlibpath_var_F77
=no
15017 hardcode_direct_F77
=yes
15018 hardcode_shlibpath_var_F77
=no
15019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15020 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15021 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15022 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15023 export_dynamic_flag_spec_F77
='${wl}-E'
15026 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15027 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15028 hardcode_libdir_flag_spec_F77
='-R$libdir'
15031 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15032 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15039 hardcode_libdir_flag_spec_F77
='-L$libdir'
15040 hardcode_minus_L_F77
=yes
15041 allow_undefined_flag_F77
=unsupported
15042 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'
15043 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15047 if test "$GCC" = yes; then
15048 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15049 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'
15051 allow_undefined_flag_F77
=' -expect_unresolved \*'
15052 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'
15054 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15055 hardcode_libdir_separator_F77
=:
15058 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15059 if test "$GCC" = yes; then
15060 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15061 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'
15062 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15064 allow_undefined_flag_F77
=' -expect_unresolved \*'
15065 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'
15066 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~
15067 $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'
15069 # Both c and cxx compiler support -rpath directly
15070 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
15072 hardcode_libdir_separator_F77
=:
15076 no_undefined_flag_F77
=' -z text'
15077 if test "$GCC" = yes; then
15079 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15080 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15081 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15084 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15085 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15086 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15088 hardcode_libdir_flag_spec_F77
='-R$libdir'
15089 hardcode_shlibpath_var_F77
=no
15091 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15093 # The compiler driver will combine linker options so we
15094 # cannot just pass the convience library names through
15095 # without $wl, iff we do not link with $LD.
15096 # Luckily, gcc supports the same syntax we need for Sun Studio.
15097 # Supported since Solaris 2.6 (maybe 2.5.1?)
15100 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
15102 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15105 link_all_deplibs_F77
=yes
15109 if test "x$host_vendor" = xsequent
; then
15110 # Use $CC to link under sequent, because it throws in some extra .o
15111 # files that make .init and .fini sections work.
15112 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15114 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15116 hardcode_libdir_flag_spec_F77
='-L$libdir'
15117 hardcode_direct_F77
=yes
15118 hardcode_minus_L_F77
=yes
15119 hardcode_shlibpath_var_F77
=no
15123 case $host_vendor in
15125 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15126 hardcode_direct_F77
=yes # is this really true???
15129 ## LD is ld it makes a PLAMLIB
15130 ## CC just makes a GrossModule.
15131 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15132 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15133 hardcode_direct_F77
=no
15136 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15137 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15140 runpath_var
='LD_RUN_PATH'
15141 hardcode_shlibpath_var_F77
=no
15145 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15146 hardcode_shlibpath_var_F77
=no
15147 export_dynamic_flag_spec_F77
='-Bexport'
15151 if test -d /usr
/nec
; then
15152 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15153 hardcode_shlibpath_var_F77
=no
15154 runpath_var
=LD_RUN_PATH
15155 hardcode_runpath_var
=yes
15160 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
15161 no_undefined_flag_F77
='${wl}-z,text'
15162 archive_cmds_need_lc_F77
=no
15163 hardcode_shlibpath_var_F77
=no
15164 runpath_var
='LD_RUN_PATH'
15166 if test "$GCC" = yes; then
15167 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15168 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15171 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15175 sysv5
* | sco3.2v5
* | sco5v6
*)
15176 # Note: We can NOT use -z defs as we might desire, because we do not
15177 # link with -lc, and that would cause any symbols used from libc to
15178 # always be unresolved, which means just about no library would
15179 # ever link correctly. If we're not using GNU ld we use -z text
15180 # though, which does catch some bad symbols but isn't as heavy-handed
15182 no_undefined_flag_F77
='${wl}-z,text'
15183 allow_undefined_flag_F77
='${wl}-z,nodefs'
15184 archive_cmds_need_lc_F77
=no
15185 hardcode_shlibpath_var_F77
=no
15186 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15187 hardcode_libdir_separator_F77
=':'
15188 link_all_deplibs_F77
=yes
15189 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15190 runpath_var
='LD_RUN_PATH'
15192 if test "$GCC" = yes; then
15193 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15197 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15202 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15203 hardcode_libdir_flag_spec_F77
='-L$libdir'
15204 hardcode_shlibpath_var_F77
=no
15213 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15214 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15215 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15218 # Do we need to explicitly link libc?
15220 case "x$archive_cmds_need_lc_F77" in
15222 # Assume -lc should be added
15223 archive_cmds_need_lc_F77
=yes
15225 if test "$enable_shared" = yes && test "$GCC" = yes; then
15226 case $archive_cmds_F77 in
15228 # FIXME: we may have to deal with multi-command sequences.
15231 # Test whether the compiler implicitly links with -lc since on some
15232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15233 # to ld, don't add -lc before -lgcc.
15234 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15235 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15237 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15240 (eval $ac_compile) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } 2>conftest.err
; then
15246 libobjs
=conftest.
$ac_objext
15248 wl
=$lt_prog_compiler_wl_F77
15249 pic_flag
=$lt_prog_compiler_pic_F77
15255 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15256 allow_undefined_flag_F77
=
15257 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15258 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }
15263 archive_cmds_need_lc_F77
=no
15265 archive_cmds_need_lc_F77
=yes
15267 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15269 cat conftest.err
1>&5
15272 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15273 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15280 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15281 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15282 library_names_spec
=
15283 libname_spec
='lib$name'
15287 postuninstall_cmds
=
15291 shlibpath_overrides_runpath
=unknown
15293 dynamic_linker
="$host_os ld.so"
15294 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15295 if test "$GCC" = yes; then
15296 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15297 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15298 # if the path contains ";" then we assume it to be the separator
15299 # otherwise default to the standard path separator (i.e. ":") - it is
15300 # assumed that no part of a normal pathname contains ";" but that should
15301 # okay in the real world where ";" in dirpaths is itself problematic.
15302 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15304 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15307 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15309 need_lib_prefix
=unknown
15310 hardcode_into_libs
=no
15312 # when you set need_version to no, make sure it does not cause -set_version
15313 # flags to be left without arguments
15314 need_version
=unknown
15319 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15320 shlibpath_var
=LIBPATH
15322 # AIX 3 has no versioning support, so we append a major version to the name.
15323 soname_spec
='${libname}${release}${shared_ext}$major'
15330 hardcode_into_libs
=yes
15331 if test "$host_cpu" = ia64
; then
15332 # AIX 5 supports IA64
15333 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15334 shlibpath_var
=LD_LIBRARY_PATH
15336 # With GCC up to 2.95.x, collect2 would create an import file
15337 # for dependence libraries. The import file would start with
15338 # the line `#! .'. This would cause the generated library to
15339 # depend on `.', always an invalid library. This was fixed in
15340 # development snapshots of GCC prior to 3.0.
15342 aix4 | aix4.
[01] | aix4.
[01].
*)
15343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15345 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15348 can_build_shared
=no
15352 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15353 # soname into executable. Probably we can add versioning support to
15354 # collect2, so additional links can be useful in future.
15355 if test "$aix_use_runtimelinking" = yes; then
15356 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15357 # instead of lib<name>.a to let people know that these are not
15358 # typical AIX shared libraries.
15359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361 # We preserve .a as extension for shared libraries through AIX4.2
15362 # and later when we are not doing run time linking.
15363 library_names_spec
='${libname}${release}.a $libname.a'
15364 soname_spec
='${libname}${release}${shared_ext}$major'
15366 shlibpath_var
=LIBPATH
15371 library_names_spec
='$libname.ixlibrary $libname.a'
15372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15373 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'
15377 library_names_spec
='${libname}${shared_ext}'
15378 dynamic_linker
="$host_os ld.so"
15379 shlibpath_var
=LIBRARY_PATH
15385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386 soname_spec
='${libname}${release}${shared_ext}$major'
15387 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15388 shlibpath_var
=LD_LIBRARY_PATH
15389 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15390 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15391 # the default ld.so.conf also contains /usr/contrib/lib and
15392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15393 # libtool to hard-code these into programs
15396 cygwin
* | mingw
* | pw32
*)
15397 version_type
=windows
15402 case $GCC,$host_os in
15403 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15404 library_names_spec
='$libname.dll.a'
15405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15406 postinstall_cmds
='base_file=`basename \${file}`~
15407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15408 dldir=$destdir/`dirname \$dlpath`~
15409 test -d \$dldir || mkdir -p \$dldir~
15410 $install_prog $dir/$dlname \$dldir/$dlname~
15411 chmod a+x \$dldir/$dlname'
15412 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15413 dlpath=$dir/\$dldll~
15415 shlibpath_overrides_runpath
=yes
15419 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15420 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15421 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15424 # MinGW DLLs use traditional 'lib' prefix
15425 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15426 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15427 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15428 # It is most probably a Windows format PATH printed by
15429 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15430 # path with ; separators, and with drive letters. We can handle the
15431 # drive letters (cygwin fileutils understands them), so leave them,
15432 # especially as we might pass files found there to a mingw objdump,
15433 # which wouldn't understand a cygwinified path. Ahh.
15434 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15436 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15440 # pw32 DLLs use 'pw' prefix rather than 'lib'
15441 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15447 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15450 dynamic_linker
='Win32 ld.exe'
15451 # FIXME: first we should search . and the directory the executable is in
15455 darwin
* | rhapsody
*)
15456 dynamic_linker
="$host_os dyld"
15457 version_type
=darwin
15460 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15461 soname_spec
='${libname}${release}${major}$shared_ext'
15462 shlibpath_overrides_runpath
=yes
15463 shlibpath_var
=DYLD_LIBRARY_PATH
15464 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15465 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15466 if test "$GCC" = yes; then
15467 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15469 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15471 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15478 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15479 soname_spec
='${libname}${release}${shared_ext}$major'
15480 shlibpath_var
=LD_LIBRARY_PATH
15487 freebsd
* | dragonfly
*)
15488 # DragonFly does not have aout. When/if they implement a new
15489 # versioning mechanism, adjust this.
15490 if test -x /usr
/bin
/objformat
; then
15491 objformat
=`/usr/bin/objformat`
15494 freebsd
[123]*) objformat
=aout
;;
15495 *) objformat
=elf
;;
15498 version_type
=freebsd-
$objformat
15499 case $version_type in
15501 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15506 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15510 shlibpath_var
=LD_LIBRARY_PATH
15513 shlibpath_overrides_runpath
=yes
15515 freebsd3.
[01]* | freebsdelf3.
[01]*)
15516 shlibpath_overrides_runpath
=yes
15517 hardcode_into_libs
=yes
15519 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15520 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15521 shlibpath_overrides_runpath
=no
15522 hardcode_into_libs
=yes
15524 freebsd
*) # from 4.6 on
15525 shlibpath_overrides_runpath
=yes
15526 hardcode_into_libs
=yes
15535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15536 soname_spec
='${libname}${release}${shared_ext}$major'
15537 shlibpath_var
=LD_LIBRARY_PATH
15538 hardcode_into_libs
=yes
15541 hpux9
* | hpux10
* | hpux11
*)
15542 # Give a soname corresponding to the major version so that dld.sl refuses to
15543 # link against other versions.
15550 hardcode_into_libs
=yes
15551 dynamic_linker
="$host_os dld.so"
15552 shlibpath_var
=LD_LIBRARY_PATH
15553 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15555 soname_spec
='${libname}${release}${shared_ext}$major'
15556 if test "X$HPUX_IA64_MODE" = X32
; then
15557 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15559 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15561 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15565 hardcode_into_libs
=yes
15566 dynamic_linker
="$host_os dld.sl"
15567 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15568 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570 soname_spec
='${libname}${release}${shared_ext}$major'
15571 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15572 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15576 dynamic_linker
="$host_os dld.sl"
15577 shlibpath_var
=SHLIB_PATH
15578 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 soname_spec
='${libname}${release}${shared_ext}$major'
15583 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15584 postinstall_cmds
='chmod 555 $lib'
15591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15592 soname_spec
='${libname}${release}${shared_ext}$major'
15593 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15594 shlibpath_var
=LD_LIBRARY_PATH
15595 shlibpath_overrides_runpath
=no
15596 hardcode_into_libs
=yes
15599 irix5
* | irix6
* | nonstopux
*)
15601 nonstopux
*) version_type
=nonstopux
;;
15603 if test "$lt_cv_prog_gnu_ld" = yes; then
15611 soname_spec
='${libname}${release}${shared_ext}$major'
15612 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15614 irix5
* | nonstopux
*)
15615 libsuff
= shlibsuff
=
15618 case $LD in # libtool.m4 will add one of these switches to LD
15619 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15620 libsuff
= shlibsuff
= libmagic
=32-bit;;
15621 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15622 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15623 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15624 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15625 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15629 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15630 shlibpath_overrides_runpath
=no
15631 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15632 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15633 hardcode_into_libs
=yes
15636 # No shared lib support for Linux oldld, aout, or coff.
15637 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15641 # This must be Linux ELF.
15642 linux
* | k
*bsd
*-gnu)
15646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 soname_spec
='${libname}${release}${shared_ext}$major'
15648 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15649 shlibpath_var
=LD_LIBRARY_PATH
15650 shlibpath_overrides_runpath
=no
15651 # This implies no fast_install, which is unacceptable.
15652 # Some rework will be needed to allow for fast_install
15653 # before this can be enabled.
15654 hardcode_into_libs
=yes
15656 # Append ld.so.conf contents to the search path
15657 if test -f /etc
/ld.so.conf
; then
15658 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15659 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15662 # We used to test for /lib/ld.so.1 and disable shared libraries on
15663 # powerpc, because MkLinux only supported shared libraries with the
15664 # GNU dynamic linker. Since this was broken with cross compilers,
15665 # most powerpc-linux boxes support dynamic linking these days and
15666 # people can always --disable-shared, the test was removed, and we
15667 # assume the GNU/Linux dynamic linker is in use.
15668 dynamic_linker
='GNU/Linux ld.so'
15675 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15676 soname_spec
='${libname}${release}${shared_ext}$major'
15677 shlibpath_var
=LD_LIBRARY_PATH
15678 shlibpath_overrides_runpath
=no
15679 hardcode_into_libs
=yes
15680 dynamic_linker
='NetBSD ld.elf_so'
15687 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15688 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15689 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15690 dynamic_linker
='NetBSD (a.out) ld.so'
15692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15693 soname_spec
='${libname}${release}${shared_ext}$major'
15694 dynamic_linker
='NetBSD ld.elf_so'
15696 shlibpath_var
=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath
=yes
15698 hardcode_into_libs
=yes
15703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704 shlibpath_var
=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath
=yes
15712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec
='${libname}${release}${shared_ext}$major'
15714 shlibpath_var
=LD_LIBRARY_PATH
15715 shlibpath_overrides_runpath
=yes
15720 sys_lib_dlsearch_path_spec
="/usr/lib"
15722 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15724 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15725 *) need_version
=no
;;
15727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15728 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15729 shlibpath_var
=LD_LIBRARY_PATH
15730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15732 openbsd2.
[89] | openbsd2.
[89].
*)
15733 shlibpath_overrides_runpath
=no
15736 shlibpath_overrides_runpath
=yes
15740 shlibpath_overrides_runpath
=yes
15745 libname_spec
='$name'
15748 library_names_spec
='$libname${shared_ext} $libname.a'
15749 dynamic_linker
='OS/2 ld.exe'
15750 shlibpath_var
=LIBPATH
15753 osf3
* | osf4
* | osf5
*)
15757 soname_spec
='${libname}${release}${shared_ext}$major'
15758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 shlibpath_var
=LD_LIBRARY_PATH
15760 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15761 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769 soname_spec
='${libname}${release}${shared_ext}$major'
15770 shlibpath_var
=LD_LIBRARY_PATH
15771 shlibpath_overrides_runpath
=yes
15772 hardcode_into_libs
=yes
15773 # ldd complains unless libraries are executable
15774 postinstall_cmds
='chmod +x $lib'
15779 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15780 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15781 shlibpath_var
=LD_LIBRARY_PATH
15782 shlibpath_overrides_runpath
=yes
15783 if test "$with_gnu_ld" = yes; then
15791 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792 soname_spec
='${libname}${release}${shared_ext}$major'
15793 shlibpath_var
=LD_LIBRARY_PATH
15794 case $host_vendor in
15796 shlibpath_overrides_runpath
=no
15798 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15799 runpath_var
=LD_RUN_PATH
15807 shlibpath_overrides_runpath
=no
15808 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15814 if test -d /usr
/nec
;then
15816 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15817 soname_spec
='$libname${shared_ext}.$major'
15818 shlibpath_var
=LD_LIBRARY_PATH
15822 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15823 version_type
=freebsd-elf
15826 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15827 soname_spec
='${libname}${release}${shared_ext}$major'
15828 shlibpath_var
=LD_LIBRARY_PATH
15829 hardcode_into_libs
=yes
15830 if test "$with_gnu_ld" = yes; then
15831 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15832 shlibpath_overrides_runpath
=no
15834 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15835 shlibpath_overrides_runpath
=yes
15838 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15842 sys_lib_dlsearch_path_spec
='/usr/lib'
15847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15848 soname_spec
='${libname}${release}${shared_ext}$major'
15849 shlibpath_var
=LD_LIBRARY_PATH
15856 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15857 echo "${ECHO_T}$dynamic_linker" >&6; }
15858 test "$dynamic_linker" = no
&& can_build_shared
=no
15860 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15861 if test "$GCC" = yes; then
15862 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15865 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15866 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15867 hardcode_action_F77
=
15868 if test -n "$hardcode_libdir_flag_spec_F77" || \
15869 test -n "$runpath_var_F77" || \
15870 test "X$hardcode_automatic_F77" = "Xyes" ; then
15872 # We can hardcode non-existant directories.
15873 if test "$hardcode_direct_F77" != no
&&
15874 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15875 # have to relink, otherwise we might link with an installed library
15876 # when we should be linking with a yet-to-be-installed one
15877 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15878 test "$hardcode_minus_L_F77" != no
; then
15879 # Linking always hardcodes the temporary library directory.
15880 hardcode_action_F77
=relink
15882 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15883 hardcode_action_F77
=immediate
15886 # We cannot hardcode anything, or else we can only hardcode existing
15888 hardcode_action_F77
=unsupported
15890 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15891 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15893 if test "$hardcode_action_F77" = relink
; then
15894 # Fast installation is not supported
15895 enable_fast_install
=no
15896 elif test "$shlibpath_overrides_runpath" = yes ||
15897 test "$enable_shared" = no
; then
15898 # Fast installation is not necessary
15899 enable_fast_install
=needless
15903 # The else clause should only fire when bootstrapping the
15904 # libtool distribution, otherwise you forgot to ship ltmain.sh
15905 # with your package, and you will get complaints that there are
15906 # no rules to generate ltmain.sh.
15907 if test -f "$ltmain"; then
15908 # See if we are running on zsh, and set the options which allow our commands through
15909 # without removal of \ escapes.
15910 if test -n "${ZSH_VERSION+set}" ; then
15911 setopt NO_GLOB_SUBST
15913 # Now quote all the things that may contain metacharacters while being
15914 # careful not to overquote the AC_SUBSTed values. We take copies of the
15915 # variables and quote the copies for generation of the libtool script.
15916 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15918 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15919 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15920 deplibs_check_method reload_flag reload_cmds need_locks \
15921 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15922 lt_cv_sys_global_symbol_to_c_name_address \
15923 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15924 old_postinstall_cmds old_postuninstall_cmds \
15928 lt_prog_compiler_wl_F77 \
15929 lt_prog_compiler_pic_F77 \
15930 lt_prog_compiler_static_F77 \
15931 lt_prog_compiler_no_builtin_flag_F77 \
15932 export_dynamic_flag_spec_F77 \
15933 thread_safe_flag_spec_F77 \
15934 whole_archive_flag_spec_F77 \
15935 enable_shared_with_static_runtimes_F77 \
15936 old_archive_cmds_F77 \
15937 old_archive_from_new_cmds_F77 \
15938 predep_objects_F77 \
15939 postdep_objects_F77 \
15942 compiler_lib_search_path_F77 \
15944 archive_expsym_cmds_F77 \
15945 postinstall_cmds_F77 \
15946 postuninstall_cmds_F77 \
15947 old_archive_from_expsyms_cmds_F77 \
15948 allow_undefined_flag_F77 \
15949 no_undefined_flag_F77 \
15950 export_symbols_cmds_F77 \
15951 hardcode_libdir_flag_spec_F77 \
15952 hardcode_libdir_flag_spec_ld_F77 \
15953 hardcode_libdir_separator_F77 \
15954 hardcode_automatic_F77 \
15956 module_expsym_cmds_F77 \
15957 lt_cv_prog_compiler_c_o_F77 \
15958 exclude_expsyms_F77 \
15959 include_expsyms_F77
; do
15962 old_archive_cmds_F77 | \
15963 old_archive_from_new_cmds_F77 | \
15964 archive_cmds_F77 | \
15965 archive_expsym_cmds_F77 | \
15966 module_cmds_F77 | \
15967 module_expsym_cmds_F77 | \
15968 old_archive_from_expsyms_cmds_F77 | \
15969 export_symbols_cmds_F77 | \
15970 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15971 postinstall_cmds | postuninstall_cmds | \
15972 old_postinstall_cmds | old_postuninstall_cmds | \
15973 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15974 # Double-quote double-evaled strings.
15975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15978 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15984 *'\$0 --fallback-echo"')
15985 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15991 cat <<__EOF__ >> "$cfgfile"
15992 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15994 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15996 # Shell to use when invoking shell scripts.
15999 # Whether or not to build shared libraries.
16000 build_libtool_libs=$enable_shared
16002 # Whether or not to build static libraries.
16003 build_old_libs=$enable_static
16005 # Whether or not to add -lc for building shared libraries.
16006 build_libtool_need_lc=$archive_cmds_need_lc_F77
16008 # Whether or not to disallow shared libs when runtime libs are static
16009 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16011 # Whether or not to optimize for fast installation.
16012 fast_install=$enable_fast_install
16015 host_alias=$host_alias
16019 # The build system.
16020 build_alias=$build_alias
16024 # An echo program that does not interpret backslashes.
16029 AR_FLAGS=$lt_AR_FLAGS
16034 # LTCC compiler flags.
16035 LTCFLAGS=$lt_LTCFLAGS
16037 # A language-specific compiler.
16038 CC=$lt_compiler_F77
16040 # Is the compiler the GNU C compiler?
16046 # The linker used to build libraries.
16049 # Whether we need hard or soft links.
16052 # A BSD-compatible nm program.
16055 # A symbol stripping program
16058 # Used to examine libraries when file_magic_cmd begins "file"
16059 MAGIC_CMD=$MAGIC_CMD
16061 # Used on cygwin: DLL creation program.
16064 # Used on cygwin: object dumper.
16067 # Used on cygwin: assembler.
16070 # The name of the directory that contains temporary libtool files.
16073 # How to create reloadable object files.
16074 reload_flag=$lt_reload_flag
16075 reload_cmds=$lt_reload_cmds
16077 # How to pass a linker flag through the compiler.
16078 wl=$lt_lt_prog_compiler_wl_F77
16080 # Object file suffix (normally "o").
16081 objext="$ac_objext"
16083 # Old archive suffix (normally "a").
16086 # Shared library suffix (normally ".so").
16087 shrext_cmds='$shrext_cmds'
16089 # Executable file suffix (normally "").
16092 # Additional compiler flags for building library objects.
16093 pic_flag=$lt_lt_prog_compiler_pic_F77
16096 # What is the maximum length of a command?
16097 max_cmd_len=$lt_cv_sys_max_cmd_len
16099 # Does compiler simultaneously support -c and -o options?
16100 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16102 # Must we lock files when doing compilation?
16103 need_locks=$lt_need_locks
16105 # Do we need the lib prefix for modules?
16106 need_lib_prefix=$need_lib_prefix
16108 # Do we need a version for libraries?
16109 need_version=$need_version
16111 # Whether dlopen is supported.
16112 dlopen_support=$enable_dlopen
16114 # Whether dlopen of programs is supported.
16115 dlopen_self=$enable_dlopen_self
16117 # Whether dlopen of statically linked programs is supported.
16118 dlopen_self_static=$enable_dlopen_self_static
16120 # Compiler flag to prevent dynamic linking.
16121 link_static_flag=$lt_lt_prog_compiler_static_F77
16123 # Compiler flag to turn off builtin functions.
16124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16126 # Compiler flag to allow reflexive dlopens.
16127 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16129 # Compiler flag to generate shared objects directly from archives.
16130 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16132 # Compiler flag to generate thread-safe objects.
16133 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16135 # Library versioning type.
16136 version_type=$version_type
16138 # Format of library name prefix.
16139 libname_spec=$lt_libname_spec
16141 # List of archive names. First name is the real one, the rest are links.
16142 # The last name is the one that the linker finds with -lNAME.
16143 library_names_spec=$lt_library_names_spec
16145 # The coded name of the library, if different from the real name.
16146 soname_spec=$lt_soname_spec
16148 # Commands used to build and install an old-style archive.
16150 old_archive_cmds=$lt_old_archive_cmds_F77
16151 old_postinstall_cmds=$lt_old_postinstall_cmds
16152 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16154 # Create an old-style archive from a shared archive.
16155 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16157 # Create a temporary old-style archive to link instead of a shared archive.
16158 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16160 # Commands used to build and install a shared archive.
16161 archive_cmds=$lt_archive_cmds_F77
16162 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16163 postinstall_cmds=$lt_postinstall_cmds
16164 postuninstall_cmds=$lt_postuninstall_cmds
16166 # Commands used to build a loadable module (assumed same as above if empty)
16167 module_cmds=$lt_module_cmds_F77
16168 module_expsym_cmds=$lt_module_expsym_cmds_F77
16170 # Commands to strip libraries.
16171 old_striplib=$lt_old_striplib
16172 striplib=$lt_striplib
16174 # Dependencies to place before the objects being linked to create a
16176 predep_objects=$lt_predep_objects_F77
16178 # Dependencies to place after the objects being linked to create a
16180 postdep_objects=$lt_postdep_objects_F77
16182 # Dependencies to place before the objects being linked to create a
16184 predeps=$lt_predeps_F77
16186 # Dependencies to place after the objects being linked to create a
16188 postdeps=$lt_postdeps_F77
16190 # The library search path used internally by the compiler when linking
16191 # a shared library.
16192 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16194 # Method to check whether dependent libraries are shared objects.
16195 deplibs_check_method=$lt_deplibs_check_method
16197 # Command to use when deplibs_check_method == file_magic.
16198 file_magic_cmd=$lt_file_magic_cmd
16200 # Flag that allows shared libraries with undefined symbols to be built.
16201 allow_undefined_flag=$lt_allow_undefined_flag_F77
16203 # Flag that forces no undefined symbols.
16204 no_undefined_flag=$lt_no_undefined_flag_F77
16206 # Commands used to finish a libtool library installation in a directory.
16207 finish_cmds=$lt_finish_cmds
16209 # Same as above, but a single script fragment to be evaled but not shown.
16210 finish_eval=$lt_finish_eval
16212 # Take the output of nm and produce a listing of raw symbols and C names.
16213 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16215 # Transform the output of nm in a proper C declaration
16216 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16218 # Transform the output of nm in a C name address pair
16219 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16221 # This is the shared library runtime path variable.
16222 runpath_var=$runpath_var
16224 # This is the shared library path variable.
16225 shlibpath_var=$shlibpath_var
16227 # Is shlibpath searched before the hard-coded library search path?
16228 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16230 # How to hardcode a shared library path into an executable.
16231 hardcode_action=$hardcode_action_F77
16233 # Whether we should hardcode library paths into libraries.
16234 hardcode_into_libs=$hardcode_into_libs
16236 # Flag to hardcode \$libdir into a binary during linking.
16237 # This must work even if \$libdir does not exist.
16238 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16240 # If ld is used when linking, flag to hardcode \$libdir into
16241 # a binary during linking. This must work even if \$libdir does
16243 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16245 # Whether we need a single -rpath flag with a separated argument.
16246 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16248 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16249 # resulting binary.
16250 hardcode_direct=$hardcode_direct_F77
16252 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16253 # resulting binary.
16254 hardcode_minus_L=$hardcode_minus_L_F77
16256 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16257 # the resulting binary.
16258 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16260 # Set to yes if building a shared library automatically hardcodes DIR into the library
16261 # and all subsequent libraries and executables linked against it.
16262 hardcode_automatic=$hardcode_automatic_F77
16264 # Variables whose values should be saved in libtool wrapper scripts and
16265 # restored at relink time.
16266 variables_saved_for_relink="$variables_saved_for_relink"
16268 # Whether libtool must link a program against all its dependency libraries.
16269 link_all_deplibs=$link_all_deplibs_F77
16271 # Compile-time system search path for libraries
16272 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16274 # Run-time system search path for libraries
16275 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16277 # Fix the shell variable \$srcfile for the compiler.
16278 fix_srcfile_path="$fix_srcfile_path_F77"
16280 # Set to yes if exported symbols are required.
16281 always_export_symbols=$always_export_symbols_F77
16283 # The commands to list exported symbols.
16284 export_symbols_cmds=$lt_export_symbols_cmds_F77
16286 # The commands to extract the exported symbol list from a shared archive.
16287 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16289 # Symbols that should not be listed in the preloaded symbols.
16290 exclude_expsyms=$lt_exclude_expsyms_F77
16292 # Symbols that must always be exported.
16293 include_expsyms=$lt_include_expsyms_F77
16295 # ### END LIBTOOL TAG CONFIG: $tagname
16301 # If there is no Makefile yet, we rely on a make rule to execute
16302 # `config.status --recheck' to rerun these tests and create the
16303 # libtool script then.
16304 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16305 if test -f "$ltmain_in"; then
16306 test -f Makefile
&& make "$ltmain"
16312 ac_cpp
='$CPP $CPPFLAGS'
16313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16325 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16328 # Source file extension for Java test sources.
16331 # Object file extension for compiled Java test sources.
16335 # Code to be used in simple compile tests
16336 lt_simple_compile_test_code
="class foo {}\n"
16338 # Code to be used in simple link tests
16339 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
16341 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16343 # If no C compiler was specified, use CC.
16346 # If no C compiler flags were specified, use CFLAGS.
16347 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16349 # Allow CC to be a program name with arguments.
16353 # save warnings/boilerplate of simple test code
16354 ac_outfile
=conftest.
$ac_objext
16355 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
16356 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16357 _lt_compiler_boilerplate
=`cat conftest.err`
16360 ac_outfile
=conftest.
$ac_objext
16361 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
16362 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16363 _lt_linker_boilerplate
=`cat conftest.err`
16367 # Allow CC to be a program name with arguments.
16372 for cc_temp
in $compiler""; do
16374 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16375 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16380 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16383 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16384 archive_cmds_need_lc_GCJ
=no
16386 old_archive_cmds_GCJ
=$old_archive_cmds
16389 lt_prog_compiler_no_builtin_flag_GCJ
=
16391 if test "$GCC" = yes; then
16392 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16395 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16396 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16397 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 lt_cv_prog_compiler_rtti_exceptions
=no
16401 ac_outfile
=conftest.
$ac_objext
16402 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16403 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16404 # Insert the option either (1) after the last *FLAGS variable, or
16405 # (2) before a word containing "conftest.", or (3) at the end.
16406 # Note that $ac_compile itself does not contain backslashes and begins
16407 # with a dollar sign (not a hyphen), so the echo should work correctly.
16408 # The option is referenced via a variable to avoid confusing sed.
16409 lt_compile
=`echo "$ac_compile" | $SED \
16410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16412 -e 's:$: $lt_compiler_flag:'`
16413 (eval echo "\"\$as_me:16413: $lt_compile\"" >&5)
16414 (eval "$lt_compile" 2>conftest.err
)
16416 cat conftest.err
>&5
16417 echo "$as_me:16417: \$? = $ac_status" >&5
16418 if (exit $ac_status) && test -s "$ac_outfile"; then
16419 # The compiler can only warn and ignore the option if not recognized
16420 # So say no if there are warnings other than the usual output.
16421 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16422 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16423 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16424 lt_cv_prog_compiler_rtti_exceptions
=yes
16430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16431 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16433 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16434 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16441 lt_prog_compiler_wl_GCJ
=
16442 lt_prog_compiler_pic_GCJ
=
16443 lt_prog_compiler_static_GCJ
=
16445 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16446 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16448 if test "$GCC" = yes; then
16449 lt_prog_compiler_wl_GCJ
='-Wl,'
16450 lt_prog_compiler_static_GCJ
='-static'
16454 # All AIX code is PIC.
16455 if test "$host_cpu" = ia64
; then
16456 # AIX 5 now supports IA64 processor
16457 lt_prog_compiler_static_GCJ
='-Bstatic'
16462 # FIXME: we need at least 68020 code to build shared libraries, but
16463 # adding the `-m68020' flag to GCC prevents building anything better,
16465 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16468 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16469 # PIC is the default for these OSes.
16472 mingw
* | pw32
* | os2
*)
16473 # This hack is so that the source file can tell whether it is being
16474 # built for inclusion in a dll (and should export symbols for example).
16475 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16478 darwin
* | rhapsody
*)
16479 # PIC is the default on this platform
16480 # Common symbols not allowed in MH_DYLIB files
16481 lt_prog_compiler_pic_GCJ
='-fno-common'
16485 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16486 # Instead, we relocate shared libraries at runtime.
16490 # Just because we use GCC doesn't mean we suddenly get shared libraries
16491 # on systems that don't support them.
16492 lt_prog_compiler_can_build_shared_GCJ
=no
16497 if test -d /usr
/nec
; then
16498 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16503 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16504 # not for PA HP-UX.
16510 lt_prog_compiler_pic_GCJ
='-fPIC'
16516 lt_prog_compiler_pic_GCJ
='-fPIC'
16520 # PORTME Check for flag to pass linker flags through the system compiler.
16523 lt_prog_compiler_wl_GCJ
='-Wl,'
16524 if test "$host_cpu" = ia64
; then
16525 # AIX 5 now supports IA64 processor
16526 lt_prog_compiler_static_GCJ
='-Bstatic'
16528 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16532 # PIC is the default on this platform
16533 # Common symbols not allowed in MH_DYLIB files
16534 case $cc_basename in
16536 lt_prog_compiler_pic_GCJ
='-qnocommon'
16537 lt_prog_compiler_wl_GCJ
='-Wl,'
16542 mingw
* | pw32
* | os2
*)
16543 # This hack is so that the source file can tell whether it is being
16544 # built for inclusion in a dll (and should export symbols for example).
16545 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16548 hpux9
* | hpux10
* | hpux11
*)
16549 lt_prog_compiler_wl_GCJ
='-Wl,'
16550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16551 # not for PA HP-UX.
16557 lt_prog_compiler_pic_GCJ
='+Z'
16560 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16561 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16564 irix5
* | irix6
* | nonstopux
*)
16565 lt_prog_compiler_wl_GCJ
='-Wl,'
16566 # PIC (with -KPIC) is the default.
16567 lt_prog_compiler_static_GCJ
='-non_shared'
16571 lt_prog_compiler_pic_GCJ
='-KPIC'
16572 lt_prog_compiler_static_GCJ
='-Bstatic'
16575 linux
* | k
*bsd
*-gnu)
16576 case $cc_basename in
16578 lt_prog_compiler_wl_GCJ
='-Wl,'
16579 lt_prog_compiler_pic_GCJ
='-KPIC'
16580 lt_prog_compiler_static_GCJ
='-static'
16582 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16583 # Portland Group compilers (*not* the Pentium gcc compiler,
16584 # which looks to be a dead project)
16585 lt_prog_compiler_wl_GCJ
='-Wl,'
16586 lt_prog_compiler_pic_GCJ
='-fpic'
16587 lt_prog_compiler_static_GCJ
='-Bstatic'
16590 lt_prog_compiler_wl_GCJ
='-Wl,'
16591 # All Alpha code is PIC.
16592 lt_prog_compiler_static_GCJ
='-non_shared'
16597 osf3
* | osf4
* | osf5
*)
16598 lt_prog_compiler_wl_GCJ
='-Wl,'
16599 # All OSF/1 code is PIC.
16600 lt_prog_compiler_static_GCJ
='-non_shared'
16604 lt_prog_compiler_pic_GCJ
='-KPIC'
16605 lt_prog_compiler_static_GCJ
='-Bstatic'
16606 case $cc_basename in
16607 f77
* | f90
* | f95
*)
16608 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16610 lt_prog_compiler_wl_GCJ
='-Wl,';;
16615 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16616 lt_prog_compiler_pic_GCJ
='-PIC'
16617 lt_prog_compiler_static_GCJ
='-Bstatic'
16620 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16621 lt_prog_compiler_wl_GCJ
='-Wl,'
16622 lt_prog_compiler_pic_GCJ
='-KPIC'
16623 lt_prog_compiler_static_GCJ
='-Bstatic'
16627 if test -d /usr
/nec
;then
16628 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16629 lt_prog_compiler_static_GCJ
='-Bstatic'
16633 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16634 lt_prog_compiler_wl_GCJ
='-Wl,'
16635 lt_prog_compiler_pic_GCJ
='-KPIC'
16636 lt_prog_compiler_static_GCJ
='-Bstatic'
16640 lt_prog_compiler_wl_GCJ
='-Wl,'
16641 lt_prog_compiler_can_build_shared_GCJ
=no
16645 lt_prog_compiler_pic_GCJ
='-pic'
16646 lt_prog_compiler_static_GCJ
='-Bstatic'
16650 lt_prog_compiler_can_build_shared_GCJ
=no
16655 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16656 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16659 # Check to make sure the PIC flag actually works.
16661 if test -n "$lt_prog_compiler_pic_GCJ"; then
16663 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16664 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16665 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 lt_prog_compiler_pic_works_GCJ
=no
16669 ac_outfile
=conftest.
$ac_objext
16670 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16671 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16672 # Insert the option either (1) after the last *FLAGS variable, or
16673 # (2) before a word containing "conftest.", or (3) at the end.
16674 # Note that $ac_compile itself does not contain backslashes and begins
16675 # with a dollar sign (not a hyphen), so the echo should work correctly.
16676 # The option is referenced via a variable to avoid confusing sed.
16677 lt_compile
=`echo "$ac_compile" | $SED \
16678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16680 -e 's:$: $lt_compiler_flag:'`
16681 (eval echo "\"\$as_me:16681: $lt_compile\"" >&5)
16682 (eval "$lt_compile" 2>conftest.err
)
16684 cat conftest.err
>&5
16685 echo "$as_me:16685: \$? = $ac_status" >&5
16686 if (exit $ac_status) && test -s "$ac_outfile"; then
16687 # The compiler can only warn and ignore the option if not recognized
16688 # So say no if there are warnings other than the usual output.
16689 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16690 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16691 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16692 lt_prog_compiler_pic_works_GCJ
=yes
16698 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16699 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16701 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16702 case $lt_prog_compiler_pic_GCJ in
16704 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16707 lt_prog_compiler_pic_GCJ
=
16708 lt_prog_compiler_can_build_shared_GCJ
=no
16713 # For platforms which do not support PIC, -DPIC is meaningless:
16715 lt_prog_compiler_pic_GCJ
=
16718 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16723 # Check to make sure the static flag actually works.
16725 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16726 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16727 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16728 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 lt_prog_compiler_static_works_GCJ
=no
16732 save_LDFLAGS
="$LDFLAGS"
16733 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16734 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
16735 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16736 # The linker can only warn and ignore the option if not recognized
16737 # So say no if there are warnings
16738 if test -s conftest.err
; then
16739 # Append any errors to the config.log.
16740 cat conftest.err
1>&5
16741 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16742 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16743 if diff conftest.exp conftest.er2
>/dev
/null
; then
16744 lt_prog_compiler_static_works_GCJ
=yes
16747 lt_prog_compiler_static_works_GCJ
=yes
16751 LDFLAGS
="$save_LDFLAGS"
16754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16755 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16757 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
16760 lt_prog_compiler_static_GCJ
=
16764 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16765 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16766 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 lt_cv_prog_compiler_c_o_GCJ
=no
16770 $rm -r conftest
2>/dev
/null
16774 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16776 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16777 # Insert the option either (1) after the last *FLAGS variable, or
16778 # (2) before a word containing "conftest.", or (3) at the end.
16779 # Note that $ac_compile itself does not contain backslashes and begins
16780 # with a dollar sign (not a hyphen), so the echo should work correctly.
16781 lt_compile
=`echo "$ac_compile" | $SED \
16782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16784 -e 's:$: $lt_compiler_flag:'`
16785 (eval echo "\"\$as_me:16785: $lt_compile\"" >&5)
16786 (eval "$lt_compile" 2>out
/conftest.err
)
16788 cat out
/conftest.err
>&5
16789 echo "$as_me:16789: \$? = $ac_status" >&5
16790 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16792 # The compiler can only warn and ignore the option if not recognized
16793 # So say no if there are warnings
16794 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16795 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16796 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16797 lt_cv_prog_compiler_c_o_GCJ
=yes
16802 # SGI C++ compiler will create directory out/ii_files/ for
16803 # template instantiation
16804 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16805 $rm out
/* && rmdir out
16811 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16812 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16815 hard_links
="nottested"
16816 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16817 # do not overwrite the value of need_locks provided by the user
16818 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16819 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16822 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16824 ln conftest.a conftest.b
2>&5 || hard_links
=no
16825 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16826 { echo "$as_me:$LINENO: result: $hard_links" >&5
16827 echo "${ECHO_T}$hard_links" >&6; }
16828 if test "$hard_links" = no
; then
16829 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16830 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16837 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16838 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16841 allow_undefined_flag_GCJ
=
16842 enable_shared_with_static_runtimes_GCJ
=no
16844 archive_expsym_cmds_GCJ
=
16845 old_archive_From_new_cmds_GCJ
=
16846 old_archive_from_expsyms_cmds_GCJ
=
16847 export_dynamic_flag_spec_GCJ
=
16848 whole_archive_flag_spec_GCJ
=
16849 thread_safe_flag_spec_GCJ
=
16850 hardcode_libdir_flag_spec_GCJ
=
16851 hardcode_libdir_flag_spec_ld_GCJ
=
16852 hardcode_libdir_separator_GCJ
=
16853 hardcode_direct_GCJ
=no
16854 hardcode_minus_L_GCJ
=no
16855 hardcode_shlibpath_var_GCJ
=unsupported
16856 link_all_deplibs_GCJ
=unknown
16857 hardcode_automatic_GCJ
=no
16859 module_expsym_cmds_GCJ
=
16860 always_export_symbols_GCJ
=no
16861 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16862 # include_expsyms should be a list of space-separated symbols to be *always*
16863 # included in the symbol list
16864 include_expsyms_GCJ
=
16865 # exclude_expsyms can be an extended regexp of symbols to exclude
16866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16868 # as well as any symbol that contains `d'.
16869 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16871 # platforms (ab)use it in PIC code, but their linkers get confused if
16872 # the symbol is explicitly referenced. Since portable code cannot
16873 # rely on this symbol name, it's probably fine to never include it in
16874 # preloaded symbol tables.
16875 extract_expsyms_cmds
=
16876 # Just being paranoid about ensuring that cc_basename is set.
16877 for cc_temp
in $compiler""; do
16879 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16880 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16885 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16888 cygwin
* | mingw
* | pw32
*)
16889 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16890 # When not using gcc, we currently assume that we are using
16891 # Microsoft Visual C++.
16892 if test "$GCC" != yes; then
16897 # we just hope/assume this is gcc and not c89 (= MSVC++)
16906 if test "$with_gnu_ld" = yes; then
16907 # If archive_cmds runs LD, not CC, wlarc should be empty
16910 # Set some defaults for GNU ld with shared library support. These
16911 # are reset later if shared libraries are not supported. Putting them
16912 # here allows them to be overridden if necessary.
16913 runpath_var
=LD_RUN_PATH
16914 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16915 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16916 # ancient GNU ld didn't support --whole-archive et. al.
16917 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16918 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16920 whole_archive_flag_spec_GCJ
=
16922 supports_anon_versioning
=no
16923 case `$LD -v 2>/dev/null` in
16924 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16925 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16926 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16927 *\
2.11.
*) ;; # other 2.11 versions
16928 *) supports_anon_versioning
=yes ;;
16931 # See if GNU ld supports shared libraries.
16933 aix3
* | aix4
* | aix5
*)
16934 # On AIX/PPC, the GNU linker is very broken
16935 if test "$host_cpu" != ia64
; then
16939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16940 *** to be unable to reliably create shared libraries on AIX.
16941 *** Therefore, libtool is disabling shared libraries support. If you
16942 *** really care for shared libraries, you may want to modify your PATH
16943 *** so that a non-GNU linker is found, and then restart.
16950 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)'
16951 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16952 hardcode_minus_L_GCJ
=yes
16954 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16955 # that the semantics of dynamic libraries on AmigaOS, at least up
16956 # to version 4, is to share data among multiple programs linked
16957 # with the same dynamic library. Since this doesn't match the
16958 # behavior of shared libraries on other platforms, we can't use
16964 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16965 allow_undefined_flag_GCJ
=unsupported
16966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16967 # support --undefined. This deserves some investigation. FIXME
16968 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16974 cygwin
* | mingw
* | pw32
*)
16975 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16976 # as there is no search path for DLLs.
16977 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16978 allow_undefined_flag_GCJ
=unsupported
16979 always_export_symbols_GCJ
=no
16980 enable_shared_with_static_runtimes_GCJ
=yes
16981 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16983 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16984 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16985 # If the export-symbols file already is a .def file (1st line
16986 # is EXPORTS), use it as is; otherwise, prepend...
16987 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16988 cp $export_symbols $output_objdir/$soname.def;
16990 echo EXPORTS > $output_objdir/$soname.def;
16991 cat $export_symbols >> $output_objdir/$soname.def;
16993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17000 hardcode_direct_GCJ
=no
17001 hardcode_shlibpath_var_GCJ
=no
17002 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17003 export_dynamic_flag_spec_GCJ
='${wl}-E'
17004 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17005 # Instead, shared libraries are loaded at an image base (0x10000000 by
17006 # default) and relocated if they conflict, which is a slow very memory
17007 # consuming and fragmenting process. To avoid this, we pick a random,
17008 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17009 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17010 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'
17011 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'
17014 linux
* | k
*bsd
*-gnu)
17015 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17017 case $cc_basename,$host_cpu in
17018 pgcc
*) # Portland Group C compiler
17019 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'
17020 tmp_addflag
=' $pic_flag'
17022 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17023 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'
17024 tmp_addflag
=' $pic_flag -Mnomain' ;;
17025 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17026 tmp_addflag
=' -i_dynamic' ;;
17027 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17028 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17029 ifc
* | ifort
*) # Intel Fortran compiler
17030 tmp_addflag
=' -nofor_main' ;;
17032 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17034 if test $supports_anon_versioning = yes; then
17035 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
17036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17037 $echo "local: *; };" >> $output_objdir/$libname.ver~
17038 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17040 link_all_deplibs_GCJ
=no
17046 netbsd
* | netbsdelf
*-gnu)
17047 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17048 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17051 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17052 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17057 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
17061 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17062 *** create shared libraries on Solaris systems. Therefore, libtool
17063 *** is disabling shared libraries support. We urge you to upgrade GNU
17064 *** binutils to release 2.9.1 or newer. Another option is to modify
17065 *** your PATH or compiler configuration so that the native linker is
17066 *** used, and then restart.
17069 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17070 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17071 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17077 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17078 case `$LD -v 2>&1` in
17079 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17083 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17084 *** reliably create shared libraries on SCO systems. Therefore, libtool
17085 *** is disabling shared libraries support. We urge you to upgrade GNU
17086 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17087 *** your PATH or compiler configuration so that the native linker is
17088 *** used, and then restart.
17093 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17094 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17095 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17096 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17105 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17107 hardcode_direct_GCJ
=yes
17108 hardcode_shlibpath_var_GCJ
=no
17112 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17113 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17114 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17121 if test "$ld_shlibs_GCJ" = no
; then
17123 hardcode_libdir_flag_spec_GCJ
=
17124 export_dynamic_flag_spec_GCJ
=
17125 whole_archive_flag_spec_GCJ
=
17128 # PORTME fill in a description of your system's linker (not GNU ld)
17131 allow_undefined_flag_GCJ
=unsupported
17132 always_export_symbols_GCJ
=yes
17133 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'
17134 # Note: this linker hardcodes the directories in LIBPATH if there
17135 # are no directories specified by -L.
17136 hardcode_minus_L_GCJ
=yes
17137 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17138 # Neither direct hardcoding nor static linking is supported with a
17140 hardcode_direct_GCJ
=unsupported
17145 if test "$host_cpu" = ia64
; then
17146 # On IA64, the linker does run time linking by default, so we don't
17147 # have to do anything special.
17148 aix_use_runtimelinking
=no
17149 exp_sym_flag
='-Bexport'
17152 # If we're using GNU nm, then we don't want the "-C" option.
17153 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17154 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17155 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'
17157 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'
17159 aix_use_runtimelinking
=no
17161 # Test if we are trying to use run time linking or normal
17162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17163 # need to do runtime linking.
17164 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17165 for ld_flag
in $LDFLAGS; do
17166 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17167 aix_use_runtimelinking
=yes
17174 exp_sym_flag
='-bexport'
17175 no_entry_flag
='-bnoentry'
17178 # When large executables or shared objects are built, AIX ld can
17179 # have problems creating the table of contents. If linking a library
17180 # or program results in "error TOC overflow" add -mminimal-toc to
17181 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17182 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17184 archive_cmds_GCJ
=''
17185 hardcode_direct_GCJ
=yes
17186 hardcode_libdir_separator_GCJ
=':'
17187 link_all_deplibs_GCJ
=yes
17189 if test "$GCC" = yes; then
17190 case $host_os in aix4.
[012]|aix4.
[012].
*)
17191 # We only want to do this on AIX 4.2 and lower, the check
17192 # below for broken collect2 doesn't work under 4.3+
17193 collect2name
=`${CC} -print-prog-name=collect2`
17194 if test -f "$collect2name" && \
17195 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17197 # We have reworked collect2
17198 hardcode_direct_GCJ
=yes
17200 # We have old collect2
17201 hardcode_direct_GCJ
=unsupported
17202 # It fails to find uninstalled libraries when the uninstalled
17203 # path is not listed in the libpath. Setting hardcode_minus_L
17204 # to unsupported forces relinking
17205 hardcode_minus_L_GCJ
=yes
17206 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17207 hardcode_libdir_separator_GCJ
=
17211 shared_flag
='-shared'
17212 if test "$aix_use_runtimelinking" = yes; then
17213 shared_flag
="$shared_flag "'${wl}-G'
17217 if test "$host_cpu" = ia64
; then
17218 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17219 # chokes on -Wl,-G. The following line is correct:
17222 if test "$aix_use_runtimelinking" = yes; then
17223 shared_flag
='${wl}-G'
17225 shared_flag
='${wl}-bM:SRE'
17230 # It seems that -bexpall does not export symbols beginning with
17231 # underscore (_), so it is better to generate a list of symbols to export.
17232 always_export_symbols_GCJ
=yes
17233 if test "$aix_use_runtimelinking" = yes; then
17234 # Warning - without using the other runtime loading flags (-brtl),
17235 # -berok will link without error, but may produce a broken library.
17236 allow_undefined_flag_GCJ
='-berok'
17237 # Determine the default libpath from the value encoded in an empty executable.
17238 cat >conftest.
$ac_ext <<_ACEOF
17241 cat confdefs.h
>>conftest.
$ac_ext
17242 cat >>conftest.
$ac_ext <<_ACEOF
17243 /* end confdefs.h. */
17253 rm -f conftest.
$ac_objext conftest
$ac_exeext
17254 if { (ac_try
="$ac_link"
17255 case "(($ac_try" in
17256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_link") 2>conftest.er1
17262 grep -v '^ *+' conftest.er1 >conftest.err
17264 cat conftest.err >&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } && {
17267 test -z "$ac_c_werror_flag" ||
17268 test ! -s conftest.err
17269 } && test -s conftest$ac_exeext &&
17270 $as_test_x conftest$ac_exeext; then
17272 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17274 # Check for a 64-bit object if we didn't find anything.
17275 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17285 conftest$ac_exeext conftest.$ac_ext
17286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17288 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17289 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"
17291 if test "$host_cpu" = ia64; then
17292 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17293 allow_undefined_flag_GCJ="-z nodefs"
17294 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"
17296 # Determine the default libpath from the value encoded in an empty executable.
17297 cat >conftest.$ac_ext <<_ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17312 rm -f conftest.$ac_objext conftest$ac_exeext
17313 if { (ac_try="$ac_link"
17314 case "(($ac_try" in
17315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17316 *) ac_try_echo
=$ac_try;;
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_link") 2>conftest.er1
17321 grep -v '^ *+' conftest.er1
>conftest.err
17323 cat conftest.err
>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } && {
17326 test -z "$ac_c_werror_flag" ||
17327 test ! -s conftest.err
17328 } && test -s conftest
$ac_exeext &&
17329 $as_test_x conftest
$ac_exeext; then
17331 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17333 # Check for a 64-bit object if we didn't find anything.
17334 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.
$ac_ext >&5
17343 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17344 conftest
$ac_exeext conftest.
$ac_ext
17345 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17347 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17348 # Warning - without using the other run time loading flags,
17349 # -berok will link without error, but may produce a broken library.
17350 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17351 allow_undefined_flag_GCJ
=' ${wl}-berok'
17352 # Exported symbols can be pulled into shared objects from archives
17353 whole_archive_flag_spec_GCJ
='$convenience'
17354 archive_cmds_need_lc_GCJ
=yes
17355 # This is similar to how AIX traditionally builds its shared libraries.
17356 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'
17362 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)'
17363 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17364 hardcode_minus_L_GCJ
=yes
17365 # see comment about different semantics on the GNU ld section
17370 export_dynamic_flag_spec_GCJ
=-rdynamic
17373 cygwin
* | mingw
* | pw32
*)
17374 # When not using gcc, we currently assume that we are using
17375 # Microsoft Visual C++.
17376 # hardcode_libdir_flag_spec is actually meaningless, as there is
17377 # no search path for DLLs.
17378 hardcode_libdir_flag_spec_GCJ
=' '
17379 allow_undefined_flag_GCJ
=unsupported
17380 # Tell ltmain to make .lib files, not .a files.
17382 # Tell ltmain to make .dll files, not .so files.
17384 # FIXME: Setting linknames here is a bad hack.
17385 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17386 # The linker will automatically build a .lib file if we build a DLL.
17387 old_archive_From_new_cmds_GCJ
='true'
17388 # FIXME: Should let the user specify the lib program.
17389 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
17390 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17391 enable_shared_with_static_runtimes_GCJ
=yes
17394 darwin
* | rhapsody
*)
17396 rhapsody
* | darwin1.
[012])
17397 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17400 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17401 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17403 case ${MACOSX_DEPLOYMENT_TARGET} in
17405 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17408 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17414 archive_cmds_need_lc_GCJ
=no
17415 hardcode_direct_GCJ
=no
17416 hardcode_automatic_GCJ
=yes
17417 hardcode_shlibpath_var_GCJ
=unsupported
17418 whole_archive_flag_spec_GCJ
=''
17419 link_all_deplibs_GCJ
=yes
17420 if test "$GCC" = yes ; then
17421 output_verbose_link_cmd
='echo'
17422 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17423 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17424 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17425 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}'
17426 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}'
17428 case $cc_basename in
17430 output_verbose_link_cmd
='echo'
17431 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17432 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17434 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17435 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}'
17445 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17446 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17447 hardcode_shlibpath_var_GCJ
=no
17454 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17455 # support. Future versions do this automatically, but an explicit c++rt0.o
17456 # does not break anything, and helps significantly (at the cost of a little
17459 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17460 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17461 hardcode_direct_GCJ
=yes
17462 hardcode_shlibpath_var_GCJ
=no
17465 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17467 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17468 hardcode_direct_GCJ
=yes
17469 hardcode_minus_L_GCJ
=yes
17470 hardcode_shlibpath_var_GCJ
=no
17473 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17474 freebsd
* | dragonfly
*)
17475 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17476 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17477 hardcode_direct_GCJ
=yes
17478 hardcode_shlibpath_var_GCJ
=no
17482 if test "$GCC" = yes; then
17483 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'
17485 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'
17487 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17488 hardcode_libdir_separator_GCJ
=:
17489 hardcode_direct_GCJ
=yes
17491 # hardcode_minus_L: Not really in the search PATH,
17492 # but as the default location of the library.
17493 hardcode_minus_L_GCJ
=yes
17494 export_dynamic_flag_spec_GCJ
='${wl}-E'
17498 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17499 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17501 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17503 if test "$with_gnu_ld" = no
; then
17504 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17505 hardcode_libdir_separator_GCJ
=:
17507 hardcode_direct_GCJ
=yes
17508 export_dynamic_flag_spec_GCJ
='${wl}-E'
17510 # hardcode_minus_L: Not really in the search PATH,
17511 # but as the default location of the library.
17512 hardcode_minus_L_GCJ
=yes
17517 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17520 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17523 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17526 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17532 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17535 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17538 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17542 if test "$with_gnu_ld" = no
; then
17543 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17544 hardcode_libdir_separator_GCJ
=:
17548 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17549 hardcode_direct_GCJ
=no
17550 hardcode_shlibpath_var_GCJ
=no
17553 hardcode_direct_GCJ
=yes
17554 export_dynamic_flag_spec_GCJ
='${wl}-E'
17556 # hardcode_minus_L: Not really in the search PATH,
17557 # but as the default location of the library.
17558 hardcode_minus_L_GCJ
=yes
17564 irix5
* | irix6
* | nonstopux
*)
17565 if test "$GCC" = yes; then
17566 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'
17568 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'
17569 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17571 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17572 hardcode_libdir_separator_GCJ
=:
17573 link_all_deplibs_GCJ
=yes
17576 netbsd
* | netbsdelf
*-gnu)
17577 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17578 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17580 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17582 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17583 hardcode_direct_GCJ
=yes
17584 hardcode_shlibpath_var_GCJ
=no
17588 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17589 hardcode_direct_GCJ
=yes
17590 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17591 hardcode_libdir_separator_GCJ
=:
17592 hardcode_shlibpath_var_GCJ
=no
17596 hardcode_direct_GCJ
=yes
17597 hardcode_shlibpath_var_GCJ
=no
17598 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17599 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17600 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17601 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17602 export_dynamic_flag_spec_GCJ
='${wl}-E'
17605 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17606 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17607 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17610 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17611 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17618 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17619 hardcode_minus_L_GCJ
=yes
17620 allow_undefined_flag_GCJ
=unsupported
17621 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'
17622 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17626 if test "$GCC" = yes; then
17627 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17628 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'
17630 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17631 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'
17633 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17634 hardcode_libdir_separator_GCJ
=:
17637 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17638 if test "$GCC" = yes; then
17639 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17640 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'
17641 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17643 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17644 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'
17645 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~
17646 $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'
17648 # Both c and cxx compiler support -rpath directly
17649 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17651 hardcode_libdir_separator_GCJ
=:
17655 no_undefined_flag_GCJ
=' -z text'
17656 if test "$GCC" = yes; then
17658 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17659 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17660 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17663 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17664 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17665 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17667 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17668 hardcode_shlibpath_var_GCJ
=no
17670 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17672 # The compiler driver will combine linker options so we
17673 # cannot just pass the convience library names through
17674 # without $wl, iff we do not link with $LD.
17675 # Luckily, gcc supports the same syntax we need for Sun Studio.
17676 # Supported since Solaris 2.6 (maybe 2.5.1?)
17679 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
17681 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17684 link_all_deplibs_GCJ
=yes
17688 if test "x$host_vendor" = xsequent
; then
17689 # Use $CC to link under sequent, because it throws in some extra .o
17690 # files that make .init and .fini sections work.
17691 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17693 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17695 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17696 hardcode_direct_GCJ
=yes
17697 hardcode_minus_L_GCJ
=yes
17698 hardcode_shlibpath_var_GCJ
=no
17702 case $host_vendor in
17704 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17705 hardcode_direct_GCJ
=yes # is this really true???
17708 ## LD is ld it makes a PLAMLIB
17709 ## CC just makes a GrossModule.
17710 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17711 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17712 hardcode_direct_GCJ
=no
17715 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17716 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17719 runpath_var
='LD_RUN_PATH'
17720 hardcode_shlibpath_var_GCJ
=no
17724 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17725 hardcode_shlibpath_var_GCJ
=no
17726 export_dynamic_flag_spec_GCJ
='-Bexport'
17730 if test -d /usr
/nec
; then
17731 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17732 hardcode_shlibpath_var_GCJ
=no
17733 runpath_var
=LD_RUN_PATH
17734 hardcode_runpath_var
=yes
17739 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
17740 no_undefined_flag_GCJ
='${wl}-z,text'
17741 archive_cmds_need_lc_GCJ
=no
17742 hardcode_shlibpath_var_GCJ
=no
17743 runpath_var
='LD_RUN_PATH'
17745 if test "$GCC" = yes; then
17746 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17747 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17749 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17750 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17754 sysv5
* | sco3.2v5
* | sco5v6
*)
17755 # Note: We can NOT use -z defs as we might desire, because we do not
17756 # link with -lc, and that would cause any symbols used from libc to
17757 # always be unresolved, which means just about no library would
17758 # ever link correctly. If we're not using GNU ld we use -z text
17759 # though, which does catch some bad symbols but isn't as heavy-handed
17761 no_undefined_flag_GCJ
='${wl}-z,text'
17762 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17763 archive_cmds_need_lc_GCJ
=no
17764 hardcode_shlibpath_var_GCJ
=no
17765 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17766 hardcode_libdir_separator_GCJ
=':'
17767 link_all_deplibs_GCJ
=yes
17768 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17769 runpath_var
='LD_RUN_PATH'
17771 if test "$GCC" = yes; then
17772 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17773 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17775 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17776 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17781 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17782 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17783 hardcode_shlibpath_var_GCJ
=no
17792 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17793 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17794 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17797 # Do we need to explicitly link libc?
17799 case "x$archive_cmds_need_lc_GCJ" in
17801 # Assume -lc should be added
17802 archive_cmds_need_lc_GCJ
=yes
17804 if test "$enable_shared" = yes && test "$GCC" = yes; then
17805 case $archive_cmds_GCJ in
17807 # FIXME: we may have to deal with multi-command sequences.
17810 # Test whether the compiler implicitly links with -lc since on some
17811 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17812 # to ld, don't add -lc before -lgcc.
17813 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17814 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17816 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17819 (eval $ac_compile) 2>&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } 2>conftest.err
; then
17825 libobjs
=conftest.
$ac_objext
17827 wl
=$lt_prog_compiler_wl_GCJ
17828 pic_flag
=$lt_prog_compiler_pic_GCJ
17834 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17835 allow_undefined_flag_GCJ
=
17836 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17837 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }
17842 archive_cmds_need_lc_GCJ
=no
17844 archive_cmds_need_lc_GCJ
=yes
17846 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17848 cat conftest.err
1>&5
17851 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17852 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17859 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17861 library_names_spec
=
17862 libname_spec
='lib$name'
17866 postuninstall_cmds
=
17870 shlibpath_overrides_runpath
=unknown
17872 dynamic_linker
="$host_os ld.so"
17873 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17874 if test "$GCC" = yes; then
17875 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17876 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17877 # if the path contains ";" then we assume it to be the separator
17878 # otherwise default to the standard path separator (i.e. ":") - it is
17879 # assumed that no part of a normal pathname contains ";" but that should
17880 # okay in the real world where ";" in dirpaths is itself problematic.
17881 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17883 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17886 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17888 need_lib_prefix
=unknown
17889 hardcode_into_libs
=no
17891 # when you set need_version to no, make sure it does not cause -set_version
17892 # flags to be left without arguments
17893 need_version
=unknown
17898 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17899 shlibpath_var
=LIBPATH
17901 # AIX 3 has no versioning support, so we append a major version to the name.
17902 soname_spec
='${libname}${release}${shared_ext}$major'
17909 hardcode_into_libs
=yes
17910 if test "$host_cpu" = ia64
; then
17911 # AIX 5 supports IA64
17912 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17913 shlibpath_var
=LD_LIBRARY_PATH
17915 # With GCC up to 2.95.x, collect2 would create an import file
17916 # for dependence libraries. The import file would start with
17917 # the line `#! .'. This would cause the generated library to
17918 # depend on `.', always an invalid library. This was fixed in
17919 # development snapshots of GCC prior to 3.0.
17921 aix4 | aix4.
[01] | aix4.
[01].
*)
17922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17924 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17927 can_build_shared
=no
17931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17932 # soname into executable. Probably we can add versioning support to
17933 # collect2, so additional links can be useful in future.
17934 if test "$aix_use_runtimelinking" = yes; then
17935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17936 # instead of lib<name>.a to let people know that these are not
17937 # typical AIX shared libraries.
17938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17940 # We preserve .a as extension for shared libraries through AIX4.2
17941 # and later when we are not doing run time linking.
17942 library_names_spec
='${libname}${release}.a $libname.a'
17943 soname_spec
='${libname}${release}${shared_ext}$major'
17945 shlibpath_var
=LIBPATH
17950 library_names_spec
='$libname.ixlibrary $libname.a'
17951 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17952 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'
17956 library_names_spec
='${libname}${shared_ext}'
17957 dynamic_linker
="$host_os ld.so"
17958 shlibpath_var
=LIBRARY_PATH
17964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 soname_spec
='${libname}${release}${shared_ext}$major'
17966 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17967 shlibpath_var
=LD_LIBRARY_PATH
17968 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17969 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17970 # the default ld.so.conf also contains /usr/contrib/lib and
17971 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17972 # libtool to hard-code these into programs
17975 cygwin
* | mingw
* | pw32
*)
17976 version_type
=windows
17981 case $GCC,$host_os in
17982 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17983 library_names_spec
='$libname.dll.a'
17984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17985 postinstall_cmds
='base_file=`basename \${file}`~
17986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17987 dldir=$destdir/`dirname \$dlpath`~
17988 test -d \$dldir || mkdir -p \$dldir~
17989 $install_prog $dir/$dlname \$dldir/$dlname~
17990 chmod a+x \$dldir/$dlname'
17991 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17992 dlpath=$dir/\$dldll~
17994 shlibpath_overrides_runpath
=yes
17998 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17999 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18000 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18003 # MinGW DLLs use traditional 'lib' prefix
18004 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18005 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18006 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
18007 # It is most probably a Windows format PATH printed by
18008 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18009 # path with ; separators, and with drive letters. We can handle the
18010 # drive letters (cygwin fileutils understands them), so leave them,
18011 # especially as we might pass files found there to a mingw objdump,
18012 # which wouldn't understand a cygwinified path. Ahh.
18013 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18015 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18019 # pw32 DLLs use 'pw' prefix rather than 'lib'
18020 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18026 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18029 dynamic_linker
='Win32 ld.exe'
18030 # FIXME: first we should search . and the directory the executable is in
18034 darwin
* | rhapsody
*)
18035 dynamic_linker
="$host_os dyld"
18036 version_type
=darwin
18039 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18040 soname_spec
='${libname}${release}${major}$shared_ext'
18041 shlibpath_overrides_runpath
=yes
18042 shlibpath_var
=DYLD_LIBRARY_PATH
18043 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18044 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18045 if test "$GCC" = yes; then
18046 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18048 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
18050 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18058 soname_spec
='${libname}${release}${shared_ext}$major'
18059 shlibpath_var
=LD_LIBRARY_PATH
18066 freebsd
* | dragonfly
*)
18067 # DragonFly does not have aout. When/if they implement a new
18068 # versioning mechanism, adjust this.
18069 if test -x /usr
/bin
/objformat
; then
18070 objformat
=`/usr/bin/objformat`
18073 freebsd
[123]*) objformat
=aout
;;
18074 *) objformat
=elf
;;
18077 version_type
=freebsd-
$objformat
18078 case $version_type in
18080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18085 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18089 shlibpath_var
=LD_LIBRARY_PATH
18092 shlibpath_overrides_runpath
=yes
18094 freebsd3.
[01]* | freebsdelf3.
[01]*)
18095 shlibpath_overrides_runpath
=yes
18096 hardcode_into_libs
=yes
18098 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18099 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18100 shlibpath_overrides_runpath
=no
18101 hardcode_into_libs
=yes
18103 freebsd
*) # from 4.6 on
18104 shlibpath_overrides_runpath
=yes
18105 hardcode_into_libs
=yes
18114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18115 soname_spec
='${libname}${release}${shared_ext}$major'
18116 shlibpath_var
=LD_LIBRARY_PATH
18117 hardcode_into_libs
=yes
18120 hpux9
* | hpux10
* | hpux11
*)
18121 # Give a soname corresponding to the major version so that dld.sl refuses to
18122 # link against other versions.
18129 hardcode_into_libs
=yes
18130 dynamic_linker
="$host_os dld.so"
18131 shlibpath_var
=LD_LIBRARY_PATH
18132 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18134 soname_spec
='${libname}${release}${shared_ext}$major'
18135 if test "X$HPUX_IA64_MODE" = X32
; then
18136 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18138 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18140 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18144 hardcode_into_libs
=yes
18145 dynamic_linker
="$host_os dld.sl"
18146 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18147 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18149 soname_spec
='${libname}${release}${shared_ext}$major'
18150 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18151 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18155 dynamic_linker
="$host_os dld.sl"
18156 shlibpath_var
=SHLIB_PATH
18157 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18159 soname_spec
='${libname}${release}${shared_ext}$major'
18162 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18163 postinstall_cmds
='chmod 555 $lib'
18170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18171 soname_spec
='${libname}${release}${shared_ext}$major'
18172 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18173 shlibpath_var
=LD_LIBRARY_PATH
18174 shlibpath_overrides_runpath
=no
18175 hardcode_into_libs
=yes
18178 irix5
* | irix6
* | nonstopux
*)
18180 nonstopux
*) version_type
=nonstopux
;;
18182 if test "$lt_cv_prog_gnu_ld" = yes; then
18190 soname_spec
='${libname}${release}${shared_ext}$major'
18191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18193 irix5
* | nonstopux
*)
18194 libsuff
= shlibsuff
=
18197 case $LD in # libtool.m4 will add one of these switches to LD
18198 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18199 libsuff
= shlibsuff
= libmagic
=32-bit;;
18200 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18201 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18202 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18203 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18204 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18208 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18209 shlibpath_overrides_runpath
=no
18210 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18211 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18212 hardcode_into_libs
=yes
18215 # No shared lib support for Linux oldld, aout, or coff.
18216 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18220 # This must be Linux ELF.
18221 linux
* | k
*bsd
*-gnu)
18225 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18226 soname_spec
='${libname}${release}${shared_ext}$major'
18227 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18228 shlibpath_var
=LD_LIBRARY_PATH
18229 shlibpath_overrides_runpath
=no
18230 # This implies no fast_install, which is unacceptable.
18231 # Some rework will be needed to allow for fast_install
18232 # before this can be enabled.
18233 hardcode_into_libs
=yes
18235 # Append ld.so.conf contents to the search path
18236 if test -f /etc
/ld.so.conf
; then
18237 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18238 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18241 # We used to test for /lib/ld.so.1 and disable shared libraries on
18242 # powerpc, because MkLinux only supported shared libraries with the
18243 # GNU dynamic linker. Since this was broken with cross compilers,
18244 # most powerpc-linux boxes support dynamic linking these days and
18245 # people can always --disable-shared, the test was removed, and we
18246 # assume the GNU/Linux dynamic linker is in use.
18247 dynamic_linker
='GNU/Linux ld.so'
18254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18255 soname_spec
='${libname}${release}${shared_ext}$major'
18256 shlibpath_var
=LD_LIBRARY_PATH
18257 shlibpath_overrides_runpath
=no
18258 hardcode_into_libs
=yes
18259 dynamic_linker
='NetBSD ld.elf_so'
18266 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18267 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18268 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18269 dynamic_linker
='NetBSD (a.out) ld.so'
18271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18272 soname_spec
='${libname}${release}${shared_ext}$major'
18273 dynamic_linker
='NetBSD ld.elf_so'
18275 shlibpath_var
=LD_LIBRARY_PATH
18276 shlibpath_overrides_runpath
=yes
18277 hardcode_into_libs
=yes
18282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18283 shlibpath_var
=LD_LIBRARY_PATH
18284 shlibpath_overrides_runpath
=yes
18291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292 soname_spec
='${libname}${release}${shared_ext}$major'
18293 shlibpath_var
=LD_LIBRARY_PATH
18294 shlibpath_overrides_runpath
=yes
18299 sys_lib_dlsearch_path_spec
="/usr/lib"
18301 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18303 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18304 *) need_version
=no
;;
18306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18307 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18308 shlibpath_var
=LD_LIBRARY_PATH
18309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18311 openbsd2.
[89] | openbsd2.
[89].
*)
18312 shlibpath_overrides_runpath
=no
18315 shlibpath_overrides_runpath
=yes
18319 shlibpath_overrides_runpath
=yes
18324 libname_spec
='$name'
18327 library_names_spec
='$libname${shared_ext} $libname.a'
18328 dynamic_linker
='OS/2 ld.exe'
18329 shlibpath_var
=LIBPATH
18332 osf3
* | osf4
* | osf5
*)
18336 soname_spec
='${libname}${release}${shared_ext}$major'
18337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18338 shlibpath_var
=LD_LIBRARY_PATH
18339 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18340 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18348 soname_spec
='${libname}${release}${shared_ext}$major'
18349 shlibpath_var
=LD_LIBRARY_PATH
18350 shlibpath_overrides_runpath
=yes
18351 hardcode_into_libs
=yes
18352 # ldd complains unless libraries are executable
18353 postinstall_cmds
='chmod +x $lib'
18358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18359 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18360 shlibpath_var
=LD_LIBRARY_PATH
18361 shlibpath_overrides_runpath
=yes
18362 if test "$with_gnu_ld" = yes; then
18370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371 soname_spec
='${libname}${release}${shared_ext}$major'
18372 shlibpath_var
=LD_LIBRARY_PATH
18373 case $host_vendor in
18375 shlibpath_overrides_runpath
=no
18377 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18378 runpath_var
=LD_RUN_PATH
18386 shlibpath_overrides_runpath
=no
18387 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18393 if test -d /usr
/nec
;then
18395 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18396 soname_spec
='$libname${shared_ext}.$major'
18397 shlibpath_var
=LD_LIBRARY_PATH
18401 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18402 version_type
=freebsd-elf
18405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18406 soname_spec
='${libname}${release}${shared_ext}$major'
18407 shlibpath_var
=LD_LIBRARY_PATH
18408 hardcode_into_libs
=yes
18409 if test "$with_gnu_ld" = yes; then
18410 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18411 shlibpath_overrides_runpath
=no
18413 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18414 shlibpath_overrides_runpath
=yes
18417 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18421 sys_lib_dlsearch_path_spec
='/usr/lib'
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 shlibpath_var
=LD_LIBRARY_PATH
18435 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18436 echo "${ECHO_T}$dynamic_linker" >&6; }
18437 test "$dynamic_linker" = no
&& can_build_shared
=no
18439 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18440 if test "$GCC" = yes; then
18441 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18444 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18445 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18446 hardcode_action_GCJ
=
18447 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18448 test -n "$runpath_var_GCJ" || \
18449 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18451 # We can hardcode non-existant directories.
18452 if test "$hardcode_direct_GCJ" != no
&&
18453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18454 # have to relink, otherwise we might link with an installed library
18455 # when we should be linking with a yet-to-be-installed one
18456 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18457 test "$hardcode_minus_L_GCJ" != no
; then
18458 # Linking always hardcodes the temporary library directory.
18459 hardcode_action_GCJ
=relink
18461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18462 hardcode_action_GCJ
=immediate
18465 # We cannot hardcode anything, or else we can only hardcode existing
18467 hardcode_action_GCJ
=unsupported
18469 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18470 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18472 if test "$hardcode_action_GCJ" = relink
; then
18473 # Fast installation is not supported
18474 enable_fast_install
=no
18475 elif test "$shlibpath_overrides_runpath" = yes ||
18476 test "$enable_shared" = no
; then
18477 # Fast installation is not necessary
18478 enable_fast_install
=needless
18482 # The else clause should only fire when bootstrapping the
18483 # libtool distribution, otherwise you forgot to ship ltmain.sh
18484 # with your package, and you will get complaints that there are
18485 # no rules to generate ltmain.sh.
18486 if test -f "$ltmain"; then
18487 # See if we are running on zsh, and set the options which allow our commands through
18488 # without removal of \ escapes.
18489 if test -n "${ZSH_VERSION+set}" ; then
18490 setopt NO_GLOB_SUBST
18492 # Now quote all the things that may contain metacharacters while being
18493 # careful not to overquote the AC_SUBSTed values. We take copies of the
18494 # variables and quote the copies for generation of the libtool script.
18495 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18499 deplibs_check_method reload_flag reload_cmds need_locks \
18500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18501 lt_cv_sys_global_symbol_to_c_name_address \
18502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18503 old_postinstall_cmds old_postuninstall_cmds \
18507 lt_prog_compiler_wl_GCJ \
18508 lt_prog_compiler_pic_GCJ \
18509 lt_prog_compiler_static_GCJ \
18510 lt_prog_compiler_no_builtin_flag_GCJ \
18511 export_dynamic_flag_spec_GCJ \
18512 thread_safe_flag_spec_GCJ \
18513 whole_archive_flag_spec_GCJ \
18514 enable_shared_with_static_runtimes_GCJ \
18515 old_archive_cmds_GCJ \
18516 old_archive_from_new_cmds_GCJ \
18517 predep_objects_GCJ \
18518 postdep_objects_GCJ \
18521 compiler_lib_search_path_GCJ \
18523 archive_expsym_cmds_GCJ \
18524 postinstall_cmds_GCJ \
18525 postuninstall_cmds_GCJ \
18526 old_archive_from_expsyms_cmds_GCJ \
18527 allow_undefined_flag_GCJ \
18528 no_undefined_flag_GCJ \
18529 export_symbols_cmds_GCJ \
18530 hardcode_libdir_flag_spec_GCJ \
18531 hardcode_libdir_flag_spec_ld_GCJ \
18532 hardcode_libdir_separator_GCJ \
18533 hardcode_automatic_GCJ \
18535 module_expsym_cmds_GCJ \
18536 lt_cv_prog_compiler_c_o_GCJ \
18537 exclude_expsyms_GCJ \
18538 include_expsyms_GCJ
; do
18541 old_archive_cmds_GCJ | \
18542 old_archive_from_new_cmds_GCJ | \
18543 archive_cmds_GCJ | \
18544 archive_expsym_cmds_GCJ | \
18545 module_cmds_GCJ | \
18546 module_expsym_cmds_GCJ | \
18547 old_archive_from_expsyms_cmds_GCJ | \
18548 export_symbols_cmds_GCJ | \
18549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18550 postinstall_cmds | postuninstall_cmds | \
18551 old_postinstall_cmds | old_postuninstall_cmds | \
18552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18553 # Double-quote double-evaled strings.
18554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18563 *'\$0 --fallback-echo"')
18564 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18570 cat <<__EOF__ >> "$cfgfile"
18571 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18573 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18575 # Shell to use when invoking shell scripts.
18578 # Whether or not to build shared libraries.
18579 build_libtool_libs=$enable_shared
18581 # Whether or not to build static libraries.
18582 build_old_libs=$enable_static
18584 # Whether or not to add -lc for building shared libraries.
18585 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18587 # Whether or not to disallow shared libs when runtime libs are static
18588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18590 # Whether or not to optimize for fast installation.
18591 fast_install=$enable_fast_install
18594 host_alias=$host_alias
18598 # The build system.
18599 build_alias=$build_alias
18603 # An echo program that does not interpret backslashes.
18608 AR_FLAGS=$lt_AR_FLAGS
18613 # LTCC compiler flags.
18614 LTCFLAGS=$lt_LTCFLAGS
18616 # A language-specific compiler.
18617 CC=$lt_compiler_GCJ
18619 # Is the compiler the GNU C compiler?
18625 # The linker used to build libraries.
18628 # Whether we need hard or soft links.
18631 # A BSD-compatible nm program.
18634 # A symbol stripping program
18637 # Used to examine libraries when file_magic_cmd begins "file"
18638 MAGIC_CMD=$MAGIC_CMD
18640 # Used on cygwin: DLL creation program.
18643 # Used on cygwin: object dumper.
18646 # Used on cygwin: assembler.
18649 # The name of the directory that contains temporary libtool files.
18652 # How to create reloadable object files.
18653 reload_flag=$lt_reload_flag
18654 reload_cmds=$lt_reload_cmds
18656 # How to pass a linker flag through the compiler.
18657 wl=$lt_lt_prog_compiler_wl_GCJ
18659 # Object file suffix (normally "o").
18660 objext="$ac_objext"
18662 # Old archive suffix (normally "a").
18665 # Shared library suffix (normally ".so").
18666 shrext_cmds='$shrext_cmds'
18668 # Executable file suffix (normally "").
18671 # Additional compiler flags for building library objects.
18672 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18675 # What is the maximum length of a command?
18676 max_cmd_len=$lt_cv_sys_max_cmd_len
18678 # Does compiler simultaneously support -c and -o options?
18679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18681 # Must we lock files when doing compilation?
18682 need_locks=$lt_need_locks
18684 # Do we need the lib prefix for modules?
18685 need_lib_prefix=$need_lib_prefix
18687 # Do we need a version for libraries?
18688 need_version=$need_version
18690 # Whether dlopen is supported.
18691 dlopen_support=$enable_dlopen
18693 # Whether dlopen of programs is supported.
18694 dlopen_self=$enable_dlopen_self
18696 # Whether dlopen of statically linked programs is supported.
18697 dlopen_self_static=$enable_dlopen_self_static
18699 # Compiler flag to prevent dynamic linking.
18700 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18702 # Compiler flag to turn off builtin functions.
18703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18705 # Compiler flag to allow reflexive dlopens.
18706 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18708 # Compiler flag to generate shared objects directly from archives.
18709 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18711 # Compiler flag to generate thread-safe objects.
18712 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18714 # Library versioning type.
18715 version_type=$version_type
18717 # Format of library name prefix.
18718 libname_spec=$lt_libname_spec
18720 # List of archive names. First name is the real one, the rest are links.
18721 # The last name is the one that the linker finds with -lNAME.
18722 library_names_spec=$lt_library_names_spec
18724 # The coded name of the library, if different from the real name.
18725 soname_spec=$lt_soname_spec
18727 # Commands used to build and install an old-style archive.
18729 old_archive_cmds=$lt_old_archive_cmds_GCJ
18730 old_postinstall_cmds=$lt_old_postinstall_cmds
18731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18733 # Create an old-style archive from a shared archive.
18734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18736 # Create a temporary old-style archive to link instead of a shared archive.
18737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18739 # Commands used to build and install a shared archive.
18740 archive_cmds=$lt_archive_cmds_GCJ
18741 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18742 postinstall_cmds=$lt_postinstall_cmds
18743 postuninstall_cmds=$lt_postuninstall_cmds
18745 # Commands used to build a loadable module (assumed same as above if empty)
18746 module_cmds=$lt_module_cmds_GCJ
18747 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18749 # Commands to strip libraries.
18750 old_striplib=$lt_old_striplib
18751 striplib=$lt_striplib
18753 # Dependencies to place before the objects being linked to create a
18755 predep_objects=$lt_predep_objects_GCJ
18757 # Dependencies to place after the objects being linked to create a
18759 postdep_objects=$lt_postdep_objects_GCJ
18761 # Dependencies to place before the objects being linked to create a
18763 predeps=$lt_predeps_GCJ
18765 # Dependencies to place after the objects being linked to create a
18767 postdeps=$lt_postdeps_GCJ
18769 # The library search path used internally by the compiler when linking
18770 # a shared library.
18771 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18773 # Method to check whether dependent libraries are shared objects.
18774 deplibs_check_method=$lt_deplibs_check_method
18776 # Command to use when deplibs_check_method == file_magic.
18777 file_magic_cmd=$lt_file_magic_cmd
18779 # Flag that allows shared libraries with undefined symbols to be built.
18780 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18782 # Flag that forces no undefined symbols.
18783 no_undefined_flag=$lt_no_undefined_flag_GCJ
18785 # Commands used to finish a libtool library installation in a directory.
18786 finish_cmds=$lt_finish_cmds
18788 # Same as above, but a single script fragment to be evaled but not shown.
18789 finish_eval=$lt_finish_eval
18791 # Take the output of nm and produce a listing of raw symbols and C names.
18792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18794 # Transform the output of nm in a proper C declaration
18795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18797 # Transform the output of nm in a C name address pair
18798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18800 # This is the shared library runtime path variable.
18801 runpath_var=$runpath_var
18803 # This is the shared library path variable.
18804 shlibpath_var=$shlibpath_var
18806 # Is shlibpath searched before the hard-coded library search path?
18807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18809 # How to hardcode a shared library path into an executable.
18810 hardcode_action=$hardcode_action_GCJ
18812 # Whether we should hardcode library paths into libraries.
18813 hardcode_into_libs=$hardcode_into_libs
18815 # Flag to hardcode \$libdir into a binary during linking.
18816 # This must work even if \$libdir does not exist.
18817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18819 # If ld is used when linking, flag to hardcode \$libdir into
18820 # a binary during linking. This must work even if \$libdir does
18822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18824 # Whether we need a single -rpath flag with a separated argument.
18825 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18827 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18828 # resulting binary.
18829 hardcode_direct=$hardcode_direct_GCJ
18831 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18832 # resulting binary.
18833 hardcode_minus_L=$hardcode_minus_L_GCJ
18835 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18836 # the resulting binary.
18837 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18839 # Set to yes if building a shared library automatically hardcodes DIR into the library
18840 # and all subsequent libraries and executables linked against it.
18841 hardcode_automatic=$hardcode_automatic_GCJ
18843 # Variables whose values should be saved in libtool wrapper scripts and
18844 # restored at relink time.
18845 variables_saved_for_relink="$variables_saved_for_relink"
18847 # Whether libtool must link a program against all its dependency libraries.
18848 link_all_deplibs=$link_all_deplibs_GCJ
18850 # Compile-time system search path for libraries
18851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18853 # Run-time system search path for libraries
18854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18856 # Fix the shell variable \$srcfile for the compiler.
18857 fix_srcfile_path="$fix_srcfile_path_GCJ"
18859 # Set to yes if exported symbols are required.
18860 always_export_symbols=$always_export_symbols_GCJ
18862 # The commands to list exported symbols.
18863 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18865 # The commands to extract the exported symbol list from a shared archive.
18866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18868 # Symbols that should not be listed in the preloaded symbols.
18869 exclude_expsyms=$lt_exclude_expsyms_GCJ
18871 # Symbols that must always be exported.
18872 include_expsyms=$lt_include_expsyms_GCJ
18874 # ### END LIBTOOL TAG CONFIG: $tagname
18880 # If there is no Makefile yet, we rely on a make rule to execute
18881 # `config.status --recheck' to rerun these tests and create the
18882 # libtool script then.
18883 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18884 if test -f "$ltmain_in"; then
18885 test -f Makefile
&& make "$ltmain"
18891 ac_cpp
='$CPP $CPPFLAGS'
18892 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18906 # Source file extension for RC test sources.
18909 # Object file extension for compiled RC test sources.
18913 # Code to be used in simple compile tests
18914 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18916 # Code to be used in simple link tests
18917 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18921 # If no C compiler was specified, use CC.
18924 # If no C compiler flags were specified, use CFLAGS.
18925 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18927 # Allow CC to be a program name with arguments.
18931 # save warnings/boilerplate of simple test code
18932 ac_outfile
=conftest.
$ac_objext
18933 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
18934 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18935 _lt_compiler_boilerplate
=`cat conftest.err`
18938 ac_outfile
=conftest.
$ac_objext
18939 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
18940 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18941 _lt_linker_boilerplate
=`cat conftest.err`
18945 # Allow CC to be a program name with arguments.
18950 for cc_temp
in $compiler""; do
18952 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18953 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18958 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18960 lt_cv_prog_compiler_c_o_RC
=yes
18962 # The else clause should only fire when bootstrapping the
18963 # libtool distribution, otherwise you forgot to ship ltmain.sh
18964 # with your package, and you will get complaints that there are
18965 # no rules to generate ltmain.sh.
18966 if test -f "$ltmain"; then
18967 # See if we are running on zsh, and set the options which allow our commands through
18968 # without removal of \ escapes.
18969 if test -n "${ZSH_VERSION+set}" ; then
18970 setopt NO_GLOB_SUBST
18972 # Now quote all the things that may contain metacharacters while being
18973 # careful not to overquote the AC_SUBSTed values. We take copies of the
18974 # variables and quote the copies for generation of the libtool script.
18975 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18977 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18978 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18979 deplibs_check_method reload_flag reload_cmds need_locks \
18980 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18981 lt_cv_sys_global_symbol_to_c_name_address \
18982 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18983 old_postinstall_cmds old_postuninstall_cmds \
18987 lt_prog_compiler_wl_RC \
18988 lt_prog_compiler_pic_RC \
18989 lt_prog_compiler_static_RC \
18990 lt_prog_compiler_no_builtin_flag_RC \
18991 export_dynamic_flag_spec_RC \
18992 thread_safe_flag_spec_RC \
18993 whole_archive_flag_spec_RC \
18994 enable_shared_with_static_runtimes_RC \
18995 old_archive_cmds_RC \
18996 old_archive_from_new_cmds_RC \
18997 predep_objects_RC \
18998 postdep_objects_RC \
19001 compiler_lib_search_path_RC \
19003 archive_expsym_cmds_RC \
19004 postinstall_cmds_RC \
19005 postuninstall_cmds_RC \
19006 old_archive_from_expsyms_cmds_RC \
19007 allow_undefined_flag_RC \
19008 no_undefined_flag_RC \
19009 export_symbols_cmds_RC \
19010 hardcode_libdir_flag_spec_RC \
19011 hardcode_libdir_flag_spec_ld_RC \
19012 hardcode_libdir_separator_RC \
19013 hardcode_automatic_RC \
19015 module_expsym_cmds_RC \
19016 lt_cv_prog_compiler_c_o_RC \
19017 exclude_expsyms_RC \
19018 include_expsyms_RC
; do
19021 old_archive_cmds_RC | \
19022 old_archive_from_new_cmds_RC | \
19023 archive_cmds_RC | \
19024 archive_expsym_cmds_RC | \
19026 module_expsym_cmds_RC | \
19027 old_archive_from_expsyms_cmds_RC | \
19028 export_symbols_cmds_RC | \
19029 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19030 postinstall_cmds | postuninstall_cmds | \
19031 old_postinstall_cmds | old_postuninstall_cmds | \
19032 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19033 # Double-quote double-evaled strings.
19034 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19037 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19043 *'\$0 --fallback-echo"')
19044 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19050 cat <<__EOF__ >> "$cfgfile"
19051 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19053 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19055 # Shell to use when invoking shell scripts.
19058 # Whether or not to build shared libraries.
19059 build_libtool_libs=$enable_shared
19061 # Whether or not to build static libraries.
19062 build_old_libs=$enable_static
19064 # Whether or not to add -lc for building shared libraries.
19065 build_libtool_need_lc=$archive_cmds_need_lc_RC
19067 # Whether or not to disallow shared libs when runtime libs are static
19068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19070 # Whether or not to optimize for fast installation.
19071 fast_install=$enable_fast_install
19074 host_alias=$host_alias
19078 # The build system.
19079 build_alias=$build_alias
19083 # An echo program that does not interpret backslashes.
19088 AR_FLAGS=$lt_AR_FLAGS
19093 # LTCC compiler flags.
19094 LTCFLAGS=$lt_LTCFLAGS
19096 # A language-specific compiler.
19099 # Is the compiler the GNU C compiler?
19105 # The linker used to build libraries.
19108 # Whether we need hard or soft links.
19111 # A BSD-compatible nm program.
19114 # A symbol stripping program
19117 # Used to examine libraries when file_magic_cmd begins "file"
19118 MAGIC_CMD=$MAGIC_CMD
19120 # Used on cygwin: DLL creation program.
19123 # Used on cygwin: object dumper.
19126 # Used on cygwin: assembler.
19129 # The name of the directory that contains temporary libtool files.
19132 # How to create reloadable object files.
19133 reload_flag=$lt_reload_flag
19134 reload_cmds=$lt_reload_cmds
19136 # How to pass a linker flag through the compiler.
19137 wl=$lt_lt_prog_compiler_wl_RC
19139 # Object file suffix (normally "o").
19140 objext="$ac_objext"
19142 # Old archive suffix (normally "a").
19145 # Shared library suffix (normally ".so").
19146 shrext_cmds='$shrext_cmds'
19148 # Executable file suffix (normally "").
19151 # Additional compiler flags for building library objects.
19152 pic_flag=$lt_lt_prog_compiler_pic_RC
19155 # What is the maximum length of a command?
19156 max_cmd_len=$lt_cv_sys_max_cmd_len
19158 # Does compiler simultaneously support -c and -o options?
19159 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19161 # Must we lock files when doing compilation?
19162 need_locks=$lt_need_locks
19164 # Do we need the lib prefix for modules?
19165 need_lib_prefix=$need_lib_prefix
19167 # Do we need a version for libraries?
19168 need_version=$need_version
19170 # Whether dlopen is supported.
19171 dlopen_support=$enable_dlopen
19173 # Whether dlopen of programs is supported.
19174 dlopen_self=$enable_dlopen_self
19176 # Whether dlopen of statically linked programs is supported.
19177 dlopen_self_static=$enable_dlopen_self_static
19179 # Compiler flag to prevent dynamic linking.
19180 link_static_flag=$lt_lt_prog_compiler_static_RC
19182 # Compiler flag to turn off builtin functions.
19183 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19185 # Compiler flag to allow reflexive dlopens.
19186 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19188 # Compiler flag to generate shared objects directly from archives.
19189 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19191 # Compiler flag to generate thread-safe objects.
19192 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19194 # Library versioning type.
19195 version_type=$version_type
19197 # Format of library name prefix.
19198 libname_spec=$lt_libname_spec
19200 # List of archive names. First name is the real one, the rest are links.
19201 # The last name is the one that the linker finds with -lNAME.
19202 library_names_spec=$lt_library_names_spec
19204 # The coded name of the library, if different from the real name.
19205 soname_spec=$lt_soname_spec
19207 # Commands used to build and install an old-style archive.
19209 old_archive_cmds=$lt_old_archive_cmds_RC
19210 old_postinstall_cmds=$lt_old_postinstall_cmds
19211 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19213 # Create an old-style archive from a shared archive.
19214 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19216 # Create a temporary old-style archive to link instead of a shared archive.
19217 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19219 # Commands used to build and install a shared archive.
19220 archive_cmds=$lt_archive_cmds_RC
19221 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19222 postinstall_cmds=$lt_postinstall_cmds
19223 postuninstall_cmds=$lt_postuninstall_cmds
19225 # Commands used to build a loadable module (assumed same as above if empty)
19226 module_cmds=$lt_module_cmds_RC
19227 module_expsym_cmds=$lt_module_expsym_cmds_RC
19229 # Commands to strip libraries.
19230 old_striplib=$lt_old_striplib
19231 striplib=$lt_striplib
19233 # Dependencies to place before the objects being linked to create a
19235 predep_objects=$lt_predep_objects_RC
19237 # Dependencies to place after the objects being linked to create a
19239 postdep_objects=$lt_postdep_objects_RC
19241 # Dependencies to place before the objects being linked to create a
19243 predeps=$lt_predeps_RC
19245 # Dependencies to place after the objects being linked to create a
19247 postdeps=$lt_postdeps_RC
19249 # The library search path used internally by the compiler when linking
19250 # a shared library.
19251 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19253 # Method to check whether dependent libraries are shared objects.
19254 deplibs_check_method=$lt_deplibs_check_method
19256 # Command to use when deplibs_check_method == file_magic.
19257 file_magic_cmd=$lt_file_magic_cmd
19259 # Flag that allows shared libraries with undefined symbols to be built.
19260 allow_undefined_flag=$lt_allow_undefined_flag_RC
19262 # Flag that forces no undefined symbols.
19263 no_undefined_flag=$lt_no_undefined_flag_RC
19265 # Commands used to finish a libtool library installation in a directory.
19266 finish_cmds=$lt_finish_cmds
19268 # Same as above, but a single script fragment to be evaled but not shown.
19269 finish_eval=$lt_finish_eval
19271 # Take the output of nm and produce a listing of raw symbols and C names.
19272 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19274 # Transform the output of nm in a proper C declaration
19275 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19277 # Transform the output of nm in a C name address pair
19278 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19280 # This is the shared library runtime path variable.
19281 runpath_var=$runpath_var
19283 # This is the shared library path variable.
19284 shlibpath_var=$shlibpath_var
19286 # Is shlibpath searched before the hard-coded library search path?
19287 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19289 # How to hardcode a shared library path into an executable.
19290 hardcode_action=$hardcode_action_RC
19292 # Whether we should hardcode library paths into libraries.
19293 hardcode_into_libs=$hardcode_into_libs
19295 # Flag to hardcode \$libdir into a binary during linking.
19296 # This must work even if \$libdir does not exist.
19297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19299 # If ld is used when linking, flag to hardcode \$libdir into
19300 # a binary during linking. This must work even if \$libdir does
19302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19304 # Whether we need a single -rpath flag with a separated argument.
19305 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19307 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19308 # resulting binary.
19309 hardcode_direct=$hardcode_direct_RC
19311 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19312 # resulting binary.
19313 hardcode_minus_L=$hardcode_minus_L_RC
19315 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19316 # the resulting binary.
19317 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19319 # Set to yes if building a shared library automatically hardcodes DIR into the library
19320 # and all subsequent libraries and executables linked against it.
19321 hardcode_automatic=$hardcode_automatic_RC
19323 # Variables whose values should be saved in libtool wrapper scripts and
19324 # restored at relink time.
19325 variables_saved_for_relink="$variables_saved_for_relink"
19327 # Whether libtool must link a program against all its dependency libraries.
19328 link_all_deplibs=$link_all_deplibs_RC
19330 # Compile-time system search path for libraries
19331 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19333 # Run-time system search path for libraries
19334 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19336 # Fix the shell variable \$srcfile for the compiler.
19337 fix_srcfile_path="$fix_srcfile_path_RC"
19339 # Set to yes if exported symbols are required.
19340 always_export_symbols=$always_export_symbols_RC
19342 # The commands to list exported symbols.
19343 export_symbols_cmds=$lt_export_symbols_cmds_RC
19345 # The commands to extract the exported symbol list from a shared archive.
19346 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19348 # Symbols that should not be listed in the preloaded symbols.
19349 exclude_expsyms=$lt_exclude_expsyms_RC
19351 # Symbols that must always be exported.
19352 include_expsyms=$lt_include_expsyms_RC
19354 # ### END LIBTOOL TAG CONFIG: $tagname
19360 # If there is no Makefile yet, we rely on a make rule to execute
19361 # `config.status --recheck' to rerun these tests and create the
19362 # libtool script then.
19363 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19364 if test -f "$ltmain_in"; then
19365 test -f Makefile
&& make "$ltmain"
19371 ac_cpp
='$CPP $CPPFLAGS'
19372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19381 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19382 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19383 { (exit 1); exit 1; }; }
19387 # Append the new tag name to the list of available tags.
19388 if test -n "$tagname" ; then
19389 available_tags
="$available_tags $tagname"
19395 # Now substitute the updated list of available tags.
19396 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19397 mv "${ofile}T" "$ofile"
19401 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19402 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19403 { (exit 1); exit 1; }; }
19409 # This can be used to rebuild libtool when needed
19410 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19412 # Always use our own libtool.
19413 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19415 # Prevent multiple expansion
19438 for ac_prog
in perl5 perl
19440 # Extract the first word of "$ac_prog", so it can be a program name with args.
19441 set dummy
$ac_prog; ac_word
=$2
19442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19444 if test "${ac_cv_path_PERL+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
19452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19453 for as_dir
in $LPATH
19456 test -z "$as_dir" && as_dir
=.
19457 for ac_exec_ext
in '' $ac_executable_extensions; do
19458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19459 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
19460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19470 PERL
=$ac_cv_path_PERL
19471 if test -n "$PERL"; then
19472 { echo "$as_me:$LINENO: result: $PERL" >&5
19473 echo "${ECHO_T}$PERL" >&6; }
19475 { echo "$as_me:$LINENO: result: no" >&5
19476 echo "${ECHO_T}no" >&6; }
19480 test -n "$PERL" && break
19482 test -n "$PERL" || PERL
="perl"
19484 for ac_prog
in courier-config
19486 # Extract the first word of "$ac_prog", so it can be a program name with args.
19487 set dummy
$ac_prog; ac_word
=$2
19488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19490 if test "${ac_cv_path_COURIERCONFIG+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19493 case $COURIERCONFIG in
19495 ac_cv_path_COURIERCONFIG
="$COURIERCONFIG" # Let the user override the test with a path.
19498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19499 for as_dir
in $LPATH
19502 test -z "$as_dir" && as_dir
=.
19503 for ac_exec_ext
in '' $ac_executable_extensions; do
19504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19505 ac_cv_path_COURIERCONFIG
="$as_dir/$ac_word$ac_exec_ext"
19506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19516 COURIERCONFIG
=$ac_cv_path_COURIERCONFIG
19517 if test -n "$COURIERCONFIG"; then
19518 { echo "$as_me:$LINENO: result: $COURIERCONFIG" >&5
19519 echo "${ECHO_T}$COURIERCONFIG" >&6; }
19521 { echo "$as_me:$LINENO: result: no" >&5
19522 echo "${ECHO_T}no" >&6; }
19526 test -n "$COURIERCONFIG" && break
19528 test -n "$COURIERCONFIG" || COURIERCONFIG
="courier-config"
19531 if test "$PERL" = "perl"
19533 { { echo "$as_me:$LINENO: error: Perl is required" >&5
19534 echo "$as_me: error: Perl is required" >&2;}
19535 { (exit 1); exit 1; }; }
19538 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19539 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19540 eval "prefix=$prefix"
19541 eval "exec_prefix=$exec_prefix"
19542 eval "sysconfdir=$sysconfdir"
19543 eval "bindir=$bindir"
19544 eval "sbindir=$sbindir"
19545 eval "localstatedir=$localstatedir"
19546 eval "libexecdir=$libexecdir"
19549 # Check whether --with-redhat was given.
19550 if test "${with_redhat+set}" = set; then
19551 withval
=$with_redhat; redhat
=$withval
19557 if test "$srcdir" = "."
19559 case `./config.guess` in
19561 if test "$redhat" = "no"
19564 { echo "$as_me:$LINENO: WARNING: === I think you are trying to run this configure script" >&5
19565 echo "$as_me: WARNING: === I think you are trying to run this configure script" >&2;}
19566 { echo "$as_me:$LINENO: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&5
19567 echo "$as_me: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&2;}
19568 { echo "$as_me:$LINENO: WARNING: === It's much faster to create installable binary RPMs" >&5
19569 echo "$as_me: WARNING: === It's much faster to create installable binary RPMs" >&2;}
19570 { echo "$as_me:$LINENO: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&5
19571 echo "$as_me: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&2;}
19572 { echo "$as_me:$LINENO: WARNING: === When you do this you may find that RPM will tell you" >&5
19573 echo "$as_me: WARNING: === When you do this you may find that RPM will tell you" >&2;}
19574 { echo "$as_me:$LINENO: WARNING: === to install some other software first, before trying to" >&5
19575 echo "$as_me: WARNING: === to install some other software first, before trying to" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: === build this one, and even tell you the name of RPMs you" >&5
19577 echo "$as_me: WARNING: === build this one, and even tell you the name of RPMs you" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: === need to install from the distribution CD. That's much" >&5
19579 echo "$as_me: WARNING: === need to install from the distribution CD. That's much" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: === easier than trying to figure out the same from some" >&5
19581 echo "$as_me: WARNING: === easier than trying to figure out the same from some" >&2;}
19582 { echo "$as_me:$LINENO: WARNING: === cryptic error message." >&5
19583 echo "$as_me: WARNING: === cryptic error message." >&2;}
19584 { echo "$as_me:$LINENO: WARNING: " >&5
19585 echo "$as_me: WARNING: " >&2;}
19586 { echo "$as_me:$LINENO: WARNING: === Even if you don't intend to use everything you need to" >&5
19587 echo "$as_me: WARNING: === Even if you don't intend to use everything you need to" >&2;}
19588 { echo "$as_me:$LINENO: WARNING: === have in order to build via RPM, you should still do as" >&5
19589 echo "$as_me: WARNING: === have in order to build via RPM, you should still do as" >&2;}
19590 { echo "$as_me:$LINENO: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&5
19591 echo "$as_me: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&2;}
19592 { echo "$as_me:$LINENO: WARNING: === goes into RPM sub-packages, which do not need to be" >&5
19593 echo "$as_me: WARNING: === goes into RPM sub-packages, which do not need to be" >&2;}
19594 { echo "$as_me:$LINENO: WARNING: === installed." >&5
19595 echo "$as_me: WARNING: === installed." >&2;}
19596 { echo "$as_me:$LINENO: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&5
19597 echo "$as_me: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&2;}
19598 { echo "$as_me:$LINENO: WARNING: === parameter to this configure script and not see this" >&5
19599 echo "$as_me: WARNING: === parameter to this configure script and not see this" >&2;}
19600 { echo "$as_me:$LINENO: WARNING: === error message. You should also do this when upgrading" >&5
19601 echo "$as_me: WARNING: === error message. You should also do this when upgrading" >&2;}
19602 { echo "$as_me:$LINENO: WARNING: === and you didn't use RPM with the older version." >&5
19603 echo "$as_me: WARNING: === and you didn't use RPM with the older version." >&2;}
19604 { { echo "$as_me:$LINENO: error: ... in either case you better know what you're doing!" >&5
19605 echo "$as_me: error: ... in either case you better know what you're doing!" >&2;}
19606 { (exit 1); exit 1; }; }
19613 for ac_prog
in expect
19615 # Extract the first word of "$ac_prog", so it can be a program name with args.
19616 set dummy
$ac_prog; ac_word
=$2
19617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19619 if test "${ac_cv_path_EXPECT+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 ac_cv_path_EXPECT
="$EXPECT" # Let the user override the test with a path.
19627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19628 for as_dir
in $LPATH
19631 test -z "$as_dir" && as_dir
=.
19632 for ac_exec_ext
in '' $ac_executable_extensions; do
19633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19634 ac_cv_path_EXPECT
="$as_dir/$ac_word$ac_exec_ext"
19635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19645 EXPECT
=$ac_cv_path_EXPECT
19646 if test -n "$EXPECT"; then
19647 { echo "$as_me:$LINENO: result: $EXPECT" >&5
19648 echo "${ECHO_T}$EXPECT" >&6; }
19650 { echo "$as_me:$LINENO: result: no" >&5
19651 echo "${ECHO_T}no" >&6; }
19655 test -n "$EXPECT" && break
19657 test -n "$EXPECT" || EXPECT
="expect"
19660 if test "$EXPECT" = "expect"
19662 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19663 echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19664 { echo "$as_me:$LINENO: WARNING: expect not found - will not be able to change passwds" >&5
19665 echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
19666 { echo "$as_me:$LINENO: WARNING: in webmail" >&5
19667 echo "$as_me: WARNING: in webmail" >&2;}
19668 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19669 echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19673 cat >>confdefs.h
<<_ACEOF
19674 #define HAVE_EXPECT 1
19679 for ac_prog
in passwd
19681 # Extract the first word of "$ac_prog", so it can be a program name with args.
19682 set dummy
$ac_prog; ac_word
=$2
19683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19685 if test "${ac_cv_path_PASSWD+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 ac_cv_path_PASSWD
="$PASSWD" # Let the user override the test with a path.
19693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19694 for as_dir
in $LPATH
19697 test -z "$as_dir" && as_dir
=.
19698 for ac_exec_ext
in '' $ac_executable_extensions; do
19699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19700 ac_cv_path_PASSWD
="$as_dir/$ac_word$ac_exec_ext"
19701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19711 PASSWD
=$ac_cv_path_PASSWD
19712 if test -n "$PASSWD"; then
19713 { echo "$as_me:$LINENO: result: $PASSWD" >&5
19714 echo "${ECHO_T}$PASSWD" >&6; }
19716 { echo "$as_me:$LINENO: result: no" >&5
19717 echo "${ECHO_T}no" >&6; }
19721 test -n "$PASSWD" && break
19723 test -n "$PASSWD" || PASSWD
="passwd"
19727 if test "$GCC" = "yes"
19729 CFLAGS
="$CFLAGS -Wall"
19732 CFLAGS
="$CFLAGS -I.. -I${srcdir}/.."
19734 { echo "$as_me:$LINENO: checking whether -lm is needed for floor" >&5
19735 echo $ECHO_N "checking whether -lm is needed for floor... $ECHO_C" >&6; }
19736 cat >conftest.
$ac_ext <<_ACEOF
19739 cat confdefs.h
>>conftest.
$ac_ext
19740 cat >>conftest.
$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19743 /* Override any GCC internal prototype to avoid an error.
19744 Use char because int might match the return type of a GCC
19745 builtin and then its argument prototype would still apply. */
19758 rm -f conftest.
$ac_objext conftest
$ac_exeext
19759 if { (ac_try
="$ac_link"
19760 case "(($ac_try" in
19761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_link") 2>conftest.er1
19767 grep -v '^ *+' conftest.er1 >conftest.err
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_c_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest$ac_exeext &&
19775 $as_test_x conftest$ac_exeext; then
19776 { echo "$as_me:$LINENO: result: no" >&5
19777 echo "${ECHO_T}no" >&6; }
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19783 { echo "$as_me:$LINENO: result: yes" >&5
19784 echo "${ECHO_T}yes" >&6; }
19787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19788 conftest$ac_exeext conftest.$ac_ext
19791 # Check whether --with-pkgconfdir was given.
19792 if test "${with_pkgconfdir+set}" = set; then
19793 withval=$with_pkgconfdir; pkgconfdir="$withval"
19795 pkgconfdir="$sysconfdir/authlib"
19799 SASL_LIST="SASL(\"PLAIN\", authsasl_plain, authsaslclient_plain) SASL(\"LOGIN\", authsasl_login, authsaslclient_login)"
19805 if test -d ${srcdir}/md5
19809 cat >>confdefs.h <<_ACEOF
19810 #define HAVE_MD5LIB 1
19813 MD5LIB=md5/libmd5.la
19814 if test -d ${srcdir}/md5
19816 SASL_LIST="SASL(\"CRAM-MD5\", authsasl_cram, authsaslclient_crammd5) $SASL_LIST"
19823 if test "$MD5" = 1; then
19836 if test -d ${srcdir}/sha1
19840 cat >>confdefs.h <<_ACEOF
19841 #define HAVE_SHA1LIB 1
19844 SHA1LIB=sha1/libsha1.la
19845 if test -d ${srcdir}/sha1
19847 SASL_LIST="SASL(\"CRAM-SHA1\", authsasl_cram, authsaslclient_cramsha1) $SASL_LIST"
19848 SASL_LIST="SASL(\"CRAM-SHA256\", authsasl_cram, authsaslclient_cramsha256) $SASL_LIST"
19855 if test "$SHA1" = 1; then
19857 HAVE_SHA1_FALSE='#'
19869 if test -d ${srcdir}/libhmac
19873 cat >>confdefs.h <<_ACEOF
19874 #define HAVE_HMACLIB 1
19877 HMACLIB=libhmac/libhmac.la
19883 if test "$HMAC" = 1; then
19885 HAVE_HMACLIB_FALSE='#'
19887 HAVE_HMACLIB_TRUE='#'
19888 HAVE_HMACLIB_FALSE=
19896 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19897 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
19898 if test "${ac_cv_lib_socket_socket+set}" = set; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
19901 ac_check_lib_save_LIBS=$LIBS
19902 LIBS="-lsocket $LIBS"
19903 cat >conftest.$ac_ext <<_ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19910 /* Override any GCC internal prototype to avoid an error.
19911 Use char because int might match the return type of a GCC
19912 builtin and then its argument prototype would still apply. */
19925 rm -f conftest.$ac_objext conftest$ac_exeext
19926 if { (ac_try="$ac_link"
19927 case "(($ac_try" in
19928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19929 *) ac_try_echo
=$ac_try;;
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_link") 2>conftest.er1
19934 grep -v '^ *+' conftest.er1
>conftest.err
19936 cat conftest.err
>&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } && {
19939 test -z "$ac_c_werror_flag" ||
19940 test ! -s conftest.err
19941 } && test -s conftest
$ac_exeext &&
19942 $as_test_x conftest
$ac_exeext; then
19943 ac_cv_lib_socket_socket
=yes
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.
$ac_ext >&5
19948 ac_cv_lib_socket_socket
=no
19951 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19952 conftest
$ac_exeext conftest.
$ac_ext
19953 LIBS
=$ac_check_lib_save_LIBS
19955 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19956 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
19957 if test $ac_cv_lib_socket_socket = yes; then
19963 if test $result = yes; then
19966 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19967 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
19968 if test "${ac_cv_lib_socket_socket+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 ac_check_lib_save_LIBS
=$LIBS
19972 LIBS
="-lsocket -lnsl $LIBS"
19973 cat >conftest.
$ac_ext <<_ACEOF
19976 cat confdefs.h
>>conftest.
$ac_ext
19977 cat >>conftest.
$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19980 /* Override any GCC internal prototype to avoid an error.
19981 Use char because int might match the return type of a GCC
19982 builtin and then its argument prototype would still apply. */
19995 rm -f conftest.
$ac_objext conftest
$ac_exeext
19996 if { (ac_try
="$ac_link"
19997 case "(($ac_try" in
19998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_link") 2>conftest.er1
20004 grep -v '^ *+' conftest.er1 >conftest.err
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } && {
20009 test -z "$ac_c_werror_flag" ||
20010 test ! -s conftest.err
20011 } && test -s conftest$ac_exeext &&
20012 $as_test_x conftest$ac_exeext; then
20013 ac_cv_lib_socket_socket=yes
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 ac_cv_lib_socket_socket=no
20021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20022 conftest$ac_exeext conftest.$ac_ext
20023 LIBS=$ac_check_lib_save_LIBS
20025 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20026 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
20027 if test $ac_cv_lib_socket_socket = yes; then
20033 if test $result = yes; then
20034 NETLIBS = "-lsocket -lnsl"
20037 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20038 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20039 if test "${ac_cv_lib_socket_connect+set}" = set; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 ac_check_lib_save_LIBS=$LIBS
20043 LIBS="-lsocket $LIBS"
20044 cat >conftest.$ac_ext <<_ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20051 /* Override any GCC internal prototype to avoid an error.
20052 Use char because int might match the return type of a GCC
20053 builtin and then its argument prototype would still apply. */
20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (ac_try="$ac_link"
20068 case "(($ac_try" in
20069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20070 *) ac_try_echo
=$ac_try;;
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_link") 2>conftest.er1
20075 grep -v '^ *+' conftest.er1
>conftest.err
20077 cat conftest.err
>&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } && {
20080 test -z "$ac_c_werror_flag" ||
20081 test ! -s conftest.err
20082 } && test -s conftest
$ac_exeext &&
20083 $as_test_x conftest
$ac_exeext; then
20084 ac_cv_lib_socket_connect
=yes
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.
$ac_ext >&5
20089 ac_cv_lib_socket_connect
=no
20092 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20093 conftest
$ac_exeext conftest.
$ac_ext
20094 LIBS
=$ac_check_lib_save_LIBS
20096 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20097 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20098 if test $ac_cv_lib_socket_connect = yes; then
20104 if test $result = yes; then
20107 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20108 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20109 if test "${ac_cv_lib_socket_connect+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20112 ac_check_lib_save_LIBS
=$LIBS
20113 LIBS
="-lsocket -lnsl $LIBS"
20114 cat >conftest.
$ac_ext <<_ACEOF
20117 cat confdefs.h
>>conftest.
$ac_ext
20118 cat >>conftest.
$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20121 /* Override any GCC internal prototype to avoid an error.
20122 Use char because int might match the return type of a GCC
20123 builtin and then its argument prototype would still apply. */
20136 rm -f conftest.
$ac_objext conftest
$ac_exeext
20137 if { (ac_try
="$ac_link"
20138 case "(($ac_try" in
20139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_link") 2>conftest.er1
20145 grep -v '^ *+' conftest.er1 >conftest.err
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest$ac_exeext &&
20153 $as_test_x conftest$ac_exeext; then
20154 ac_cv_lib_socket_connect=yes
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 ac_cv_lib_socket_connect=no
20162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20163 conftest$ac_exeext conftest.$ac_ext
20164 LIBS=$ac_check_lib_save_LIBS
20166 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20167 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20168 if test $ac_cv_lib_socket_connect = yes; then
20174 if test $result = yes; then
20175 NETLIBS="-lsocket -lnsl"
20182 if test $USENSL != yes; then
20183 LIBS="$LIBS $NETLIBS"
20184 cat >conftest.$ac_ext <<_ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20191 /* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
20201 return inet_addr ();
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (ac_try="$ac_link"
20208 case "(($ac_try" in
20209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20210 *) ac_try_echo
=$ac_try;;
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_link") 2>conftest.er1
20215 grep -v '^ *+' conftest.er1
>conftest.err
20217 cat conftest.err
>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } && {
20220 test -z "$ac_c_werror_flag" ||
20221 test ! -s conftest.err
20222 } && test -s conftest
$ac_exeext &&
20223 $as_test_x conftest
$ac_exeext; then
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.
$ac_ext >&5
20230 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
20231 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
20232 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 ac_check_lib_save_LIBS
=$LIBS
20237 cat >conftest.
$ac_ext <<_ACEOF
20240 cat confdefs.h
>>conftest.
$ac_ext
20241 cat >>conftest.
$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20254 return inet_addr ();
20259 rm -f conftest.
$ac_objext conftest
$ac_exeext
20260 if { (ac_try
="$ac_link"
20261 case "(($ac_try" in
20262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_link") 2>conftest.er1
20268 grep -v '^ *+' conftest.er1 >conftest.err
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } && {
20273 test -z "$ac_c_werror_flag" ||
20274 test ! -s conftest.err
20275 } && test -s conftest$ac_exeext &&
20276 $as_test_x conftest$ac_exeext; then
20277 ac_cv_lib_nsl_inet_addr=yes
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_cv_lib_nsl_inet_addr=no
20285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20286 conftest$ac_exeext conftest.$ac_ext
20287 LIBS=$ac_check_lib_save_LIBS
20289 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
20290 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
20291 if test $ac_cv_lib_nsl_inet_addr = yes; then
20297 if test $result = yes; then
20298 NETLIBS="$NETLIBS -lnsl"
20303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20304 conftest$ac_exeext conftest.$ac_ext
20315 # Check whether --with-db was given.
20316 if test "${with_db+set}" = set; then
20317 withval=$with_db; db="$withval"
20331 { { echo "$as_me:$LINENO: error: Invalid --with-db option." >&5
20332 echo "$as_me: error: Invalid --with-db option." >&2;}
20333 { (exit 1); exit 1; }; }
20339 if test "$db" != "db"
20341 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
20342 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
20343 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20346 ac_check_lib_save_LIBS=$LIBS
20347 LIBS="-lgdbm $LIBS"
20348 cat >conftest.$ac_ext <<_ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20355 /* Override any GCC internal prototype to avoid an error.
20356 Use char because int might match the return type of a GCC
20357 builtin and then its argument prototype would still apply. */
20365 return gdbm_open ();
20370 rm -f conftest.$ac_objext conftest$ac_exeext
20371 if { (ac_try="$ac_link"
20372 case "(($ac_try" in
20373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20374 *) ac_try_echo
=$ac_try;;
20376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377 (eval "$ac_link") 2>conftest.er1
20379 grep -v '^ *+' conftest.er1
>conftest.err
20381 cat conftest.err
>&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } && {
20384 test -z "$ac_c_werror_flag" ||
20385 test ! -s conftest.err
20386 } && test -s conftest
$ac_exeext &&
20387 $as_test_x conftest
$ac_exeext; then
20388 ac_cv_lib_gdbm_gdbm_open
=yes
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.
$ac_ext >&5
20393 ac_cv_lib_gdbm_gdbm_open
=no
20396 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20397 conftest
$ac_exeext conftest.
$ac_ext
20398 LIBS
=$ac_check_lib_save_LIBS
20400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
20401 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
20402 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
20403 LIBGDBM
=-lgdbm ; LIBS
="-lgdbm $LIBS"
20406 { echo "$as_me:$LINENO: checking for gdbm_open" >&5
20407 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6; }
20408 if test "${ac_cv_func_gdbm_open+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 cat >conftest.
$ac_ext <<_ACEOF
20414 cat confdefs.h
>>conftest.
$ac_ext
20415 cat >>conftest.
$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
20418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20419 #define gdbm_open innocuous_gdbm_open
20421 /* System header to define __stub macros and hopefully few prototypes,
20422 which can conflict with char gdbm_open (); below.
20423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20424 <limits.h> exists even on freestanding compilers. */
20427 # include <limits.h>
20429 # include <assert.h>
20434 /* Override any GCC internal prototype to avoid an error.
20435 Use char because int might match the return type of a GCC
20436 builtin and then its argument prototype would still apply. */
20441 /* The GNU C library defines this for functions which it implements
20442 to always fail with ENOSYS. Some functions are actually named
20443 something starting with __ and the normal name is an alias. */
20444 #if defined __stub_gdbm_open || defined __stub___gdbm_open
20451 return gdbm_open ();
20456 rm -f conftest.
$ac_objext conftest
$ac_exeext
20457 if { (ac_try
="$ac_link"
20458 case "(($ac_try" in
20459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_link") 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest$ac_exeext &&
20473 $as_test_x conftest$ac_exeext; then
20474 ac_cv_func_gdbm_open=yes
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ac_cv_func_gdbm_open=no
20482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20483 conftest$ac_exeext conftest.$ac_ext
20485 { echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
20486 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6; }
20487 if test $ac_cv_func_gdbm_open = yes; then
20495 if test "$db" != "gdbm"
20497 { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
20498 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
20499 if test "${ac_cv_lib_db_dbopen+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 ac_check_lib_save_LIBS=$LIBS
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20511 /* Override any GCC internal prototype to avoid an error.
20512 Use char because int might match the return type of a GCC
20513 builtin and then its argument prototype would still apply. */
20526 rm -f conftest.$ac_objext conftest$ac_exeext
20527 if { (ac_try="$ac_link"
20528 case "(($ac_try" in
20529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20530 *) ac_try_echo
=$ac_try;;
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_link") 2>conftest.er1
20535 grep -v '^ *+' conftest.er1
>conftest.err
20537 cat conftest.err
>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && {
20540 test -z "$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20542 } && test -s conftest
$ac_exeext &&
20543 $as_test_x conftest
$ac_exeext; then
20544 ac_cv_lib_db_dbopen
=yes
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.
$ac_ext >&5
20549 ac_cv_lib_db_dbopen
=no
20552 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20553 conftest
$ac_exeext conftest.
$ac_ext
20554 LIBS
=$ac_check_lib_save_LIBS
20556 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
20557 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
20558 if test $ac_cv_lib_db_dbopen = yes; then
20559 LIBDB
=-ldb ; LIBS
="-ldb $LIBS"
20561 { echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
20562 echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6; }
20563 if test "${ac_cv_lib_db_db_open+set}" = set; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20566 ac_check_lib_save_LIBS
=$LIBS
20568 cat >conftest.
$ac_ext <<_ACEOF
20571 cat confdefs.h
>>conftest.
$ac_ext
20572 cat >>conftest.
$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20575 /* Override any GCC internal prototype to avoid an error.
20576 Use char because int might match the return type of a GCC
20577 builtin and then its argument prototype would still apply. */
20590 rm -f conftest.
$ac_objext conftest
$ac_exeext
20591 if { (ac_try
="$ac_link"
20592 case "(($ac_try" in
20593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597 (eval "$ac_link") 2>conftest.er1
20599 grep -v '^ *+' conftest.er1 >conftest.err
20601 cat conftest.err >&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); } && {
20604 test -z "$ac_c_werror_flag" ||
20605 test ! -s conftest.err
20606 } && test -s conftest$ac_exeext &&
20607 $as_test_x conftest$ac_exeext; then
20608 ac_cv_lib_db_db_open=yes
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 ac_cv_lib_db_db_open=no
20616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20617 conftest$ac_exeext conftest.$ac_ext
20618 LIBS=$ac_check_lib_save_LIBS
20620 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
20621 echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6; }
20622 if test $ac_cv_lib_db_db_open = yes; then
20623 LIBDB=-ldb ; LIBS="-ldb $LIBS"
20625 { echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
20626 echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6; }
20627 if test "${ac_cv_lib_db_db_env_create+set}" = set; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 ac_check_lib_save_LIBS=$LIBS
20632 cat >conftest.$ac_ext <<_ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20639 /* Override any GCC internal prototype to avoid an error.
20640 Use char because int might match the return type of a GCC
20641 builtin and then its argument prototype would still apply. */
20645 char db_env_create ();
20649 return db_env_create ();
20654 rm -f conftest.$ac_objext conftest$ac_exeext
20655 if { (ac_try="$ac_link"
20656 case "(($ac_try" in
20657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20658 *) ac_try_echo
=$ac_try;;
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_link") 2>conftest.er1
20663 grep -v '^ *+' conftest.er1
>conftest.err
20665 cat conftest.err
>&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } && {
20668 test -z "$ac_c_werror_flag" ||
20669 test ! -s conftest.err
20670 } && test -s conftest
$ac_exeext &&
20671 $as_test_x conftest
$ac_exeext; then
20672 ac_cv_lib_db_db_env_create
=yes
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.
$ac_ext >&5
20677 ac_cv_lib_db_db_env_create
=no
20680 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20681 conftest
$ac_exeext conftest.
$ac_ext
20682 LIBS
=$ac_check_lib_save_LIBS
20684 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
20685 echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6; }
20686 if test $ac_cv_lib_db_db_env_create = yes; then
20687 LIBDB
=-ldb; LIBS
="-ldb $LIBS"
20696 { echo "$as_me:$LINENO: checking for dbopen" >&5
20697 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
20698 if test "${ac_cv_func_dbopen+set}" = set; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 cat >conftest.
$ac_ext <<_ACEOF
20704 cat confdefs.h
>>conftest.
$ac_ext
20705 cat >>conftest.
$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 /* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
20708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20709 #define dbopen innocuous_dbopen
20711 /* System header to define __stub macros and hopefully few prototypes,
20712 which can conflict with char dbopen (); below.
20713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20714 <limits.h> exists even on freestanding compilers. */
20717 # include <limits.h>
20719 # include <assert.h>
20724 /* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20731 /* The GNU C library defines this for functions which it implements
20732 to always fail with ENOSYS. Some functions are actually named
20733 something starting with __ and the normal name is an alias. */
20734 #if defined __stub_dbopen || defined __stub___dbopen
20746 rm -f conftest.
$ac_objext conftest
$ac_exeext
20747 if { (ac_try
="$ac_link"
20748 case "(($ac_try" in
20749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_link") 2>conftest.er1
20755 grep -v '^ *+' conftest.er1 >conftest.err
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest$ac_exeext &&
20763 $as_test_x conftest$ac_exeext; then
20764 ac_cv_func_dbopen=yes
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20769 ac_cv_func_dbopen=no
20772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20773 conftest$ac_exeext conftest.$ac_ext
20775 { echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
20776 echo "${ECHO_T}$ac_cv_func_dbopen" >&6; }
20777 if test $ac_cv_func_dbopen = yes; then
20781 { echo "$as_me:$LINENO: checking for db_open" >&5
20782 echo $ECHO_N "checking for db_open... $ECHO_C" >&6; }
20783 if test "${ac_cv_func_db_open+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20786 cat >conftest.$ac_ext <<_ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792 /* Define db_open to an innocuous variant, in case <limits.h> declares db_open.
20793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20794 #define db_open innocuous_db_open
20796 /* System header to define __stub macros and hopefully few prototypes,
20797 which can conflict with char db_open (); below.
20798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20799 <limits.h> exists even on freestanding compilers. */
20802 # include <limits.h>
20804 # include <assert.h>
20809 /* Override any GCC internal prototype to avoid an error.
20810 Use char because int might match the return type of a GCC
20811 builtin and then its argument prototype would still apply. */
20816 /* The GNU C library defines this for functions which it implements
20817 to always fail with ENOSYS. Some functions are actually named
20818 something starting with __ and the normal name is an alias. */
20819 #if defined __stub_db_open || defined __stub___db_open
20831 rm -f conftest.$ac_objext conftest$ac_exeext
20832 if { (ac_try="$ac_link"
20833 case "(($ac_try" in
20834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20835 *) ac_try_echo
=$ac_try;;
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_link") 2>conftest.er1
20840 grep -v '^ *+' conftest.er1
>conftest.err
20842 cat conftest.err
>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } && {
20845 test -z "$ac_c_werror_flag" ||
20846 test ! -s conftest.err
20847 } && test -s conftest
$ac_exeext &&
20848 $as_test_x conftest
$ac_exeext; then
20849 ac_cv_func_db_open
=yes
20851 echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.
$ac_ext >&5
20854 ac_cv_func_db_open
=no
20857 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20858 conftest
$ac_exeext conftest.
$ac_ext
20860 { echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
20861 echo "${ECHO_T}$ac_cv_func_db_open" >&6; }
20862 if test $ac_cv_func_db_open = yes; then
20866 { echo "$as_me:$LINENO: checking for db_env_create" >&5
20867 echo $ECHO_N "checking for db_env_create... $ECHO_C" >&6; }
20868 if test "${ac_cv_func_db_env_create+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 cat >conftest.
$ac_ext <<_ACEOF
20874 cat confdefs.h
>>conftest.
$ac_ext
20875 cat >>conftest.
$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 /* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create.
20878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20879 #define db_env_create innocuous_db_env_create
20881 /* System header to define __stub macros and hopefully few prototypes,
20882 which can conflict with char db_env_create (); below.
20883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20884 <limits.h> exists even on freestanding compilers. */
20887 # include <limits.h>
20889 # include <assert.h>
20892 #undef db_env_create
20894 /* Override any GCC internal prototype to avoid an error.
20895 Use char because int might match the return type of a GCC
20896 builtin and then its argument prototype would still apply. */
20900 char db_env_create ();
20901 /* The GNU C library defines this for functions which it implements
20902 to always fail with ENOSYS. Some functions are actually named
20903 something starting with __ and the normal name is an alias. */
20904 #if defined __stub_db_env_create || defined __stub___db_env_create
20911 return db_env_create ();
20916 rm -f conftest.
$ac_objext conftest
$ac_exeext
20917 if { (ac_try
="$ac_link"
20918 case "(($ac_try" in
20919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_link") 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest$ac_exeext &&
20933 $as_test_x conftest$ac_exeext; then
20934 ac_cv_func_db_env_create=yes
20936 echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20939 ac_cv_func_db_env_create=no
20942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20943 conftest$ac_exeext conftest.$ac_ext
20945 { echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
20946 echo "${ECHO_T}$ac_cv_func_db_env_create" >&6; }
20947 if test $ac_cv_func_db_env_create = yes; then
20955 if test "$HAVE_GDBM$HAVE_BDB" = ""
20957 { { echo "$as_me:$LINENO: error: Cannot find either the gdbm or the db library." >&5
20958 echo "$as_me: error: Cannot find either the gdbm or the db library." >&2;}
20959 { (exit 1); exit 1; }; }
20965 if test "$HAVE_GDBM" = "y"
20970 if test "$needs_withdb" = 1
20972 ac_configure_args="$ac_configure_args --with-db=gdbm"
20974 dblibrary=gdbmobj/libgdbmobj.la
20979 if test "$needs_withdb" = 1
20981 ac_configure_args="$ac_configure_args --with-db=db"
20983 dblibrary=bdbobj/libbdbobj.la
20993 # Check whether --with-authuserdb was given.
20994 if test "${with_authuserdb+set}" = set; then
20995 withval=$with_authuserdb; doauthuserdb="$withval"
20998 if test -d ${srcdir}/userdb
21005 if test "$doauthuserdb" = "no"
21009 AUTHUSERDB="authuserdb"
21010 LIBAUTHUSERDB="libauthuserdb.la"
21015 # Check whether --with-makedatprog was given.
21016 if test "${with_makedatprog+set}" = set; then
21017 withval=$with_makedatprog; :
21020 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
21025 cat >dbobj.config <<EOF
21028 dblibrary=$dblibrary
21039 userdb="$pkgconfdir/userdb"
21041 # Check whether --with-userdb was given.
21042 if test "${with_userdb+set}" = set; then
21043 withval=$with_userdb; userdb="$withval"
21045 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
21050 cat >>confdefs.h <<_ACEOF
21051 #define USERDB "$userdb"
21057 for ac_header in stdio.h
21059 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
21060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21064 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 ac_res=`eval echo '${'$as_ac_Header'}'`
21067 { echo "$as_me:$LINENO: result: $ac_res" >&5
21068 echo "${ECHO_T}$ac_res" >&6; }
21070 # Is the header compilable?
21071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21073 cat >conftest.$ac_ext <<_ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 $ac_includes_default
21080 #include <$ac_header>
21082 rm -f conftest.$ac_objext
21083 if { (ac_try="$ac_compile"
21084 case "(($ac_try" in
21085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21086 *) ac_try_echo
=$ac_try;;
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_compile") 2>conftest.er1
21091 grep -v '^ *+' conftest.er1
>conftest.err
21093 cat conftest.err
>&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } && {
21096 test -z "$ac_c_werror_flag" ||
21097 test ! -s conftest.err
21098 } && test -s conftest.
$ac_objext; then
21099 ac_header_compiler
=yes
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.
$ac_ext >&5
21104 ac_header_compiler
=no
21107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21109 echo "${ECHO_T}$ac_header_compiler" >&6; }
21111 # Is the header present?
21112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21114 cat >conftest.
$ac_ext <<_ACEOF
21117 cat confdefs.h
>>conftest.
$ac_ext
21118 cat >>conftest.
$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 #include <$ac_header>
21122 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21123 case "(($ac_try" in
21124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21130 grep -v '^ *+' conftest.er1 >conftest.err
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } >/dev/null && {
21135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21138 ac_header_preproc=yes
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21143 ac_header_preproc=no
21146 rm -f conftest.err conftest.$ac_ext
21147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21148 echo "${ECHO_T}$ac_header_preproc" >&6; }
21150 # So? What about this header?
21151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21157 ac_header_preproc=yes
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21173 ## -------------------------------------------------- ##
21174 ## Report this to courier-users@lists.sourceforge.net ##
21175 ## -------------------------------------------------- ##
21177 ) | sed "s/^/$as_me: WARNING: /" >&2
21180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21185 eval "$as_ac_Header=\$ac_header_preproc"
21187 ac_res=`eval echo '${'$as_ac_Header'}'`
21188 { echo "$as_me:$LINENO: result: $ac_res" >&5
21189 echo "${ECHO_T}$ac_res" >&6; }
21192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21193 cat >>confdefs.h <<_ACEOF
21194 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
21206 # Check whether --with-authpam was given.
21207 if test "${with_authpam+set}" = set; then
21208 withval=$with_authpam; doauthpam="$withval"
21214 for ac_header in security/pam_appl.h Pam/pam_appl.h
21216 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
21217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21223 ac_res=`eval echo '${'$as_ac_Header'}'`
21224 { echo "$as_me:$LINENO: result: $ac_res" >&5
21225 echo "${ECHO_T}$ac_res" >&6; }
21227 # Is the header compilable?
21228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21230 cat >conftest.$ac_ext <<_ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 $ac_includes_default
21237 #include <$ac_header>
21239 rm -f conftest.$ac_objext
21240 if { (ac_try="$ac_compile"
21241 case "(($ac_try" in
21242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21243 *) ac_try_echo
=$ac_try;;
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_compile") 2>conftest.er1
21248 grep -v '^ *+' conftest.er1
>conftest.err
21250 cat conftest.err
>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } && {
21253 test -z "$ac_c_werror_flag" ||
21254 test ! -s conftest.err
21255 } && test -s conftest.
$ac_objext; then
21256 ac_header_compiler
=yes
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.
$ac_ext >&5
21261 ac_header_compiler
=no
21264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21266 echo "${ECHO_T}$ac_header_compiler" >&6; }
21268 # Is the header present?
21269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21271 cat >conftest.
$ac_ext <<_ACEOF
21274 cat confdefs.h
>>conftest.
$ac_ext
21275 cat >>conftest.
$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #include <$ac_header>
21279 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21280 case "(($ac_try" in
21281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21287 grep -v '^ *+' conftest.er1 >conftest.err
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } >/dev/null && {
21292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21293 test ! -s conftest.err
21295 ac_header_preproc=yes
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 ac_header_preproc=no
21303 rm -f conftest.err conftest.$ac_ext
21304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21305 echo "${ECHO_T}$ac_header_preproc" >&6; }
21307 # So? What about this header?
21308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21314 ac_header_preproc=yes
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21330 ## -------------------------------------------------- ##
21331 ## Report this to courier-users@lists.sourceforge.net ##
21332 ## -------------------------------------------------- ##
21334 ) | sed "s/^/$as_me: WARNING: /" >&2
21337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21342 eval "$as_ac_Header=\$ac_header_preproc"
21344 ac_res=`eval echo '${'$as_ac_Header'}'`
21345 { echo "$as_me:$LINENO: result: $ac_res" >&5
21346 echo "${ECHO_T}$ac_res" >&6; }
21349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21350 cat >>confdefs.h <<_ACEOF
21351 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
21358 if test "$doauthpam" = "no"
21364 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21365 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21366 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 ac_check_lib_save_LIBS=$LIBS
21371 cat >conftest.$ac_ext <<_ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21378 /* Override any GCC internal prototype to avoid an error.
21379 Use char because int might match the return type of a GCC
21380 builtin and then its argument prototype would still apply. */
21393 rm -f conftest.$ac_objext conftest$ac_exeext
21394 if { (ac_try="$ac_link"
21395 case "(($ac_try" in
21396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21397 *) ac_try_echo
=$ac_try;;
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400 (eval "$ac_link") 2>conftest.er1
21402 grep -v '^ *+' conftest.er1
>conftest.err
21404 cat conftest.err
>&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } && {
21407 test -z "$ac_c_werror_flag" ||
21408 test ! -s conftest.err
21409 } && test -s conftest
$ac_exeext &&
21410 $as_test_x conftest
$ac_exeext; then
21411 ac_cv_lib_dl_dlopen
=yes
21413 echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.
$ac_ext >&5
21416 ac_cv_lib_dl_dlopen
=no
21419 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21420 conftest
$ac_exeext conftest.
$ac_ext
21421 LIBS
=$ac_check_lib_save_LIBS
21423 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21424 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21425 if test $ac_cv_lib_dl_dlopen = yes; then
21431 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
21432 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
21433 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
21436 ac_check_lib_save_LIBS
=$LIBS
21437 LIBS
="-lpam $LIBDL $LIBS"
21438 cat >conftest.
$ac_ext <<_ACEOF
21441 cat confdefs.h
>>conftest.
$ac_ext
21442 cat >>conftest.
$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21445 /* Override any GCC internal prototype to avoid an error.
21446 Use char because int might match the return type of a GCC
21447 builtin and then its argument prototype would still apply. */
21455 return pam_start ();
21460 rm -f conftest.
$ac_objext conftest
$ac_exeext
21461 if { (ac_try
="$ac_link"
21462 case "(($ac_try" in
21463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467 (eval "$ac_link") 2>conftest.er1
21469 grep -v '^ *+' conftest.er1 >conftest.err
21471 cat conftest.err >&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } && {
21474 test -z "$ac_c_werror_flag" ||
21475 test ! -s conftest.err
21476 } && test -s conftest$ac_exeext &&
21477 $as_test_x conftest$ac_exeext; then
21478 ac_cv_lib_pam_pam_start=yes
21480 echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21483 ac_cv_lib_pam_pam_start=no
21486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21487 conftest$ac_exeext conftest.$ac_ext
21488 LIBS=$ac_check_lib_save_LIBS
21490 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
21491 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
21492 if test $ac_cv_lib_pam_pam_start = yes; then
21494 LIBS="-lpam $LIBDL $LIBS"
21496 for ac_func in pam_setcred
21498 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21504 cat >conftest.$ac_ext <<_ACEOF
21507 cat confdefs.h >>conftest.$ac_ext
21508 cat >>conftest.$ac_ext <<_ACEOF
21509 /* end confdefs.h. */
21510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21512 #define $ac_func innocuous_$ac_func
21514 /* System header to define __stub macros and hopefully few prototypes,
21515 which can conflict with char $ac_func (); below.
21516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21517 <limits.h> exists even on freestanding compilers. */
21520 # include <limits.h>
21522 # include <assert.h>
21527 /* Override any GCC internal prototype to avoid an error.
21528 Use char because int might match the return type of a GCC
21529 builtin and then its argument prototype would still apply. */
21534 /* The GNU C library defines this for functions which it implements
21535 to always fail with ENOSYS. Some functions are actually named
21536 something starting with __ and the normal name is an alias. */
21537 #if defined __stub_$ac_func || defined __stub___$ac_func
21544 return $ac_func ();
21549 rm -f conftest.$ac_objext conftest$ac_exeext
21550 if { (ac_try="$ac_link"
21551 case "(($ac_try" in
21552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21553 *) ac_try_echo
=$ac_try;;
21555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21556 (eval "$ac_link") 2>conftest.er1
21558 grep -v '^ *+' conftest.er1
>conftest.err
21560 cat conftest.err
>&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } && {
21563 test -z "$ac_c_werror_flag" ||
21564 test ! -s conftest.err
21565 } && test -s conftest
$ac_exeext &&
21566 $as_test_x conftest
$ac_exeext; then
21567 eval "$as_ac_var=yes"
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.
$ac_ext >&5
21572 eval "$as_ac_var=no"
21575 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21576 conftest
$ac_exeext conftest.
$ac_ext
21578 ac_res
=`eval echo '${'$as_ac_var'}'`
21579 { echo "$as_me:$LINENO: result: $ac_res" >&5
21580 echo "${ECHO_T}$ac_res" >&6; }
21581 if test `eval echo '${'$as_ac_var'}'` = yes; then
21582 cat >>confdefs.h
<<_ACEOF
21583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21598 if test "$HAVE_PAM" = 1
21600 LIBAUTHPAM
=libauthpam.la
21604 # Check whether --with-authpam-libraries was given.
21605 if test "${with_authpam_libraries+set}" = set; then
21606 withval
=$with_authpam_libraries; authpamcrypt
="$withval"
21610 AUTHPAMCRYPT
="$authpamcrypt"
21618 # Check whether --with-authldap was given.
21619 if test "${with_authldap+set}" = set; then
21620 withval
=$with_authldap; doauthldap
="$withval"
21627 for ac_header
in lber.h
21629 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21630 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21633 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21634 echo $ECHO_N "(cached) $ECHO_C" >&6
21636 ac_res
=`eval echo '${'$as_ac_Header'}'`
21637 { echo "$as_me:$LINENO: result: $ac_res" >&5
21638 echo "${ECHO_T}$ac_res" >&6; }
21640 # Is the header compilable?
21641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21643 cat >conftest.
$ac_ext <<_ACEOF
21646 cat confdefs.h
>>conftest.
$ac_ext
21647 cat >>conftest.
$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 $ac_includes_default
21650 #include <$ac_header>
21652 rm -f conftest.
$ac_objext
21653 if { (ac_try
="$ac_compile"
21654 case "(($ac_try" in
21655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_compile") 2>conftest.er1
21661 grep -v '^ *+' conftest.er1 >conftest.err
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest.$ac_objext; then
21669 ac_header_compiler=yes
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 ac_header_compiler=no
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21679 echo "${ECHO_T}$ac_header_compiler" >&6; }
21681 # Is the header present?
21682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21684 cat >conftest.$ac_ext <<_ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 #include <$ac_header>
21692 if { (ac_try="$ac_cpp conftest.$ac_ext"
21693 case "(($ac_try" in
21694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21695 *) ac_try_echo
=$ac_try;;
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21700 grep -v '^ *+' conftest.er1
>conftest.err
21702 cat conftest.err
>&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } >/dev
/null
&& {
21705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21706 test ! -s conftest.err
21708 ac_header_preproc
=yes
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.
$ac_ext >&5
21713 ac_header_preproc
=no
21716 rm -f conftest.err conftest.
$ac_ext
21717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21718 echo "${ECHO_T}$ac_header_preproc" >&6; }
21720 # So? What about this header?
21721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21727 ac_header_preproc
=yes
21730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21743 ## -------------------------------------------------- ##
21744 ## Report this to courier-users@lists.sourceforge.net ##
21745 ## -------------------------------------------------- ##
21747 ) |
sed "s/^/$as_me: WARNING: /" >&2
21750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21752 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21753 echo $ECHO_N "(cached) $ECHO_C" >&6
21755 eval "$as_ac_Header=\$ac_header_preproc"
21757 ac_res
=`eval echo '${'$as_ac_Header'}'`
21758 { echo "$as_me:$LINENO: result: $ac_res" >&5
21759 echo "${ECHO_T}$ac_res" >&6; }
21762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21763 cat >>confdefs.h
<<_ACEOF
21764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21772 for ac_header
in ldap.h
21774 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21775 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21778 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 ac_res
=`eval echo '${'$as_ac_Header'}'`
21782 { echo "$as_me:$LINENO: result: $ac_res" >&5
21783 echo "${ECHO_T}$ac_res" >&6; }
21785 # Is the header compilable?
21786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21788 cat >conftest.
$ac_ext <<_ACEOF
21791 cat confdefs.h
>>conftest.
$ac_ext
21792 cat >>conftest.
$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21794 $ac_includes_default
21795 #include <$ac_header>
21797 rm -f conftest.
$ac_objext
21798 if { (ac_try
="$ac_compile"
21799 case "(($ac_try" in
21800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_compile") 2>conftest.er1
21806 grep -v '^ *+' conftest.er1 >conftest.err
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } && {
21811 test -z "$ac_c_werror_flag" ||
21812 test ! -s conftest.err
21813 } && test -s conftest.$ac_objext; then
21814 ac_header_compiler=yes
21816 echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21819 ac_header_compiler=no
21822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21824 echo "${ECHO_T}$ac_header_compiler" >&6; }
21826 # Is the header present?
21827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 #include <$ac_header>
21837 if { (ac_try="$ac_cpp conftest.$ac_ext"
21838 case "(($ac_try" in
21839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21840 *) ac_try_echo
=$ac_try;;
21842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21845 grep -v '^ *+' conftest.er1
>conftest.err
21847 cat conftest.err
>&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } >/dev
/null
&& {
21850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21853 ac_header_preproc
=yes
21855 echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.
$ac_ext >&5
21858 ac_header_preproc
=no
21861 rm -f conftest.err conftest.
$ac_ext
21862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21863 echo "${ECHO_T}$ac_header_preproc" >&6; }
21865 # So? What about this header?
21866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21872 ac_header_preproc
=yes
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21888 ## -------------------------------------------------- ##
21889 ## Report this to courier-users@lists.sourceforge.net ##
21890 ## -------------------------------------------------- ##
21892 ) |
sed "s/^/$as_me: WARNING: /" >&2
21895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21897 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21898 echo $ECHO_N "(cached) $ECHO_C" >&6
21900 eval "$as_ac_Header=\$ac_header_preproc"
21902 ac_res
=`eval echo '${'$as_ac_Header'}'`
21903 { echo "$as_me:$LINENO: result: $ac_res" >&5
21904 echo "${ECHO_T}$ac_res" >&6; }
21907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21908 cat >>confdefs.h
<<_ACEOF
21909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21917 for ac_header
in netinet
/in.h
21919 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21920 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21923 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 ac_res
=`eval echo '${'$as_ac_Header'}'`
21927 { echo "$as_me:$LINENO: result: $ac_res" >&5
21928 echo "${ECHO_T}$ac_res" >&6; }
21930 # Is the header compilable?
21931 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21933 cat >conftest.
$ac_ext <<_ACEOF
21936 cat confdefs.h
>>conftest.
$ac_ext
21937 cat >>conftest.
$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 $ac_includes_default
21940 #include <$ac_header>
21942 rm -f conftest.
$ac_objext
21943 if { (ac_try
="$ac_compile"
21944 case "(($ac_try" in
21945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_compile") 2>conftest.er1
21951 grep -v '^ *+' conftest.er1 >conftest.err
21953 cat conftest.err >&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); } && {
21956 test -z "$ac_c_werror_flag" ||
21957 test ! -s conftest.err
21958 } && test -s conftest.$ac_objext; then
21959 ac_header_compiler=yes
21961 echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21964 ac_header_compiler=no
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21969 echo "${ECHO_T}$ac_header_compiler" >&6; }
21971 # Is the header present?
21972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21974 cat >conftest.$ac_ext <<_ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 #include <$ac_header>
21982 if { (ac_try="$ac_cpp conftest.$ac_ext"
21983 case "(($ac_try" in
21984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21985 *) ac_try_echo
=$ac_try;;
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21990 grep -v '^ *+' conftest.er1
>conftest.err
21992 cat conftest.err
>&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } >/dev
/null
&& {
21995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21998 ac_header_preproc
=yes
22000 echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.
$ac_ext >&5
22003 ac_header_preproc
=no
22006 rm -f conftest.err conftest.
$ac_ext
22007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22008 echo "${ECHO_T}$ac_header_preproc" >&6; }
22010 # So? What about this header?
22011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22017 ac_header_preproc
=yes
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22033 ## -------------------------------------------------- ##
22034 ## Report this to courier-users@lists.sourceforge.net ##
22035 ## -------------------------------------------------- ##
22037 ) |
sed "s/^/$as_me: WARNING: /" >&2
22040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22042 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 eval "$as_ac_Header=\$ac_header_preproc"
22047 ac_res
=`eval echo '${'$as_ac_Header'}'`
22048 { echo "$as_me:$LINENO: result: $ac_res" >&5
22049 echo "${ECHO_T}$ac_res" >&6; }
22052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22053 cat >>confdefs.h
<<_ACEOF
22054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22062 if test "$doauthldap" = "no"
22067 LIBS
="$NETLIBS $LIBS"
22070 { echo "$as_me:$LINENO: checking whether -lresolv is needed for res_query" >&5
22071 echo $ECHO_N "checking whether -lresolv is needed for res_query... $ECHO_C" >&6; }
22072 cat >conftest.
$ac_ext <<_ACEOF
22075 cat confdefs.h
>>conftest.
$ac_ext
22076 cat >>conftest.
$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22079 #include <sys/types.h>
22080 #if HAVE_NETINET_IN_H
22081 #include <netinet/in.h>
22083 #include <resolv.h>
22085 void (*func)()= (void (*)())res_query;
22095 rm -f conftest.
$ac_objext conftest
$ac_exeext
22096 if { (ac_try
="$ac_link"
22097 case "(($ac_try" in
22098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_link") 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } && {
22109 test -z "$ac_c_werror_flag" ||
22110 test ! -s conftest.err
22111 } && test -s conftest$ac_exeext &&
22112 $as_test_x conftest$ac_exeext; then
22113 { echo "$as_me:$LINENO: result: no" >&5
22114 echo "${ECHO_T}no" >&6; }
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22120 LIBS="-lresolv $LIBS"
22122 cat >conftest.$ac_ext <<_ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22129 #include <sys/types.h>
22130 #if HAVE_NETINET_IN_H
22131 #include <netinet/in.h>
22133 #include <resolv.h>
22135 void (*func)()= (void (*)())res_query;
22145 rm -f conftest.$ac_objext conftest$ac_exeext
22146 if { (ac_try="$ac_link"
22147 case "(($ac_try" in
22148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22149 *) ac_try_echo
=$ac_try;;
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_link") 2>conftest.er1
22154 grep -v '^ *+' conftest.er1
>conftest.err
22156 cat conftest.err
>&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } && {
22159 test -z "$ac_c_werror_flag" ||
22160 test ! -s conftest.err
22161 } && test -s conftest
$ac_exeext &&
22162 $as_test_x conftest
$ac_exeext; then
22164 LDAPLIBS
="-lresolv $LDAPLIBS"
22166 { echo "$as_me:$LINENO: result: yes" >&5
22167 echo "${ECHO_T}yes" >&6; }
22170 echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.
$ac_ext >&5
22173 { { echo "$as_me:$LINENO: error: Cannot find function res_query" >&5
22174 echo "$as_me: error: Cannot find function res_query" >&2;}
22175 { (exit 1); exit 1; }; }
22178 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22179 conftest
$ac_exeext conftest.
$ac_ext
22183 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22184 conftest
$ac_exeext conftest.
$ac_ext
22186 { echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
22187 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6; }
22188 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22191 ac_check_lib_save_LIBS
=$LIBS
22192 LIBS
="-llber $LIBS"
22193 cat >conftest.
$ac_ext <<_ACEOF
22196 cat confdefs.h
>>conftest.
$ac_ext
22197 cat >>conftest.
$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22200 /* Override any GCC internal prototype to avoid an error.
22201 Use char because int might match the return type of a GCC
22202 builtin and then its argument prototype would still apply. */
22210 return ber_scanf ();
22215 rm -f conftest.
$ac_objext conftest
$ac_exeext
22216 if { (ac_try
="$ac_link"
22217 case "(($ac_try" in
22218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_link") 2>conftest.er1
22224 grep -v '^ *+' conftest.er1 >conftest.err
22226 cat conftest.err >&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } && {
22229 test -z "$ac_c_werror_flag" ||
22230 test ! -s conftest.err
22231 } && test -s conftest$ac_exeext &&
22232 $as_test_x conftest$ac_exeext; then
22233 ac_cv_lib_lber_ber_scanf=yes
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22238 ac_cv_lib_lber_ber_scanf=no
22241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22242 conftest$ac_exeext conftest.$ac_ext
22243 LIBS=$ac_check_lib_save_LIBS
22245 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
22246 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6; }
22247 if test $ac_cv_lib_lber_ber_scanf = yes; then
22248 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
22251 { echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
22252 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6; }
22253 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
22254 echo $ECHO_N "(cached) $ECHO_C" >&6
22256 ac_check_lib_save_LIBS=$LIBS
22257 LIBS="-lldap $LIBS"
22258 cat >conftest.$ac_ext <<_ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22265 /* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22275 return ldap_open ();
22280 rm -f conftest.$ac_objext conftest$ac_exeext
22281 if { (ac_try="$ac_link"
22282 case "(($ac_try" in
22283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22284 *) ac_try_echo
=$ac_try;;
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_link") 2>conftest.er1
22289 grep -v '^ *+' conftest.er1
>conftest.err
22291 cat conftest.err
>&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } && {
22294 test -z "$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22296 } && test -s conftest
$ac_exeext &&
22297 $as_test_x conftest
$ac_exeext; then
22298 ac_cv_lib_ldap_ldap_open
=yes
22300 echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.
$ac_ext >&5
22303 ac_cv_lib_ldap_ldap_open
=no
22306 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22307 conftest
$ac_exeext conftest.
$ac_ext
22308 LIBS
=$ac_check_lib_save_LIBS
22310 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
22311 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6; }
22312 if test $ac_cv_lib_ldap_ldap_open = yes; then
22313 LDAPLIBS
="-lldap $LDAPLIBS" ; LIBS
="-lldap $LIBS"
22316 { echo "$as_me:$LINENO: checking for ldap_search_st" >&5
22317 echo $ECHO_N "checking for ldap_search_st... $ECHO_C" >&6; }
22318 if test "${ac_cv_func_ldap_search_st+set}" = set; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22321 cat >conftest.
$ac_ext <<_ACEOF
22324 cat confdefs.h
>>conftest.
$ac_ext
22325 cat >>conftest.
$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22327 /* Define ldap_search_st to an innocuous variant, in case <limits.h> declares ldap_search_st.
22328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22329 #define ldap_search_st innocuous_ldap_search_st
22331 /* System header to define __stub macros and hopefully few prototypes,
22332 which can conflict with char ldap_search_st (); below.
22333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22334 <limits.h> exists even on freestanding compilers. */
22337 # include <limits.h>
22339 # include <assert.h>
22342 #undef ldap_search_st
22344 /* Override any GCC internal prototype to avoid an error.
22345 Use char because int might match the return type of a GCC
22346 builtin and then its argument prototype would still apply. */
22350 char ldap_search_st ();
22351 /* The GNU C library defines this for functions which it implements
22352 to always fail with ENOSYS. Some functions are actually named
22353 something starting with __ and the normal name is an alias. */
22354 #if defined __stub_ldap_search_st || defined __stub___ldap_search_st
22361 return ldap_search_st ();
22366 rm -f conftest.
$ac_objext conftest
$ac_exeext
22367 if { (ac_try
="$ac_link"
22368 case "(($ac_try" in
22369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22370 *) ac_try_echo=$ac_try;;
22372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373 (eval "$ac_link") 2>conftest.er1
22375 grep -v '^ *+' conftest.er1 >conftest.err
22377 cat conftest.err >&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && {
22380 test -z "$ac_c_werror_flag" ||
22381 test ! -s conftest.err
22382 } && test -s conftest$ac_exeext &&
22383 $as_test_x conftest$ac_exeext; then
22384 ac_cv_func_ldap_search_st=yes
22386 echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22389 ac_cv_func_ldap_search_st=no
22392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22393 conftest$ac_exeext conftest.$ac_ext
22395 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_search_st" >&5
22396 echo "${ECHO_T}$ac_cv_func_ldap_search_st" >&6; }
22397 if test $ac_cv_func_ldap_search_st = yes; then
22403 { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
22404 echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; }
22405 if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22408 cat >conftest.$ac_ext <<_ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22414 /* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s.
22415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22416 #define ldap_start_tls_s innocuous_ldap_start_tls_s
22418 /* System header to define __stub macros and hopefully few prototypes,
22419 which can conflict with char ldap_start_tls_s (); below.
22420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22421 <limits.h> exists even on freestanding compilers. */
22424 # include <limits.h>
22426 # include <assert.h>
22429 #undef ldap_start_tls_s
22431 /* Override any GCC internal prototype to avoid an error.
22432 Use char because int might match the return type of a GCC
22433 builtin and then its argument prototype would still apply. */
22437 char ldap_start_tls_s ();
22438 /* The GNU C library defines this for functions which it implements
22439 to always fail with ENOSYS. Some functions are actually named
22440 something starting with __ and the normal name is an alias. */
22441 #if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s
22448 return ldap_start_tls_s ();
22453 rm -f conftest.$ac_objext conftest$ac_exeext
22454 if { (ac_try="$ac_link"
22455 case "(($ac_try" in
22456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22457 *) ac_try_echo
=$ac_try;;
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460 (eval "$ac_link") 2>conftest.er1
22462 grep -v '^ *+' conftest.er1
>conftest.err
22464 cat conftest.err
>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } && {
22467 test -z "$ac_c_werror_flag" ||
22468 test ! -s conftest.err
22469 } && test -s conftest
$ac_exeext &&
22470 $as_test_x conftest
$ac_exeext; then
22471 ac_cv_func_ldap_start_tls_s
=yes
22473 echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.
$ac_ext >&5
22476 ac_cv_func_ldap_start_tls_s
=no
22479 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22480 conftest
$ac_exeext conftest.
$ac_ext
22482 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
22483 echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
22484 if test $ac_cv_func_ldap_start_tls_s = yes; then
22490 { echo "$as_me:$LINENO: checking for ldap_result2error" >&5
22491 echo $ECHO_N "checking for ldap_result2error... $ECHO_C" >&6; }
22492 if test "${ac_cv_func_ldap_result2error+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22495 cat >conftest.
$ac_ext <<_ACEOF
22498 cat confdefs.h
>>conftest.
$ac_ext
22499 cat >>conftest.
$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 /* Define ldap_result2error to an innocuous variant, in case <limits.h> declares ldap_result2error.
22502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22503 #define ldap_result2error innocuous_ldap_result2error
22505 /* System header to define __stub macros and hopefully few prototypes,
22506 which can conflict with char ldap_result2error (); below.
22507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22508 <limits.h> exists even on freestanding compilers. */
22511 # include <limits.h>
22513 # include <assert.h>
22516 #undef ldap_result2error
22518 /* Override any GCC internal prototype to avoid an error.
22519 Use char because int might match the return type of a GCC
22520 builtin and then its argument prototype would still apply. */
22524 char ldap_result2error ();
22525 /* The GNU C library defines this for functions which it implements
22526 to always fail with ENOSYS. Some functions are actually named
22527 something starting with __ and the normal name is an alias. */
22528 #if defined __stub_ldap_result2error || defined __stub___ldap_result2error
22535 return ldap_result2error ();
22540 rm -f conftest.
$ac_objext conftest
$ac_exeext
22541 if { (ac_try
="$ac_link"
22542 case "(($ac_try" in
22543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_link") 2>conftest.er1
22549 grep -v '^ *+' conftest.er1 >conftest.err
22551 cat conftest.err >&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } && {
22554 test -z "$ac_c_werror_flag" ||
22555 test ! -s conftest.err
22556 } && test -s conftest$ac_exeext &&
22557 $as_test_x conftest$ac_exeext; then
22558 ac_cv_func_ldap_result2error=yes
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22563 ac_cv_func_ldap_result2error=no
22566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22567 conftest$ac_exeext conftest.$ac_ext
22569 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_result2error" >&5
22570 echo "${ECHO_T}$ac_cv_func_ldap_result2error" >&6; }
22571 if test $ac_cv_func_ldap_result2error = yes; then
22572 HAVE_LDAP_RESULT2ERROR=1
22574 HAVE_LDAP_RESULT2ERROR=0
22577 { echo "$as_me:$LINENO: checking for ldap_parse_result" >&5
22578 echo $ECHO_N "checking for ldap_parse_result... $ECHO_C" >&6; }
22579 if test "${ac_cv_func_ldap_parse_result+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22582 cat >conftest.$ac_ext <<_ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 /* Define ldap_parse_result to an innocuous variant, in case <limits.h> declares ldap_parse_result.
22589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22590 #define ldap_parse_result innocuous_ldap_parse_result
22592 /* System header to define __stub macros and hopefully few prototypes,
22593 which can conflict with char ldap_parse_result (); below.
22594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22595 <limits.h> exists even on freestanding compilers. */
22598 # include <limits.h>
22600 # include <assert.h>
22603 #undef ldap_parse_result
22605 /* Override any GCC internal prototype to avoid an error.
22606 Use char because int might match the return type of a GCC
22607 builtin and then its argument prototype would still apply. */
22611 char ldap_parse_result ();
22612 /* The GNU C library defines this for functions which it implements
22613 to always fail with ENOSYS. Some functions are actually named
22614 something starting with __ and the normal name is an alias. */
22615 #if defined __stub_ldap_parse_result || defined __stub___ldap_parse_result
22622 return ldap_parse_result ();
22627 rm -f conftest.$ac_objext conftest$ac_exeext
22628 if { (ac_try="$ac_link"
22629 case "(($ac_try" in
22630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22631 *) ac_try_echo
=$ac_try;;
22633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634 (eval "$ac_link") 2>conftest.er1
22636 grep -v '^ *+' conftest.er1
>conftest.err
22638 cat conftest.err
>&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); } && {
22641 test -z "$ac_c_werror_flag" ||
22642 test ! -s conftest.err
22643 } && test -s conftest
$ac_exeext &&
22644 $as_test_x conftest
$ac_exeext; then
22645 ac_cv_func_ldap_parse_result
=yes
22647 echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.
$ac_ext >&5
22650 ac_cv_func_ldap_parse_result
=no
22653 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22654 conftest
$ac_exeext conftest.
$ac_ext
22656 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_parse_result" >&5
22657 echo "${ECHO_T}$ac_cv_func_ldap_parse_result" >&6; }
22658 if test $ac_cv_func_ldap_parse_result = yes; then
22659 HAVE_LDAP_PARSE_RESULT
=1
22661 HAVE_LDAP_PARSE_RESULT
=0
22668 # Check whether --with-authldaprc was given.
22669 if test "${with_authldaprc+set}" = set; then
22670 withval
=$with_authldaprc; authldaprc
="$withval"
22672 authldaprc
="$pkgconfdir/authldaprc"
22678 if test "$HAVE_LDAP" = 1
22680 LIBAUTHLDAP
="libauthldap.la"
22687 if test "$HAVE_LDAP" = 1; then
22689 HAVE_LDAP_FALSE
='#'
22696 cat >>confdefs.h
<<_ACEOF
22697 #define HAVE_LDAP_TLS $HAVE_LDAP_TLS
22701 cat >>confdefs.h
<<_ACEOF
22702 #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
22706 cat >>confdefs.h
<<_ACEOF
22707 #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
22714 # Check whether --with-authpwd was given.
22715 if test "${with_authpwd+set}" = set; then
22716 withval
=$with_authpwd; doauthpwd
="$withval"
22719 test "$HAVE_PAM" = 1 && doauthpwd
="no"
22720 test "$HAVE_LDAP" = 1 && doauthpwd
="no"
22726 if test "$doauthpwd" = "no"
22731 for ac_func
in endpwent
22733 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22736 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22737 echo $ECHO_N "(cached) $ECHO_C" >&6
22739 cat >conftest.
$ac_ext <<_ACEOF
22742 cat confdefs.h
>>conftest.
$ac_ext
22743 cat >>conftest.
$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22747 #define $ac_func innocuous_$ac_func
22749 /* System header to define __stub macros and hopefully few prototypes,
22750 which can conflict with char $ac_func (); below.
22751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22752 <limits.h> exists even on freestanding compilers. */
22755 # include <limits.h>
22757 # include <assert.h>
22762 /* Override any GCC internal prototype to avoid an error.
22763 Use char because int might match the return type of a GCC
22764 builtin and then its argument prototype would still apply. */
22769 /* The GNU C library defines this for functions which it implements
22770 to always fail with ENOSYS. Some functions are actually named
22771 something starting with __ and the normal name is an alias. */
22772 #if defined __stub_$ac_func || defined __stub___$ac_func
22779 return $ac_func ();
22784 rm -f conftest.
$ac_objext conftest
$ac_exeext
22785 if { (ac_try
="$ac_link"
22786 case "(($ac_try" in
22787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22788 *) ac_try_echo=$ac_try;;
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791 (eval "$ac_link") 2>conftest.er1
22793 grep -v '^ *+' conftest.er1 >conftest.err
22795 cat conftest.err >&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } && {
22798 test -z "$ac_c_werror_flag" ||
22799 test ! -s conftest.err
22800 } && test -s conftest$ac_exeext &&
22801 $as_test_x conftest$ac_exeext; then
22802 eval "$as_ac_var=yes"
22804 echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22807 eval "$as_ac_var=no"
22810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22811 conftest$ac_exeext conftest.$ac_ext
22813 ac_res=`eval echo '${'$as_ac_var'}'`
22814 { echo "$as_me:$LINENO: result: $ac_res" >&5
22815 echo "${ECHO_T}$ac_res" >&6; }
22816 if test `eval echo '${'$as_ac_var'}'` = yes; then
22817 cat >>confdefs.h <<_ACEOF
22818 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22829 # Check whether --with-authshadow was given.
22830 if test "${with_authshadow+set}" = set; then
22831 withval=$with_authshadow; doauthshadow="$withval"
22834 test "$HAVE_PAM" = 1 && doauthshadow="no"
22835 test "$HAVE_LDAP" = 1 && doauthshadow="no"
22840 for ac_header in shadow.h
22842 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
22843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22849 ac_res=`eval echo '${'$as_ac_Header'}'`
22850 { echo "$as_me:$LINENO: result: $ac_res" >&5
22851 echo "${ECHO_T}$ac_res" >&6; }
22853 # Is the header compilable?
22854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22856 cat >conftest.$ac_ext <<_ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 $ac_includes_default
22863 #include <$ac_header>
22865 rm -f conftest.$ac_objext
22866 if { (ac_try="$ac_compile"
22867 case "(($ac_try" in
22868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22869 *) ac_try_echo
=$ac_try;;
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872 (eval "$ac_compile") 2>conftest.er1
22874 grep -v '^ *+' conftest.er1
>conftest.err
22876 cat conftest.err
>&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } && {
22879 test -z "$ac_c_werror_flag" ||
22880 test ! -s conftest.err
22881 } && test -s conftest.
$ac_objext; then
22882 ac_header_compiler
=yes
22884 echo "$as_me: failed program was:" >&5
22885 sed 's/^/| /' conftest.
$ac_ext >&5
22887 ac_header_compiler
=no
22890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22892 echo "${ECHO_T}$ac_header_compiler" >&6; }
22894 # Is the header present?
22895 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22897 cat >conftest.
$ac_ext <<_ACEOF
22900 cat confdefs.h
>>conftest.
$ac_ext
22901 cat >>conftest.
$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 #include <$ac_header>
22905 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22906 case "(($ac_try" in
22907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22908 *) ac_try_echo=$ac_try;;
22910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22913 grep -v '^ *+' conftest.er1 >conftest.err
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } >/dev/null && {
22918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22921 ac_header_preproc=yes
22923 echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22926 ac_header_preproc=no
22929 rm -f conftest.err conftest.$ac_ext
22930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22931 echo "${ECHO_T}$ac_header_preproc" >&6; }
22933 # So? What about this header?
22934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22940 ac_header_preproc=yes
22943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22956 ## -------------------------------------------------- ##
22957 ## Report this to courier-users@lists.sourceforge.net ##
22958 ## -------------------------------------------------- ##
22960 ) | sed "s/^/$as_me: WARNING: /" >&2
22963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 eval "$as_ac_Header=\$ac_header_preproc"
22970 ac_res=`eval echo '${'$as_ac_Header'}'`
22971 { echo "$as_me:$LINENO: result: $ac_res" >&5
22972 echo "${ECHO_T}$ac_res" >&6; }
22975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22976 cat >>confdefs.h <<_ACEOF
22977 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
22986 { echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
22987 echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
22988 if test "${ac_cv_lib_shadow_getspent+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22991 ac_check_lib_save_LIBS=$LIBS
22992 LIBS="-lshadow $LIBS"
22993 cat >conftest.$ac_ext <<_ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h. */
23000 /* Override any GCC internal prototype to avoid an error.
23001 Use char because int might match the return type of a GCC
23002 builtin and then its argument prototype would still apply. */
23010 return getspent ();
23015 rm -f conftest.$ac_objext conftest$ac_exeext
23016 if { (ac_try="$ac_link"
23017 case "(($ac_try" in
23018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23019 *) ac_try_echo
=$ac_try;;
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_link") 2>conftest.er1
23024 grep -v '^ *+' conftest.er1
>conftest.err
23026 cat conftest.err
>&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } && {
23029 test -z "$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23031 } && test -s conftest
$ac_exeext &&
23032 $as_test_x conftest
$ac_exeext; then
23033 ac_cv_lib_shadow_getspent
=yes
23035 echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.
$ac_ext >&5
23038 ac_cv_lib_shadow_getspent
=no
23041 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23042 conftest
$ac_exeext conftest.
$ac_ext
23043 LIBS
=$ac_check_lib_save_LIBS
23045 { echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23046 echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
23047 if test $ac_cv_lib_shadow_getspent = yes; then
23048 SHADOWLIBS
="-lshadow" ; LIBS
="-lshadow $LIBS"
23053 for ac_func
in endspent getspent
23055 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23058 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23061 cat >conftest.
$ac_ext <<_ACEOF
23064 cat confdefs.h
>>conftest.
$ac_ext
23065 cat >>conftest.
$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23069 #define $ac_func innocuous_$ac_func
23071 /* System header to define __stub macros and hopefully few prototypes,
23072 which can conflict with char $ac_func (); below.
23073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23074 <limits.h> exists even on freestanding compilers. */
23077 # include <limits.h>
23079 # include <assert.h>
23084 /* Override any GCC internal prototype to avoid an error.
23085 Use char because int might match the return type of a GCC
23086 builtin and then its argument prototype would still apply. */
23091 /* The GNU C library defines this for functions which it implements
23092 to always fail with ENOSYS. Some functions are actually named
23093 something starting with __ and the normal name is an alias. */
23094 #if defined __stub_$ac_func || defined __stub___$ac_func
23101 return $ac_func ();
23106 rm -f conftest.
$ac_objext conftest
$ac_exeext
23107 if { (ac_try
="$ac_link"
23108 case "(($ac_try" in
23109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23110 *) ac_try_echo=$ac_try;;
23112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23113 (eval "$ac_link") 2>conftest.er1
23115 grep -v '^ *+' conftest.er1 >conftest.err
23117 cat conftest.err >&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } && {
23120 test -z "$ac_c_werror_flag" ||
23121 test ! -s conftest.err
23122 } && test -s conftest$ac_exeext &&
23123 $as_test_x conftest$ac_exeext; then
23124 eval "$as_ac_var=yes"
23126 echo "$as_me: failed program was:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23129 eval "$as_ac_var=no"
23132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23133 conftest$ac_exeext conftest.$ac_ext
23135 ac_res=`eval echo '${'$as_ac_var'}'`
23136 { echo "$as_me:$LINENO: result: $ac_res" >&5
23137 echo "${ECHO_T}$ac_res" >&6; }
23138 if test `eval echo '${'$as_ac_var'}'` = yes; then
23139 cat >>confdefs.h <<_ACEOF
23140 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23148 if test "$doauthshadow" = "no"
23155 { echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
23156 echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
23157 if test "${ac_cv_lib_shadow_getspent+set}" = set; then
23158 echo $ECHO_N "(cached) $ECHO_C" >&6
23160 ac_check_lib_save_LIBS=$LIBS
23161 LIBS="-lshadow $LIBS"
23162 cat >conftest.$ac_ext <<_ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23169 /* Override any GCC internal prototype to avoid an error.
23170 Use char because int might match the return type of a GCC
23171 builtin and then its argument prototype would still apply. */
23179 return getspent ();
23184 rm -f conftest.$ac_objext conftest$ac_exeext
23185 if { (ac_try="$ac_link"
23186 case "(($ac_try" in
23187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23188 *) ac_try_echo
=$ac_try;;
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191 (eval "$ac_link") 2>conftest.er1
23193 grep -v '^ *+' conftest.er1
>conftest.err
23195 cat conftest.err
>&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } && {
23198 test -z "$ac_c_werror_flag" ||
23199 test ! -s conftest.err
23200 } && test -s conftest
$ac_exeext &&
23201 $as_test_x conftest
$ac_exeext; then
23202 ac_cv_lib_shadow_getspent
=yes
23204 echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.
$ac_ext >&5
23207 ac_cv_lib_shadow_getspent
=no
23210 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23211 conftest
$ac_exeext conftest.
$ac_ext
23212 LIBS
=$ac_check_lib_save_LIBS
23214 { echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23215 echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
23216 if test $ac_cv_lib_shadow_getspent = yes; then
23217 cat >>confdefs.h
<<_ACEOF
23218 #define HAVE_LIBSHADOW 1
23221 LIBS
="-lshadow $LIBS"
23225 { echo "$as_me:$LINENO: checking for getspent" >&5
23226 echo $ECHO_N "checking for getspent... $ECHO_C" >&6; }
23227 if test "${ac_cv_func_getspent+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23230 cat >conftest.
$ac_ext <<_ACEOF
23233 cat confdefs.h
>>conftest.
$ac_ext
23234 cat >>conftest.
$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 /* Define getspent to an innocuous variant, in case <limits.h> declares getspent.
23237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23238 #define getspent innocuous_getspent
23240 /* System header to define __stub macros and hopefully few prototypes,
23241 which can conflict with char getspent (); below.
23242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23243 <limits.h> exists even on freestanding compilers. */
23246 # include <limits.h>
23248 # include <assert.h>
23253 /* Override any GCC internal prototype to avoid an error.
23254 Use char because int might match the return type of a GCC
23255 builtin and then its argument prototype would still apply. */
23260 /* The GNU C library defines this for functions which it implements
23261 to always fail with ENOSYS. Some functions are actually named
23262 something starting with __ and the normal name is an alias. */
23263 #if defined __stub_getspent || defined __stub___getspent
23270 return getspent ();
23275 rm -f conftest.
$ac_objext conftest
$ac_exeext
23276 if { (ac_try
="$ac_link"
23277 case "(($ac_try" in
23278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282 (eval "$ac_link") 2>conftest.er1
23284 grep -v '^ *+' conftest.er1 >conftest.err
23286 cat conftest.err >&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } && {
23289 test -z "$ac_c_werror_flag" ||
23290 test ! -s conftest.err
23291 } && test -s conftest$ac_exeext &&
23292 $as_test_x conftest$ac_exeext; then
23293 ac_cv_func_getspent=yes
23295 echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23298 ac_cv_func_getspent=no
23301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23302 conftest$ac_exeext conftest.$ac_ext
23304 { echo "$as_me:$LINENO: result: $ac_cv_func_getspent" >&5
23305 echo "${ECHO_T}$ac_cv_func_getspent" >&6; }
23306 if test $ac_cv_func_getspent = yes; then
23316 if test "$HAVE_SHADOW" = 1
23318 LIBAUTHSHADOW="libauthshadow.la"
23324 if test "$HAVE_PWD" = 1
23326 LIBAUTHPWD="libauthpwd.la"
23335 vpopmail_home=`$PERL -e '@a=getpwnam("vpopmail"); print "$a[7]";'`
23340 # Check whether --with-authvchkpw was given.
23341 if test "${with_authvchkpw+set}" = set; then
23342 withval=$with_authvchkpw; doauthvchkpw="$withval"
23345 if test "$vpopmail_home" != ""
23352 if test "$doauthvchkpw" = "no"
23361 ----------------------------------------------------
23365 All questions regarding ANY vpopmail-related problems,
23366 such as compiling/building failures, or login errors
23367 should be referred to the vpopmail mailing list.
23368 Vpopmail questions sent to the Courier mailing lists
23370 ----------------------------------------------------
23375 if test -f ${vpopmail_home}/etc/lib_deps
23377 CFLAGS="`cat ${vpopmail_home}/etc
/inc_deps
` $CFLAGS"
23378 VPOPMAILLIBS="`cat ${vpopmail_home}/etc
/lib_deps
`"
23380 { { echo "$as_me:$LINENO: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&5
23381 echo "$as_me: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&2;}
23382 { (exit 1); exit 1; }; }
23389 if test "$HAVE_VCHKPW" = 1
23391 LIBAUTHVCHKPW="libauthvchkpw.la"
23396 LIBS="$VPOPMAILLIBS $CRYPTLIBS $LIBS"
23397 { echo "$as_me:$LINENO: checking for open_smtp_relay" >&5
23398 echo $ECHO_N "checking for open_smtp_relay... $ECHO_C" >&6; }
23399 if test "${ac_cv_func_open_smtp_relay+set}" = set; then
23400 echo $ECHO_N "(cached) $ECHO_C" >&6
23402 cat >conftest.$ac_ext <<_ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h. */
23408 /* Define open_smtp_relay to an innocuous variant, in case <limits.h> declares open_smtp_relay.
23409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23410 #define open_smtp_relay innocuous_open_smtp_relay
23412 /* System header to define __stub macros and hopefully few prototypes,
23413 which can conflict with char open_smtp_relay (); below.
23414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23415 <limits.h> exists even on freestanding compilers. */
23418 # include <limits.h>
23420 # include <assert.h>
23423 #undef open_smtp_relay
23425 /* Override any GCC internal prototype to avoid an error.
23426 Use char because int might match the return type of a GCC
23427 builtin and then its argument prototype would still apply. */
23431 char open_smtp_relay ();
23432 /* The GNU C library defines this for functions which it implements
23433 to always fail with ENOSYS. Some functions are actually named
23434 something starting with __ and the normal name is an alias. */
23435 #if defined __stub_open_smtp_relay || defined __stub___open_smtp_relay
23442 return open_smtp_relay ();
23447 rm -f conftest.$ac_objext conftest$ac_exeext
23448 if { (ac_try="$ac_link"
23449 case "(($ac_try" in
23450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23451 *) ac_try_echo
=$ac_try;;
23453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454 (eval "$ac_link") 2>conftest.er1
23456 grep -v '^ *+' conftest.er1
>conftest.err
23458 cat conftest.err
>&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } && {
23461 test -z "$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23463 } && test -s conftest
$ac_exeext &&
23464 $as_test_x conftest
$ac_exeext; then
23465 ac_cv_func_open_smtp_relay
=yes
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.
$ac_ext >&5
23470 ac_cv_func_open_smtp_relay
=no
23473 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23474 conftest
$ac_exeext conftest.
$ac_ext
23476 { echo "$as_me:$LINENO: result: $ac_cv_func_open_smtp_relay" >&5
23477 echo "${ECHO_T}$ac_cv_func_open_smtp_relay" >&6; }
23478 if test $ac_cv_func_open_smtp_relay = yes; then
23480 cat >>confdefs.h
<<\_ACEOF
23481 #define HAVE_OPEN_SMTP_RELAY 1
23486 { echo "$as_me:$LINENO: checking for vset_lastauth" >&5
23487 echo $ECHO_N "checking for vset_lastauth... $ECHO_C" >&6; }
23488 if test "${ac_cv_func_vset_lastauth+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23491 cat >conftest.
$ac_ext <<_ACEOF
23494 cat confdefs.h
>>conftest.
$ac_ext
23495 cat >>conftest.
$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 /* Define vset_lastauth to an innocuous variant, in case <limits.h> declares vset_lastauth.
23498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23499 #define vset_lastauth innocuous_vset_lastauth
23501 /* System header to define __stub macros and hopefully few prototypes,
23502 which can conflict with char vset_lastauth (); below.
23503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23504 <limits.h> exists even on freestanding compilers. */
23507 # include <limits.h>
23509 # include <assert.h>
23512 #undef vset_lastauth
23514 /* Override any GCC internal prototype to avoid an error.
23515 Use char because int might match the return type of a GCC
23516 builtin and then its argument prototype would still apply. */
23520 char vset_lastauth ();
23521 /* The GNU C library defines this for functions which it implements
23522 to always fail with ENOSYS. Some functions are actually named
23523 something starting with __ and the normal name is an alias. */
23524 #if defined __stub_vset_lastauth || defined __stub___vset_lastauth
23531 return vset_lastauth ();
23536 rm -f conftest.
$ac_objext conftest
$ac_exeext
23537 if { (ac_try
="$ac_link"
23538 case "(($ac_try" in
23539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23540 *) ac_try_echo=$ac_try;;
23542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23543 (eval "$ac_link") 2>conftest.er1
23545 grep -v '^ *+' conftest.er1 >conftest.err
23547 cat conftest.err >&5
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); } && {
23550 test -z "$ac_c_werror_flag" ||
23551 test ! -s conftest.err
23552 } && test -s conftest$ac_exeext &&
23553 $as_test_x conftest$ac_exeext; then
23554 ac_cv_func_vset_lastauth=yes
23556 echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23559 ac_cv_func_vset_lastauth=no
23562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23563 conftest$ac_exeext conftest.$ac_ext
23565 { echo "$as_me:$LINENO: result: $ac_cv_func_vset_lastauth" >&5
23566 echo "${ECHO_T}$ac_cv_func_vset_lastauth" >&6; }
23567 if test $ac_cv_func_vset_lastauth = yes; then
23569 cat >>confdefs.h <<\_ACEOF
23570 #define HAVE_VSET_LASTAUTH 1
23584 # Check whether --with-authpgsqlrc was given.
23585 if test "${with_authpgsqlrc+set}" = set; then
23586 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
23588 authpgsqlrc="$pkgconfdir/authpgsqlrc"
23594 # Check whether --with-authpgsql was given.
23595 if test "${with_authpgsql+set}" = set; then
23596 withval=$with_authpgsql; doauthpgsql="$withval"
23600 for ac_prog in pg_config
23602 # Extract the first word of "$ac_prog", so it can be a program name with args.
23603 set dummy $ac_prog; ac_word=$2
23604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23606 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23611 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23615 for as_dir in $LPATH
23618 test -z "$as_dir" && as_dir=.
23619 for ac_exec_ext in '' $ac_executable_extensions; do
23620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23621 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23632 PG_CONFIG=$ac_cv_path_PG_CONFIG
23633 if test -n "$PG_CONFIG"; then
23634 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23635 echo "${ECHO_T}$PG_CONFIG" >&6; }
23637 { echo "$as_me:$LINENO: result: no" >&5
23638 echo "${ECHO_T}no" >&6; }
23642 test -n "$PG_CONFIG" && break
23644 test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
23649 # Check whether --with-pgsql-libs was given.
23650 if test "${with_pgsql_libs+set}" = set; then
23651 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
23653 if test -x $PG_CONFIG
23655 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
23661 # Check whether --with-pgsql-includes was given.
23662 if test "${with_pgsql_includes+set}" = set; then
23663 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
23665 if test -x $PG_CONFIG
23667 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
23673 if test "$doauthpgsql" = ""
23675 LIBS="$PGSQL_LIBS $LIBS"
23676 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23677 echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
23678 if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23679 echo $ECHO_N "(cached) $ECHO_C" >&6
23681 cat >conftest.$ac_ext <<_ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23687 /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
23688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23689 #define PQsetdbLogin innocuous_PQsetdbLogin
23691 /* System header to define __stub macros and hopefully few prototypes,
23692 which can conflict with char PQsetdbLogin (); below.
23693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23694 <limits.h> exists even on freestanding compilers. */
23697 # include <limits.h>
23699 # include <assert.h>
23702 #undef PQsetdbLogin
23704 /* Override any GCC internal prototype to avoid an error.
23705 Use char because int might match the return type of a GCC
23706 builtin and then its argument prototype would still apply. */
23710 char PQsetdbLogin ();
23711 /* The GNU C library defines this for functions which it implements
23712 to always fail with ENOSYS. Some functions are actually named
23713 something starting with __ and the normal name is an alias. */
23714 #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
23721 return PQsetdbLogin ();
23726 rm -f conftest.$ac_objext conftest$ac_exeext
23727 if { (ac_try="$ac_link"
23728 case "(($ac_try" in
23729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23730 *) ac_try_echo
=$ac_try;;
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_link") 2>conftest.er1
23735 grep -v '^ *+' conftest.er1
>conftest.err
23737 cat conftest.err
>&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && {
23740 test -z "$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 } && test -s conftest
$ac_exeext &&
23743 $as_test_x conftest
$ac_exeext; then
23744 ac_cv_func_PQsetdbLogin
=yes
23746 echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.
$ac_ext >&5
23749 ac_cv_func_PQsetdbLogin
=no
23752 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23753 conftest
$ac_exeext conftest.
$ac_ext
23755 { echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
23756 echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
23757 if test $ac_cv_func_PQsetdbLogin = yes; then
23765 if test "$doauthpgsql" != "yes"
23771 LIBS
="$PGSQL_LIBS $LIBS"
23772 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23773 echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
23774 if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23775 echo $ECHO_N "(cached) $ECHO_C" >&6
23777 cat >conftest.
$ac_ext <<_ACEOF
23780 cat confdefs.h
>>conftest.
$ac_ext
23781 cat >>conftest.
$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23783 /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
23784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23785 #define PQsetdbLogin innocuous_PQsetdbLogin
23787 /* System header to define __stub macros and hopefully few prototypes,
23788 which can conflict with char PQsetdbLogin (); below.
23789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23790 <limits.h> exists even on freestanding compilers. */
23793 # include <limits.h>
23795 # include <assert.h>
23798 #undef PQsetdbLogin
23800 /* Override any GCC internal prototype to avoid an error.
23801 Use char because int might match the return type of a GCC
23802 builtin and then its argument prototype would still apply. */
23806 char PQsetdbLogin ();
23807 /* The GNU C library defines this for functions which it implements
23808 to always fail with ENOSYS. Some functions are actually named
23809 something starting with __ and the normal name is an alias. */
23810 #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
23817 return PQsetdbLogin ();
23822 rm -f conftest.
$ac_objext conftest
$ac_exeext
23823 if { (ac_try
="$ac_link"
23824 case "(($ac_try" in
23825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23826 *) ac_try_echo=$ac_try;;
23828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23829 (eval "$ac_link") 2>conftest.er1
23831 grep -v '^ *+' conftest.er1 >conftest.err
23833 cat conftest.err >&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } && {
23836 test -z "$ac_c_werror_flag" ||
23837 test ! -s conftest.err
23838 } && test -s conftest$ac_exeext &&
23839 $as_test_x conftest$ac_exeext; then
23840 ac_cv_func_PQsetdbLogin=yes
23842 echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23845 ac_cv_func_PQsetdbLogin=no
23848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23849 conftest$ac_exeext conftest.$ac_ext
23851 { echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
23852 echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
23853 if test $ac_cv_func_PQsetdbLogin = yes; then
23854 AUTHPGSQL="authpgsql"
23857 { { echo "$as_me:$LINENO: error: --with-authpgsql specified but no libpq.so" >&5
23858 echo "$as_me: error: --with-authpgsql specified but no libpq.so" >&2;}
23859 { (exit 1); exit 1; }; }
23864 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
23865 LIBAUTHPGSQL="libauthpgsql.la"
23870 if test "$HAVE_AUTHPGSQL" = 1; then
23871 HAVE_AUTHPGSQL_TRUE=
23872 HAVE_AUTHPGSQL_FALSE='#'
23874 HAVE_AUTHPGSQL_TRUE='#'
23875 HAVE_AUTHPGSQL_FALSE=
23883 # Check whether --with-authmysqlrc was given.
23884 if test "${with_authmysqlrc+set}" = set; then
23885 withval=$with_authmysqlrc; authmysqlrc="$withval"
23887 authmysqlrc="$pkgconfdir/authmysqlrc"
23893 # Check whether --with-authmysql was given.
23894 if test "${with_authmysql+set}" = set; then
23895 withval=$with_authmysql; doauthmysql="$withval"
23899 # Check whether --with-mysql-libs was given.
23900 if test "${with_mysql_libs+set}" = set; then
23901 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
23906 # Check whether --with-mysql-includes was given.
23907 if test "${with_mysql_includes+set}" = set; then
23908 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
23913 for ac_prog in mysql_config
23915 # Extract the first word of "$ac_prog", so it can be a program name with args.
23916 set dummy $ac_prog; ac_word=$2
23917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23919 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
23920 echo $ECHO_N "(cached) $ECHO_C" >&6
23922 case $MYSQL_CONFIG in
23924 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
23927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23928 for as_dir in $LPATH
23931 test -z "$as_dir" && as_dir=.
23932 for ac_exec_ext in '' $ac_executable_extensions; do
23933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23934 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23945 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
23946 if test -n "$MYSQL_CONFIG"; then
23947 { echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
23948 echo "${ECHO_T}$MYSQL_CONFIG" >&6; }
23950 { echo "$as_me:$LINENO: result: no" >&5
23951 echo "${ECHO_T}no" >&6; }
23955 test -n "$MYSQL_CONFIG" && break
23957 test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
23960 if test -x "$MYSQL_CONFIG"
23962 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
23963 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
23965 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\
`\""
23966 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\
`\""
23969 if test "$doauthmysql" = ""
23971 LIBS="$MYSQL_LIBS $LIBS"
23972 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
23973 echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
23974 if test "${ac_cv_func_mysql_connect+set}" = set; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23977 cat >conftest.$ac_ext <<_ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h. */
23983 /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
23984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23985 #define mysql_connect innocuous_mysql_connect
23987 /* System header to define __stub macros and hopefully few prototypes,
23988 which can conflict with char mysql_connect (); below.
23989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23990 <limits.h> exists even on freestanding compilers. */
23993 # include <limits.h>
23995 # include <assert.h>
23998 #undef mysql_connect
24000 /* Override any GCC internal prototype to avoid an error.
24001 Use char because int might match the return type of a GCC
24002 builtin and then its argument prototype would still apply. */
24006 char mysql_connect ();
24007 /* The GNU C library defines this for functions which it implements
24008 to always fail with ENOSYS. Some functions are actually named
24009 something starting with __ and the normal name is an alias. */
24010 #if defined __stub_mysql_connect || defined __stub___mysql_connect
24017 return mysql_connect ();
24022 rm -f conftest.$ac_objext conftest$ac_exeext
24023 if { (ac_try="$ac_link"
24024 case "(($ac_try" in
24025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24026 *) ac_try_echo
=$ac_try;;
24028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24029 (eval "$ac_link") 2>conftest.er1
24031 grep -v '^ *+' conftest.er1
>conftest.err
24033 cat conftest.err
>&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } && {
24036 test -z "$ac_c_werror_flag" ||
24037 test ! -s conftest.err
24038 } && test -s conftest
$ac_exeext &&
24039 $as_test_x conftest
$ac_exeext; then
24040 ac_cv_func_mysql_connect
=yes
24042 echo "$as_me: failed program was:" >&5
24043 sed 's/^/| /' conftest.
$ac_ext >&5
24045 ac_cv_func_mysql_connect
=no
24048 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24049 conftest
$ac_exeext conftest.
$ac_ext
24051 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
24052 echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
24053 if test $ac_cv_func_mysql_connect = yes; then
24058 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
24059 echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
24060 if test "${ac_cv_func_mysql_real_connect+set}" = set; then
24061 echo $ECHO_N "(cached) $ECHO_C" >&6
24063 cat >conftest.
$ac_ext <<_ACEOF
24066 cat confdefs.h
>>conftest.
$ac_ext
24067 cat >>conftest.
$ac_ext <<_ACEOF
24068 /* end confdefs.h. */
24069 /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
24070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24071 #define mysql_real_connect innocuous_mysql_real_connect
24073 /* System header to define __stub macros and hopefully few prototypes,
24074 which can conflict with char mysql_real_connect (); below.
24075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24076 <limits.h> exists even on freestanding compilers. */
24079 # include <limits.h>
24081 # include <assert.h>
24084 #undef mysql_real_connect
24086 /* Override any GCC internal prototype to avoid an error.
24087 Use char because int might match the return type of a GCC
24088 builtin and then its argument prototype would still apply. */
24092 char mysql_real_connect ();
24093 /* The GNU C library defines this for functions which it implements
24094 to always fail with ENOSYS. Some functions are actually named
24095 something starting with __ and the normal name is an alias. */
24096 #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
24103 return mysql_real_connect ();
24108 rm -f conftest.
$ac_objext conftest
$ac_exeext
24109 if { (ac_try
="$ac_link"
24110 case "(($ac_try" in
24111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24112 *) ac_try_echo=$ac_try;;
24114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24115 (eval "$ac_link") 2>conftest.er1
24117 grep -v '^ *+' conftest.er1 >conftest.err
24119 cat conftest.err >&5
24120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121 (exit $ac_status); } && {
24122 test -z "$ac_c_werror_flag" ||
24123 test ! -s conftest.err
24124 } && test -s conftest$ac_exeext &&
24125 $as_test_x conftest$ac_exeext; then
24126 ac_cv_func_mysql_real_connect=yes
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24131 ac_cv_func_mysql_real_connect=no
24134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24135 conftest$ac_exeext conftest.$ac_ext
24137 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24138 echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
24139 if test $ac_cv_func_mysql_real_connect = yes; then
24147 if test "$doauthmysql" != "yes"
24153 LIBS="$MYSQL_LIBS $LIBS"
24154 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
24155 echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
24156 if test "${ac_cv_func_mysql_connect+set}" = set; then
24157 echo $ECHO_N "(cached) $ECHO_C" >&6
24159 cat >conftest.$ac_ext <<_ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h. */
24165 /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
24166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24167 #define mysql_connect innocuous_mysql_connect
24169 /* System header to define __stub macros and hopefully few prototypes,
24170 which can conflict with char mysql_connect (); below.
24171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24172 <limits.h> exists even on freestanding compilers. */
24175 # include <limits.h>
24177 # include <assert.h>
24180 #undef mysql_connect
24182 /* Override any GCC internal prototype to avoid an error.
24183 Use char because int might match the return type of a GCC
24184 builtin and then its argument prototype would still apply. */
24188 char mysql_connect ();
24189 /* The GNU C library defines this for functions which it implements
24190 to always fail with ENOSYS. Some functions are actually named
24191 something starting with __ and the normal name is an alias. */
24192 #if defined __stub_mysql_connect || defined __stub___mysql_connect
24199 return mysql_connect ();
24204 rm -f conftest.$ac_objext conftest$ac_exeext
24205 if { (ac_try="$ac_link"
24206 case "(($ac_try" in
24207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24208 *) ac_try_echo
=$ac_try;;
24210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24211 (eval "$ac_link") 2>conftest.er1
24213 grep -v '^ *+' conftest.er1
>conftest.err
24215 cat conftest.err
>&5
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); } && {
24218 test -z "$ac_c_werror_flag" ||
24219 test ! -s conftest.err
24220 } && test -s conftest
$ac_exeext &&
24221 $as_test_x conftest
$ac_exeext; then
24222 ac_cv_func_mysql_connect
=yes
24224 echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.
$ac_ext >&5
24227 ac_cv_func_mysql_connect
=no
24230 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24231 conftest
$ac_exeext conftest.
$ac_ext
24233 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
24234 echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
24235 if test $ac_cv_func_mysql_connect = yes; then
24236 LIBAUTHMYSQL
="libauthmysql.la"
24240 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
24241 echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
24242 if test "${ac_cv_func_mysql_real_connect+set}" = set; then
24243 echo $ECHO_N "(cached) $ECHO_C" >&6
24245 cat >conftest.
$ac_ext <<_ACEOF
24248 cat confdefs.h
>>conftest.
$ac_ext
24249 cat >>conftest.
$ac_ext <<_ACEOF
24250 /* end confdefs.h. */
24251 /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
24252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24253 #define mysql_real_connect innocuous_mysql_real_connect
24255 /* System header to define __stub macros and hopefully few prototypes,
24256 which can conflict with char mysql_real_connect (); below.
24257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24258 <limits.h> exists even on freestanding compilers. */
24261 # include <limits.h>
24263 # include <assert.h>
24266 #undef mysql_real_connect
24268 /* Override any GCC internal prototype to avoid an error.
24269 Use char because int might match the return type of a GCC
24270 builtin and then its argument prototype would still apply. */
24274 char mysql_real_connect ();
24275 /* The GNU C library defines this for functions which it implements
24276 to always fail with ENOSYS. Some functions are actually named
24277 something starting with __ and the normal name is an alias. */
24278 #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
24285 return mysql_real_connect ();
24290 rm -f conftest.
$ac_objext conftest
$ac_exeext
24291 if { (ac_try
="$ac_link"
24292 case "(($ac_try" in
24293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_link") 2>conftest.er1
24299 grep -v '^ *+' conftest.er1 >conftest.err
24301 cat conftest.err >&5
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } && {
24304 test -z "$ac_c_werror_flag" ||
24305 test ! -s conftest.err
24306 } && test -s conftest$ac_exeext &&
24307 $as_test_x conftest$ac_exeext; then
24308 ac_cv_func_mysql_real_connect=yes
24310 echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24313 ac_cv_func_mysql_real_connect=no
24316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24317 conftest$ac_exeext conftest.$ac_ext
24319 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24320 echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
24321 if test $ac_cv_func_mysql_real_connect = yes; then
24322 LIBAUTHMYSQL="libauthmysql.la"
24325 { { echo "$as_me:$LINENO: error: --with-authmysql specified but no mysqlclient.so" >&5
24326 echo "$as_me: error: --with-authmysql specified but no mysqlclient.so" >&2;}
24327 { (exit 1); exit 1; }; }
24337 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
24341 if test "$HAVE_AUTHMYSQL" = 1; then
24342 HAVE_AUTHMYSQL_TRUE=
24343 HAVE_AUTHMYSQL_FALSE='#'
24345 HAVE_AUTHMYSQL_TRUE='#'
24346 HAVE_AUTHMYSQL_FALSE=
24356 # Check whether --with-authcustom was given.
24357 if test "${with_authcustom+set}" = set; then
24358 withval=$with_authcustom; doauthcustom="$withval"
24366 if test "$doauthcustom" = "yes"
24368 LIBAUTHCUSTOM="libauthcustom.la"
24371 if test "$AUTHCUSTOM" != ""; then
24373 HAVE_CUSTOM_FALSE='#'
24375 HAVE_CUSTOM_TRUE='#'
24387 # Check whether --with-pipeprog was given.
24388 if test "${with_pipeprog+set}" = set; then
24389 withval=$with_pipeprog; authProg="$withval"
24391 authProg="$pkgconfdir/authProg"
24397 # Check whether --with-authpipe was given.
24398 if test "${with_authpipe+set}" = set; then
24399 withval=$with_authpipe; doauthpipe="$withval"
24407 if test "$doauthpipe" = "yes"
24409 LIBAUTHPIPE="libauthpipe.la"
24412 if test "$AUTHPIPE" != ""; then
24414 HAVE_PIPE_FALSE='#'
24424 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24425 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
24426 if test "${ac_cv_header_stdc+set}" = set; then
24427 echo $ECHO_N "(cached) $ECHO_C" >&6
24429 cat >conftest.$ac_ext <<_ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h. */
24435 #include <stdlib.h>
24436 #include <stdarg.h>
24437 #include <string.h>
24448 rm -f conftest.$ac_objext
24449 if { (ac_try="$ac_compile"
24450 case "(($ac_try" in
24451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24452 *) ac_try_echo
=$ac_try;;
24454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24455 (eval "$ac_compile") 2>conftest.er1
24457 grep -v '^ *+' conftest.er1
>conftest.err
24459 cat conftest.err
>&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } && {
24462 test -z "$ac_c_werror_flag" ||
24463 test ! -s conftest.err
24464 } && test -s conftest.
$ac_objext; then
24465 ac_cv_header_stdc
=yes
24467 echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.
$ac_ext >&5
24470 ac_cv_header_stdc
=no
24473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24475 if test $ac_cv_header_stdc = yes; then
24476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24477 cat >conftest.
$ac_ext <<_ACEOF
24480 cat confdefs.h
>>conftest.
$ac_ext
24481 cat >>conftest.
$ac_ext <<_ACEOF
24482 /* end confdefs.h. */
24483 #include <string.h>
24486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24487 $EGREP "memchr" >/dev
/null
2>&1; then
24490 ac_cv_header_stdc
=no
24496 if test $ac_cv_header_stdc = yes; then
24497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24498 cat >conftest.
$ac_ext <<_ACEOF
24501 cat confdefs.h
>>conftest.
$ac_ext
24502 cat >>conftest.
$ac_ext <<_ACEOF
24503 /* end confdefs.h. */
24504 #include <stdlib.h>
24507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24508 $EGREP "free" >/dev
/null
2>&1; then
24511 ac_cv_header_stdc
=no
24517 if test $ac_cv_header_stdc = yes; then
24518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24519 if test "$cross_compiling" = yes; then
24522 cat >conftest.
$ac_ext <<_ACEOF
24525 cat confdefs.h
>>conftest.
$ac_ext
24526 cat >>conftest.
$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24529 #include <stdlib.h>
24530 #if ((' ' & 0x0FF) == 0x020)
24531 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24532 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24534 # define ISLOWER(c) \
24535 (('a' <= (c) && (c) <= 'i') \
24536 || ('j' <= (c) && (c) <= 'r') \
24537 || ('s' <= (c) && (c) <= 'z'))
24538 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24541 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24546 for (i = 0; i < 256; i++)
24547 if (XOR (islower (i), ISLOWER (i))
24548 || toupper (i) != TOUPPER (i))
24553 rm -f conftest
$ac_exeext
24554 if { (ac_try
="$ac_link"
24555 case "(($ac_try" in
24556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24557 *) ac_try_echo=$ac_try;;
24559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24560 (eval "$ac_link") 2>&5
24562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24564 { (case "(($ac_try" in
24565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24566 *) ac_try_echo
=$ac_try;;
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_try") 2>&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); }; }; then
24575 echo "$as_me: program exited with status $ac_status" >&5
24576 echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.
$ac_ext >&5
24579 ( exit $ac_status )
24580 ac_cv_header_stdc
=no
24582 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24588 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24589 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
24590 if test $ac_cv_header_stdc = yes; then
24592 cat >>confdefs.h
<<\_ACEOF
24593 #define STDC_HEADERS 1
24598 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24599 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
24600 if test "${ac_cv_header_sys_wait_h+set}" = set; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24603 cat >conftest.
$ac_ext <<_ACEOF
24606 cat confdefs.h
>>conftest.
$ac_ext
24607 cat >>conftest.
$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24609 #include <sys/types.h>
24610 #include <sys/wait.h>
24611 #ifndef WEXITSTATUS
24612 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
24615 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24623 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24628 rm -f conftest.
$ac_objext
24629 if { (ac_try
="$ac_compile"
24630 case "(($ac_try" in
24631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24632 *) ac_try_echo=$ac_try;;
24634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635 (eval "$ac_compile") 2>conftest.er1
24637 grep -v '^ *+' conftest.er1 >conftest.err
24639 cat conftest.err >&5
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); } && {
24642 test -z "$ac_c_werror_flag" ||
24643 test ! -s conftest.err
24644 } && test -s conftest.$ac_objext; then
24645 ac_cv_header_sys_wait_h=yes
24647 echo "$as_me: failed program was:" >&5
24648 sed 's/^/| /' conftest.$ac_ext >&5
24650 ac_cv_header_sys_wait_h=no
24653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24655 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24656 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
24657 if test $ac_cv_header_sys_wait_h = yes; then
24659 cat >>confdefs.h <<\_ACEOF
24660 #define HAVE_SYS_WAIT_H 1
24673 for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
24675 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
24676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24680 echo $ECHO_N "(cached) $ECHO_C" >&6
24682 ac_res=`eval echo '${'$as_ac_Header'}'`
24683 { echo "$as_me:$LINENO: result: $ac_res" >&5
24684 echo "${ECHO_T}$ac_res" >&6; }
24686 # Is the header compilable?
24687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24689 cat >conftest.$ac_ext <<_ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24695 $ac_includes_default
24696 #include <$ac_header>
24698 rm -f conftest.$ac_objext
24699 if { (ac_try="$ac_compile"
24700 case "(($ac_try" in
24701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24702 *) ac_try_echo
=$ac_try;;
24704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24705 (eval "$ac_compile") 2>conftest.er1
24707 grep -v '^ *+' conftest.er1
>conftest.err
24709 cat conftest.err
>&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } && {
24712 test -z "$ac_c_werror_flag" ||
24713 test ! -s conftest.err
24714 } && test -s conftest.
$ac_objext; then
24715 ac_header_compiler
=yes
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.
$ac_ext >&5
24720 ac_header_compiler
=no
24723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24725 echo "${ECHO_T}$ac_header_compiler" >&6; }
24727 # Is the header present?
24728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24730 cat >conftest.
$ac_ext <<_ACEOF
24733 cat confdefs.h
>>conftest.
$ac_ext
24734 cat >>conftest.
$ac_ext <<_ACEOF
24735 /* end confdefs.h. */
24736 #include <$ac_header>
24738 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24739 case "(($ac_try" in
24740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24741 *) ac_try_echo=$ac_try;;
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24746 grep -v '^ *+' conftest.er1 >conftest.err
24748 cat conftest.err >&5
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); } >/dev/null && {
24751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24752 test ! -s conftest.err
24754 ac_header_preproc=yes
24756 echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24759 ac_header_preproc=no
24762 rm -f conftest.err conftest.$ac_ext
24763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24764 echo "${ECHO_T}$ac_header_preproc" >&6; }
24766 # So? What about this header?
24767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24773 ac_header_preproc=yes
24776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24789 ## -------------------------------------------------- ##
24790 ## Report this to courier-users@lists.sourceforge.net ##
24791 ## -------------------------------------------------- ##
24793 ) | sed "s/^/$as_me: WARNING: /" >&2
24796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24799 echo $ECHO_N "(cached) $ECHO_C" >&6
24801 eval "$as_ac_Header=\$ac_header_preproc"
24803 ac_res=`eval echo '${'$as_ac_Header'}'`
24804 { echo "$as_me:$LINENO: result: $ac_res" >&5
24805 echo "${ECHO_T}$ac_res" >&6; }
24808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24809 cat >>confdefs.h <<_ACEOF
24810 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
24818 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24819 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24820 if test "${ac_cv_c_const+set}" = set; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24823 cat >conftest.$ac_ext <<_ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h. */
24833 /* FIXME: Include the comments suggested by Paul. */
24834 #ifndef __cplusplus
24835 /* Ultrix mips cc rejects this. */
24836 typedef int charset[2];
24838 /* SunOS 4.1.1 cc rejects this. */
24839 char const *const *pcpcc;
24841 /* NEC SVR4.0.2 mips cc rejects this. */
24842 struct point {int x, y;};
24843 static struct point const zero = {0,0};
24844 /* AIX XL C 1.02.0.0 rejects this.
24845 It does not let you subtract one const X* pointer from another in
24846 an arm of an if-expression whose if-part is not a constant
24848 const char *g = "string";
24849 pcpcc = &g + (g ? g-g : 0);
24850 /* HPUX 7.0 cc rejects these. */
24852 ppc = (char**) pcpcc;
24853 pcpcc = (char const *const *) ppc;
24854 { /* SCO 3.2v4 cc rejects this. */
24856 char const *s = 0 ? (char *) 0 : (char const *) 0;
24861 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24862 int x[] = {25, 17};
24863 const int *foo = &x[0];
24866 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24867 typedef const int *iptr;
24871 { /* AIX XL C 1.02.0.0 rejects this saying
24872 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24873 struct s { int j; const int *ap[3]; };
24874 struct s *b; b->j = 5;
24876 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24877 const int foo = 10;
24878 if (!foo) return 0;
24880 return !cs[0] && !zero.x;
24887 rm -f conftest.$ac_objext
24888 if { (ac_try="$ac_compile"
24889 case "(($ac_try" in
24890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24891 *) ac_try_echo
=$ac_try;;
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_compile") 2>conftest.er1
24896 grep -v '^ *+' conftest.er1
>conftest.err
24898 cat conftest.err
>&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } && {
24901 test -z "$ac_c_werror_flag" ||
24902 test ! -s conftest.err
24903 } && test -s conftest.
$ac_objext; then
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.
$ac_ext >&5
24912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24914 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24915 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24916 if test $ac_cv_c_const = no
; then
24918 cat >>confdefs.h
<<\_ACEOF
24924 { echo "$as_me:$LINENO: checking for pid_t" >&5
24925 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24926 if test "${ac_cv_type_pid_t+set}" = set; then
24927 echo $ECHO_N "(cached) $ECHO_C" >&6
24929 cat >conftest.
$ac_ext <<_ACEOF
24932 cat confdefs.h
>>conftest.
$ac_ext
24933 cat >>conftest.
$ac_ext <<_ACEOF
24934 /* end confdefs.h. */
24935 $ac_includes_default
24936 typedef pid_t ac__type_new_;
24940 if ((ac__type_new_ *) 0)
24942 if (sizeof (ac__type_new_))
24948 rm -f conftest.
$ac_objext
24949 if { (ac_try
="$ac_compile"
24950 case "(($ac_try" in
24951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24952 *) ac_try_echo=$ac_try;;
24954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955 (eval "$ac_compile") 2>conftest.er1
24957 grep -v '^ *+' conftest.er1 >conftest.err
24959 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } && {
24962 test -z "$ac_c_werror_flag" ||
24963 test ! -s conftest.err
24964 } && test -s conftest.$ac_objext; then
24965 ac_cv_type_pid_t=yes
24967 echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24970 ac_cv_type_pid_t=no
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24975 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24976 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24977 if test $ac_cv_type_pid_t = yes; then
24981 cat >>confdefs.h <<_ACEOF
24987 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24988 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24989 if test "${ac_cv_type_uid_t+set}" = set; then
24990 echo $ECHO_N "(cached) $ECHO_C" >&6
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24998 #include <sys/types.h>
25001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25002 $EGREP "uid_t" >/dev/null 2>&1; then
25003 ac_cv_type_uid_t=yes
25005 ac_cv_type_uid_t=no
25010 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25011 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
25012 if test $ac_cv_type_uid_t = no; then
25014 cat >>confdefs.h <<\_ACEOF
25019 cat >>confdefs.h <<\_ACEOF
25025 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25026 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
25027 if test "${ac_cv_type_signal+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25030 cat >conftest.$ac_ext <<_ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h. */
25036 #include <sys/types.h>
25037 #include <signal.h>
25042 return *(signal (0, 0)) (0) == 1;
25047 rm -f conftest.$ac_objext
25048 if { (ac_try="$ac_compile"
25049 case "(($ac_try" in
25050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25051 *) ac_try_echo
=$ac_try;;
25053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25054 (eval "$ac_compile") 2>conftest.er1
25056 grep -v '^ *+' conftest.er1
>conftest.err
25058 cat conftest.err
>&5
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } && {
25061 test -z "$ac_c_werror_flag" ||
25062 test ! -s conftest.err
25063 } && test -s conftest.
$ac_objext; then
25064 ac_cv_type_signal
=int
25066 echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.
$ac_ext >&5
25069 ac_cv_type_signal
=void
25072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25074 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25075 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
25077 cat >>confdefs.h
<<_ACEOF
25078 #define RETSIGTYPE $ac_cv_type_signal
25085 for ac_func
in setsid setlogin
25087 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25090 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25091 echo $ECHO_N "(cached) $ECHO_C" >&6
25093 cat >conftest.
$ac_ext <<_ACEOF
25096 cat confdefs.h
>>conftest.
$ac_ext
25097 cat >>conftest.
$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25101 #define $ac_func innocuous_$ac_func
25103 /* System header to define __stub macros and hopefully few prototypes,
25104 which can conflict with char $ac_func (); below.
25105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25106 <limits.h> exists even on freestanding compilers. */
25109 # include <limits.h>
25111 # include <assert.h>
25116 /* Override any GCC internal prototype to avoid an error.
25117 Use char because int might match the return type of a GCC
25118 builtin and then its argument prototype would still apply. */
25123 /* The GNU C library defines this for functions which it implements
25124 to always fail with ENOSYS. Some functions are actually named
25125 something starting with __ and the normal name is an alias. */
25126 #if defined __stub_$ac_func || defined __stub___$ac_func
25133 return $ac_func ();
25138 rm -f conftest.
$ac_objext conftest
$ac_exeext
25139 if { (ac_try
="$ac_link"
25140 case "(($ac_try" in
25141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145 (eval "$ac_link") 2>conftest.er1
25147 grep -v '^ *+' conftest.er1 >conftest.err
25149 cat conftest.err >&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } && {
25152 test -z "$ac_c_werror_flag" ||
25153 test ! -s conftest.err
25154 } && test -s conftest$ac_exeext &&
25155 $as_test_x conftest$ac_exeext; then
25156 eval "$as_ac_var=yes"
25158 echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25161 eval "$as_ac_var=no"
25164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25165 conftest$ac_exeext conftest.$ac_ext
25167 ac_res=`eval echo '${'$as_ac_var'}'`
25168 { echo "$as_me:$LINENO: result: $ac_res" >&5
25169 echo "${ECHO_T}$ac_res" >&6; }
25170 if test `eval echo '${'$as_ac_var'}'` = yes; then
25171 cat >>confdefs.h <<_ACEOF
25172 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
25178 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25179 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25180 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25181 echo $ECHO_N "(cached) $ECHO_C" >&6
25183 ac_check_lib_save_LIBS=$LIBS
25184 LIBS="-lcrypt $LIBS"
25185 cat >conftest.$ac_ext <<_ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h. */
25192 /* Override any GCC internal prototype to avoid an error.
25193 Use char because int might match the return type of a GCC
25194 builtin and then its argument prototype would still apply. */
25207 rm -f conftest.$ac_objext conftest$ac_exeext
25208 if { (ac_try="$ac_link"
25209 case "(($ac_try" in
25210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25211 *) ac_try_echo
=$ac_try;;
25213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 (eval "$ac_link") 2>conftest.er1
25216 grep -v '^ *+' conftest.er1
>conftest.err
25218 cat conftest.err
>&5
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); } && {
25221 test -z "$ac_c_werror_flag" ||
25222 test ! -s conftest.err
25223 } && test -s conftest
$ac_exeext &&
25224 $as_test_x conftest
$ac_exeext; then
25225 ac_cv_lib_crypt_crypt
=yes
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.
$ac_ext >&5
25230 ac_cv_lib_crypt_crypt
=no
25233 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25234 conftest
$ac_exeext conftest.
$ac_ext
25235 LIBS
=$ac_check_lib_save_LIBS
25237 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25238 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25239 if test $ac_cv_lib_crypt_crypt = yes; then
25240 CRYPTLIBS
="-lcrypt"
25244 LIBS
="$CRYPTLIBS $LIBS"
25245 { echo "$as_me:$LINENO: checking for crypt" >&5
25246 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25247 if test "${ac_cv_func_crypt+set}" = set; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25250 cat >conftest.
$ac_ext <<_ACEOF
25253 cat confdefs.h
>>conftest.
$ac_ext
25254 cat >>conftest.
$ac_ext <<_ACEOF
25255 /* end confdefs.h. */
25256 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25258 #define crypt innocuous_crypt
25260 /* System header to define __stub macros and hopefully few prototypes,
25261 which can conflict with char crypt (); below.
25262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25263 <limits.h> exists even on freestanding compilers. */
25266 # include <limits.h>
25268 # include <assert.h>
25273 /* Override any GCC internal prototype to avoid an error.
25274 Use char because int might match the return type of a GCC
25275 builtin and then its argument prototype would still apply. */
25280 /* The GNU C library defines this for functions which it implements
25281 to always fail with ENOSYS. Some functions are actually named
25282 something starting with __ and the normal name is an alias. */
25283 #if defined __stub_crypt || defined __stub___crypt
25295 rm -f conftest.
$ac_objext conftest
$ac_exeext
25296 if { (ac_try
="$ac_link"
25297 case "(($ac_try" in
25298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25299 *) ac_try_echo=$ac_try;;
25301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25302 (eval "$ac_link") 2>conftest.er1
25304 grep -v '^ *+' conftest.er1 >conftest.err
25306 cat conftest.err >&5
25307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); } && {
25309 test -z "$ac_c_werror_flag" ||
25310 test ! -s conftest.err
25311 } && test -s conftest$ac_exeext &&
25312 $as_test_x conftest$ac_exeext; then
25313 ac_cv_func_crypt=yes
25315 echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25318 ac_cv_func_crypt=no
25321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25322 conftest$ac_exeext conftest.$ac_ext
25324 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25325 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25326 if test $ac_cv_func_crypt = yes; then
25328 cat >>confdefs.h <<_ACEOF
25329 #define HAVE_CRYPT 1
25335 { echo "$as_me:$LINENO: checking for crypt() prototype" >&5
25336 echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6; }
25337 if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25340 cat >conftest.$ac_ext <<_ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h. */
25351 #include <unistd.h>
25353 int crypt(int, int);
25364 rm -f conftest.$ac_objext
25365 if { (ac_try="$ac_compile"
25366 case "(($ac_try" in
25367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25368 *) ac_try_echo
=$ac_try;;
25370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25371 (eval "$ac_compile") 2>conftest.er1
25373 grep -v '^ *+' conftest.er1
>conftest.err
25375 cat conftest.err
>&5
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); } && {
25378 test -z "$ac_c_werror_flag" ||
25379 test ! -s conftest.err
25380 } && test -s conftest.
$ac_objext; then
25381 userdb_cv_NEED_CRYPT_PROTOTYPE
=1
25383 echo "$as_me: failed program was:" >&5
25384 sed 's/^/| /' conftest.
$ac_ext >&5
25386 userdb_cv_NEED_CRYPT_PROTOTYPE
=0
25389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25393 { echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
25394 echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
25397 cat >>confdefs.h
<<_ACEOF
25398 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
25407 # Check whether --with-authdaemonrc was given.
25408 if test "${with_authdaemonrc+set}" = set; then
25409 withval
=$with_authdaemonrc; authdaemonrc
="$withval"
25411 authdaemonrc
="$pkgconfdir/authdaemonrc"
25417 # Check whether --with-authdaemonvar was given.
25418 if test "${with_authdaemonvar+set}" = set; then
25419 withval
=$with_authdaemonvar; authdaemonvar
="$withval"
25421 authdaemonvar
="$localstatedir/spool/authdaemon"
25430 cat >>confdefs.h
<<_ACEOF
25431 #define SASL_LIST $SASL_LIST
25435 rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
25441 if test -x "$COURIERCONFIG"
25443 $COURIERCONFIG >conftest.out ||
exit 1
25444 sed -n '/^mail/p' <conftest.out
>conftest2.out ||
exit 1
25446 rm -f conftest.out conftest2.out
25448 cmailuser
="$mailuser"
25449 cmailgroup
="$mailgroup"
25450 result
=" (from courier-config)"
25453 if test -x "$bindir/courierauthconfig"
25455 $bindir/courierauthconfig
--configfiles >conftest.out ||
exit 1
25456 sed -n '/^mail/p' <conftest.out
>conftest2.out ||
exit 1
25458 rm -f conftest.out conftest2.out
25460 cmailuser
="$mailuser"
25461 cmailgroup
="$mailgroup"
25462 result
=" (from previous courierauthconfig)"
25472 { echo "$as_me:$LINENO: checking for mail userid" >&5
25473 echo $ECHO_N "checking for mail userid... $ECHO_C" >&6; }
25476 # Check whether --with-mailuser was given.
25477 if test "${with_mailuser+set}" = set; then
25478 withval
=$with_mailuser; mailuser
="$withval"
25480 if test "$cmailuser" = ""
25482 if test "$cross_compiling" = yes; then
25483 { { echo "$as_me:$LINENO: error: Must use --with-mailuser when cross compiling." >&5
25484 echo "$as_me: error: Must use --with-mailuser when cross compiling." >&2;}
25485 { (exit 1); exit 1; }; }
25487 cat >conftest.
$ac_ext <<_ACEOF
25490 cat confdefs.h
>>conftest.
$ac_ext
25491 cat >>conftest.
$ac_ext <<_ACEOF
25492 /* end confdefs.h. */
25496 #include <stdlib.h>
25498 static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
25506 for (i=0; ids $LB i $RB; i++)
25507 if (getpwnam(ids $LB i $RB)) break;
25509 f=fopen("conftest.out", "w");
25510 if (f && ids $LB i $RB)
25512 fprintf(f, "%s\n", ids $LB i $RB);
25522 rm -f conftest
$ac_exeext
25523 if { (ac_try
="$ac_link"
25524 case "(($ac_try" in
25525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529 (eval "$ac_link") 2>&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25533 { (case "(($ac_try" in
25534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25535 *) ac_try_echo
=$ac_try;;
25537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25538 (eval "$ac_try") 2>&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }; }; then
25542 mailuser
=`cat conftest.out`
25544 echo "$as_me: program exited with status $ac_status" >&5
25545 echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.
$ac_ext >&5
25548 ( exit $ac_status )
25549 { { echo "$as_me:$LINENO: error: Cannot determine mail user" >&5
25550 echo "$as_me: error: Cannot determine mail user" >&2;}
25551 { (exit use
--with-mailuser.
); exit use
--with-mailuser.
; }; }
25553 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25558 mailuser
="$cmailuser"
25560 ac_configure_args
="$ac_configure_args --with-mailuser=$mailuser"
25564 { echo "$as_me:$LINENO: result: $mailuser $result" >&5
25565 echo "${ECHO_T}$mailuser $result" >&6; }
25567 { echo "$as_me:$LINENO: checking for mail group id" >&5
25568 echo $ECHO_N "checking for mail group id... $ECHO_C" >&6; }
25571 # Check whether --with-mailgroup was given.
25572 if test "${with_mailgroup+set}" = set; then
25573 withval
=$with_mailgroup; mailgroup
="$withval"
25575 if test "$cmailgroup" = ""
25577 if test "$cross_compiling" = yes; then
25578 { { echo "$as_me:$LINENO: error: Must use --with-mailgroup when cross compiling." >&5
25579 echo "$as_me: error: Must use --with-mailgroup when cross compiling." >&2;}
25580 { (exit 1); exit 1; }; }
25582 cat >conftest.
$ac_ext <<_ACEOF
25585 cat confdefs.h
>>conftest.
$ac_ext
25586 cat >>conftest.
$ac_ext <<_ACEOF
25587 /* end confdefs.h. */
25591 #include <stdlib.h>
25593 static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
25600 for (i=0; ids $LB i $RB; i++)
25601 if (getgrnam(ids $LB i $RB)) break;
25603 f=fopen("conftest.out", "w");
25604 if (f && ids $LB i $RB)
25606 fprintf(f, "%s\n", ids $LB i $RB);
25616 rm -f conftest
$ac_exeext
25617 if { (ac_try
="$ac_link"
25618 case "(($ac_try" in
25619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25620 *) ac_try_echo=$ac_try;;
25622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25623 (eval "$ac_link") 2>&5
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25627 { (case "(($ac_try" in
25628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25629 *) ac_try_echo
=$ac_try;;
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632 (eval "$ac_try") 2>&5
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; }; then
25636 mailgroup
=`cat conftest.out`
25638 echo "$as_me: program exited with status $ac_status" >&5
25639 echo "$as_me: failed program was:" >&5
25640 sed 's/^/| /' conftest.
$ac_ext >&5
25642 ( exit $ac_status )
25643 { { echo "$as_me:$LINENO: error: Cannot determine mail group" >&5
25644 echo "$as_me: error: Cannot determine mail group" >&2;}
25645 { (exit use
--with-mailgroup.
); exit use
--with-mailgroup.
; }; }
25647 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25652 mailgroup
="$cmailgroup"
25654 ac_configure_args
="$ac_configure_args --with-mailgroup=$mailgroup"
25658 { echo "$as_me:$LINENO: result: $mailgroup $result" >&5
25659 echo "${ECHO_T}$mailgroup $result" >&6; }
25665 # Check whether --with-stdheaderdir was given.
25666 if test "${with_stdheaderdir+set}" = set; then
25667 withval
=$with_stdheaderdir;
25668 if test "$withval" = "no"
25671 cat >>confdefs.h
<<_ACEOF
25672 #define HAVE_NOSTDHEADERDIR 1
25680 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25681 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25682 if test "${authlib_cv_hassocklen_t+set}" = set; then
25683 echo $ECHO_N "(cached) $ECHO_C" >&6
25685 cat >conftest.
$ac_ext <<_ACEOF
25688 cat confdefs.h
>>conftest.
$ac_ext
25689 cat >>conftest.
$ac_ext <<_ACEOF
25690 /* end confdefs.h. */
25692 #include <sys/types.h>
25693 #include <sys/socket.h>
25698 rm -f conftest.
$ac_objext
25699 if { (ac_try
="$ac_compile"
25700 case "(($ac_try" in
25701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25702 *) ac_try_echo=$ac_try;;
25704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25705 (eval "$ac_compile") 2>conftest.er1
25707 grep -v '^ *+' conftest.er1 >conftest.err
25709 cat conftest.err >&5
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); } && {
25712 test -z "$ac_c_werror_flag" ||
25713 test ! -s conftest.err
25714 } && test -s conftest.$ac_objext; then
25715 authlib_cv_hassocklen_t=yes
25717 echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25720 authlib_cv_hassocklen_t=no
25723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25726 { echo "$as_me:$LINENO: result: $authlib_cv_hassocklen_t" >&5
25727 echo "${ECHO_T}$authlib_cv_hassocklen_t" >&6; }
25731 if test $authlib_cv_hassocklen_t = yes
25736 cat >>confdefs.h <<_ACEOF
25737 #define socklen_t int
25742 if test x"$enable_ltdl_install" = x"yes"
25744 LIBLTDL_SUBDIR=libltdl
25750 # Check whether --with-repository was given.
25751 if test "${with_repository+set}" = set; then
25752 withval=$with_repository; REPOSITORY="$withval"
25757 if test -d ${srcdir}/docbook; then
25759 HAVE_SGML_FALSE='#'
25765 subdirs="$subdirs libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog"
25768 ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit userdb-test-cram-md5.pl"
25770 cat >confcache <<\_ACEOF
25771 # This file is a shell script that caches the results of configure
25772 # tests run on this system so they can be shared between configure
25773 # scripts and configure runs, see configure's option --config-cache.
25774 # It is not useful on other systems. If it contains results you don't
25775 # want to keep, you may remove or edit it.
25777 # config.status only pays attention to the cache file if you give it
25778 # the --recheck option to rerun configure.
25780 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25782 # following values.
25786 # The following way of writing the cache mishandles newlines in values,
25787 # but we know of no workaround that is simple, portable, and efficient.
25788 # So, we kill variables containing newlines.
25789 # Ultrix sh set writes to stderr and can't be redirected directly,
25790 # and sets the high bit in the cache file unless we assign to the vars.
25792 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25793 eval ac_val
=\$
$ac_var
25797 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25798 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25801 _ | IFS | as_nl
) ;; #(
25802 *) $as_unset $ac_var ;;
25808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25809 *${as_nl}ac_space
=\
*)
25810 # `set' does not quote correctly, so add quotes (double-quote
25811 # substitution turns \\\\ into \\, and sed turns \\ into \).
25814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25817 # `set' quotes correctly as required by POSIX, so do not add quotes.
25818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25831 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25832 if test -w "$cache_file"; then
25833 test "x$cache_file" != "x/dev/null" &&
25834 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25835 echo "$as_me: updating cache $cache_file" >&6;}
25836 cat confcache
>$cache_file
25838 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25839 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25844 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25845 # Let make expand exec_prefix.
25846 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25848 DEFS
=-DHAVE_CONFIG_H
25852 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25853 # 1. Remove the extension, and $U if already installed.
25854 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25855 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25856 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25857 # will be set to the directory where LIBOBJS objects are built.
25858 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25859 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25861 LIBOBJS
=$ac_libobjs
25863 LTLIBOBJS
=$ac_ltlibobjs
25866 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25867 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25868 Usually this means the macro was only invoked conditionally." >&5
25869 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25870 Usually this means the macro was only invoked conditionally." >&2;}
25871 { (exit 1); exit 1; }; }
25873 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25874 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25875 Usually this means the macro was only invoked conditionally." >&5
25876 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25877 Usually this means the macro was only invoked conditionally." >&2;}
25878 { (exit 1); exit 1; }; }
25880 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25881 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25882 Usually this means the macro was only invoked conditionally." >&5
25883 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25884 Usually this means the macro was only invoked conditionally." >&2;}
25885 { (exit 1); exit 1; }; }
25887 if test -z "${HAVE_MD5_TRUE}" && test -z "${HAVE_MD5_FALSE}"; then
25888 { { echo "$as_me:$LINENO: error: conditional \"HAVE_MD5\" was never defined.
25889 Usually this means the macro was only invoked conditionally." >&5
25890 echo "$as_me: error: conditional \"HAVE_MD5\" was never defined.
25891 Usually this means the macro was only invoked conditionally." >&2;}
25892 { (exit 1); exit 1; }; }
25894 if test -z "${HAVE_SHA1_TRUE}" && test -z "${HAVE_SHA1_FALSE}"; then
25895 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SHA1\" was never defined.
25896 Usually this means the macro was only invoked conditionally." >&5
25897 echo "$as_me: error: conditional \"HAVE_SHA1\" was never defined.
25898 Usually this means the macro was only invoked conditionally." >&2;}
25899 { (exit 1); exit 1; }; }
25901 if test -z "${HAVE_HMACLIB_TRUE}" && test -z "${HAVE_HMACLIB_FALSE}"; then
25902 { { echo "$as_me:$LINENO: error: conditional \"HAVE_HMACLIB\" was never defined.
25903 Usually this means the macro was only invoked conditionally." >&5
25904 echo "$as_me: error: conditional \"HAVE_HMACLIB\" was never defined.
25905 Usually this means the macro was only invoked conditionally." >&2;}
25906 { (exit 1); exit 1; }; }
25908 if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
25909 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined.
25910 Usually this means the macro was only invoked conditionally." >&5
25911 echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined.
25912 Usually this means the macro was only invoked conditionally." >&2;}
25913 { (exit 1); exit 1; }; }
25915 if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
25916 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
25917 Usually this means the macro was only invoked conditionally." >&5
25918 echo "$as_me: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
25919 Usually this means the macro was only invoked conditionally." >&2;}
25920 { (exit 1); exit 1; }; }
25922 if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
25923 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
25924 Usually this means the macro was only invoked conditionally." >&5
25925 echo "$as_me: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
25926 Usually this means the macro was only invoked conditionally." >&2;}
25927 { (exit 1); exit 1; }; }
25929 if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
25930 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CUSTOM\" was never defined.
25931 Usually this means the macro was only invoked conditionally." >&5
25932 echo "$as_me: error: conditional \"HAVE_CUSTOM\" was never defined.
25933 Usually this means the macro was only invoked conditionally." >&2;}
25934 { (exit 1); exit 1; }; }
25936 if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
25937 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PIPE\" was never defined.
25938 Usually this means the macro was only invoked conditionally." >&5
25939 echo "$as_me: error: conditional \"HAVE_PIPE\" was never defined.
25940 Usually this means the macro was only invoked conditionally." >&2;}
25941 { (exit 1); exit 1; }; }
25943 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
25944 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
25945 Usually this means the macro was only invoked conditionally." >&5
25946 echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
25947 Usually this means the macro was only invoked conditionally." >&2;}
25948 { (exit 1); exit 1; }; }
25951 : ${CONFIG_STATUS=./config.status}
25952 ac_clean_files_save
=$ac_clean_files
25953 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25954 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25955 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25956 cat >$CONFIG_STATUS <<_ACEOF
25958 # Generated by $as_me.
25959 # Run this file to recreate the current configuration.
25960 # Compiler output produced by configure, useful for debugging
25961 # configure, is in config.log if it exists.
25964 ac_cs_recheck=false
25966 SHELL=\${CONFIG_SHELL-$SHELL}
25969 cat >>$CONFIG_STATUS <<\_ACEOF
25970 ## --------------------- ##
25971 ## M4sh Initialization. ##
25972 ## --------------------- ##
25974 # Be more Bourne compatible
25975 DUALCASE
=1; export DUALCASE
# for MKS sh
25976 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25979 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25980 # is contrary to our usage. Disable this feature.
25981 alias -g '${1+"$@"}'='"$@"'
25982 setopt NO_GLOB_SUBST
25984 case `(set -o) 2>/dev/null` in
25985 *posix
*) set -o posix
;;
25994 # Avoid depending upon Character Ranges.
25995 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25996 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25997 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25998 as_cr_digits
='0123456789'
25999 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26001 # The user is always right.
26002 if test "${PATH_SEPARATOR+set}" != set; then
26003 echo "#! /bin/sh" >conf$$.sh
26004 echo "exit 0" >>conf$$.sh
26006 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26014 # Support unset when possible.
26015 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26023 # We need space, tab and new line, in precisely that order. Quoting is
26024 # there to prevent editors from complaining about space-tab.
26025 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26026 # splitting by setting IFS to empty value.)
26031 # Find who we are. Look in the path if we contain no directory separator.
26033 *[\\/]* ) as_myself
=$0 ;;
26034 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26035 for as_dir
in $PATH
26038 test -z "$as_dir" && as_dir
=.
26039 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26045 # We did not find ourselves, most probably we were run as `sh COMMAND'
26046 # in which case we are not to be found in the path.
26047 if test "x$as_myself" = x
; then
26050 if test ! -f "$as_myself"; then
26051 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26052 { (exit 1); exit 1; }
26055 # Work around bugs in pre-3.0 UWIN ksh.
26056 for as_var
in ENV MAIL MAILPATH
26057 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26065 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26066 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26067 LC_TELEPHONE LC_TIME
26069 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26070 eval $as_var=C
; export $as_var
26072 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26076 # Required to use basename.
26077 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26078 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26084 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26085 as_basename
=basename
26091 # Name of the executable.
26092 as_me
=`$as_basename -- "$0" ||
26093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26094 X"$0" : 'X\(//\)$' \| \
26095 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26097 sed '/^.*\/\([^/][^/]*\)\/*$/{
26116 as_lineno_1
=$LINENO
26117 as_lineno_2
=$LINENO
26118 test "x$as_lineno_1" != "x$as_lineno_2" &&
26119 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26121 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26122 # uniformly replaced by the line number. The first 'sed' inserts a
26123 # line-number line after each line using $LINENO; the second 'sed'
26124 # does the real work. The second script uses 'N' to pair each
26125 # line-number line with the line containing $LINENO, and appends
26126 # trailing '-' during substitution so that $LINENO is not a special
26127 # case at line end.
26128 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26129 # scripts with optimization help from Paolo Bonzini. Blame Lee
26130 # E. McMahon (1931-1989) for sed's syntax. :-)
26142 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26145 ' >$as_me.lineno
&&
26146 chmod +x
"$as_me.lineno" ||
26147 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26148 { (exit 1); exit 1; }; }
26150 # Don't try to exec as it changes $[0], causing all sort of problems
26151 # (the dirname of $[0] is not the place where we might find the
26152 # original and so on. Autoconf is especially sensitive to this).
26153 .
"./$as_me.lineno"
26154 # Exit status is that of the last command.
26159 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26165 ECHO_C
= ECHO_N
= ECHO_T
=
26166 case `echo -n x` in
26168 case `echo 'x\c'` in
26169 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26176 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26177 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26183 rm -f conf$$ conf$$.exe conf$$.
file
26184 if test -d conf$$.dir
; then
26185 rm -f conf$$.dir
/conf$$.
file
26191 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26193 # ... but there are two gotchas:
26194 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26195 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26196 # In both cases, we have to default to `cp -p'.
26197 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26199 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26204 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26205 rmdir conf$$.dir
2>/dev
/null
26207 if mkdir
-p .
2>/dev
/null
; then
26210 test -d .
/-p && rmdir .
/-p
26214 if test -x / >/dev
/null
2>&1; then
26215 as_test_x
='test -x'
26217 if ls -dL / >/dev
/null
2>&1; then
26224 if test -d "$1"; then
26230 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26231 ???[sx]*):;;*)false;;esac;fi
26235 as_executable_p
=$as_test_x
26237 # Sed expression to map a string onto a valid CPP name.
26238 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26240 # Sed expression to map a string onto a valid variable name.
26241 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26246 # Save the log message, to keep $[0] and so on meaningful, and to
26247 # report actual input values of CONFIG_FILES etc. instead of their
26248 # values after options handling.
26250 This file was extended by courier-authlib $as_me 0.60.2, which was
26251 generated by GNU Autoconf 2.61. Invocation command line was
26253 CONFIG_FILES = $CONFIG_FILES
26254 CONFIG_HEADERS = $CONFIG_HEADERS
26255 CONFIG_LINKS = $CONFIG_LINKS
26256 CONFIG_COMMANDS = $CONFIG_COMMANDS
26259 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26264 cat >>$CONFIG_STATUS <<_ACEOF
26265 # Files that config.status was made for.
26266 config_files="$ac_config_files"
26267 config_headers="$ac_config_headers"
26268 config_commands="$ac_config_commands"
26272 cat >>$CONFIG_STATUS <<\_ACEOF
26274 \`$as_me' instantiates files from templates according to the
26275 current configuration.
26277 Usage: $0 [OPTIONS] [FILE]...
26279 -h, --help print this help, then exit
26280 -V, --version print version number and configuration settings, then exit
26281 -q, --quiet do not print progress messages
26282 -d, --debug don't remove temporary files
26283 --recheck update $as_me by reconfiguring in the same conditions
26284 --file=FILE[:TEMPLATE]
26285 instantiate the configuration file FILE
26286 --header=FILE[:TEMPLATE]
26287 instantiate the configuration header FILE
26289 Configuration files:
26292 Configuration headers:
26295 Configuration commands:
26298 Report bugs to <bug-autoconf@gnu.org>."
26301 cat >>$CONFIG_STATUS <<_ACEOF
26303 courier-authlib config.status 0.60.2
26304 configured by $0, generated by GNU Autoconf 2.61,
26305 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26307 Copyright (C) 2006 Free Software Foundation, Inc.
26308 This config.status script is free software; the Free Software Foundation
26309 gives unlimited permission to copy, distribute and modify it."
26317 cat >>$CONFIG_STATUS <<\_ACEOF
26318 # If no file are specified by the user, then we need to provide default
26319 # value. By we need to know if files were specified by the user.
26325 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26326 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26337 # Handling of the options.
26338 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26340 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26341 echo "$ac_cs_version"; exit ;;
26342 --debug |
--debu |
--deb |
--de |
--d |
-d )
26344 --file |
--fil |
--fi |
--f )
26346 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26347 ac_need_defaults
=false
;;
26348 --header |
--heade |
--head |
--hea )
26350 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26351 ac_need_defaults
=false
;;
26353 # Conflict between --help and --header
26354 { echo "$as_me: error: ambiguous option: $1
26355 Try \`$0 --help' for more information." >&2
26356 { (exit 1); exit 1; }; };;
26357 --help |
--hel |
-h )
26358 echo "$ac_cs_usage"; exit ;;
26359 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26360 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26363 # This is an error.
26364 -*) { echo "$as_me: error: unrecognized option: $1
26365 Try \`$0 --help' for more information." >&2
26366 { (exit 1); exit 1; }; } ;;
26368 *) ac_config_targets
="$ac_config_targets $1"
26369 ac_need_defaults
=false
;;
26375 ac_configure_extra_args
=
26377 if $ac_cs_silent; then
26379 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26383 cat >>$CONFIG_STATUS <<_ACEOF
26384 if \$ac_cs_recheck; then
26385 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26386 CONFIG_SHELL=$SHELL
26387 export CONFIG_SHELL
26388 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26392 cat >>$CONFIG_STATUS <<\_ACEOF
26396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26397 ## Running $as_me. ##
26403 cat >>$CONFIG_STATUS <<_ACEOF
26407 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26411 cat >>$CONFIG_STATUS <<\_ACEOF
26413 # Handling of arguments.
26414 for ac_config_target
in $ac_config_targets
26416 case $ac_config_target in
26417 "courier_auth_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS courier_auth_config.h" ;;
26418 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26419 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26420 "authdaemond") CONFIG_FILES
="$CONFIG_FILES authdaemond" ;;
26421 "authdaemonrc") CONFIG_FILES
="$CONFIG_FILES authdaemonrc" ;;
26422 "authsystem.passwd") CONFIG_FILES
="$CONFIG_FILES authsystem.passwd" ;;
26423 "README.authdebug.html") CONFIG_FILES
="$CONFIG_FILES README.authdebug.html" ;;
26424 "dbobj.h") CONFIG_FILES
="$CONFIG_FILES dbobj.h" ;;
26425 "authmigrate") CONFIG_FILES
="$CONFIG_FILES authmigrate" ;;
26426 "courier-authlib.spec") CONFIG_FILES
="$CONFIG_FILES courier-authlib.spec" ;;
26427 "courier-authlib.lpspec") CONFIG_FILES
="$CONFIG_FILES courier-authlib.lpspec" ;;
26428 "courier-authlib.sysvinit") CONFIG_FILES
="$CONFIG_FILES courier-authlib.sysvinit" ;;
26429 "userdb-test-cram-md5.pl") CONFIG_FILES
="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
26431 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26432 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26433 { (exit 1); exit 1; }; };;
26438 # If the user did not use the arguments to specify the items to instantiate,
26439 # then the envvar interface is used. Set only those that are not.
26440 # We use the long form for the default assignment because of an extremely
26441 # bizarre bug on SunOS 4.1.3.
26442 if $ac_need_defaults; then
26443 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26444 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26445 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26448 # Have a temporary directory for convenience. Make it in the build tree
26449 # simply because there is no reason against having it here, and in addition,
26450 # creating and moving files from /tmp can sometimes cause problems.
26451 # Hook for its removal unless debugging.
26452 # Note that there is a small window in which the directory will not be cleaned:
26453 # after its creation but before its name has been assigned to `$tmp'.
26457 trap 'exit_status=$?
26458 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26460 trap '{ (exit 1); exit 1; }' 1 2 13 15
26462 # Create a (secure) tmp directory for tmp files.
26465 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26466 test -n "$tmp" && test -d "$tmp"
26469 tmp
=.
/conf$$
-$RANDOM
26470 (umask 077 && mkdir
"$tmp")
26473 echo "$me: cannot create a temporary directory in ." >&2
26474 { (exit 1); exit 1; }
26478 # Set up the sed scripts for CONFIG_FILES section.
26481 # No need to generate the scripts if there are no CONFIG_FILES.
26482 # This happens for instance when ./config.status config.h
26483 if test -n "$CONFIG_FILES"; then
26490 for ac_last_try
in false false false false false
:; do
26491 cat >conf$
$subs.
sed <<_ACEOF
26492 SHELL!$SHELL$ac_delim
26493 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26494 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26495 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26496 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26497 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26498 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26499 exec_prefix!$exec_prefix$ac_delim
26500 prefix!$prefix$ac_delim
26501 program_transform_name!$program_transform_name$ac_delim
26502 bindir!$bindir$ac_delim
26503 sbindir!$sbindir$ac_delim
26504 libexecdir!$libexecdir$ac_delim
26505 datarootdir!$datarootdir$ac_delim
26506 datadir!$datadir$ac_delim
26507 sysconfdir!$sysconfdir$ac_delim
26508 sharedstatedir!$sharedstatedir$ac_delim
26509 localstatedir!$localstatedir$ac_delim
26510 includedir!$includedir$ac_delim
26511 oldincludedir!$oldincludedir$ac_delim
26512 docdir!$docdir$ac_delim
26513 infodir!$infodir$ac_delim
26514 htmldir!$htmldir$ac_delim
26515 dvidir!$dvidir$ac_delim
26516 pdfdir!$pdfdir$ac_delim
26517 psdir!$psdir$ac_delim
26518 libdir!$libdir$ac_delim
26519 localedir!$localedir$ac_delim
26520 mandir!$mandir$ac_delim
26521 DEFS!$DEFS$ac_delim
26522 ECHO_C!$ECHO_C$ac_delim
26523 ECHO_N!$ECHO_N$ac_delim
26524 ECHO_T!$ECHO_T$ac_delim
26525 LIBS!$LIBS$ac_delim
26526 build_alias!$build_alias$ac_delim
26527 host_alias!$host_alias$ac_delim
26528 target_alias!$target_alias$ac_delim
26529 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26530 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26531 INSTALL_DATA!$INSTALL_DATA$ac_delim
26532 am__isrc!$am__isrc$ac_delim
26533 CYGPATH_W!$CYGPATH_W$ac_delim
26534 PACKAGE!$PACKAGE$ac_delim
26535 VERSION!$VERSION$ac_delim
26536 ACLOCAL!$ACLOCAL$ac_delim
26537 AUTOCONF!$AUTOCONF$ac_delim
26538 AUTOMAKE!$AUTOMAKE$ac_delim
26539 AUTOHEADER!$AUTOHEADER$ac_delim
26540 MAKEINFO!$MAKEINFO$ac_delim
26541 install_sh!$install_sh$ac_delim
26542 STRIP!$STRIP$ac_delim
26543 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26544 mkdir_p!$mkdir_p$ac_delim
26546 SET_MAKE!$SET_MAKE$ac_delim
26547 am__leading_dot!$am__leading_dot$ac_delim
26548 AMTAR!$AMTAR$ac_delim
26549 am__tar!$am__tar$ac_delim
26550 am__untar!$am__untar$ac_delim
26552 CFLAGS!$CFLAGS$ac_delim
26553 LDFLAGS!$LDFLAGS$ac_delim
26554 CPPFLAGS!$CPPFLAGS$ac_delim
26555 ac_ct_CC!$ac_ct_CC$ac_delim
26556 EXEEXT!$EXEEXT$ac_delim
26557 OBJEXT!$OBJEXT$ac_delim
26558 DEPDIR!$DEPDIR$ac_delim
26559 am__include!$am__include$ac_delim
26560 am__quote!$am__quote$ac_delim
26561 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26562 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26563 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26564 CCDEPMODE!$CCDEPMODE$ac_delim
26565 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26566 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26568 LN_S!$LN_S$ac_delim
26569 build!$build$ac_delim
26570 build_cpu!$build_cpu$ac_delim
26571 build_vendor!$build_vendor$ac_delim
26572 build_os!$build_os$ac_delim
26573 host!$host$ac_delim
26574 host_cpu!$host_cpu$ac_delim
26575 host_vendor!$host_vendor$ac_delim
26576 host_os!$host_os$ac_delim
26577 GREP!$GREP$ac_delim
26578 EGREP!$EGREP$ac_delim
26579 ECHO!$ECHO$ac_delim
26581 RANLIB!$RANLIB$ac_delim
26583 CXXFLAGS!$CXXFLAGS$ac_delim
26584 ac_ct_CXX!$ac_ct_CXX$ac_delim
26585 CXXDEPMODE!$CXXDEPMODE$ac_delim
26586 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26587 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26588 CXXCPP!$CXXCPP$ac_delim
26591 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26593 elif $ac_last_try; then
26594 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26595 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26596 { (exit 1); exit 1; }; }
26598 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26602 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26603 if test -n "$ac_eof"; then
26604 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26605 ac_eof
=`expr $ac_eof + 1`
26608 cat >>$CONFIG_STATUS <<_ACEOF
26609 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26613 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26614 s/^/s,@/; s/!/@,|#_!!_#|/
26617 s/'"$ac_delim"'$/,g/; t
26619 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26620 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26621 rm -f conf$
$subs.
sed
26622 cat >>$CONFIG_STATUS <<_ACEOF
26628 for ac_last_try
in false false false false false
:; do
26629 cat >conf$
$subs.
sed <<_ACEOF
26631 FFLAGS!$FFLAGS$ac_delim
26632 ac_ct_F77!$ac_ct_F77$ac_delim
26633 LIBTOOL!$LIBTOOL$ac_delim
26634 LTDLINCL!$LTDLINCL$ac_delim
26635 LIBLTDL!$LIBLTDL$ac_delim
26636 PERL!$PERL$ac_delim
26637 COURIERCONFIG!$COURIERCONFIG$ac_delim
26638 EXPECT!$EXPECT$ac_delim
26639 PASSWD!$PASSWD$ac_delim
26640 MD5LIB!$MD5LIB$ac_delim
26641 HAVE_MD5_TRUE!$HAVE_MD5_TRUE$ac_delim
26642 HAVE_MD5_FALSE!$HAVE_MD5_FALSE$ac_delim
26643 SHA1LIB!$SHA1LIB$ac_delim
26644 HAVE_SHA1_TRUE!$HAVE_SHA1_TRUE$ac_delim
26645 HAVE_SHA1_FALSE!$HAVE_SHA1_FALSE$ac_delim
26646 HMACLIB!$HMACLIB$ac_delim
26647 HAVE_HMACLIB_TRUE!$HAVE_HMACLIB_TRUE$ac_delim
26648 HAVE_HMACLIB_FALSE!$HAVE_HMACLIB_FALSE$ac_delim
26649 NETLIBS!$NETLIBS$ac_delim
26650 DBSUBDIR!$DBSUBDIR$ac_delim
26651 USE_GDBM!$USE_GDBM$ac_delim
26652 USE_DB!$USE_DB$ac_delim
26653 LIBDB!$LIBDB$ac_delim
26654 LIBGDBM!$LIBGDBM$ac_delim
26655 dblibrary!$dblibrary$ac_delim
26656 LIBAUTHUSERDB!$LIBAUTHUSERDB$ac_delim
26657 userdb!$userdb$ac_delim
26658 LIBDL!$LIBDL$ac_delim
26659 AUTHPAMCRYPT!$AUTHPAMCRYPT$ac_delim
26660 LIBAUTHPAM!$LIBAUTHPAM$ac_delim
26661 authldaprc!$authldaprc$ac_delim
26662 LDAPLIBS!$LDAPLIBS$ac_delim
26663 LIBAUTHLDAP!$LIBAUTHLDAP$ac_delim
26664 HAVE_LDAP_TRUE!$HAVE_LDAP_TRUE$ac_delim
26665 HAVE_LDAP_FALSE!$HAVE_LDAP_FALSE$ac_delim
26666 SHADOWLIBS!$SHADOWLIBS$ac_delim
26667 LIBAUTHSHADOW!$LIBAUTHSHADOW$ac_delim
26668 LIBAUTHPWD!$LIBAUTHPWD$ac_delim
26669 vpopmail_home!$vpopmail_home$ac_delim
26670 VPOPMAILLIBS!$VPOPMAILLIBS$ac_delim
26671 LIBAUTHVCHKPW!$LIBAUTHVCHKPW$ac_delim
26672 authpgsqlrc!$authpgsqlrc$ac_delim
26673 PG_CONFIG!$PG_CONFIG$ac_delim
26674 PGSQL_LIBS!$PGSQL_LIBS$ac_delim
26675 LIBAUTHPGSQL!$LIBAUTHPGSQL$ac_delim
26676 HAVE_AUTHPGSQL_TRUE!$HAVE_AUTHPGSQL_TRUE$ac_delim
26677 HAVE_AUTHPGSQL_FALSE!$HAVE_AUTHPGSQL_FALSE$ac_delim
26678 authmysqlrc!$authmysqlrc$ac_delim
26679 MYSQL_CONFIG!$MYSQL_CONFIG$ac_delim
26680 LIBAUTHMYSQL!$LIBAUTHMYSQL$ac_delim
26681 MYSQL_LIBS!$MYSQL_LIBS$ac_delim
26682 HAVE_AUTHMYSQL_TRUE!$HAVE_AUTHMYSQL_TRUE$ac_delim
26683 HAVE_AUTHMYSQL_FALSE!$HAVE_AUTHMYSQL_FALSE$ac_delim
26684 HAVE_CUSTOM_TRUE!$HAVE_CUSTOM_TRUE$ac_delim
26685 HAVE_CUSTOM_FALSE!$HAVE_CUSTOM_FALSE$ac_delim
26686 LIBAUTHCUSTOM!$LIBAUTHCUSTOM$ac_delim
26687 authProg!$authProg$ac_delim
26688 HAVE_PIPE_TRUE!$HAVE_PIPE_TRUE$ac_delim
26689 HAVE_PIPE_FALSE!$HAVE_PIPE_FALSE$ac_delim
26690 LIBAUTHPIPE!$LIBAUTHPIPE$ac_delim
26691 CRYPTLIBS!$CRYPTLIBS$ac_delim
26692 authdaemonrc!$authdaemonrc$ac_delim
26693 authdaemonvar!$authdaemonvar$ac_delim
26694 LIBM!$LIBM$ac_delim
26695 mailuser!$mailuser$ac_delim
26696 mailgroup!$mailgroup$ac_delim
26697 LIBLTDL_SUBDIR!$LIBLTDL_SUBDIR$ac_delim
26698 REPOSITORY!$REPOSITORY$ac_delim
26699 HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
26700 HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
26701 subdirs!$subdirs$ac_delim
26702 LIBOBJS!$LIBOBJS$ac_delim
26703 LTLIBOBJS!$LTLIBOBJS$ac_delim
26706 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
26708 elif $ac_last_try; then
26709 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26710 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26711 { (exit 1); exit 1; }; }
26713 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26717 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26718 if test -n "$ac_eof"; then
26719 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26720 ac_eof
=`expr $ac_eof + 1`
26723 cat >>$CONFIG_STATUS <<_ACEOF
26724 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26728 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26729 s/^/s,@/; s/!/@,|#_!!_#|/
26732 s/'"$ac_delim"'$/,g/; t
26734 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26735 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26736 rm -f conf$
$subs.
sed
26737 cat >>$CONFIG_STATUS <<_ACEOF
26744 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26745 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26746 # trailing colons and then remove the whole line if VPATH becomes empty
26747 # (actually we leave an empty line to preserve line numbers).
26748 if test "x$srcdir" = x.
; then
26749 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26750 s/:*\$(srcdir):*/:/
26751 s/:*\${srcdir}:*/:/
26753 s/^\([^=]*=[ ]*\):*/\1/
26759 cat >>$CONFIG_STATUS <<\_ACEOF
26760 fi # test -n "$CONFIG_FILES"
26763 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
26766 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26768 case $ac_mode$ac_tag in
26770 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26771 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26772 { (exit 1); exit 1; }; };;
26773 :[FH
]-) ac_tag
=-:-;;
26774 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26791 -) ac_f
="$tmp/stdin";;
26792 *) # Look for the file first in the build tree, then in the source tree
26793 # (if the path is not absolute). The absolute path cannot be DOS-style,
26794 # because $ac_f cannot contain `:'.
26798 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26800 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26801 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26802 { (exit 1); exit 1; }; };;
26804 ac_file_inputs
="$ac_file_inputs $ac_f"
26807 # Let's still pretend it is `configure' which instantiates (i.e., don't
26808 # use $as_me), people would be surprised to read:
26809 # /* config.h. Generated by config.status. */
26810 configure_input
="Generated from "`IFS=:
26811 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26812 if test x
"$ac_file" != x-
; then
26813 configure_input
="$ac_file. $configure_input"
26814 { echo "$as_me:$LINENO: creating $ac_file" >&5
26815 echo "$as_me: creating $ac_file" >&6;}
26819 *:-:* |
*:-) cat >"$tmp/stdin";;
26824 ac_dir
=`$as_dirname -- "$ac_file" ||
26825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26826 X"$ac_file" : 'X\(//\)[^/]' \| \
26827 X"$ac_file" : 'X\(//\)$' \| \
26828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26834 /^X\(\/\/\)[^/].*/{
26849 -*) as_dir
=.
/$as_dir;;
26851 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26855 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26856 *) as_qdir
=$as_dir;;
26858 as_dirs
="'$as_qdir' $as_dirs"
26859 as_dir
=`$as_dirname -- "$as_dir" ||
26860 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26861 X"$as_dir" : 'X\(//\)[^/]' \| \
26862 X"$as_dir" : 'X\(//\)$' \| \
26863 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26869 /^X\(\/\/\)[^/].*/{
26882 test -d "$as_dir" && break
26884 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26885 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26886 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26887 { (exit 1); exit 1; }; }; }
26891 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26893 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26894 # A ".." for each directory in $ac_dir_suffix.
26895 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26896 case $ac_top_builddir_sub in
26897 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26898 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26901 ac_abs_top_builddir
=$ac_pwd
26902 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26903 # for backward compatibility:
26904 ac_top_builddir
=$ac_top_build_prefix
26907 .
) # We are building in place.
26909 ac_top_srcdir
=$ac_top_builddir_sub
26910 ac_abs_top_srcdir
=$ac_pwd ;;
26911 [\\/]* | ?
:[\\/]* ) # Absolute name.
26912 ac_srcdir
=$srcdir$ac_dir_suffix;
26913 ac_top_srcdir
=$srcdir
26914 ac_abs_top_srcdir
=$srcdir ;;
26915 *) # Relative name.
26916 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26917 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26918 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26920 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26930 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26931 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26933 ac_MKDIR_P
=$MKDIR_P
26935 [\\/$
]* | ?
:[\\/]* ) ;;
26936 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26940 cat >>$CONFIG_STATUS <<\_ACEOF
26941 # If the template does not know about datarootdir, expand it.
26942 # FIXME: This hack should be removed a few years after 2.60.
26943 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26945 case `sed -n '/datarootdir/ {
26954 ' $ac_file_inputs` in
26955 *datarootdir
*) ac_datarootdir_seen
=yes;;
26956 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26957 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26958 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26960 cat >>$CONFIG_STATUS <<_ACEOF
26961 ac_datarootdir_hack='
26962 s&@datadir@&$datadir&g
26963 s&@docdir@&$docdir&g
26964 s&@infodir@&$infodir&g
26965 s&@localedir@&$localedir&g
26966 s&@mandir@&$mandir&g
26967 s&\\\${datarootdir}&$datarootdir&g' ;;
26971 # Neutralize VPATH when `$srcdir' = `.'.
26972 # Shell code in configure.ac might set extrasub.
26973 # FIXME: do we really want to maintain this feature?
26974 cat >>$CONFIG_STATUS <<_ACEOF
26978 cat >>$CONFIG_STATUS <<\_ACEOF
26980 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26981 s
&@configure_input@
&$configure_input&;t t
26982 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26983 s
&@srcdir@
&$ac_srcdir&;t t
26984 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26985 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26986 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26987 s
&@builddir@
&$ac_builddir&;t t
26988 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26989 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26990 s
&@INSTALL@
&$ac_INSTALL&;t t
26991 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
26992 $ac_datarootdir_hack
26993 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26995 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26996 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26997 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26998 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26999 which seems to be undefined. Please make sure it is defined." >&5
27000 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27001 which seems to be undefined. Please make sure it is defined." >&2;}
27005 -) cat "$tmp/out"; rm -f "$tmp/out";;
27006 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27015 # Transform confdefs.h into a sed script `conftest.defines', that
27016 # substitutes the proper values into config.h.in to produce config.h.
27017 rm -f conftest.defines conftest.
tail
27018 # First, append a space to every undef/define line, to ease matching.
27019 echo 's/$/ /' >conftest.defines
27020 # Then, protect against being on the right side of a sed subst, or in
27021 # an unquoted here document, in config.status. If some macros were
27022 # called several times there might be several #defines for the same
27023 # symbol, which is useless. But do not sort them, since the last
27024 # AC_DEFINE must be honored.
27025 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27026 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27027 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27028 # PARAMS is the parameter list in the macro definition--in most cases, it's
27029 # just an empty string.
27030 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27031 ac_dB
='\\)[ (].*,\\1define\\2'
27039 s/^[ ]*#[ ]*define[ ][ ]*//
27044 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27045 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27046 ' >>conftest.defines
27048 # Remove the space that was appended to ease matching.
27049 # Then replace #undef with comments. This is necessary, for
27050 # example, in the case of _POSIX_SOURCE, which is predefined and required
27051 # on some systems where configure will not decide to define it.
27052 # (The regexp can be short, since the line contains either #define or #undef.)
27054 s,^[ #]*u.*,/* & */,' >>conftest.defines
27056 # Break up conftest.defines:
27057 ac_max_sed_lines
=50
27059 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27060 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27061 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27063 ac_in
='$ac_file_inputs'
27064 ac_out
='"$tmp/out1"'
27065 ac_nxt
='"$tmp/out2"'
27069 # Write a here document:
27070 cat >>$CONFIG_STATUS <<_ACEOF
27071 # First, check the format of the line:
27072 cat >"\$tmp/defines.sed" <<\\CEOF
27073 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27074 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27078 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27080 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27081 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27082 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27083 grep . conftest.
tail >/dev
/null ||
break
27084 rm -f conftest.defines
27085 mv conftest.
tail conftest.defines
27087 rm -f conftest.defines conftest.
tail
27089 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27090 cat >>$CONFIG_STATUS <<\_ACEOF
27091 if test x
"$ac_file" != x-
; then
27092 echo "/* $configure_input */" >"$tmp/config.h"
27093 cat "$ac_result" >>"$tmp/config.h"
27094 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27095 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27096 echo "$as_me: $ac_file is unchanged" >&6;}
27099 mv "$tmp/config.h" $ac_file
27102 echo "/* $configure_input */"
27106 # Compute $ac_file's index in $config_headers.
27108 for _am_header
in $config_headers :; do
27109 case $_am_header in
27110 $ac_file |
$ac_file:* )
27113 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
27116 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27117 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27118 X$ac_file : 'X\(//\)[^/]' \| \
27119 X$ac_file : 'X\(//\)$' \| \
27120 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27126 /^X\(\/\/\)[^/].*/{
27138 s/.*/./; q'`/stamp-h
$_am_stamp_count
27141 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27142 echo "$as_me: executing $ac_file commands" >&6;}
27147 case $ac_file$ac_mode in
27148 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
27149 # Strip MF so we end up with the name of the file.
27150 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27151 # Check whether this is an Automake generated Makefile or not.
27152 # We used to match only the files named `Makefile.in', but
27153 # some people rename them; so instead we look at the file content.
27154 # Grep'ing the first line is not enough: some people post-process
27155 # each Makefile.in and add a new line on top of each file to say so.
27156 # Grep'ing the whole file is not good either: AIX grep has a line
27157 # limit of 2048, but all sed's we know have understand at least 4000.
27158 if sed 10q
"$mf" |
grep '^#.*generated by automake' > /dev
/null
2>&1; then
27159 dirpart
=`$as_dirname -- "$mf" ||
27160 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27161 X"$mf" : 'X\(//\)[^/]' \| \
27162 X"$mf" : 'X\(//\)$' \| \
27163 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27169 /^X\(\/\/\)[^/].*/{
27185 # Extract the definition of DEPDIR, am__include, and am__quote
27186 # from the Makefile without running `make'.
27187 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27188 test -z "$DEPDIR" && continue
27189 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27190 test -z "am__include" && continue
27191 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27192 # When using ansi2knr, U may be empty or an underscore; expand it
27193 U
=`sed -n 's/^U = //p' < "$mf"`
27194 # Find all dependency output files, they are included files with
27195 # $(DEPDIR) in their names. We invoke sed twice because it is the
27196 # simplest approach to changing $(DEPDIR) to its actual value in the
27198 for file in `sed -n "
27199 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27200 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27201 # Make sure the directory exists.
27202 test -f "$dirpart/$file" && continue
27203 fdir
=`$as_dirname -- "$file" ||
27204 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27205 X"$file" : 'X\(//\)[^/]' \| \
27206 X"$file" : 'X\(//\)$' \| \
27207 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27213 /^X\(\/\/\)[^/].*/{
27226 { as_dir
=$dirpart/$fdir
27228 -*) as_dir
=.
/$as_dir;;
27230 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27234 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27235 *) as_qdir
=$as_dir;;
27237 as_dirs
="'$as_qdir' $as_dirs"
27238 as_dir
=`$as_dirname -- "$as_dir" ||
27239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27240 X"$as_dir" : 'X\(//\)[^/]' \| \
27241 X"$as_dir" : 'X\(//\)$' \| \
27242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27248 /^X\(\/\/\)[^/].*/{
27261 test -d "$as_dir" && break
27263 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27264 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27265 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27266 { (exit 1); exit 1; }; }; }
27267 # echo "creating $dirpart/$file"
27268 echo '# dummy' > "$dirpart/$file"
27277 { (exit 0); exit 0; }
27279 chmod +x
$CONFIG_STATUS
27280 ac_clean_files
=$ac_clean_files_save
27283 # configure is writing to config.log, and then calls config.status.
27284 # config.status does its own redirection, appending to config.log.
27285 # Unfortunately, on DOS this fails, as config.log is still kept open
27286 # by configure, so config.status won't be able to write to it; its
27287 # output is simply discarded. So we exec the FD to /dev/null,
27288 # effectively closing config.log, so it can be properly (re)opened and
27289 # appended to by config.status. When coming back to configure, we
27290 # need to make the FD available again.
27291 if test "$no_create" != yes; then
27293 ac_config_status_args
=
27294 test "$silent" = yes &&
27295 ac_config_status_args
="$ac_config_status_args --quiet"
27297 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27300 # would make configure fail if this is the last instruction.
27301 $ac_cs_success ||
{ (exit 1); exit 1; }
27305 # CONFIG_SUBDIRS section.
27307 if test "$no_recursion" != yes; then
27309 # Remove --cache-file and --srcdir arguments so they do not pile up.
27310 ac_sub_configure_args
=
27312 eval "set x $ac_configure_args"
27316 if test -n "$ac_prev"; then
27321 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
27322 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
27323 ac_prev
=cache_file
;;
27324 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
27325 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
27328 --config-cache |
-C)
27330 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
27332 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
27334 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
27336 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
27340 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27342 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
27346 # Always prepend --prefix to ensure using the same prefix
27347 # in subdir configurations.
27348 ac_arg
="--prefix=$prefix"
27350 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27352 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
27355 if test "$silent" = yes; then
27356 ac_sub_configure_args
="--silent $ac_sub_configure_args"
27360 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
27362 # Do not complain, so a configure script can configure whichever
27363 # parts of a large source tree are present.
27364 test -d "$srcdir/$ac_dir" ||
continue
27366 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27367 echo "$as_me:$LINENO: $ac_msg" >&5
27371 -*) as_dir
=.
/$as_dir;;
27373 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27377 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27378 *) as_qdir
=$as_dir;;
27380 as_dirs
="'$as_qdir' $as_dirs"
27381 as_dir
=`$as_dirname -- "$as_dir" ||
27382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27383 X"$as_dir" : 'X\(//\)[^/]' \| \
27384 X"$as_dir" : 'X\(//\)$' \| \
27385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27391 /^X\(\/\/\)[^/].*/{
27404 test -d "$as_dir" && break
27406 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27407 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27408 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27409 { (exit 1); exit 1; }; }; }
27413 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27415 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27416 # A ".." for each directory in $ac_dir_suffix.
27417 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27418 case $ac_top_builddir_sub in
27419 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27420 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27423 ac_abs_top_builddir
=$ac_pwd
27424 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27425 # for backward compatibility:
27426 ac_top_builddir
=$ac_top_build_prefix
27429 .
) # We are building in place.
27431 ac_top_srcdir
=$ac_top_builddir_sub
27432 ac_abs_top_srcdir
=$ac_pwd ;;
27433 [\\/]* | ?
:[\\/]* ) # Absolute name.
27434 ac_srcdir
=$srcdir$ac_dir_suffix;
27435 ac_top_srcdir
=$srcdir
27436 ac_abs_top_srcdir
=$srcdir ;;
27437 *) # Relative name.
27438 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27439 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27440 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27442 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27447 # Check for guested configure; otherwise get Cygnus style configure.
27448 if test -f "$ac_srcdir/configure.gnu"; then
27449 ac_sub_configure
=$ac_srcdir/configure.gnu
27450 elif test -f "$ac_srcdir/configure"; then
27451 ac_sub_configure
=$ac_srcdir/configure
27452 elif test -f "$ac_srcdir/configure.in"; then
27453 # This should be Cygnus configure.
27454 ac_sub_configure
=$ac_aux_dir/configure
27456 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27457 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27461 # The recursion is here.
27462 if test -n "$ac_sub_configure"; then
27463 # Make the cache file name correct relative to the subdirectory.
27464 case $cache_file in
27465 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
27466 *) # Relative name.
27467 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
27470 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27471 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27472 # The eval makes quoting arguments work.
27473 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27474 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27475 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27476 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27477 { (exit 1); exit 1; }; }