From 889e39aa7154bbd242de840896695dabc1e69b69 Mon Sep 17 00:00:00 2001 From: vsc Date: Tue, 12 Mar 2002 06:35:11 +0000 Subject: [PATCH] more fixes to make Yap DLLs work with cygwin git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@409 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- docs/yap.tex | 34 +++++++++++++++++++++++++--------- library/random/Makefile.in | 2 +- library/regex/Makefile.in | 2 +- library/system/Makefile.in | 2 +- 4 files changed, 28 insertions(+), 12 deletions(-) diff --git a/docs/yap.tex b/docs/yap.tex index d2920d608..0f05a7f64 100644 --- a/docs/yap.tex +++ b/docs/yap.tex @@ -649,14 +649,13 @@ Be careful. At least for some versions of @code{GCC}, compiling with @item WIN32: The cygwin environment is our suggested approach. The CygWin environment is available from the URL: - @code{http://sourceware.cygnus.com} @noindent and mirrors. Yap should compile under cygwin 20.1 but we suggest using -the newer 1.1.1 (April Release), which has a more complete -implementation of the WIN32 API and uses GCC2.95.2 instead of egcs. The -compilation steps under the cygwin shell are as follows: +the newer 1.1.1 or recent, which has a more complete implementation of +the WIN32 API and uses GCC2.95.2 instead of egcs. The compilation +steps under the cygwin shell are as follows: @example mkdir cyg @@ -666,11 +665,13 @@ make make install @end example -By default, Yap will use the @code{-mno-cygwin} option to disable the -use of the cygwin dll and to enables the mingw32 subsystem. Yap does not -need the cygwin dll. It instead accesses the system's @code{CRTDLL.DLL} -@code{C} run time library supplied with Win32 platforms through the -mingw32 interface. +By default, Yap will use the @code{--enable-cygwin=no} option to +disable the use of the cygwin dll and to enable the mingw32 subsystem +instead. Yap thus will not need the cygwin dll. It instead accesses +the system's @code{CRTDLL.DLL} @code{C} run time library supplied with +Win32 platforms through the mingw32 interface. Note that some older +WIN95 systems may not have @code{CRTDLL.DLL}, in this case it should +be sufficient to import the file from a newer WIN95 or WIN98 machine. You should check the default installation path which is set to @code{/PROGRA~1/Yap} in the standard Makefile. This string will usually @@ -678,6 +679,21 @@ be expanded into @code{c:\Program Files\Yap} by Windows. The cygwin environment does not provide @t{gm}. You can fecth a dll for the @t{gmp} library from @url{http://www.sf.net/projects/mingwrep}. + +It is also possible to configure Yap to be a part of the cygwin +environment. In this case you should use: +@example +mkdir cyg +$YAPSRC/configure --enable-coroutining \\ + --enable-max-performance \\ + --enable-cygwin=yes +make +make install +@end example +Yap will then compile using the cygwin library. You can use Yap from a +cygwin console, or as a standalone application as long as it can fin +@code{cygwin1.dll} in its path. + @end table @node Compiling Under Visual C++, Tuning for SGI cc, Tuning for GCC, Machine Options diff --git a/library/random/Makefile.in b/library/random/Makefile.in index 9edce4f37..c1e07b73e 100644 --- a/library/random/Makefile.in +++ b/library/random/Makefile.in @@ -83,7 +83,7 @@ random.dll: $(OBJS) install: all $(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(LIBDIR) -install_mingw32: dll +install_win32: dll $(INSTALL_PROGRAM) -m 755 random.dll $(LIBDIR)/random.dll clean: diff --git a/library/regex/Makefile.in b/library/regex/Makefile.in index a438221f2..fbfc21ee0 100644 --- a/library/regex/Makefile.in +++ b/library/regex/Makefile.in @@ -107,7 +107,7 @@ regexp.dll: $(OBJS) install: all $(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(LIBDIR) -install_mingw32: dll +install_win32: dll $(INSTALL_PROGRAM) -m 755 regexp.dll $(LIBDIR)/regexp.dll clean: diff --git a/library/system/Makefile.in b/library/system/Makefile.in index e054e09e6..ef3e521c2 100644 --- a/library/system/Makefile.in +++ b/library/system/Makefile.in @@ -83,7 +83,7 @@ sys.dll: $(OBJS) install: all $(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(LIBDIR) -install_mingw32: dll +install_win32: dll $(INSTALL_PROGRAM) -m 755 sys.dll $(LIBDIR)/sys.dll clean: