-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
51 lines (40 loc) · 1.43 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
define([AC_CACHE_LOAD],)
define([AC_CACHE_SAVE],)
AC_INIT([state-space-renderer], [0.1], [[email protected]])
# Safety checks in case user overwritten --srcdir
AC_CONFIG_SRCDIR([src])
AC_CONFIG_HEADERS([config.h])
# Store the auxiliary build tools (e.g., install-sh, config.sub, config.guess)
# in this dir (build-aux)
# AC_CONFIG_AUX_DIR([build-aux])
# Init automake, and specify this program use relaxed structures.
# i.e. this program doesn't follow the gnu coding standards, and doesn't have
# ChangeLog, COPYING, AUTHORS, INSTALL, README etc. files.
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
# AC_CANONICAL_HOST is needed to access the 'host_os' variable
AC_CANONICAL_HOST
on_x86=no
on_arm=no
AS_CASE([$host_cpu],
[x86_64], [on_x86=yes],
[aarch64], [on_arm=yes],
[AC_MSG_ERROR("No assembler code for CPU $host_cpu")]
)
# Pass the conditionals to automake
AM_CONDITIONAL([ON_ARM64], [test x$on_arm = xyes])
AM_CONDITIONAL([ON_X86_64], [test x$on_x86 = xyes])
# Check for C++ compiler
AC_LANG([C++])
AC_PROG_CC
AC_PROG_CXX
AC_CHECK_HEADERS(cblas.h)
AC_CHECK_HEADERS(jack/jack.h)
# We can add more checks in this section
# Tells automake to create a Makefile
# See https://www.gnu.org/software/automake/manual/html_node/Requirements.html
AC_CONFIG_FILES([Makefile])
AM_PATH_PYTHON([3])
AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
#AC_CONFIG_LINKS([systems/create_system.py:systems/create_system.py])
# Generate the output
AC_OUTPUT