From 97e9cb4e6087a9b0240be6df6c160f5e5bf02adf Mon Sep 17 00:00:00 2001 From: Moritz Schulte Date: Tue, 27 Jul 2004 11:28:10 +0000 Subject: [PATCH] 2004-07-27 Moritz Schulte * configure.ac: Check for dlopen in libc and libdl, substitute DL_LIBS accordingly. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index bc9f9663d..ca6eaf14f 100644 --- a/configure.ac +++ b/configure.ac @@ -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