diff options
author | midipix <writeonce@midipix.org> | 2018-12-19 20:50:13 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-19 22:12:13 -0500 |
commit | 84f4cdf481cec9be61f4fb2acb99642ae9b66bcc (patch) | |
tree | 7a1ff2ae76869cb39119141cab8f96cde8414424 /project/config | |
parent | 6a10b33804f8aa52efeff7bf46174a4dfcd97b51 (diff) | |
download | sbpython3-84f4cdf481cec9be61f4fb2acb99642ae9b66bcc.tar.bz2 sbpython3-84f4cdf481cec9be61f4fb2acb99642ae9b66bcc.tar.xz |
project: custom config: handle all (n)dbm-related bits at config-time.
Diffstat (limited to 'project/config')
-rw-r--r-- | project/config/cfgdefs.sh | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh index 8e304fd..eb58356 100644 --- a/project/config/cfgdefs.sh +++ b/project/config/cfgdefs.sh @@ -187,11 +187,6 @@ cfgdefs_perform_target_tests() mb_cfgtest_makevar='LDFLAGS_NCURSES_STATIC' cfgtest_makevar_append '$(LDFLAGS_NCURSES)' - # ndbm - cfgtest_newline - cfgtest_comment 'ndbm' - cfgtest_header_presence 'ndbm.h' - # openssl cfgtest_newline cfgtest_comment 'openssl/libressl' @@ -244,6 +239,19 @@ cfgdefs_perform_target_tests() mb_cfgtest_makevar='LDFLAGS_EXPAT_STATIC' cfgtest_makevar_append '$(LDFLAGS_EXPAT)' + # ndbm + cfgtest_newline + cfgtest_comment 'ndbm' + + mb_cfgtest_makevar='CFLAGS_DBM' + cfgtest_unit_header_presence 'ndbm.h' + + mb_cfgtest_makevar='LDFLAGS_DBM' + cfgtest_makevar_append '-lgdbm_compat' + + mb_cfgtest_makevar='LDFLAGS_DBM_STATIC' + cfgtest_makevar_append '$(LDFLAGS_DBM)' + # pretty cfgdefs.mk cfgtest_newline } |