forked from dnp3/opendnp3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
41 lines (34 loc) · 1.21 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
AC_INIT([opendnp3], [1.1.0], [[email protected]])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_COPYRIGHT([(C) 2010, 2011 Green EneryCorp. (C) 2013-2014 Automatak LLC. All right reserved.])
AM_INIT_AUTOMAKE([subdir-objects])
AC_PREFIX_DEFAULT([/usr]) #works best for Ubuntu
AC_CONFIG_FILES([Makefile])
AC_LANG([C++]) # tell autoconf that we're using C++
AX_CXX_COMPILE_STDCXX_11([noext]) #require support for C++11
LT_INIT #initialize libtools
# optional support for building the java bindings
AC_ARG_WITH([java],
[AS_HELP_STRING([--with-java@<:@=ARG@:>@],
[use the Java JDK based on the given javac (ARG=javac)
@<:@ARG=yes@:>@ ])],
[
JAVAC=$withval
AX_JNI_INCLUDE_DIR
want_java="yes"
for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
do
CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
done
],
[want_java="no"])
AM_CONDITIONAL(WANT_JAVA, [test "$want_java" = yes])
# optional support for lcov/gcov
AC_ARG_WITH([lcov],
[AS_HELP_STRING([--with-lcov@<:@=ARG@:>@],
[lcov support])],
[CXXFLAGS="--coverage -g -O0 -std=gnu++11"
AC_MSG_NOTICE([--with-lcov=yes])],
[AC_MSG_NOTICE([--with-lcov=no])])
AC_OUTPUT #actually output the configuration