blob: ffa5eafb2ad01d5a336a4ee9d01d52af3e4b186d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.53)
AC_INIT(esmtp, 0.2)
AC_CONFIG_SRCDIR(Makefile.am)
AM_INIT_AUTOMAKE(1.6 dist-bzip2)
AM_MAINTAINER_MODE
AC_PROG_CC
AC_PROG_CPP
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h unistd.h)
dnl getopt needs this
AC_C_CONST
AM_PROG_LEX
AC_PROG_MAKE_SET
AC_PROG_YACC
YFLAGS=-d
dnl Check for libESMTP
AC_CHECK_LIB(esmtp, smtp_start_session,
LIBS="$LIBS -lesmtp -lpthread",
AC_MSG_ERROR([*** libESMTP library not found.]),
-lpthread)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
|