Changeset 614 for abuse/trunk/configure.ac
- Timestamp:
- May 9, 2011, 12:55:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/configure.ac
r610 r614 20 20 fi 21 21 22 dnl Figure out where the datafiles will be23 EXPDATADIR="-DEXPDATADIR=\\\"$datadir/games/abuse\\\""24 AC_SUBST(EXPDATADIR)25 26 22 AC_ARG_ENABLE(debug, 27 23 [ --enable-debug build debug versions of the game (default no)]) … … 31 27 [ --disable-nonfree disable non-free data (default no)]) 32 28 33 dnl Checks for libraries 29 AC_ARG_WITH(assetsdir, 30 [ --with-assetsdir=DIR override default game data directory]) 31 32 dnl Figure out where the datafiles will be 33 if test "x${with_assetsdir}" = x; then 34 with_assetsdir='$(datadir)/games/abuse' 35 fi 36 AC_SUBST([assetsdir], [$with_assetsdir]) 37 38 dnl Checks for libraries 34 39 dnl Do we need to link against something for X shared memory support? 35 AC_CHECK_LIB(Xext,XShmAttach,:,[ 36 AC_CHECK_LIB(XextSam,XShmAttach,LIBS="$LIBS -lXextSam",,$X_LIBS -lX11 -lXext) 37 ],$X_LIBS -lX11) 40 AC_CHECK_LIB(Xext, XShmAttach, :, 41 [AC_CHECK_LIB(XextSam, XShmAttach, LIBS="$LIBS -lXextSam", :, 42 $X_LIBS -lX11 -lXext)], 43 $X_LIBS -lX11) 38 44 39 45 dnl Checks for Solaris compatibility 40 AC_CHECK_LIB(m, pow,LIBS="$LIBS -lm")41 AC_CHECK_LIB(socket, socket,LIBS="$LIBS -lsocket")42 AC_CHECK_LIB(nsl, gethostbyname,LIBS="$LIBS -lnsl")46 AC_CHECK_LIB(m, pow, LIBS="$LIBS -lm") 47 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") 48 AC_CHECK_LIB(nsl, gethostbyname, LIBS="$LIBS -lnsl") 43 49 44 50 dnl Check for SDL … … 114 120 #else 115 121 #include <GL/gl.h> 116 #endif 117 ],[ 118 ],[ 119 have_opengl=yes 120 ]) 122 #endif], 123 [], 124 [have_opengl=yes]) 121 125 AC_MSG_RESULT($have_opengl) 122 if test x$have_opengl= xyes; then126 if test "x$have_opengl" = xyes; then 123 127 CFLAGS="$CFLAGS -DHAVE_OPENGL" 124 128 CXXFLAGS="$CXXFLAGS -DHAVE_OPENGL" … … 140 144 echo " 141 145 ------ Configuration for $PACKAGE $VERSION ------ 142 Compiler: ${CC} (version `${CC} --version`) 143 Install prefix: $prefix 144 SDL version: `sdl-config --version` 145 OpenGL support: $have_opengl 146 Compiler: ${CC} (`${CC} --version | head -n 1`) 147 Install prefix: ${prefix} 148 Assets directory: ${with_assetsdir} 149 SDL version: `sdl-config --version` 150 OpenGL support: ${have_opengl} 146 151 147 152 Now type 'make' to build $PACKAGE.
Note: See TracChangeset
for help on using the changeset viewer.