From cdc1366b2c37f6d6d86c594678d20d2feac81e8e Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 23 Feb 2010 15:27:18 +0100 Subject: [PATCH] Make it portable; test uses = for string comparison (not ==). Indent. --- buildconf | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/buildconf b/buildconf index 9eee2ba..558dcb6 100755 --- a/buildconf +++ b/buildconf @@ -2,20 +2,15 @@ LIBTOOLIZE="libtoolize" -if [ "x`which $LIBTOOLIZE`" == "x" ]; -then - LIBTOOLIZE="glibtoolize"; +if [ "x`which $LIBTOOLIZE`" = "x" ]; then + LIBTOOLIZE="glibtoolize" fi -if [ "x`which $LIBTOOLIZE`" == "x" ]; -then - echo "Neither libtoolize nor glibtoolize could be found!"; - exit 1 +if [ "x`which $LIBTOOLIZE`" = "x" ]; then + echo "Neither libtoolize nor glibtoolize could be found!" + exit 1 fi - - - ${LIBTOOLIZE} --copy --automake --force ${ACLOCAL:-aclocal} -I m4 $ACLOCAL_FLAGS ${AUTOHEADER:-autoheader}