From 3a660bc649636bc78f82722d34737ba906e80e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=91=D0=BC=D0=B0=20=D0=9C=D1=80=D0=B0=D1=87=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9?= Date: Sat, 5 Nov 2016 00:53:38 +0500 Subject: [PATCH] add handling of empty LIBTOOLIZE env variable to autotool.sh fix for miguelfreitas/twister-core#393 --- autotool.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/autotool.sh b/autotool.sh index b83759c7..249c55d1 100755 --- a/autotool.sh +++ b/autotool.sh @@ -138,6 +138,13 @@ AUTOHEADER=`echo $AUTOCONF | sed s/autoconf/autoheader/` version_check automake AUTOMAKE "automake automake-1.11 automake-1.10" $REQUIRED_AUTOMAKE_VERSION || exit 1 ACLOCAL=`echo $AUTOMAKE | sed s/automake/aclocal/` +if [ "$LIBTOOLIZE" = "" ]; then + if [ "`uname`" = "Darwin" ]; then + LIBTOOLIZE=glibtoolize + else + LIBTOOLIZE=libtoolize + fi +fi version_check libtool LIBTOOLIZE "libtoolize glibtoolize" $REQUIRED_LIBTOOL_VERSION || exit 1 ##########################################