mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 21:47:15 +02:00
build: improve ranlib -D autoconf test
Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
c7405ee25c
commit
e8ef2be65b
|
@ -371,14 +371,19 @@ AC_SUBST([ARFLAGS])
|
||||||
AC_SUBST([AR_FLAGS])
|
AC_SUBST([AR_FLAGS])
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether $RANLIB supports D option])
|
AC_MSG_CHECKING([whether $RANLIB supports D option])
|
||||||
if $RANLIB -D conftest.a >/dev/null 2>/dev/null; then
|
if $RANLIB -D conftest.a >conftest.err 2>&1; then
|
||||||
|
if grep -q -- '-D' conftest.err; then
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
else
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
RANLIB="$RANLIB -D"
|
RANLIB="$RANLIB -D"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
AC_SUBST([RANLIB])
|
AC_SUBST([RANLIB])
|
||||||
|
|
||||||
|
test -f conftest.err && rm conftest.err
|
||||||
test -f conftest.a && rm conftest.a
|
test -f conftest.a && rm conftest.a
|
||||||
|
|
||||||
dnl ----------------------
|
dnl ----------------------
|
||||||
|
|
Loading…
Reference in a new issue