os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/tools/configure.in
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 dnl	This file is an input file used by the GNU "autoconf" program to
     2 dnl	generate the file "configure", which is run to configure the
     3 dnl	Makefile in this directory.
     4 AC_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 
    14 DEF_VER=8.4
    15 
    16 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`)
    17 if test ! -d $TCL_BIN_DIR; then
    18     AC_MSG_ERROR(Tcl directory $TCL_BIN_DIR doesn't exist)
    19 fi
    20 if 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?)
    22 fi
    23 
    24 . $TCL_BIN_DIR/tclConfig.sh
    25 
    26 TCL_WIN_VERSION=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION
    27 AC_SUBST(TCL_WIN_VERSION)
    28 CC=$TCL_CC
    29 AC_SUBST(CC)
    30 AC_SUBST(TCL_VERSION)
    31 AC_SUBST(TCL_PATCH_LEVEL)
    32 AC_SUBST(TCL_SRC_DIR)
    33 AC_SUBST(TCL_BIN_DIR)
    34 
    35 AC_OUTPUT(Makefile tcl.hpj)