Configure.in fixed for crosscompiling

origin
stpohle 23 years ago
parent b6b9658a81
commit b7a916e2b1

@ -17,6 +17,8 @@ bomberclonedoc_DATA = \
EXTRA_DIST = bomberclone.prj $(bomberclonedoc_DATA) EXTRA_DIST = bomberclone.prj $(bomberclonedoc_DATA)
# Copy all the spec files. Of cource, only one is actually used. # Copy all the spec files. Of cource, only one is actually used.
dist-hook: dist-hook:
for specfile in *.spec; do \ for specfile in *.spec; do \

@ -19,12 +19,14 @@ dnl Check for SDL
<CONFIG_HEADERS_END> <CONFIG_HEADERS_END>
<CONFIG_CHARACTERISTICS_START> <CONFIG_CHARACTERISTICS_START>
case "$target" in case "$target" in
*-*-cygwin* | *-*-mingw32*) *cygwin* | *mingw32* | *mingw32msvc* )
CFLAGS="$CFLAGS" CFLAGS="$CFLAGS"
LIBS="$LIBS -liberty -lwsock32" LIBS="$LIBS -liberty -lwsock32"
;; ;;
esac esac
CFLAGS="$CFLAGS -Wall" CFLAGS="$CFLAGS -Wall"
echo "T $target H $host B $buid" >cross-target.txt
<CONFIG_CHARACTERISTICS_END> <CONFIG_CHARACTERISTICS_END>
<CONFIG_LIB_FUNCS_START> <CONFIG_LIB_FUNCS_START>
<CONFIG_LIB_FUNCS_END> <CONFIG_LIB_FUNCS_END>

@ -7,12 +7,17 @@ AC_INIT(configure.in)
AM_INIT_AUTOMAKE(bomberclone, 0.9.9) AM_INIT_AUTOMAKE(bomberclone, 0.9.9)
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AC_ISC_POSIX AC_ISC_POSIX
AC_PROG_CC AC_PROG_CC
AM_PROG_CC_STDC AM_PROG_CC_STDC
AC_HEADER_STDC AC_HEADER_STDC
dnl Checks for programs. dnl Checks for programs.
dnl Checks for libraries. dnl Checks for libraries.
dnl Check for SDL dnl Check for SDL
AM_PATH_SDL(1.1.0, AM_PATH_SDL(1.1.0,
@ -25,9 +30,11 @@ dnl Check for SDL
dnl Checks for header files. dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.
case "$target" in case "$target" in
*-*-cygwin* | *-*-mingw32*) *cygwin* | *mingw32* | *mingw32msvc* )
CFLAGS="$CFLAGS" CFLAGS="$CFLAGS"
LIBS="$LIBS -liberty -lwsock32" LIBS="$LIBS -liberty -lwsock32"
;; ;;
@ -35,9 +42,6 @@ esac
CFLAGS="$CFLAGS -Wall" CFLAGS="$CFLAGS -Wall"
dnl Checks for library functions.
dnl Checks for Additional stuffs.
dnl Set PACKAGE SOURCE DIR in config.h. dnl Set PACKAGE SOURCE DIR in config.h.
packagesrcdir=`cd $srcdir && pwd` packagesrcdir=`cd $srcdir && pwd`

@ -1,4 +1,4 @@
/* $Id: single.c,v 1.15 2003/05/17 17:11:27 stpohle Exp $ */ /* $Id: single.c,v 1.16 2003/05/23 21:17:30 stpohle Exp $ */
/* single player */ /* single player */
#include "basic.h" #include "basic.h"
@ -53,7 +53,7 @@ single_game_new ()
} }
bman.players[bman.p_nr].state = PSFM_alife; bman.players[bman.p_nr].state = PSFM_alife;
player_set_gfx (&bman.players[bman.p_nr], 0); player_set_gfx (&bman.players[bman.p_nr], 5);
bman.last_ex_nr = 1; bman.last_ex_nr = 1;
init_map_tileset (); init_map_tileset ();

Loading…
Cancel
Save