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.48 by cebix, 2001-09-02T13:50:05Z vs.
Revision 1.55 by gbeauche, 2002-03-16T10:51:17Z

# Line 1 | Line 1
1   dnl Process this file with autoconf to produce a configure script.
2 < dnl Written in 1999 by Christian Bauer et al.
2 > dnl Written in 2002 by Christian Bauer et al.
3  
4   AC_INIT(main_unix.cpp)
5   AC_PREREQ(2.12)
6   AC_CONFIG_HEADER(config.h)
7  
8 + dnl These defines are necessary to get 64-bit file size support.
9 + AC_DEFINE(_USE_LARGEFILE_SOURCE, 1, [Get more functions for correct standard I/O])
10 + AC_DEFINE(_FILE_OFFSET_BITS, 64, [Get 64-bit file size support])
11 +
12   dnl Options.
13   AC_ARG_ENABLE(xf86-dga,      [  --enable-xf86-dga       use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], [WANT_XF86_DGA=yes])
14   AC_ARG_ENABLE(xf86-vidmode,  [  --enable-xf86-vidmode   use the XFree86 VidMode extension [default=yes]], [WANT_XF86_VIDMODE=$enableval], [WANT_XF86_VIDMODE=yes])
# Line 87 | Line 91 | if [[ "x$WANT_MON" = "xyes" ]]; then
91    if grep mon_init $mon_srcdir/mon.h >/dev/null 2>/dev/null; then
92      AC_MSG_RESULT(yes)
93      AC_DEFINE(ENABLE_MON)
94 <    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/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c"
94 >    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"
95      CXXFLAGS="$CXXFLAGS -I$mon_srcdir -I$mon_srcdir/disass"
96      AC_CHECK_LIB(readline, readline)
97      AC_CHECK_LIB(termcap, tputs)
# Line 125 | Line 129 | if [[ "x$HAVE_PTHREADS" = "xyes" ]]; the
129    AC_DEFINE(HAVE_PTHREADS)
130   fi
131   AC_CHECK_FUNCS(pthread_cancel)
132 + AC_CHECK_FUNCS(pthread_mutexattr_setprotocol)
133 + AC_CHECK_FUNCS(pthread_mutexattr_settype)
134  
135   dnl If POSIX.4 semaphores are not available, we emulate them with pthread mutexes.
136   SEMSRC=
# Line 168 | Line 174 | UISRCS=../dummy/prefs_editor_dummy.cpp
174   if [[ "x$WANT_GTK" = "xyes" ]]; then
175    AM_PATH_GTK(1.2.0, [
176      AC_DEFINE(ENABLE_GTK)
171    CFLAGS="$CFLAGS $GTK_CFLAGS"
177      CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
178      LIBS="$LIBS $GTK_LIBS"
179      UISRCS=prefs_editor_gtk.cpp
180 +    B2_PATH_GNOMEUI([
181 +      AC_DEFINE(HAVE_GNOMEUI)
182 +      CXXFLAGS="$CXXFLAGS $GNOMEUI_CFLAGS"
183 +      LIBS="$LIBS $GNOMEUI_LIBS"
184 +    ], [])
185    ], [
186      AC_MSG_WARN([Could not find GTK+, disabling user interface.])
187      WANT_GTK=no
# Line 206 | Line 216 | AC_CHECK_SIZEOF(long long, 8)
216   AC_CHECK_SIZEOF(void *, 4)
217   AC_TYPE_OFF_T
218   AC_CHECK_TYPE(loff_t, off_t)
219 < TYPE_SOCKLEN_T
219 > AC_CHECK_TYPE(caddr_t, [char *])
220   AC_TYPE_SIZE_T
221   AC_TYPE_SIGNAL
222   AC_HEADER_TIME
223   AC_STRUCT_TM
224  
225 + dnl Check whether sys/socket.h defines type socklen_t.
226 + dnl (extracted from ac-archive/Miscellaneous)
227 + AC_CACHE_CHECK("for socklen_t",
228 +  ac_cv_type_socklen_t, [
229 +  AC_TRY_COMPILE([
230 +    #include <sys/types.h>
231 +    #include <sys/socket.h>
232 +  ], [socklen_t len = 42; return 0;],
233 +  ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=no,
234 +  dnl When cross-compiling, do not assume anything.
235 +  ac_cv_type_socklen_t="guessing no"
236 +  )
237 + ])
238 + if [[ "x$ac_cv_type_socklen_t" != "xyes" ]]; then
239 +  AC_DEFINE(socklen_t, int)
240 + fi
241 +
242   dnl Checks for library functions.
243   AC_CHECK_FUNCS(strdup cfmakeraw)
244   AC_CHECK_FUNCS(clock_gettime timer_create)
# Line 663 | Line 690 | AC_EGREP_CPP(yes,
690   ], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no))
691  
692   dnl Set "-fomit-frame-pointer" on i386 GCC 2.7 or higher.
693 + dnl Also set "-fno-exceptions" for C++ because exception handling requires
694 + dnl the frame pointer.
695   if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then
696    CFLAGS="$CFLAGS -fomit-frame-pointer"
697 <  CXXFLAGS="$CXXFLAGS -fomit-frame-pointer"
697 >  CXXFLAGS="$CXXFLAGS -fomit-frame-pointer -fno-exceptions"
698   fi
699  
700   dnl (gb) Do not merge constants since it breaks fpu/fpu_x86.cpp.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines