| 1 |
dnl Process this file with autoconf to produce a configure script. |
| 2 |
dnl |
| 3 |
dnl Copyright (C) 2009-2013 Peter Breitenlohner <[email protected]> |
| 4 |
dnl |
| 5 |
dnl This file is free software; the copyright holder |
| 6 |
dnl gives unlimited permission to copy and/or distribute it, |
| 7 |
dnl with or without modifications, as long as this notice is preserved. |
| 8 |
dnl |
| 9 |
m4_define([vlna_version], [1.5])[]dnl using unmodified vlna source tree |
| 10 |
AC_INIT([vlna (TeX Live)], vlna_version, [[email protected]]) |
| 11 |
AC_PREREQ([2.65]) |
| 12 |
AC_CONFIG_SRCDIR([vlna-src/vlna.w]) |
| 13 |
AC_CONFIG_AUX_DIR([../../build-aux]) |
| 14 |
AC_CONFIG_MACRO_DIR([../../m4]) |
| 15 |
|
| 16 |
KPSE_BASIC([vlna], [no-define]) |
| 17 |
|
| 18 |
# Checks for programs. |
| 19 |
AC_PROG_CC |
| 20 |
|
| 21 |
# With --enable-maintainer-mode we may want to regenerate |
| 22 |
# vlna.c, vlna.tex, and vlna.dvi, this requires ctangle, cweave, and csplain. |
| 23 |
AC_CHECK_PROGS([CTANGLE], [ctangle], [none]) |
| 24 |
AC_CHECK_PROGS([CWEAVE], [cweave], [none]) |
| 25 |
AC_CHECK_PROGS([CSPLAIN], [csplain], [none]) |
| 26 |
|
| 27 |
do_cweb=$enable_maintainer_mode |
| 28 |
if test x"$do_cweb" = xyes; then |
| 29 |
case :$CTANGLE:$CWEAVE:$CSPLAIN: in |
| 30 |
*:none:*) |
| 31 |
AC_MSG_WARN([Can not regenerate vlna.c, vlna.tex, and vlna.dvi -- requires ctangle, cweave, and csplain.]) |
| 32 |
do_cweb=no |
| 33 |
;; |
| 34 |
esac |
| 35 |
fi |
| 36 |
AM_CONDITIONAL([do_cweb], [test "x$do_cweb" = xyes]) |
| 37 |
|
| 38 |
AC_SUBST([VLNA_TREE], [vlna-src]) |
| 39 |
|
| 40 |
AC_CONFIG_FILES([Makefile]) |
| 41 |
AC_OUTPUT |