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
|
Description: Fix missing template for autoheader
Fixes a couple of errors with current autoheader versions
.
autoheader: warning: missing template: DEFAULT_MTA
autoheader: Use AC_DEFINE([DEFAULT_MTA], [], [Description])
autoheader: warning: missing template: MAXLINE
autoheader: warning: missing template: UMASK
autoreconf: /usr/bin/autoheader failed with exit status: 1
.
autoreconf is still not possible, see upstream bug
Forwarded: https://github.com/fln/gnarwl/issues/14
Author: Bernhard Schmidt <berni@debian.org>
Last-Update: 2019-10-02
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,7 @@
# Process this file with autoconf to produce a configure script.
AC_INIT()
AC_CONFIG_HEADERS(conf.h)
+AH_TOP([#include "static.h"])
AC_CONFIG_FILES(Makefile)
# Checks for programs.
@@ -30,8 +31,8 @@
AC_CHECK_FUNCS([iconv])
-AC_DEFINE_UNQUOTED(UMASK,$permmask)
-AC_DEFINE_UNQUOTED(MAXLINE,$maxline)
-AC_DEFINE_UNQUOTED(DEFAULT_MTA,$mta)
+AC_DEFINE_UNQUOTED(UMASK,[$permmask], [File creation mask for database files])
+AC_DEFINE_UNQUOTED(MAXLINE,[$maxline], [Maximum input buffer line length])
+AC_DEFINE_UNQUOTED(DEFAULT_MTA,[$mta], [MTA to use])
AC_OUTPUT
--- /dev/null
+++ b/static.h
@@ -0,0 +1,32 @@
+#define TIMEFACTOR 3600
+#define LDAPQUERY_MAXWAIT 10
+#define DEFAULT_SERVER "localhost"
+#define DEFAULT_QFILTER "(&(mail=$recepient)(vacationActive=TRUE)"
+#define DEFAULT_MES "vacationInfo"
+#define DEFAULT_BASE ""
+#define DEFAULT_EXPIRE 48
+#define DEFAULT_MAIL_LIMIT 256
+#define DEFAULT_MAP_SENDER "$sender"
+#define DEFAULT_MAP_RECEIVER "$recepient"
+#define DEFAULT_MAP_SUBJECT "$subject"
+#define LDAP_PROTOCOL_DETECT 0
+#define LDAP_CHARSET "UTF-8"
+#define LVL_CRIT 0
+#define LVL_WARN 1
+#define LVL_INFO 2
+#define LVL_DEBUG 3
+
+#define TRUE 1
+#define FALSE 0
+
+#ifndef BLOCKDIR
+#define BLOCKDIR "/tmp"
+#endif
+
+#ifndef CFGFILE
+#define CFGFILE "/etc/gnarwl.cfg"
+#endif
+#ifndef VERSION
+#define VERSION " <unknown>"
+#endif
+
|