Fixed bug #188046: replaced a bashism by a POSIX compliant shell statement.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9515 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.in b/configure.in
index 59f4f2d..91ed976 100644
--- a/configure.in
+++ b/configure.in
@@ -67,7 +67,7 @@
 # If no AR variable was specified, look up the name of the archiver. Otherwise
 # do not touch the AR variable.
 if test "x$AR" = "x"; then
-  AC_PATH_PROGS([AR], ["${LD%ld}ar" "ar"], [ar])
+  AC_PATH_PROGS([AR], [`echo $LD | sed 's/ld$/ar/'` "ar"], [ar])
 fi
 AC_ARG_VAR([AR],[Archiver command])