2 # Copyright (C) 2014 Red Hat Inc.
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 AC_INIT([miniexpect],[1.0])
20 AM_INIT_AUTOMAKE(foreign) dnl NB: Do not [quote] this parameter.
22 m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
23 AM_SILENT_RULES([yes]) # make --enable-silent-rules the default.
25 AC_CONFIG_MACRO_DIR([m4])
29 dnl Check for basic C environment.
35 test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant])
39 dnl Enable system extensions (_GNU_SOURCE etc).
40 AC_USE_SYSTEM_EXTENSIONS
42 dnl Check support for 64 bit file offsets.
45 dnl The only dependency is libpcre (Perl Compatible Regular Expressions).
46 PKG_CHECK_MODULES([PCRE], [libpcre])
48 dnl Optional for building the manual page. This is part of Perl.
49 AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [no])
50 AM_CONDITIONAL([HAVE_POD2MAN], [test "x$POD2MAN" != "xno"])
52 dnl Produce output files.
53 AC_CONFIG_HEADERS([config.h])
55 AC_CONFIG_FILES([Makefile])