2004-03-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* configure.in: if no C# compiler found, error out.

svn path=/trunk/gtk-sharp/; revision=24402
This commit is contained in:
Gonzalo Paniagua Javier 2004-03-22 06:23:07 +00:00
parent 4b7744cb67
commit 479c46730f
2 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2004-03-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* configure.in: if no C# compiler found, error out.
2004-03-18 Mike Kestner <mkestner@ximian.com> 2004-03-18 Mike Kestner <mkestner@ximian.com>
* gdk/Makefile.am : generate glue * gdk/Makefile.am : generate glue

View File

@ -60,20 +60,26 @@ PKG_CHECK_MODULES(MONO_DEPENDENCY, mono, has_mono=true, has_mono=false)
if test "x$has_mono" = "xtrue"; then if test "x$has_mono" = "xtrue"; then
if test `uname -s` = "Darwin"; then if test `uname -s` = "Darwin"; then
RUNTIME=`which mint` AC_PATH_PROG(RUNTIME, mint, no)
CSC=`which mcs` AC_PATH_PROG(CSC, mcs, no)
else else
RUNTIME=`which mono` AC_PATH_PROG(RUNTIME, mono, no)
CSC=`which mcs` AC_PATH_PROG(CSC, mcs, no)
fi fi
else else
AC_PATH_PROG(CSC, csc.exe, $PATH) AC_PATH_PROG(CSC, csc.exe, no)
if test x$CSC = ""; then if test x$CSC = "xno"; then
AC_MSG_ERROR([You need to install either mono or .Net]) AC_MSG_ERROR([You need to install either mono or .Net])
else else
RUNTIME= RUNTIME=
fi fi
fi fi
CS="C#"
if test "x$CSC" = "xno" ; then
AC_MSG_ERROR([No $CS compiler found])
fi
AC_SUBST(RUNTIME) AC_SUBST(RUNTIME)
AC_SUBST(CSC) AC_SUBST(CSC)
@ -203,6 +209,7 @@ echo "---"
echo "Configuration summary" echo "Configuration summary"
echo "" echo ""
echo " * Installation prefix = $prefix" echo " * Installation prefix = $prefix"
echo " * $CS compiler: $CSC"
echo "" echo ""
echo " Optional assemblies included in the build:" echo " Optional assemblies included in the build:"
echo "" echo ""