Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > dde910cc16c65bfe216438d415764ce3 > files > 3

ip-sentinel-0.12-12.mga5.src.rpm

Index: ip-sentinel-0.12/configure.ac
===================================================================
--- ip-sentinel-0.12.orig/configure.ac
+++ ip-sentinel-0.12/configure.ac
@@ -17,7 +17,7 @@
 
 AC_INIT(ip-sentinel, 0.12, enrico.scholz@informatik.tu-chemnitz.de, [ip-sentinel])
 AC_CONFIG_SRCDIR([src/antidos.c])
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADER([config.h])
 
 AM_INIT_AUTOMAKE([gnits dist-bzip2 subdir-objects])
 AM_MAINTAINER_MODE
@@ -25,11 +25,18 @@ AM_MAINTAINER_MODE
 AC_CANONICAL_BUILD
 AC_CANONICAL_HOST
 
-if test "$host_os" != "linux-gnu"; then
-	AC_MSG_ERROR(["Sorry, build is only supported for GNU/Linux"])
-fi
-
-if test "$build_os" != "linux-gnu"; then
+case "$host_os" in
+	linux-gnu*)
+		;;
+	*)
+		AC_MSG_ERROR(["Sorry, build is only supported for GNU/Linux"])
+		;;
+esac
+
+case "$build_os" in
+	linux-gnu*)
+		;;
+	*)
 	AC_MSG_WARN([
 ****************************
 
@@ -38,7 +45,8 @@ probably. To have a minimal chance to su
 GNU 'make' will be used.
 
 ****************************])
-fi
+		;;
+esac
 
 
 username=nobody