summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--parser.y2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 09ebee6..5745d8d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,6 +30,8 @@ else
AC_MSG_ERROR(libESMTP library not found)
fi
+AC_SUBST( sysconfdir )
+
adl_FUNC_GETOPT_LONG
AC_CONFIG_FILES([Makefile])
diff --git a/parser.y b/parser.y
index e122193..437adbf 100644
--- a/parser.y
+++ b/parser.y
@@ -127,7 +127,7 @@ void yyerror (const char *s)
#define RCFILE "esmtprc"
#define DOT_RCFILE "." RCFILE
-#define ETC_RCFILE "/etc/" RCFILE
+#define ETC_RCFILE SYSCONFDIR "/" RCFILE
void rcfile_parse(const char *_rcfile)
{