Apply #2081967 configure changes for mzscheme configure errors and breaking of swig exe build
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6574067b72
commit
de17a4bcca
2 changed files with 33 additions and 18 deletions
|
|
@ -1,6 +1,11 @@
|
|||
Version 1.3.39 (in progress)
|
||||
============================
|
||||
|
||||
2008-02-07: wsfulton
|
||||
[MzScheme] Apply #2081967 configure changes for examples to build with recent PLT versions.
|
||||
Also fixes Makefile errors building SWIG executable when mzscheme package is installed
|
||||
(version 3.72 approx and later).
|
||||
|
||||
2009-02-04: talby
|
||||
[Perl] Fix SF#2564192 reported by David Kolovratnk.
|
||||
SWIG_AsCharPtrAndSize() now handles "get" magic.
|
||||
|
|
|
|||
46
configure.in
46
configure.in
|
|
@ -1195,25 +1195,35 @@ AC_ARG_WITH(mzc, AS_HELP_STRING([--with-mzc=path], [Set location of MzScheme's m
|
|||
|
||||
# First, check for "--without-mzscheme" or "--with-mzscheme=no".
|
||||
if test x"${MZSCHEMEBIN}" = xno -o x"${with_alllang}" = xno ; then
|
||||
AC_MSG_NOTICE([Disabling MzScheme])
|
||||
MZC=
|
||||
AC_MSG_NOTICE([Disabling MzScheme])
|
||||
MZC=
|
||||
else
|
||||
if test "x$MZSCHEMEBIN" = xyes; then
|
||||
AC_PATH_PROG(MZSCHEME, mzscheme)
|
||||
else
|
||||
MZSCHEME="$MZSCHEMEBIN"
|
||||
fi
|
||||
|
||||
if test -z "$MZCBIN"; then
|
||||
AC_PATH_PROG(MZC, mzc)
|
||||
fi
|
||||
|
||||
if test "x$MZSCHEMEBIN" = xyes; then
|
||||
AC_PATH_PROG(MZSCHEME, mzscheme)
|
||||
else
|
||||
MZSCHEME="$MZSCHEMEBIN"
|
||||
fi
|
||||
|
||||
if test -z "$MZCBIN"; then
|
||||
AC_PATH_PROG(MZC, mzc)
|
||||
fi
|
||||
|
||||
if test -n "$MZSCHEME"; then
|
||||
AC_MSG_CHECKING(for MzScheme dynext object)
|
||||
MZDYNOBJ=`$MZSCHEME --mute-banner --version --eval '(begin (require (lib "link.ss" "dynext")) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x) (display " ")) ((current-make-standard-link-libraries)))) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x) (display " ")) (expand-for-link-variant (current-standard-link-libraries)))))'`
|
||||
AC_MSG_RESULT($MZDYNOBJ)
|
||||
fi
|
||||
if test -n "$MZSCHEME"; then
|
||||
AC_MSG_CHECKING(for MzScheme dynext object)
|
||||
MZDYNOBJ=`$MZSCHEME --eval '(begin (require dynext/link) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (printf "~a" x)) (expand-for-link-variant (current-standard-link-libraries)))))' 2>/dev/null`
|
||||
if test -f "$MZDYNOBJ"; then
|
||||
MZDYNOBJ="$MZDYNOBJ"
|
||||
else
|
||||
# older versions
|
||||
MZDYNOBJ=`$MZSCHEME --mute-banner --version --eval '(begin (require (lib "link.ss" "dynext")) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x) (display " ")) ((current-make-standard-link-libraries)))) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x) (display " ")) (expand-for-link-variant (current-standard-link-libraries)))))' 2>/dev/null`
|
||||
fi
|
||||
if test -f "$MZDYNOBJ"; then
|
||||
AC_MSG_RESULT($MZDYNOBJ)
|
||||
else
|
||||
AC_MSG_RESULT(not found)
|
||||
MZDYNOBJ=""
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(MZDYNOBJ)
|
||||
|
||||
|
|
@ -2003,7 +2013,7 @@ AC_SUBST(SKIP_GUILESCM)
|
|||
|
||||
|
||||
SKIP_MZSCHEME=
|
||||
if test -z "$MZC" ; then
|
||||
if test -z "$MZC" || test -z "$MZDYNOBJ" ; then
|
||||
SKIP_MZSCHEME="1"
|
||||
fi
|
||||
AC_SUBST(SKIP_MZSCHEME)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue