comparison nt/config.inc.samp @ 2951:b694dfd2f40e

[xemacs-hg @ 2005-09-26 08:13:00 by ben] Compile Windows with gmp, ldap, postgresql, db, etc. README: Major rewrite. Document how to compile various optional libs. config.inc.samp: Update to recent versions of optional libs. Add support for gmp, db, postgresql, ldap. Turn on optimization when not debug. minitar.c: Include config.h. xemacs.mak: Figure out VC++ version and use it to set debug and browser flags appropriately. Add support for building gmp, db, postgresql, ldap. Rewrite handling of optional stuff so it is all added to single variables OPT_* rather than to various FOO_* variables. Pass -I$(SRC) to minitar.c so it compiles. Pass module sources, not objects, to make-docfile. Delete more stuff in `make clean'.
author ben
date Mon, 26 Sep 2005 08:13:00 +0000
parents ac63ab256048
children 141c2920ea48
comparison
equal deleted inserted replaced
2950:6faeb73983bb 2951:b694dfd2f40e
33 # the libraries below. 33 # the libraries below.
34 OPTIONAL_LIBRARY_DIR=c:\src 34 OPTIONAL_LIBRARY_DIR=c:\src
35 35
36 # Set this to enable XPM support (virtually mandatory), and specify 36 # Set this to enable XPM support (virtually mandatory), and specify
37 # the directory containing xpm. Get the library from 37 # the directory containing xpm. Get the library from
38 # http://ftp.xemacs.org/aux/xpm-3.4k.tar.gz. 38 # http://ftp.xemacs.org/pub/xemacs/aux/xpm-3.4k.tar.gz, or the latest
39 # version (note that the library hasn't been updated in years) from
40 # http://www.inria.fr/koala/lehors/xpm.html.
39 HAVE_XPM=1 41 HAVE_XPM=1
40 XPM_DIR=$(OPTIONAL_LIBRARY_DIR)\xpm-3.4k 42 XPM_DIR=$(OPTIONAL_LIBRARY_DIR)\xpm-3.4k
41 43
42 # Set this to enable GIF support (built-in). 44 # Set this to enable GIF support (built-in).
43 HAVE_GIF=1 45 HAVE_GIF=1
44 46
45 # Set this to enable PNG support (virtually mandatory), and specify 47 # Set this to enable PNG support (virtually mandatory), and specify the
46 # the directories containing png and zlib. Get the latest version from 48 # directories containing png and zlib. Get the latest version of PNG from
47 # ftp://ftp.uu.net/graphics/png/. NOTE: In order to compile libpng, 49 # http://www.libpng.org/pub/png/libpng.html. Get the latest version of ZLIB
48 # you will have to rename the zlib directory to just `zlib'. We don't 50 # from http://www.gzip.org/zlib/. NOTE: In order to compile libpng, you will
49 # do that here so we can preserve the version number, like for the other 51 # have to rename the zlib directory to just `zlib'. We don't do that here
50 # libraries. 52 # so we can preserve the version number, like for the other libraries.
51 HAVE_PNG=1 53 HAVE_PNG=1
52 PNG_DIR=$(OPTIONAL_LIBRARY_DIR)\libpng-1.2.8 54 PNG_DIR=$(OPTIONAL_LIBRARY_DIR)\libpng-1.2.8
53 ZLIB_DIR=$(OPTIONAL_LIBRARY_DIR)\zlib-1.2.1 55 ZLIB_DIR=$(OPTIONAL_LIBRARY_DIR)\zlib-1.2.3
54 56
55 # Set this to enable JPEG support (useful, but not necessary), and specify 57 # Set this to enable JPEG support (useful, but not necessary), and specify
56 # the directory containing jpeg. Get the latest version from 58 # the directory containing jpeg. Get the latest version from
57 # ftp://ftp.uu.net/graphics/jpeg/. 59 # http://www.ijg.org/ or ftp://ftp.uu.net/graphics/jpeg/.
58 HAVE_JPEG=1 60 HAVE_JPEG=1
59 JPEG_DIR=$(OPTIONAL_LIBRARY_DIR)\jpeg-6b 61 JPEG_DIR=$(OPTIONAL_LIBRARY_DIR)\jpeg-6b
60 62
61 # Set this to enable TIFF support (not very important), and specify the 63 # Set this to enable TIFF support (not very important), and specify the
62 # directory containing tiff. Get the latest version from 64 # directory containing tiff. Get the latest version from
63 # ftp://ftp.uu.net/graphics/tiff/. 65 # http://www.remotesensing.org/libtiff/.
64 HAVE_TIFF=1 66 HAVE_TIFF=1
65 TIFF_DIR=$(OPTIONAL_LIBRARY_DIR)\tiff-v3.5.7 67 TIFF_DIR=$(OPTIONAL_LIBRARY_DIR)\tiff-3.7.3
66 68
67 # Set this to enable XFace support (not very important), and specify the 69 # Set this to enable XFace support (not very important), and specify the
68 # directory containing compface. Get the library from 70 # directory containing compface. Get the library from
69 # http://ftp.xemacs.org/aux/compface-1.5.1.tar.gz. 71 # http://ftp.xemacs.org/aux/compface-1.5.1.tar.gz.
70 HAVE_XFACE=1 72 HAVE_XFACE=1
71 COMPFACE_DIR=$(OPTIONAL_LIBRARY_DIR)\compface-1.5.1 73 COMPFACE_DIR=$(OPTIONAL_LIBRARY_DIR)\compface-1.5.1
74
75 # Set this to enable bignum support (useful, but not necessary), and specify
76 # the directory containing GNU MP. Get the latest version from
77 # http://www.swox.com/gmp/.
78 HAVE_BIGNUM=0
79 BIGNUM_DIR=$(OPTIONAL_LIBRARY_DIR)\gmp-4.1.4
80
81 # Set this to enable Berkeley DB support (not very important), and specify
82 # the directory containing Sleepcat DB. Get the latest version from
83 # http://www.sleepycat.com/products/db.shtml. If you want to use the
84 # shared-library (DLL) version instead of the static library, set
85 # BUILD_DATABASE_SHARED to 1.
86 HAVE_DATABASE=0
87 BUILD_DATABASE_SHARED=0
88 DATABASE_DIR=$(OPTIONAL_LIBRARY_DIR)\db-4.3.28
89
90 # Set this to enable PostgreSQL support (not very important), and specify
91 # the directory containing PostgreSQL. Get the latest version from
92 # http://www.postgresql.org/.
93 HAVE_POSTGRESQL=0
94 POSTGRESQL_DIR=$(OPTIONAL_LIBRARY_DIR)\postgresql-8.0.3
95
96 # Set this to enable LDAP support (not very important), and specify
97 # the directory containing LDAP. It is not easy to build OpenLDAP under
98 # native MS Windows, as it is only experimentally supported. However, there
99 # is a mailing list for this, which contains postings of recent binaries and
100 # build patches; see
101 #
102 # http://lucas.bergmans.us/hacks/openldap/
103 #
104 # Get the latest version of OpenLDAP from http://www.openldap.org/.
105 HAVE_LDAP=0
106 LDAP_DIR=$(OPTIONAL_LIBRARY_DIR)\openldap-2.3.4
72 107
73 ############################################################################ 108 ############################################################################
74 # Build settings # 109 # Build settings #
75 ############################################################################ 110 ############################################################################
76 111
114 # Cygwin sitting around already. If not, you should. Cygwin provides a 149 # Cygwin sitting around already. If not, you should. Cygwin provides a
115 # `makeinfo.exe' in /usr/bin/makeinfo (/usr/bin is virtual, it's /bin in 150 # `makeinfo.exe' in /usr/bin/makeinfo (/usr/bin is virtual, it's /bin in
116 # the actual file system). 151 # the actual file system).
117 MAKEINFO=c:\cygwin\bin\makeinfo.exe 152 MAKEINFO=c:\cygwin\bin\makeinfo.exe
118 153
119 # Set this to turn on optimization when compiling.
120 OPTIMIZED_BUILD=0
121
122 # Set this to build with the fastcall calling convention, which uses registers
123 # instead of the stack and should speed things up a bit
124 # #### Change to 1 when I check in the ws with support for fastcall
125 USE_FASTCALL=0
126
127 ############################################################################
128 # Development options #
129 ############################################################################
130
131 # Set this to compile in support for profiling. If you want line-by-line
132 # profiling under VC++, you also need debugging turned on.
133 PROFILE_SUPPORT=0
134
135 # Set this to enable debug code in XEmacs that doesn't slow things down, 154 # Set this to enable debug code in XEmacs that doesn't slow things down,
136 # and to add debugging information to the executable. (The code that's 155 # and to add debugging information to the executable. (The code that's
137 # enabled in XEmacs is primarily extra commands that aid in debugging 156 # enabled in XEmacs is primarily extra commands that aid in debugging
138 # problems. The kind of debugging code that slows things down -- 157 # problems. The kind of debugging code that slows things down --
139 # i.e. internal error-checking -- is controlled by the ERROR_CHECK_ALL 158 # i.e. internal error-checking -- is controlled by the ERROR_CHECK_ALL
140 # variable, below.) 159 # variable, below.)
141 DEBUG_XEMACS=1 160 DEBUG_XEMACS=1
161
162 # Set this to turn on optimization when compiling. Normally this should
163 # be the opposite of DEBUG_XEMACS.
164 !if $(DEBUG_XEMACS)
165 OPTIMIZED_BUILD=0
166 !else
167 OPTIMIZED_BUILD=1
168 !endif
169
170 # Set this to build with the fastcall calling convention, which uses registers
171 # instead of the stack and should speed things up a bit
172 # #### Change to 1 when I check in the ws with support for fastcall
173 USE_FASTCALL=0
174
175 ############################################################################
176 # Development options #
177 ############################################################################
178
179 # Set this to compile in support for profiling. If you want line-by-line
180 # profiling under VC++, you also need debugging turned on.
181 PROFILE_SUPPORT=0
142 182
143 # Set this to enable support for edit-and-continue under VC++. 183 # Set this to enable support for edit-and-continue under VC++.
144 # WARNING: This turns on incremental linking, which is known to lead to 184 # WARNING: This turns on incremental linking, which is known to lead to
145 # occasional weird crashes in pdump loading. If that happens, do a 185 # occasional weird crashes in pdump loading. If that happens, do a
146 # nmake -f xemacs.mak clean so that temacs.exe and xemacs.exe get removed. 186 # nmake -f xemacs.mak clean so that temacs.exe and xemacs.exe get removed.