-
Notifications
You must be signed in to change notification settings - Fork 75
/
configure.ac
51 lines (42 loc) · 1.36 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
# SPADE - Support for Provenance Auditing in Distributed Environments.
# Copyright (C) 2012 SRI International.
#
# This file requires autoconf, libtool, autoconf-archive installed
AC_INIT([spade], [2.0], [spade@csl.sri.com])
AC_PREREQ([2.65])
AC_PROG_CC
AC_CHECK_PROGS([JAVA], java, [:])
if test "$JAVA" = :; then
AC_MSG_ERROR([This package needs java installed and available in your path])
fi
AC_CHECK_PROGS([JAVAC], [javac], [:])
if test "$JAVAC" = :; then
AC_MSG_ERROR([This package needs JDK installed and available in your path. You can get it from http://www.oracle.com/technetwork/java/javase/downloads/index.html])
fi
if test "`$JAVAC -version 2>&1 | grep '11\|12\|13\|14'`" = ""; then
AC_MSG_ERROR([The java compiler version must be 11.0 or 12.0 or 13.0 or 14.0])
fi
AC_CHECK_PROGS([JAR], [jar], [:])
if test "$JAR" = :; then
AC_MSG_ERROR([This package needs jar utility installed and available in your path])
fi
AC_CHECK_PROGS([ADB], [adb], [:])
if test "$ADB" != :; then
ADB_PATH=`which adb`
ANDROID_SDK_TOOLS=`dirname $ADB_PATH`/
else
ANDROID_SDK_TOOLS=""
fi
AC_SUBST([ANDROID_SDK_TOOLS])
AC_CHECK_PROGS([DX], [dx], [:])
if test "$DX" != :; then
DX_PATH=`which dx`
ANDROID_BUILD_TOOLS=`dirname $DX_PATH`/
else
ANDROID_BUILD_TOOLS=""
fi
AC_SUBST([ANDROID_BUILD_TOOLS])
DUSER=spade
AC_SUBST([DUSER])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT