3 # The logic for finding the right libtoolize is taken from libcurl's buildconf
5 #--------------------------------------------------------------------------
6 # findtool works as 'which' but we use a different name to make it more
7 # obvious we aren't using 'which'! ;-)
16 # echo "checks for $file in $path" >&2
17 if test -f "$path/$file"; then
25 # this approach that tries 'glibtool' first is some kind of work-around for
26 # some BSD-systems I believe that use to provide the GNU libtool named
27 # glibtool, with 'libtool' being something completely different.
28 libtool=`findtool glibtool 2>/dev/null`
29 if test ! -x "$libtool"; then
30 libtool=`findtool ${LIBTOOL:-libtool}`
33 if test -z "$LIBTOOLIZE"; then
34 # set the LIBTOOLIZE here so that glibtoolize is used if glibtool was found
35 # $libtool is already the full path
36 libtoolize="${libtool}ize"
38 libtoolize=`findtool $LIBTOOLIZE`
41 ${libtoolize} --copy --automake --force
42 ${ACLOCAL:-aclocal} -I m4 $ACLOCAL_FLAGS
43 ${AUTOHEADER:-autoheader}
45 ${AUTOMAKE:-automake} --add-missing