diff --git a/dtool/Config.pp b/dtool/Config.pp index bb5634d1ee..1630811c67 100644 --- a/dtool/Config.pp +++ b/dtool/Config.pp @@ -438,11 +438,15 @@ #defer HAVE_FFTW $[libtest $[FFTW_LPATH],$[FFTW_LIBS]] -// Is NURBS++ installed, and where? -#define NURBSPP_IPATH /usr/local/include/nurbs++ -#define NURBSPP_LPATH /usr/local/lib -#define NURBSPP_LIBS nurbsf matrixN matrixI matrix -#defer HAVE_NURBSPP $[libtest $[NURBSPP_LPATH],$[NURBSPP_LIBS]] +// Is Berkeley DB installed, and where? Presently, this is only used +// for some applications (egg-optchar in particular) in Pandatool, and +// it is completely optional there. If available, egg-optchar takes +// advantage of it to allow the optimization of very large numbers of +// models in one pass, that might otherwise exceed available memory. +#define BDB_IPATH +#define BDB_LPATH +#define BDB_LIBS db db_cxx +#defer HAVE_BDB $[libtest $[BDB_LPATH],$[BDB_LIBS]] // Is Cg installed, and where? #if $[WINDOWS_PLATFORM] diff --git a/dtool/LocalSetup.pp b/dtool/LocalSetup.pp index 7e86c5defa..5fa45a4221 100644 --- a/dtool/LocalSetup.pp +++ b/dtool/LocalSetup.pp @@ -41,6 +41,11 @@ #else #print - Did not find fftw #endif +#if $[HAVE_BDB] +#print + Berkeley DB +#else +#print - Did not find Berkeley DB +#endif #if $[HAVE_CG] #print + Nvidia Cg High Level Shading Language #else @@ -181,8 +186,8 @@ $[cdefine HAVE_TIFF] /* Define if we have libfftw installed. */ $[cdefine HAVE_FFTW] -/* Define if we have NURBS++ installed. */ -$[cdefine HAVE_NURBSPP] +/* Define if we have Berkeley DB installed. */ +$[cdefine HAVE_BDB] /* Define if we have VRPN installed. */ $[cdefine HAVE_VRPN] diff --git a/dtool/Package.pp b/dtool/Package.pp index 7b562f85e9..5c4c998b51 100644 --- a/dtool/Package.pp +++ b/dtool/Package.pp @@ -138,6 +138,11 @@ #set FFTW_LIBS $[FFTW_LIBS] #set HAVE_FFTW $[HAVE_FFTW] +#set BDB_IPATH $[unixfilename $[BDB_IPATH]] +#set BDB_LPATH $[unixfilename $[BDB_LPATH]] +#set BDB_LIBS $[BDB_LIBS] +#set HAVE_BDB $[HAVE_BDB] + #set CG_IPATH $[unixfilename $[CG_IPATH]] #set CG_LPATH $[unixfilename $[CG_LPATH]] #set CG_LIBS $[CG_LIBS] diff --git a/dtool/pptempl/Global.pp b/dtool/pptempl/Global.pp index 4eed401bf9..e0a4eb5082 100644 --- a/dtool/pptempl/Global.pp +++ b/dtool/pptempl/Global.pp @@ -204,11 +204,11 @@ #define fftw_libs $[FFTW_LIBS] #endif -#if $[HAVE_NURBSPP] - #define nurbspp_ipath $[wildcard $[NURBSPP_IPATH]] - #define nurbspp_lpath $[wildcard $[NURBSPP_LPATH]] - #define nurbspp_cflags $[NURBSPP_CFLAGS] - #define nurbspp_libs $[NURBSPP_LIBS] +#if $[HAVE_BDB] + #define bdb_ipath $[wildcard $[BDB_IPATH]] + #define bdb_lpath $[wildcard $[BDB_LPATH]] + #define bdb_cflags $[BDB_CFLAGS] + #define bdb_libs $[BDB_LIBS] #endif #if $[HAVE_CG]