1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

A few changes to improve configuration of FSP

- Use EL_ARG_DEPENDS(), the other way ended up in undefined symbols
   errors with --enable-fsp and no fsplib.
 - Also check for -lfsp in addition to -lfsplib.
 - This could probably also use a --with-fsplib or something to specify the
   path, had problems with that too, because fsplib-0.7 installed into
   /usr/local, ...
This commit is contained in:
Jonas Fonseca 2006-01-16 22:03:31 +01:00 committed by Jonas Fonseca
parent 7c112e0fa5
commit cbd22ecaca

View File

@ -1081,20 +1081,25 @@ dnl ===================================================================
dnl FSP protocol
dnl ===================================================================
EL_ARG_ENABLE(CONFIG_FSP, fsp, [FSP protocol],
[ --enable-fsp enable FSP protocol support])
if test "x${enable_fsp}" != xno; then
AC_CHECK_HEADERS(fsplib.h, CONFIG_FSP=yes, CONFIG_FSP=no)
AC_CHECK_HEADERS(fsplib.h, HAVE_FSPLIB=yes, HAVE_FSPLIB=no)
if test "$CONFIG_FSP" = yes; then
AC_CHECK_LIB(fsplib, fsp_open_session, CONFIG_FSP=yes, CONFIG_FSP=no)
if test "$CONFIG_FSP" = yes; then
if test "$HAVE_FSPLIB" = yes; then
AC_CHECK_LIB(fsplib, fsp_open_session, HAVE_FSPLIB=yes, HAVE_FSPLIB=no)
if test "$HAVE_FSPLIB" = yes; then
LIBS="$LIBS -lfsplib"
else
AC_CHECK_LIB(fsp, fsp_open_session, HAVE_FSPLIB=yes, HAVE_FSPLIB=no)
if test "$HAVE_FSPLIB" = yes; then
LIBS="$LIBS -lfsp"
fi
fi
fi
fi
EL_ARG_DEPEND(CONFIG_FSP, fsp, [HAVE_FSPLIB:yes], [FSP protocol],
[ --enable-fsp enable FSP protocol support])
EL_ARG_ENABLE(CONFIG_FTP, ftp, [FTP protocol],
[ --disable-ftp disable ftp protocol support])