[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: configure not detecting BerkeleyDB (ITS#2115)



You should be using CPPFLAGS to specify preprocessor options, not CFLAGS. See
this FAQ-o-Matic article. http://www.openldap.org/faq/data/cache/43.html

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of afm@othello.ch
> Sent: Friday, September 27, 2002 2:33 PM
> To: openldap-its@OpenLDAP.org
> Subject: configure not detecting BerkeleyDB (ITS#2115)
>
>
> Full_Name: Andreas Mueller
> Version: 2.1.5
> OS: Solaris 2.6
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (193.5.25.27)
>
>
> It seems that configure does not pick up the CFLAGS
> environment variables when probing for the BerkeleyDB. I've BerkeleyDB
> in /usr/local/BerkeleyDB.4.1, so I set
> CFLAGS=-I/usr/local/BerkeleyDB.4.1/include.
> However, configure uses CFLAGS for all tests except when
> probing for the
> BerkeleyDB, so it comes as no surprise that id does not find the db.h
> header. If i set CC to gcc
> -I/usr/local/BerkeleyDB.4.1/include, everhthing
> works (but this is of course not the how CFLAGS and LDFLAGS
> were intended).
>
>