From ad817469ca181cf37c41f478557b9699212649eb Mon Sep 17 00:00:00 2001 From: auria Date: Wed, 7 Oct 2009 12:45:29 +0000 Subject: [PATCH] Fixed (perhaps naively) build problem on mac git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4098 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- configure.ac | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 33d0cafc0..c81cc3873 100644 --- a/configure.ac +++ b/configure.ac @@ -214,7 +214,10 @@ dnl FIXME: this program when run prints out two lines (version numbers) to stdou echo "checking for irrlicht libraries." save_LIBS=$LIBS LIBS="$LIBS $irrlicht_LIBS $opengl_LIBS" -AC_TRY_RUN([ + +case "${host}" in +*-*-linux* ) + AC_TRY_RUN([ # include "irrlicht.h" int main() { irr::createDevice(irr::video::EDT_NULL); @@ -222,8 +225,23 @@ AC_TRY_RUN([ } ], , -irrlicht_LIBS="$irrlicht_LIBS -lXxf86vm" + irrlicht_LIBS="$irrlicht_LIBS -lXxf86vm" ) + ;; +*darwin*|*macosx*) + AC_TRY_RUN([ + # include "irrlicht.h" + int main() { + irr::createDevice(irr::video::EDT_NULL); + return 0; + } + ], + , + irrlicht_LIBS="$irrlicht_LIBS" + ) + ;; +esac + LIBS=$save_LIBS dnl ======================================================