X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=configure.ac;h=07eb2497511bac1c16e66ecf2a910b49d19c95a5;hb=08ac450b42b7533e97c02c02bbbef8946b9582fb;hp=cabd87bfdb8f48c0e7b6414c61a7e42662a22e87;hpb=63d3e3348dcd2178196634ede35b23ffe3a2c50a;p=catta diff --git a/configure.ac b/configure.ac index cabd87b..07eb249 100644 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,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], @@ -254,7 +261,7 @@ test_gcc_flag() { # If using GCC specify some additional parameters if test "x$GCC" = "xyes" ; then - DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -fdiagnostics-show-option -Wno-cast-qual -fno-strict-aliasing" + 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" # when compiling for MingW, -Wmissing-noreturn is triggered a bunch of # times from autogenerated libtool wrappers, so leave it out on Windows. @@ -339,7 +346,6 @@ src/Makefile include/Makefile tests/Makefile examples/Makefile -m4/Makefile ]) AC_OUTPUT