connwrap - initialize gnutls session in cw_connect
[centerim.git] / autogen.sh
blob8a7011cee41fdf43fda3e4f12a608cde1ef7e7e7
1 #! /bin/sh
2 # script shamelessy taken from openbox
4 sh() {
5 /bin/sh -c "set -x; $*"
8 # test if gettext-devel is installed.
10 sh autopoint --force
11 if [ "$?" -ne "0" ]; then
12 echo "You need to install the gettext-devel package"
13 exit 1
14 else
15 sh libtoolize --copy --force --automake
19 # ok, this is wierd, but apparantly every subdir
20 # in the centericq sources has its own configure
21 # no idea why. should fix this.
23 TOP=$PWD
24 traverse=`find $PWD -name "configure.[ia][nc]" -print`
25 for i in $traverse; do
26 echo Changing directory to `dirname $i`
27 cd `dirname $i` > /dev/null
28 if test "`dirname $i`" = "$TOP/kkstrtext"; then
29 #config.rpath is needed for AM_ICONV
30 #Here we should do autopoint to get the config.rpath,
31 #yet it would complain about missing po and intl directories,
32 #so we simply copy config.rpath from the top directory
33 sh cp $TOP/config.rpath .
36 if test "$PWD" = "$TOP"; then
37 sh aclocal -I m4 $ACLOCAL_FLAGS
38 else
39 sh aclocal $ACLOCAL_FLAGS
41 headneeded=`grep -E "A(M|C)_CONFIG_HEADER" configure.[ia][nc]`
42 if test ! -z "$headneeded"; then sh autoheader; fi
43 sh autoconf
44 sh automake --add-missing --copy
46 cd - > /dev/null
47 done
49 echo
50 echo You are now ready to run ./configure
51 echo enjoy!