[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use expr where possible
From: |
Akim Demaille |
Subject: |
Re: [PATCH] Use expr where possible |
Date: |
Thu, 16 Jun 2005 12:19:26 +0200 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
>>> "Paul" == Paul Eggert <address@hidden> writes:
> +ac_save_IFS=$IFS; IFS='-'
> +set x $ac_cv_$1
> +shift
> +IFS=$ac_save_IFS
> +$1_cpu=$[1]
> +$1_vendor=$[2]
> +$1_os=$[3]
> +
> +case $[#] in
> +0|1|2) ;;
> +*)
> + shift; shift; shift
> + for ac_arg
> + do $1_os=$1_os-$ac_arg
> + done;;
> +esac
> +
> +AC_SUBST([$1_cpu])dnl
> +AC_SUBST([$1_vendor])dnl
> +AC_SUBST([$1_os])dnl
AC_SUBST can be used this way:
> +AC_SUBST([$1_cpu], $[1])
> +AC_SUBST([$1_vendor], $[2])dnl
> +AC_SUBST([$1_os], $[3])dnl
- Re: [PATCH] Use expr where possible, Peter O'Gorman, 2005/06/15
- Re: [PATCH] Use expr where possible, Paul Eggert, 2005/06/15
- Re: [PATCH] Use expr where possible, Peter O'Gorman, 2005/06/15
- Re: [PATCH] Use expr where possible, Peter O'Gorman, 2005/06/15
- Re: [PATCH] Use expr where possible, Akim Demaille, 2005/06/16
- Re: [PATCH] Use expr where possible, Paul Eggert, 2005/06/16
- Re: [PATCH] Use expr where possible,
Akim Demaille <=
- Re: [PATCH] Use expr where possible, Peter O'Gorman, 2005/06/16
- Re: [PATCH] Use expr where possible, Ralf Wildenhues, 2005/06/19
- Re: [PATCH] Use expr where possible, Stepan Kasal, 2005/06/22