# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
+VERSION=1.9
+
run_versioned() {
local P
type -p "$1-$2" &> /dev/null && P="$1-$2" || local P="$1"
if [ "x$1" = "xam" ] ; then
set -ex
- run_versioned automake 1.9 -a -c --foreign
+ run_versioned automake "$VERSION" -a -c --foreign
./config.status
else
set -ex
rm -rf autom4te.cache
rm -f config.cache
- run_versioned aclocal 1.9 -I common
+ run_versioned aclocal "$VERSION" -I common
libtoolize -c --force
autoheader
- run_versioned automake 1.9 -a -c --foreign
+ run_versioned automake "$VERSION" -a -c --foreign
autoconf -Wall
CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@"
AC_INIT([avahi],[0.1],[mzninuv (at) 0pointer (dot) de])
AC_CONFIG_SRCDIR([avahi-core])
AC_CONFIG_HEADERS([config.h])
-AM_INIT_AUTOMAKE([foreign -Wall])
+AM_INIT_AUTOMAKE([foreign 1.9 -Wall])
AC_SUBST(PACKAGE_URL, [http://www.freedesktop.org/Software/Avahi])
AC_SUBST(GLIB20_LIBS)
AC_ARG_ENABLE(gtk,
- AC_HELP_STRING([--enable-gtk],[use GTK+ (default=yes)]),
+ AS_HELP_STRING(--enable-gtk,use GTK+ (default=yes)),
[case "${enableval}" in
yes) ENABLE_GTK=yes ;;
no) ENABLE_GTK=no ;;
# D-BUS
#
AC_ARG_ENABLE(dbus,
- AC_HELP_STRING([--enable-dbus],[use DBus (default=yes)]),
+ AS_HELP_STRING(--enable-dbus,use DBus (default=yes)),
[case "${enableval}" in
yes) ENABLE_DBUS=yes ;;
no) ENABLE_DBUS=no ;;
#
# Detecting the linux distro for specific things like initscripts.
#
-AC_ARG_WITH(distro, AC_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, suse, gentoo, debian, or slackware]))
+AC_ARG_WITH(distro, AS_HELP_STRING(--with-distro=DISTRO,Specify the Linux distribution to target: One of redhat, suse, gentoo, debian, or slackware))
if test "z$with_distro" = "z"; then
AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")