summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2005-02-15 14:39:22 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2005-02-15 14:39:22 +0000
commit07fb1fb09c7f83d723aeb370ccf4e10254ddf583 (patch)
treeb9f734ca058861087dc442f9d9a724d3d915e58a
parentd86c57b222d8fef42944aafe34454827da4a0efc (diff)
Nonstandard libesmtp dir (Dirk Tilger).
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5745d8d..6eeaba9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,16 @@ AC_PROG_LN_S
AC_PROG_YACC
dnl Check for libESMTP
+AC_ARG_WITH(libesmtp,
+ AC_HELP_STRING([--with-libesmtp=DIR],
+ [use libesmtp library from (prefix) directory DIR]),
+ ,)
+if test "$with_libesmtp" != "no" -a "$with_libesmtp" != "yes"
+then
+ CPPFLAGS="$CPPFLAGS -I$with_libesmtp/include"
+ LDFLAGS="$LDFLAGS -L$with_libesmtp/lib"
+ AC_CHECK_HEADER(libesmtp.h, ,[AC_MSG_ERROR([libesmtp.h not found in $with_libesmtp])])
+fi
AC_MSG_CHECKING(for libESMTP)
if libesmtp-config --version > /dev/null 2>&1
then