X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=bootstrap.sh;h=105bdbfe86cc7fe71dd39c7adeb4c08ed3864789;hb=75cd1639c4b68c9562a0e1af98da2e1043fe8d80;hp=3fb4fbed716814e0821e57b896e603556393dc1e;hpb=b78eacbd64af799754684e3fe3569f0ba4ec92f3;p=catta diff --git a/bootstrap.sh b/bootstrap.sh index 3fb4fbe..105bdbf 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,5 +1,4 @@ -#!/bin/bash -# $Id$ +#!/bin/sh # This file is part of avahi. # @@ -18,31 +17,45 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -run_versioned() { - local P - type -p "$1-$2" &> /dev/null && P="$1-$2" || local P="$1" - - shift 2 - "$P" "$@" -} - -if [ "x$1" = "xam" ] ; then - set -ex - run_versioned automake 1.9 -a -c --foreign - ./config.status -else - set -ex - - rm -rf autom4te.cache - rm -f config.cache - - run_versioned aclocal 1.9 - libtoolize -c --force - autoheader - run_versioned automake 1.9 -a -c --foreign - autoconf -Wall - - CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@" - - make clean -fi +FLAGS="--sysconfdir=/etc --localstatedir=/var --enable-tests --enable-compat-howl --enable-compat-libdns_sd" + +# Feel free to add your own custom flags in here -Lathiat + +case `uname -s` in + Darwin) + export LIBTOOLIZE=/opt/local/bin/glibtoolize + export CFLAGS="-I/opt/local/include" + export LDFLAGS="-L/opt/local/lib" + export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig" + FLAGS="$FLAGS --prefix=/opt/local --disable-pygtk" + ;; + FreeBSD) + cp /usr/local/share/aclocal/libtool15.m4 common + cp /usr/local/share/aclocal/pkg.m4 common + export LIBTOOLIZE=/usr/local/bin/libtoolize15 + export CFLAGS="-I/usr/local/include" + export LDFLAGS="-L/usr/local/lib" + export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" + FLAGS="$FLAGS --prefix=/opt/ --with-distro=none --disable-python --disable-dbus --disable-glib --disable-gtk" + ;; + NetBSD) + export LIBTOOLIZE=libtoolize + export CFLAGS="-I/usr/pkg/include" + export LDFLAGS="-L/usr/pkg/lib" + export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" + FLAGS="$FLAGS --disable-monodoc --disable-mono --disable-qt3 --disable-qt4 --disable-xmltoman --prefix=/opt --with-distro=none --disable-python --disable-glib --disable-gtk --disable-manpages" + ;; + Linux) + ;; +esac + +case "$USER" in + lathiat|trentl) + FLAGS="$FLAGS --disable-qt4" + ;; + sebest) + FLAGS="$FLAGS --disable-monodoc --enable-dbus=no --enable-mono=no --enable-qt3=no --enable-qt4=no --sysconfdir=/etc --localstatedir=/var --prefix=/usr --disable-manpages --disable-xmltoman" + ;; +esac + +CFLAGS="$CFLAGS -g -O0" exec ./autogen.sh $FLAGS "$@" --enable-qt3=no