From e9f246a0486cc03168f7a8b47fadb64a9843da30 Mon Sep 17 00:00:00 2001 From: Benedikt Meurer Date: Sun, 19 Dec 2010 12:13:19 +0100 Subject: Check for glibtoolize. --- scripts/xdt-autogen.in.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/xdt-autogen.in.in b/scripts/xdt-autogen.in.in index 3a128e4..b5a075c 100644 --- a/scripts/xdt-autogen.in.in +++ b/scripts/xdt-autogen.in.in @@ -409,7 +409,13 @@ done ## ## Check for libtoolize ## -test -z "${XDT_PROG_LIBTOOLIZE}" && XDT_PROG_LIBTOOLIZE="libtoolize" +if test -z "${XDT_PROG_LIBTOOLIZE}"; then + if type glibtoolize >/dev/null 2>&1; then + XDT_PROG_LIBTOOLIZE="glibtoolize" + elif type libtoolize >/dev/null 2>&1; then + XDT_PROG_LIBTOOLIZE="libtoolize" + fi +fi for configure_ac_file in $CONFIGURE_AC_FILES; do if grep -q "^AC_PROG_LIBTOOL" "${configure_ac_file}"; then (${XDT_PROG_LIBTOOLIZE} --version) /dev/null 2>&0 || { -- cgit v1.2.1