Welcome to little lamb

Code » comain » commit f663b24

configure: Fix prefix name in C constants

author Olivier Brunel
2023-01-25 13:53:15 UTC
committer Olivier Brunel
2023-01-25 13:53:15 UTC
parent a230f20bf4c18f5ae37ff77ef12b6446b3610315

configure: Fix prefix name in C constants

configure +1 -1

diff --git a/configure b/configure
index ff8af79..945d22a 100755
--- a/configure
+++ b/configure
@@ -496,7 +496,7 @@ mv -f config.mk.tmp config.mk
 
 
 echo "  -> Generating config.h..."
-prefix=${name^^}
+prefix=$(printf "%s" "$name" | tr [:lower:] [:upper:] | tr -c [:alnum:] _)
 
 exec 5>&1 1>config.h.tmp
 cat <<EOF