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

Comparing SheepShaver/src/Unix/configure.ac (file contents):
Revision 1.67 by asvitkine, 2010-03-07T00:44:05Z vs.
Revision 1.75 by asvitkine, 2012-06-17T23:14:11Z

# Line 5 | Line 5 | AC_INIT([SheepShaver], 2.3, [Christian.B
5   AC_CONFIG_SRCDIR(main_unix.cpp)
6   AC_PREREQ(2.52)
7   AC_CONFIG_HEADER(config.h)
8 + AH_TOP(
9 + #ifndef CONFIG_H
10 + #define CONFIG_H
11 + )
12 + AH_BOTTOM(
13 + #endif /* CONFIG_H */
14 + )
15  
16   dnl Canonical system information.
17   AC_CANONICAL_HOST
# Line 41 | Line 48 | AC_ARG_WITH(gtk,            [  --with-gt
48   AC_ARG_WITH(mon,            [  --with-mon              use mon as debugger [default=yes]], [WANT_MON=$withval], [WANT_MON=yes])
49   AC_ARG_WITH(dgcc,           [  --with-dgcc=COMPILER    use C++ COMPILER to compile synthetic opcodes], [DYNGEN_CC=$withval])
50  
51 + AC_ARG_WITH(bincue,  
52 +  AS_HELP_STRING([--with-bincue], [Allow cdrom image files in bin/cue mode]))
53 +
54 + AC_ARG_WITH(libvhd,  
55 +  AS_HELP_STRING([--with-libvhd], [Enable VHD disk images]))
56 +
57 +
58   dnl Addressing mode
59   AC_ARG_ENABLE(addressing,
60    [  --enable-addressing=AM  set the addressing mode to use [default=real]],
# Line 213 | Line 227 | if [[ "x$WANT_SDL_VIDEO" != "xyes" ]]; t
227    LIBS="$LIBS $X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
228   fi
229  
230 +
231 +
232   dnl We need pthreads on non-PowerPC systems. Try libpthread first, then libc_r (FreeBSD), then PTL.
233   HAVE_PTHREADS=yes
234   case $EMULATED_PPC:$target_os in
# Line 354 | Line 370 | AC_CHECK_HEADERS(mach/vm_map.h mach/mach
370   AC_CHECK_HEADERS(unistd.h fcntl.h byteswap.h dirent.h)
371   AC_CHECK_HEADERS(sys/socket.h sys/ioctl.h sys/filio.h sys/bitypes.h sys/wait.h)
372   AC_CHECK_HEADERS(sys/time.h sys/poll.h sys/select.h arpa/inet.h)
373 < AC_CHECK_HEADERS(linux/if.h linux/if_tun.h net/if.h net/if_tun.h, [], [], [
373 > AC_CHECK_HEADERS(netinet/in.h linux/if.h linux/if_tun.h net/if.h net/if_tun.h, [], [], [
374   #ifdef HAVE_SYS_TYPES_H
375   #include <sys/types.h>
376   #endif
# Line 365 | Line 381 | AC_CHECK_HEADERS(linux/if.h linux/if_tun
381   AC_CHECK_HEADERS(AvailabilityMacros.h)
382   AC_CHECK_HEADERS(IOKit/storage/IOBlockStorageDevice.h)
383   AC_CHECK_HEADERS(fenv.h)
384 + AC_CHECK_HEADERS(sys/stropts.h stropts.h)
385  
386   dnl Checks for typedefs, structures, and compiler characteristics.
387   AC_C_BIGENDIAN
# Line 611 | Line 628 | darwin*)
628    fi
629    if [[ "x$WANT_ESD" = "xno" -a "x$ac_cv_framework_CoreAudio" = "xyes" -a "x$WANT_SDL_AUDIO" = "xno" ]]; then
630      AUDIOSRC="../MacOSX/audio_macosx.cpp ../MacOSX/AudioBackEnd.cpp ../MacOSX/AudioDevice.cpp ../MacOSX/MacOSX_sound_if.cpp"
631 +    OSX_CORE_AUDIO="-DOSX_CORE_AUDIO"
632    fi
633    ;;
634   irix*)
# Line 631 | Line 649 | irix*)
649    ;;
650   esac
651  
652 + dnl BINCUE
653 + AS_IF([test  "x$with_bincue" = "xyes" ], [have_bincue=yes], [have_bincue=no])
654 + AS_IF([test  "x$have_bincue" = "xyes" ], [
655 +   if [[ "xOSX_CORE_AUDIO" = "xno"  -a "x$WANT_SDL_AUDIO"="xno"]]; then
656 +       AC_MSG_ERROR([You need SDL or OSX Core Audio to use BINCUE support.])
657 +   else
658 +       CPPFLAGS="$CPPFLAGS -DBINCUE $OSX_CORE_AUDIO"
659 +   fi
660 + ])
661 +
662 + dnl LIBVHD
663 + AS_IF([test  "x$with_libvhd" = "xyes" ], [have_libvhd=yes], [have_libvhd=no])
664 + AS_IF([test  "x$have_libvhd" = "xyes" ], [
665 +       CPPFLAGS="$CPPFLAGS -DHAVE_LIBVHD"
666 +           LIBS="$LIBS -lvhd"
667 +           case $target_os in
668 +           linux*)
669 +           LIBS="$LIBS -luuid"
670 +           esac
671 +           AC_CHECK_LIB(vhd, vhd_open)
672 +           AC_CHECK_LIB(vhd, vhd_io_read)
673 +           AC_CHECK_LIB(vhd, vhd_io_write)
674 +           AC_CHECK_LIB(vhd, vhd_close)
675 + ])
676 +
677 +
678 +
679 +
680   dnl Is the slirp library supported?
681   case "$ac_cv_have_byte_bitfields" in
682   yes|"guessing yes")
# Line 663 | Line 709 | if [[ "x$WANT_SDL_VIDEO" = "xyes" ]]; th
709    KEYCODES="../SDL/keycodes"
710    if [[ "x$ac_cv_framework_Carbon" = "xyes" ]]; then
711      EXTRASYSSRCS="$EXTRASYSSRCS ../MacOSX/clip_macosx.cpp"
712 +    EXTRASYSSRCS="$EXTRASYSSRCS ../MacOSX/utils_macosx.mm"
713 +    CPPFLAGS="$CPPFLAGS -I../MacOSX"
714    else
715      EXTRASYSSRCS="$EXTRASYSSRCS ../dummy/clip_dummy.cpp"
716    fi
# Line 676 | Line 724 | if [[ "x$WANT_SDL_AUDIO" = "xyes" ]]; th
724    AUDIOSRC="../SDL/audio_sdl.cpp"
725   fi
726  
727 + dnl BINCUE overrides
728 +
729 + if [[ "x$have_bincue" = "xyes" ]]; then
730 +  EXTRASYSSRCS="$EXTRASYSSRCS bincue_unix.cpp"
731 + fi
732 +
733 + dnl libvhd overrides
734 +
735 + if [[ "x$have_libvhd" = "xyes" ]]; then
736 +  EXTRASYSSRCS="$EXTRASYSSRCS vhd_unix.cpp"
737 + fi
738 +
739 +
740   SYSSRCS="$VIDEOSRCS $EXTFSSRC $PREFSSRC $SERIALSRC $ETHERSRC $SCSISRC $AUDIOSRC $SEMSRC $UISRCS $EXTRASYSSRCS"
741  
742   dnl Define a macro that translates a yesno-variable into a C macro definition
# Line 693 | Line 754 | dnl Check that the host supports TUN/TAP
754   AC_CACHE_CHECK([whether TUN/TAP is supported],
755    ac_cv_tun_tap_support, [
756    AC_TRY_COMPILE([
757 +        #if defined(HAVE_NETINET_IN_H)
758 +        #include <netinet/in.h>
759 +        #endif
760      #if defined(HAVE_LINUX_IF_H) && defined(HAVE_LINUX_IF_TUN_H)
761      #include <linux/if.h>
762      #include <linux/if_tun.h>
# Line 1431 | Line 1495 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1495        powerpc:mach)
1496          ac_cv_use_dyngen=yes
1497          ;;
1498 +      x86_64:mach)
1499 +        ac_cv_use_dyngen=yes
1500 +        ;;
1501        i?86:mach)
1502          ac_cv_use_dyngen=yes
1503          ;;
# Line 1505 | Line 1572 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1572          ../kpx_cpu/src/cpu/ppc/ppc-jit.cpp $CPUSRCS"
1573      fi
1574    fi
1575 <  CPUSRCS="$CPUSRCS ../kpx_cpu/sheepshaver_glue.cpp"
1575 >  CPUSRCS="$CPUSRCS ../kpx_cpu/sheepshaver_glue.cpp ../kpx_cpu/ppc-dis.c"
1576   else
1577    WANT_JIT=no
1578   fi
# Line 1576 | Line 1643 | echo
1643   echo SheepShaver configuration summary:
1644   echo
1645   echo SDL support ...................... : $SDL_SUPPORT
1646 + echo BINCUE support ................... : $have_bincue
1647 + echo LIBVHD support ................... : $have_libvhd
1648   echo FBDev DGA support ................ : $WANT_FBDEV_DGA
1649   echo XFree86 DGA support .............. : $WANT_XF86_DGA
1650   echo XFree86 VidMode support .......... : $WANT_XF86_VIDMODE

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines