1dnl This file is an input file used by the GNU "autoconf" program to 2dnl generate the file "configure", which is run to configure the 3dnl Makefile in this directory. 4AC_INIT(man2tcl.c) 5# RCS: @(#) $Id: configure.in,v 1.9 2001/10/04 20:18:09 hobbs Exp $ 6 7# Recover information that Tcl computed with its configure script. 8 9#-------------------------------------------------------------------- 10# See if there was a command-line option for where Tcl is; if 11# not, assume that its top-level directory is a sibling of ours. 12#-------------------------------------------------------------------- 13 14DEF_VER=8.4 15 16AC_ARG_WITH(tcl, [ --with-tcl=DIR use Tcl $DEF_VER binaries from DIR], TCL_BIN_DIR=$withval, TCL_BIN_DIR=`cd ../../tcl$DEF_VER$TCL_PATCH_LEVEL/unix; pwd`) 17if test ! -d $TCL_BIN_DIR; then 18 AC_MSG_ERROR(Tcl directory $TCL_BIN_DIR doesn't exist) 19fi 20if test ! -f $TCL_BIN_DIR/tclConfig.sh; then 21 AC_MSG_ERROR(There's no tclConfig.sh in $TCL_BIN_DIR; perhaps you didn't specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?) 22fi 23 24. $TCL_BIN_DIR/tclConfig.sh 25 26TCL_WIN_VERSION=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION 27AC_SUBST(TCL_WIN_VERSION) 28CC=$TCL_CC 29AC_SUBST(CC) 30AC_SUBST(TCL_VERSION) 31AC_SUBST(TCL_PATCH_LEVEL) 32AC_SUBST(TCL_SRC_DIR) 33AC_SUBST(TCL_BIN_DIR) 34 35AC_OUTPUT(Makefile tcl.hpj) 36