From cb3ea602294b5038b5f7ac21d3875a2b52342956 Mon Sep 17 00:00:00 2001 From: Richard Dale Date: Thu, 2 May 2013 11:04:57 +0100 Subject: Fix the test for ELF executables so that it works with busy box --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 849bb7b7d0..accaf9ee3b 100644 --- a/configure.in +++ b/configure.in @@ -1911,8 +1911,8 @@ AC_ARG_WITH(dln-a-out, AC_CACHE_CHECK(whether ELF binaries are produced, rb_cv_binary_elf, [AC_TRY_LINK([],[], [ -AS_CASE(["`head -1 conftest$EXEEXT | cat -e`"], -['^?ELF'*], [rb_cv_binary_elf=yes], [rb_cv_binary_elf=no])], +AS_CASE(["`head -n1 conftest$EXEEXT`"], +[*'ELF'*], [rb_cv_binary_elf=yes], [rb_cv_binary_elf=no])], rb_cv_binary_elf=no)]) if test "$rb_cv_binary_elf" = yes; then -- cgit v1.2.1