autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS_DIRNAME and expr


From: Paul Eggert
Subject: Re: AS_DIRNAME and expr
Date: Sat, 11 Nov 2000 10:29:52 -0800 (PST)

> From: Alexandre Oliva <address@hidden>
> Date: 11 Nov 2000 04:51:04 -0200

> How about:
> 
> # Work around the problem that "expr 'a' : 'a\(\)'" outputs "0" in QNX.
> case $ac_option in
> *=?*) ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` ;;
> *) ac_optarg= ;;
> esac

Yes, that'd be even better.

> I mean, it's not like it would be too costly to add a sed-based
> fallback here.

I don't think so.

Another possibility would be for "configure" to substitute its own
"expr" if the system expr doesn't work.  config.expr would be a shell
script that invokes sed to work around the buggy cases, and invokes
the system expr in normal cases.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]