On Tue, Mar 02, 2004, Dennis McRitchie wrote:

> > > 3) tiff: emacs looks for tiff header files in specified include
> > > directories only. Since the OpenPKG tiff package put them in a tiff
> > > subdirectory within the OpenPKG include directory, they were not found
> > > by emacs and therefore not used. Note that both the RedHat 9 package
> > > and the sunfreeware package places them in /usr/include and
> > > /usr/local/include respectively, where they can be found by emacs. So
> > > I changed the package to place them where they are needed. I saw that
> > > you provide 12 header files while the RedHat 9 and sunfreeware
> > > packages only provide 4: tiff.h, tiffconf.h, tiffio.h, and tiffvers.h
> > > . I'm not sure what the other 8 are used for, but I put all 12 in the
> > > standard OpenPKG include directory. You may prefer to only put the 4
> > > major header files there and leave the other 8 in the tiff
> > > subdirectory. The same change may need to be applied to your newer
> > > v3.6.1 package. [...]
> >
> > Err... this then might fix Emacs but will perhaps breaks lots
> > of other packages which search explicitly for Tiff in the
> > subdir. Best is to fix Emacs here also to search it in the
> > subdir. How can this be achieved?
>
> I can look into that, but before I do, are you sure that this will break
> other packages? As I wrote, neither the Redhat 9's
> libtiff-devel-3.5.7-11.i386.rpm nor Sunfreeware's
> tiff-3.6.1-sol9-sparc-local.gz packages install their 4 header files in a
> tiff subdirectory. In fact I just went to the libtiff.org website and
> downloaded their v3.6.1 tarball, and it installs its header files into
> /usr/local/include by default. Also, their documentation shows that to
> compile a program with tiff, you should use #include "tiffio.h", not
> #include "tiff/tiffio.h".

Well, I do not mean that other packages use "tiff/tiff.h", but the
other packages explicitly use -I<prefix>/include/tiff to locate the
stuff (see %{l_cppflags} for this). This we would have to change in all
other packages. OTOH if a package has a larger set of includes, it is
reasonable to place the stuff into its own subdir. So is a "%{l_cppflags
tiff .}" enough for Emacs to find the <prefix>/include/tiff/ files?

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to