]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(OBJDUMP): Use AC_CHECK_TOOL to check for objdump.
authorNiels Möller <nisse@lysator.liu.se>
Fri, 14 Oct 2005 19:46:54 +0000 (21:46 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 14 Oct 2005 19:46:54 +0000 (21:46 +0200)
(ASM_MARK_NOEXEC_STACK): Use $OBJDUMP when examining the object file.

Rev: src/nettle/configure.ac:1.64

configure.ac

index 55fc3e3029077d6b3c446fd9baa0649bcf1cc299..039f64fc09f6925f504f6a334c30a52952470293 100644 (file)
@@ -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