re-adding .pngs as binary
[dia.git] / autogen.sh
blob0145318c95d6919d530d2127f94ba394fef8c10f
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 ORIGDIR=`pwd`
8 cd $srcdir
10 PROJECT=dia
11 TEST_TYPE=-d
12 FILE=objects
14 DIE=0
16 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
17 echo
18 echo "You must have autoconf installed to compile $PROJECT."
19 echo "Download the appropriate package for your distribution,"
20 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
21 DIE=1
24 (libtool --version) < /dev/null > /dev/null 2>&1 || {
25 echo
26 echo "You must have libtool installed to compile $PROJECT."
27 echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz"
28 echo "(or a newer version if it is available)"
29 DIE=1
32 (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
33 echo
34 echo "You must have intltool installed to compile $PROJECT."
35 echo "Get ftp://ftp.gnome.org/pub/GNOME/stable/sources/intltool/intltool-0.16.tar.gz"
36 echo "(or a newer version if it is available)"
37 DIE=1
40 (automake --version) < /dev/null > /dev/null 2>&1 || {
41 echo
42 echo "You must have automake installed to compile $PROJECT."
43 echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
44 echo "(or a newer version if it is available)"
45 DIE=1
48 if test "$DIE" -eq 1; then
49 exit 1
52 test $TEST_TYPE $FILE || {
53 echo "You must run this script in the top-level $PROJECT directory"
54 exit 1
57 if test -z "$*"; then
58 echo "I am going to run ./configure with no arguments - if you wish "
59 echo "to pass any to it, please specify them on the $0 command line."
62 case $CC in
63 *lcc | *lcc\ *) am_opt=--include-deps;;
64 esac
66 echo "Running gettextize... Ignore non-fatal messages."
67 ## Hmm, we specify --force here, since otherwise things don't
68 ## get added reliably, but we don't want to overwrite intl
69 ## while making dist.
70 #echo "no" | gettextize --copy --force
71 # finally, no, we don't try to force. Otherwise gettextize spends its time
72 # telling its life in po/ChangeLog.
73 ## It has to run with --force to make po/Makefile.in.in, though
74 if [ -f po/Makefile.in.in ]; then
75 gettextize --copy
76 else
77 gettextize --copy --force
80 echo "Running intltoolize"
81 intltoolize --copy --force --automake
83 echo "Running libtoolize"
84 libtoolize --copy --force
86 aclocal $ACLOCAL_FLAGS
88 autoheader$ACFLAVOUR
90 automake -a $am_opt
91 autoconf$ACFLAVOUR
93 cd $ORIGDIR
95 $srcdir/configure --enable-maintainer-mode --enable-db2html "$@"
97 echo
98 echo "Now type 'make' to compile $PROJECT."