summaryrefslogtreecommitdiffstats
path: root/server/external/libpopt.m4
diff options
context:
space:
mode:
Diffstat (limited to 'server/external/libpopt.m4')
-rw-r--r--server/external/libpopt.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/server/external/libpopt.m4 b/server/external/libpopt.m4
index c5d12550a..e59b2610e 100644
--- a/server/external/libpopt.m4
+++ b/server/external/libpopt.m4
@@ -3,5 +3,7 @@ AC_SUBST(POPT_OBJ)
AC_SUBST(POPT_LIBS)
AC_SUBST(POPT_CFLAGS)
-AC_CHECK_HEADERS(popt.h)
-AC_CHECK_LIB(popt, poptGetContext, [ POPT_LIBS="-lpopt" ])
+AC_CHECK_HEADERS([popt.h],
+ [AC_CHECK_LIB(popt, poptGetContext, [ POPT_LIBS="-lpopt" ], [AC_MSG_ERROR([POPT must support poptGetContext])])],
+ [AC_MSG_ERROR([POPT development libraries not installed])]
+)