Only if HAVE_DL_SUPPORT is enabled the factory test for dl loaded
authorAdam Dickmeiss <adam@indexdata.dk>
Sun, 11 Dec 2005 17:25:59 +0000 (17:25 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Sun, 11 Dec 2005 17:25:59 +0000 (17:25 +0000)
filters is executed. Note that configure has been changed, so running
buildconf.sh is necessary.

configure.ac
src/test_filter_factory.cpp

index 01a82aa..6c5246f 100644 (file)
@@ -26,6 +26,11 @@ AM_PROG_LIBTOOL
 # Use C++ compilers only for tests
 AC_LANG(C++)
 
+if test "$enable_shared" = "yes"; then
+       AC_DEFINE([HAVE_DL_SUPPORT],[1],
+                [Define to 1 if you have shared module support])
+fi
+
 # Checks for libraries.
 AC_CHECK_LIB(boost_thread, main, [],[
        AC_MSG_NOTICE([boost thread library not found.])
index b9190e3..fb28d36 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: test_filter_factory.cpp,v 1.7 2005-12-10 09:59:10 adam Exp $
+/* $Id: test_filter_factory.cpp,v 1.8 2005-12-11 17:25:59 adam Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -87,6 +87,7 @@ BOOST_AUTO_UNIT_TEST( test_filter_factory_1 )
     }
 }
 
+#if HAVE_DL_SUPPORT
 #if HAVE_DLFCN_H
 BOOST_AUTO_UNIT_TEST( test_filter_factory_2 )
 {
@@ -112,6 +113,7 @@ BOOST_AUTO_UNIT_TEST( test_filter_factory_2 )
     }
 }
 #endif
+#endif
 
 /*
  * Local variables: