updated STK build system to work with irrlicht on mac. nothing should be broken on other systems hopefully
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3215 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
10
configure.ac
10
configure.ac
@@ -73,7 +73,7 @@ AC_ARG_ENABLE(irrlicht, [AS_HELP_STRING(--enable-irrlicht,
|
||||
[enable irrlicht compilation (still early pre-alpha)])],,
|
||||
enable_irrlicht=false)
|
||||
if test x$enable_irrlicht = xyes; then
|
||||
AC_DEFINE([HAVE_IRRLICHT], [], [enable irrlicht compilation])
|
||||
AC_DEFINE([HAVE_IRRLICHT], [1], [enable irrlicht compilation])
|
||||
SUMMARY="$SUMMARY\nCompiling for irrlicht - be warned, pre-alpha!!"
|
||||
fi
|
||||
|
||||
@@ -277,7 +277,7 @@ if test x$enable_irrlicht = xyes; then
|
||||
AC_ARG_WITH(irrlicht, [AS_HELP_STRING(--with-irrlicht=PREFIX,
|
||||
[specify the prefix path to irrlicht])])
|
||||
if test "x$with_irrlicht" != "x" ; then
|
||||
CPPFLAGS="${CPPFLAGS} -I $with_irrlicht/include"
|
||||
CPPFLAGS="${CPPFLAGS} -I$with_irrlicht/include/irrlicht"
|
||||
fi
|
||||
AC_CHECK_HEADER(irrlicht.h, have_irrlicht_hdr=yes)
|
||||
dnl how to use irr namespace here?? g++: 'irr' has not been declared
|
||||
@@ -292,6 +292,12 @@ if test x$enable_irrlicht = xyes; then
|
||||
;;
|
||||
esac
|
||||
|
||||
case "${host}" in
|
||||
*darwin*|*macosx*)
|
||||
irrlicht_LIBS="-L/$with_irrlicht/lib/ -lIrrlicht"
|
||||
;;
|
||||
esac
|
||||
|
||||
fi
|
||||
|
||||
dnl ======================================================
|
||||
|
||||
@@ -2556,6 +2556,10 @@
|
||||
GCC_MODEL_TUNING = "";
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_LABEL = YES;
|
||||
GCC_WARN_UNUSED_PARAMETER = YES;
|
||||
GCC_WARN_UNUSED_VALUE = YES;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
/usr/local/include,
|
||||
"$(HEADER_SEARCH_PATHS_QUOTED_1)",
|
||||
|
||||
Reference in New Issue
Block a user