diff options
author | Jarkko Hietaniemi <Jarkko.Hietaniemi@cc.hut.fi> | 1997-04-24 20:28:39 +0300 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-04-25 00:00:00 +1200 |
commit | 6a1b87e5041a5273b1c9d83ca925b79765943e03 (patch) | |
tree | 94f6044248fca19458752a107579713afe8260ab /Configure | |
parent | 9cb0349816f65e482495ae89139e3ee79820f17e (diff) | |
download | perl-6a1b87e5041a5273b1c9d83ca925b79765943e03.tar.gz |
Cope with a <db.h> that isn't related to DB
private-msgid: 199704241728.UAA09951@alpha.hut.fi
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -8256,13 +8256,17 @@ $define) #include <db.h> main() { -#ifdef DB_VERSION_MAJOR +#ifdef DB_VERSION_MAJOR /* DB version >= 2: not yet. */ printf("You have Berkeley DB Version %d.%d\n", DB_VERSION_MAJOR, DB_VERSION_MINOR); printf("Perl currently only supports up to version 1.86.\n"); - exit(1); + exit(2); #else - exit(0); +#if defined(_DB_H_) && defined(BTREEMAGIC) && defined(HASHMAGIC) + exit(0); /* DB version < 2: the coast is clear. */ +#else + exit(1); /* <db.h> not Berkeley DB? */ +#endif #endif } EOCP |