]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixed bug #188046: replaced a bashism by a POSIX compliant shell statement.
authorBart Van Assche <bvanassche@acm.org>
Sat, 4 Apr 2009 14:36:51 +0000 (14:36 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sat, 4 Apr 2009 14:36:51 +0000 (14:36 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9515

configure.in

index 59f4f2d930c25d93e11bffbc0196173604afcd76..91ed9767c5f710acd16b24705aca3232561f6c90 100644 (file)
@@ -67,7 +67,7 @@ AC_PROG_RANLIB
 # 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])