14 |
|
dnl cores for the configure tests since some are intended to dump core. |
15 |
|
ulimit -c 0 |
16 |
|
|
17 |
+ |
AC_ARG_ENABLE(standalone-gui,[ --enable-standalone-gui enable a standalone GUI prefs editor [default=no]], [WANT_STANDALONE_GUI=$enableval], [WANT_STANDALONE_GUI=no]) |
18 |
+ |
|
19 |
|
dnl Video options. |
20 |
|
AC_ARG_ENABLE(xf86-dga, [ --enable-xf86-dga use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], [WANT_XF86_DGA=yes]) |
21 |
|
AC_ARG_ENABLE(xf86-vidmode, [ --enable-xf86-vidmode use the XFree86 VidMode extension [default=yes]], [WANT_XF86_VIDMODE=$enableval], [WANT_XF86_VIDMODE=yes]) |
26 |
|
AC_ARG_ENABLE(sdl-static, [ --enable-sdl-static use SDL static libraries for linking [default=no]], [WANT_SDL_STATIC=$enableval], [WANT_SDL_STATIC=no]) |
27 |
|
AC_ARG_ENABLE(sdl-video, [ --enable-sdl-video use SDL for video graphics [default=no]], [WANT_SDL_VIDEO=$enableval], [WANT_SDL_VIDEO=no]) |
28 |
|
AC_ARG_ENABLE(sdl-audio, [ --enable-sdl-audio use SDL for audio [default=no]], [WANT_SDL_AUDIO=$enableval], [WANT_SDL_AUDIO=no]) |
29 |
+ |
AC_ARG_ENABLE(sdl-framework, [ --enable-sdl-framework use SDL framework [default=no]], [WANT_SDL_FRAMEWORK=$enableval], [WANT_SDL_FRAMEWORK=no]) |
30 |
+ |
AC_ARG_ENABLE(sdl-framework-prefix, [ --enable-sdl-framework-prefix=PFX default=/Library/Frameworks], [SDL_FRAMEWORK="$enableval"], [SDL_FRAMEWORK=/Library/Frameworks]) |
31 |
|
|
32 |
|
dnl JIT compiler options. |
33 |
|
AC_ARG_ENABLE(jit-compiler, [ --enable-jit-compiler enable JIT compiler [default=no]], [WANT_JIT=$enableval], [WANT_JIT=no]) |
74 |
|
[WANT_GTK="gtk2 gtk"]) |
75 |
|
AC_ARG_WITH(mon, [ --with-mon use mon as debugger [default=yes]], [WANT_MON=$withval], [WANT_MON=yes]) |
76 |
|
|
77 |
+ |
AC_ARG_WITH(bincue, |
78 |
+ |
AS_HELP_STRING([--with-bincue], [Allow cdrom image files in bin/cue mode])) |
79 |
+ |
|
80 |
|
dnl Canonical system information. |
81 |
|
AC_CANONICAL_HOST |
82 |
|
AC_CANONICAL_TARGET |
106 |
|
x86_64* ) HAVE_X86_64=yes;; |
107 |
|
esac |
108 |
|
|
109 |
+ |
dnl Check if we should really be assuming x86_64 even if we detected HAVE_I386 above. |
110 |
+ |
if [[ "x$HAVE_I386" = "xyes" ]]; then |
111 |
+ |
AC_TRY_RUN([ |
112 |
+ |
int main(void) { |
113 |
+ |
#if defined(__x86_64__) |
114 |
+ |
return 0; |
115 |
+ |
#else |
116 |
+ |
return 1; |
117 |
+ |
#endif |
118 |
+ |
} |
119 |
+ |
], [ |
120 |
+ |
HAVE_I386=no |
121 |
+ |
HAVE_X86_64=yes |
122 |
+ |
]) |
123 |
+ |
fi |
124 |
+ |
|
125 |
|
dnl Checks for programs. |
126 |
|
AC_PROG_CC |
127 |
|
AC_PROG_CC_C_O |
139 |
|
if grep mon_init $mon_srcdir/mon.h >/dev/null 2>/dev/null; then |
140 |
|
AC_MSG_RESULT(yes) |
141 |
|
AC_DEFINE(ENABLE_MON, 1, [Define if using "mon".]) |
142 |
< |
MONSRCS="$mon_srcdir/mon.cpp $mon_srcdir/mon_6502.cpp $mon_srcdir/mon_z80.cpp $mon_srcdir/mon_cmd.cpp $mon_srcdir/mon_disass.cpp $mon_srcdir/mon_ppc.cpp $mon_srcdir/mon_lowmem.cpp $mon_srcdir/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c" |
142 |
> |
MONSRCS="$mon_srcdir/mon.cpp $mon_srcdir/mon_6502.cpp $mon_srcdir/mon_z80.cpp $mon_srcdir/mon_cmd.cpp $mon_srcdir/mon_disass.cpp $mon_srcdir/mon_ppc.cpp $mon_srcdir/mon_lowmem.cpp $mon_srcdir/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c $mon_srcdir/disass/mips-dis.c $mon_srcdir/disass/mips-opc.c $mon_srcdir/disass/mips16-opc.c" |
143 |
|
CXXFLAGS="$CXXFLAGS -I$mon_srcdir -I$mon_srcdir/disass" |
144 |
|
AC_CHECK_LIB(ncurses, tgetent, , |
145 |
< |
AC_CHECK_LIB(termcap, tgetent, , |
146 |
< |
AC_CHECK_LIB(termlib, tgetent, , |
147 |
< |
AC_CHECK_LIB(terminfo, tgetent, , |
148 |
< |
AC_CHECK_LIB(Hcurses, tgetent, , |
149 |
< |
AC_CHECK_LIB(curses, tgetent)))))) |
145 |
> |
[AC_CHECK_LIB(termcap, tgetent, , |
146 |
> |
[AC_CHECK_LIB(termlib, tgetent, , |
147 |
> |
[AC_CHECK_LIB(terminfo, tgetent, , |
148 |
> |
[AC_CHECK_LIB(Hcurses, tgetent, , |
149 |
> |
[AC_CHECK_LIB(curses, tgetent)])])])])]) |
150 |
|
AC_CHECK_LIB(readline, readline) |
151 |
|
else |
152 |
|
AC_MSG_RESULT(no) |
161 |
|
AC_CHECK_LIB(rt, shm_open) |
162 |
|
AC_CHECK_LIB(m, cos) |
163 |
|
|
164 |
+ |
dnl AC_CHECK_SDLFRAMEWORK($1=NAME, $2=INCLUDES) |
165 |
+ |
dnl AC_TRY_LINK uses main() but SDL needs main to take args, |
166 |
+ |
dnl therefore main is undefined with #undef. |
167 |
+ |
dnl Framework can be in an custom location. |
168 |
+ |
AC_DEFUN([AC_CHECK_SDLFRAMEWORK], [ |
169 |
+ |
AS_VAR_PUSHDEF([ac_Framework], [ac_cv_framework_$1]) |
170 |
+ |
AC_CACHE_CHECK([whether compiler supports framework $1], |
171 |
+ |
ac_Framework, [ |
172 |
+ |
saved_LIBS="$LIBS" |
173 |
+ |
LIBS="$LIBS -framework $1" |
174 |
+ |
if [[ "x$SDL_FRAMEWORK" != "x/Library/Frameworks" ]]; then |
175 |
+ |
if [[ "x$SDL_FRAMEWORK" != "x/System/Library/Frameworks" ]]; then |
176 |
+ |
LIBS="$saved_LIBS -F$SDL_FRAMEWORK -framework $1" |
177 |
+ |
fi |
178 |
+ |
fi |
179 |
+ |
saved_CPPFLAGS="$CPPFLAGS" |
180 |
+ |
CPPFLAGS="$CPPFLAGS -I$SDL_FRAMEWORK/SDL.framework/Headers" |
181 |
+ |
AC_TRY_LINK( |
182 |
+ |
[$2 |
183 |
+ |
#undef main], [], |
184 |
+ |
[AS_VAR_SET(ac_Framework, yes)], [AS_VAR_SET(ac_Framework, no); |
185 |
+ |
LIBS="$saved_LIBS"; CPPFLAGS="$saved_CPPFLAGS"] |
186 |
+ |
) |
187 |
+ |
]) |
188 |
+ |
AS_IF([test AS_VAR_GET(ac_Framework) = yes], |
189 |
+ |
[AC_DEFINE(AS_TR_CPP(HAVE_FRAMEWORK_$1), 1, [Define if framework $1 is available.])] |
190 |
+ |
) |
191 |
+ |
AS_VAR_POPDEF([ac_Framework]) |
192 |
+ |
]) |
193 |
+ |
|
194 |
|
dnl Do we need SDL? |
195 |
|
WANT_SDL=no |
196 |
|
if [[ "x$WANT_SDL_VIDEO" = "xyes" ]]; then |
205 |
|
SDL_SUPPORT="$SDL_SUPPORT audio" |
206 |
|
fi |
207 |
|
if [[ "x$WANT_SDL" = "xyes" ]]; then |
208 |
< |
AC_PATH_PROG(sdl_config, "sdl-config") |
209 |
< |
if [[ -n "$sdl_config" ]]; then |
157 |
< |
case $target_os in |
158 |
< |
# Special treatment for Cygwin so that we can still use the POSIX layer |
159 |
< |
*cygwin*) |
160 |
< |
sdl_cflags="-I`$sdl_config --prefix`/include/SDL" |
161 |
< |
sdl_libs="-L`$sdl_config --exec-prefix`/lib -lSDL" |
162 |
< |
;; |
163 |
< |
*) |
164 |
< |
sdl_cflags=`$sdl_config --cflags` |
165 |
< |
if [[ "x$WANT_SDL_STATIC" = "xyes" ]]; then |
166 |
< |
sdl_libs=`$sdl_config --static-libs` |
167 |
< |
else |
168 |
< |
sdl_libs=`$sdl_config --libs` |
169 |
< |
fi |
170 |
< |
;; |
171 |
< |
esac |
172 |
< |
CFLAGS="$CFLAGS $sdl_cflags" |
173 |
< |
CXXFLAGS="$CXXFLAGS $sdl_cflags" |
174 |
< |
LIBS="$LIBS $sdl_libs" |
208 |
> |
if [[ "x$WANT_SDL_FRAMEWORK" = "xyes" ]]; then |
209 |
> |
AC_CHECK_SDLFRAMEWORK(SDL, [#include <SDL.h>]) |
210 |
|
else |
211 |
< |
WANT_SDL=no |
211 |
> |
ac_cv_framework_SDL=no |
212 |
> |
fi |
213 |
> |
if [[ "x$ac_cv_framework_SDL" = "xno" ]]; then |
214 |
> |
AC_PATH_PROG(sdl_config, "sdl-config") |
215 |
> |
if [[ -n "$sdl_config" ]]; then |
216 |
> |
case $target_os in |
217 |
> |
# Special treatment for Cygwin so that we can still use the POSIX layer |
218 |
> |
*cygwin*) |
219 |
> |
sdl_cflags="-I`$sdl_config --prefix`/include/SDL" |
220 |
> |
sdl_libs="-L`$sdl_config --exec-prefix`/lib -lSDL" |
221 |
> |
;; |
222 |
> |
*) |
223 |
> |
sdl_cflags=`$sdl_config --cflags` |
224 |
> |
if [[ "x$WANT_SDL_STATIC" = "xyes" ]]; then |
225 |
> |
sdl_libs=`$sdl_config --static-libs` |
226 |
> |
else |
227 |
> |
sdl_libs=`$sdl_config --libs` |
228 |
> |
fi |
229 |
> |
;; |
230 |
> |
esac |
231 |
> |
CFLAGS="$CFLAGS $sdl_cflags" |
232 |
> |
CXXFLAGS="$CXXFLAGS $sdl_cflags" |
233 |
> |
LIBS="$LIBS $sdl_libs" |
234 |
> |
else |
235 |
> |
WANT_SDL=no |
236 |
> |
fi |
237 |
|
fi |
238 |
|
SDL_SUPPORT=`echo "$SDL_SUPPORT" | sed -e "s/^ //"` |
239 |
|
else |
251 |
|
LIBS="$LIBS $X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS" |
252 |
|
fi |
253 |
|
|
254 |
+ |
dnl BINCUE |
255 |
+ |
AS_IF([test "x$with_bincue" = "xyes" ], [have_bincue=yes], [have_bincue=no]) |
256 |
+ |
AS_IF([test "x$have_bincue" = "xyes" ], [ |
257 |
+ |
if [[ "x$WANT_SDL_AUDIO" = "xyes" ]]; then |
258 |
+ |
DEFINES="$DEFINES -DBINCUE" |
259 |
+ |
else |
260 |
+ |
AC_MSG_ERROR([You need SDL Audio to use BINCUE support.]) |
261 |
+ |
fi |
262 |
+ |
]) |
263 |
+ |
|
264 |
+ |
|
265 |
|
dnl We want pthreads. Try libpthread first, then libc_r (FreeBSD), then PTL. |
266 |
|
HAVE_PTHREADS=yes |
267 |
|
AC_CHECK_LIB(pthread, pthread_create, , [ |
322 |
|
case "x$WANT_GTK" in |
323 |
|
xgtk2*) |
324 |
|
AM_PATH_GTK_2_0(1.3.15, [ |
325 |
< |
AC_DEFINE(ENABLE_GTK, 1, [Define if using GTK.]) |
326 |
< |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
256 |
< |
CXXFLAGS="$CXXFLAGS $GTK_CFLAGS" |
257 |
< |
LIBS="$LIBS $GTK_LIBS" |
258 |
< |
UISRCS=prefs_editor_gtk.cpp |
325 |
> |
GUI_CFLAGS="$GTK_CFLAGS" |
326 |
> |
GUI_LIBS="$GTK_LIBS" |
327 |
|
WANT_GTK=gtk2 |
328 |
|
], [ |
329 |
|
case "x${WANT_GTK}x" in |
341 |
|
esac |
342 |
|
if [[ "x$WANT_GTK" = "xgtk" ]]; then |
343 |
|
AM_PATH_GTK(1.2.0, [ |
344 |
< |
AC_DEFINE(ENABLE_GTK, 1, [Define if using GTK.]) |
345 |
< |
CXXFLAGS="$CXXFLAGS $GTK_CFLAGS" |
278 |
< |
LIBS="$LIBS $GTK_LIBS" |
279 |
< |
UISRCS=prefs_editor_gtk.cpp |
344 |
> |
GUI_CFLAGS="$GTK_CFLAGS" |
345 |
> |
GUI_LIBS="$GTK_LIBS" |
346 |
|
dnl somehow, <gnome-i18n.h> would redefine gettext() to nothing if |
347 |
|
dnl ENABLE_NLS is not set, thusly conflicting with C++ <string> which |
348 |
|
dnl includes <libintl.h> |
349 |
|
AM_GNU_GETTEXT |
350 |
|
B2_PATH_GNOMEUI([ |
351 |
|
AC_DEFINE(HAVE_GNOMEUI, 1, [Define if libgnomeui is available.]) |
352 |
< |
CXXFLAGS="$CXXFLAGS $GNOMEUI_CFLAGS" |
353 |
< |
LIBS="$LIBS $GNOMEUI_LIBS" |
352 |
> |
GUI_CFLAGS="$GUI_CFLAGS $GNOMEUI_CFLAGS" |
353 |
> |
GUI_LIBS="$GUI_LIBS $GNOMEUI_LIBS" |
354 |
|
], []) |
355 |
|
], [ |
356 |
|
AC_MSG_WARN([Could not find GTK+, disabling user interface.]) |
357 |
|
WANT_GTK=no |
358 |
|
]) |
359 |
|
fi |
360 |
+ |
if [[ "x$WANT_GTK" != "xno" -a "x$WANT_STANDALONE_GUI" = "xno" ]]; then |
361 |
+ |
AC_DEFINE(ENABLE_GTK, 1, [Define if using GTK.]) |
362 |
+ |
UISRCS=prefs_editor_gtk.cpp |
363 |
+ |
fi |
364 |
+ |
AC_SUBST(GUI_CFLAGS) |
365 |
+ |
AC_SUBST(GUI_LIBS) |
366 |
+ |
|
367 |
+ |
dnl Build external GUI if requested. |
368 |
+ |
if [[ "$WANT_STANDALONE_GUI" != "yes" ]]; then |
369 |
+ |
WANT_STANDALONE_GUI=no |
370 |
+ |
fi |
371 |
+ |
if [[ "$WANT_GTK" = "no" ]]; then |
372 |
+ |
WANT_STANDALONE_GUI=no |
373 |
+ |
fi |
374 |
+ |
AC_SUBST(STANDALONE_GUI, [$WANT_STANDALONE_GUI]) |
375 |
|
|
376 |
|
dnl We use ESD if possible. |
377 |
|
if [[ "x$WANT_ESD" = "xyes" ]]; then |
481 |
|
*-*-cygwin*) |
482 |
|
no_dev_ptmx=1 |
483 |
|
;; |
484 |
+ |
*-*-darwin*) |
485 |
+ |
no_dev_ptmx=1 |
486 |
+ |
;; |
487 |
|
esac |
488 |
|
|
489 |
|
if test -z "$no_dev_ptmx" ; then |
502 |
|
have_dev_ptc=1 |
503 |
|
] |
504 |
|
) |
421 |
– |
|
505 |
|
dnl (end of code from openssh-3.2.2p1 configure.ac) |
506 |
|
|
424 |
– |
|
507 |
|
dnl Check for systems where POSIX-style non-blocking I/O (O_NONBLOCK) |
508 |
|
dnl doesn't work or is unimplemented. On these systems (mostly older |
509 |
|
dnl ones), use the old BSD-style FIONBIO approach instead. [tcl.m4] |
577 |
|
]) |
578 |
|
|
579 |
|
dnl Check for some MacOS X frameworks |
580 |
+ |
AC_CHECK_FRAMEWORK(AppKit, []) |
581 |
|
AC_CHECK_FRAMEWORK(Carbon, [#include <Carbon/Carbon.h>]) |
582 |
|
AC_CHECK_FRAMEWORK(IOKit, [#include <IOKit/IOKitLib.h>]) |
583 |
|
AC_CHECK_FRAMEWORK(CoreFoundation, [#include <CoreFoundation/CoreFoundation.h>]) |
650 |
|
EXTRASYSSRCS="../MacOSX/sys_darwin.cpp" |
651 |
|
fi |
652 |
|
if [[ "x$ac_cv_framework_Carbon" = "xyes" ]]; then |
653 |
< |
EXTFSSRC=../MacOSX/extfs_macosx.mm |
653 |
> |
EXTFSSRC=../MacOSX/extfs_macosx.cpp |
654 |
|
fi |
655 |
|
;; |
656 |
|
cygwin*) |
681 |
|
dnl SDL overrides |
682 |
|
if [[ "x$WANT_SDL" = "xyes" ]]; then |
683 |
|
AC_DEFINE(USE_SDL, 1, [Define to enble SDL support]) |
684 |
+ |
if [[ "x$WANT_SDL_FRAMEWORK" = "xyes" ]]; then |
685 |
+ |
EXTRASYSSRCS="$EXTRASYSSRCS ../SDL/SDLMain.m" |
686 |
+ |
fi |
687 |
|
fi |
688 |
|
if [[ "x$WANT_SDL_VIDEO" = "xyes" ]]; then |
689 |
|
AC_DEFINE(USE_SDL_VIDEO, 1, [Define to enable SDL video graphics support]) |
711 |
|
AUDIOSRC="../SDL/audio_sdl.cpp" |
712 |
|
fi |
713 |
|
|
714 |
+ |
dnl BINCUE overrides |
715 |
+ |
|
716 |
+ |
if [[ "x$have_bincue" = "xyes" ]]; then |
717 |
+ |
EXTRASYSSRCS="$EXTRASYSSRCS bincue_unix.cpp" |
718 |
+ |
fi |
719 |
+ |
|
720 |
|
dnl Use 68k CPU natively? |
721 |
|
WANT_NATIVE_M68K=no |
722 |
|
if [[ "x$HAVE_M68K" = "xyes" -a "x$CAN_NATIVE_M68K" = "xyes" ]]; then |
949 |
|
] |
950 |
|
) |
951 |
|
|
860 |
– |
dnl Check if we have POSIX shared memory support |
861 |
– |
AC_CACHE_CHECK([whether POSIX shared memory is working], |
862 |
– |
ac_cv_have_posix_shm, [ |
863 |
– |
AC_LANG_SAVE |
864 |
– |
AC_LANG_CPLUSPLUS |
865 |
– |
AC_TRY_RUN([ |
866 |
– |
#define HAVE_POSIX_SHM |
867 |
– |
#include "vm_alloc.cpp" |
868 |
– |
int main(void) { /* returns 0 if we have working POSIX shm */ |
869 |
– |
if (vm_init() < 0) exit(2); |
870 |
– |
char *m1 = (char *)vm_acquire(32768, VM_MAP_DEFAULT | VM_MAP_33BIT); |
871 |
– |
if (m1 == VM_MAP_FAILED) exit(3); |
872 |
– |
vm_exit(); exit(0); |
873 |
– |
} |
874 |
– |
], ac_cv_have_posix_shm=yes, ac_cv_have_posix_shm=no, |
875 |
– |
dnl When cross-compiling, do not assume anything. |
876 |
– |
ac_cv_have_posix_shm="guessing no" |
877 |
– |
) |
878 |
– |
AC_LANG_RESTORE |
879 |
– |
] |
880 |
– |
) |
881 |
– |
AC_TRANSLATE_DEFINE(HAVE_POSIX_SHM, "$ac_cv_have_posix_shm", |
882 |
– |
[Define if your system supports POSIX shared memory.]) |
883 |
– |
|
884 |
– |
dnl Check if we have working 33-bit memory addressing |
885 |
– |
AC_CACHE_CHECK([whether 33-bit memory addressing is working], |
886 |
– |
ac_cv_have_33bit_addressing, [ |
887 |
– |
AC_LANG_SAVE |
888 |
– |
AC_LANG_CPLUSPLUS |
889 |
– |
AC_TRY_RUN([ |
890 |
– |
#define USE_33BIT_ADDRESSING 1 |
891 |
– |
#include "vm_alloc.cpp" |
892 |
– |
int main(void) { /* returns 0 if we have working 33-bit addressing */ |
893 |
– |
if (sizeof(void *) < 8) exit(1); |
894 |
– |
if (vm_init() < 0) exit(2); |
895 |
– |
char *m1 = (char *)vm_acquire(32768, VM_MAP_DEFAULT | VM_MAP_33BIT); |
896 |
– |
if (m1 == VM_MAP_FAILED) exit(3); |
897 |
– |
char *m2 = m1 + (1L << 32); |
898 |
– |
m1[0] = 0x12; if (m2[0] != 0x12) exit(4); |
899 |
– |
m2[0] = 0x34; if (m1[0] != 0x34) exit(5); |
900 |
– |
vm_exit(); exit(0); |
901 |
– |
} |
902 |
– |
], ac_cv_have_33bit_addressing=yes, ac_cv_have_33bit_addressing=no, |
903 |
– |
dnl When cross-compiling, do not assume anything. |
904 |
– |
ac_cv_have_33bit_addressing="guessing no" |
905 |
– |
) |
906 |
– |
AC_LANG_RESTORE |
907 |
– |
] |
908 |
– |
) |
909 |
– |
|
952 |
|
dnl Check signal handlers need to be reinstalled |
953 |
|
AC_CACHE_CHECK([whether signal handlers need to be reinstalled], |
954 |
|
ac_cv_signal_need_reinstall, [ |
1016 |
|
AC_LANG_SAVE |
1017 |
|
AC_LANG_CPLUSPLUS |
1018 |
|
AC_TRY_RUN([ |
1019 |
+ |
#define HAVE_UNISTD_H 1 |
1020 |
+ |
#define HAVE_MACH_VM 1 |
1021 |
+ |
#define HAVE_MACH_TASK_SELF 1 |
1022 |
|
#define HAVE_MACH_EXCEPTIONS 1 |
1023 |
|
#define CONFIGURE_TEST_SIGSEGV_RECOVERY |
1024 |
|
#include "vm_alloc.cpp" |
1145 |
|
case $target_os:$target_cpu in |
1146 |
|
linux*:i?86) LINKER_SCRIPT_FLAGS="-Wl,-T,ldscripts/linux-i386.ld";; |
1147 |
|
linux*:x86_64) LINKER_SCRIPT_FLAGS="-Wl,-T,ldscripts/linux-x86_64.ld";; |
1148 |
< |
darwin*:powerpc)LINKER_SCRIPT_FLAGS="-Wl,-seg1addr,0x78048000";; |
1148 |
> |
linux*:powerpc) LINKER_SCRIPT_FLAGS="-Wl,-T,ldscripts/linux-ppc.ld";; |
1149 |
> |
netbsd*:i?86) LINKER_SCRIPT_FLAGS="-Wl,-T,ldscripts/linux-i386.ld";; |
1150 |
> |
freebsd*:i?86) LINKER_SCRIPT_FLAGS="-Wl,-T,ldscripts/freebsd-i386.ld";; |
1151 |
> |
darwin*:*) LINKER_SCRIPT_FLAGS="-Wl,-seg1addr,0x78048000";; |
1152 |
|
esac |
1153 |
|
if [[ -n "$LINKER_SCRIPT_FLAGS" ]]; then |
1154 |
|
AC_CACHE_CHECK([whether linker script is usable], |
1373 |
|
DEFINES="$DEFINES -DX86_64_ASSEMBLY -DOPTIMIZED_FLAGS" |
1374 |
|
JITSRCS="cpuemu1_nf.cpp cpuemu2_nf.cpp cpuemu3_nf.cpp cpuemu4_nf.cpp cpuemu5_nf.cpp cpuemu6_nf.cpp cpuemu7_nf.cpp cpuemu8_nf.cpp $JITSRCS" |
1375 |
|
CAN_JIT=yes |
1328 |
– |
WANT_33BIT_ADDRESSING=yes |
1376 |
|
fi |
1377 |
|
elif [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]]; then |
1378 |
|
dnl SPARC CPU |
1429 |
|
JITSRCS="" |
1430 |
|
fi |
1431 |
|
|
1385 |
– |
dnl Use 33-bit memory addressing? |
1386 |
– |
if [[ "$ac_cv_have_33bit_addressing:$WANT_33BIT_ADDRESSING" = "yes:yes" ]]; then |
1387 |
– |
use_33bit_addressing=yes |
1388 |
– |
fi |
1389 |
– |
AC_TRANSLATE_DEFINE(USE_33BIT_ADDRESSING, "$use_33bit_addressing", |
1390 |
– |
[Define to use 33-bit memory addressing on 64-bit JIT capable systems.]) |
1391 |
– |
|
1432 |
|
dnl Utility macro used by next two tests. |
1433 |
|
dnl AC_EXAMINE_OBJECT(C source code, |
1434 |
|
dnl commands examining object file, |
1653 |
|
echo Basilisk II configuration summary: |
1654 |
|
echo |
1655 |
|
echo SDL support ............................ : $SDL_SUPPORT |
1656 |
+ |
echo BINCUE support ......................... : $have_bincue |
1657 |
|
echo XFree86 DGA support .................... : $WANT_XF86_DGA |
1658 |
|
echo XFree86 VidMode support ................ : $WANT_XF86_VIDMODE |
1659 |
|
echo fbdev DGA support ...................... : $WANT_FBDEV_DGA |