1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(WvStreams, 4.1, wvstreams-dev@nit.ca, wvstreams)
4 AC_ARG_WITH(popt, AC_HELP_STRING([--with-popt], [popt (required)]))
5 AC_ARG_WITH(popt, AC_HELP_STRING([--with-zlib], [zlib (required)]))
7 if test "$with_popt" != "no" && test "$with_popt" != ""; then
8 POPT_CFLAGS="/I`cygpath -m $with_popt`"
9 POPT_LIBS="`cygpath -m $with_popt/popt.lib`"
11 AC_MSG_WARN([Popt is missing.])
12 missing_required="$missing_required popt"
15 if test "$with_zlib" != "no" && test "$with_zlib" != ""; then
16 ZLIB_CFLAGS="/I`cygpath -m $with_zlib`"
17 ZLIB_LIBS="`cygpath -m $with_zlib/zlib.lib`"
19 AC_MSG_WARN([zlib is missing.])
20 missing_required="$missing_required zlib"
23 if test "$with_xplc" != "no" && test "$with_xplc" != ""; then
24 XPLC_CFLAGS="/I`cygpath -m $with_xplc/include`"
25 XPLC_LIBS="`cygpath -m $with_xplc/xplc.lib`"
27 AC_MSG_WARN([XPLC is missing.])
28 missing_required="$missing_required xplc"
31 if test "$with_openssl" != "no" && test "$with_openssl" != ""; then
32 OPENSSL_CFLAGS="/I`cygpath -m $with_openssl/inc32`"
33 OPENSSL_LIBS="`cygpath -m $with_openssl/out32/ssl.lib` \
34 `cygpath -m $with_openssl/out32/crypto.lib`"
36 AC_MSG_WARN([openssl is missing.])
37 missing_required="$missing_required openssl"
40 if test -n "$missing_required"; then
41 AC_MSG_ERROR([Required dependencies missing:$missing_required])
44 DIRENT_LIBS="`cygpath -m -a ./Win32WvStreams/dirent.lib`"
52 INCFLAGS="$POPT_CFLAGS $ZLIB_CFLAGS $XPLC_CFLAGS $OPENSSL_CFLAGS \
53 /I`cygpath -m -a ./include` /I`cygpath -m -a ./Win32WvStreams` \
54 /I`cygpath -m -a ./Win32WvStreams/libwvstreams`"
55 DEPFLAGS="-I`cygpath -u -a ./include` -I`cygpath -u -a ./Win32WvStreams` \
56 -I`cygpath -u -a ./Win32WvStreams/libwvstreams`"
57 CPPFLAGS="/nologo /FD /EHsc /MD /D \"strcasecmp=_stricmp\" /D \"strncasecmp=_strnicmp\""
59 ac_libs="$POPT_LIBS $ZLIB_LIBS $XPLC_LIBS $OPENSSL_LIBS $DIRENT_LIBS \
60 ole32.lib rpcrt4.lib wsock32.lib gdi32.lib /MD /link /NODEFAULTLIB:LIBC"
61 COMPILER_STANDARD=msvc
76 AC_SUBST(COMPILER_STANDARD)
77 AC_CONFIG_FILES(config.mk)
78 AC_CONFIG_HEADERS(include/wvautoconf.h)