updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / pidgin-mtn / autogen.sh
blob0ac8cdb5a39ecda7a309823d126deded574e3a35
1 #!/bin/sh
3 CONFIGURE_ARGS=""
4 if [ -f configure.args ] ; then
5 . configure.args
6 fi
8 (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || {
9 echo;
10 echo "You must have glib-gettextize installed to compile Pidgin.";
11 echo;
12 exit 1;
15 (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
16 echo;
17 echo "You must have intltool installed to compile Pidgin.";
18 echo;
19 exit 1;
22 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
23 echo;
24 echo "You must have libtool installed to compile Pidgin.";
25 echo;
26 exit 1;
29 (automake --version) < /dev/null > /dev/null 2>&1 || {
30 echo;
31 echo "You must have automake installed to compile Pidgin.";
32 echo;
33 exit 1;
36 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
37 echo;
38 echo "You must have autoconf installed to compile Pidgin.";
39 echo;
40 exit 1;
43 echo "Generating configuration files for Pidgin, please wait...."
44 echo;
46 echo "Running libtoolize, please ignore non-fatal messages...."
47 echo n | libtoolize --copy --force || exit 1;
49 # Add other directories to this list if people continue to experience
50 # brokennesses ... Obviously the real answer is for them to fix it
51 # themselves, but for Luke's sake we have this.
52 for dir in "/usr/local/share/aclocal" \
53 "/opt/gnome-1.4/share/aclocal"
55 if test -d $dir ; then
56 ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $dir"
58 done
60 libtoolize -c -f --automake
61 glib-gettextize --force --copy
62 intltoolize --force --copy
63 aclocal $ACLOCAL_FLAGS || exit 1;
64 autoheader || exit 1;
65 automake --add-missing --copy;
66 autoconf || exit 1;
67 automake || exit 1;
69 echo;
70 echo "Running ./configure ${CONFIGURE_ARGS} $@"
71 echo;
72 ./configure ${CONFIGURE_ARGS} $@