Ralf Wildenhues <[EMAIL PROTECTED]> writes:
> The difference being that the existing heuristic has been tested
> on about a dozen platforms and is thus less likely to break due
> to, say, some obscure sed limitation on some platform.
OK, but the new test he added (marked '+' below):
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[[ ]]*datarootdir[[ ]]*:*=/p' "$tmp/out"`;
test -z "$ac_out"; } &&
looks pretty portable to me. If it breaks, then I'd expect the
existing sed-based test to break too.
(But if you're coming up with something better, never mind. :-)