summaryrefslogtreecommitdiff
path: root/net/docsis/patches/patch-ab
blob: ef4e3c04ddbe6cacb606f58cd2eed05d713c28e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.3 2007/06/12 22:20:09 joerg Exp $

--- configure.in.orig	2005-04-26 13:17:09.000000000 +0000
+++ configure.in
@@ -16,12 +16,14 @@ if test "x$M4" = "xnotfound"; then
   AC_MSG_ERROR([M4 is required])
 else
   ac_m4_vers=`$M4 --version 2>/dev/null | head -1` ;
-  ac_is_gnu_m4=`echo $ac_m4_vers | cut -d' ' -f1`;
-  if test "x$ac_is_gnu_m4" = "xGNU"; then
+  case ${ac_m4_vers} in
+  *GNU*)
 	AC_MSG_RESULT([   found $ac_m4_vers at $M4 ])
-  else
+	;;
+  *)
 	AC_MSG_ERROR([ GNU M4 is needed	])
-  fi
+	;;
+  esac
 fi
 
 dnl check for bison, yacc won't help;