diff options
-rw-r--r-- | configure.ac | 7 |
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( |