]> saetta.ns0.it Git - zakform/libzakform/blob - autogen.sh
Enabled gtk-doc.
[zakform/libzakform] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3 test -n "$srcdir" || srcdir=`dirname "$0"`
4 test -n "$srcdir" || srcdir=.
5
6 olddir=`pwd`
7
8 cd $srcdir
9
10 (test -f configure.ac) || {
11 echo "*** ERROR: Directory "\`$srcdir\'" does not look like the top-level project directory ***"
12 exit 1
13 }
14
15 PKG_NAME=`autoconf --trace 'AC_INIT:$1' configure.ac`
16
17 if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
18 echo "*** WARNING: I am going to run \`configure' with no arguments." >&2
19 echo "*** If you wish to pass any to it, please specify them on the" >&2
20 echo "*** \`$0\' command line." >&2
21 echo "" >&2
22 fi
23
24 set -x
25 aclocal --install || exit 1
26 glib-gettextize --force --copy || exit 1
27 gtkdocize --copy || exit 1
28 intltoolize --force --copy --automake || exit 1
29 autoreconf --verbose --force --install -Wno-portability || exit 1
30
31 cd $olddir
32 if [ "$NOCONFIGURE" = "" ]; then
33 $srcdir/configure "$@" || exit 1
34
35 if [ "$1" = "--help" ]; then
36 exit 0
37 else
38 echo "Now type \`make\' to compile $PKG_NAME" || exit 1
39 fi
40 else
41 echo "Skipping configure process."
42 fi
43
44 { set +x; } 2>/dev/null