diff --git a/configure b/configure index cecba97bdb05..b850b890f3b7 100755 --- a/configure +++ b/configure @@ -7880,7 +7880,7 @@ else EOF ac_cv_visibility_hidden=no if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then - if grep '\.hidden.*foo' conftest.s >/dev/null; then + if egrep '\.(hidden|private_extern).*foo' conftest.s >/dev/null; then ac_cv_visibility_hidden=yes fi fi @@ -7905,7 +7905,7 @@ else EOF ac_cv_visibility_default=no if ${CC-cc} -fvisibility=hidden -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then - if ! grep '\.hidden.*foo' conftest.s >/dev/null; then + if ! egrep '\.(hidden|private_extern).*foo' conftest.s >/dev/null; then ac_cv_visibility_default=yes fi fi @@ -7933,8 +7933,8 @@ else EOF ac_cv_visibility_pragma=no if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then - if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then - if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then + if egrep '\.(hidden|extern_private).*foo_hidden' conftest.s >/dev/null; then + if ! egrep '\.(hidden|extern_private).*foo_default' conftest.s > /dev/null; then ac_cv_visibility_pragma=yes fi fi