From patchwork Mon Jul 9 17:24:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schneider X-Patchwork-Id: 1174311 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 048F9DF235 for ; Mon, 9 Jul 2012 18:02:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752077Ab2GISCE (ORCPT ); Mon, 9 Jul 2012 14:02:04 -0400 Received: from milliways.cryptomilk.org ([78.46.80.163]:33939 "EHLO milliways.cryptomilk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752091Ab2GISCD (ORCPT ); Mon, 9 Jul 2012 14:02:03 -0400 X-Greylist: delayed 521 seconds by postgrey-1.27 at vger.kernel.org; Mon, 09 Jul 2012 14:02:03 EDT Received: from localhost (localhost [127.0.0.1]) by milliways.cryptomilk.org (Postfix) with SMTP id CA03BE0082 for ; Mon, 9 Jul 2012 19:53:17 +0200 (CEST) Received: from krikkit.fritz.box (nrbg-4d0703e0.pool.mediaWays.net [77.7.3.224]) by milliways.cryptomilk.org (Postfix) with ESMTPSA id 689E8E0DC2; Mon, 9 Jul 2012 19:25:01 +0200 (CEST) From: Andreas Schneider To: linux-cifs@vger.kernel.org, jlayton@samba.org Cc: Andreas Schneider Subject: [PATCH] Fix building with autoconf version older than 2.60. Date: Mon, 9 Jul 2012 19:24:47 +0200 Message-Id: <1341854687-17786-1-git-send-email-asn@samba.org> X-Mailer: git-send-email 1.7.10.4 X-DSPAM-Result: Innocent X-DSPAM-Processed: Mon Jul 9 19:53:17 2012 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 4ffb1a8d254851453018191 X-DSPAM-Factors: 27, Received*(nrbg, 0.40000, f95a2de+100644, 0.40000, sed)]), 0.40000, ac+b/configure, 0.40000, ac+b/configure, 0.40000, ac+44, 0.40000, a/configure+ac, 0.40000, a/configure+ac, 0.40000, 10, 0.40000, 10, 0.40000, Received*2012, 0.40000, file+changed, 0.40000, Use, 0.40000, Use, 0.40000, Date*Jul+2012, 0.40000, Subject*older, 0.40000, To*cifs, 0.40000, ), 0.40000, ), 0.40000, f95a2de, 0.40000, org>+configure, 0.40000, Date*Mon, 0.40000, 44+15, 0.40000, instead+if, 0.40000, instead+if, 0.40000, versions+Use, 0.40000, [Location+where, 0.40000 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org From: Andreas Schneider AC_PROG_SED is only avaliable in recent autoconf versions. Use AC_CHECK_PROG instead if AC_PROG_SED is not present. Signed-off-by: Andreas Schneider --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0dd1155..f95a2de 100644 --- a/configure.ac +++ b/configure.ac @@ -44,10 +44,15 @@ AC_ARG_VAR(ROOTSBINDIR, [Location where files ordinarily under /sbin should be i # Checks for programs. AC_PROG_CC -AC_PROG_SED AC_GNU_SOURCE AM_PROG_CC_C_O +# AC_PROG_SED is only avaliable in recent autoconf versions. +# Use AC_CHECK_PROG instead if AC_PROG_SED is not present. +ifdef([AC_PROG_SED], + [AC_PROG_SED], + [AC_CHECK_PROG(SED, sed, sed)]) + # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_TYPE_UID_T