X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=configure.in;h=795af52f0ccfce0516e513c5ea882c3a1927087a;hb=4fbae683886589669e51028c7c290d5b338be96a;hp=3b03503c448727fc1d54415c0862bd9c1d49b896;hpb=59e46e96c64563d6fe80140f9961d9308dd95a21;p=ir-tcl-moved-to-github.git diff --git a/configure.in b/configure.in index 3b03503..795af52 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl IR toolkit for tcl/tk dnl (c) Index Data 1996-2001 dnl See the file LICENSE for details. -dnl $Id: configure.in,v 1.33 2001-12-03 19:23:07 adam Exp $ +dnl $Id: configure.in,v 1.36 2002-09-13 20:23:56 adam Exp $ AC_INIT(ir-tcl.h) dnl ------ Substitutions AC_SUBST(CC) @@ -20,7 +20,7 @@ AC_SUBST(RANLIB) dnl dnl ------ Build root AC_SUBST(build_root) -AC_ARG_WITH(build-root, [ --with-buildroot RPM Build root],[build_root=$withval],[build_root=""]) +AC_ARG_WITH(build-root, [ --with-build-root RPM Build root],[build_root=$withval],[build_root=""]) dnl dnl ------ Preliminary settings AC_PROG_INSTALL @@ -55,6 +55,15 @@ if test "x$tclconfig" = xNONE; then tclconfig=${prefix}/lib IRCLIENT_SHELL=${prefix}/bin/wish prefix=${saveprefix} + if test ! -r ${tclconfig}/tclConfig.sh; then + # Not found, try search for Tcl on Debian systems. + for d in /usr/lib/tcl*; do + if test -f $d/tclConfig.sh; then + tclconfig=$d + IRCLIENT_SHELL=/usr/bin/wish + fi + done + fi else IRCLIENT_SHELL=/usr/bin/wish fi