summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Wragg <dpw@lshift.net>2010-02-23 13:58:04 +0000
committerDavid Wragg <dpw@lshift.net>2010-02-23 13:58:04 +0000
commitf59fc25686cae12d10084167336cd85526c13fcd (patch)
tree8a773c9a5fe88ae0109a8cc34bb6ce63c50f6a12 /configure.ac
parentd30240f368ceafa3b201ce4feee8e37b4da84da7 (diff)
downloadrabbitmq-c-github-ask-f59fc25686cae12d10084167336cd85526c13fcd.tar.gz
Add a configure check to make sure that we have the popt.h headerbug22390
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4b653ba..30b7d05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,6 +64,8 @@ AC_SUBST(AMQP_CODEGEN_DIR)
AC_SUBST(AMQP_SPEC_JSON_PATH)
AC_SUBST(PYTHON)
+# Check for libpopt, which we need to build the tools
+
AC_ARG_WITH([popt],
[AS_HELP_STRING([--with-popt], [use the popt library. Needed for tools])],
[],
@@ -80,6 +82,11 @@ AS_IF([test "x$with_popt" != xno],
fi
])])
+AS_IF([test "x$LIBPOPT" != "x"],
+ [AC_CHECK_HEADER([popt.h], [],
+ [AC_MSG_FAILURE([You have libpopt, but could not find the popt.h header])])
+ ])
+
AM_CONDITIONAL(TOOLS, test "x$LIBPOPT" != "x")
AC_OUTPUT(