aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2026-02-28 14:51:00 +0200
committerDylan Araps <dylan.araps@gmail.com>2026-02-28 14:51:00 +0200
commitebeb9d5b2757fd6cd238aa8e67c309929366d232 (patch)
tree6972dc8ec48c9a71f3da8041c66c03871335c1ae /configure
parent74596d8273552f11959fe51fb8fff84a18ca9b83 (diff)
configure: fix -DMACRO
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure b/configure
index 6c21732..149e3cd 100755
--- a/configure
+++ b/configure
@@ -75,15 +75,14 @@ case ${DPP_LEVEL:-} in '')
#
# '--prefix=/usr' -> 'export prefix=/usr'
# 'prefix=/usr' -> 'export prefix=/usr'
- # '-DWORD' -> 'export WORD' 'CFLAGS+=-DWORD'
+ # '-DWORD' -> 'export WORD' '#undef WORD\n#define WORD'
# '-DWORD=val' -> 'export WORD' '#undef WORD\n#define WORD val'
# '-UWORD' -> 'unset WORD' 'CFLAGS+=-UWORD'
#
for a do case $a in
--help) cat "$0"; exit 0 ;;
- -D*=*) mo="${mo:-}$a
+ -D*) mo="${mo:-}$a
" _a=${a#-D}; export "${_a%%=*}=" ;;
- -D*) cc_flags="$cc_flags $a"; export "${a#-D}=" ;;
-U*) cc_flags="$cc_flags $a"; unset "${a#-U}" ;;
*?=?*) export "${a#--}" ;;
esac done