[gaim-migrate @ 3006]
[pidgin-git.git] / autogen.sh
blob9f72b40b473594ddcff2c51e5f267133ecca5777
1 #!/bin/sh
3 (gettextize --version) < /dev/null > /dev/null 2>&1 || {
4 echo;
5 echo "You must have gettext installed to compile Gaim";
6 echo;
7 exit;
10 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
11 echo;
12 echo "You must have libtool installed to compile Gaim";
13 echo;
14 exit;
17 (automake --version) < /dev/null > /dev/null 2>&1 || {
18 echo;
19 echo "You must have automake installed to compile Gaim";
20 echo;
21 exit;
24 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
25 echo;
26 echo "You must have autoconf installed to compile Gaim";
27 echo;
28 exit;
31 # Thanks decklin
32 if test ! -f configure.in ; then
33 if autoconf --version | grep '2\.[01]' > /dev/null 2>&1 ; then
34 ln -sf configure.ac configure.in
38 echo "Generating configuration files for Gaim, please wait...."
39 echo;
41 echo "Running gettextize, please ignore non-fatal messages...."
42 echo n | gettextize --copy --force || exit;
43 echo "Running libtoolize, please ignore non-fatal messages...."
44 echo n | libtoolize --copy --force || exit;
46 aclocal -I m4 $ACLOCAL_FLAGS || exit;
47 autoheader || exit;
48 automake --add-missing --copy;
49 autoconf || exit;
50 automake || exit;
51 ./configure $@