From 07fb1fb09c7f83d723aeb370ccf4e10254ddf583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 15 Feb 2005 14:39:22 +0000 Subject: Nonstandard libesmtp dir (Dirk Tilger). --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.1-4-g5e80