ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/configure.in
(Generate patch)

Comparing BasiliskII/src/Unix/configure.in (file contents):
Revision 1.11 by cebix, 1999-10-25T08:07:58Z vs.
Revision 1.14 by cebix, 1999-10-26T16:28:36Z

# Line 6 | Line 6 | AC_PREREQ(2.12)
6   AC_CONFIG_HEADER(config.h)
7  
8   dnl Options.
9 < WANT_XF86_DGA=yes
10 < WANT_FBDEV_DGA=yes
11 < WANT_ESD=yes
12 < WANT_UI=yes
13 < AC_ARG_ENABLE(xf86-dga, [  --enable-xf86-dga       use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], [])
14 < AC_ARG_ENABLE(fbdev-dga, [  --enable-fbdev-dga      use direct frame buffer access via /dev/fb [default=yes]], [WANT_FBDEV_DGA=$enableval], [])
15 < AC_ARG_ENABLE(esd, [  --enable-esd            Enlightened Sound Daemon support [default=yes]], [WANT_ESD=$enableval], [])
16 < AC_ARG_ENABLE(ui,  [  --enable-ui             use GTK user interface [default=yes]], [WANT_UI=$enableval], [])
9 > AC_ARG_ENABLE(xf86-dga,  [  --enable-xf86-dga       use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], [WANT_XF86_DGA=yes])
10 > AC_ARG_ENABLE(fbdev-dga, [  --enable-fbdev-dga      use direct frame buffer access via /dev/fb [default=yes]], [WANT_FBDEV_DGA=$enableval], [WANT_FBDEV_DGA=yes])
11 > AC_ARG_WITH(esd,       [  --with-esd              support ESD for sound under Linux/FreeBSD [default=yes]], [WANT_ESD=$withval], [WANT_ESD=yes])
12 > AC_ARG_WITH(gtk,       [  --with-gtk              use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes])
13 > AC_ARG_WITH(mon,       [  --with-mon              use mon as debugger [default=yes]], [WANT_MON=$withval], [WANT_MON=yes])
14  
15   dnl Checks for programs.
16   AC_PROG_CC
# Line 27 | Line 24 | MONSRCS=
24   AC_MSG_CHECKING(for mon)
25   if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then
26    AC_MSG_RESULT(yes)
27 +  WANT_MON=yes
28    DEFINES="$DEFINES -DENABLE_MON=1"
29    MONSRCS="../../../mon/src/mon.cpp ../../../mon/src/mon_6502.cpp ../../../mon/src/mon_68k.cpp ../../../mon/src/mon_8080.cpp ../../../mon/src/mon_cmd.cpp ../../../mon/src/mon_ppc.cpp ../../../mon/src/mon_x86.cpp"
30    CXXFLAGS="$CXXFLAGS -I../../../mon/src"
31 +  AC_CHECK_LIB(readline, readline)
32 +  AC_CHECK_HEADERS(readline/readline.h readline/history.h)
33   else
34    AC_MSG_RESULT(no)
35 +  WANT_MON=no
36    DEFINES="$DEFINES -DENABLE_MON=0"
37   fi
38  
# Line 73 | Line 74 | if [[ "x$WANT_XF86_DGA" = "xyes" ]]; the
74      fi
75    ], [
76      AC_MSG_WARN([Could not find XFree86 DGA extension, ignoring --enable-xf86-dga.])
77 +    WANT_XF86_DGA=no
78      DEFINES="$DEFINES -DENABLE_XF86_DGA=0"
79    ])
80   else
# Line 86 | Line 88 | fi
88  
89   dnl We use GTK+ if possible.
90   UISRCS=../dummy/prefs_editor_dummy.cpp
91 < if [[ "x$WANT_UI" = "xyes" ]]; then
91 > if [[ "x$WANT_GTK" = "xyes" ]]; then
92    AM_PATH_GTK(1.2.0, [
93      DEFINES="$DEFINES -DENABLE_GTK=1"
94      CFLAGS="$CFLAGS $GTK_CFLAGS"
# Line 95 | Line 97 | if [[ "x$WANT_UI" = "xyes" ]]; then
97      UISRCS=prefs_editor_gtk.cpp
98    ], [
99      AC_MSG_WARN([Could not find GTK+, disabling user interface.])
100 <    WANT_UI=no
100 >    WANT_GTK=no
101    ])
102   fi
103  
# Line 237 | Line 239 | if [[ "x$HAVE_GCC27" = "xyes" ]]; then
239   fi
240  
241   dnl Select appropriate CPU source and REGPARAM define.
242 + WANT_X86_ASSEMBLY=no
243 + WANT_SPARC_V8_ASSEMBLY=no
244 + WANT_SPARC_V9_ASSEMBLY=no
245   CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
246   if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then
247    dnl i386 CPU
248    DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\""
249    if [[ "x$HAVE_GAS" = "xyes" ]]; then
250 +    WANT_X86_ASSEMBLY=yes
251      DEFINES="$DEFINES -DX86_ASSEMBLY"
252      CPUSRCS="cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s"
253    fi
# Line 254 | Line 260 | elif [[ "x$HAVE_GCC27" = "xyes" -a "x$HA
260      AC_MSG_RESULT($SPARC_TYPE)
261      case "$SPARC_TYPE" in
262      SPARC_V8)
263 +      WANT_SPARC_V8_ASSEMBLY=yes
264        DEFINES="$DEFINES -DSPARC_V8_ASSEMBLY"
265        CFLAGS="$CFLAGS -Wa,-Av8"
266        CXXFLAGS="$CXXFLAGS -Wa,-Av8"
267        ;;
268      SPARC_V9)
269 +      WANT_SPARC_V9_ASSEMBLY=yes
270        DEFINES="$DEFINES -DSPARC_V9_ASSEMBLY"
271        CFLAGS="$CFLAGS -Wa,-Av9"
272        CXXFLAGS="$CXXFLAGS -Wa,-Av9"
# Line 278 | Line 286 | AC_SUBST(SYSSRCS)
286   AC_SUBST(CPUINCLUDES)
287   AC_SUBST(CPUSRCS)
288   AC_OUTPUT(Makefile)
289 +
290 + dnl Print summary.
291 + echo
292 + echo Basilisk II configuration summary:
293 + echo
294 + echo XFree86 DGA support .............. : $WANT_XF86_DGA
295 + echo fbdev DGA support ................ : $WANT_FBDEV_DGA
296 + echo ESD sound support ................ : $WANT_ESD
297 + echo GTK user interface ............... : $WANT_GTK
298 + echo mon debugger support ............. : $WANT_MON
299 + echo i386 assembly optimizations ...... : $WANT_X86_ASSEMBLY
300 + echo SPARC V8 assembly optimizations .. : $WANT_SPARC_V8_ASSEMBLY
301 + echo SPARC V9 assembly optimizations .. : $WANT_SPARC_V9_ASSEMBLY
302 + echo
303   echo "Configuration done. Now type \"make\"."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines