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

Steve Lhomme robux4 at videolabs.io
Tue Aug 9 16:06:52 CEST 2016


---
 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"
     ])
   ])
 
-- 
2.8.2



More information about the vlc-devel mailing list