diff options
author | Trent Lloyd <lathiat@bur.st> | 2005-08-23 19:31:53 +0000 |
---|---|---|
committer | Trent Lloyd <lathiat@bur.st> | 2005-08-23 19:31:53 +0000 |
commit | a417c80df67fd640a6f66fc4ef08c7f7ddc4bccd (patch) | |
tree | da080a14abe966315007c054166e246de0f71cc7 /configure.ac | |
parent | e5496ed08b66b68c487bce6dbf06504d2d1f42cd (diff) |
* Merge changes from trunk into netlink-abstraction
git-svn-id: file:///home/lennart/svn/public/avahi/branches/netlink-abstraction@428 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 2300100..be62e38 100644 --- a/configure.ac +++ b/configure.ac @@ -47,7 +47,7 @@ AC_PROG_GCC_TRADITIONAL AC_PROG_LIBTOOL # -# Detecting the linux distro for specific things like initscripts. +# Detecting the linux distribution for specific things like init scripts. # AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the Linux distribution to target: One of debian, gentoo, archlinux or none])) if test "z$with_distro" = "z"; then @@ -59,14 +59,14 @@ fi with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' ` if test "z$with_distro" = "z"; then - echo "Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO" + AC_MSG_ERROR([Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO]) exit 1 else case $with_distro in debian|gentoo|archlinux) ;; *) - echo "Your distribution (${with_distro}) is not yet supported, init scripts and dbus configuration will not be installed! (patches welcome)" + AC_MSG_ERROR([Your distribution (${with_distro}) is not yet supported, init scripts and dbus configuration will not be installed! (patches welcome)]) ;; esac fi @@ -76,7 +76,6 @@ AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo) AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian) AM_CONDITIONAL(TARGET_ARCHLINUX, test x"$with_distro" = xarchlinux) - test_gcc_flag() { AC_LANG_CONFTEST([int main() {}]) $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null @@ -93,7 +92,7 @@ if test "x$GCC" = "xyes" ; then # Test whether rtnetlink.h can be included when compiled with -std=c99 # some distributions (e.g. archlinux) have broken headers that dont # define __u64 with -std=c99 - echo -n "checking whether rtnetlink.h can be included with -std=c99... " + AC_MSG_CHECKING([checking whether rtnetlink.h can be included with -std=c99]) OLDCFLAGS="$CFLAGS" CFLAGS="-std=c99" AC_TRY_COMPILE([#include <linux/rtnetlink.h>], [], @@ -101,9 +100,9 @@ if test "x$GCC" = "xyes" ; then if test x"$use_stdc99" = xyes; then DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS" - echo "yes" + AC_MSG_RESULT([yes]) else - echo "no" + AC_MSG_RESULT([no]) fi CFLAGS="$OLDCFLAGS" |