[vlc-devel] [PATCH 2/2] configure: detect luac with the exe file extension

Rémi Denis-Courmont remi at remlab.net
Tue Aug 9 16:09:21 CEST 2016


Le 2016-08-09 16:06, Steve Lhomme a écrit :
> ---
>  configure.ac | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index ce6f9fc..14252f5 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -438,13 +438,13 @@ AS_IF([test -n "${CONTRIB_DIR}"], [
>
>    AS_IF([test -z "$LUAC"], [
>      dnl Old contribs mixed cross-tools and cross-compiled 
> executables
> -    AS_IF([test -x "${CONTRIB_DIR}/bin/luac"], [
> -      LUAC="${CONTRIB_DIR}/bin/luac"
> +    AS_IF([test -x 
> "${CONTRIB_DIR}/bin/luac$ac_executable_extensions"], [
> +      LUAC="${CONTRIB_DIR}/bin/luac$ac_executable_extensions"
>      ])
>
>      dnl Newer contribs follow usual name space rules
> -    AS_IF([test -x "${CONTRIB_DIR}/../bin/${host}-luac"], [
> -      LUAC="${CONTRIB_DIR}/../bin/${host}-luac"
> +    AS_IF([test -x
> "${CONTRIB_DIR}/../bin/${host}-luac$ac_executable_extensions"], [
> +      
> LUAC="${CONTRIB_DIR}/../bin/${host}-luac$ac_executable_extensions"
>      ])
>    ])

As the plural form of the name implies, ac_executable_extensions is a 
value list, not a value.

-- 
Rémi Denis-Courmont
Looking for a job
http://www.remlab.net/


More information about the vlc-devel mailing list