forked from ashish-gehani/SPADE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
58 lines (48 loc) · 1.54 KB
/
configure.ac
File metadata and controls
58 lines (48 loc) · 1.54 KB
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
# SPADE - Support for Provenance Auditing in Distributed Environments.
# Copyright (C) 2012 SRI International.
#
# This file requires autoconf, libtool, autoconf-archive installed
AC_INIT([spade], [1.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 '1.6'`" = ""; then
if test "`$JAVAC -version 2>&1 | grep '1.7'`" = ""; then
AC_MSG_ERROR([The java compiler version must be 1.6 or 1.7])
fi
fi
AC_CHECK_PROGS([JAVAH], [javah], [:])
if test "$JAVAH" = :; then
AC_MSG_ERROR([This package needs javah installed and available in your path])
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