optimize compiled modules in win32
[gajim.git] / autogen.sh
blobd6cdc69962890932db2656218630fc16b6632c84
1 #!/usr/bin/env bash
2 AM_ARGS="--add-missing --gnu --copy"
3 CONF_ARGS=""
4 if test x`uname -s 2>/dev/null` = 'xDarwin' -a -f /Library/Frameworks/GTK+.framework/Versions/Current/env; then
5 . /Library/Frameworks/GTK+.framework/Versions/Current/env
6 AM_ARGS="${AM_ARGS} --ignore-deps"
7 CONF_ARGS="${CONF_ARGS} --disable-idle --without-x"
8 fi
10 echo "[encoding: UTF-8]" > po/POTFILES.in \
11 && ls -1 data/gajim.desktop.in.in data/glade/*.glade \
12 src/*py src/common/*py src/common/zeroconf/*.py | grep -v ipython_view.py >> \
13 po/POTFILES.in || exit 1
14 if test -z `which pkg-config 2>/dev/null`;then
15 echo "***Error: pkg-config not found***"
16 echo "See README.html for build requirements."
17 exit 1
20 which glibtoolize >/dev/null 2>&1 && LIBTOOLIZE="glibtoolize" || LIBTOOLIZE="libtoolize"
22 mkdir -p config
24 intltoolize --force --automake \
25 && aclocal -I ./m4 \
26 && $LIBTOOLIZE --copy --force --automake \
27 && autoheader \
28 && autoconf \
29 && automake ${AM_ARGS} \
30 && ./configure ${CONF_ARGS} $@