-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
109 lines (97 loc) · 2.83 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# configure.in for liberty
# AIRT: APPLICATION FOR INCIDENT RESPONSE TEAMS
# Copyright (C) 2004 Kees Leune <[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.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# $Id$
m4_include([VERSION.m4])dnl
AC_INIT([airt], [AIRT_VERSION], [[email protected]])
AC_PREREQ(2.59)
AC_COPYRIGHT([
Copyright (C) 2005-2008 Tilburg University, The Netherlands
Copyright (C) 2009-2013 Kees Leune
])
AM_INIT_AUTOMAKE()
AC_ARG_WITH(phpdir,
AC_HELP_STRING(--with-phpdir=DIR,Location of AIRT PHP scripts that may be accessed via the web server [datadir/airt/php]),
AIRT_PHPDIR="$withval")
AC_ARG_WITH(phplibdir,
AC_HELP_STRING(--with-phplibdir=DIR,Location of PHP files that may not be accessed by the web server [datadir/airt/lib]),
AIRT_PHPLIBDIR="$withval")
AC_ARG_WITH(docdir,
AC_HELP_STRING(--with-docdir=DIR,Location of AIRT documentation [datadir/doc/airt]),
AIRT_DOCDIR="$withval")
if test -z "$AIRT_PHPDIR"
then
if test "x$prefix" = xNONE
then
AIRT_PHPDIR="$ac_default_prefix/share/airt/php"
else
AIRT_PHPDIR="$prefix/share/airt/php"
fi
fi
AC_SUBST(AIRT_PHPDIR)
if test -z "$AIRT_PHPLIBDIR"
then
if test "x$prefix" = xNONE
then
AIRT_PHPLIBDIR="$ac_default_prefix/share/airt/lib"
else
AIRT_PHPLIBDIR="$prefix/share/airt/lib"
fi
fi
AC_SUBST(AIRT_PHPLIBDIR)
if test -z "$AIRT_DOCDIR"
then
if test "x$prefix" = xNONE
then
AIRT_DOCDIR="$ac_default_prefix/share/doc/airt"
else
AIRT_DOCDIR="$prefix/share/doc/airt"
fi
fi
AC_SUBST(AIRT_DOCDIR)
BINDIR=$bindir
ETCDIR=$sysconfdir
AC_SUBST(BINDIR)
AC_SUBST(ETCDIR)
AC_SUBST(MANDIR)
AC_OUTPUT([Makefile
README
bin/Makefile
bin/airt_import
bin/airt_export
bin/airt_receive_email
bin/airt_schedule_mailbox_update
doc/Makefile
doc/examples/Makefile
doc/database/Makefile
doc/database/airtbootstrap.sql
doc/database/airtschema.sql
man/Makefile
man/airt.pod
man/airt_import.pod
man/airt_export.pod
etc/Makefile
etc/airt-apache.conf.dist
etc/airt.cfg.dist
lib/Makefile
lib/import_filters/Makefile
lib/export_wrappers/Makefile
php/Makefile
php/config.plib
php/images/Makefile
po/Makefile
])