autoconf-patches
[Top][All Lists]
Advanced

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

Re: A simplification of _AC_CANONICAL_SPLIT


From: Stepan Kasal
Subject: Re: A simplification of _AC_CANONICAL_SPLIT
Date: Tue, 23 Aug 2005 09:43:49 +0200
User-agent: Mutt/1.4.1i

Hello,

On Mon, Aug 22, 2005 at 03:21:36PM -0700, Paul Eggert wrote:
> > +case $ac_cv_$1 in
> > +  -*) false ;;
> > +  *-*-*) : ;;
> > +  *) false ;;
> > +esac || AC_MSG_ERROR([invalid value of canonical $1])
> 
> Sorry, I still don't get it.  Why is that first "false" needed?

(I agree this thread is getting too long, so we are all tired.)

I want to use this:
 IFS=-
 set $ac_cv_$1
 AC_SUBST([$1_cpu], [$[1]])dnl
 AC_SUBST([$1_vendor], [$[2]])dnl
 shift; shift
 AC_SUBST([$1_os], [$[*]])dnl

If $ac_cv_$1 started with "-", set would misinterpret it as option.
And if it had less than 3 fields, the shifts would complain.

Since both of these are invalid anyway, I want to filter them out.

Regards,
        Stepan




reply via email to

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