Fix building texi2mdoc generation
[oweals/gnunet.git] / bootstrap
1 #!/bin/sh
2 # This file is in the public domain.
3 echo "Removing folder 'libltdl'..."
4 rm -rf libltdl
5
6 echo "checking for libtoolize / libtool... "
7
8 # This is more portable than `which' but comes with
9 # the caveat of not(?) properly working on busybox's ash:
10 existence()
11 {
12     command -v "$1" >/dev/null 2>&1
13 }
14
15 if existence libtool || existence libtoolize || existence glibtoolize || existence slibtool; then
16     autoreconf -if
17     . "bin/pogen.sh"
18 else
19     echo "*** No libtoolize (libtool) or libtool found, please install it ***" >&2;
20     exit 1
21 fi