-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
59 lines (42 loc) · 1.89 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
AC_INIT([flash2021],[0.1])
AM_INIT_AUTOMAKE([dist-zip silent-rules subdir-objects])
AC_CONFIG_SRCDIR([src/main.c])
AC_PROG_CC([m68k-amigaos-gcc])
#AC_SUBST(CFLAGS,'-m68000 -msoft-float -fomit-frame-pointer -s -noixemul -ffast-math -DAMIGA -DACE_DEBUG=ON -Wall -Wextra -O3')
AC_SUBST(CFLAGS,'-m68000 -msoft-float -fomit-frame-pointer -s -mcrt=nix13 -ffast-math -DAMIGA -Wall -Wextra -O3')
# Need ace include dir to build the prject
AC_CHECK_HEADERS([stdlib.h ace/managers/key.h ace/managers/game.h ace/utils/chunky.h ace/managers/viewport/simplebuffer.h],[have_ace_includes=yes],[have_ace_includes=no])
if test "" = no; then
AC_MSG_ERROR([Unable to find required ACE include files]);
fi
AC_SEARCH_LIBS([viewCreate], [acerelease],[have_ace_lib=yes],[have_ace_lib=no])
if test "" = no; then
AC_MSG_ERROR([Unable to find required ACE lib file]);
fi
AC_CHECK_PROG([bitmap_conv],[bitmap_conv],[yes],[no],,)
if test "" = no; then
AC_MSG_ERROR([Unable to find bitmap_conv utility, this utility is part of ACE, you can find it under the tool directory]);
fi
AC_CHECK_PROG([palette_conv],[palette_conv],[yes],[no],,)
if test "" = no; then
AC_MSG_ERROR([Unable to find palette_conv utility, this utility is part of ACE, you can find it under the tool directory]);
fi
AC_CHECK_PROG([assembler],[vasmm68k_mot],[vasmm68k_mot],[no],,)
if test "" = no; then
AC_MSG_ERROR([Unable to find vasm68k_mot assembler]);
fi
AC_CHECK_PROG([dd],[dd],[yes],[no],,)
if test "" = no; then
AC_MSG_ERROR([Unable to find dd utility]);
fi
AC_CONFIG_FILES([Makefile include/Makefile floppy/data/Makefile src/Makefile])
# asm=vasmm68k_mot
#AC_DEFINE([ACE_DEBUG], [ON], [Debug on])
AC_OUTPUT
echo "-------------------------------------------------
${PACKAGE_NAME} Version ${PACKAGE_VERSION}
Compiler: '${CC} ${CPPFLAGS}'
Bindir: '${bindir}'
Execprefix: '${exec_prefix}'
Prefix: '${prefix}'
--------------------------------------------------"