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

--- configure.orig	2007-06-12 22:06:24.000000000 +0000
+++ configure
@@ -19510,15 +19510,17 @@ echo "$as_me: error: M4 is required" >&2
    { (exit 1); exit 1; }; }
 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*)
 	echo "$as_me:$LINENO: result:    found $ac_m4_vers at $M4 " >&5
-echo "${ECHO_T}   found $ac_m4_vers at $M4 " >&6
-  else
+	echo "${ECHO_T}   found $ac_m4_vers at $M4 " >&6
+	;;
+  *)
 	{ { echo "$as_me:$LINENO: error:  GNU M4 is needed	" >&5
 echo "$as_me: error:  GNU M4 is needed	" >&2;}
    { (exit 1); exit 1; }; }
-  fi
+	;;
+  esac
 fi