[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new macros AC_FUNC_EGREP, AC_FUNC_FGREP for POSIX 1003.1-2001 suppor
From: |
Akim Demaille |
Subject: |
Re: new macros AC_FUNC_EGREP, AC_FUNC_FGREP for POSIX 1003.1-2001 support |
Date: |
05 Jun 2002 09:55:06 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) |
| Index: lib/autoconf/general.m4
| ===================================================================
| RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v
| retrieving revision 1.797
| diff -p -u -r1.797 general.m4
| --- lib/autoconf/general.m4 25 Apr 2002 08:54:47 -0000 1.797
| +++ lib/autoconf/general.m4 29 May 2002 22:10:11 -0000
| @@ -1977,7 +1977,7 @@ AC_DEFUN([_AC_RUN_LOG_STDERR],
| [{ ($2) >&AS_MESSAGE_LOG_FD
| ($1) 2>conftest.er1
| ac_status=$?
| - egrep -v '^ *\+' conftest.er1 >conftest.err
| + grep -v '^ *+' conftest.er1 >conftest.err
| rm -f conftest.er1
| cat conftest.err >&AS_MESSAGE_LOG_FD
| echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
This was not accident. I don't trust the portability of your change
here. Maybe '^ *[+]' instead? I can't find the traces of this, but
the following:
http://www.geocrawler.com/archives/3/402/2000/8/0/4274517/
| @@ -148,7 +148,7 @@ m4_defun([AC_STATE_SAVE],
| grep '^m4_defn([m4_re_word])=' >address@hidden&address@hidden
| test $? = 0 || rm -f address@hidden&address@hidden
|
| -ls -1 | egrep -v '^(at-|state-|config\.)' | sort
>address@hidden&address@hidden
| +ls -1 | sed '/^at-/d;/^state-/d;/^config\./d' | sort
>address@hidden&address@hidden
Why did you prefer sed?
| m4_define([AT_CHECK_DEFINES],
| -[AT_CHECK([[fgrep '#' config.h |
| - egrep -v
'STDC_HEADERS|STD(INT|LIB)|INTTYPES|MEMORY|PACKAGE_|STRING|SYS_(TYPES|STAT)|UNISTD']],,
| +[AT_CHECK([[sed '/#/!d
| +/INTTYPES/d
| +/MEMORY/d
| +/PACKAGE_/d
| +/STDC_HEADERS/d
| +/STDINT/d
| +/STDLIB/d
| +/STRING/d
| +/SYS_STAT/d
| +/SYS_TYPES/d
| +/UNISTD/d' config.h]],,
| [$1])])
Likewise.
- Re: new macros AC_FUNC_EGREP, AC_FUNC_FGREP for POSIX 1003.1-2001 support,
Akim Demaille <=