Drag build machinery into the 21st century.
[bascat] / configure.ac
1 dnl -*-fundamental-*-
2 dnl
3 dnl $Id$
4 dnl
5 dnl Source for auto configuration for `Bascat'
6 dnl
7 dnl (c) 1997 Mark Wooding
8 dnl
9
10 dnl----- Licensing notice ---------------------------------------------------
11 dnl
12 dnl This file is part of Bascat.
13 dnl
14 dnl Bascat is free software; you can redistribute it and/or modify
15 dnl it under the terms of the GNU Library General Public License as
16 dnl published by the Free Software Foundation; either version 2 of the
17 dnl License, or (at your option) any later version.
18 dnl
19 dnl Bascat is distributed in the hope that it will be useful,
20 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
21 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 dnl GNU Library General Public License for more details.
23 dnl
24 dnl You should have received a copy of the GNU General Public License
25 dnl along with Bascat; if not, write to the Free Software Foundation,
26 dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
28 mdw_AUTO_VERSION
29 AC_INIT([bascat], AUTO_VERSION, [mdw@distorted.org.uk])
30 AC_CONFIG_SRCDIR([bascat.c])
31 AC_CONFIG_AUX_DIR([config])
32 AM_INIT_AUTOMAKE([foreign])
33 AC_PROG_CC
34 AX_CFLAGS_WARN_ALL
35
36 mdw_SILENT_RULES
37
38 AC_SEARCH_LIBS([tcgetent], [termcap], [AC_DEFINE(HAVE_LIBTERMCAP, 1)])
39
40 AC_ARG_WITH([pager],
41 AS_HELP_STRING([--with-pager=PAGER],
42 [set the default pager (default is \`more')]),
43 [AC_DEFINE(PAGER, "$withval")], [AC_DEFINE(PAGER, "more")])
44
45 AC_CONFIG_FILES([Makefile])
46 AC_OUTPUT