From dfdd4c80607b7e36bd3eed43b3f59ad4e0e1773a Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 3 May 2006 21:01:16 +0000 Subject: [PATCH] bump version to 1.3.30 fix chicken detection when not installed git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9075 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- configure.in | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/configure.in b/configure.in index a707d26c5..c4038f590 100644 --- a/configure.in +++ b/configure.in @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. dnl The macros which aren't shipped with the autotools are stored in the dnl Tools/config directory in .m4 files. -AC_INIT([swig],[1.3.29],[http://www.swig.org]) +AC_INIT([swig],[1.3.30],[http://www.swig.org]) AC_PREREQ(2.58) AC_CONFIG_SRCDIR([Source/Swig/swig.h]) AC_CONFIG_AUX_DIR([Tools/config]) @@ -1373,15 +1373,16 @@ fi AC_ARG_WITH(chickencsc,[ --with-chickencsc=path Set location of csc executable],[ CHICKEN_CSC="$withval"], [CHICKEN_CSC=]) if test -z "$CHICKEN_CSC"; then - AC_CHECK_PROGS(TEMP_CSC, csc) - # Both mono (C#) and chicken have an executable called csc, so check that this csc is really the chicken one - AC_MSG_CHECKING(if csc is the chicken compiler) - VER_OUTPUT=`$TEMP_CSC -version | grep chicken` - if test -n "$VER_OUTPUT"; then - CHICKEN_CSC="$TEMP_CSC" - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) + AC_CHECK_PROGS(CHICKEN_CSC, csc) + # Both the Microsoft C# compiler and chicken have an executable called csc, so check that this csc is really the chicken one + if test -n "$CHICKEN_CSC" ; then + AC_MSG_CHECKING(whether csc is the chicken compiler) + $CHICKEN_CSC -version 2>/dev/null | grep "chicken" > /dev/null || CHICKEN_CSC="" + if test -z "$CHICKEN_CSC"; then + AC_MSG_RESULT(no) + else + AC_MSG_RESULT(yes) + fi fi fi