101 |
|
|
102 |
|
dnl Checks for libraries. |
103 |
|
AC_CHECK_LIB(posix4, sem_init) |
104 |
+ |
AC_CHECK_LIB(rt, timer_create) |
105 |
|
|
106 |
|
dnl We need X11. |
107 |
|
AC_PATH_XTRA |
206 |
|
AC_CHECK_SIZEOF(void *, 4) |
207 |
|
AC_TYPE_OFF_T |
208 |
|
AC_CHECK_TYPE(loff_t, off_t) |
209 |
+ |
TYPE_SOCKLEN_T |
210 |
|
AC_TYPE_SIZE_T |
211 |
|
AC_TYPE_SIGNAL |
212 |
|
AC_HEADER_TIME |
266 |
|
DEFINES="$DEFINES -DBSD_COMP -D_POSIX_PTHREAD_SEMANTICS" |
267 |
|
;; |
268 |
|
irix*) |
269 |
+ |
ETHERSRC=ether_unix.cpp |
270 |
|
AUDIOSRC=Irix/audio_irix.cpp |
271 |
|
EXTRASYSSRCS=Irix/unaligned.c |
272 |
|
dnl IRIX headers work fine, but somehow don't define or use "STDC_HEADERS" |
273 |
|
DEFINES="$DEFINES -DCRTSCTS=CNEW_RTSCTS -DB230400=B115200 -DSTDC_HEADERS" |
274 |
|
LIBS="$LIBS -laudio" |
275 |
+ |
WANT_ESD=no |
276 |
|
|
277 |
|
dnl Check if our compiler supports -Ofast (MIPSPro) |
278 |
|
HAVE_OFAST=no |
653 |
|
#endif |
654 |
|
], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no)) |
655 |
|
|
656 |
+ |
dnl Check for GCC 3.0 or higher. |
657 |
+ |
HAVE_GCC30=no |
658 |
+ |
AC_MSG_CHECKING(for GCC 3.0 or higher) |
659 |
+ |
AC_EGREP_CPP(yes, |
660 |
+ |
[#if __GNUC__ >= 3 |
661 |
+ |
yes |
662 |
+ |
#endif |
663 |
+ |
], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no)) |
664 |
+ |
|
665 |
|
dnl Set "-fomit-frame-pointer" on i386 GCC 2.7 or higher. |
666 |
|
if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then |
667 |
|
CFLAGS="$CFLAGS -fomit-frame-pointer" |
668 |
|
CXXFLAGS="$CXXFLAGS -fomit-frame-pointer" |
669 |
|
fi |
670 |
|
|
671 |
+ |
dnl (gb) Do not merge constants since it breaks fpu/fpu_x86.cpp. |
672 |
+ |
dnl As of 2001/08/02, this affects the following compilers: |
673 |
+ |
dnl Official: probably gcc-3.1 (mainline CVS) |
674 |
+ |
dnl Mandrake: gcc-2.96 >= 0.59mdk, gcc-3.0.1 >= 0.1mdk |
675 |
+ |
dnl Red Hat : gcc-2.96 >= 89, gcc-3.0 >= 1 |
676 |
+ |
if [[ "x$HAVE_GCC27" = "xyes" ]]; then |
677 |
+ |
SAVED_CXXFLAGS="$CXXFLAGS" |
678 |
+ |
CXXFLAGS="$CXXFLAGS -fno-merge-constants" |
679 |
+ |
AC_CACHE_CHECK([whether GCC supports constants merging], ac_cv_gcc_constants_merging, [ |
680 |
+ |
AC_LANG_SAVE |
681 |
+ |
AC_LANG_CPLUSPLUS |
682 |
+ |
AC_TRY_COMPILE([],[],[ac_cv_gcc_constants_merging=yes],[ac_cv_gcc_constants_merging=no]) |
683 |
+ |
AC_LANG_RESTORE |
684 |
+ |
]) |
685 |
+ |
if [[ "x$ac_cv_gcc_constants_merging" != "xyes" ]]; then |
686 |
+ |
CXXFLAGS="$SAVED_CXXFLAGS" |
687 |
+ |
fi |
688 |
+ |
fi |
689 |
+ |
|
690 |
|
dnl Select appropriate CPU source and REGPARAM define. |
691 |
|
ASM_OPTIMIZATIONS=none |
692 |
|
CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp" |
737 |
|
DEFINES="$DEFINES -DFPU_X86" |
738 |
|
FPE_CORE_STR="i386 optimized core" |
739 |
|
FPUSRCS="../uae_cpu/fpu/fpu_x86.cpp" |
740 |
+ |
FPE_CORE="i386" |
741 |
|
else |
742 |
|
FPE_CORE="uae" |
743 |
|
fi |