Set default config and log files based on configure.
Note that these defines cannot be placed in config.h, since they
depend on the prefix, which must be expanded by make. (Philip Craig)
-INCLUDES = $(all_includes) -I$(top_srcdir)/include
+AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include \
+ -DULOGD_CONFIGFILE="\"$(sysconfdir)/ulogd.conf\"" \
+ -DULOGD_LOGFILE_DEFAULT="\"$(localstatedir)/log/ulogd.log\""
sbin_PROGRAMS = ulogd
#define DEBUGP(format, args...)
#endif
-/* default config parameters, if not changed in configfile */
-#ifndef ULOGD_LOGFILE_DEFAULT
-#define ULOGD_LOGFILE_DEFAULT "/var/log/ulogd.log"
-#endif
-
-/* where to look for the config file */
-#ifndef ULOGD_CONFIGFILE
-#define ULOGD_CONFIGFILE "/usr/local/etc/ulogd.conf"
-#endif
-
#define COPYRIGHT \
"Copyright (C) 2000-2005 Harald Welte <laforge@netfilter.org>\n"