changeset: 17030:df4ce002502d
tag: tip
user: Pavel Kopyl
date: Tue Jan 26 18:48:55 2016 +0300
summary: Fix wrong prefix checking of global variables.
diff -r 7421da954a7b -r df4ce002502d acinclude.m4
--- a/acinclude.m4 Fri Jan 15 22:42:22 2016 +0100
+++ b/acinclude.m4 Tue Jan 26 18:48:55 2016 +0300
@@ -1754,9 +1754,9 @@
gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&AC_FD_CC"
if AC_TRY_EVAL(gmp_compile); then
$NM conftest.$OBJEXT >conftest.out
- if grep _gurkmacka conftest.out >/dev/null; then
+ if grep -E "(^|[[[:blank:]]])_gurkmacka$" conftest.out >/dev/null; then
gmp_cv_asm_underscore=yes
- elif grep gurkmacka conftest.out >/dev/null; then
+ elif grep -E "(^|[[[:blank:]]])gurkmacka$" conftest.out >/dev/null; then
gmp_cv_asm_underscore=no
else
echo "configure: $NM doesn't have gurkmacka:" >&AC_FD_CC