forked from Vishwas1/cppBoilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
43 lines (28 loc) · 949 Bytes
/
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
AC_INIT([app1], [0.1.0])
AC_CONFIG_SRCDIR([src/app1main.cc])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([build-aux/m4])
AM_INIT_AUTOMAKE
AC_PROG_CXX
APP1_NAME=app1
define(MINIMUM_REQUIRED_BOOST, 1.47.0)
AX_BOOST_BASE([MINIMUM_REQUIRED_BOOST])
AX_BOOST_SYSTEM
AX_BOOST_FILESYSTEM
AX_BOOST_THREAD
AX_BOOST_CHRONO
BOOST_LIBS="$BOOST_LDFLAGS $BOOST_SYSTEM_LIB $BOOST_FILESYSTEM_LIB $BOOST_THREAD_LIB $BOOST_CHRONO_LIB"
# AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
AC_ARG_WITH([app1],
[AS_HELP_STRING([--with-app1],
[build_app1 app1 (default=yes)])],
[build_app1=$withval],
[build_app1=yes])
AC_MSG_CHECKING([whether to build app1])
AM_CONDITIONAL([BUILD_APP1], [test x$build_app1 = xyes])
AC_MSG_RESULT($build_app1)
libhelloworld_LIBS='$(top_builddir)/lib/helloworld/src/libhelloworld.a'
AC_SUBST(APP1_NAME)
AC_SUBST(libhelloworld_LIBS)
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT