1 |
|
dnl Process this file with autoconf to produce a configure script. |
2 |
|
dnl Written in 2002 by Christian Bauer et al. |
3 |
|
|
4 |
< |
AC_INIT(main_unix.cpp) |
4 |
> |
AC_INIT([Basilisk II], 1.0, [Christian.Bauer@uni-mainz.de], BasiliskII) |
5 |
> |
AC_CONFIG_SRCDIR(main_unix.cpp) |
6 |
|
AC_PREREQ(2.52) |
7 |
|
AC_CONFIG_HEADER(config.h) |
8 |
|
|
554 |
|
AC_TRY_RUN([ |
555 |
|
#include "vm_alloc.cpp" |
556 |
|
int main(void) { /* returns 0 if we could map the lowmem globals */ |
557 |
< |
volatile char * lm; |
557 |
> |
volatile char * lm = 0; |
558 |
|
if (vm_init() < 0) exit(1); |
559 |
< |
if ((lm = (volatile char *)vm_acquire_fixed(0, 0x2000)) == VM_MAP_FAILED) exit(1); |
559 |
> |
if (vm_acquire_fixed(0, 0x2000) < 0) exit(1); |
560 |
|
lm[0] = 'z'; |
561 |
|
if (vm_release((char *)lm, 0x2000) < 0) exit(1); |
562 |
|
vm_exit(); exit(0); |
770 |
|
dnl Check for GCC 2.7 or higher. |
771 |
|
HAVE_GCC27=no |
772 |
|
AC_MSG_CHECKING(for GCC 2.7 or higher) |
773 |
< |
AC_EGREP_CPP(yes, |
773 |
> |
AC_EGREP_CPP(xyes, |
774 |
|
[#if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5 |
775 |
< |
yes |
775 |
> |
xyes |
776 |
|
#endif |
777 |
|
], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no)) |
778 |
|
|
779 |
|
dnl Check for GCC 3.0 or higher. |
780 |
|
HAVE_GCC30=no |
781 |
|
AC_MSG_CHECKING(for GCC 3.0 or higher) |
782 |
< |
AC_EGREP_CPP(yes, |
782 |
> |
AC_EGREP_CPP(xyes, |
783 |
|
[#if __GNUC__ >= 3 |
784 |
< |
yes |
784 |
> |
xyes |
785 |
|
#endif |
786 |
|
], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no)) |
787 |
|
|
1106 |
|
AC_SUBST(SYSSRCS) |
1107 |
|
AC_SUBST(CPUINCLUDES) |
1108 |
|
AC_SUBST(CPUSRCS) |
1109 |
< |
AC_OUTPUT(Makefile) |
1109 |
> |
AC_CONFIG_FILES([Makefile]) |
1110 |
> |
AC_OUTPUT |
1111 |
|
|
1112 |
|
dnl Print summary. |
1113 |
|
echo |