Added LWS_EXTERN to allow building a DLL.
[profile/ivi/libwebsockets.git] / configure.ac
index 00b69f4..e312485 100644 (file)
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.66])
-AC_INIT(libwebsockets, 0.2, andy@warmcat.com)
+AC_INIT(libwebsockets, 0.3, andy@warmcat.com)
 AC_CONFIG_SRCDIR([test-server/test-server.c])
 AC_CONFIG_HEADERS([config.h])
 
@@ -63,6 +63,19 @@ AM_CONDITIONAL(LIBCRYPTO, test x$libcrypto = xyes)
 #
 #
 #
+AC_ARG_ENABLE(x-google-mux,
+ [  --enable-x-google-mux  Build experimental x-google-mux],
+ [ x_google_mux=yes
+ ])
+if test "x$x_google_mux" = "xyes" ; then
+CFLAGS="$CFLAGS -DLWS_EXT_GOOGLE_MUX"
+fi
+AM_CONDITIONAL(EXT_GOOGLE_MUX, test x$x_google_mux = xyes)
+
+
+#
+#
+#
 AC_ARG_WITH([client-cert-dir],
 [AS_HELP_STRING([--with-client-cert-dir],[directory containing client certs, defaults to /etc/pki/tls/certs/])],
 [clientcertdir=$withval],
@@ -73,9 +86,20 @@ AC_SUBST([clientcertdir])
 AC_SUBST([CFLAGS])
 
 
+#
+#
+#
+AC_ARG_ENABLE(noping,
+ [  --enable-noping  Do not build ping test app, which has some unixy stuff in sources],
+ [ noping=yes
+ ])
+
+AM_CONDITIONAL(NOPING, test x$noping = xyes)
+
+
 
 # Checks for header files.
-AC_CHECK_HEADERS([fcntl.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h])
+AC_CHECK_HEADERS([zlib.h fcntl.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_TYPE_SIZE_T