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

Comparing BasiliskII/src/MacOSX/configure.in (file contents):
Revision 1.9 by nigel, 2003-03-24T11:41:32Z vs.
Revision 1.10 by nigel, 2003-06-03T12:40:02Z

# Line 1 | Line 1
1 + dnl Mac OS X configuration driver
2 + dnl $Id$
3   dnl Process this file with autoconf to produce a configure script.
4   dnl Based on Unix/configure.in
5   dnl Written in 1999 by Christian Bauer et al.
# Line 23 | Line 25 | AC_ARG_ENABLE(fpe,
25      ieee)       FPE_CORE_TEST_ORDER="ieee";;
26      uae)        FPE_CORE_TEST_ORDER="uae";;
27      x86)        FPE_CORE_TEST_ORDER="x86";;
28 <    *)          AC_MSG_ERROR([--enable-fpe takes only one of the following values: auto, x86, ieee, uae]);;
28 >        *)              AC_MSG_ERROR([--enable-fpe takes only one of the following values: auto, x86, ieee, uae]);;
29    esac
30   ],
31   [ FPE_CORE_TEST_ORDER="ieee uae"
# Line 59 | Line 61 | HAVE_I386=no
61   HAVE_M68K=no
62   HAVE_SPARC=no
63   HAVE_POWERPC=no
64 + HAVE_X86_64=no
65   case "$target_cpu" in
66 <  i386* | i486* | i586* | i686* | i786* ) CPU_TYPE=i386 HAVE_I386=yes;;
67 <  m68k* ) CPU_TYPE=m68k HAVE_M68K=yes;;
68 <  sparc* ) CPU_TYPE=sparc HAVE_SPARC=yes;;
69 <  powerpc* ) CPU_TYPE=powerpc HAVE_POWERPC=yes;;
70 <  *) CPU_TYPE=`echo $target_cpu | sed -e 's/-/_/g'`;;
66 >  i386* | i486* | i586* | i686* | i786* ) HAVE_I386=yes;;
67 >  m68k* ) HAVE_M68K=yes;;
68 >  sparc* ) HAVE_SPARC=yes;;
69 >  powerpc* ) HAVE_POWERPC=yes;;
70 >  x86_64* ) HAVE_X86_64=yes;;
71   esac
69 DEFINES="$DEFINES -DCPU_$CPU_TYPE"
72  
73   dnl Checks for programs.
74   AC_PROG_CC
# Line 92 | Line 94 | if [[ "x$WANT_MON" = "xyes" ]]; then
94      AC_DEFINE(ENABLE_MON, 1, [Define if using "mon".])
95      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"
96      CXXFLAGS="$CXXFLAGS -I$mon_srcdir -I$mon_srcdir/disass"
97 <    AC_CHECK_LIB(termcap, tputs)
97 >    AC_CHECK_LIB(ncurses, tgetent, ,
98 >      AC_CHECK_LIB(termcap, tgetent, ,
99 >        AC_CHECK_LIB(termlib, tgetent, ,
100 >          AC_CHECK_LIB(terminfo, tgetent, ,
101 >            AC_CHECK_LIB(Hcurses, tgetent, ,
102 >              AC_CHECK_LIB(curses, tgetent))))))
103      AC_CHECK_LIB(readline, readline)
104      AC_CHECK_HEADERS(readline.h history.h readline/readline.h readline/history.h)
105    else
# Line 142 | Line 149 | AC_CHECK_SIZEOF(float, 4)
149   AC_CHECK_SIZEOF(double, 8)
150   AC_CHECK_SIZEOF(long double, 12)
151   AC_CHECK_SIZEOF(void *, 4)
152 + AC_TYPE_OFF_T
153   dnl These two symbols are not defined in 10.1's autoconf files:
154   dnl AC_CHECK_TYPE(loff_t, off_t)
155   dnl AC_CHECK_TYPE(caddr_t, [char *])
156   dnl which causes problems for autoheader.
157   dnl We define loff_t as a typedef of off_t in sysdeps.h if we don't have LOFF_T
150 AC_CHECK_TYPE(off_t)
151 dnl We still need off_t, though:
152 AC_TYPE_OFF_T
158   AC_TYPE_SIZE_T
159   AC_TYPE_SIGNAL
160   AC_HEADER_TIME
161   AC_STRUCT_TM
162  
158 dnl AC_CHECK_TYPE(socklen_t)
163   dnl Check whether sys/socket.h defines type socklen_t.
164   dnl (extracted from ac-archive/Miscellaneous)
165   AC_CACHE_CHECK([for socklen_t],
# Line 173 | Line 177 | if [[ "x$ac_cv_type_socklen_t" != "xyes"
177    AC_DEFINE(socklen_t, int, [Define to 'int' if <sys/types.h> doesn't define.])
178   fi
179  
176
180   dnl Checks for library functions.
181   AC_CHECK_FUNCS(strdup cfmakeraw)
182   AC_CHECK_FUNCS(clock_gettime timer_create)
# Line 207 | Line 210 | DEFINES="$DEFINES -DBSD_COMP"
210   dnl Use 68k CPU natively?
211   WANT_NATIVE_M68K=no
212  
210 SYSSRCS="$SERIALSRC $ETHERSRC $SCSISRC $AUDIOSRC $SEMSRC $UISRCS $MONSRCS $EXTRASYSSRCS"
213  
214   dnl Define a macro that translates a yesno-variable into a C macro definition
215   dnl to be put into the config.h file
# Line 642 | Line 644 | dnl Other platforms should define their
644   CAN_JIT=no
645   JITSRCS="compemu1.cpp compemu2.cpp compemu3.cpp compemu4.cpp compemu5.cpp compemu6.cpp compemu7.cpp compemu8.cpp"
646  
647 < if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" -a "x$OS_TYPE" != "xfreebsd" ]]; then
647 > if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then
648    dnl i386 CPU
649    DEFINES="$DEFINES -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(3)))\""
650    if [[ "x$HAVE_GAS" = "xyes" ]]; then
651      ASM_OPTIMIZATIONS=i386
652      DEFINES="$DEFINES -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DSAHF_SETO_PROFITABLE"
653 <    CPUSRCS="cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s"
654 <    JITSRCS="cpufast1_nf.s cpufast2_nf.s cpufast3_nf.s cpufast4_nf.s cpufast5_nf.s cpufast6_nf.s cpufast7_nf.s cpufast8_nf.s $JITSRCS"
653 >    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"
654 >    CAN_JIT=yes
655 >  fi
656 > elif [[ "x$HAVE_GCC30" = "xyes" -a "x$HAVE_X86_64" = "xyes" ]]; then
657 >  dnl x86-64 CPU
658 >  DEFINES="$DEFINES -DUNALIGNED_PROFITABLE"
659 >  if [[ "x$HAVE_GAS" = "xyes" ]]; then
660 >    ASM_OPTIMIZATIONS="x86-64"
661 >    DEFINES="$DEFINES -DX86_64_ASSEMBLY -DOPTIMIZED_FLAGS"
662    fi
654  CAN_JIT=yes
663   elif [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]]; then
664    dnl SPARC CPU
665    case "$target_os" in
# Line 910 | Line 918 | if [[ "x$HAVE_GCC27" = "xyes" ]]; then
918    CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g//g'`
919   fi
920  
921 < dnl Or if we have -Ofast
922 < if [[ "x$HAVE_OFAST" = "xyes" ]]; then
923 <  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -Ofast"
924 <  CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -Ofast"
921 > dnl Or if we have -IPA (MIPSPro compilers)
922 > if [[ "x$HAVE_IPA" = "xyes" ]]; then
923 >  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA"
924 >  CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA"
925    CXXFLAGS="-LANG:std $CXXFLAGS"
926 <  LDFLAGS="$LDFLAGS -ipa"
926 >  LDFLAGS="$LDFLAGS -O3 -OPT:Olimit=0 -IPA"
927   fi
928  
929   dnl Generate Makefile.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines