X-Git-Url: https://git.distorted.org.uk/~mdw/bascat/blobdiff_plain/85dd468c12f531710f50baff9fc9d5daad3813bb:/configure.in..HEAD:/configure.ac diff --git a/configure.in b/configure.ac similarity index 71% rename from configure.in rename to configure.ac index 17f4a72..6008a4e 100644 --- a/configure.in +++ b/configure.ac @@ -25,18 +25,22 @@ 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. -AC_INIT(bascat.c) -AM_INIT_AUTOMAKE(bascat, 1.3) - +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 -AC_PROG_INSTALL +AX_CFLAGS_WARN_ALL + +mdw_SILENT_RULES -mdw_GCC_FLAGS -mdw_CHECK_MANYLIBS(tgetent, termcap ncurses, [AC_DEFINE(HAVE_LIBTERMCAP, 1)]) -mdw_OPT_NDEBUG +AC_SEARCH_LIBS([tcgetent], [termcap], [AC_DEFINE(HAVE_LIBTERMCAP, 1)]) -AC_ARG_WITH(pager, -[ --with-pager=PAGER set the default pager (default is \`more')], +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_OUTPUT(Makefile) +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT