sl@0: dnl This file is an input file used by the GNU "autoconf" program to sl@0: dnl generate the file "configure", which is run to configure the sl@0: dnl Makefile in this directory. sl@0: AC_INIT(man2tcl.c) sl@0: # RCS: @(#) $Id: configure.in,v 1.9 2001/10/04 20:18:09 hobbs Exp $ sl@0: sl@0: # Recover information that Tcl computed with its configure script. sl@0: sl@0: #-------------------------------------------------------------------- sl@0: # See if there was a command-line option for where Tcl is; if sl@0: # not, assume that its top-level directory is a sibling of ours. sl@0: #-------------------------------------------------------------------- sl@0: sl@0: DEF_VER=8.4 sl@0: sl@0: AC_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`) sl@0: if test ! -d $TCL_BIN_DIR; then sl@0: AC_MSG_ERROR(Tcl directory $TCL_BIN_DIR doesn't exist) sl@0: fi sl@0: if test ! -f $TCL_BIN_DIR/tclConfig.sh; then sl@0: 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?) sl@0: fi sl@0: sl@0: . $TCL_BIN_DIR/tclConfig.sh sl@0: sl@0: TCL_WIN_VERSION=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION sl@0: AC_SUBST(TCL_WIN_VERSION) sl@0: CC=$TCL_CC sl@0: AC_SUBST(CC) sl@0: AC_SUBST(TCL_VERSION) sl@0: AC_SUBST(TCL_PATCH_LEVEL) sl@0: AC_SUBST(TCL_SRC_DIR) sl@0: AC_SUBST(TCL_BIN_DIR) sl@0: sl@0: AC_OUTPUT(Makefile tcl.hpj)