OSDN Git Service

Fix -Wshadow warnings (seen on ppc-aix)
[pf3gnuchains/pf3gnuchains3x.git] / libgui / acinclude.m4
1 sinclude(../config/tcl.m4)
2
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.
6 dnl
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])
10   private_dir=""
11   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
12   if test -f ${dir}/tclInt.h ; then
13     private_dir=${dir}
14   fi
15
16   if test x"${private_dir}" = x; then
17     AC_ERROR(could not find private Tcl headers)
18   else
19     TCL_PRIVATE_INCLUDE="-I${private_dir}"
20     AC_MSG_RESULT(${private_dir})
21   fi
22 ])
23
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.
27 dnl
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])
31   private_dir=""
32   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
33   if test -f ${dir}/tkInt.h; then
34     private_dir=${dir}
35   fi
36
37   if test x"${private_dir}" = x; then
38     AC_ERROR(could not find Tk private headers)
39   else
40     TK_PRIVATE_INCLUDE="-I${private_dir}"
41     AC_MSG_RESULT(${private_dir})
42   fi
43 ])