ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Windows/configure.ac
(Generate patch)

Comparing SheepShaver/src/Windows/configure.ac (file contents):
Revision 1.1 by gbeauche, 2005-03-20T23:45:17Z vs.
Revision 1.7 by asvitkine, 2009-04-14T00:52:15Z

# Line 1 | Line 1
1   dnl Process this file with autoconf to produce a configure script.
2   dnl Written in 2002 by Christian Bauer
3  
4 < AC_INIT([SheepShaver], 2.2, [Christian.Bauer@uni-mainz.de], SheepShaver)
4 > AC_INIT([SheepShaver], 2.3, [Christian.Bauer@uni-mainz.de], SheepShaver)
5   AC_CONFIG_SRCDIR(main_windows.cpp)
6   AC_CONFIG_AUX_DIR(../Unix)
7   AC_PREREQ(2.52)
# Line 13 | Line 13 | AC_CANONICAL_TARGET
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
# Line 22 | Line 23 | AC_PROG_MAKE_SET
23   AC_PROG_EGREP
24   AC_PROG_LN_S
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
# Line 41 | Line 52 | AC_CHECK_SIZEOF(float, 4)
52   AC_CHECK_SIZEOF(double, 8)
53   AC_CHECK_SIZEOF(void *, 4)
54   AC_TYPE_OFF_T
55 + AC_CHECK_TYPES(loff_t)
56   AC_TYPE_SIZE_T
57  
58   dnl Checks for library functions.
59 < AC_CHECK_FUNCS(exp2f log2f exp2 log2 trunc)
59 > AC_CHECK_FUNCS(strdup strerror)
60 > AC_CHECK_FUNCS(exp2f log2f exp2 log2)
61 > AC_CHECK_FUNCS(floorf roundf ceilf truncf)
62 > AC_CHECK_FUNCS(floor round ceil trunc)
63  
64   dnl Define a macro that translates a yesno-variable into a C macro definition
65   dnl to be put into the config.h file
# Line 129 | Line 144 | AC_CACHE_CHECK([whether we can skip inst
144      #include "../Unix/vm_alloc.cpp"
145      #include "../Unix/sigsegv.cpp"
146    ], ac_cv_have_skip_instruction=yes, ac_cv_have_skip_instruction=no,
147 <  dnl When cross-compiling, do not assume anything.
148 <  ac_cv_have_skip_instruction=no
147 >  dnl When cross-compiling, assume it works
148 >  ac_cv_have_skip_instruction="yes"
149    )
150    AC_LANG_RESTORE
151    ]
# Line 159 | Line 174 | AC_EGREP_CPP(xyes,
174   #endif
175   ], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no))
176  
177 + dnl Add -fno-strict-aliasing for slirp sources
178 + if [[ "x$HAVE_GCC30" = "xyes" ]]; then
179 +  SAVED_CFLAGS="$CFLAGS"
180 +  CFLAGS="$CFLAGS -fno-strict-aliasing"
181 +  AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing],
182 +    ac_cv_gcc_no_strict_aliasing, [
183 +    AC_TRY_COMPILE([],[],
184 +      [ac_cv_gcc_no_strict_aliasing=yes; AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")],
185 +      [ac_cv_gcc_no_strict_aliasing=no])
186 +  ])
187 +  CFLAGS="$SAVED_CFLAGS"
188 + fi
189 +
190   dnl CPU emulator sources
191   CPUSRCS="\
192 <  ../kpx_cpu/src/mathlib/ieeefp.cpp \
193 <  ../kpx_cpu/src/cpu/ppc/ppc-cpu.cpp \
194 <  ../kpx_cpu/src/cpu/ppc/ppc-decode.cpp \
195 <  ../kpx_cpu/src/cpu/ppc/ppc-execute.cpp \
196 <  ../kpx_cpu/src/cpu/ppc/ppc-translate.cpp"
192 >    ../kpx_cpu/src/mathlib/ieeefp.cpp \
193 >    ../kpx_cpu/src/mathlib/mathlib.cpp \
194 >    ../kpx_cpu/src/cpu/ppc/ppc-cpu.cpp \
195 >    ../kpx_cpu/src/cpu/ppc/ppc-decode.cpp \
196 >    ../kpx_cpu/src/cpu/ppc/ppc-execute.cpp \
197 >    ../kpx_cpu/src/cpu/ppc/ppc-translate.cpp \
198 >    ../kpx_cpu/src/utils/utils-cpuinfo.cpp"
199   CPPFLAGS="$CPPFLAGS -I../kpx_cpu/include -I../kpx_cpu/src"
200  
201   dnl Enable JIT compiler, if possible
# Line 193 | Line 223 | if [[ "x$WANT_JIT" = "xyes" ]]; then
223    CPUSRCS="\
224      ../kpx_cpu/src/cpu/jit/jit-cache.cpp \
225      ../kpx_cpu/src/cpu/jit/basic-dyngen.cpp \
226 <    ../kpx_cpu/src/cpu/ppc/ppc-dyngen.cpp $CPUSRCS"
226 >    ../kpx_cpu/src/cpu/ppc/ppc-dyngen.cpp \
227 >    ../kpx_cpu/src/cpu/ppc/ppc-jit.cpp $CPUSRCS"
228    CPPFLAGS="$CPPFLAGS -DUSE_JIT"
229   fi
230   CPUSRCS="$CPUSRCS ../kpx_cpu/sheepshaver_glue.cpp"
231  
232 + dnl Use the dummy prefs file.
233 + CPUSRCS="$CPUSRCS ../dummy/prefs_dummy.cpp"
234 +
235   dnl We really want SDL for now
236 < AC_PATH_PROG(sdl_config, "sdl-config", [AC_MSG_ERROR([Sorry, you currently need SDL for this port])])
237 < sdl_cflags=`$sdl_config --cflags`
238 < sdl_libs=`$sdl_config --libs`
239 < CFLAGS="$CFLAGS $sdl_cflags"
240 < CXXFLAGS="$CXXFLAGS $sdl_cflags"
207 < LIBS="$LIBS $sdl_libs"
236 > AC_CHECK_TOOL(sdl_config, sdl-config, [AC_MSG_ERROR([Sorry, you currently need SDL for this port])])
237 > SDL_CFLAGS=`$sdl_config --cflags`
238 > AC_SUBST(SDL_CFLAGS)
239 > SDL_LIBS=`$sdl_config --libs`
240 > AC_SUBST(SDL_LIBS)
241   AC_DEFINE(USE_SDL, 1, [Define to enble SDL support])
242   AC_DEFINE(USE_SDL_VIDEO, 1, [Define to enable SDL video graphics support])
243   AC_DEFINE(USE_SDL_AUDIO, 1, [Define to enable SDL audio support])
# Line 228 | Line 261 | echo
261   echo SheepShaver configuration summary:
262   echo
263   echo Enable JIT compiler .............. : $WANT_JIT
264 + echo GTK user interface ............... : $WANT_GTK
265   echo
266   echo "Configuration done. Now type \"make\"."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines