From c4a0f86a63acd899dbf29c03100c4735011ceeac Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sat, 9 Oct 2010 14:52:13 +0200 Subject: Fail at configure time rather than build time when missing a library. --- lib/configure.ac | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/configure.ac b/lib/configure.ac index 766f7f8..5ae729f 100644 --- a/lib/configure.ac +++ b/lib/configure.ac @@ -12,9 +12,12 @@ AC_PROG_LIBTOOL AC_PROG_CC # Checks for libraries. -AC_CHECK_LIB([confuse], [cfg_init]) -AC_CHECK_LIB([event_core], [event_get_version]) -AC_CHECK_LIB([freeradius-radius], [rad_alloc]) +AC_CHECK_LIB([confuse], [cfg_init],, + AC_MSG_ERROR([required library libconfuse not found])) +AC_CHECK_LIB([event_core], [event_get_version],, + AC_MSG_ERROR([required library libevent_core not found])) +AC_CHECK_LIB([freeradius-radius], [rad_alloc],, + AC_MSG_ERROR([required library libfreeradius-radius not found])) # Checks for header files. AC_CHECK_HEADERS([netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h unistd.h]) -- cgit v1.1