2004-07-27 Moritz Schulte <moritz@g10code.com>
authorMoritz Schulte <mo@g10code.com>
Tue, 27 Jul 2004 11:28:10 +0000 (11:28 +0000)
committerMoritz Schulte <mo@g10code.com>
Tue, 27 Jul 2004 11:28:10 +0000 (11:28 +0000)
* configure.ac: Check for dlopen in libc and libdl, substitute
DL_LIBS accordingly.

configure.ac

index bc9f966..ca6eaf1 100644 (file)
@@ -461,6 +461,13 @@ AC_CHECK_LIB(usb, usb_find_device,
              ])
 AC_SUBST(LIBUSB_LIBS)
 
+#
+# Check wether it is necessary to link against libdl.
+#
+LIBS=""
+AC_SEARCH_LIBS(dlopen, c dl,,,)
+DL_LIBS=$LIBS
+AC_SUBST(DL_LIBS)
 
 #
 # OpenSC is needed by the SCdaemon - if it is not availbale we can only