-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
136 lines (119 loc) · 3.79 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([the64], [1.1], [[email protected]])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AM_PROG_AR
AC_CHECK_TOOL(STRIP, strip, :)
# Checks for libraries.
AC_SUBST([ALSA_CFLAGS])
AC_SUBST([ALSA_LIBS])
PKG_CHECK_MODULES([ALSA],[alsa])
PKG_CHECK_MODULES([JPEG], [libjpeg], [
AC_DEFINE([HAVE_LIBJPEG], 1, [Define to 1 if you have jpeg.])
], [
AC_CHECK_LIB([jpeg], [jpeg_read_scanlines],
AC_DEFINE([HAVE_LIBJPEG], 1, [Define to 1 if you have jpeg.]) AC_SUBST([JPEG_LIBS], [-ljpeg]),
AC_MSG_ERROR([jpeg support requested but library not found])
)]
)
PKG_CHECK_MODULES([PNG],[libpng16])
PKG_CHECK_MODULES([ZLIB],[zlib])
if test x"$LIBGCRYPT_CONFIG" = "x"; then
AC_PATH_PROG(LIBGCRYPT_CONFIG, [libgcrypt-config], [libgcrypt-config])
fi
GCRYPT_CFLAGS="`${LIBGCRYPT_CONFIG} --cflags`"
GCRYPT_LIBS="`${LIBGCRYPT_CONFIG} --libs`"
AC_SUBST([GCRYPT_CFLAGS])
AC_SUBST([GCRYPT_LIBS])
AC_CHECK_FUNCS(getopt)
AC_CHECK_DECLS([getopt,getsubopt,getopt_long])
AC_REPLACE_FUNCS(getopt_long getsubopt)
RESID_USE_SSE=0
AC_SUBST([MAJOR], ["1"])
AC_SUBST([MINOR], ["3"])
AC_SUBST([PATCH], ["0"])
AC_SUBST([PLATFORM], ["SUN8IW7"])
AC_SUBST([CONF_CFLAGS], ["-march=armv7-a -mtune=cortex-a7 -fPIC"])
dnl Wrap certain functions
AC_SUBST([CONF_WFLAGS], ["-Wl,-wrap=bzero -Wl,-wrap=memcpy -Wl,-wrap=memset -Wl,-wrap=strcpy -Wl,-wrap=strlen -Wl,-wrap=strcmp"])
dnl resid-fp stuff
RESID_HAVE_BOOL=1
AC_SUBST(RESID_HAVE_BOOL)
if test x"$host_os" != "xminix" -a x"$host_os" != "xmint"; then
AC_CHECK_FUNCS(logf expf)
fi
AC_MSG_CHECKING([if the logf prototype is present])
AC_TRY_COMPILE([#include <math.h>
#include <stdio.h>],
[printf("%d",logf);],
[ AC_MSG_RESULT(yes)
HAVE_LOGF_PROTOTYPE=1
],
[ AC_MSG_RESULT(no)
HAVE_LOGF_PROTOTYPE=0
])
AC_MSG_CHECKING([if the expf prototype is present])
AC_TRY_COMPILE([#include <math.h>
#include <stdio.h>],
[printf("%d",expf);],
[ AC_MSG_RESULT(yes)
HAVE_EXPF_PROTOTYPE=1
],
[ AC_MSG_RESULT(no)
HAVE_EXPF_PROTOTYPE=0
])
RESID_INLINE=inline
AC_SUBST(HAVE_LOGF_PROTOTYPE)
AC_SUBST(HAVE_EXPF_PROTOTYPE)
AC_SUBST(RESID_INLINE)
AC_SUBST(RESID_USE_SSE)
AC_OUTPUT(src/vice2/src/resid-fp/siddefs-fp.h)
dnl General outputs
AC_OUTPUT(
Makefile release.mk
src/viceport/Makefile
src/vbuild/Makefile.libc64cart
src/vbuild/Makefile.libc64cartsystem
src/vbuild/Makefile.libc64commoncart
src/vbuild/Makefile.libc64
src/vbuild/Makefile.libvic20
src/vbuild/Makefile.libvic20cart
src/vbuild/Makefile.libcore
src/vbuild/Makefile.libdiskimage
src/vbuild/Makefile.libdriveiecc64exp
src/vbuild/Makefile.libdriveiecieee
src/vbuild/Makefile.libdriveiec
src/vbuild/Makefile.libdriveieee
src/vbuild/Makefile.libdrive
src/vbuild/Makefile.libfileio
src/vbuild/Makefile.libfsdevice
src/vbuild/Makefile.libgfxoutputdrv
src/vbuild/Makefile.libiecbus
src/vbuild/Makefile.libimagecontents
src/vbuild/Makefile.libmonitor
src/vbuild/Makefile.libp64
src/vbuild/Makefile.libparallel
src/vbuild/Makefile.libplatform
src/vbuild/Makefile.libprinterdrv
src/vbuild/Makefile.libraster
src/vbuild/Makefile.libresidfp
src/vbuild/Makefile.libresid
src/vbuild/Makefile.librs232drv
src/vbuild/Makefile.librtc
src/vbuild/Makefile.libserial
src/vbuild/Makefile.libsid
src/vbuild/Makefile.libsounddrv
src/vbuild/Makefile.libtape
src/vbuild/Makefile.libuserport
src/vbuild/Makefile.libvdrive
src/vbuild/Makefile.libvicemain
src/vbuild/Makefile.libvicii
src/vbuild/Makefile.libvideo
src/vbuild/Makefile
src/c64emu/Makefile
src/vic20emu/Makefile
)