[Rpm-maint] nss3/nss.h build issue

Mark Rosenstand mark at borkware.net
Fri Dec 7 10:33:11 UTC 2007


On Thu, 2007-12-06 at 19:24 +0100, Tomas Mraz wrote:
> On Thu, 2007-12-06 at 18:49 +0100, Pixel wrote:
> > on Mandriva, i need to do:
> > 
> > --- rpm-org/configure.ac.pix	2007-12-06 17:16:27.000000000 +0100
> > +++ rpm-org/configure.ac	2007-12-06 17:17:38.000000000 +0100
> > @@ -372,14 +372,14 @@ else
> >  fi
> >  save_CPPFLAGS="$CPPFLAGS"
> >  CPPFLAGS="$save_CPPFLAGS $addcppflags"
> > -AC_CHECK_HEADER([nss3/nss.h], [
> > +AC_CHECK_HEADER([nss/nss.h], [
> >    AC_CHECK_LIB(nss3, NSS_NoDB_Init, [
> >      AC_DEFINE(HAVE_LIBNSS, 1, [Define to 1 if you have the 'NSS' library (-lnss3).])
> >      WITH_NSS_INCLUDE="$addcppflags"
> >      WITH_NSS_LIB="$addlib"
> >    ])
> >  ],[
> > -  AC_MSG_ERROR([missing required header nss3/nss.h])
> > +  AC_MSG_ERROR([missing required header nss/nss.h])
> >  ])
> >  CPPFLAGS="$save_CPPFLAGS"
> >  AC_SUBST(WITH_NSS_INCLUDE)
> 
> Actually you can completely drop the path. So nss.h should be enough if
> pkg-config works fine for NSS on Mandriva. Of course the defaults for
> the compilation without pkg-config are wrong for your case.

But since upstream NSS doesn't include a .pc file, it would be nice if
the location was configurable in a way similar to Evolution, i.e.
--with-nss-includes=/usr/include/nss

Long-term it would be nice if NSS did include a pkg-config file :)




More information about the Rpm-maint mailing list