[PD] makefile and tcl
guenter geiger
geiger at epy.co.at
Tue Dec 4 19:28:22 CET 2001
On Fri, 30 Nov 2001, Miller Puckette wrote:
> This is all stuff the "configure" script should be able to do. The funniest
> thing is that the current "configure" is mostly by Guenter who also has
> a debian system...
.. and who does constantly change the configure.in for the debian release,
because he is just to lazy to send the patches ... :)
Here is the important excerpt how the tcl header checking should look
like. (the loop is unrolled by hand to make pd compilation even faster :)
AC_CHECK_HEADER(tcl.h,,
AC_CHECK_HEADER(tcl8.1/tcl.h,CFLAGS="$CFLAGS -I /usr/include/tcl8.1",
AC_CHECK_HEADER(tcl8.2/tcl.h,CFLAGS="$CFLAGS -I /usr/include/tcl8.2",
AC_CHECK_HEADER(tcl8.3/tcl.h,CFLAGS="$CFLAGS -I /usr/include/tcl8.3",
AC_CHECK_HEADER(tcl8.4/tcl.h,CFLAGS="$CFLAGS -I /usr/include/tcl8.4",
AC_CHECK_HEADER(tcl8.5/tcl.h,CFLAGS="$CFLAGS -I /usr/include/tcl8.5",
echo "no tcl/tk header found";exit))))))
The same or similar scheme should be applied for tcl and tk library
checking ..
... and I don't think it is the best way to do it. But it should work.
Greetings
Guenter
>
> cheers
> Miller
>
> On Fri, Nov 30, 2001 at 08:19:54PM +0100, Krzysztof Czaja wrote:
> > hi,
> >
> > using mdk (how lame...), I have tk.h in /usr/include. Maybe you
> > could simply ln -s tcl8.3/tk.h after cd /usr/include?
> >
> > K.
> >
> > pix wrote:
> > >
> > > on my debian(unstable) system, every time i get a new version of pd, i
> > > find myself having to add
> > >
> > > -I/usr/include/tcl8.3
> > >
> > > to the INCLUDE line in the makefile.
> > >
> > > obviously, this isn't a particularly daunting task, but i was wondering if
> > > this is just a debian thing, or is a problem for many people?
>
More information about the Pd-list
mailing list