Support DLZ filesystem detection in feature-test

Do not use variable from configure to detect the feature.
This commit is contained in:
Petr Menšík
2019-01-30 15:12:54 +01:00
parent 03dcdb88a2
commit 759a7b4ce3
5 changed files with 12 additions and 4 deletions

View File

@@ -47,6 +47,7 @@ usage() {
fprintf(stderr, " --ipv6only=no\n");
fprintf(stderr, " --with-idn\n");
fprintf(stderr, " --with-lmdb\n");
fprintf(stderr, " --with-dlz-filesystem\n");
}
int
@@ -150,6 +151,14 @@ main(int argc, char **argv) {
#endif
}
if (strcmp(argv[1], "--with-dlz-filesystem") == 0) {
#ifdef DLZ_FILESYSTEM
return (0);
#else
return (1);
#endif
}
if (strcmp(argv[1], "--ipv6only=no") == 0) {
#ifdef WIN32
return (0);