* bug fix in socket.c and cosmectic change
* use uname instead of MACHTYPE in bootstrap.sh
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@830
941a03a8-eaeb-0310-b9a0-
b1bbd8fe43fe
local P
local V
- V=$(echo "$VERSION" | sed -e 's,\.,,g')
+ V=$(echo "$2" | sed -e 's,\.,,g')
if type -p "$1$V" &> /dev/null ; then
P="$1$V"
"$LIBTOOLIZE" -c --force
run_versioned aclocal "$VERSION" -I common
- autoconf -Wall
- autoheader
+ run_versioned autoconf 2.59 -Wall
+ run_versioned autoheader 2.59
run_versioned automake "$VERSION" -a -c --foreign
if test "x$NOCONFIGURE" = "x"; then
}
#elif IP_RECVIF
{
- struct sockaddr_dl *pkti;
+ struct sockaddr_dl *sdl;
cmsg->cmsg_type = IP_RECVIF;
- pkti = (struct sockaddr_dl*) (cmsg_data + sizeof(struct cmsghdr));
- pkti->sdl_index = interface;
+ sdl = (struct sockaddr_dl*) (cmsg_data + sizeof(struct cmsghdr));
+ sdl->sdl_index = interface;
}
#elif IP_RECVINTERFACE
{
u_short *i;
cmsg->cmsg_type = IP_RECVINTERFACE;
- i = (u_short *) (cmsg_data + sizeof(u_short));
+ i = (u_short *) (cmsg_data + sizeof(struct cmsghdr));
memcpy(&i, CMSG_DATA (cmsg), sizeof(u_short));
}
#endif
# Feel free to add your own custom flags in here -Lathiat
-case "$MACHTYPE" in
- powerpc-apple-darwin8.0)
+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 --disable-monodoc --disable-mono --disable-qt3 --disable-qt4 --disable-xmltoman --prefix=/opt --with-distro=none --disable-python"
+ FLAGS="$FLAGS --disable-monodoc --disable-mono --disable-qt3 --disable-qt4 --disable-xmltoman --prefix=/opt --with-distro=none --disable-python --disable-manpages"
+ ;;
+ 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 --disable-monodoc --disable-mono --disable-qt3 --disable-qt4 --disable-xmltoman --prefix=/opt --with-distro=none --disable-python --disable-dbus --disable-glib --disable-gtk --disable-manpages"
+ ;;
+ Linux)
;;
esac