buried more whitesapce
[torrus-plus.git] / plugins / rawexport / configure.ac
blob0c6862ac6c2e5c624751adfe077d64487f805f14
2 #  Copyright (C) 2008-2009  Stanislav Sinyagin
4 #  This program is free software; you can redistribute it and/or modify
5 #  it under the terms of the GNU General Public License as published by
6 #  the Free Software Foundation; either version 2 of the License, or
7 #  (at your option) any later version.
9 #  This program is distributed in the hope that it will be useful,
10 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 #  GNU General Public License for more details.
14 #  You should have received a copy of the GNU General Public License
15 #  along with this program; if not, write to the Free Software
16 #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 # Http Torrus plugin Autoconf script
22 AC_INIT(tp-rawexport, 1.2, ssinyagin@users.sourceforge.net)
23 AC_CONFIG_AUX_DIR(conftools)
24 AC_CANONICAL_HOST
25 AM_INIT_AUTOMAKE(1.9)
27 AC_PATH_PROG(PERL, perl, no)
29 AC_ARG_ENABLE(pkgonly,
30         [AC_HELP_STRING([--enable-pkgonly],
31                         [Skip all checking])])
33 if test "$enable_pkgonly" != yes; then
34   AC_MSG_CHECKING([environment variables])
35   if test -z "$pkghome" -o -z "$sitedir"; then
36     AC_MSG_ERROR([Missing mandatory environment variables]);
37   else
38     AC_MSG_RESULT([Ok])
39   fi
41   AC_MSG_CHECKING([if Perl threads are enabled])
42   if test ${perlithreads} -ne 1; then
43     AC_MSG_ERROR([This Torrus plugin requires Perl threads]);
44   else
45     AC_MSG_RESULT([Ok])
46   fi
49 AC_ARG_VAR(pkghome,   [[PREFIX/torrus] Place for Torrus static files])
50 AC_ARG_VAR(pkgbindir,   [[PKGHOME/bin] Torrus executables])
51 AC_ARG_VAR(cfgdefdir,   [[PKGHOME/conf_defaults] torrus-config.pl and others])
52 AC_ARG_VAR(pkgdocdir, [[PKGHOME/doc] Documentation files])
53 AC_ARG_VAR(exmpdir, [[PKGHOME/examples] Examples])
54 AC_ARG_VAR(perllibdir,  [[PKGHOME/lib] Torrus Perl libraries])
55 AC_ARG_VAR(pluginsdir,   [[PKGHOME/plugins] Plugin configurations])
56 AC_ARG_VAR(plugtorruscfgdir, [[PLUGINSDIR/torrus-config]])
57 AC_ARG_VAR(plugdevdisccfgdir, [[PLUGINSDIR/devdiscover-config]])
58 AC_ARG_VAR(plugwrapperdir, [[PLUGINSDIR/wrapper]])
59 AC_ARG_VAR(scriptsdir, [[PKGHOME/scripts] Script files])
60 AC_ARG_VAR(supdir, [[PKGHOME/sup] Supplementary files])
61 AC_ARG_VAR(webplaindir, [[SUPDIR/webplain] Web interface plain files path])
62 AC_ARG_VAR(tmpldir, [[PKGHOME/templates] Template files])
63 AC_ARG_VAR(tmpluserdir, [[SITEDIR/templates] User-defined Template files])
64 AC_ARG_VAR(distxmldir, [[PKGHOME/xmlconfig] Distribution XML config files])
65 AC_ARG_VAR(sitedir, [[SYSCONFDIR/torrus] Site configuration files])
66 AC_ARG_VAR(siteconfdir, [[SITEDIR/conf] Site configuration files])
67 AC_ARG_VAR(sitexmldir, [[SITEDIR/xmlconfig] Site XML configs])
68 AC_ARG_VAR(logdir, [[/var/log/torrus] Log files])
69 AC_ARG_VAR(piddir, [[/var/run/torrus] PID files])
70 AC_ARG_VAR(varprefix, [[/var/torrus] Common prefix for runtime data])
71 AC_ARG_VAR(cachedir, [[VARPREFIX/cache] Renderer cache])
72 AC_ARG_VAR(dbhome, [[VARPREFIX/db] Berkeley DB files])
73 AC_ARG_VAR(seslockdir, [[VARPREFIX/session_data/lock] Web session locks])
74 AC_ARG_VAR(sesstordir, [[VARPREFIX/session_data/store] Web session storage])
75 AC_ARG_VAR(wrapperdir, [[BINDIR] CLI wrapper])
76 AC_ARG_VAR(defrrddir, [[/srv/torrus/collector_rrd] Default RRD storage path])
80 AC_CONFIG_FILES([Makefile])
81 AC_OUTPUT