Hi Jim,
> - grep '^[ ]*A[CM]_PROG_LIBTOOL\>' configure.ac >/dev/null ||
> + grep -E '^[ ]*(LT_INIT|A[CM]_PROG_LIBTOOL)\>' configure.ac
> >/dev/null ||
Solaris 9 'grep' does not support the '-E' option. This is documented in the
autoconf manual:
Traditional `grep' implementations (e.g., Solaris) do not support
the `-E' or `-F' options. To work around these problems, invoke
`AC_PROG_EGREP' and then use `$EGREP', and similarly for
`AC_PROG_FGREP' and `$FGREP'.
In a script like this, where you cannot rely on AC_PROG_EGREP either, I would
just grep configure.ac twice, with two different basic regular expressions.
Bruno