update PhraseLookup
[platform/upstream/libpinyin.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
6
7 PKG_NAME="libpinyin"
8
9 (test -f $srcdir/configure.ac \
10   && test -f $srcdir/README ) || {
11     echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
12     echo " top-level $PKG_NAME directory"
13     exit 1
14 }
15
16 which gnome-autogen.sh || {
17     echo "You need to install gnome-common from the GNOME CVS"
18     exit 1
19 }
20
21 (test -f $srcdir/ChangeLog) || {
22     touch $srcdir/ChangeLog
23 }
24
25 CFLAGS=${CFLAGS-"-Wall -Werror"}
26
27 ACLOCAL_FLAGS="$ACLOCAL_FLAGS"
28 REQUIRED_AUTOMAKE_VERSION=1.8
29
30 . gnome-autogen.sh "$@"