-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.in
75 lines (65 loc) · 2.03 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# 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.5 2009/01/15 13:34:50 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-workspace
AC_SUBST(APPNAME)
APPNAME=WORKSPACE
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_SUBST(DEBUG)
DEBUG=N
AC_ARG_ENABLE(debug,
[ --enable-debug Set Debug ], DEBUG=Y)
AC_SUBST(DBHOST)
DBHOST=localhost
AC_ARG_WITH(dbhost,
[ --with-dbhost=host the PostgreSql Host (default localhost) ], DBHOST=$withval)
AC_SUBST(DBNAME)
DBNAME=workspace
AC_ARG_WITH(dbname,
[ --with-dbname=name the database name (default anakeen)], DBNAME=$withval)
AC_SUBST(DBUSER)
DBUSER=anakeen
AC_ARG_WITH(dbuser,
[ --with-dbuser=username the database user (default anakeen)], DBUSER=$withval)
AC_SUBST(DBPORT)
DBPORT=5432
AC_ARG_WITH(dbport,
[ --with-dbport=port number the database port (default 5432)], DBPORT=$withval)
AC_OUTPUT(Makefile WORKSPACE_init.php info.xml)