]> code.citadel.org Git - citadel.git/blobdiff - webcit/configure.in
* Added a skeleton "setup" program to the tree. It does not work yet.
[citadel.git] / webcit / configure.in
index 73aa21989d3c602826cdd00b4c7440c11033ec42..f7720f4e46b2d81648900443b49ade3fd2188521 100644 (file)
@@ -5,6 +5,7 @@ AC_INIT(webserver.c)
 AC_CANONICAL_HOST
 
 AC_ARG_WITH(with_libical, [  --with-libical          use libical calendaring library])
+AC_ARG_WITH(with_newt, [  --with-newt          use newt window library])
 
 dnl Set some system-specific variables which are OK to set before compiler
 dnl checks:
@@ -108,5 +109,22 @@ main() {
        )
 fi
 
+dnl Checks for the newt window library.
+if test "x$with_newt" != xno ; then
+       AC_CHECK_HEADERS(newt.h,
+               [AC_CHECK_LIB(newt, newtInit,
+                       [ok_newt=yes],,
+       )])
+fi
+
+if test "x$ok_newt" = xyes ; then
+       SETUP_LIBS="-lnewt $SETUP_LIBS"
+       AC_DEFINE(HAVE_NEWT)
+fi
+
+
+
+AC_SUBST(SETUP_LIBS)
+
 AC_OUTPUT(Makefile)