ToastFreeware
/
gregoa
/
bti.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
build system: use AC_SEARCH_LIBS rather than assuming -ldl is needed.
[gregoa/bti.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
a415f3f
..
bc2bb3a
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-23,9
+23,7
@@
PKG_CHECK_MODULES(LIBPCRE, libpcre)
PKG_CHECK_MODULES([LIBCURL], [libcurl])
PKG_CHECK_MODULES([XML], [libxml-2.0])
-# explicitly link DSOs
-LIBS="$LIBS -ldl"
-
+AC_SEARCH_LIBS([dlopen], [dl])
dnl Checks for header files.
#AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h string.h unistd.h])