root/trunk/autogen.sh

Revision 9693, 1.0 kB (checked in by js, 6 months ago)

Use glibtoolize if available, we need this on OS X with MacPorts?.

  • Property svn:executable set to *
Line 
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
9
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 src/osx/*.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
18  fi
19
20  which glibtoolize >/dev/null 2>&1 && LIBTOOLIZE="glibtoolize" || LIBTOOLIZE="libtoolize"
21
22  intltoolize --force --automake \
23  && aclocal -I ./m4 \
24  && $LIBTOOLIZE --copy --force --automake \
25  && autoheader \
26  && autoconf  \
27  && automake ${AM_ARGS} \
28  && ./configure ${CONF_ARGS} $@
Note: See TracBrowser for help on using the browser.