dnl dnl ChkTeX v1.5, configuration file. dnl Copyright (C) 1995-96 Jens T. Berger Thielemann dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program 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 General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. dnl dnl Contact the author at: dnl Jens Berger dnl Spektrumvn. 4 dnl N-0666 Oslo dnl Norway dnl E-mail: dnl dnl dnl Process this file with autoconf to produce a configure script. AC_INIT(ChkTeX.c) AC_SUBST(SCRIPTS) SCRIPTS= AC_SUBST(ELISPDIR) ELISPDIR= AC_ARG_ENABLE(lacheck-replace,[ --enable-lacheck-replace: Installs a lacheck replacement for the AUC-TeX interface. (Default: no).],, enable_lacheck_replace=no) AC_ARG_ENABLE(emacs-hack,[ --enable-emacs-hack: Installs a Elisp file, which makes ChkTeX available in Emacs. Must be followed by the path of your elisp files (e.g. "--enable-emacs-hack=/usr/lib/emacs/"). (Default: no).],, enable_emacs_hack=no) AC_ARG_ENABLE(debug-info,[ --enable-debug-info: Compile in miscellaneous runtime debugging information. (Default: yes).],, enable_debug_info=yes) if test "$silent" != "yes"; then cat < EOF sleep 1 cat <= 5)'; then PERL5=no AC_MSG_RESULT(no) else AC_MSG_RESULT(yes) fi fi if test "$PERL5" != no; then AC_SYS_INTERPRETER if test "$ac_cv_sys_interpreter" = "yes"; then SCRIPTS="$SCRIPTS chkweb deweb" else AC_MSG_WARN(deweb will not be installed since your system does) AC_MSG_WARN(not support the pound-bang notation.) fi else AC_MSG_WARN(deweb will not be installed since you do not have perl5.) fi AC_CHECK_PROGS(GROFF, 'groff -man -P-bu -Tlatin1' 'nroff -man', 'nroff -man') AC_PATH_PROG(LATEX, latex) AC_PATH_PROG(DVIPS, dvips) AC_PATH_PROG(LYNX, lynx) AC_PATH_PROG(LATEX2HTML, latex2html) dnl Checks for libraries. AC_CHECK_LIB(termlib, tgetent) AC_CHECK_LIB(termcap, tgetent) dnl Checks for header files. AC_HEADER_STDC AC_HEADER_DIRENT AC_CONFIG_HEADER(config.h) AC_CHECK_HEADERS(limits.h stat.h strings.h stdarg.h dnl sys/stat.h termcap.h termlib.h unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T dnl Checks for library functions. AC_FUNC_VPRINTF AC_CHECK_FUNCS(access closedir fileno isatty opendir readdir stat dnl strcasecmp strdup strlwr strtol) AC_OUTPUT(Makefile deweb MakeHTML)