13 |
|
|
14 |
|
dnl Options. |
15 |
|
AC_ARG_ENABLE(jit, [ --enable-jit enable JIT compiler [default=yes]], [WANT_JIT=$enableval], [WANT_JIT=yes]) |
16 |
+ |
AC_ARG_WITH(gtk, [ --with-gtk use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes]) |
17 |
|
|
18 |
|
dnl Checks for programs. |
19 |
|
AC_PROG_CC |
25 |
|
AC_PATH_PROG(PERL, [perl]) |
26 |
|
AC_CHECK_TOOL(WINDRES, windres) |
27 |
|
|
28 |
+ |
dnl We use GTK+ if possible. |
29 |
+ |
if [[ "x$WANT_GTK" = "xyes" ]]; then |
30 |
+ |
AM_PATH_GTK_2_0(1.3.15, [], [ |
31 |
+ |
AC_MSG_WARN([Could not find GTK+ 2.0, disabling user interface.]) |
32 |
+ |
WANT_GTK=no |
33 |
+ |
]) |
34 |
+ |
fi |
35 |
+ |
AC_SUBST(WANT_GTK) |
36 |
+ |
|
37 |
|
dnl We use 64-bit file size support if possible. |
38 |
|
AC_SYS_LARGEFILE |
39 |
|
|
212 |
|
|
213 |
|
dnl We really want SDL for now |
214 |
|
AC_CHECK_TOOL(sdl_config, sdl-config, [AC_MSG_ERROR([Sorry, you currently need SDL for this port])]) |
215 |
< |
sdl_cflags=`$sdl_config --cflags` |
216 |
< |
sdl_libs=`$sdl_config --libs` |
217 |
< |
CFLAGS="$CFLAGS $sdl_cflags" |
218 |
< |
CXXFLAGS="$CXXFLAGS $sdl_cflags" |
209 |
< |
LIBS="$LIBS $sdl_libs" |
215 |
> |
SDL_CFLAGS=`$sdl_config --cflags` |
216 |
> |
AC_SUBST(SDL_CFLAGS) |
217 |
> |
SDL_LIBS=`$sdl_config --libs` |
218 |
> |
AC_SUBST(SDL_LIBS) |
219 |
|
AC_DEFINE(USE_SDL, 1, [Define to enble SDL support]) |
220 |
|
AC_DEFINE(USE_SDL_VIDEO, 1, [Define to enable SDL video graphics support]) |
221 |
|
AC_DEFINE(USE_SDL_AUDIO, 1, [Define to enable SDL audio support]) |
239 |
|
echo SheepShaver configuration summary: |
240 |
|
echo |
241 |
|
echo Enable JIT compiler .............. : $WANT_JIT |
242 |
+ |
echo GTK user interface ............... : $WANT_GTK |
243 |
|
echo |
244 |
|
echo "Configuration done. Now type \"make\"." |