On Wed, May 12, 2010 at 4:13 PM, Mikhail Gusarov
<[email protected]> wrote:
>
> Twas brillig at 16:08:14 12.05.2010 UTC-07 when [email protected] 
> 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
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to