Drag build machinery into the 21st century.
[bascat] / configure.ac
diff --git a/configure.ac b/configure.ac
new file mode 100644 (file)
index 0000000..6008a4e
--- /dev/null
@@ -0,0 +1,46 @@
+dnl -*-fundamental-*-
+dnl
+dnl $Id$
+dnl
+dnl Source for auto configuration for `Bascat'
+dnl
+dnl (c) 1997 Mark Wooding
+dnl
+
+dnl----- Licensing notice ---------------------------------------------------
+dnl 
+dnl This file is part of Bascat.
+dnl 
+dnl Bascat is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU Library General Public License as
+dnl published by the Free Software Foundation; either version 2 of the
+dnl License, or (at your option) any later version.
+dnl 
+dnl Bascat is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+dnl GNU Library General Public License for more details.
+dnl 
+dnl You should have received a copy of the GNU General Public License
+dnl along with Bascat; if not, write to the Free Software Foundation,
+dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+mdw_AUTO_VERSION
+AC_INIT([bascat], AUTO_VERSION, [mdw@distorted.org.uk])
+AC_CONFIG_SRCDIR([bascat.c])
+AC_CONFIG_AUX_DIR([config])
+AM_INIT_AUTOMAKE([foreign])
+AC_PROG_CC
+AX_CFLAGS_WARN_ALL
+
+mdw_SILENT_RULES
+
+AC_SEARCH_LIBS([tcgetent], [termcap], [AC_DEFINE(HAVE_LIBTERMCAP, 1)])
+
+AC_ARG_WITH([pager],
+  AS_HELP_STRING([--with-pager=PAGER],
+                [set the default pager (default is \`more')]),
+  [AC_DEFINE(PAGER, "$withval")], [AC_DEFINE(PAGER, "more")])
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT