[Python-Dev] libdb on by default, but no db.h
Skip Montanaro
skip@mojam.com (Skip Montanaro)
Sun, 3 Sep 2000 22:12:06 -0500 (CDT)
--+eN/JChl9G
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit
Vlad> On my AIX combo, configure assumes --with-libdb (yes) but reports
Vlad> that
Vlad> ...
Vlad> checking for db_185.h... no
Vlad> checking for db.h... no
Vlad> ...
Vlad> This leaves the bsddbmodule enabled but it can't compile,
Vlad> obviously. So this needs to be fixed ASAP.
Oops. Please try the attached patch and let me know it it runs better.
(Don't forget to run autoconf.) Besides fixing the problem you
reported, it tells users why bsddb was not supported if they asked for it
but it was not enabled.
Skip
--+eN/JChl9G
Content-Type: text/plain
Content-Description: better bsddb detection
Content-Disposition: inline;
filename="configure.in.patch"
Content-Transfer-Encoding: 7bit
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.154
diff -c -c -r1.154 configure.in
*** configure.in 2000/08/31 17:45:35 1.154
--- configure.in 2000/09/04 03:10:01
***************
*** 813,826 ****
AC_ARG_WITH(libdb,
[ --with(out)-libdb disable/enable bsddb module])
! # default is enabled
! if test -z "$with_libdb"
! then with_libdb="yes"
fi
! # if we found db.h, enable, unless with_libdb is expressly set to "no"
! if test "$ac_cv_header_db_h" = "yes" -a "$with_libdb" != "no"
! then with_libdb="yes"
! fi
if test "$with_libdb" = "no"
then
USE_BSDDB_MODULE="#"
--- 813,833 ----
AC_ARG_WITH(libdb,
[ --with(out)-libdb disable/enable bsddb module])
! # enabled by default, but db.h must be found
! if test "$ac_cv_header_db_h" = "yes"
! then
! if test "$with_libdb" != "no"
! then with_libdb="yes"
! fi
! else
! # make sure user knows why bsddb support wasn't enabled event
! # though s/he requested it
! if test "$with_libdb" = "yes"
! then echo $ac_n "(requested, but db.h was not found) $ac_c"
! fi
! with_libdb="no"
fi
!
if test "$with_libdb" = "no"
then
USE_BSDDB_MODULE="#"
--+eN/JChl9G--