diff --git a/daemon/autogen.sh b/daemon/autogen.sh
index eabb0e0edcafeba96da709afb47bb70d652cfbbc..5ff82d15c74b7185ea5787834c2afa11d8fe69da 100755
--- a/daemon/autogen.sh
+++ b/daemon/autogen.sh
@@ -15,8 +15,11 @@ fi
 
 LIBTOOLIZE=`which libtoolize || which glibtoolize`
 if test -z $LIBTOOLIZE; then
+    LIBTOOLIZE=`which glibtoolize`
+    if test -z $LIBTOOLIZE; then
         echo "*** No libtool found, please install it ***"
         exit 1
+    fi
 fi
 
 # Workaround for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565663