Attempt at supporting finding irrlicht in both /usr and /usr/local (could not test fully, please report any breakage...)

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4480 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-01-17 20:12:34 +00:00
parent fd1c79aa4a
commit eabc022dda

View File

@ -191,13 +191,24 @@ if test "x$with_irrlicht" != "x" ; then
AC_MSG_ERROR([Can't find irrlicht in $with_irrlicht.])
fi
else
# check in /usr/local
CPPFLAGS_save=CPPFLAGS
CPPFLAGS="${CPPFLAGS} -I /usr/local/include/irrlicht"
AC_CHECK_HEADER(irrlicht.h, have_irrlicht_hdr=yes)
with_irrlicht="/usr/local"
# if it's not found there, try /usr instead
if test x$have_irrlicht_hdr != xyes; then
AC_MSG_ERROR([Can't find irrlicht installation, use --with-irrlicht...])
CPPFLAGS="${CPPFLAGS_save} -I /usr/include/irrlicht"
AC_CHECK_HEADER(irrlicht.h, have_irrlicht_hdr=yes)
with_irrlicht="/usr"
if test x$have_irrlicht_hdr != xyes; then
AC_MSG_ERROR([Can't find irrlicht installation in standard prefixes, use --with-irrlicht...])
fi
fi
fi
case "${host}" in
*-*-linux* )
irrlicht_LIBS="-L/$with_irrlicht/lib/Linux -lIrrlicht"