[w3m-dev 03838] W3M_LIBS splitted from LIBS

* Makefile.in (W3M_LIBS): added
* acinclude.m4 (AC_W3M_TERMLIB): use W3M_LIB
	(AC_W3M_SSL): ditto
* configure.in (W3M_LIBS): added
From: ABE Yuji <cbo46560@pop12.odn.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2003-04-04 16:00:09 +00:00
parent 4fadb14e79
commit f50e7e4849
6 changed files with 175 additions and 163 deletions

View File

@@ -336,7 +336,7 @@ AC_ARG_WITH(termlib,
AC_MSG_RESULT($with_termlib)
test x"$with_termlib" = xyes && with_termlib="terminfo mytinfo termlib termcap ncurses curses"
for lib in $with_termlib; do
AC_CHECK_LIB($lib, tgetent, [LIBS="$LIBS -l$lib"; break])
AC_CHECK_LIB($lib, tgetent, [W3M_LIBS="$W3M_LIBS -l$lib"; break])
done
])
#
@@ -420,11 +420,11 @@ if test x"$with_ssl" != xno; then
CFLAGS="$CFLAGS -I$dir/include"
fi
if test "$dir" != "/usr" -a -f "$dir/lib/libssl.a"; then
LIBS="$LIBS -L$dir/lib"
W3M_LIBS="$W3M_LIBS -L$dir/lib"
fi
done
AC_CHECK_LIB(ssl, SSL_new,
[w3m_ssl="found"; LIBS="$LIBS -lssl -lcrypto"],
[w3m_ssl="found"; W3M_LIBS="$W3M_LIBS -lssl -lcrypto"],
[w3m_ssl="not found"],
[-lcrypto])
@@ -634,11 +634,11 @@ if test x"$enable_ipv6" = xyes; then
do
if test -f $dir/libinet6.a; then
if test $dir != "/usr/lib"; then
LIBS="$LIBS -L$dir"
W3M_LIBS="$W3M_LIBS -L$dir"
fi
AC_CHECK_LIB(inet6, getaddrinfo,
[enable_ipv6="yes"; AC_DEFINE(INET6)
use_libinet6="found"; LIBS="$LIBS -linet6"; break],
use_libinet6="found"; W3M_LIBS="$W3M_LIBS -linet6"; break],
[use_libinet6="not found"])
fi
done