Commit 6d6291c4 authored by Niels Möller's avatar Niels Möller
Browse files

(OBJDUMP): Use AC_CHECK_TOOL to check for objdump.

(ASM_MARK_NOEXEC_STACK): Use $OBJDUMP when examining the object file.

Rev: src/nettle/configure.ac:1.64
parent a7161db1
......@@ -78,6 +78,7 @@ fi
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_CHECK_TOOL(NM, nm, strings)
AC_CHECK_TOOL(OBJDUMP, objdump, strings)
if test "x$ac_cv_prog_cc_stdc" = xno ; then
AC_ERROR([the C compiler doesn't handle ANSI-C])
......@@ -214,7 +215,7 @@ EOF
nettle_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
if AC_TRY_EVAL(nettle_compile); then
cat conftest.out >&AC_FD_CC
objdump -x conftest.o | grep '\.note\.GNU-stack' > /dev/null \
$OBJDUMP -x conftest.o | grep '\.note\.GNU-stack' > /dev/null \
&& nettle_cv_asm_gnu_stack=yes
else
cat conftest.out >&AC_FD_CC
......
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