dnl autoconf rules to find tcldebug
dnl $Header: /usr/src/mash/repository/common/conf/configure.in.tcldebug,v 1.6 1998/09/15 03:53:14 heideman Exp $ (USC/ISI)

AC_ARG_WITH(tcldebug,	--with-tcldebug=path specify a pathname for the tcl debugger (path=no disables the debugger), d=$withval, d="")

TCLDEBUG_VERS=1.7
TCLDEBUG_PATH="\
		$PWD/../tcl-debug \
		$PWD/../tcl-debug-$TCLDEBUG_VERS \
		/usr/contrib/lib \
		/usr/local/lib \
		/usr/lib \
		/usr/src/local/tcl-debug \
		/usr/src/local/otcl-debug-$TCLDEBUG_VERS \
		"
TCLDEBUG_PATH_D="$d \
		$d/lib \
		$d/../lib \
		"
TCLDEBUG_H_PATH="\
		$PWD/../tcl-debug/include \
		$PWD/../tcl-debug-$TCLDEBUG_VERS/include \
		/usr/contrib/include \
		/usr/local/include \
		/usr/include \
		/usr/src/local/tcl-debug/include \
		/usr/src/local/otcl-debug-$TCLDEBUG_VERS/include \
		"
TCLDEBUG_H_PATH_D="$d \
		$d/include \
		$d/../include \
		"

NS_BEGIN_PACKAGE(tcldebug)
NS_CHECK_HEADER_PATH(Dbg.h,$TCLDEBUG_H_PATH,$d,$TCLDEBUG_H_PATH_D,V_INCLUDE_TCLDEBUG,tcldebug)
NS_CHECK_LIB_PATH(tcldbg,$TCLDEBUG_PATH,$d,$TCLDEBUG_PATH_D,V_LIB_TCLDEBUG,tcldebug)

if $NS_PACKAGE_tcldebug_COMPLETE; then
	NS_END_PACKAGE(tcldebug,no)
fi
