From 7b14be5fc0a2113192b5cde768fa8ff238091dca Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Tue, 18 Nov 2003 20:02:37 +0000 Subject: [PATCH] OS X refinements git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5333 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/Makefile.in | 2 +- SWIG/configure.in | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/SWIG/Examples/Makefile.in b/SWIG/Examples/Makefile.in index 8a45c0564..cb692e9a1 100644 --- a/SWIG/Examples/Makefile.in +++ b/SWIG/Examples/Makefile.in @@ -24,7 +24,7 @@ TARGET = CC = @CC@ CXX = @CXX@ -CFLAGS = +CFLAGS = @PLATFLAGS@ prefix = @prefix@ exec_prefix= @exec_prefix@ SRCS = diff --git a/SWIG/configure.in b/SWIG/configure.in index 71b6e433e..2efb54a05 100644 --- a/SWIG/configure.in +++ b/SWIG/configure.in @@ -270,6 +270,16 @@ case $host in *) LIBTOOL_NO_UNDEFINED="-no-undefined";; esac +# Optional CFLAGS used to silence compiler warnings on some platforms. + +AC_SUBST(PLATFLAGS) +case $host in + *-*-darwin*) PLATFLAGS="-Wno-long-double";; + *) PLATFLAGS="";; +esac + + + echo "" echo "Checking for installed packages." echo "Note : None of the following packages are required to compile SWIG"