Add BerkeleyDB 3 DB_THREAD detection

This commit is contained in:
Kurt Zeilenga 2000-05-25 22:14:35 +00:00
parent fa38b2edc3
commit 812ba2e81d
2 changed files with 238 additions and 214 deletions

View File

@ -315,9 +315,20 @@ AC_DEFUN([OL_BERKELEY_DB_THREAD],
main()
{
int rc;
DB_ENV env;
u_int32_t flags = DB_CREATE | DB_THREAD;
#if DB_VERSION_MAJOR > 2
DB_ENV *env = NULL;
rc = db_env_create( &env, 0 );
if( rc == 0 ) {
rc = env->open( env, NULL, NULL, flags, 0 );
}
#else
DB_ENV env;
memset( &env, '\0', sizeof(env) );
rc = db_appinit( NULL, NULL, &env, flags );
@ -325,6 +336,7 @@ main()
if( rc == 0 ) {
db_appexit( &env );
}
#endif
return rc;
}],

438
configure vendored

File diff suppressed because it is too large Load Diff