-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GameShell port to autotools build
Restructure a bit Notify the user before building, when a platform has special handling
- Loading branch information
1 parent
01fee84
commit 04fccb2
Showing
3 changed files
with
37 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,40 @@ | ||
AC_INIT([openjazz], [0], [https://github.com/AlisterT/openjazz/issues], [openjazz], [http://www.alister.eu/jazz/oj/]) | ||
|
||
AC_CONFIG_AUX_DIR([build-aux]) | ||
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax no-dist-gzip dist-xz]) | ||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
|
||
AC_CANONICAL_HOST | ||
AC_PROG_CXX | ||
AC_PROG_CXXCPP | ||
PKG_PROG_PKG_CONFIG | ||
|
||
PKG_CHECK_MODULES([SDL], [sdl]) | ||
PKG_CHECK_MODULES([LIBXMP], [libxmp], [AC_DEFINE(USE_XMP, [1], [Enable XMP Music])], [ | ||
PKG_CHECK_MODULES([LIBMODPLUG], [libmodplug], [AC_DEFINE(USE_MODPLUG, [1], [Enable ModPlug Music])], [ | ||
AC_MSG_WARN([No music library found. OpenJazz will run, but music will be silent.]) | ||
]) | ||
]) | ||
PKG_CHECK_MODULES([ZLIB], [zlib]) | ||
|
||
AS_CASE([$host], | ||
[*-*-mingw*], [NET_LIBS="-lws2_32"], | ||
[*-haiku*], [HOST_CFLAGS="-D_BSD_SOURCE" HOST_LIBS="-lbe" NET_LIBS="-lnetwork"], | ||
[arm-none-linux-gnueabi], [HOST_CFLAGS="-DPANDORA -fsigned-char" HOST_LIBS="-lts"], | ||
[arm-gph-linux-gnueabi], [HOST_CFLAGS="-DCAANOO -fsigned-char"], | ||
[arm-openwiz-linux-gnu], [HOST_CFLAGS="-DWIZ -fsigned-char"], | ||
[arm-open2x-linux], [HOST_CFLAGS="-DGP2X -fsigned-char"], | ||
[mipsel-linux*], [HOST_CFLAGS="-DDINGOO"]) | ||
[*-*-mingw*], [NET_LIBS="-lws2_32" OJ_HOST="MinGW (Windows)"], | ||
[*-haiku*], [HOST_CFLAGS="-D_BSD_SOURCE" HOST_LIBS="-lbe" NET_LIBS="-lnetwork" OJ_HOST="Haiku"], | ||
[arm-none-linux-gnueabi], [HOST_CFLAGS="-DPANDORA -fsigned-char" HOST_LIBS="-lts" OJ_HOST="Pandora"], | ||
[arm-gph-linux-gnueabi], [HOST_CFLAGS="-DCAANOO -fsigned-char" OJ_HOST="GP2X Caanoo"], | ||
[arm-openwiz-linux-gnu], [HOST_CFLAGS="-DWIZ -fsigned-char" OJ_HOST="GP2X Wiz"], | ||
[arm-open2x-linux], [HOST_CFLAGS="-DGP2X -fsigned-char" OJ_HOST="GP2X"], | ||
[mipsel-linux*], [HOST_CFLAGS="-DDINGOO" OJ_HOST="Dingoo"], | ||
[armv7l-unknown-linux-gnueabihf], [HOST_CFLAGS="-DGAMESHELL" OJ_HOST="GameShell"]) | ||
AC_SUBST(HOST_CFLAGS) | ||
AC_SUBST(HOST_LIBS) | ||
AC_SUBST(NET_LIBS) | ||
|
||
AC_CONFIG_FILES([Makefile]) | ||
AC_OUTPUT | ||
|
||
AS_IF([test "x$OJ_HOST" != "x"],[ | ||
echo "" | ||
echo "Detected Platform: $OJ_HOST. If this is wrong, please open a bug report!" | ||
echo "" | ||
]) |