Commit 52be7f36 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl

Deal with ancient awk versions/flavors

Debian/Ubuntus default "awk" is from 1996 and does not understand
negated character lists (such as every non-comma letter: [^,]). Let's
hope 1996 perl does.

This fixes issue #56
parent cadf98b1
......@@ -660,7 +660,7 @@ m4_foreach_w([elpa_m4_kind],[real complex],[
fi
# find the number of this kernel
ELPA_2STAGE_[]m4_toupper(elpa_m4_kind)[]_DEFAULT=`grep -i '^ *X(ELPA_2STAGE_'$default_[]elpa_m4_kind[]_kernel'\>' $srcdir/elpa/elpa_constants.h.in | \
awk '// { gsub(/^[[^,]]*, */, ""); gsub(/,.*/, ""); print;}'`
perl -pe 's/^[[^,]]*, *//; s/,.*//;'`
AC_SUBST([ELPA_2STAGE_]m4_toupper(elpa_m4_kind)[_DEFAULT])
])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment