--- ./cfgfile.c.orig 2007-07-14 19:21:12.000000000 +0400 +++ ./cfgfile.c 2007-07-14 19:22:48.000000000 +0400 @@ -71,8 +71,11 @@ fp = fopen(f, "rt"); if (!fp) { - if(whinge) fprintf(stderr, "%s: %s\n", f, strerror(errno)); - goto fail; + fp = fopen(SYSCONFDIR"/iftoprc", "rt"); + if (!fp) { + if(whinge) fprintf(stderr, "%s: %s\n", f, strerror(errno)); + goto fail; + } } while (fgets(line, MAX_CONFIG_LINE, fp)) { --- ./configure.in.orig 2007-07-14 18:58:22.000000000 +0400 +++ ./configure.in 2007-07-14 19:08:43.000000000 +0400 @@ -436,6 +436,20 @@ AC_DEFINE([NEED_PROMISCUOUS_FOR_OUTGOING],1,[Enable default promiscuous mode to capture outgoing packets]) fi +# Create SYSCONFDIR #define for config.h +sysconffiledir=$sysconfdir +sysconffiledir=`( + test "x$prefix" = xNONE && prefix=$ac_default_prefix + test "x$exec_prefix" = xNONE && exec_prefix=${prefix} + # Ugly hack, but I don't see how this problem can be solved + # properly that DATAFILE_DIR had a value starting with + # "${prefix}/" instead of e.g. "/usr/local/" + eval eval echo "$sysconfdir" +)` +echo SEE: $sysconffiledir +AC_DEFINE_UNQUOTED(SYSCONFDIR,"$sysconffiledir", [Sysconf Directory]) + + dnl dnl Wahey! This might even work. dnl