Imported Upstream version 1.1~20101101~SE~8e5f8df~SYSYNC~2a247a4
[platform/upstream/syncevolution.git] / autogen.sh
1 #!/bin/sh
2
3 set -e
4
5 # wipe out temporary autotools files, necessary
6 # when switching between distros
7 rm -rf aclocal.m4 m4 autom4te.cache config.guess config.sub config.h.in configure depcomp install-sh ltmain.sh missing 
8
9 # intltoolize fails to copy its macros unless m4 exits
10 mkdir m4
11
12 sh ./gen-autotools.sh
13
14 libtoolize -c
15 glib-gettextize --force --copy
16 intltoolize --force --copy --automake
17 aclocal -I m4 -I m4-repo
18 autoheader
19 automake -a -c -Wno-portability
20 autoconf
21
22 # This hack is required for the autotools on Debian Etch.
23 # Without it, configure expects a po/Makefile where
24 # only po/Makefile.in is available. This patch fixes
25 # configure so that it uses po/Makefile.in, like more
26 # recent macros do.
27 perl -pi -e 's;test ! -f "po/Makefile";test ! -f "po/Makefile.in";; s;mv "po/Makefile" "po/Makefile.tmp";cp "po/Makefile.in" "po/Makefile.tmp";;' configure