summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/configure.in33
1 files changed, 26 insertions, 7 deletions
diff --git a/server/configure.in b/server/configure.in
index dc7856c..068d8c0 100644
--- a/server/configure.in
+++ b/server/configure.in
@@ -34,6 +34,28 @@ fi
#AM_CONDITIONAL(HAVE_INOTIFY, [test "$inotify_support" = "yes"])
dnl ======================
+dnl Init pkg-config
+dnl ======================
+PKG_PROG_PKG_CONFIG(0.23)
+
+dnl ======================
+dnl Compile with praxisd support
+dnl ======================
+AC_ARG_WITH(praxisd,
+ [ --with-praxisd build with praxisd support (default=yes)],
+ [],
+ [with_praxisd=yes])
+if test x$with_praxisd == xno; then
+ AC_MSG_WARN([*** Building without praxisd support!])
+else
+ AC_DEFINE_UNQUOTED(WITH_PRAXISD, , [The project is configured to use praxisd])
+ dnl ======================
+ dnl Check for cURL library
+ dnl ======================
+ PKG_CHECK_MODULES(CURL, libcurl >= 7.9.5)
+fi
+
+dnl ======================
dnl Compile with artefact support
dnl ======================
AC_ARG_WITH(artefact,
@@ -93,8 +115,6 @@ else
dnl ======================
fi
-PKG_CHECK_MODULES(OPENSSL, openssl >= 0.9.7)
-
AC_PROG_CXX
AC_PROG_LIBTOOL
@@ -168,6 +188,10 @@ dnl Check for libmicrohttpd
dnl ======================
PKG_CHECK_MODULES(HTTPD, libmicrohttpd >= 0.4.4)
+dnl ======================
+dnl Compile with openssl
+dnl ======================
+PKG_CHECK_MODULES(OPENSSL, openssl >= 0.9.7)
dnl ======================
dnl Check for eXpat library
@@ -219,11 +243,6 @@ LIBS="$tmp_LIBS"
AC_SUBST(PTHREAD_CFLAGS)
AC_SUBST(PTHREAD_LIBS)
-dnl ======================
-dnl Check for cURL library
-dnl ======================
-PKG_CHECK_MODULES(CURL, libcurl >= 7.9.5)
-
AC_OUTPUT(
Makefile
src/Makefile