Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2015-01-06 19:56:11 +0000
committerStijn Buys <ingar@osirion.org>2015-01-06 19:56:11 +0000
commitbea1b04f96502741f1e3b0f0c4c7fe506306baa0 (patch)
tree9183acf9bb44081cf373ad8c839eee533d9338f0
parent7880a114b4619d7258183b87a4e6427f9402393f (diff)
Corrected SDL2 variable names in configure.
-rw-r--r--configure.ac28
1 files changed, 14 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac
index 8ded43b..911ae81 100644
--- a/configure.ac
+++ b/configure.ac
@@ -425,7 +425,7 @@ else
dnl
LIBS_save="$LIBS"
- LIBS="$LIBS -lvorbis -l ogg"
+ LIBS="$LIBS -lvorbis -logg"
AC_CHECK_HEADER(vorbis/vorbisfile.h,
[],
@@ -447,34 +447,34 @@ else
AC_SUBST(LIBVORBISFILE_LIBS)
dnl ---------------------------------------------------------------
- dnl SDL
+ dnl SDL2
dnl
AC_MSG_CHECKING([looking for SDL2])
- KDE_FIND_PATH(sdl2-config, LIBSDL_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [
+ KDE_FIND_PATH(sdl2-config, LIBSDL2_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [
AC_MSG_ERROR([SDL2 not found])
])
- if test -n "$LIBSDL_CONFIG"; then
- LIBSDL_LIBS="`$LIBSDL_CONFIG --libs`"
- LIBSDL_RPATH=
- for args in $LIBSDL_LIBS; do
+ if test -n "$LIBSDL2_CONFIG"; then
+ LIBSDL2_LIBS="`$LIBSDL2_CONFIG --libs`"
+ LIBSDL2_RPATH=
+ for args in $LIBSDL2_LIBS; do
case $args in
-L*)
- LIBSDL_RPATH="$LIBSDL_RPATH $args"
+ LIBSDL2_RPATH="$LIBSDL2_RPATH $args"
;;
esac
done
- LIBSDL_RPATH=`echo $LIBSDL_RPATH | sed -e "s/-L/-R/g"`
- LIBSDL_CFLAGS="`$LIBSDL_CONFIG --cflags`"
+ LIBSDL2_RPATH=`echo $LIBSDL2_RPATH | sed -e "s/-L/-R/g"`
+ LIBSDL2_CFLAGS="`$LIBSDL2_CONFIG --cflags`"
fi
AC_MSG_RESULT($HAVE_LIBSDL)
- AC_SUBST(LIBSDL_LIBS)
- AC_SUBST(LIBSDL_CFLAGS)
- AC_SUBST(LIBSDL_RPATH)
+ AC_SUBST(LIBSDL2_LIBS)
+ AC_SUBST(LIBSDL2_CFLAGS)
+ AC_SUBST(LIBSDL2_RPATH)
BUILD_CLIENT=yes
AC_DEFINE_UNQUOTED(BUILD_CLIENT, 1, [Define this to build the client])
@@ -561,7 +561,7 @@ curses ............. $HAVE_CURSES
build client ....... $BUILD_CLIENT])
if test "x$BUILD_CLIENT" = xyes; then
-AC_MSG_RESULT([SDL2 ............... $LIBSDL_LIBS
+AC_MSG_RESULT([SDL2 ............... $LIBSDL2_LIBS
opengl ............. $GL_LIBS
openal ............. $AL_LIBS]
vorbisfile ......... $LIBVORBISFILE_LIBS)