From f66a60879c2d608a409fe8c8ea94c16a46996e76 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 20 Jul 2005 08:19:50 +0000 Subject: Add AC_LIBTOOL_WIN32_DLL. It is apparently required when using bleeding 2005-07-20 Tor Lillqvist * configure.in: Add AC_LIBTOOL_WIN32_DLL. It is apparently required when using bleeding edge libtool. Enable building with Mozilla nspr and nss on Win32. No -ldl on Win32. No import library for softokn3.dll provided by the Mozilla people for some reason. Add libedataserverui, libglade and gtk+ to the dependencies of CERT_UI, as the libraries in smime call functions from them. svn path=/trunk/; revision=29810 --- ChangeLog | 12 ++++++++++++ configure.in | 15 ++++++++++----- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0d84d4bbe6..8b91b50882 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2005-07-20 Tor Lillqvist + + * configure.in: Add AC_LIBTOOL_WIN32_DLL. It is apparently + required when using bleeding edge libtool. + + Enable building with Mozilla nspr and nss on Win32. No -ldl on + Win32. No import library for softokn3.dll provided by the Mozilla + people for some reason. + + Add libedataserverui, libglade and gtk+ to the dependencies of + CERT_UI, as the libraries in smime call functions from them. + 2005-07-19 Sankar P * configure.in : Removed the proxy and proxy-login plugins as they are diff --git a/configure.in b/configure.in index 234cabee1e..e0f8a7b8e8 100644 --- a/configure.in +++ b/configure.in @@ -90,6 +90,7 @@ AC_SUBST(localedir) dnl Initialize libtool AM_DISABLE_STATIC +AC_LIBTOOL_WIN32_DLL AM_PROG_LIBTOOL dnl Win32 @@ -100,12 +101,16 @@ case "$host" in NO_UNDEFINED='-no-undefined' SOEXT='.dll' SA_JUNK_PLUGIN='' + DL_LIB='' + SOFTOKN3_LIB='' ;; *) os_win32=no NO_UNDEFINED='' SOCKET_LIBS='' SOEXT='.so' SA_JUNK_PLUGIN=sa-junk-plugin + DL_LIB='-ldl' + SOFTOKN3_LIB='-lsoftokn3' ;; esac AC_MSG_RESULT([$os_win32]) @@ -842,10 +847,10 @@ dnl If the user specifies --with-foo or --enable-nss=static, then we have to do [Please specify the path to libnspr4.a] [Example: --with-nspr-libs=/usr/lib]) else - nsprlibs="-ldl $with_nspr_libs/libplc4.a $with_nspr_libs/libplds4.a $with_nspr_libs/libnspr4.a $PTHREAD_LIB" + nsprlibs="$DL_LIB $with_nspr_libs/libplc4.a $with_nspr_libs/libplds4.a $with_nspr_libs/libnspr4.a $PTHREAD_LIB" fi else - nsprlibs="-ldl -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB" + nsprlibs="$DL_LIB -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB" fi AC_CACHE_CHECK([for Mozilla nspr libraries], moz_nspr_libs, @@ -924,7 +929,7 @@ dnl If the user specifies --with-foo or --enable-nss=static, then we have to do esac fi else - nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" + nsslibs="-lssl3 -lsmime3 -lnss3 $SOFTOKN3_LIB" fi AC_CACHE_CHECK([for Mozilla nss libraries], moz_nss_libs, @@ -934,7 +939,7 @@ dnl If the user specifies --with-foo or --enable-nss=static, then we have to do LIBS="$nsslibs $nsprlibs" AC_TRY_LINK_FUNC(NSS_Init, moz_nss_libs="yes", moz_nss_libs="no") if test "$moz_nss_libs" = no; then - nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" + nsslibs="-lssl3 -lsmime3 -lnss3 $SOFTOKN3_LIB" LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs" AC_TRY_LINK_FUNC(NSS_Init, moz_nss_libs="yes", moz_nss_libs="no") fi @@ -1205,7 +1210,7 @@ else fi fi -EVO_SET_COMPILE_FLAGS(CERT_UI, glib-2.0 gobject-2.0 gthread-2.0, +EVO_SET_COMPILE_FLAGS(CERT_UI, libedataserverui-$EDS_PACKAGE >= $EDS_REQUIRED libglade-2.0 gtk+-2.0 glib-2.0 gobject-2.0 gthread-2.0, $MANUAL_NSS_CFLAGS $MOZILLA_NSS_CFLAGS, $MOZILLA_L_DIR $MANUAL_NSS_LIBS $MOZILLA_NSS_LIBS) AC_SUBST(CERT_UI_CFLAGS) -- cgit