Merge branch 'upstream' into tizen
[platform/upstream/fribidi.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 test -n "$srcdir" || srcdir=`dirname "$0"`
5 test -n "$srcdir" || srcdir=.
6
7 olddir=`pwd`
8 cd $srcdir
9
10 echo -n "checking for pkg-config... "
11 which pkg-config || {
12         echo "*** No pkg-config found, please install it ***"
13         exit 1
14 }
15
16 echo -n "checking for libtoolize... "
17 which glibtoolize || which libtoolize || {
18         echo "*** No libtoolize (libtool) found, please install it ***"
19         exit 1
20 }
21
22 echo -n "checking for autoreconf... "
23 which autoreconf || {
24         echo "*** No autoreconf (autoconf) found, please install it ***"
25         exit 1
26 }
27
28 echo "running autoreconf --force --install --verbose"
29 autoreconf --force --install --verbose || exit $?
30
31 cd $olddir
32 test -n "$NOCONFIGURE" || {
33         echo "running configure $@"
34         "$srcdir/configure" "$@"
35 }