mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-09 00:00:53 -04:00
Check if ClearSilver actually requires zlib
This commit is contained in:
parent
a4541f1d20
commit
f9a0f55657
17
configure.in
17
configure.in
@ -579,7 +579,22 @@ fi
|
|||||||
if test x$fast = xtrue; then
|
if test x$fast = xtrue; then
|
||||||
AC_HAVE_LIBRARY([neo_cgi],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_cgi not found!])])
|
AC_HAVE_LIBRARY([neo_cgi],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_cgi not found!])])
|
||||||
AC_HAVE_LIBRARY([neo_utl],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_utl not found!])])
|
AC_HAVE_LIBRARY([neo_utl],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_utl not found!])])
|
||||||
AC_HAVE_LIBRARY([z],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver dependency zlib not found!])])
|
AC_MSG_CHECKING([ClearSilver requires zlib])
|
||||||
|
saved_CFLAGS=$CFLAGS
|
||||||
|
saved_LIBS=$LIBS
|
||||||
|
LIBS="-lneo_cgi -lneo_cs -lneo_utl"
|
||||||
|
CFLAGS="-I/usr/include/ClearSilver"
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[#include <ClearSilver.h>],
|
||||||
|
[
|
||||||
|
NEOERR *err = cgi_display(NULL, NULL);
|
||||||
|
],
|
||||||
|
[AC_MSG_RESULT([no]); clearsilver_LIBS="$LIBS"],
|
||||||
|
[AC_MSG_RESULT([yes]); clearsilver_LIBS="$LIBS -lz"]
|
||||||
|
)
|
||||||
|
AC_SUBST(clearsilver_LIBS)
|
||||||
|
LIBS=$saved_LIBS
|
||||||
|
CFLAGS=$saved_CFLAGS
|
||||||
dnl autoconf does not like CamelCase!? How to fix this?
|
dnl autoconf does not like CamelCase!? How to fix this?
|
||||||
dnl AC_CHECK_HEADER([ClearSilver/ClearSilver.h],,[AC_MSG_ERROR([ClearSilver header file ClearSilver/ClearSilver.h not found!])])
|
dnl AC_CHECK_HEADER([ClearSilver/ClearSilver.h],,[AC_MSG_ERROR([ClearSilver header file ClearSilver/ClearSilver.h not found!])])
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@ ipseclib_LTLIBRARIES = libfast.la
|
|||||||
libfast_la_SOURCES = context.h dispatcher.c request.h session.h \
|
libfast_la_SOURCES = context.h dispatcher.c request.h session.h \
|
||||||
controller.h dispatcher.h request.c session.c filter.h smtp.c smtp.h
|
controller.h dispatcher.h request.c session.c filter.h smtp.c smtp.h
|
||||||
libfast_la_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la \
|
libfast_la_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||||
-lfcgi -lneo_cgi -lneo_cs -lneo_utl -lz $(PTHREADLIB)
|
-lfcgi $(clearsilver_LIBS) $(PTHREADLIB)
|
||||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I/usr/include/ClearSilver
|
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I/usr/include/ClearSilver
|
||||||
AM_CFLAGS = -rdynamic
|
AM_CFLAGS = -rdynamic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user