-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
53 lines (42 loc) · 1.33 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT([ts_mruby], [0.0.1], [[email protected]])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([src/ts_mruby.cpp])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
# ATS root
TS_PREFIX_ROOT=/usr/local/
AC_ARG_WITH(ts_prefix_root, AC_HELP_STRING([--with-ts-prefix-root=DIR],
[pathname to ts_prefix_root [[ts_prefix_root]]]),
[TS_PREFIX_ROOT="$with_ts_prefix_root"])
AC_SUBST(TS_PREFIX_ROOT)
# mruby root
MRUBY_ROOT=`pwd`/mruby
AC_ARG_WITH(mruby_root, AC_HELP_STRING([--with-mruby-root=DIR],
[pathname to mruby_root [[mruby_root]]]),
[MRUBY_ROOT="$with_mruby_root"])
AC_SUBST(MRUBY_ROOT)
AC_MSG_CHECKING([coverage option])
AC_ARG_ENABLE([coverage],
[AS_HELP_STRING([--enable-coverage],[generate coverage files])],
[],
[enable_coverage=no]
)
AC_MSG_RESULT([$enable_coverage])
if test "${enable_coverage}" = "yes"; then
COVFLAGS="-coverage"
else
COVFLAGS=""
fi
AC_SUBST(COVFLAGS)
# Checks for libraries.
# AC_HAVE_LIBRARY([atscppapi])
# AC_HAVE_LIBRARY([mruby])
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile])
AC_OUTPUT