1 dnl configure.in.tcldebug --
2 dnl
3 dnl autoconf rules to find tcldebug
4 dnl
5 dnl Copyright (c) 2000-2002 The Regents of the University of California.
6 dnl All rights reserved.
7 dnl
8 dnl Redistribution and use in source and binary forms, with or without
9 dnl modification, are permitted provided that the following conditions are met:
10 dnl
11 dnl A. Redistributions of source code must retain the above copyright notice,
12 dnl this list of conditions and the following disclaimer.
13 dnl B. Redistributions in binary form must reproduce the above copyright
14 dnl notice, this list of conditions and the following disclaimer in the
15 dnl documentation and/or other materials provided with the distribution.
16 dnl C. Neither the names of the copyright holders nor the names of its
17 dnl contributors may be used to endorse or promote products derived from
18 dnl this software without specific prior written permission.
19 dnl
20 dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
21 dnl IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 dnl THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 dnl PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
24 dnl LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 dnl CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 dnl SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 dnl CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 dnl ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 dnl POSSIBILITY OF SUCH DAMAGE.
31 dnl
32 dnl $Header: /usr/mash/src/repository/conf/configure.in.tcldebug,v 1.2 2002/02/03 03:02:48 lim Exp $ (USC/ISI)
33
34 AC_ARG_WITH(tcldebug, [ --with-tcldebug=path specify a pathname for the tcl debugger (path=no disables the debugger)], d=$withval, d="")
35
36 #xxx: Don't know anything about 1.8
37 TCLDEBUG_VERS="1.9 1.8 1.7"
38 pwd_vers=""
39 local_vers=""
40 for vers in $TCLDEBUG_VERS; do
41 pwd_vers="$pwd_vers $PWD/../tcl-debug-$vers"
42 local_vers="$local_vers /usr/src/local/otcl-debug-$vers"
43 done
44 TCLDEBUG_PATH="\
45 $PWD/../tcl-debug \
46 $pwd_vers
47 /usr/contrib/lib \
48 /usr/local/lib \
49 /usr/lib \
50 /usr/src/local/tcl-debug \
51 $local_vers \
52 "
53 TCLDEBUG_PATH_D="$d \
54 $d/lib \
55 $d/../lib \
56 "
57
58 NS_BEGIN_PACKAGE(tcldebug)
59
60 NS_CHECK_LIB_PATH(tcldbg,$TCLDEBUG_PATH,$d,$TCLDEBUG_PATH_D,V_LIB_TCLDEBUG,tcldebug)
61 #if $NS_PACKAGE_tcldebug_COMPLETE; then
62 # look for debugger entry point function
63 #tmpLIBS=$LIBS
64 #LIBS="$V_LIB_TCL $V_LIB_TCLDEBUG"
65
66 # the following two may be needed for linking during tcldbg CHECK_LIB
67 #AC_CHECK_LIB(m, main)
68 #AC_CHECK_LIB(dl, dlopen)
69
70 #notfound=false
71 #AC_CHECK_LIB(tcldbg, Dbg_Init, V_DEFINES="-DHAVE_Dbg_Init $V_DEFINES",notfound=true)
72 #if $notfound; then
73 # notfound=false
74 # AC_CHECK_LIB(tcldbg, Tcldbg_Init, V_DEFINES="-DHAVE_Tcldbg_Init $V_DEFINES",notfound=true)
75 #fi
76 #LIBS=$tmpLIBS
77 #if $notfound; then
78 # echo "configure: warning: Tcl debugger init point is not found. You \
79 #will not be able to use Tcl debugger." 1>&2
80 # NS_PACKAGE_tcldebug_COMPLETE=false
81 #fi
82 #fi
83
84 if $NS_PACKAGE_tcldebug_COMPLETE; then
85 NS_END_PACKAGE(tcldebug,no)
86 fi
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.