Reicher82 / python / sbpython3

Forked from python/sbpython3 3 years ago
Clone

86ce91 cfgtest.sh: cfgtest_interface_presence(): always output also a "simple" macro.

Authored and Committed by midipix 6 years ago
    cfgtest.sh: cfgtest_interface_presence(): always output also a "simple" macro.
    
        
file modified
+6 -0
sofort/cfgtest.sh CHANGED
@@ -146,6 +146,12 @@ cfgtest_interface_presence()
146
146
> /dev/null 2>/dev/null \
147
147
|| return 1
148
148
149
+ mb_internal_str=$(printf '%s%s' '-DHAVE_' "$@" \
150
+ | sed -e 's/\./_/g' \
151
+ | tr "[:lower:]" "[:upper:]")
152
+
153
+ cfgtest_cflags_append "$mb_internal_str"
154
+
149
155
return 0
150
156
}
151
157