forked from verificatum/verificatum-vmn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
68 lines (56 loc) · 1.97 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright 2008-2018 Douglas Wikstrom
#
# This file is part of Verificatum Mix-Net (VMN).
#
# VMN is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# VMN is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General
# Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with VMN. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ([2.63])
AC_INIT([verificatum-vmn],
[m4_esyscmd([m4 .version.m4])],
AC_CANONICAL_SYSTEM # Must appear before AM_INIT_AUTOMAKE
AM_INIT_AUTOMAKE([foreign tar-ustar -Wall -Werror -Wno-portability])
AC_CONFIG_MACRO_DIR([m4])
# We require a specific version of VCR. The version is verified both in
# terms of the name of the jar file and the contents of the jar
# manifest file.
VCR_VERSION=3.0.3
# Checks for development tools we need.
ACE_PROG_JAVAC
ACE_PROG_JAR
ACE_PROG_JAVADOC
ACE_PROG_JAVA
cd tools/installation
javac TestLoadJar.java
cd -
# We need to figure out if we need to pass -J-d64 to javac.
AM_CONDITIONAL([BITS64], [test x`getconf LONG_BIT` = x64])
AC_CONFIG_FILES([Makefile])
AC_SUBST([VCR_COMPLETE_VERSION],[`vcr-${VCR_VERSION}-info complete`])
if test x = x${VCR_JAR};
then
AC_SUBST([VCR_JAR],`vcr-${VCR_VERSION}-info jar`)
fi
if test x = x${LD_LIBRARY_PATH};
then
AC_SUBST([LD_LIBRARY_PATH_VCR],`vcr-${VCR_VERSION}-info lib`)
fi
# Check that the right version of VCR is installed.
ACE_CHECK_JAR([VCR],
[VCR_JAR],
[${VCR_JAR}],
[verificatum-vcr-${VCR_VERSION}.jar],
[vcr],
[com.verificatum.Verificatum],
[${VCR_VERSION}])
AC_OUTPUT