detection de tcl/tk sous Mac OS X + fink

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4368 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Damien Doligez 2002-02-08 19:33:57 +00:00
parent 71cf31f0e2
commit 89bbb11ca3
1 changed files with 7 additions and 0 deletions

7
configure vendored
View File

@ -1160,6 +1160,10 @@ if test $has_tk = true; then
tk_defs="-I/usr/include/tcl8.3 -I/usr/include/tk8.3"
tcl_version=`sh ./runtest $tk_defs $tk_x11_include tclversion.c`
fi
if test -z "$tcl_version"; then
tk_defs="-I/sw/include"
tcl_version=`sh ./runtest $tk_defs $tk_x11_include tclversion.c`
fi
if test -n "$tcl_version"; then
echo "tcl.h version $tcl_version found."
case $tcl_version in
@ -1215,6 +1219,9 @@ fi
if test $has_tk = true; then
if sh ./hasgot $tk_libs $tk_x11_libs $tkauxlibs Tk_SetGrid; then
echo "Tcl/Tk libraries found."
elif sh ./hasgot -L/sw/lib $tk_libs $tk_x11_libs $tkauxlibs Tk_SetGrid; then
tk_libs="-L/sw/lib $tk_libs"
echo "Tcl/Tk libraries found."
else
echo "Tcl library found."
echo "Tk library not found."