-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.in
37 lines (33 loc) · 957 Bytes
/
configure.in
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
AC_PREREQ(2.13)
AC_INIT(./Makefile.in)
AC_SUBST(VERSION)
VERSION=`head -1 VERSION`
AC_SUBST(RELEASE)
RELEASE=`head -1 RELEASE`
AC_SUBST(PACKAGE)
PACKAGE=dynacase-offline-client
LICENSE="http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License"
AC_SUBST(LICENSE)
ac_default_prefix=/usr/share/what
AC_SUBST(PUBRULE)
PUBRULE=
AC_ARG_WITH(pubrule, [ --with-pubrule=dir Path to PubRule], PUBRULE=$withval)
if test "x$PUBRULE" != "x"; then
PUBRULEDIR=$PUBRULE
else
if test "x$PUBRULEDIR" == "x"; then
AC_CHECK_FILE($HOME/anakeen/devtools/PubRule, PUBRULEDIR=$HOME/anakeen/devtools/)
if test "x$PUBRULEDIR" = "x"; then
PUBRULEDIR=.
fi
fi
fi
AC_CHECK_FILE($PUBRULEDIR/PubRule, PUBRULE=$PUBRULEDIR)
if test "x$PUBRULE" = "x"; then
AC_MSG_ERROR([Could not find PubRule])
fi
AC_MSG_NOTICE([PubRule located at $PUBRULE])
AC_OUTPUT(Makefile \
info.xml \
application.ini \
)