forked from Eric-Brison/offline-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
54 lines (49 loc) · 1.58 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Autoconf script for libphp
#
# Copyright 2000 Yannick Le Briquer <[email protected]>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version
# 2 of the License, or (at your option) any later version.
#
AC_REVISION($Id: configure.in,v 1.6 2009/01/15 16:21:18 eric Exp $)
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
AC_PREREQ(2.13)
AC_INIT(./Makefile.in)
AC_SUBST(VERSION)
VERSION=`cat VERSION`
AC_SUBST(RELEASE)
RELEASE=`cat RELEASE`
AC_SUBST(PACKAGE)
PACKAGE=dynacase-offline-server
AC_SUBST(APPNAME)
APPNAME=OFFLINE
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=`pwd`
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 GEARS_init.php info.xml)
AC_OUTPUT(Makefile OFFLINE_init.php info.xml \
targets/mac/universal/Dynacase\\ Offline.app.template/Contents/Info.plist \
targets/win/32/build.nsi \
)