On Fri, 7 Jun 2013, A.P. Horst wrote:
> Thanks for all the great input! Seems google isn't always your best friend, at
> least not when it comes to autoconf. The solution with the test command is
> very elegant and readable.
> I ended up using this:
> if ! test $var -gt 0 > /dev/null 2>&1; then
>
On Thu, Jun 6, 2013 at 8:11 AM, Eric Blake wrote:
> - Original Message -
>
>>
>> A more robust, (and more portable), formulation may be:
>>
>> echo $var | grep '^+\{0,1\}[0-9]\{1,\}$' > /dev/null 2>&1
>
> Why fork, when straight shell will do?
yea, forking for grep is probably going to
> -Original Message-
> From: autoconf-bounces+jeff.daily=pnl@gnu.org [mailto:autoconf-
> bounces+jeff.daily=pnl@gnu.org] On Behalf Of Peter Johansson
> Sent: Thursday, June 06, 2013 5:04 PM
> To: Autoconf Mailing List
> Subject: implement workaround for header files
>
> Hi autoconf
Tim Rice writes:
> On Fri, 7 Jun 2013, A.P. Horst wrote:
>> if ! test $var -gt 0 > /dev/null 2>&1; then
>
> "if ! test ..." is definitely not portable.
Hmmm, I can never remember which is the portable one, but from the
autoconf docs, one should usually use "if test ! ..." instead :
It is s