summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Dale <richard.dale@codethink.co.uk>2013-05-02 11:04:57 +0100
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2014-05-03 17:26:03 +0000
commitc823aca86d6bd34585610591f5e2a66a98b23f64 (patch)
tree7c9048a8120dc1613ce1c40b935c2583c23f79d4
parent6b36202a01c301d9c43c1e5351287021e704fbd9 (diff)
downloadruby-c823aca86d6bd34585610591f5e2a66a98b23f64.tar.gz
Fix the test for ELF executables so that it works with busy box
-rw-r--r--configure.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index f49a34c981..6dda5bb610 100644
--- a/configure.in
+++ b/configure.in
@@ -2218,8 +2218,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