[cowdancer] 02/02: configure.ac: Link against libdl when needed
James Clarke
jrtc27-guest at moszumanska.debian.org
Wed Sep 28 15:16:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
jrtc27-guest pushed a commit to branch autotools
in repository cowdancer.
commit c5b8989ebd4c371d541ca5b74bad98f9cbcaeecc
Author: James Clarke <jrtc27 at jrtc27.com>
Date: Wed Sep 28 16:16:18 2016 +0100
configure.ac: Link against libdl when needed
---
configure.ac | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 5f28305..760f706 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,7 @@ AM_INIT_AUTOMAKE
LT_INIT
AM_MAINTAINER_MODE
-# Check this is the right directory
+dnl Check this is the right directory
AC_CONFIG_SRCDIR([cowdancer.c])
AC_PROG_CC
@@ -17,6 +17,13 @@ AC_CHECK_LIB([ncurses],
[[LIBS="-lncurses${LIBS:+ $LIBS}"] AC_CHECK_HEADER([curses.h], [], AC_MSG_FAILURE([curses.h could not be found]))],
[AC_MSG_FAILURE([ncurses library could not be found])])
+dnl The dlerror() function is in the C library for *BSD and in
+dnl libdl on GLIBC-based systems
+AC_SEARCH_LIBS([dlerror],
+ [dl dld],
+ [],
+ [AC_MSG_ERROR([unable to find the dlerror() function])])
+
AC_CANONICAL_HOST
AC_MSG_CHECKING([whether qemubuilder is supported])
case "$host_os" in
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/cowdancer.git
More information about the Pbuilder-maint
mailing list