[PATCH util/modular] release.sh: Simplify checks for ACLOCAL, PKG_CONFIG_PATH, etc.

Dan Nicholson dbn.lists at gmail.com
Wed May 12 16:29:46 PDT 2010


On Wed, May 12, 2010 at 4:13 PM, Mikhail Gusarov
<dottedmag at dottedmag.net> wrote:
>
> Twas brillig at 16:08:14 12.05.2010 UTC-07 when alan.coopersmith at oracle.com did gyre and gimble:
>
>  AC> In many of the : separated environment variables, especially $PATH
>  AC> & $LD_LIBRARY_PATH, any sequence that resolves to an empty string
>  AC> after : splitting may be resolved as the current directory on many
>  AC> platforms, so the simplified code you propose is actually equivalent to:
>
>  AC>  if test x"$PATH" = x; then
>  AC>      PATH=${DESTDIR}${PREFIX}/bin:.
>  AC>  else
>  AC>      PATH=${DESTDIR}${PREFIX}/bin:${PATH}
>  AC>  fi
>
> PATH=${DESTDIR}${PREFIX}/bin${PATH:+:}${PATH}
>
> should probably do it

Yep. PATH=/foo${PATH+:$PATH} is also acceptable.

--
Dan


More information about the xorg-devel mailing list