From 320dfb91099df3dc5eddbef610ff04bcadfcfe2c Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 7 Dec 2007 11:33:06 +0000 Subject: applied patch from Michael Biebl to finally fix the -ldl cross-platform issue --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4212512a..570e77ee 100644 --- a/configure.ac +++ b/configure.ac @@ -31,10 +31,17 @@ esac # Checks for libraries. save_LIBS=$LIBS -AC_SEARCH_LIBS(clock_gettime, rt, [rt_libs="-lrt" AC_SUBST(rt_libs)]) -AC_SEARCH_LIBS(dlopen, dl, [dl_libs="-ldl" AC_SUBST(dl_libs)]) +LIBS= +AC_SEARCH_LIBS(clock_gettime, rt) +rt_libs=$LIBS +LIBS= +AC_SEARCH_LIBS(dlopen, dl) +dl_libs=$LIBS LIBS=$save_LIBS +AC_SUBST(rt_libs) +AC_SUBST(dl_libs) + # Checks for header files. AC_HEADER_RESOLV AC_HEADER_STDC -- cgit