X-Git-Url: http://git.meshlink.io/?p=catta;a=blobdiff_plain;f=configure.ac;h=fe23bf1edc72dfd2fa532359f110899b69ab12a8;hp=d760f340af3c5c40b76658830f07419f9239c5db;hb=HEAD;hpb=d973ebcca85078aeb8d6f790795b75c8a8b863b8 diff --git a/configure.ac b/configure.ac index d760f34..d5de5e1 100644 --- a/configure.ac +++ b/configure.ac @@ -50,6 +50,7 @@ AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_GCC_TRADITIONAL +AX_PTHREAD(,AC_MSG_ERROR([Missing POSIX Threads support])) if test x"$ac_cv_prog_cc_c99" = x"no"; then AC_MSG_ERROR([C99 support is required]) @@ -66,6 +67,13 @@ AC_CHECK_MEMBER([struct in_pktinfo.ipi_spec_dst], [], [[#include ]]) +# iOS stuff +AC_CHECK_DECL(__APPLE__) +AM_CONDITIONAL([APPLE], [ test "x$ac_cv_have_decl___APPLE__" = "xyes" ]) +if test "x$ac_cv_have_decl___APPLE__" = "xyes" ; then + CPPFLAGS="$CPPFLAGS -I`pwd`/src/compat/ios/include" +fi + # -fstack-protector AC_ARG_ENABLE([stack-protector], [AS_HELP_STRING([--disable-stack-protector], @@ -137,8 +145,6 @@ fi # libtool stuff LT_INIT([win32-dll]) -ACX_PTHREAD(,AC_MSG_ERROR([Missing POSIX Threads support])) - # # Check for netlink.h # @@ -254,7 +260,7 @@ test_gcc_flag() { # If using GCC specify some additional parameters if test "x$GCC" = "xyes" ; then - DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wold-style-definition -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -fdiagnostics-show-option -fno-strict-aliasing" + DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wold-style-definition -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wshadow -Wbad-function-cast -Wwrite-strings -fdiagnostics-show-option -fno-strict-aliasing" # when compiling for MingW, -Wmissing-noreturn is triggered a bunch of # times from autogenerated libtool wrappers, so leave it out on Windows. @@ -339,7 +345,6 @@ src/Makefile include/Makefile tests/Makefile examples/Makefile -m4/Makefile ]) AC_OUTPUT