]> git.meshlink.io Git - catta/blobdiff - configure.ac
Disable -Wcast-qual and -Wcast-align.
[catta] / configure.ac
index d760f340af3c5c40b76658830f07419f9239c5db..fe23bf1edc72dfd2fa532359f110899b69ab12a8 100644 (file)
@@ -66,6 +66,13 @@ AC_CHECK_MEMBER([struct in_pktinfo.ipi_spec_dst],
     [],
     [[#include <netinet/in.h>]])
 
+# 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 -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 +346,6 @@ src/Makefile
 include/Makefile
 tests/Makefile
 examples/Makefile
-m4/Makefile
 ])
 AC_OUTPUT