diff -urN -x .build -x .inst -x .sinst -x configure -x aclocal.m4 -x Makefile.in -x libffi-2.00-beta -x INSTALL -x INSTALL.sablevm -x ltmain.sh sablevm-1.1.6-orig/Makefile.am sablevm-1.1.6/Makefile.am --- sablevm-1.1.6-orig/Makefile.am 2004-07-10 18:28:18.000000000 +0200 +++ sablevm-1.1.6/Makefile.am 2004-10-16 09:40:56.159988800 +0200 @@ -6,8 +6,10 @@ ## * modification of this source file. * ## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -SUBDIRS = doc src +AUTOMAKE_OPTIONS = foreign +SUBDIRS = libffi-2.00-beta doc src +INCLUDES = -I$(top_srcdir)/libffi-2.00-beta -I$(top_srcdir)/libffi-2.00-beta/include pkgdata_DATA = LICENSE AUTHORS LGPL-2.1 EXTRA_DIST = .indent.pro LICENSE java-sablevm.tmpl ChangeLog INSTALL-DEVEL LGPL-2.1 diff -urN -x .build -x .inst -x .sinst -x configure -x aclocal.m4 -x Makefile.in -x libffi-2.00-beta -x INSTALL -x INSTALL.sablevm -x ltmain.sh sablevm-1.1.6-orig/configure.ac sablevm-1.1.6/configure.ac --- sablevm-1.1.6-orig/configure.ac 2004-07-10 18:28:18.000000000 +0200 +++ sablevm-1.1.6/configure.ac 2004-10-11 16:57:25.000000000 +0200 @@ -201,7 +201,16 @@ dnl Checks for libraries. LIBSVMINCLUDE="-lm -lffi -lltdl" -AC_CHECK_LIB(ffi,ffi_prep_cif,echo -n,echo ***ERROR: libffi is missing; exit 1) +case $host in + *cygwin*) + dnl we need to use libffi_convenience + AC_CONFIG_SUBDIRS(libffi-2.00-beta) + AM_CONDITIONAL(CYGWIN, test xcygwin = xcygwin) + ;; + *) + AC_CHECK_LIB(ffi,ffi_prep_cif,echo -n,echo ***ERROR: libffi is missing; exit 1) + ;; +esac AC_CHECK_LIB(ltdl,lt_dlinit,echo -n,echo ***ERROR: libltdl is missing; exit 1) AC_CHECK_LIB(m,fmod,echo -n,echo ***ERROR: libm is missing; exit 1) AC_CHECK_LIB(popt,poptGetContext,echo -n,echo ***ERROR: libpopt is missing; exit 1) diff -urN -x .build -x .inst -x .sinst -x configure -x aclocal.m4 -x Makefile.in -x libffi-2.00-beta -x INSTALL -x INSTALL.sablevm -x ltmain.sh sablevm-1.1.6-orig/doc/Makefile.am sablevm-1.1.6/doc/Makefile.am --- sablevm-1.1.6-orig/doc/Makefile.am 2004-07-10 18:28:18.000000000 +0200 +++ sablevm-1.1.6/doc/Makefile.am 2004-10-08 15:32:30.000000000 +0200 @@ -6,6 +6,8 @@ ## * modification of this source file. * ## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * +AUTOMAKE_OPTIONS = foreign + man_MANS = sablevm.1 java-sablevm.1 EXTRA_DIST = \ diff -urN -x .build -x .inst -x .sinst -x configure -x aclocal.m4 -x Makefile.in -x libffi-2.00-beta -x INSTALL -x INSTALL.sablevm -x ltmain.sh sablevm-1.1.6-orig/src/Makefile.am sablevm-1.1.6/src/Makefile.am --- sablevm-1.1.6-orig/src/Makefile.am 2004-07-10 18:28:18.000000000 +0200 +++ sablevm-1.1.6/src/Makefile.am 2004-10-12 12:35:08.000000000 +0200 @@ -6,4 +6,7 @@ ## * modification of this source file. * ## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * +AUTOMAKE_OPTIONS = foreign + SUBDIRS = include libsablevm sablevm +INCLUDES = -I$(top_srcdir)/libffi-2.00-beta -I$(top_srcdir)/libffi-2.00-beta/include diff -urN -x .build -x .inst -x .sinst -x configure -x aclocal.m4 -x Makefile.in -x libffi-2.00-beta -x INSTALL -x INSTALL.sablevm -x ltmain.sh sablevm-1.1.6-orig/src/include/Makefile.am sablevm-1.1.6/src/include/Makefile.am --- sablevm-1.1.6-orig/src/include/Makefile.am 2004-07-10 18:28:18.000000000 +0200 +++ sablevm-1.1.6/src/include/Makefile.am 2004-10-08 15:32:39.000000000 +0200 @@ -5,3 +5,5 @@ ## * the terms and conditions for copying, distribution and * ## * modification of this source file. * ## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + +AUTOMAKE_OPTIONS = foreign diff -urN -x .build -x .inst -x .sinst -x configure -x aclocal.m4 -x Makefile.in -x libffi-2.00-beta -x INSTALL -x INSTALL.sablevm -x ltmain.sh sablevm-1.1.6-orig/src/libsablevm/Makefile.am sablevm-1.1.6/src/libsablevm/Makefile.am --- sablevm-1.1.6-orig/src/libsablevm/Makefile.am 2004-07-10 18:28:18.000000000 +0200 +++ sablevm-1.1.6/src/libsablevm/Makefile.am 2004-10-12 13:40:01.000000000 +0200 @@ -6,6 +6,8 @@ ## * modification of this source file. * ## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * +AUTOMAKE_OPTIONS = foreign + ## GNU m4 & grep M4 = @M4@ GREP = grep @@ -350,11 +352,14 @@ rm -f vm_args.c rm -f internal_methods.list +if CYGWIN +libsablevm_la_LIBADD = ../../libffi-2.00-beta/libffi_convenience.la @LIBSVMINCLUDE@ +else libsablevm_la_LIBADD = @LIBSVMINCLUDE@ - +endif libsablevm_la_LDFLAGS = -release @LIBRELEASE@ @NO_UNDEFINED@ -INCLUDES = \ +INCLUDES = -I$(top_srcdir)/libffi-2.00-beta -I$(top_srcdir)/libffi-2.00-beta/include \ -I$(srcdir)/include -I$(srcdir)/inlinability -Iinlinability \ -DBOOT_CLASS_PATH=\"$(pkgdatadir)/sablevm-classpath\" \ -DBOOT_LIBRARY_PATH=\"$(pkglibdir)/sablevm-classpath\" diff -urN -x .build -x .inst -x .sinst -x configure -x aclocal.m4 -x Makefile.in -x libffi-2.00-beta -x INSTALL -x INSTALL.sablevm -x ltmain.sh sablevm-1.1.6-orig/src/libsablevm/include/Makefile.am sablevm-1.1.6/src/libsablevm/include/Makefile.am --- sablevm-1.1.6-orig/src/libsablevm/include/Makefile.am 2004-07-10 18:28:17.000000000 +0200 +++ sablevm-1.1.6/src/libsablevm/include/Makefile.am 2004-10-08 15:32:50.000000000 +0200 @@ -6,4 +6,6 @@ ## * modification of this source file. * ## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * +AUTOMAKE_OPTIONS = foreign + include_HEADERS = jni.h jni_system_specific.h diff -urN -x .build -x .inst -x .sinst -x configure -x aclocal.m4 -x Makefile.in -x libffi-2.00-beta -x INSTALL -x INSTALL.sablevm -x ltmain.sh sablevm-1.1.6-orig/src/libsablevm/inlinability/Makefile.am sablevm-1.1.6/src/libsablevm/inlinability/Makefile.am --- sablevm-1.1.6-orig/src/libsablevm/inlinability/Makefile.am 2004-07-10 18:28:17.000000000 +0200 +++ sablevm-1.1.6/src/libsablevm/inlinability/Makefile.am 2004-10-08 15:32:55.000000000 +0200 @@ -7,3 +7,5 @@ ## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # the functionality has been moved to the parent directory + +AUTOMAKE_OPTIONS = foreign diff -urN -x .build -x .inst -x .sinst -x configure -x aclocal.m4 -x Makefile.in -x libffi-2.00-beta -x INSTALL -x INSTALL.sablevm -x ltmain.sh sablevm-1.1.6-orig/src/sablevm/Makefile.am sablevm-1.1.6/src/sablevm/Makefile.am --- sablevm-1.1.6-orig/src/sablevm/Makefile.am 2004-07-10 18:28:18.000000000 +0200 +++ sablevm-1.1.6/src/sablevm/Makefile.am 2004-10-12 12:36:39.000000000 +0200 @@ -6,6 +6,8 @@ ## * modification of this source file. * ## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * +AUTOMAKE_OPTIONS = foreign + bin_PROGRAMS = sablevm sablevm_LDADD = ../libsablevm/libsablevm.la -lpopt @@ -16,7 +18,7 @@ SVMCOMPILETIME = \ $(shell date --utc '+%F %H:%M:%S UTC') -INCLUDES = \ +INCLUDES = -I$(top_srcdir)/libffi-2.00-beta -I$(top_srcdir)/libffi-2.00-beta/include \ -I@top_srcdir@/src/libsablevm/include \ -DPKGDATADIR=\"@datadir@/@PACKAGE@\" \ -DSYSCONFDIR=\"@sysconfdir@\" \ diff -urN -x .build -x .inst -x .sinst -x configure -x aclocal.m4 -x Makefile.in -x libffi-2.00-beta -x INSTALL -x INSTALL.sablevm -x ltmain.sh sablevm-1.1.6-orig/src/sablevm/sablevm.c sablevm-1.1.6/src/sablevm/sablevm.c --- sablevm-1.1.6-orig/src/sablevm/sablevm.c 2004-07-10 18:28:18.000000000 +0200 +++ sablevm-1.1.6/src/sablevm/sablevm.c 2004-10-14 18:01:23.000000000 +0200 @@ -972,7 +972,11 @@ #define ARG_COPYRIGHT 11 #define ARG_NO_COPYRIGHT 12 +#ifndef __CYGWIN__ static const struct poptOption options[] = /* description of command line options */ +#else /* __CYGWIN__ */ + static struct poptOption options[] = /* description of command line options */ +#endif /* __CYGWIN__ */ { {"classpath", 'c', POPT_ARG_STRING, &argument, ARG_CLASS_PATH, "set class path", "\"PATH\""}, {"property", 'p', POPT_ARG_STRING, &argument, ARG_PROPERTY, "set system property", "\"NAME=VALUE\""},