source: git/omalloc/configure.ac @ 48afda

spielwiese
Last change on this file since 48afda was 8fee84, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
libfindexec separation CHG: no need in 'ifdef HAVE_CONFIG_H' in omFindExec.c (not used in any configure anymore) CHG: separation/removal of omFindExec from omalloc & xalloc ADD: use new findexec library
  • Property mode set to 100644
File size: 16.5 KB
Line 
1dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
2dnl File: configure.ac
3dnl Purpose: Process this file with autoconf to produce configure
4dnl Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
5dnl Created: 11/99
6dnl Version: $Id$
7dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
8
9AC_INIT([omalloc],[0.9.6])
10AC_CONFIG_SRCDIR(om_Alloc.c)
11
12AC_CONFIG_AUX_DIR([.])
13
14AC_CONFIG_HEADER(omConfig.h)
15
16AM_MAINTAINER_MODE
17AM_INIT_AUTOMAKE([omalloc],[0.9.6])
18
19# Add pre'prefixed config
20AX_PREFIX_CONFIG_H([omConfig.h],[],[omConfig.h])
21
22AC_SUBST(VERSION)
23
24dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
25dnl help for configure
26dnl
27AC_ARG_WITH(
28  external-config_h,
29  [ --with-external-config_h=HEADER_FILE
30                    use HEADER_FILE for external configuration])
31AC_ARG_WITH(
32  external-config_c,
33  [ --with-external-config_c=C_FILE
34                    use C_FILE for external implementations])
35AC_ARG_WITH(
36  malloc,
37  [ --with-malloc=system|external
38                    which malloc to use, default: malloc ])
39AC_ARG_WITH(
40  external-malloc_h,
41  [ --with-external-malloc-h=HEADER_FILE
42                    use HEADER_FILE for external malloc declaration])
43AC_ARG_WITH(
44  external-malloc_c,
45  [ --with-external-malloc-c=C_FILE
46                    use C_FILE for external malloc implementation])
47AC_ARG_WITH(
48  valloc,
49  [ --with-valloc=mmap|system|emulate
50                    how to get page-aligned memory, default: use first possible])
51AC_ARG_WITH(
52  align,
53  [ --with-align=8|sloppy|strict
54                    how memory is aligned,
55                    default: if possible sloppy, else strict])
56AC_ARG_WITH(
57  dense-bins,
58  [ --with-dense-bins  use dense bin distribution])
59AC_ARG_WITH(
60  inline,
61  [ --without-inline   do not inline])
62AC_ARG_WITH(
63  debug,
64  [ --without-debug    disable all debugging facilities])
65AC_ARG_WITH(
66  track,
67  [ --without-track    disable debug tracking functionality])
68AC_ARG_WITH(
69  track-fl,
70  [ --with-track-fl    track file and line numbers])
71AC_ARG_WITH(
72  track-return,
73  [ --with-track-return track return addresses])
74AC_ARG_WITH(
75  track-backtrace,
76  [ --with-track-backtrace track stack backtraces])
77AC_ARG_WITH(
78  track-custom,
79  [ --with-track-custom track custom values])
80AC_ARG_WITH(
81  internal_debug,
82  [ --with-internal-debug
83                       turn on internal debugging])
84dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
85dnl compiler/make  config
86dnl
87dnl I'm not sure why I did this
88dnl if test "${CFLAGS+set}" != set; then
89dnl  CFLAGS="-O"
90dnl  ac_cflags_set=no
91dnl fi
92
93CPPFLAGS="-I.. -I."
94AC_PROG_MAKE_SET
95AC_PROG_CC
96AC_PROG_CPP
97
98AC_PROG_LN_S
99AC_PROG_INSTALL
100AM_PROG_CC_C_O
101AC_C_CONST
102AC_C_INLINE
103
104LT_INIT
105
106
107dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
108dnl check for programs
109dnl
110AC_CHECK_PROG(AR, ar, ar, :)
111if test "$ac_cv_prog_AR" != ar; then
112  AC_MSG_ERROR(*** ar program not found)
113fi
114AC_CHECK_PROGS(PERL, perl, "no")
115if test "$ac_cv_prog_PERL" = no; then
116  AC_MSG_ERROR(*** perl program not found)
117fi
118
119AC_CHECK_PROG(ADDR2LINE, addr2line, addr2line, no)
120if test "$ac_cv_prog_ADDR2LINE" = addr2line; then
121  AC_DEFINE_UNQUOTED(OM_PROG_ADDR2LINE, "$ac_cv_prog_ADDR2LINE", "Name of addr2line")
122fi
123
124dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
125dnl header file checks
126dnl
127AC_HEADER_STDC
128AC_CHECK_HEADERS(limits.h,,
129  AC_MSG_ERROR(Can not compile without limits.h))
130
131AC_CHECK_HEADERS(unistd.h sys/mman.h fcntl.h /usr/include/malloc.h)
132
133AC_CHECK_FUNCS(popen mmap sbrk random)
134
135dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
136dnl Find out more about particularity of the system
137dnl
138
139# sizes
140AC_CHECK_SIZEOF(long,4)
141AC_CHECK_SIZEOF(void*,4)
142AC_CHECK_SIZEOF(double, 8)
143AC_CHECK_SIZEOF(size_t, 4)
144
145if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then
146  AC_MSG_ERROR(need equal sizes for long and void*)
147fi
148if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then
149  AC_MSG_ERROR(need void* to be 4 or 8 bytes long)
150fi
151if test "$ac_cv_sizeof_double" != 4 && test "$ac_cv_sizeof_double" != 8; then
152  AC_MSG_ERROR(need double to be 4 or 8 bytes long)
153fi
154
155dnl Set compiler, linker flags so that we can work with omalloc
156BACKUP_CFLAGS=$CFLAGS
157BACKUP_CXXFLAGS=$CXXFLAGS
158BACKUP_LDFLAGS=$LDFLAGS
159CFLAGS="$CFLAGS -I$srcdir"
160CXXFLAGS="$CXXFLAGS -I$srcdir"
161
162dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
163dnl figure out page size of the system
164dnl
165AC_MSG_CHECKING(size of system page)
166AC_CACHE_VAL(ac_cv_pagesize,
167AC_TRY_RUN([#include <stdio.h>
168#include "omGetPageSize.h"
169
170main()
171{
172  FILE *f=fopen("conftestval", "w");
173  if (!f) exit(1);
174  fprintf(f, "%d\n", omalloc_getpagesize);
175  exit(0);
176}], ac_cv_pagesize=`cat conftestval`, ac_cv_pagesize=0, ac_cv_pagesize=0))
177# can not really handle pagesizes which are greater -- there must be a
178# bug somewhere
179if test $ac_cv_pagesize -gt 8192; then
180  ac_cv_pagesize=8192
181fi
182AC_MSG_RESULT($ac_cv_pagesize)
183if test "$ac_cv_pagesize" = 4096 || test "$ac_cv_pagesize" = 8192; then
184  AC_DEFINE_UNQUOTED(SIZEOF_SYSTEM_PAGE, $ac_cv_pagesize, "Page-size of the build-system")
185else
186AC_MSG_ERROR([need sytem page to be of size 4096 or 8192, but is $ac_cv_pagesize])
187fi
188
189AC_DEFINE_UNQUOTED(SIZEOF_OM_PAGE,SIZEOF_SYSTEM_PAGE,Page-size of the build-system)
190
191dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
192dnl check whether mmap actually works
193dnl
194if test "$ac_cv_func_mmap" = yes; then
195AC_MSG_CHECKING(whether mmap works)
196AC_CACHE_VAL(ac_cv_working_mmap,
197AC_TRY_RUN([
198#include "omMmap.c"
199main()
200{
201  void* addr = omVallocMmap(128*${ac_cv_pagesize});
202  if (addr == 0 || ((unsigned long) addr % ${ac_cv_pagesize}))
203    exit(1);
204  exit(omVfreeMmap(addr, 128*${ac_cv_pagesize}));
205}], ac_cv_working_mmap=yes, ac_cv_working_mmap=no, ac_cv_working_mmap=no))
206AC_MSG_RESULT($ac_cv_working_mmap)
207if test "$ac_cv_working_mmap" = yes; then
208  AC_DEFINE(HAVE_WORKING_MMAP,1,"Whether we have a working mmap")
209fi
210fi
211
212dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
213dnl for strict alignment
214dnl
215AC_CACHE_CHECK(whether alignment needs to be strict, ac_cv_align_need_strict,
216AC_TRY_RUN([
217main()
218{
219  void* ptr = (void*) malloc(12);
220  double* d_ptr;
221  if ((unsigned long) ptr % 8 == 0) ptr = ptr + 4;
222  d_ptr = (double*) ptr;
223  *d_ptr = (double) 1.1;
224  if (*d_ptr != (double) 1.1) exit(1);
225  else exit(0);
226}
227], ac_cv_align_need_strict=no, ac_cv_align_need_strict=yes, ac_cv_align_need_strict=yes))
228
229dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
230dnl external config files
231dnl
232AC_MSG_CHECKING(for external config files)
233if test "${with_external_config_h+set}" = set; then
234    AC_DEFINE(OM_HAVE_EXTERNAL_CONFIG_H,1,"Whether we have external config.h")
235    EXTERNAL_CONFIG_HEADER=${with_external_config_h}
236    rm -f omExternalConfig.h
237    cp ${with_external_config_h} omExternalConfig.h
238fi
239if test "${with_external_config_c+set}" = set; then
240    AC_DEFINE(OM_HAVE_EXTERNAL_CONFIG_C,1,"Wether we have an external config.c")
241    EXTERNAL_CONFIG_SOURCE=${with_external_config_c}
242fi
243AC_SUBST(EXTERNAL_CONFIG_HEADER)
244AC_SUBST(EXTERNAL_CONFIG_SOURCE)
245if test "${EXTERNAL_CONFIG_HEADER+set}" = set || test "${EXTERNAL_CONFIG_SOURCE+set}" = set; then
246AC_MSG_RESULT(${EXTERNAL_CONFIG_HEADER} ${EXTERNAL_CONFIG_SOURCE})
247else
248AC_MSG_RESULT(none)
249fi
250
251dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
252dnl for malloc
253dnl
254AC_MSG_CHECKING(which malloc to use)
255if test "${with_malloc}" = system; then
256  OM_MALLOC_HEADER=omMallocSystem.h
257  AC_DEFINE(OMALLOC_USES_MALLOC,1,the system allocator is called malloc)
258  AC_DEFINE(OMALLOC_USES_SYSTEM_MALLOC,1,use system malloc as system allocator)
259elif test "${with_malloc}" = external; then
260  if test "${with_external_malloc_h+set}" != set; then
261    AC_MSG_ERROR(need --with_external_malloc_h for external malloc)
262  fi
263  AC_DEFINE(OMALLOC_USES_EXTERNAL_MALLOC,1,use external malloc as system allocator)
264  OM_MALLOC_HEADER=$with_external_malloc_h
265  OM_MALLOC_SOURCE=$with_external_malloc_c
266  AC_DEFINE(OMALLOC_USES_MALLOC,1,the system allocator is called malloc)
267else    ## default
268  OM_MALLOC_HEADER=omMallocSystem.h
269  AC_DEFINE(OMALLOC_USES_MALLOC,1,the system allocator is called malloc)
270  AC_DEFINE(OMALLOC_USES_SYSTEM_MALLOC,1,use system malloc as system allocator)
271fi
272AC_MSG_RESULT($with_malloc)
273
274AC_SUBST(OM_MALLOC_HEADER)
275AC_SUBST(OM_MALLOC_SOURCE)
276if test "${OM_MALLOC_SOURCE+set}" = set; then
277  AC_DEFINE(OM_HAVE_MALLOC_SOURCE,1,"Whether we have the source for malloc ()")
278fi
279
280AC_MSG_CHECKING(whether malloc provides SizeOfAddr)
281if test "${ac_cv_malloc_sizeof_addr}" = no; then
282  AC_MSG_RESULT( (cached) no)
283elif test "${ac_cv_malloc_sizeof_addr}" = "${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"; then
284   AC_MSG_RESULT( (cached) yes)
285else
286AC_TRY_RUN([
287#include "$OM_MALLOC_HEADER"
288#ifdef OM_HAVE_MALLOC_SOURCE
289#include "$OM_MALLOC_SOURCE"
290#endif
291
292main()
293{
294  void* addr = OM_MALLOC_MALLOC(512);
295  if (OM_MALLOC_SIZEOF_ADDR(addr) < 512)
296    exit(1);
297  exit(0);
298}
299], ac_cv_malloc_sizeof_addr="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}", ac_cv_malloc_sizeof_addr=no, ac_cv_malloc_sizeof_addr=no)
300if test "${ac_cv_malloc_sizeof_addr}" = no; then
301AC_MSG_RESULT(no)
302else
303AC_MSG_RESULT(yes)
304fi
305fi
306if test "$ac_cv_malloc_sizeof_addr" != no; then
307AC_DEFINE(OM_MALLOC_PROVIDES_SIZEOF_ADDR,1,"Whether malloc provides SIZEOF_ADDR")
308fi
309
310dnl Restore user-specified CFLAGS, CXXFLAGS, LIBS
311
312CFLAGS=$BACKUP_CFLAGS
313CXXFLAGS=$BACKUP_CXXFLAGS
314LDFLAGS=$BACKUP_LDFLAGS
315
316dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
317dnl check whether valloc is provided and that it works
318dnl
319AC_MSG_CHECKING(whether working valloc exists)
320if test "${ac_cv_working_valloc}" = no; then
321  AC_MSG_RESULT( (cached) no)
322elif test "${ac_cv_working_valloc}" = "${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"; then
323  AC_MSG_RESULT( (cached) yes)
324else
325AC_TRY_RUN([
326#include "$OM_MALLOC_HEADER"
327#ifdef OM_HAVE_MALLOC_SOURCE
328#include "$OM_MALLOC_SOURCE"
329#endif
330
331main()
332{
333  void* addr = OM_MALLOC_VALLOC(128*${ac_cv_pagesize});
334  if (addr == 0 || ((unsigned long) addr % ${ac_cv_pagesize}))
335    exit(1);
336  OM_MALLOC_VFREE(addr, 128*${ac_cv_pagesize});
337  exit(0);
338}
339], ac_cv_working_valloc="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}", ac_cv_working_valloc=no, ac_cv_working_valloc=no)
340if test "${ac_cv_working_valloc}" = no; then
341AC_MSG_RESULT(no)
342else
343AC_MSG_RESULT(yes)
344fi
345fi
346
347dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
348dnl for valloc
349dnl
350AC_MSG_CHECKING(which valloc to use)
351if test "${with_valloc+set}" != set || test "${with_valloc}" = mmap; then
352  if test "${ac_cv_working_mmap}" = yes; then
353    with_valloc=mmap
354    AC_DEFINE(OM_HAVE_VALLOC_MMAP,1,"Have valloc")
355  else
356    with_valloc=malloc
357  fi
358fi
359if test "${with_valloc}" = malloc; then
360  if test "${ac_cv_working_valloc}" != no; then
361    AC_DEFINE(OM_HAVE_VALLOC_MALLOC,1,"Have valloc")
362  else
363    with_valloc=emulate
364  fi
365fi
366AC_MSG_RESULT($with_valloc)
367
368dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
369dnl alignment
370dnl
371AC_MSG_CHECKING(how to align)
372if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then
373  ac_cv_align=8
374  AC_DEFINE(OM_ALIGN_8,1,"Align to 8 bytes")
375else
376if test "$ac_cv_align_need_strict" = "yes" || test "$with_align" = "strict"; then
377  AC_DEFINE(OM_ALIGNMENT_NEEDS_WORK,1,"Whether alignment needs work")
378  ac_cv_align="strict"
379else
380  ac_cv_align="sloppy"
381fi
382fi
383AC_MSG_RESULT($ac_cv_align)
384
385dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
386dnl dense bins
387dnl
388AC_MSG_CHECKING(whether to use dense bins)
389if test "$with_dense_bins" = yes; then
390AC_MSG_RESULT(yes)
391AC_DEFINE(OM_HAVE_DENSE_BIN_DISTRIBUTION,1,"Whether we have dense bins")
392else
393AC_MSG_RESULT(no)
394fi
395
396dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
397dnl debug and inline
398dnl
399AC_MSG_CHECKING(whether to disable debugging)
400if test "$with_debug" != no; then
401AC_MSG_RESULT(no)
402else
403AC_MSG_RESULT(yes)
404AC_DEFINE(OM_NDEBUG,1,"Disable debug")
405with_track=no
406fi
407
408AC_MSG_CHECKING(whether to have tracking debug functionality)
409if test "$with_track" != no; then
410AC_MSG_RESULT(yes)
411AC_DEFINE(OM_HAVE_TRACK,1,"Have track")
412else
413AC_MSG_RESULT(no)
414fi
415
416AC_MSG_CHECKING(whether to use internal debug)
417if test "$with_internal_debug" = yes; then
418AC_MSG_RESULT(yes)
419AC_DEFINE(OM_INTERNAL_DEBUG,1,"Internal debug")
420with_inline=no
421else
422AC_MSG_RESULT(no)
423fi
424
425AC_MSG_CHECKING(whether to inline)
426if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then
427  AC_DEFINE_UNQUOTED(OM_INLINE, static $ac_cv_c_inline, "inline-declaration")
428  AC_DEFINE_UNQUOTED(OM_INLINE_DECL, static $ac_cv_c_inline, "inline-declaration")
429  AC_DEFINE_UNQUOTED(OM_INLINE_IMPL, static $ac_cv_c_inline, "inline-declaration")
430  AC_DEFINE_UNQUOTED(OM_INLINE_LOCAL, static $ac_cv_c_inline, "inline-declaration")
431  AC_MSG_RESULT(yes)
432else
433  AC_DEFINE_UNQUOTED(OM_INLINE_DECL, extern, "inline-declaration")
434  AC_DEFINE_UNQUOTED(OM_INLINE_IMPL,, "inline-declaration")
435  AC_DEFINE_UNQUOTED(OM_INLINE_LOCAL, static, "inline-declaration")
436  AC_MSG_RESULT(no)
437fi
438
439dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
440dnl backtrace business
441dnl
442AC_MSG_CHECKING(whether GET_RET_ADDR works)
443AC_CACHE_VAL(ac_cv_get_return_addr_works,
444AC_TRY_RUN([
445#include "omReturn.h"
446int test_return_addr()
447{
448  char* f;
449  GET_RET_ADDR(f);
450  return (int) f;
451}
452int main()
453{
454   exit(! test_return_addr());
455}
456], ac_cv_get_return_addr_works=yes,
457   ac_cv_get_return_addr_works=no,
458   ac_cv_get_return_addr_works=no))
459AC_MSG_RESULT($ac_cv_get_return_addr_works)
460if test "$ac_cv_get_return_addr_works" = yes; then
461AC_DEFINE(OM_GET_RETURN_ADDR_WORKS,1, "Whether get return address works")
462fi
463
464AC_MSG_CHECKING(whether omGetBackTrace works)
465AC_CACHE_VAL(ac_cv_get_backtrace_works,
466AC_TRY_RUN([
467#include "omGetBackTrace.c"
468#include <stdio.h>
469int test_backtrace()
470{
471  void* bt;
472  int i = omGetBackTrace(&bt, 0, 10);
473  return i;
474}
475int main()
476{
477   int i;
478   omInitGetBackTrace();
479   i = test_backtrace();
480   if (i == 1) exit(0);
481   else exit(i+1);
482}
483], ac_cv_get_backtrace_works=yes,
484   ac_cv_get_backtrace_works=no,
485   ac_cv_get_backtrace_works=no))
486AC_MSG_RESULT($ac_cv_get_backtrace_works)
487if test "$ac_cv_get_backtrace_works" = yes; then
488AC_DEFINE(OM_GET_BACKTRACE_WORKS,1,"Whether omInitGetBackTrace () works")
489fi
490
491AC_MSG_CHECKING(whether addr2line works)
492AC_CACHE_VAL(ac_cv_prog_addr2line_works,
493AC_TRY_RUN([
494#undef OM_GET_BACKTRACE_WORKS
495#include "omReturn.h"
496#include "omStructs.h"
497#include "omGetBackTrace.h"
498#include "omRet2Info.c"
499
500int test_Ret_2_Info()
501{
502  void* bt;
503  int i;
504  struct omRetInfo_s info;
505
506  GET_RET_ADDR(bt);
507  i = omBackTrace_2_RetInfo(&bt, &info, 1);
508  return i;
509}
510
511int main(int argc, char** argv)
512{
513  int i;
514  omInitRet_2_Info(*argv);
515  i = test_Ret_2_Info();
516  if (i==1) exit(0);
517  else exit (i+10);
518}
519], ac_cv_prog_addr2line_works=yes,
520   ac_cv_prog_addr2line_works=no,
521   ac_cv_prog_addr2line_works=no))
522AC_MSG_RESULT($ac_cv_prog_addr2line_works)
523
524AC_MSG_CHECKING(whether to track return addresses)
525if test "$with_track_return" = no || test "$ac_cv_get_return_addr_works" = no || test "$ac_cv_prog_addr2line_works" != yes; then
526  with_track_return=no
527else
528  AC_DEFINE(OM_TRACK_RETURN,1,"Whether to track return")
529  with_track_return=yes
530fi
531AC_MSG_RESULT($with_track_return)
532
533AC_MSG_CHECKING(whether to track files and line numbers)
534if test "$with_track_fl" = no && test "$with_track_return" = no; then
535  with_track_fl=yes
536fi
537if test "${with_track_fl+set}" != set; then
538  if test "$with_track_return" = yes; then
539    with_track_fl=no
540  else
541    with_track_fl=yes
542  fi
543fi
544AC_MSG_RESULT($with_track_fl)
545if test "$with_track_fl" = yes; then
546  AC_DEFINE(OM_TRACK_FILE_LINE,1,"Whether to track file-line")
547fi
548
549AC_MSG_CHECKING(whether to track stack backtraces)
550if test "$with_track" != no && test "$ac_cv_get_backtrace_works" = yes && test "$with_track_backtrace" != no && test "$ac_cv_prog_addr2line_works" = yes; then
551  with_track_backtrace=yes
552  AC_DEFINE(OM_TRACK_BACKTRACE,1,"Whether to track backtrace")
553else
554  with_track_backtrace=no
555fi
556AC_MSG_RESULT($with_track_backtrace)
557
558AC_MSG_CHECKING(whether to track custom values)
559if test "$with_track" != no && test "$with_track_custom" = yes; then
560  AC_DEFINE(OM_TRACK_CUSTOM,1,"Enable custom tracking")
561else
562  with_track_custom=no
563fi
564AC_MSG_RESULT($with_track_custom)
565
566dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
567dnl figure out the return type of sbrk
568dnl
569
570AC_MSG_CHECKING(return type of sbrk)
571AC_TRY_LINK(
572#define __USE_MISC
573#include <unistd.h>
574,
575void *sbrk();
576,
577AC_DEFINE(Void_t,void,"Type of void"),
578AC_DEFINE(Void_t,char,"Type of void"),
579)
580AC_MSG_RESULT(Void_t)
581
582
583AC_DEFINE(OM_PROVIDE_MALLOC,0,[Provide NO standard routines!])
584
585
586
587dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
588dnl wrap it up
589dnl
590AC_CONFIG_FILES([Makefile])
591AC_OUTPUT
592
Note: See TracBrowser for help on using the repository browser.