[Top][All Lists]
[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
- A simplification of _AC_CANONICAL_SPLIT, Stepan Kasal, 2005/08/16
- Re: A simplification of _AC_CANONICAL_SPLIT, Noah Misch, 2005/08/16
- Re: A simplification of _AC_CANONICAL_SPLIT, Stepan Kasal, 2005/08/17
- Re: A simplification of _AC_CANONICAL_SPLIT, Noah Misch, 2005/08/17
- Re: A simplification of _AC_CANONICAL_SPLIT, Stepan Kasal, 2005/08/18
- Re: A simplification of _AC_CANONICAL_SPLIT, Paul Eggert, 2005/08/18
- Re: A simplification of _AC_CANONICAL_SPLIT, Stepan Kasal, 2005/08/19
- Re: A simplification of _AC_CANONICAL_SPLIT, Paul Eggert, 2005/08/19
- Re: A simplification of _AC_CANONICAL_SPLIT, Stepan Kasal, 2005/08/22
- Re: A simplification of _AC_CANONICAL_SPLIT, Paul Eggert, 2005/08/22
- Re: A simplification of _AC_CANONICAL_SPLIT,
Stepan Kasal <=
- Re: A simplification of _AC_CANONICAL_SPLIT, Paul Eggert, 2005/08/23
- Re: A simplification of _AC_CANONICAL_SPLIT, Stepan Kasal, 2005/08/24
- AS_SET_UNEXPANDED_ARGS proposal, Paul Eggert, 2005/08/24
- Re: AS_SET_UNEXPANDED_ARGS proposal, Stepan Kasal, 2005/08/25
- Re: AS_SET_UNEXPANDED_ARGS proposal, Paul Eggert, 2005/08/25