-
Notifications
You must be signed in to change notification settings - Fork 19
/
configure.ac
50 lines (40 loc) · 1.07 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
AC_PREREQ([2.69])
AC_INIT([linthesia], [0.5.0], [[email protected]])
AM_INIT_AUTOMAKE([foreign subdir-objects])
#AM_LANG([C++])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([config.h])
LT_PREREQ([2.2])
LT_INIT()
# Checks for programs.
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_MKDIR_P
# Checks for libraries.
PKG_CHECK_MODULES(RTMIDI, rtmidi, HAVE_RTMIDI=1, HAVE_RTMIDI=0)
if test $HAVE_RTMIDI = 0
then
PKG_CHECK_MODULES(RTMIDI, librtmidi)
fi
# Checks for header files.
AC_CHECK_HEADERS([string string.h iostream algorithm locale vector sstream queue functional map iomanip set exception sys/time.h])
PKG_CHECK_MODULES(SFML, sfml-graphics)
# Flags
datdir=$datadir/$PACKAGE
AC_SUBST(datdir)
CXXFLAGS="$CXXFLAGS -std=c++11"
CXXFLAGS="$CXXFLAGS -DDATADIR=\\\"$datdir\\\""
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
# Checks for library functions.
AC_CHECK_FUNCS([gettimeofday])
AC_CONFIG_FILES([
Makefile
src/Makefile
graphics/Makefile
fonts/Makefile
songs/Makefile])
AC_OUTPUT