#1398 closed defect (invalid)
configure script uses option -E on wrong grep
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | build system |
Version: | 1.0rc2 | Severity: | minor |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
On Solaris, /usr/bin/grep does not support the -E option, however, the configure script just calls grep which usually is /usr/bin/grep.
Possible solutions:
- Rewrite to using -e
- Use ggrep (/usr/sfw/bin might not be in the PATH, though)
- Use /usr/xpg4/bin/grep (which probably isn't in the users' PATH, either)
Change History (6)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
These options are not GNU, but POSIX. Your Solaris userland is right out of the stone age and does not support standards. You don't have to take my word for it, look it up yourself:
http://www.opengroup.org/onlinepubs/009695399/utilities/grep.html
comment:3 by , 16 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
There are several greps available on Solaris, however the configure script doesn't check if it's using the right one, but that's waht configure was meant for.
comment:4 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
configure neither is nor was meant to be a sanity check for your system. A POSIX-compatible system is required and assumed. Now go complain to your vendor.
comment:5 by , 16 years ago
FYIO:
http://en.wikipedia.org/wiki/GNU_build_system:
Autoconf is used to attempt to work around the quirks found in various Unix-like operating systems. For example, some Unix-like systems may have certain facilities that are known to be broken or missing entirely. Autoconf creates a shell script which can detect these, and the program can work around them.
comment:6 by , 16 years ago
FYI: We do not use auto*, nor do we intend to in the future. It's even in the FAQ. Auto* is the devil incarnate.
In snapshot 2009-01-31, grep is also called with -q, which once again is only a GNU grep option.