3023 |
best implementation. |
best implementation. |
3024 |
@end defmac |
@end defmac |
3025 |
|
|
3026 |
|
@defmac AC_PROG_EGREP |
3027 |
|
@acindex PROG_EGREP |
3028 |
|
@ovindex EGREP |
3029 |
|
Check for @code{grep -E} and @code{egrep}, in that order, and set |
3030 |
|
output variable @code{EGREP} to the first one that is found. |
3031 |
|
@end defmac |
3032 |
|
|
3033 |
|
@defmac AC_PROG_FGREP |
3034 |
|
@acindex PROG_FGREP |
3035 |
|
@ovindex FGREP |
3036 |
|
Check for @code{grep -F} and @code{fgrep}, in that order, and set |
3037 |
|
output variable @code{FGREP} to the first one that is found. |
3038 |
|
@end defmac |
3039 |
|
|
3040 |
@defmac AC_PROG_INSTALL |
@defmac AC_PROG_INSTALL |
3041 |
@acindex PROG_INSTALL |
@acindex PROG_INSTALL |
5487 |
@defmac AC_EGREP_HEADER (@var{pattern}, @var{header-file}, @var{action-if-found}, @ovar{action-if-not-found}) |
@defmac AC_EGREP_HEADER (@var{pattern}, @var{header-file}, @var{action-if-found}, @ovar{action-if-not-found}) |
5488 |
@acindex EGREP_HEADER |
@acindex EGREP_HEADER |
5489 |
If the output of running the preprocessor on the system header file |
If the output of running the preprocessor on the system header file |
5490 |
@var{header-file} matches the @code{egrep} regular expression |
@var{header-file} matches the extended regular expression |
5491 |
@var{pattern}, execute shell commands @var{action-if-found}, otherwise |
@var{pattern}, execute shell commands @var{action-if-found}, otherwise |
5492 |
execute @var{action-if-not-found}. |
execute @var{action-if-not-found}. |
5493 |
@end defmac |
@end defmac |
5509 |
@var{program} is the text of a C or C++ program, on which shell |
@var{program} is the text of a C or C++ program, on which shell |
5510 |
variable, back quote, and backslash substitutions are performed. If the |
variable, back quote, and backslash substitutions are performed. If the |
5511 |
output of running the preprocessor on @var{program} matches the |
output of running the preprocessor on @var{program} matches the |
5512 |
@code{egrep} regular expression @var{pattern}, execute shell commands |
extended regular expression @var{pattern}, execute shell commands |
5513 |
@var{action-if-found}, otherwise execute @var{action-if-not-found}. |
@var{action-if-found}, otherwise execute @var{action-if-not-found}. |
5514 |
|
|
5515 |
This macro calls @code{AC_PROG_CPP} or @code{AC_PROG_CXXCPP} (depending |
This macro calls @code{AC_PROG_CPP} or @code{AC_PROG_CXXCPP} (depending |
9684 |
@item @command{egrep} |
@item @command{egrep} |
9685 |
@c ------------------ |
@c ------------------ |
9686 |
@prindex @command{egrep} |
@prindex @command{egrep} |
9687 |
|
@acronym{POSIX} 1003.1-2001 no longer requires @command{egrep}, |
9688 |
|
but many older hosts do not yet support the @acronym{POSIX} |
9689 |
|
replacement @code{grep -E}. To work around this problem, invoke |
9690 |
|
@code{AC_PROG_EGREP} and then use @code{$EGREP}. |
9691 |
|
|
9692 |
The empty alternative is not portable, use @samp{?} instead. For |
The empty alternative is not portable, use @samp{?} instead. For |
9693 |
instance with Digital Unix v5.0: |
instance with Digital Unix v5.0: |
9694 |
|
|
9695 |
@example |
@example |
9696 |
> printf "foo\n|foo\n" | egrep '^(|foo|bar)$' |
> printf "foo\n|foo\n" | $EGREP '^(|foo|bar)$' |
9697 |
|foo |
|foo |
9698 |
> printf "bar\nbar|\n" | egrep '^(foo|bar|)$' |
> printf "bar\nbar|\n" | $EGREP '^(foo|bar|)$' |
9699 |
bar| |
bar| |
9700 |
> printf "foo\nfoo|\n|bar\nbar\n" | egrep '^(foo||bar)$' |
> printf "foo\nfoo|\n|bar\nbar\n" | $EGREP '^(foo||bar)$' |
9701 |
foo |
foo |
9702 |
|bar |
|bar |
9703 |
@end example |
@end example |
9704 |
|
|
9705 |
@command{egrep} also suffers the limitations of @command{grep}. |
@command{$EGREP} also suffers the limitations of @command{grep}. |
|
|
|
9706 |
|
|
9707 |
@item @command{expr} |
@item @command{expr} |
9708 |
@c ----------------- |
@c ----------------- |
9801 |
set to @command{expr} or to @command{false} according to the result. |
set to @command{expr} or to @command{false} according to the result. |
9802 |
|
|
9803 |
|
|
9804 |
|
@item @command{fgrep} |
9805 |
|
@c ------------------ |
9806 |
|
@prindex @command{fgrep} |
9807 |
|
@acronym{POSIX} 1003.1-2001 no longer requires @command{fgrep}, |
9808 |
|
but many older hosts do not yet support the @acronym{POSIX} |
9809 |
|
replacement @code{grep -F}. To work around this problem, invoke |
9810 |
|
@code{AC_PROG_FGREP} and then use @code{$FGREP}. |
9811 |
|
|
9812 |
|
|
9813 |
@item @command{find} |
@item @command{find} |
9814 |
@c ----------------- |
@c ----------------- |
9815 |
The option @option{-maxdepth} seems to be GNU specific. Tru64 v5.1, |
The option @option{-maxdepth} seems to be GNU specific. Tru64 v5.1, |
9841 |
Don't use multiple regexps with @option{-e}, as some @code{grep} will only |
Don't use multiple regexps with @option{-e}, as some @code{grep} will only |
9842 |
honor the last pattern (eg., IRIX 6.5 and Solaris 2.5.1). Anyway, |
honor the last pattern (eg., IRIX 6.5 and Solaris 2.5.1). Anyway, |
9843 |
Stardent Vistra SVR4 @code{grep} lacks @option{-e}@dots{} Instead, use |
Stardent Vistra SVR4 @code{grep} lacks @option{-e}@dots{} Instead, use |
9844 |
alternation and @code{egrep}. |
extended regular expressions and alternation. |
9845 |
|
|
9846 |
|
|
9847 |
@item @command{ln} |
@item @command{ln} |