summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-15 03:13:23 -0500
committermidipix <writeonce@midipix.org>2018-12-15 03:15:01 -0500
commitc457f5783fd5f52a648cf53074960e23bfc50da6 (patch)
tree8d5216824303a06b3724a48179dd0e564d0b5e8e
parent5025501c77fe186f3ae23d0e8825482277c142e0 (diff)
downloadsbpython2-c457f5783fd5f52a648cf53074960e23bfc50da6.tar.bz2
sbpython2-c457f5783fd5f52a648cf53074960e23bfc50da6.tar.xz
cfgtest.sh: support presence/absence tests of headers in sub-directories.
-rw-r--r--sofort/cfgtest.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/sofort/cfgtest.sh b/sofort/cfgtest.sh
index 77ce1ea..a0dcc64 100644
--- a/sofort/cfgtest.sh
+++ b/sofort/cfgtest.sh
@@ -106,8 +106,8 @@ cfgtest_header_presence()
> /dev/null 2>/dev/null \
|| return
- mb_internal_str=$(printf '%s%s' '-DHAVE_' "$@" \
- | sed -e 's/\./_/g' \
+ mb_internal_str=$(printf '%s%s' '-DHAVE_' "$@" \
+ | sed -e 's/\./_/g' -e 's@/@_@g' \
| tr "[:lower:]" "[:upper:]")
cfgtest_cflags_append "$mb_internal_str"
@@ -124,7 +124,7 @@ cfgtest_header_absence()
&& return
mb_internal_str=$(printf '%s%s' '-DHAVE_NO_' "$@" \
- | sed -e 's/\./_/g' \
+ | sed -e 's/\./_/g' -e 's@/@_@g' \
| tr "[:lower:]" "[:upper:]")
cfgtest_cflags_append "$mb_internal_str"