Lines 1-50
Link Here
|
1 |
--- configure.ac.orig |
1 |
--- configure.ac.orig |
2 |
+++ configure.ac |
2 |
+++ configure.ac |
3 |
@@ -77,13 +77,13 @@ |
3 |
@@ -83,7 +83,7 @@ |
4 |
MAIN_EXE='Vavoom$(EXEEXT)' |
|
|
5 |
|
4 |
|
6 |
if test "x$with_allegro" = "xyes"; then |
5 |
if test "x$with_allegro" = "xyes"; then |
7 |
- AC_PATH_PROG([allegro_config], [allegro-config]) |
6 |
if test "x$with_allegro_config" = "x"; then |
8 |
+ AC_PATH_PROG([allegro_config], [allegro-config], [%%ALLEGRO_CONFIG%%]) |
7 |
- AC_PATH_PROG([allegro_config], [allegro-config]) |
9 |
if test "x$allegro_config" = "x"; then |
8 |
+ AC_PATH_PROG([allegro_config], [allegro-config], [%%ALLEGRO_CONFIG%%]) |
10 |
AC_MSG_ERROR(['cannot find Allegro instalation']) |
9 |
if test "x$allegro_config" = "x"; then |
11 |
fi |
10 |
AC_MSG_ERROR(['cannot find Allegro instalation']) |
|
|
11 |
fi |
12 |
@@ -93,7 +93,7 @@ |
12 |
else |
13 |
else |
13 |
if test "x$with_sdl" = "xyes"; then |
14 |
if test "x$with_sdl" = "xyes"; then |
14 |
- AC_PATH_PROG([sdl_config], [sdl-config]) |
15 |
if test "x$with_sdl_config" = "x"; then |
15 |
+ AC_PATH_PROG([sdl_config], [sdl-config], [%%SDL_CONFIG%%]) |
16 |
- AC_PATH_PROG([sdl_config], [sdl-config]) |
16 |
if test "x$sdl_config" = "x"; then |
17 |
+ AC_PATH_PROG([sdl_config], [sdl-config], [%%SDL_CONFIG%%]) |
17 |
AC_MSG_ERROR(['cannot find SDL instalation']) |
18 |
if test "x$sdl_config" = "x"; then |
18 |
fi |
19 |
AC_MSG_ERROR(['cannot find SDL instalation']) |
19 |
@@ -100,19 +100,19 @@ |
20 |
fi |
20 |
if test "x$allegro_config" != "x"; then |
21 |
@@ -122,13 +122,13 @@ |
|
|
22 |
AC_MSG_NOTICE([Using Allegro]) |
21 |
MAIN_PLATFORM='UNIX_ALLEGRO' |
23 |
MAIN_PLATFORM='UNIX_ALLEGRO' |
22 |
MAIN_CFLAGS="`${allegro_config} --cflags`" |
24 |
MAIN_CFLAGS="`${allegro_config} --cflags`" |
23 |
- MAIN_LIBS="`${allegro_config} --libs` -lpng -lz -lm -lstdc++" |
25 |
- MAIN_LIBS="`${allegro_config} --libs` -lpng -lz -lstdc++" |
24 |
+ MAIN_LIBS="`${allegro_config} --libs` -lpng -lz -lm -lstdc++ -liconv" |
26 |
+ MAIN_LIBS="`${allegro_config} --libs` -lpng -lz -lstdc++ -liconv" |
25 |
else |
27 |
else |
26 |
if test "x$sdl_config" != "x"; then |
28 |
if test "x$sdl_config" != "x"; then |
|
|
29 |
AC_MSG_NOTICE([Using SDL]) |
27 |
MAIN_PLATFORM='UNIX_SDL' |
30 |
MAIN_PLATFORM='UNIX_SDL' |
28 |
MAIN_CFLAGS="`${sdl_config} --cflags`" |
31 |
MAIN_CFLAGS="`${sdl_config} --cflags`" |
29 |
- MAIN_LIBS="-lSDL_mixer `${sdl_config} --libs` -lpng -lz -lm -lstdc++" |
32 |
- MAIN_LIBS="-lSDL_mixer `${sdl_config} --libs` -lpng -lz -lstdc++" |
30 |
+ MAIN_LIBS="-lSDL_mixer `${sdl_config} --libs` -lpng -lz -lm -lstdc++ -liconv" |
33 |
+ MAIN_LIBS="-lSDL_mixer `${sdl_config} --libs` -lpng -lz -lstdc++ -liconv" |
31 |
fi |
34 |
fi |
32 |
fi |
35 |
fi |
33 |
OBJ_FILES="$OBJ_FILES \$(SYS_OBJS_${MAIN_PLATFORM})" |
36 |
OBJ_FILES="$OBJ_FILES \$(SYS_OBJS_${MAIN_PLATFORM})" |
34 |
|
37 |
@@ -246,7 +246,7 @@ |
35 |
AC_CHECK_HEADER([linux/cdrom.h], [ |
38 |
AC_ARG_WITH([mikmod-config], AS_HELP_STRING([--with-mikmod-config], [Set MikMod config script])) |
36 |
OBJ_FILES="$OBJ_FILES \$(CDAUDIO_OBJ_LINUX)" |
|
|
37 |
- ], [AC_CHECK_HEADER([sys/cdrom.h], [ |
38 |
+ ], [AC_CHECK_HEADER([sys/cdio.h], [ |
39 |
OBJ_FILES="$OBJ_FILES \$(CDAUDIO_OBJ_BSD)" |
40 |
])]) |
41 |
|
42 |
@@ -166,7 +166,7 @@ |
43 |
|
44 |
AC_ARG_WITH([mikmod], AS_HELP_STRING([--with-mikmod], [Enable MikMod support])) |
45 |
if test "x$with_mikmod" != "xno"; then |
39 |
if test "x$with_mikmod" != "xno"; then |
46 |
- AC_PATH_PROG([LIBMIKMOD_CONFIG], [libmikmod-config]) |
40 |
if test "x$with_mikmod_config" = "x"; then |
47 |
+ AC_PATH_PROG([LIBMIKMOD_CONFIG], [libmikmod-config], [%%MIKMOD_CONFIG%%]) |
41 |
- AC_PATH_PROG([LIBMIKMOD_CONFIG], [libmikmod-config]) |
48 |
if test "x$LIBMIKMOD_CONFIG" != "x"; then |
42 |
+ AC_PATH_PROG([LIBMIKMOD_CONFIG], [libmikmod-config], [%%MIKMOD_CONFIG%%]) |
49 |
OBJ_FILES="$OBJ_FILES \$(MIKMOD_OBJS)" |
43 |
else |
50 |
MAIN_CFLAGS="$MAIN_CFLAGS `$LIBMIKMOD_CONFIG --cflags`" |
44 |
mikmod_config=$with_mikmod_config |
|
|
45 |
fi |