1 | dnl # emacs edit mode for this file is -*- sh -*- |
---|
2 | dnl # $Id: configure.in,v 1.43 2005-10-17 16:39:17 Singular Exp $ |
---|
3 | |
---|
4 | dnl # |
---|
5 | dnl # configure.in - process this file with `autoconf' to generate |
---|
6 | dnl # a `configure' script. |
---|
7 | dnl # |
---|
8 | dnl # See the `INSTALL' file for information on how the `configure' |
---|
9 | dnl # script works. |
---|
10 | dnl # |
---|
11 | |
---|
12 | # |
---|
13 | # - initialisation. |
---|
14 | # |
---|
15 | AC_REVISION($Id: configure.in,v 1.43 2005-10-17 16:39:17 Singular Exp $) |
---|
16 | AC_INIT(canonicalform.cc) |
---|
17 | AC_CONFIG_HEADER(config.h) |
---|
18 | AC_CONFIG_AUX_DIR(bin) |
---|
19 | |
---|
20 | # |
---|
21 | # Do not change version here!!! |
---|
22 | # |
---|
23 | dnl # |
---|
24 | dnl # Change version here, do not believe the comment in the |
---|
25 | dnl # preceding lines. |
---|
26 | dnl # |
---|
27 | factory_version="3.0.1" |
---|
28 | factory_configuration="'$ac_configure_args' in `pwd`" |
---|
29 | |
---|
30 | # |
---|
31 | # - check withs and enables. |
---|
32 | # |
---|
33 | AC_ARG_WITH( |
---|
34 | memman, |
---|
35 | [ --with-memman(=<memman>) specify Factory memory manager. |
---|
36 | <memman> is either \`old' (default), \`new', or \`no'.], |
---|
37 | , |
---|
38 | [ if test "x$with_Singular" = xyes; then |
---|
39 | with_memman=no |
---|
40 | else |
---|
41 | with_memman=old |
---|
42 | fi ]) |
---|
43 | |
---|
44 | # font-lock-trick: ' |
---|
45 | |
---|
46 | AC_ARG_WITH( |
---|
47 | omalloc, |
---|
48 | [ --with-omalloc build for use with omalloc]) |
---|
49 | AC_ARG_WITH( |
---|
50 | gmp, |
---|
51 | [ --with-gmp(=<gmp_inc_path>(,<gmp_lib_path>)) |
---|
52 | specify where to find gmp library.]) |
---|
53 | |
---|
54 | AC_ARG_WITH( |
---|
55 | Singular, |
---|
56 | [ --with-Singular build for use with computer algebra system Singular.], |
---|
57 | , |
---|
58 | with_Singular=no) |
---|
59 | |
---|
60 | AC_ARG_WITH( |
---|
61 | NTL, |
---|
62 | [ --with-NTL build for use with NTL.], |
---|
63 | with_NTL=yes, |
---|
64 | ) |
---|
65 | |
---|
66 | AC_ARG_ENABLE( |
---|
67 | NTL, |
---|
68 | [ --enable-NTL build for use with NTL.], |
---|
69 | with_NTL=yes, |
---|
70 | ) |
---|
71 | |
---|
72 | AC_ARG_ENABLE( |
---|
73 | cf-inline, |
---|
74 | [ --enable-cf-inline build Factory with \"configurable inline methods\" |
---|
75 | enabled.], |
---|
76 | , |
---|
77 | enable_cf_inline=no) |
---|
78 | |
---|
79 | AC_ARG_ENABLE( |
---|
80 | streamio, |
---|
81 | [ --disable-streamio build Factory without stream IO], |
---|
82 | , |
---|
83 | [ if test "x$with_Singular" = xyes; then |
---|
84 | enable_streamio=no |
---|
85 | else |
---|
86 | enable_streamio=yes |
---|
87 | fi ]) |
---|
88 | |
---|
89 | AC_ARG_ENABLE( |
---|
90 | memdebug, |
---|
91 | [ --enable-memdebug=<level> switch on memory management debugging. Meaningful |
---|
92 | with \`--with-memman=new' only. <level> may be either |
---|
93 | \`no' (default), \`normal', or \`full'.], |
---|
94 | , |
---|
95 | enable_memdebug=no) |
---|
96 | |
---|
97 | AC_ARG_ENABLE( |
---|
98 | assertions, |
---|
99 | [ --enable-assertions build Factory with assertions activated], |
---|
100 | , |
---|
101 | enable_assertions=no) |
---|
102 | |
---|
103 | AC_ARG_ENABLE( |
---|
104 | timing, |
---|
105 | [ --enable-timing build Factory so it will print timing information], |
---|
106 | , |
---|
107 | enable_timing=no) |
---|
108 | |
---|
109 | AC_ARG_ENABLE( |
---|
110 | debugoutput, |
---|
111 | [ --enable-debugoutput build Factory so it will print debugging information], |
---|
112 | , |
---|
113 | enable_debugoutput=no) |
---|
114 | |
---|
115 | # a tribute to Singular |
---|
116 | AC_ARG_ENABLE( |
---|
117 | gmp, |
---|
118 | [ --enable-gmp together with \`--with-Singular' means: installation |
---|
119 | in process, be graceful when there is no \`gmp.h'], |
---|
120 | [ if test "x$with_Singular" = xyes && test "x$enable_gmp" != xno; then |
---|
121 | with_gmp='$(includedir)' |
---|
122 | fi ]) |
---|
123 | |
---|
124 | # |
---|
125 | # - check the results of --with-gmp. |
---|
126 | # |
---|
127 | case "$with_gmp" in |
---|
128 | yes|no|"") |
---|
129 | gmp_in_installation=no ;; |
---|
130 | '$(includedir)'|'${includedir}') |
---|
131 | gmp_in_installation=yes ;; |
---|
132 | *,*) |
---|
133 | saveIFS="$IFS"; IFS="${IFS}," |
---|
134 | set dummy $with_gmp |
---|
135 | IFS="$saveIFS" |
---|
136 | CPPFLAGS="-I$2 $CPPFLAGS" |
---|
137 | LDFLAGS="-L$3 $LDFLAGS" |
---|
138 | gmp_in_installation=no ;; |
---|
139 | *) |
---|
140 | CPPFLAGS="-I$with_gmp $CPPFLAGS" |
---|
141 | LDFLAGS="-L$with_gmp/../lib $LDFLAGS" |
---|
142 | gmp_in_installation=no ;; |
---|
143 | esac |
---|
144 | |
---|
145 | # |
---|
146 | # - check for CC and CXX but be careful about CFLAGS. |
---|
147 | # |
---|
148 | test "${CFLAGS+set}" = set || cflags_expl_set=no |
---|
149 | AC_PROG_CC |
---|
150 | test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no |
---|
151 | AC_PROG_CXX |
---|
152 | if test "x$GCC" != xyes && test "x$GXX" != xyes; then |
---|
153 | AC_MSG_WARN(you better use gcc to compile Factory) |
---|
154 | else |
---|
155 | if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then |
---|
156 | AC_MSG_WARN([we use \`-O2 -fomit-frame-pointer' as default for \`CXXFLAGS' |
---|
157 | (instead of the configure default \`-g -O')]) |
---|
158 | fi |
---|
159 | if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then |
---|
160 | AC_MSG_WARN([we use \`-O2 -fomit-frame-pointer' as default for \`CFLAGS' |
---|
161 | (instead of the configure default \`-g -O')]) |
---|
162 | fi |
---|
163 | fi |
---|
164 | |
---|
165 | # |
---|
166 | # - check for some other programs. |
---|
167 | # |
---|
168 | AC_PROG_CPP |
---|
169 | AC_PROG_CXXCPP |
---|
170 | AC_PROG_LN_S |
---|
171 | AC_PROG_INSTALL |
---|
172 | AC_PROG_RANLIB |
---|
173 | AC_PROG_MAKE_SET |
---|
174 | AC_CHECK_PROG(AR, ar, ar, where-is-your-ar) |
---|
175 | AC_CHECK_PROG(M4, m4, m4, where-is-your-m4) |
---|
176 | AC_CHECK_PROG(BISON, bison, bison, where-is-your-bison) |
---|
177 | |
---|
178 | # do not use `MKINSTALLDIRS' and `MAKEHEADER' since there may be |
---|
179 | # name clashes with other peoples configure scripts via |
---|
180 | # `config.cache'. Furthermore, we do not use cache at all to |
---|
181 | # avoid some nasty problems with our own development environment. |
---|
182 | unset ac_cv_path_FACTORY_MKINSTALLDIRS |
---|
183 | unset ac_cv_path_FACTORY_MAKEHEADER |
---|
184 | save_path="$PATH" |
---|
185 | PATH="$PATH:$srcdir/bin" |
---|
186 | AC_PATH_PROG(FACTORY_MKINSTALLDIRS, mkinstalldirs, -mkdir) |
---|
187 | PATH="$srcdir/bin:$save_path" |
---|
188 | AC_PATH_PROG(FACTORY_MAKEHEADER, makeheader) |
---|
189 | PATH="$save_path" |
---|
190 | |
---|
191 | # |
---|
192 | # - expand paths. |
---|
193 | # |
---|
194 | |
---|
195 | AC_MSG_CHECKING(and generating explicit install paths) |
---|
196 | |
---|
197 | # generate Makefile |
---|
198 | save_prefix="$prefix" |
---|
199 | save_exec_prefix="$exec_prefix" |
---|
200 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
201 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
202 | for dir in prefix exec_prefix bindir sbindir libexecdir \ |
---|
203 | datadir sysconfdir sharedstatedir localstatedir libdir \ |
---|
204 | includedir oldincludedir infodir mandir; do |
---|
205 | eval "dir_value=\$$dir" |
---|
206 | cat >> ./conftest.mk << EXPLPATHEOT |
---|
207 | $dir=$dir_value |
---|
208 | explicit_$dir: |
---|
209 | @ echo \$($dir) |
---|
210 | @ if echo \$($dir) | grep '^/'; \\ |
---|
211 | then echo \$($dir) > ./conftest.dir; \\ |
---|
212 | else echo \`pwd\`/\$($dir) > ./conftest.dir; fi |
---|
213 | EXPLPATHEOT |
---|
214 | done |
---|
215 | prefix="$save_prefix" |
---|
216 | exec_prefix="$save_exec_prefix" |
---|
217 | |
---|
218 | # generate the explicit paths |
---|
219 | make >&5 2>&1 -f ./conftest.mk explicit_datadir |
---|
220 | explicit_datadir=`cat ./conftest.dir` |
---|
221 | make >&5 2>&1 -f ./conftest.mk explicit_libdir |
---|
222 | explicit_libdir=`cat ./conftest.dir` |
---|
223 | make >&5 2>&1 -f ./conftest.mk explicit_includedir |
---|
224 | explicit_includedir=`cat ./conftest.dir` |
---|
225 | |
---|
226 | # clean up |
---|
227 | rm -f ./conftest.mk ./conftest.dir |
---|
228 | |
---|
229 | AC_MSG_RESULT(done) |
---|
230 | |
---|
231 | # |
---|
232 | # - check for libraries. |
---|
233 | # |
---|
234 | AC_CHECK_LIB(m, atof, , [ AC_MSG_ERROR(libm.a not found) ]) |
---|
235 | |
---|
236 | if test "x$gmp_in_installation" != xyes; then |
---|
237 | AC_CHECK_LIB(gmp, main, , |
---|
238 | [ |
---|
239 | # check a second time in `$(libdir)'. This is a bit tricky, |
---|
240 | # but I think its worth avoiding long option values. |
---|
241 | unset ac_cv_lib_gmp_main |
---|
242 | LDFLAGS="-L$explicit_libdir $LDFLAGS" |
---|
243 | AC_CHECK_LIB(gmp, main, , |
---|
244 | [ AC_MSG_ERROR(libgmp.a not found. Use option --with-gmp to specify path) ]) |
---|
245 | unset ac_cv_lib_gmp_main |
---|
246 | ]) |
---|
247 | fi |
---|
248 | |
---|
249 | # |
---|
250 | # - check for header files. |
---|
251 | # |
---|
252 | AC_LANG_CPLUSPLUS |
---|
253 | |
---|
254 | if test "x$gmp_in_installation" != xyes; then |
---|
255 | AC_CHECK_HEADERS(gmp.h, , |
---|
256 | [ |
---|
257 | # check a second time in `$(includedir)'. This is a bit tricky, |
---|
258 | # but I think it's worth avoiding long option values. |
---|
259 | unset ac_cv_header_gmp_h |
---|
260 | CPPFLAGS="-I$explicit_includedir $CPPFLAGS" |
---|
261 | AC_CHECK_HEADERS(gmp.h, , |
---|
262 | [ AC_MSG_ERROR(gmp.h not found. Use option --with-gmp to specify path) ]) |
---|
263 | unset ac_cv_header_gmp_h |
---|
264 | ]) |
---|
265 | fi |
---|
266 | |
---|
267 | AC_CHECK_HEADERS(stdio.h stdlib.h string.h time.h math.h, , |
---|
268 | [ AC_MSG_ERROR(C header files not found) ]) |
---|
269 | |
---|
270 | if test "x$enable_streamio" != xno; then |
---|
271 | AC_CHECK_HEADERS(iostream.h strstream.h fstream.h, , |
---|
272 | [ AC_MSG_WARN(C++ header files not found) ]) |
---|
273 | AC_CHECK_HEADERS(ctype.h, , [ AC_MSG_ERROR(standard C header files not found) ]) |
---|
274 | |
---|
275 | # since the FTE will compile only with stream IO enabled we will not |
---|
276 | # check for the necessary header files if stream IO is disabled |
---|
277 | AC_CHECK_HEADERS(stdarg.h signal.h errno.h unistd.h, , |
---|
278 | [ AC_MSG_WARN(C/C++ header files not found. |
---|
279 | You will not be able to build the Factory Test Environment |
---|
280 | (though Factory itself should compile)) ]) |
---|
281 | fi |
---|
282 | |
---|
283 | if test "x$enable_timing" != xno; then |
---|
284 | AC_CHECK_HEADERS(sys/param.h sys/times.h, , |
---|
285 | [ AC_MSG_ERROR(\`sys/times.h' or \`sys/param.h' not found. Try |
---|
286 | \`configure --disable-timing') ]) |
---|
287 | fi |
---|
288 | |
---|
289 | AC_CHECK_HEADERS(omalloc.h,,) |
---|
290 | |
---|
291 | # font-lock-trick: ' |
---|
292 | |
---|
293 | # |
---|
294 | # - check for compiler characteristics. |
---|
295 | # |
---|
296 | |
---|
297 | # use C to check compiler characteristics instead of C++. On |
---|
298 | # nextstep, checking with C++ may fail. |
---|
299 | AC_LANG_C |
---|
300 | |
---|
301 | # cross-compiling ?! |
---|
302 | #AC_C_CROSS |
---|
303 | #if test "x$cross_compiling" = xyes; then |
---|
304 | # AC_MSG_WARN([you better specify a cache file to get the values for |
---|
305 | # cross-compiling right (e.g., call \`configure |
---|
306 | # --cache-file=yourTarget.cache'). In particular, you |
---|
307 | # should make sure that your target machine supports |
---|
308 | # arithmetic shift.]) |
---|
309 | #fi |
---|
310 | |
---|
311 | # font-lock-trick: ' |
---|
312 | |
---|
313 | # arithmetic shift |
---|
314 | AC_MSG_CHECKING(whether your compiler does arithmetic shifts) |
---|
315 | AC_CACHE_VAL(ac_cv_shift, |
---|
316 | [ LDFLAGS="-L$explicit_libdir $LDFLAGS" |
---|
317 | AC_TRY_RUN( |
---|
318 | [ int main() { if (-2 >> 1 == -1) return(0); else return(1); } ], |
---|
319 | ac_cv_shift=yes, ac_cv_shift=no, ac_cv_shift=yes) ]) |
---|
320 | if test "x$ac_cv_shift" = xyes; then |
---|
321 | AC_MSG_RESULT(yes) |
---|
322 | else |
---|
323 | AC_MSG_RESULT(no) |
---|
324 | fi |
---|
325 | |
---|
326 | # |
---|
327 | # - paths. |
---|
328 | # |
---|
329 | |
---|
330 | # note that Singular has its own mechanism to search the tables, |
---|
331 | # hence we do not need to mind it here |
---|
332 | gftabledir='${datadir}/factory/gftables' |
---|
333 | explicit_gftabledir="$explicit_datadir/factory/gftables" |
---|
334 | |
---|
335 | # for installation of the templates |
---|
336 | templatedir='${includedir}/templates' |
---|
337 | |
---|
338 | # |
---|
339 | # - the name of the game and the targets to create. |
---|
340 | # |
---|
341 | if test "x$with_Singular" = xyes; then |
---|
342 | libfactory=libsingcf.a |
---|
343 | |
---|
344 | factorysrc='$(basefactorysrc) $(singfactorysrc)' |
---|
345 | factoryincl='$(basefactoryincl) $(singfactoryincl)' |
---|
346 | memmansrc= |
---|
347 | memmanincl= |
---|
348 | |
---|
349 | alltargets=cf |
---|
350 | installtargets=installcf |
---|
351 | uninstalltargets=uninstallcf |
---|
352 | else |
---|
353 | libfactory=libcf.a |
---|
354 | |
---|
355 | factorysrc='$(basefactorysrc)' |
---|
356 | factoryincl='$(basefactoryincl)' |
---|
357 | memmansrc='$(basememmansrc)' |
---|
358 | memmanincl= |
---|
359 | |
---|
360 | alltargets=cf |
---|
361 | installtargets=installcf |
---|
362 | uninstalltargets=uninstallcf |
---|
363 | fi |
---|
364 | |
---|
365 | # |
---|
366 | # - set defines and variables according to our tests. |
---|
367 | # |
---|
368 | |
---|
369 | # CFLAGS |
---|
370 | if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then |
---|
371 | CFLAGS="-O2 -fomit-frame-pointer" |
---|
372 | fi |
---|
373 | |
---|
374 | # CXXFLAGS |
---|
375 | if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then |
---|
376 | CXXFLAGS="-O2 -fomit-frame-pointer" |
---|
377 | |
---|
378 | AC_LANG_SAVE |
---|
379 | AC_LANG_CPLUSPLUS |
---|
380 | # check whether CXX accepts -fno-rtti |
---|
381 | AC_MSG_CHECKING(whether gcc accepts -fno-rtti) |
---|
382 | tmp_flags=${CXXFLAGS} |
---|
383 | CXXFLAGS="${CXXFLAGS} -fno-rtti" |
---|
384 | AC_CACHE_VAL(ac_cv_cxx_have_rtti, |
---|
385 | AC_TRY_COMPILE(,,ac_cv_cxx_have_rtti=yes,ac_cv_cxx_have_rtti=no) |
---|
386 | ) |
---|
387 | AC_MSG_RESULT(${ac_cv_cxx_have_rtti}) |
---|
388 | CXXFLAGS=$tmp_flags |
---|
389 | if test "${ac_cv_cxx_have_rtti}" = yes; then |
---|
390 | CXXFLAGS="$CXXFLAGS -fno-rtti" |
---|
391 | fi |
---|
392 | |
---|
393 | AC_MSG_CHECKING(whether gcc accepts -fno-exceptions) |
---|
394 | tmp_flags=${CXXFLAGS} |
---|
395 | CXXFLAGS="${CXXFLAGS} -fno-exceptions" |
---|
396 | AC_CACHE_VAL(ac_cv_cxx_have_exceptions, |
---|
397 | AC_TRY_LINK(,,ac_cv_cxx_have_exceptions=yes,ac_cv_cxx_have_exceptions=no) |
---|
398 | ) |
---|
399 | AC_MSG_RESULT(${ac_cv_cxx_have_exceptions}) |
---|
400 | CXXFLAGS=$tmp_flags |
---|
401 | if test "${ac_cv_cxx_have_exceptions}" = yes; then |
---|
402 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
---|
403 | fi |
---|
404 | AC_LANG_RESTORE |
---|
405 | |
---|
406 | fi |
---|
407 | |
---|
408 | # ARFLAGS |
---|
409 | test "${ARFLAGS+set}" = set || ARFLAGS=cr |
---|
410 | |
---|
411 | # M4FLAGS |
---|
412 | test "${M4FLAGS+set}" = set || M4FLAGS= |
---|
413 | |
---|
414 | # Singular |
---|
415 | if test "x$with_Singular" = xyes; then |
---|
416 | AC_DEFINE(SINGULAR) |
---|
417 | fi |
---|
418 | |
---|
419 | # NTL |
---|
420 | if test "x$with_NTL" = xyes; then |
---|
421 | AC_DEFINE(HAVE_NTL) |
---|
422 | fi |
---|
423 | |
---|
424 | # arithmetic shift |
---|
425 | if test "x$ac_cv_shift" = xyes; then |
---|
426 | AC_DEFINE(HAS_ARITHMETIC_SHIFT) |
---|
427 | fi |
---|
428 | |
---|
429 | # gmp-stuff. we must not set these flags before the tests |
---|
430 | # are finished! |
---|
431 | if test "x$gmp_in_installation" = xyes; then |
---|
432 | CPPFLAGS="-I\$(includedir) $CPPFLAGS" |
---|
433 | if test "x$with_Singular" = xyes; then |
---|
434 | LDFLAGS="-L\$(libdir) -lgmp $LDFLAGS" |
---|
435 | fi |
---|
436 | fi |
---|
437 | |
---|
438 | AC_MSG_CHECKING(whether to use omalloc) |
---|
439 | |
---|
440 | if test "$with_omalloc" = yes; then |
---|
441 | if test "$ac_cv_header_omalloc_h" != yes; then |
---|
442 | if test "$enable_omalloc" = yes; then |
---|
443 | warn_omalloc=yes |
---|
444 | else |
---|
445 | with_omalloc=no |
---|
446 | fi |
---|
447 | fi |
---|
448 | else |
---|
449 | if test "$with_omalloc" != no; then |
---|
450 | if test "$enable_omalloc" = yes; then |
---|
451 | if test "$ac_cv_header_omalloc_h" != yes; then |
---|
452 | warn_omalloc=yes |
---|
453 | fi |
---|
454 | with_omalloc=yes |
---|
455 | else |
---|
456 | with_omalloc=no |
---|
457 | fi |
---|
458 | fi |
---|
459 | fi |
---|
460 | if test "$with_omalloc" = yes; then |
---|
461 | AC_DEFINE(HAVE_OMALLOC) |
---|
462 | with_memman=no |
---|
463 | fi |
---|
464 | AC_MSG_RESULT($with_omalloc) |
---|
465 | if test "$warn_omalloc" = yes; then |
---|
466 | AC_MSG_WARN(did not find omalloc.h -- install before compiling) |
---|
467 | fi |
---|
468 | |
---|
469 | |
---|
470 | # memory manager |
---|
471 | if test "x$with_memman" != xno; then |
---|
472 | alltargets="$alltargets mem" |
---|
473 | installtargets="$installtargets installmem" |
---|
474 | uninstalltargets="$uninstalltargets uninstallmem" |
---|
475 | AC_DEFINE(USE_MEMUTIL) |
---|
476 | |
---|
477 | if test "x$with_memman" != xnew; then |
---|
478 | memmansrc="$memmansrc \$(oldmemmansrc)" |
---|
479 | memmanincl='$(oldmemmanincl)' |
---|
480 | AC_DEFINE(USE_OLD_MEMMAN) |
---|
481 | else |
---|
482 | memmansrc="$memmansrc \$(newmemmansrc)" |
---|
483 | memmanincl='$(newmemmanincl)' |
---|
484 | |
---|
485 | if test "x$enable_memdebug" = xfull; then |
---|
486 | AC_DEFINE(MDEBUG, 1) |
---|
487 | elif test "x$enable_memdebug" != xno; then |
---|
488 | AC_DEFINE(MDEBUG, 0) |
---|
489 | fi |
---|
490 | fi |
---|
491 | fi |
---|
492 | |
---|
493 | # "configurable inline methods" |
---|
494 | if test "x$enable_cf_inline" != xno; then |
---|
495 | AC_DEFINE(CF_USE_INLINE) |
---|
496 | fi |
---|
497 | |
---|
498 | # iostream |
---|
499 | if test "x$enable_streamio" = xno; then |
---|
500 | AC_DEFINE(NOSTREAMIO) |
---|
501 | else |
---|
502 | factorysrc="$factorysrc \$(useiofactorysrc)" |
---|
503 | factoryincl="$factoryincl \$(useiofactoryincl)" |
---|
504 | fi |
---|
505 | |
---|
506 | # assertions |
---|
507 | if test "x$enable_assertions" = xno; then |
---|
508 | AC_DEFINE(NOASSERT) |
---|
509 | fi |
---|
510 | |
---|
511 | # timing |
---|
512 | if test "x$enable_timing" != xno; then |
---|
513 | AC_DEFINE(TIMING) |
---|
514 | fi |
---|
515 | |
---|
516 | # debugoutput |
---|
517 | if test "x$enable_debugoutput" != xno; then |
---|
518 | AC_DEFINE(DEBUGOUTPUT) |
---|
519 | fi |
---|
520 | |
---|
521 | # |
---|
522 | # - complete and substitute variables, defines. |
---|
523 | # |
---|
524 | AC_SUBST(gftabledir) |
---|
525 | AC_SUBST(templatedir) |
---|
526 | |
---|
527 | AC_SUBST(factory_version) |
---|
528 | |
---|
529 | AC_SUBST(libfactory) |
---|
530 | |
---|
531 | AC_SUBST(ARFLAGS) |
---|
532 | AC_SUBST(M4FLAGS) |
---|
533 | AC_SUBST(MAKEHEADERFLAGS) |
---|
534 | |
---|
535 | AC_SUBST(factorysrc) |
---|
536 | AC_SUBST(factoryincl) |
---|
537 | AC_SUBST(memmansrc) |
---|
538 | AC_SUBST(memmanincl) |
---|
539 | |
---|
540 | AC_SUBST(alltargets) |
---|
541 | AC_SUBST(installtargets) |
---|
542 | AC_SUBST(uninstalltargets) |
---|
543 | |
---|
544 | AC_DEFINE_UNQUOTED(FACTORYVERSION, "$factory_version") |
---|
545 | AC_DEFINE_UNQUOTED(FACTORYCONFIGURATION, "$factory_configuration") |
---|
546 | AC_DEFINE_UNQUOTED(GFTABLEDIR, "$explicit_gftabledir") |
---|
547 | |
---|
548 | AC_OUTPUT(GNUmakefile ftest/GNUmakefile) |
---|