Slight fixes to make FreeBSD compilation easier

This commit is contained in:
Koutakun 2019-04-18 22:01:33 -03:00
commit f250788427
2 changed files with 43 additions and 0 deletions

View file

@ -150,6 +150,18 @@ case "$host" in
exit -1])
build_linux="yes"
;;
*-*-freebsd*)
CFLAGS="$CFLAGS -I/usr/local/include"
CXXFLAGS="$CXXFLAGS -I/usr/local/include"
LDFLAGS="$LDFLAGS -L/usr/local/lib"
AC_CHECK_LIB([GL], [glGetError], [], \
[echo "You need to install the OpenGL library."
exit -1])
AC_CHECK_LIB([openal], [alGetError], [], \
[echo "You need to install the OpenAL library."
exit -1])
build_other="yes"
;;
*)
AC_CHECK_LIB([GL], [glGetError], [], \
[echo "You need to install the OpenGL library."