1 sinclude(../config/tcl.m4)
3 dnl Find the location of the private Tcl headers
4 dnl When Tcl is installed, this is TCL_INCLUDE_SPEC/tcl-private/generic
5 dnl When Tcl is in the build tree, this is not needed.
7 dnl Note: you must use first use SC_LOAD_TCLCONFIG!
8 AC_DEFUN([CY_AC_TCL_PRIVATE_HEADERS], [
9 AC_MSG_CHECKING([for Tcl private headers])
11 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
12 if test -f ${dir}/tclInt.h ; then
16 if test x"${private_dir}" = x; then
17 AC_ERROR(could not find private Tcl headers)
19 TCL_PRIVATE_INCLUDE="-I${private_dir}"
20 AC_MSG_RESULT(${private_dir})
24 dnl Find the location of the private Tk headers
25 dnl When Tk is installed, this is TK_INCLUDE_SPEC/tk-private/generic
26 dnl When Tk is in the build tree, this not needed.
28 dnl Note: you must first use SC_LOAD_TKCONFIG
29 AC_DEFUN([CY_AC_TK_PRIVATE_HEADERS], [
30 AC_MSG_CHECKING([for Tk private headers])
32 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
33 if test -f ${dir}/tkInt.h; then
37 if test x"${private_dir}" = x; then
38 AC_ERROR(could not find Tk private headers)
40 TK_PRIVATE_INCLUDE="-I${private_dir}"
41 AC_MSG_RESULT(${private_dir})