aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-02-25 11:03:54 +0100
committerTobias Brunner <tobias@strongswan.org>2010-02-25 13:51:05 +0100
commitc711687c00d1bdfdfeda47471f6447175f7e523d (patch)
tree6c6176a92c67390443f3aefa4378f65d78dfc637 /configure.in
parenteba28948a584b9d02474cf5d256b04b8d2adbe6a (diff)
downloadstrongswan-c711687c00d1bdfdfeda47471f6447175f7e523d.tar.bz2
strongswan-c711687c00d1bdfdfeda47471f6447175f7e523d.tar.xz
Force libdl if the android plugin is enabled. AC_SEARCH_LIBS thinks it's not required, but on Android 2.0 it is.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 5bf99545f..e3eccd977 100644
--- a/configure.in
+++ b/configure.in
@@ -573,6 +573,10 @@ fi
if test x$android = xtrue; then
AC_HAVE_LIBRARY([cutils],[LIBS="$LIBS"],[AC_MSG_ERROR([Android library libcutils not found])])
AC_CHECK_HEADER([cutils/properties.h],,[AC_MSG_ERROR([Android header cutils/properties.h not found!])])
+ dnl we have to force the use of libdl here because the autodetection
+ dnl above does not work correctly when cross-compiling for android.
+ DLLIB="-ldl"
+ AC_SUBST(DLLIB)
fi
if test x$nm = xtrue; then