X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=configure.ac;h=01df09db9800f74b478db3247feec12b5f16448e;hb=7027b5ba057bac04b83c891efd102155173b773b;hp=59255603f0872c7344aa66bf0fe38d284f0e602e;hpb=a4c3af8516b1384e2856904719e75cda5bf6d669;p=catta diff --git a/configure.ac b/configure.ac index 5925560..01df09d 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ AC_INIT([catta],[0.1],[]) AC_CONFIG_SRCDIR([src/server.c]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADERS([config.h]) -AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax]) +AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax subdir-objects]) AC_SUBST(PACKAGE_URL, [http://github.com/everbase/catta/]) @@ -55,6 +55,17 @@ if test x"$ac_cv_prog_cc_c99" = x"no"; then AC_MSG_ERROR([C99 support is required]) fi +# Windows stuff +AC_CHECK_DECL(_WIN32) +AM_CONDITIONAL([WINDOWS], [ test "x$ac_cv_have_decl__WIN32" = "xyes" ]) +if test "x$ac_cv_have_decl__WIN32" = "xyes" ; then + CPPFLAGS="$CPPFLAGS -I`pwd`/src/compat/windows/include" +fi +AC_CHECK_MEMBER([struct in_pktinfo.ipi_spec_dst], + AC_DEFINE([HAVE_IPI_SPEC_DST], [], [struct in_pktinfo has ipi_spec_dst member]), + [], + [[#include ]]) + # -fstack-protector AC_ARG_ENABLE([stack-protector], [AS_HELP_STRING([--disable-stack-protector], @@ -121,15 +132,10 @@ fi if test x"$enable_ssp" = x"yes"; then # Do this the long way so we don't call GCC_STACK_PROTECT_LIB twice GCC_STACK_PROTECT_CC - - AC_LANG_PUSH([C++]) - GCC_STACK_PROTECT_CXX - AC_LANG_POP([C++]) - # XXX: Update the enable_ssp value now for output later? fi # libtool stuff -AC_PROG_LIBTOOL +LT_INIT([win32-dll]) ACX_PTHREAD(,AC_MSG_ERROR([Missing POSIX Threads support])) @@ -271,7 +277,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h sys/ioctl.h sys/socket.h sys/ # Checks for library functions. AC_FUNC_SELECT_ARGTYPES -AC_CHECK_FUNCS([gethostname select socket uname strcasecmp gettimeofday strncasecmp strlcpy]) +AC_CHECK_FUNCS([gethostname select socket uname strcasecmp gettimeofday strncasecmp strlcpy fcntl]) AC_FUNC_CHOWN AC_FUNC_STAT @@ -335,14 +341,11 @@ AC_OUTPUT echo " ---{ $PACKAGE_NAME $VERSION }--- - prefix: ${prefix} - sysconfdir: ${sysconfdir} - localstatedir: ${localstatedir} - C Compiler: ${CC} - CFLAGS: ${CFLAGS} - Enable stack-smashing protection: ${enable_ssp} -" - -echo "\ + prefix: ${prefix} + sysconfdir: ${sysconfdir} + localstatedir: ${localstatedir} + C Compiler: ${CC} + CFLAGS: ${CFLAGS} + Enable stack-smashing protection: ${enable_ssp} Building tests: ${ENABLE_TESTS} "