[Libreoffice-commits] core.git: Branch 'distro/suse/suse-4.0' - configure.ac

Petr Mladek pmladek at suse.cz
Tue Apr 30 08:37:16 PDT 2013


 configure.ac |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

New commits:
commit c164527f6dbb692437e70f4016ee1da82af54d1f
Author: Petr Mladek <pmladek at suse.cz>
Date:   Tue Apr 30 17:27:22 2013 +0200

    [mono] set CSC variable on Windows as well
    
    Change-Id: I2e556f27f718ce5d3a7494bb8fe0bc9a9601f8e4

diff --git a/configure.ac b/configure.ac
index d1b72b5..5f291d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4811,27 +4811,28 @@ if test "$build_os" = "cygwin"; then
     AL=al.exe
 
     dnl Check csc.exe
-    AC_PATH_PROG(CSC_PATH, csc.exe)
+    CSC=csc.exe
+    AC_PATH_PROG(CSC_PATH, $CSC)
     if test -n "$CSC_PATH"; then
         CSC_PATH=`dirname "$CSC_PATH"`
     fi
     if test -n "$with_csc_path"; then
         with_csc_path=`cygpath -u "$with_csc_path"`
     else
-        AC_MSG_CHECKING([for csc.exe more thoroughly])
+        AC_MSG_CHECKING([for $CSC more thoroughly])
     fi
-    if test -x "$with_csc_path/csc.exe"; then
+    if test -x "$with_csc_path/$CSC"; then
         CSC_PATH="$with_csc_path"
     else
        csctest=`./oowintool --csc-compilerdir`
-       if test -x "$csctest/csc.exe"; then
+       if test -x "$csctest/$CSC"; then
            CSC_PATH="$csctest"
        fi
     fi
-    if test ! -x "$CSC_PATH/csc.exe"; then
-        AC_MSG_ERROR([csc.exe not found. Make sure it's in the path or use --with-csc-path])
+    if test ! -x "$CSC_PATH/$CSC"; then
+        AC_MSG_ERROR([$CSC not found. Make sure it's in the path or use --with-csc-path])
     else
-        AC_MSG_RESULT([$CSC_PATH/csc.exe])
+        AC_MSG_RESULT([$CSC_PATH/$CSC])
     fi
     # Convert to posix path with 8.3 filename restrictions ( No spaces )
     CSC_PATH=`cygpath -d "$CSC_PATH"`


More information about the Libreoffice-commits mailing list