source: git/omalloc/configure @ 7b05b5

jengelh-datetimespielwiese
Last change on this file since 7b05b5 was 7b05b5, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
new configure(.in) in omalloc and misc defaults: --prefix=/usr/local --includedir=${prefix}/include/${project}/${component} --libdir=${prefix}/lib/${project}/${component}
  • Property mode set to 100755
File size: 81.9 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-external-config_h=HEADER_FILE
16                    use HEADER_FILE for external configuration"
17ac_help="$ac_help
18 --with-external-config_c=C_FILE
19                    use C_FILE for external implementations"
20ac_help="$ac_help
21 --with-malloc=system|dlmalloc|gmalloc|pmalloc|external
22                    which malloc to use, default: malloc "
23ac_help="$ac_help
24 --with-external-malloc-h=HEADER_FILE
25                    use HEADER_FILE for external malloc declaration"
26ac_help="$ac_help
27 --with-external-malloc-c=C_FILE
28                    use C_FILE for external malloc implementation"
29ac_help="$ac_help
30 --with-valloc=mmap|system|emulate
31                    how to get page-aligned memory, default: use first possible"
32ac_help="$ac_help
33 --with-provide-malloc=yes|debug|malloc
34                    provide normal|debug|underlying malloc ANSI-C conforming
35                    versions of malloc|calloc|realloc|free"
36ac_help="$ac_help
37 --with-emulate-omalloc
38                    provide only omallocs interface, but do not use its features"
39ac_help="$ac_help
40 --with-align=8|sloppy|strict
41                    how memory is aligned,
42                    default: if possible sloppy, else strict"
43ac_help="$ac_help
44 --with-dense-bins  use dense bin distribution"
45ac_help="$ac_help
46 --without-inline   do not inline"
47ac_help="$ac_help
48 --without-debug    disable all debugging facilities"
49ac_help="$ac_help
50 --without-track    disable debug tracking functionality"
51ac_help="$ac_help
52 --with-track-fl    track file and line numbers"
53ac_help="$ac_help
54 --with-track-return track return addresses"
55ac_help="$ac_help
56 --with-track-backtrace track stack backtraces"
57ac_help="$ac_help
58 --with-track-custom track custom values"
59ac_help="$ac_help
60 --with-internal-debug
61                       turn on internal debugging"
62
63# Initialize some variables set by options.
64# The variables have the same names as the options, with
65# dashes changed to underlines.
66build=NONE
67cache_file=./config.cache
68exec_prefix=NONE
69host=NONE
70no_create=
71nonopt=NONE
72no_recursion=
73prefix=NONE
74program_prefix=NONE
75program_suffix=NONE
76program_transform_name=s,x,x,
77silent=
78site=
79srcdir=
80target=NONE
81verbose=
82x_includes=NONE
83x_libraries=NONE
84bindir='${exec_prefix}/bin'
85sbindir='${exec_prefix}/sbin'
86libexecdir='${exec_prefix}/libexec'
87datadir='${prefix}/share'
88sysconfdir='${prefix}/etc'
89sharedstatedir='${prefix}/com'
90localstatedir='${prefix}/var'
91libdir='${exec_prefix}/lib'
92includedir='${prefix}/include'
93oldincludedir='/usr/include'
94infodir='${prefix}/info'
95mandir='${prefix}/man'
96
97# Initialize some other variables.
98subdirs=
99MFLAGS= MAKEFLAGS=
100SHELL=${CONFIG_SHELL-/bin/sh}
101# Maximum number of lines to put in a shell here document.
102ac_max_here_lines=12
103
104ac_prev=
105for ac_option
106do
107
108  # If the previous option needs an argument, assign it.
109  if test -n "$ac_prev"; then
110    eval "$ac_prev=\$ac_option"
111    ac_prev=
112    continue
113  fi
114
115  case "$ac_option" in
116  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117  *) ac_optarg= ;;
118  esac
119
120  # Accept the important Cygnus configure options, so we can diagnose typos.
121
122  case "$ac_option" in
123
124  -bindir | --bindir | --bindi | --bind | --bin | --bi)
125    ac_prev=bindir ;;
126  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
127    bindir="$ac_optarg" ;;
128
129  -build | --build | --buil | --bui | --bu)
130    ac_prev=build ;;
131  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
132    build="$ac_optarg" ;;
133
134  -cache-file | --cache-file | --cache-fil | --cache-fi \
135  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
136    ac_prev=cache_file ;;
137  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
138  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
139    cache_file="$ac_optarg" ;;
140
141  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
142    ac_prev=datadir ;;
143  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
144  | --da=*)
145    datadir="$ac_optarg" ;;
146
147  -disable-* | --disable-*)
148    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
149    # Reject names that are not valid shell variable names.
150    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152    fi
153    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154    eval "enable_${ac_feature}=no" ;;
155
156  -enable-* | --enable-*)
157    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158    # Reject names that are not valid shell variable names.
159    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161    fi
162    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163    case "$ac_option" in
164      *=*) ;;
165      *) ac_optarg=yes ;;
166    esac
167    eval "enable_${ac_feature}='$ac_optarg'" ;;
168
169  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
170  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
171  | --exec | --exe | --ex)
172    ac_prev=exec_prefix ;;
173  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
174  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
175  | --exec=* | --exe=* | --ex=*)
176    exec_prefix="$ac_optarg" ;;
177
178  -gas | --gas | --ga | --g)
179    # Obsolete; use --with-gas.
180    with_gas=yes ;;
181
182  -help | --help | --hel | --he)
183    # Omit some internal or obsolete options to make the list less imposing.
184    # This message is too long to be a string in the A/UX 3.1 sh.
185    cat << EOF
186Usage: configure [options] [host]
187Options: [defaults in brackets after descriptions]
188Configuration:
189  --cache-file=FILE       cache test results in FILE
190  --help                  print this message
191  --no-create             do not create output files
192  --quiet, --silent       do not print \`checking...' messages
193  --version               print the version of autoconf that created configure
194Directory and file names:
195  --prefix=PREFIX         install architecture-independent files in PREFIX
196                          [$ac_default_prefix]
197  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
198                          [same as prefix]
199  --bindir=DIR            user executables in DIR [EPREFIX/bin]
200  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
201  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
202  --datadir=DIR           read-only architecture-independent data in DIR
203                          [PREFIX/share]
204  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
205  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
206                          [PREFIX/com]
207  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
208  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
209  --includedir=DIR        C header files in DIR [PREFIX/include]
210  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
211  --infodir=DIR           info documentation in DIR [PREFIX/info]
212  --mandir=DIR            man documentation in DIR [PREFIX/man]
213  --srcdir=DIR            find the sources in DIR [configure dir or ..]
214  --program-prefix=PREFIX prepend PREFIX to installed program names
215  --program-suffix=SUFFIX append SUFFIX to installed program names
216  --program-transform-name=PROGRAM
217                          run sed PROGRAM on installed program names
218EOF
219    cat << EOF
220Host type:
221  --build=BUILD           configure for building on BUILD [BUILD=HOST]
222  --host=HOST             configure for HOST [guessed]
223  --target=TARGET         configure for TARGET [TARGET=HOST]
224Features and packages:
225  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
226  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
227  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
228  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
229  --x-includes=DIR        X include files are in DIR
230  --x-libraries=DIR       X library files are in DIR
231EOF
232    if test -n "$ac_help"; then
233      echo "--enable and --with options recognized:$ac_help"
234    fi
235    exit 0 ;;
236
237  -host | --host | --hos | --ho)
238    ac_prev=host ;;
239  -host=* | --host=* | --hos=* | --ho=*)
240    host="$ac_optarg" ;;
241
242  -includedir | --includedir | --includedi | --included | --include \
243  | --includ | --inclu | --incl | --inc)
244    ac_prev=includedir ;;
245  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
246  | --includ=* | --inclu=* | --incl=* | --inc=*)
247    includedir="$ac_optarg" ;;
248
249  -infodir | --infodir | --infodi | --infod | --info | --inf)
250    ac_prev=infodir ;;
251  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
252    infodir="$ac_optarg" ;;
253
254  -libdir | --libdir | --libdi | --libd)
255    ac_prev=libdir ;;
256  -libdir=* | --libdir=* | --libdi=* | --libd=*)
257    libdir="$ac_optarg" ;;
258
259  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
260  | --libexe | --libex | --libe)
261    ac_prev=libexecdir ;;
262  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
263  | --libexe=* | --libex=* | --libe=*)
264    libexecdir="$ac_optarg" ;;
265
266  -localstatedir | --localstatedir | --localstatedi | --localstated \
267  | --localstate | --localstat | --localsta | --localst \
268  | --locals | --local | --loca | --loc | --lo)
269    ac_prev=localstatedir ;;
270  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
271  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
272  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
273    localstatedir="$ac_optarg" ;;
274
275  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
276    ac_prev=mandir ;;
277  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
278    mandir="$ac_optarg" ;;
279
280  -nfp | --nfp | --nf)
281    # Obsolete; use --without-fp.
282    with_fp=no ;;
283
284  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
285  | --no-cr | --no-c)
286    no_create=yes ;;
287
288  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
289  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
290    no_recursion=yes ;;
291
292  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
293  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
294  | --oldin | --oldi | --old | --ol | --o)
295    ac_prev=oldincludedir ;;
296  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
297  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
298  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
299    oldincludedir="$ac_optarg" ;;
300
301  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
302    ac_prev=prefix ;;
303  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
304    prefix="$ac_optarg" ;;
305
306  -program-prefix | --program-prefix | --program-prefi | --program-pref \
307  | --program-pre | --program-pr | --program-p)
308    ac_prev=program_prefix ;;
309  -program-prefix=* | --program-prefix=* | --program-prefi=* \
310  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
311    program_prefix="$ac_optarg" ;;
312
313  -program-suffix | --program-suffix | --program-suffi | --program-suff \
314  | --program-suf | --program-su | --program-s)
315    ac_prev=program_suffix ;;
316  -program-suffix=* | --program-suffix=* | --program-suffi=* \
317  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
318    program_suffix="$ac_optarg" ;;
319
320  -program-transform-name | --program-transform-name \
321  | --program-transform-nam | --program-transform-na \
322  | --program-transform-n | --program-transform- \
323  | --program-transform | --program-transfor \
324  | --program-transfo | --program-transf \
325  | --program-trans | --program-tran \
326  | --progr-tra | --program-tr | --program-t)
327    ac_prev=program_transform_name ;;
328  -program-transform-name=* | --program-transform-name=* \
329  | --program-transform-nam=* | --program-transform-na=* \
330  | --program-transform-n=* | --program-transform-=* \
331  | --program-transform=* | --program-transfor=* \
332  | --program-transfo=* | --program-transf=* \
333  | --program-trans=* | --program-tran=* \
334  | --progr-tra=* | --program-tr=* | --program-t=*)
335    program_transform_name="$ac_optarg" ;;
336
337  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
338  | -silent | --silent | --silen | --sile | --sil)
339    silent=yes ;;
340
341  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
342    ac_prev=sbindir ;;
343  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
344  | --sbi=* | --sb=*)
345    sbindir="$ac_optarg" ;;
346
347  -sharedstatedir | --sharedstatedir | --sharedstatedi \
348  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
349  | --sharedst | --shareds | --shared | --share | --shar \
350  | --sha | --sh)
351    ac_prev=sharedstatedir ;;
352  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
353  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
354  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
355  | --sha=* | --sh=*)
356    sharedstatedir="$ac_optarg" ;;
357
358  -site | --site | --sit)
359    ac_prev=site ;;
360  -site=* | --site=* | --sit=*)
361    site="$ac_optarg" ;;
362
363  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
364    ac_prev=srcdir ;;
365  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
366    srcdir="$ac_optarg" ;;
367
368  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
369  | --syscon | --sysco | --sysc | --sys | --sy)
370    ac_prev=sysconfdir ;;
371  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
372  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
373    sysconfdir="$ac_optarg" ;;
374
375  -target | --target | --targe | --targ | --tar | --ta | --t)
376    ac_prev=target ;;
377  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
378    target="$ac_optarg" ;;
379
380  -v | -verbose | --verbose | --verbos | --verbo | --verb)
381    verbose=yes ;;
382
383  -version | --version | --versio | --versi | --vers)
384    echo "configure generated by autoconf version 2.13"
385    exit 0 ;;
386
387  -with-* | --with-*)
388    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
389    # Reject names that are not valid shell variable names.
390    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
391      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392    fi
393    ac_package=`echo $ac_package| sed 's/-/_/g'`
394    case "$ac_option" in
395      *=*) ;;
396      *) ac_optarg=yes ;;
397    esac
398    eval "with_${ac_package}='$ac_optarg'" ;;
399
400  -without-* | --without-*)
401    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
402    # Reject names that are not valid shell variable names.
403    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
404      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405    fi
406    ac_package=`echo $ac_package| sed 's/-/_/g'`
407    eval "with_${ac_package}=no" ;;
408
409  --x)
410    # Obsolete; use --with-x.
411    with_x=yes ;;
412
413  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414  | --x-incl | --x-inc | --x-in | --x-i)
415    ac_prev=x_includes ;;
416  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418    x_includes="$ac_optarg" ;;
419
420  -x-libraries | --x-libraries | --x-librarie | --x-librari \
421  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422    ac_prev=x_libraries ;;
423  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425    x_libraries="$ac_optarg" ;;
426
427  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
428    ;;
429
430  *)
431    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
432      echo "configure: warning: $ac_option: invalid host type" 1>&2
433    fi
434    if test "x$nonopt" != xNONE; then
435      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
436    fi
437    nonopt="$ac_option"
438    ;;
439
440  esac
441done
442
443if test -n "$ac_prev"; then
444  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
445fi
446
447trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
448
449# File descriptor usage:
450# 0 standard input
451# 1 file creation
452# 2 errors and warnings
453# 3 some systems may open it to /dev/tty
454# 4 used on the Kubota Titan
455# 6 checking for... messages and results
456# 5 compiler messages saved in config.log
457if test "$silent" = yes; then
458  exec 6>/dev/null
459else
460  exec 6>&1
461fi
462exec 5>./config.log
463
464echo "\
465This file contains any messages produced by compilers while
466running configure, to aid debugging if configure makes a mistake.
467" 1>&5
468
469# Strip out --no-create and --no-recursion so they do not pile up.
470# Also quote any args containing shell metacharacters.
471ac_configure_args=
472for ac_arg
473do
474  case "$ac_arg" in
475  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
476  | --no-cr | --no-c) ;;
477  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
478  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
479  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
480  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
481  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
482  esac
483done
484
485# NLS nuisances.
486# Only set these to C if already set.  These must not be set unconditionally
487# because not all systems understand e.g. LANG=C (notably SCO).
488# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
489# Non-C LC_CTYPE values break the ctype check.
490if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
491if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
492if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
493if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
494
495# confdefs.h avoids OS command line length limits that DEFS can exceed.
496rm -rf conftest* confdefs.h
497# AIX cpp loses on an empty file, so make sure it contains at least a newline.
498echo > confdefs.h
499
500# A filename unique to this package, relative to the directory that
501# configure is in, which we can look for to find out if srcdir is correct.
502ac_unique_file=om_Alloc.c
503
504# Find the source files, if location was not specified.
505if test -z "$srcdir"; then
506  ac_srcdir_defaulted=yes
507  # Try the directory containing this script, then its parent.
508  ac_prog=$0
509  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
510  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511  srcdir=$ac_confdir
512  if test ! -r $srcdir/$ac_unique_file; then
513    srcdir=..
514  fi
515else
516  ac_srcdir_defaulted=no
517fi
518if test ! -r $srcdir/$ac_unique_file; then
519  if test "$ac_srcdir_defaulted" = yes; then
520    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
521  else
522    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
523  fi
524fi
525srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
526
527# Prefer explicitly selected file to automatically selected ones.
528if test -z "$CONFIG_SITE"; then
529  if test "x$prefix" != xNONE; then
530    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
531  else
532    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
533  fi
534fi
535for ac_site_file in $CONFIG_SITE; do
536  if test -r "$ac_site_file"; then
537    echo "loading site script $ac_site_file"
538    . "$ac_site_file"
539  fi
540done
541
542if test -r "$cache_file"; then
543  echo "loading cache $cache_file"
544  . $cache_file
545else
546  echo "creating cache $cache_file"
547  > $cache_file
548fi
549
550CPPFLAGS='-I.. -I.'
551export CPPFLAGS
552ac_ext=c
553# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554ac_cpp='$CPP $CPPFLAGS'
555ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557cross_compiling=$ac_cv_prog_cc_cross
558
559ac_exeext=
560ac_objext=o
561if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564    ac_n= ac_c='
565' ac_t='        '
566  else
567    ac_n=-n ac_c= ac_t=
568  fi
569else
570  ac_n= ac_c='\c' ac_t=
571fi
572
573
574
575VERSION=0.9.6
576
577
578# Check whether --with-external-config_h or --without-external-config_h was given.
579if test "${with_external_config_h+set}" = set; then
580  withval="$with_external_config_h"
581  :
582fi
583
584# Check whether --with-external-config_c or --without-external-config_c was given.
585if test "${with_external_config_c+set}" = set; then
586  withval="$with_external_config_c"
587  :
588fi
589
590# Check whether --with-malloc or --without-malloc was given.
591if test "${with_malloc+set}" = set; then
592  withval="$with_malloc"
593  :
594fi
595
596# Check whether --with-external-malloc_h or --without-external-malloc_h was given.
597if test "${with_external_malloc_h+set}" = set; then
598  withval="$with_external_malloc_h"
599  :
600fi
601
602# Check whether --with-external-malloc_c or --without-external-malloc_c was given.
603if test "${with_external_malloc_c+set}" = set; then
604  withval="$with_external_malloc_c"
605  :
606fi
607
608# Check whether --with-valloc or --without-valloc was given.
609if test "${with_valloc+set}" = set; then
610  withval="$with_valloc"
611  :
612fi
613
614# Check whether --with-provide-malloc or --without-provide-malloc was given.
615if test "${with_provide_malloc+set}" = set; then
616  withval="$with_provide_malloc"
617  :
618fi
619
620# Check whether --with-emulate-omalloc or --without-emulate-omalloc was given.
621if test "${with_emulate_omalloc+set}" = set; then
622  withval="$with_emulate_omalloc"
623  :
624fi
625
626# Check whether --with-align or --without-align was given.
627if test "${with_align+set}" = set; then
628  withval="$with_align"
629  :
630fi
631
632# Check whether --with-dense-bins or --without-dense-bins was given.
633if test "${with_dense_bins+set}" = set; then
634  withval="$with_dense_bins"
635  :
636fi
637
638# Check whether --with-inline or --without-inline was given.
639if test "${with_inline+set}" = set; then
640  withval="$with_inline"
641  :
642fi
643
644# Check whether --with-debug or --without-debug was given.
645if test "${with_debug+set}" = set; then
646  withval="$with_debug"
647  :
648fi
649
650# Check whether --with-track or --without-track was given.
651if test "${with_track+set}" = set; then
652  withval="$with_track"
653  :
654fi
655
656# Check whether --with-track-fl or --without-track-fl was given.
657if test "${with_track_fl+set}" = set; then
658  withval="$with_track_fl"
659  :
660fi
661
662# Check whether --with-track-return or --without-track-return was given.
663if test "${with_track_return+set}" = set; then
664  withval="$with_track_return"
665  :
666fi
667
668# Check whether --with-track-backtrace or --without-track-backtrace was given.
669if test "${with_track_backtrace+set}" = set; then
670  withval="$with_track_backtrace"
671  :
672fi
673
674# Check whether --with-track-custom or --without-track-custom was given.
675if test "${with_track_custom+set}" = set; then
676  withval="$with_track_custom"
677  :
678fi
679
680# Check whether --with-internal_debug or --without-internal_debug was given.
681if test "${with_internal_debug+set}" = set; then
682  withval="$with_internal_debug"
683  :
684fi
685
686
687echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
688echo "configure:687: checking whether ${MAKE-make} sets \${MAKE}" >&5
689set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
690if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
691  echo $ac_n "(cached) $ac_c" 1>&6
692else
693  cat > conftestmake <<\EOF
694all:
695        @echo 'ac_maketemp="${MAKE}"'
696EOF
697# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
699if test -n "$ac_maketemp"; then
700  eval ac_cv_prog_make_${ac_make}_set=yes
701else
702  eval ac_cv_prog_make_${ac_make}_set=no
703fi
704rm -f conftestmake
705fi
706if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
707  echo "$ac_t""yes" 1>&6
708  SET_MAKE=
709else
710  echo "$ac_t""no" 1>&6
711  SET_MAKE="MAKE=${MAKE-make}"
712fi
713
714# Extract the first word of "gcc", so it can be a program name with args.
715set dummy gcc; ac_word=$2
716echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
717echo "configure:716: checking for $ac_word" >&5
718if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
719  echo $ac_n "(cached) $ac_c" 1>&6
720else
721  if test -n "$CC"; then
722  ac_cv_prog_CC="$CC" # Let the user override the test.
723else
724  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
725  ac_dummy="$PATH"
726  for ac_dir in $ac_dummy; do
727    test -z "$ac_dir" && ac_dir=.
728    if test -f $ac_dir/$ac_word; then
729      ac_cv_prog_CC="gcc"
730      break
731    fi
732  done
733  IFS="$ac_save_ifs"
734fi
735fi
736CC="$ac_cv_prog_CC"
737if test -n "$CC"; then
738  echo "$ac_t""$CC" 1>&6
739else
740  echo "$ac_t""no" 1>&6
741fi
742
743if test -z "$CC"; then
744  # Extract the first word of "cc", so it can be a program name with args.
745set dummy cc; ac_word=$2
746echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747echo "configure:746: checking for $ac_word" >&5
748if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749  echo $ac_n "(cached) $ac_c" 1>&6
750else
751  if test -n "$CC"; then
752  ac_cv_prog_CC="$CC" # Let the user override the test.
753else
754  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
755  ac_prog_rejected=no
756  ac_dummy="$PATH"
757  for ac_dir in $ac_dummy; do
758    test -z "$ac_dir" && ac_dir=.
759    if test -f $ac_dir/$ac_word; then
760      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
761        ac_prog_rejected=yes
762        continue
763      fi
764      ac_cv_prog_CC="cc"
765      break
766    fi
767  done
768  IFS="$ac_save_ifs"
769if test $ac_prog_rejected = yes; then
770  # We found a bogon in the path, so make sure we never use it.
771  set dummy $ac_cv_prog_CC
772  shift
773  if test $# -gt 0; then
774    # We chose a different compiler from the bogus one.
775    # However, it has the same basename, so the bogon will be chosen
776    # first if we set CC to just the basename; use the full file name.
777    shift
778    set dummy "$ac_dir/$ac_word" "$@"
779    shift
780    ac_cv_prog_CC="$@"
781  fi
782fi
783fi
784fi
785CC="$ac_cv_prog_CC"
786if test -n "$CC"; then
787  echo "$ac_t""$CC" 1>&6
788else
789  echo "$ac_t""no" 1>&6
790fi
791
792  if test -z "$CC"; then
793    case "`uname -s`" in
794    *win32* | *WIN32*)
795      # Extract the first word of "cl", so it can be a program name with args.
796set dummy cl; ac_word=$2
797echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
798echo "configure:797: checking for $ac_word" >&5
799if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
800  echo $ac_n "(cached) $ac_c" 1>&6
801else
802  if test -n "$CC"; then
803  ac_cv_prog_CC="$CC" # Let the user override the test.
804else
805  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
806  ac_dummy="$PATH"
807  for ac_dir in $ac_dummy; do
808    test -z "$ac_dir" && ac_dir=.
809    if test -f $ac_dir/$ac_word; then
810      ac_cv_prog_CC="cl"
811      break
812    fi
813  done
814  IFS="$ac_save_ifs"
815fi
816fi
817CC="$ac_cv_prog_CC"
818if test -n "$CC"; then
819  echo "$ac_t""$CC" 1>&6
820else
821  echo "$ac_t""no" 1>&6
822fi
823 ;;
824    esac
825  fi
826  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
827fi
828
829echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
830echo "configure:829: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
831
832ac_ext=c
833# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
834ac_cpp='$CPP $CPPFLAGS'
835ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
836ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
837cross_compiling=$ac_cv_prog_cc_cross
838
839cat > conftest.$ac_ext << EOF
840
841#line 840 "configure"
842#include "confdefs.h"
843
844main(){return(0);}
845EOF
846if { (eval echo configure:845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
847  ac_cv_prog_cc_works=yes
848  # If we can't run a trivial program, we are probably using a cross compiler.
849  if (./conftest; exit) 2>/dev/null; then
850    ac_cv_prog_cc_cross=no
851  else
852    ac_cv_prog_cc_cross=yes
853  fi
854else
855  echo "configure: failed program was:" >&5
856  cat conftest.$ac_ext >&5
857  ac_cv_prog_cc_works=no
858fi
859rm -fr conftest*
860ac_ext=c
861# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
862ac_cpp='$CPP $CPPFLAGS'
863ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
864ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
865cross_compiling=$ac_cv_prog_cc_cross
866
867echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
868if test $ac_cv_prog_cc_works = no; then
869  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
870fi
871echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
872echo "configure:871: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
873echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
874cross_compiling=$ac_cv_prog_cc_cross
875
876echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
877echo "configure:876: checking whether we are using GNU C" >&5
878if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
879  echo $ac_n "(cached) $ac_c" 1>&6
880else
881  cat > conftest.c <<EOF
882#ifdef __GNUC__
883  yes;
884#endif
885EOF
886if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
887  ac_cv_prog_gcc=yes
888else
889  ac_cv_prog_gcc=no
890fi
891fi
892
893echo "$ac_t""$ac_cv_prog_gcc" 1>&6
894
895if test $ac_cv_prog_gcc = yes; then
896  GCC=yes
897else
898  GCC=
899fi
900
901ac_test_CFLAGS="${CFLAGS+set}"
902ac_save_CFLAGS="$CFLAGS"
903CFLAGS=
904echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
905echo "configure:904: checking whether ${CC-cc} accepts -g" >&5
906if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
907  echo $ac_n "(cached) $ac_c" 1>&6
908else
909  echo 'void f(){}' > conftest.c
910if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
911  ac_cv_prog_cc_g=yes
912else
913  ac_cv_prog_cc_g=no
914fi
915rm -f conftest*
916
917fi
918
919echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
920if test "$ac_test_CFLAGS" = set; then
921  CFLAGS="$ac_save_CFLAGS"
922elif test $ac_cv_prog_cc_g = yes; then
923  if test "$GCC" = yes; then
924    CFLAGS="-g -O2"
925  else
926    CFLAGS="-g"
927  fi
928else
929  if test "$GCC" = yes; then
930    CFLAGS="-O2"
931  else
932    CFLAGS=
933  fi
934fi
935
936echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
937echo "configure:936: checking how to run the C preprocessor" >&5
938# On Suns, sometimes $CPP names a directory.
939if test -n "$CPP" && test -d "$CPP"; then
940  CPP=
941fi
942if test -z "$CPP"; then
943if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
944  echo $ac_n "(cached) $ac_c" 1>&6
945else
946    # This must be in double quotes, not single quotes, because CPP may get
947  # substituted into the Makefile and "${CC-cc}" will confuse make.
948  CPP="${CC-cc} -E"
949  # On the NeXT, cc -E runs the code through the compiler's parser,
950  # not just through cpp.
951  cat > conftest.$ac_ext <<EOF
952#line 951 "configure"
953#include "confdefs.h"
954#include <assert.h>
955Syntax Error
956EOF
957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
958{ (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960if test -z "$ac_err"; then
961  :
962else
963  echo "$ac_err" >&5
964  echo "configure: failed program was:" >&5
965  cat conftest.$ac_ext >&5
966  rm -rf conftest*
967  CPP="${CC-cc} -E -traditional-cpp"
968  cat > conftest.$ac_ext <<EOF
969#line 968 "configure"
970#include "confdefs.h"
971#include <assert.h>
972Syntax Error
973EOF
974ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
975{ (eval echo configure:974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
976ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
977if test -z "$ac_err"; then
978  :
979else
980  echo "$ac_err" >&5
981  echo "configure: failed program was:" >&5
982  cat conftest.$ac_ext >&5
983  rm -rf conftest*
984  CPP="${CC-cc} -nologo -E"
985  cat > conftest.$ac_ext <<EOF
986#line 985 "configure"
987#include "confdefs.h"
988#include <assert.h>
989Syntax Error
990EOF
991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
992{ (eval echo configure:991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
994if test -z "$ac_err"; then
995  :
996else
997  echo "$ac_err" >&5
998  echo "configure: failed program was:" >&5
999  cat conftest.$ac_ext >&5
1000  rm -rf conftest*
1001  CPP=/lib/cpp
1002fi
1003rm -f conftest*
1004fi
1005rm -f conftest*
1006fi
1007rm -f conftest*
1008  ac_cv_prog_CPP="$CPP"
1009fi
1010  CPP="$ac_cv_prog_CPP"
1011else
1012  ac_cv_prog_CPP="$CPP"
1013fi
1014echo "$ac_t""$CPP" 1>&6
1015
1016# Extract the first word of "ranlib", so it can be a program name with args.
1017set dummy ranlib; ac_word=$2
1018echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019echo "configure:1018: checking for $ac_word" >&5
1020if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1021  echo $ac_n "(cached) $ac_c" 1>&6
1022else
1023  if test -n "$RANLIB"; then
1024  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1025else
1026  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1027  ac_dummy="$PATH"
1028  for ac_dir in $ac_dummy; do
1029    test -z "$ac_dir" && ac_dir=.
1030    if test -f $ac_dir/$ac_word; then
1031      ac_cv_prog_RANLIB="ranlib"
1032      break
1033    fi
1034  done
1035  IFS="$ac_save_ifs"
1036  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1037fi
1038fi
1039RANLIB="$ac_cv_prog_RANLIB"
1040if test -n "$RANLIB"; then
1041  echo "$ac_t""$RANLIB" 1>&6
1042else
1043  echo "$ac_t""no" 1>&6
1044fi
1045
1046echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1047echo "configure:1046: checking whether ln -s works" >&5
1048if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1049  echo $ac_n "(cached) $ac_c" 1>&6
1050else
1051  rm -f conftestdata
1052if ln -s X conftestdata 2>/dev/null
1053then
1054  rm -f conftestdata
1055  ac_cv_prog_LN_S="ln -s"
1056else
1057  ac_cv_prog_LN_S=ln
1058fi
1059fi
1060LN_S="$ac_cv_prog_LN_S"
1061if test "$ac_cv_prog_LN_S" = "ln -s"; then
1062  echo "$ac_t""yes" 1>&6
1063else
1064  echo "$ac_t""no" 1>&6
1065fi
1066
1067ac_aux_dir=
1068for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1069  if test -f $ac_dir/install-sh; then
1070    ac_aux_dir=$ac_dir
1071    ac_install_sh="$ac_aux_dir/install-sh -c"
1072    break
1073  elif test -f $ac_dir/install.sh; then
1074    ac_aux_dir=$ac_dir
1075    ac_install_sh="$ac_aux_dir/install.sh -c"
1076    break
1077  fi
1078done
1079if test -z "$ac_aux_dir"; then
1080  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1081fi
1082ac_config_guess=$ac_aux_dir/config.guess
1083ac_config_sub=$ac_aux_dir/config.sub
1084ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1085
1086# Find a good install program.  We prefer a C program (faster),
1087# so one script is as good as another.  But avoid the broken or
1088# incompatible versions:
1089# SysV /etc/install, /usr/sbin/install
1090# SunOS /usr/etc/install
1091# IRIX /sbin/install
1092# AIX /bin/install
1093# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1094# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1095# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1096# ./install, which can be erroneously created by make from ./install.sh.
1097echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1098echo "configure:1097: checking for a BSD compatible install" >&5
1099if test -z "$INSTALL"; then
1100if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1101  echo $ac_n "(cached) $ac_c" 1>&6
1102else
1103    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1104  for ac_dir in $PATH; do
1105    # Account for people who put trailing slashes in PATH elements.
1106    case "$ac_dir/" in
1107    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1108    *)
1109      # OSF1 and SCO ODT 3.0 have their own names for install.
1110      # Don't use installbsd from OSF since it installs stuff as root
1111      # by default.
1112      for ac_prog in ginstall scoinst install; do
1113        if test -f $ac_dir/$ac_prog; then
1114          if test $ac_prog = install &&
1115            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1116            # AIX install.  It has an incompatible calling convention.
1117            :
1118          else
1119            ac_cv_path_install="$ac_dir/$ac_prog -c"
1120            break 2
1121          fi
1122        fi
1123      done
1124      ;;
1125    esac
1126  done
1127  IFS="$ac_save_IFS"
1128
1129fi
1130  if test "${ac_cv_path_install+set}" = set; then
1131    INSTALL="$ac_cv_path_install"
1132  else
1133    # As a last resort, use the slow shell script.  We don't cache a
1134    # path for INSTALL within a source directory, because that will
1135    # break other packages using the cache if that directory is
1136    # removed, or if the path is relative.
1137    INSTALL="$ac_install_sh"
1138  fi
1139fi
1140echo "$ac_t""$INSTALL" 1>&6
1141
1142# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1143# It thinks the first close brace ends the variable substitution.
1144test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1145
1146test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1147
1148test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1149
1150echo $ac_n "checking for working const""... $ac_c" 1>&6
1151echo "configure:1150: checking for working const" >&5
1152if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1153  echo $ac_n "(cached) $ac_c" 1>&6
1154else
1155  cat > conftest.$ac_ext <<EOF
1156#line 1155 "configure"
1157#include "confdefs.h"
1158
1159int main() {
1160
1161/* Ultrix mips cc rejects this.  */
1162typedef int charset[2]; const charset x;
1163/* SunOS 4.1.1 cc rejects this.  */
1164char const *const *ccp;
1165char **p;
1166/* NEC SVR4.0.2 mips cc rejects this.  */
1167struct point {int x, y;};
1168static struct point const zero = {0,0};
1169/* AIX XL C 1.02.0.0 rejects this.
1170   It does not let you subtract one const X* pointer from another in an arm
1171   of an if-expression whose if-part is not a constant expression */
1172const char *g = "string";
1173ccp = &g + (g ? g-g : 0);
1174/* HPUX 7.0 cc rejects these. */
1175++ccp;
1176p = (char**) ccp;
1177ccp = (char const *const *) p;
1178{ /* SCO 3.2v4 cc rejects this.  */
1179  char *t;
1180  char const *s = 0 ? (char *) 0 : (char const *) 0;
1181
1182  *t++ = 0;
1183}
1184{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1185  int x[] = {25, 17};
1186  const int *foo = &x[0];
1187  ++foo;
1188}
1189{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1190  typedef const int *iptr;
1191  iptr p = 0;
1192  ++p;
1193}
1194{ /* AIX XL C 1.02.0.0 rejects this saying
1195     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1196  struct s { int j; const int *ap[3]; };
1197  struct s *b; b->j = 5;
1198}
1199{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1200  const int foo = 10;
1201}
1202
1203; return 0; }
1204EOF
1205if { (eval echo configure:1204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1206  rm -rf conftest*
1207  ac_cv_c_const=yes
1208else
1209  echo "configure: failed program was:" >&5
1210  cat conftest.$ac_ext >&5
1211  rm -rf conftest*
1212  ac_cv_c_const=no
1213fi
1214rm -f conftest*
1215fi
1216
1217echo "$ac_t""$ac_cv_c_const" 1>&6
1218if test $ac_cv_c_const = no; then
1219  cat >> confdefs.h <<\EOF
1220#define const
1221EOF
1222
1223fi
1224
1225echo $ac_n "checking for inline""... $ac_c" 1>&6
1226echo "configure:1225: checking for inline" >&5
1227if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1228  echo $ac_n "(cached) $ac_c" 1>&6
1229else
1230  ac_cv_c_inline=no
1231for ac_kw in inline __inline__ __inline; do
1232  cat > conftest.$ac_ext <<EOF
1233#line 1232 "configure"
1234#include "confdefs.h"
1235
1236int main() {
1237} $ac_kw foo() {
1238; return 0; }
1239EOF
1240if { (eval echo configure:1239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1241  rm -rf conftest*
1242  ac_cv_c_inline=$ac_kw; break
1243else
1244  echo "configure: failed program was:" >&5
1245  cat conftest.$ac_ext >&5
1246fi
1247rm -f conftest*
1248done
1249
1250fi
1251
1252echo "$ac_t""$ac_cv_c_inline" 1>&6
1253case "$ac_cv_c_inline" in
1254  inline | yes) ;;
1255  no) cat >> confdefs.h <<\EOF
1256#define inline
1257EOF
1258 ;;
1259  *)  cat >> confdefs.h <<EOF
1260#define inline $ac_cv_c_inline
1261EOF
1262 ;;
1263esac
1264
1265
1266project=singular
1267component=omalloc
1268
1269
1270# expand prefix
1271test "x$prefix" = xNONE && prefix=$ac_default_prefix
1272
1273# expand exec_prefixad
1274if test "x$exec_prefix" = xNONE; then
1275 exec_prefix=${prefix}
1276fi
1277
1278# expand libdir
1279test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib/${project}/${component}"
1280
1281# expand includedir
1282test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include/${project}/${component}"
1283
1284# Extract the first word of "ar", so it can be a program name with args.
1285set dummy ar; ac_word=$2
1286echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1287echo "configure:1268: checking for $ac_word" >&5
1288if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1289  echo $ac_n "(cached) $ac_c" 1>&6
1290else
1291  if test -n "$AR"; then
1292  ac_cv_prog_AR="$AR" # Let the user override the test.
1293else
1294  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1295  ac_dummy="$PATH"
1296  for ac_dir in $ac_dummy; do
1297    test -z "$ac_dir" && ac_dir=.
1298    if test -f $ac_dir/$ac_word; then
1299      ac_cv_prog_AR="ar"
1300      break
1301    fi
1302  done
1303  IFS="$ac_save_ifs"
1304  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
1305fi
1306fi
1307AR="$ac_cv_prog_AR"
1308if test -n "$AR"; then
1309  echo "$ac_t""$AR" 1>&6
1310else
1311  echo "$ac_t""no" 1>&6
1312fi
1313
1314if test "$ac_cv_prog_AR" != ar; then
1315  { echo "configure: error: *** ar program not found" 1>&2; exit 1; }
1316fi
1317for ac_prog in perl
1318do
1319# Extract the first word of "$ac_prog", so it can be a program name with args.
1320set dummy $ac_prog; ac_word=$2
1321echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322echo "configure:1303: checking for $ac_word" >&5
1323if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
1324  echo $ac_n "(cached) $ac_c" 1>&6
1325else
1326  if test -n "$PERL"; then
1327  ac_cv_prog_PERL="$PERL" # Let the user override the test.
1328else
1329  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1330  ac_dummy="$PATH"
1331  for ac_dir in $ac_dummy; do
1332    test -z "$ac_dir" && ac_dir=.
1333    if test -f $ac_dir/$ac_word; then
1334      ac_cv_prog_PERL="$ac_prog"
1335      break
1336    fi
1337  done
1338  IFS="$ac_save_ifs"
1339fi
1340fi
1341PERL="$ac_cv_prog_PERL"
1342if test -n "$PERL"; then
1343  echo "$ac_t""$PERL" 1>&6
1344else
1345  echo "$ac_t""no" 1>&6
1346fi
1347
1348test -n "$PERL" && break
1349done
1350test -n "$PERL" || PERL=""no""
1351
1352if test "$ac_cv_prog_PERL" = no; then
1353  { echo "configure: error: *** perl program not found" 1>&2; exit 1; }
1354fi
1355
1356# Extract the first word of "addr2line", so it can be a program name with args.
1357set dummy addr2line; ac_word=$2
1358echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1359echo "configure:1340: checking for $ac_word" >&5
1360if eval "test \"`echo '$''{'ac_cv_prog_ADDR2LINE'+set}'`\" = set"; then
1361  echo $ac_n "(cached) $ac_c" 1>&6
1362else
1363  if test -n "$ADDR2LINE"; then
1364  ac_cv_prog_ADDR2LINE="$ADDR2LINE" # Let the user override the test.
1365else
1366  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1367  ac_dummy="$PATH"
1368  for ac_dir in $ac_dummy; do
1369    test -z "$ac_dir" && ac_dir=.
1370    if test -f $ac_dir/$ac_word; then
1371      ac_cv_prog_ADDR2LINE="addr2line"
1372      break
1373    fi
1374  done
1375  IFS="$ac_save_ifs"
1376  test -z "$ac_cv_prog_ADDR2LINE" && ac_cv_prog_ADDR2LINE="no"
1377fi
1378fi
1379ADDR2LINE="$ac_cv_prog_ADDR2LINE"
1380if test -n "$ADDR2LINE"; then
1381  echo "$ac_t""$ADDR2LINE" 1>&6
1382else
1383  echo "$ac_t""no" 1>&6
1384fi
1385
1386if test "$ac_cv_prog_ADDR2LINE" = addr2line; then
1387  cat >> confdefs.h <<EOF
1388#define OM_PROG_ADDR2LINE "$ac_cv_prog_ADDR2LINE"
1389EOF
1390
1391fi
1392
1393echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1394echo "configure:1375: checking for ANSI C header files" >&5
1395if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1396  echo $ac_n "(cached) $ac_c" 1>&6
1397else
1398  cat > conftest.$ac_ext <<EOF
1399#line 1380 "configure"
1400#include "confdefs.h"
1401#include <stdlib.h>
1402#include <stdarg.h>
1403#include <string.h>
1404#include <float.h>
1405EOF
1406ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1407{ (eval echo configure:1388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1408ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1409if test -z "$ac_err"; then
1410  rm -rf conftest*
1411  ac_cv_header_stdc=yes
1412else
1413  echo "$ac_err" >&5
1414  echo "configure: failed program was:" >&5
1415  cat conftest.$ac_ext >&5
1416  rm -rf conftest*
1417  ac_cv_header_stdc=no
1418fi
1419rm -f conftest*
1420
1421if test $ac_cv_header_stdc = yes; then
1422  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1423cat > conftest.$ac_ext <<EOF
1424#line 1405 "configure"
1425#include "confdefs.h"
1426#include <string.h>
1427EOF
1428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1429  egrep "memchr" >/dev/null 2>&1; then
1430  :
1431else
1432  rm -rf conftest*
1433  ac_cv_header_stdc=no
1434fi
1435rm -f conftest*
1436
1437fi
1438
1439if test $ac_cv_header_stdc = yes; then
1440  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1441cat > conftest.$ac_ext <<EOF
1442#line 1423 "configure"
1443#include "confdefs.h"
1444#include <stdlib.h>
1445EOF
1446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1447  egrep "free" >/dev/null 2>&1; then
1448  :
1449else
1450  rm -rf conftest*
1451  ac_cv_header_stdc=no
1452fi
1453rm -f conftest*
1454
1455fi
1456
1457if test $ac_cv_header_stdc = yes; then
1458  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1459if test "$cross_compiling" = yes; then
1460  :
1461else
1462  cat > conftest.$ac_ext <<EOF
1463#line 1444 "configure"
1464#include "confdefs.h"
1465#include <ctype.h>
1466#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1467#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1468#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1469int main () { int i; for (i = 0; i < 256; i++)
1470if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1471exit (0); }
1472
1473EOF
1474if { (eval echo configure:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1475then
1476  :
1477else
1478  echo "configure: failed program was:" >&5
1479  cat conftest.$ac_ext >&5
1480  rm -fr conftest*
1481  ac_cv_header_stdc=no
1482fi
1483rm -fr conftest*
1484fi
1485
1486fi
1487fi
1488
1489echo "$ac_t""$ac_cv_header_stdc" 1>&6
1490if test $ac_cv_header_stdc = yes; then
1491  cat >> confdefs.h <<\EOF
1492#define STDC_HEADERS 1
1493EOF
1494
1495fi
1496
1497for ac_hdr in limits.h
1498do
1499ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1500echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1501echo "configure:1482: checking for $ac_hdr" >&5
1502if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1503  echo $ac_n "(cached) $ac_c" 1>&6
1504else
1505  cat > conftest.$ac_ext <<EOF
1506#line 1487 "configure"
1507#include "confdefs.h"
1508#include <$ac_hdr>
1509EOF
1510ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1511{ (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1512ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1513if test -z "$ac_err"; then
1514  rm -rf conftest*
1515  eval "ac_cv_header_$ac_safe=yes"
1516else
1517  echo "$ac_err" >&5
1518  echo "configure: failed program was:" >&5
1519  cat conftest.$ac_ext >&5
1520  rm -rf conftest*
1521  eval "ac_cv_header_$ac_safe=no"
1522fi
1523rm -f conftest*
1524fi
1525if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1526  echo "$ac_t""yes" 1>&6
1527    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1528  cat >> confdefs.h <<EOF
1529#define $ac_tr_hdr 1
1530EOF
1531 
1532else
1533  echo "$ac_t""no" 1>&6
1534{ echo "configure: error: Can not compile without limits.h" 1>&2; exit 1; }
1535fi
1536done
1537
1538for ac_hdr in unistd.h sys/mman.h fcntl.h /usr/include/malloc.h
1539do
1540ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1541echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542echo "configure:1523: checking for $ac_hdr" >&5
1543if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1544  echo $ac_n "(cached) $ac_c" 1>&6
1545else
1546  cat > conftest.$ac_ext <<EOF
1547#line 1528 "configure"
1548#include "confdefs.h"
1549#include <$ac_hdr>
1550EOF
1551ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1552{ (eval echo configure:1533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1553ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1554if test -z "$ac_err"; then
1555  rm -rf conftest*
1556  eval "ac_cv_header_$ac_safe=yes"
1557else
1558  echo "$ac_err" >&5
1559  echo "configure: failed program was:" >&5
1560  cat conftest.$ac_ext >&5
1561  rm -rf conftest*
1562  eval "ac_cv_header_$ac_safe=no"
1563fi
1564rm -f conftest*
1565fi
1566if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1567  echo "$ac_t""yes" 1>&6
1568    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1569  cat >> confdefs.h <<EOF
1570#define $ac_tr_hdr 1
1571EOF
1572 
1573else
1574  echo "$ac_t""no" 1>&6
1575fi
1576done
1577
1578
1579for ac_func in popen readlink getcwd getwd mmap sbrk random
1580do
1581echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1582echo "configure:1563: checking for $ac_func" >&5
1583if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1584  echo $ac_n "(cached) $ac_c" 1>&6
1585else
1586  cat > conftest.$ac_ext <<EOF
1587#line 1568 "configure"
1588#include "confdefs.h"
1589/* System header to define __stub macros and hopefully few prototypes,
1590    which can conflict with char $ac_func(); below.  */
1591#include <assert.h>
1592/* Override any gcc2 internal prototype to avoid an error.  */
1593/* We use char because int might match the return type of a gcc2
1594    builtin and then its argument prototype would still apply.  */
1595char $ac_func();
1596
1597int main() {
1598
1599/* The GNU C library defines this for functions which it implements
1600    to always fail with ENOSYS.  Some functions are actually named
1601    something starting with __ and the normal name is an alias.  */
1602#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1603choke me
1604#else
1605$ac_func();
1606#endif
1607
1608; return 0; }
1609EOF
1610if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1611  rm -rf conftest*
1612  eval "ac_cv_func_$ac_func=yes"
1613else
1614  echo "configure: failed program was:" >&5
1615  cat conftest.$ac_ext >&5
1616  rm -rf conftest*
1617  eval "ac_cv_func_$ac_func=no"
1618fi
1619rm -f conftest*
1620fi
1621
1622if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1623  echo "$ac_t""yes" 1>&6
1624    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1625  cat >> confdefs.h <<EOF
1626#define $ac_tr_func 1
1627EOF
1628 
1629else
1630  echo "$ac_t""no" 1>&6
1631fi
1632done
1633
1634
1635
1636# sizes
1637echo $ac_n "checking size of long""... $ac_c" 1>&6
1638echo "configure:1619: checking size of long" >&5
1639if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1640  echo $ac_n "(cached) $ac_c" 1>&6
1641else
1642  if test "$cross_compiling" = yes; then
1643  ac_cv_sizeof_long=4
1644else
1645  cat > conftest.$ac_ext <<EOF
1646#line 1627 "configure"
1647#include "confdefs.h"
1648#include <stdio.h>
1649main()
1650{
1651  FILE *f=fopen("conftestval", "w");
1652  if (!f) exit(1);
1653  fprintf(f, "%d\n", sizeof(long));
1654  exit(0);
1655}
1656EOF
1657if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1658then
1659  ac_cv_sizeof_long=`cat conftestval`
1660else
1661  echo "configure: failed program was:" >&5
1662  cat conftest.$ac_ext >&5
1663  rm -fr conftest*
1664  ac_cv_sizeof_long=0
1665fi
1666rm -fr conftest*
1667fi
1668
1669fi
1670echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1671cat >> confdefs.h <<EOF
1672#define SIZEOF_LONG $ac_cv_sizeof_long
1673EOF
1674
1675
1676echo $ac_n "checking size of void*""... $ac_c" 1>&6
1677echo "configure:1658: checking size of void*" >&5
1678if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
1679  echo $ac_n "(cached) $ac_c" 1>&6
1680else
1681  if test "$cross_compiling" = yes; then
1682  ac_cv_sizeof_voidp=4
1683else
1684  cat > conftest.$ac_ext <<EOF
1685#line 1666 "configure"
1686#include "confdefs.h"
1687#include <stdio.h>
1688main()
1689{
1690  FILE *f=fopen("conftestval", "w");
1691  if (!f) exit(1);
1692  fprintf(f, "%d\n", sizeof(void*));
1693  exit(0);
1694}
1695EOF
1696if { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1697then
1698  ac_cv_sizeof_voidp=`cat conftestval`
1699else
1700  echo "configure: failed program was:" >&5
1701  cat conftest.$ac_ext >&5
1702  rm -fr conftest*
1703  ac_cv_sizeof_voidp=0
1704fi
1705rm -fr conftest*
1706fi
1707
1708fi
1709echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6
1710cat >> confdefs.h <<EOF
1711#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
1712EOF
1713
1714
1715echo $ac_n "checking size of double""... $ac_c" 1>&6
1716echo "configure:1697: checking size of double" >&5
1717if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1718  echo $ac_n "(cached) $ac_c" 1>&6
1719else
1720  if test "$cross_compiling" = yes; then
1721  ac_cv_sizeof_double=8
1722else
1723  cat > conftest.$ac_ext <<EOF
1724#line 1705 "configure"
1725#include "confdefs.h"
1726#include <stdio.h>
1727main()
1728{
1729  FILE *f=fopen("conftestval", "w");
1730  if (!f) exit(1);
1731  fprintf(f, "%d\n", sizeof(double));
1732  exit(0);
1733}
1734EOF
1735if { (eval echo configure:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1736then
1737  ac_cv_sizeof_double=`cat conftestval`
1738else
1739  echo "configure: failed program was:" >&5
1740  cat conftest.$ac_ext >&5
1741  rm -fr conftest*
1742  ac_cv_sizeof_double=0
1743fi
1744rm -fr conftest*
1745fi
1746
1747fi
1748echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1749cat >> confdefs.h <<EOF
1750#define SIZEOF_DOUBLE $ac_cv_sizeof_double
1751EOF
1752
1753
1754echo $ac_n "checking size of size_t""... $ac_c" 1>&6
1755echo "configure:1736: checking size of size_t" >&5
1756if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
1757  echo $ac_n "(cached) $ac_c" 1>&6
1758else
1759  if test "$cross_compiling" = yes; then
1760  ac_cv_sizeof_size_t=4
1761else
1762  cat > conftest.$ac_ext <<EOF
1763#line 1744 "configure"
1764#include "confdefs.h"
1765#include <stdio.h>
1766main()
1767{
1768  FILE *f=fopen("conftestval", "w");
1769  if (!f) exit(1);
1770  fprintf(f, "%d\n", sizeof(size_t));
1771  exit(0);
1772}
1773EOF
1774if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1775then
1776  ac_cv_sizeof_size_t=`cat conftestval`
1777else
1778  echo "configure: failed program was:" >&5
1779  cat conftest.$ac_ext >&5
1780  rm -fr conftest*
1781  ac_cv_sizeof_size_t=0
1782fi
1783rm -fr conftest*
1784fi
1785
1786fi
1787echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
1788cat >> confdefs.h <<EOF
1789#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
1790EOF
1791
1792
1793
1794if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then
1795  { echo "configure: error: need equal sizes for long and void*" 1>&2; exit 1; }
1796fi
1797if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then
1798  { echo "configure: error: need void* to be 4 or 8 bytes long" 1>&2; exit 1; }
1799fi
1800if test "$ac_cv_sizeof_double" != 4 && test "$ac_cv_sizeof_double" != 8; then
1801  { echo "configure: error: need double to be 4 or 8 bytes long" 1>&2; exit 1; }
1802fi
1803
1804echo $ac_n "checking size of system page""... $ac_c" 1>&6
1805echo "configure:1786: checking size of system page" >&5
1806if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then
1807  echo $ac_n "(cached) $ac_c" 1>&6
1808else
1809  if test "$cross_compiling" = yes; then
1810  ac_cv_pagesize=0
1811else
1812  cat > conftest.$ac_ext <<EOF
1813#line 1794 "configure"
1814#include "confdefs.h"
1815#include <stdio.h>
1816#include "omGetPageSize.h"
1817
1818main()
1819{
1820  FILE *f=fopen("conftestval", "w");
1821  if (!f) exit(1);
1822  fprintf(f, "%d\n", omalloc_getpagesize);
1823  exit(0);
1824}
1825EOF
1826if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1827then
1828  ac_cv_pagesize=`cat conftestval`
1829else
1830  echo "configure: failed program was:" >&5
1831  cat conftest.$ac_ext >&5
1832  rm -fr conftest*
1833  ac_cv_pagesize=0
1834fi
1835rm -fr conftest*
1836fi
1837
1838fi
1839
1840# can not really handle pagesizes which are greater -- there must be a
1841# bug somewhere
1842if test $ac_cv_pagesize -gt 8192; then
1843  ac_cv_pagesize=8192
1844fi
1845echo "$ac_t""$ac_cv_pagesize" 1>&6
1846if test "$ac_cv_pagesize" = 4096 || test "$ac_cv_pagesize" = 8192; then
1847  cat >> confdefs.h <<EOF
1848#define SIZEOF_SYSTEM_PAGE $ac_cv_pagesize
1849EOF
1850
1851else
1852{ echo "configure: error: need sytem page to be of size 4096 or 8192" 1>&2; exit 1; }
1853fi
1854
1855if test "$ac_cv_func_mmap" = yes; then
1856echo $ac_n "checking whether mmap works""... $ac_c" 1>&6
1857echo "configure:1838: checking whether mmap works" >&5
1858if eval "test \"`echo '$''{'ac_cv_working_mmap'+set}'`\" = set"; then
1859  echo $ac_n "(cached) $ac_c" 1>&6
1860else
1861  if test "$cross_compiling" = yes; then
1862  ac_cv_working_mmap=no
1863else
1864  cat > conftest.$ac_ext <<EOF
1865#line 1846 "configure"
1866#include "confdefs.h"
1867
1868#include "omMmap.c"
1869main()
1870{
1871  void* addr = omVallocMmap(128*${ac_cv_pagesize});
1872  if (addr == 0 || ((unsigned long) addr % ${ac_cv_pagesize}))
1873    exit(1);
1874  exit(omVfreeMmap(addr, 128*${ac_cv_pagesize}));
1875}
1876EOF
1877if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1878then
1879  ac_cv_working_mmap=yes
1880else
1881  echo "configure: failed program was:" >&5
1882  cat conftest.$ac_ext >&5
1883  rm -fr conftest*
1884  ac_cv_working_mmap=no
1885fi
1886rm -fr conftest*
1887fi
1888
1889fi
1890
1891echo "$ac_t""$ac_cv_working_mmap" 1>&6
1892if test "$ac_cv_working_mmap" = yes; then
1893  cat >> confdefs.h <<\EOF
1894#define HAVE_WORKING_MMAP 1
1895EOF
1896
1897fi
1898fi
1899
1900echo $ac_n "checking whether alignment needs to be strict""... $ac_c" 1>&6
1901echo "configure:1882: checking whether alignment needs to be strict" >&5
1902if eval "test \"`echo '$''{'ac_cv_align_need_strict'+set}'`\" = set"; then
1903  echo $ac_n "(cached) $ac_c" 1>&6
1904else
1905  if test "$cross_compiling" = yes; then
1906  ac_cv_align_need_strict=yes
1907else
1908  cat > conftest.$ac_ext <<EOF
1909#line 1890 "configure"
1910#include "confdefs.h"
1911
1912main()
1913{
1914  void* ptr = (void*) malloc(12);
1915  double* d_ptr;
1916  if ((unsigned long) ptr % 8 == 0) ptr = ptr + 4;
1917  d_ptr = (double*) ptr;
1918  *d_ptr = (double) 1.1;
1919  if (*d_ptr != (double) 1.1) exit(1);
1920  else exit(0);
1921}
1922
1923EOF
1924if { (eval echo configure:1905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1925then
1926  ac_cv_align_need_strict=no
1927else
1928  echo "configure: failed program was:" >&5
1929  cat conftest.$ac_ext >&5
1930  rm -fr conftest*
1931  ac_cv_align_need_strict=yes
1932fi
1933rm -fr conftest*
1934fi
1935
1936fi
1937
1938echo "$ac_t""$ac_cv_align_need_strict" 1>&6
1939
1940echo $ac_n "checking for external config files""... $ac_c" 1>&6
1941echo "configure:1922: checking for external config files" >&5
1942if test "${with_external_config_h+set}" = set; then
1943    cat >> confdefs.h <<\EOF
1944#define OM_HAVE_EXTERNAL_CONFIG_H 1
1945EOF
1946
1947    EXTERNAL_CONFIG_HEADER=${with_external_config_h}
1948    rm -f omExternalConfig.h
1949    cp ${with_external_config_h} omExternalConfig.h
1950fi
1951if test "${with_external_config_c+set}" = set; then
1952    cat >> confdefs.h <<\EOF
1953#define OM_HAVE_EXTERNAL_CONFIG_C 1
1954EOF
1955
1956    EXTERNAL_CONFIG_SOURCE=${with_external_config_c}
1957fi
1958
1959
1960if test "${EXTERNAL_CONFIG_HEADER+set}" = set || test "${EXTERNAL_CONFIG_SOURCE+set}" = set; then
1961echo "$ac_t""${EXTERNAL_CONFIG_HEADER} ${EXTERNAL_CONFIG_SOURCE}" 1>&6
1962else
1963echo "$ac_t""none" 1>&6
1964fi
1965
1966echo $ac_n "checking which malloc to use""... $ac_c" 1>&6
1967echo "configure:1948: checking which malloc to use" >&5
1968if test "${with_malloc}" = system; then
1969  OM_MALLOC_HEADER=omMallocSystem.h
1970  cat >> confdefs.h <<\EOF
1971#define OMALLOC_USES_MALLOC 1
1972EOF
1973
1974  if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then
1975    { echo "configure: error: "can not provide malloc for --with-malloc=system"" 1>&2; exit 1; }
1976  fi
1977elif test "${with_malloc}" = gmalloc; then
1978  OM_MALLOC_HEADER=gmalloc.h
1979  OM_MALLOC_SOURCE=gmalloc.c
1980elif test "${with_malloc}" = pmalloc; then
1981  OM_MALLOC_HEADER=pmalloc.h
1982  OM_MALLOC_SOURCE=pmalloc.c
1983elif test "${with_malloc}" = external; then
1984  if test "${with_external_malloc_h+set}" != set; then
1985    { echo "configure: error: need --with_external_malloc_h for external malloc" 1>&2; exit 1; }
1986  fi
1987  if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then
1988    { echo "configure: error: "can not provide malloc for --with_malloc=external"" 1>&2; exit 1; }
1989  fi
1990  OM_MALLOC_HEADER=$with_external_malloc_h
1991  OM_MALLOC_SOURCE=$with_external_malloc_c
1992  cat >> confdefs.h <<\EOF
1993#define OMALLOC_USES_MALLOC 1
1994EOF
1995
1996elif test "${with_malloc}" = dlmalloc; then
1997  with_malloc=dlmalloc
1998  OM_MALLOC_HEADER=dlmalloc.h
1999  OM_MALLOC_SOURCE=dlmalloc.c
2000else
2001  OM_MALLOC_HEADER=omMallocSystem.h
2002  cat >> confdefs.h <<\EOF
2003#define OMALLOC_USES_MALLOC 1
2004EOF
2005
2006  if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then
2007    { echo "configure: error: "can not provide malloc for --with-malloc=system"" 1>&2; exit 1; }
2008  fi
2009fi
2010echo "$ac_t""$with_malloc" 1>&6
2011
2012
2013
2014if test "${OM_MALLOC_SOURCE+set}" = set; then
2015  cat >> confdefs.h <<\EOF
2016#define OM_HAVE_MALLOC_SOURCE 1
2017EOF
2018
2019fi
2020
2021echo $ac_n "checking whether malloc provides SizeOfAddr""... $ac_c" 1>&6
2022echo "configure:2003: checking whether malloc provides SizeOfAddr" >&5
2023if test "${ac_cv_malloc_sizeof_addr}" = no; then
2024  echo "$ac_t""(cached) no" 1>&6
2025elif test "${ac_cv_malloc_sizeof_addr}" = "${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"; then
2026   echo "$ac_t""(cached) yes" 1>&6
2027else
2028if test "$cross_compiling" = yes; then
2029  ac_cv_malloc_sizeof_addr=no
2030else
2031  cat > conftest.$ac_ext <<EOF
2032#line 2013 "configure"
2033#include "confdefs.h"
2034
2035#include "$OM_MALLOC_HEADER"
2036#ifdef OM_HAVE_MALLOC_SOURCE
2037#include "$OM_MALLOC_SOURCE"
2038#endif
2039
2040main()
2041{
2042  void* addr = OM_MALLOC_MALLOC(512);
2043  if (OM_MALLOC_SIZEOF_ADDR(addr) < 512)
2044    exit(1);
2045  exit(0);
2046}
2047
2048EOF
2049if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2050then
2051  ac_cv_malloc_sizeof_addr="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"
2052else
2053  echo "configure: failed program was:" >&5
2054  cat conftest.$ac_ext >&5
2055  rm -fr conftest*
2056  ac_cv_malloc_sizeof_addr=no
2057fi
2058rm -fr conftest*
2059fi
2060
2061if test "${ac_cv_malloc_sizeof_addr}" = no; then
2062echo "$ac_t""no" 1>&6
2063else
2064echo "$ac_t""yes" 1>&6
2065fi
2066fi
2067if test "$ac_cv_malloc_sizeof_addr" != no; then
2068cat >> confdefs.h <<\EOF
2069#define OM_MALLOC_PROVIDES_SIZEOF_ADDR 1
2070EOF
2071
2072fi
2073
2074if test "${with_provide_malloc}" = malloc; then
2075   cat >> confdefs.h <<\EOF
2076#define OM_PROVIDE_MALLOC 3
2077EOF
2078
2079elif test "${with_provide_malloc}" = debug; then
2080   cat >> confdefs.h <<\EOF
2081#define OM_PROVIDE_MALLOC 2
2082EOF
2083
2084elif test "${with_provide_malloc}" = yes; then
2085  cat >> confdefs.h <<\EOF
2086#define OM_PROVIDE_MALLOC 1
2087EOF
2088
2089else
2090  cat >> confdefs.h <<\EOF
2091#define OM_PROVIDE_MALLOC 0
2092EOF
2093
2094fi
2095
2096echo $ac_n "checking whether working valloc exists""... $ac_c" 1>&6
2097echo "configure:2078: checking whether working valloc exists" >&5
2098if test "${ac_cv_working_valloc}" = no; then
2099  echo "$ac_t""(cached) no" 1>&6
2100elif test "${ac_cv_working_valloc}" = "${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"; then
2101  echo "$ac_t""(cached) yes" 1>&6
2102else
2103if test "$cross_compiling" = yes; then
2104  ac_cv_working_valloc=no
2105else
2106  cat > conftest.$ac_ext <<EOF
2107#line 2088 "configure"
2108#include "confdefs.h"
2109
2110#include "$OM_MALLOC_HEADER"
2111#ifdef OM_HAVE_MALLOC_SOURCE
2112#include "$OM_MALLOC_SOURCE"
2113#endif
2114
2115main()
2116{
2117  void* addr = OM_MALLOC_VALLOC(128*${ac_cv_pagesize});
2118  if (addr == 0 || ((unsigned long) addr % ${ac_cv_pagesize}))
2119    exit(1);
2120  OM_MALLOC_VFREE(addr, 128*${ac_cv_pagesize});
2121  exit(0);
2122}
2123
2124EOF
2125if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2126then
2127  ac_cv_working_valloc="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"
2128else
2129  echo "configure: failed program was:" >&5
2130  cat conftest.$ac_ext >&5
2131  rm -fr conftest*
2132  ac_cv_working_valloc=no
2133fi
2134rm -fr conftest*
2135fi
2136
2137if test "${ac_cv_working_valloc}" = no; then
2138echo "$ac_t""no" 1>&6
2139else
2140echo "$ac_t""yes" 1>&6
2141fi
2142fi
2143
2144echo $ac_n "checking which valloc to use""... $ac_c" 1>&6
2145echo "configure:2126: checking which valloc to use" >&5
2146if test "${with_valloc+set}" != set || test "${with_valloc}" = mmap; then
2147  if test "${ac_cv_working_mmap}" = yes; then
2148    with_valloc=mmap
2149    cat >> confdefs.h <<\EOF
2150#define OM_HAVE_VALLOC_MMAP 1
2151EOF
2152
2153  else
2154    with_valloc=malloc
2155  fi
2156fi
2157if test "${with_valloc}" = malloc; then
2158  if test "${ac_cv_working_valloc}" != no; then
2159    cat >> confdefs.h <<\EOF
2160#define OM_HAVE_VALLOC_MALLOC 1
2161EOF
2162
2163  else
2164    with_valloc=emulate
2165  fi
2166fi
2167echo "$ac_t""$with_valloc" 1>&6
2168
2169echo $ac_n "checking whether to emulate omalloc""... $ac_c" 1>&6
2170echo "configure:2151: checking whether to emulate omalloc" >&5
2171if test "${with_emulate_omalloc}" = yes; then
2172  cat >> confdefs.h <<\EOF
2173#define OM_EMULATE_OMALLOC 1
2174EOF
2175
2176  echo "$ac_t""yes" 1>&6
2177else
2178  echo "$ac_t""no" 1>&6
2179fi
2180
2181echo $ac_n "checking how to align""... $ac_c" 1>&6
2182echo "configure:2163: checking how to align" >&5
2183if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then
2184  ac_cv_align=8
2185  cat >> confdefs.h <<\EOF
2186#define OM_ALIGN_8 1
2187EOF
2188
2189else
2190if test "$ac_cv_align_need_strict" = "yes" || test "$with_align" = "strict"; then
2191  cat >> confdefs.h <<\EOF
2192#define OM_ALIGNMENT_NEEDS_WORK 1
2193EOF
2194
2195  ac_cv_align="strict"
2196else
2197  ac_cv_align="sloppy"
2198fi
2199fi
2200echo "$ac_t""$ac_cv_align" 1>&6
2201
2202echo $ac_n "checking whether to use dense bins""... $ac_c" 1>&6
2203echo "configure:2184: checking whether to use dense bins" >&5
2204if test "$with_dense_bins" = yes; then
2205echo "$ac_t""yes" 1>&6
2206cat >> confdefs.h <<\EOF
2207#define OM_HAVE_DENSE_BIN_DISTRIBUTION 1
2208EOF
2209
2210else
2211echo "$ac_t""no" 1>&6
2212fi
2213
2214echo $ac_n "checking whether to disable debugging""... $ac_c" 1>&6
2215echo "configure:2196: checking whether to disable debugging" >&5
2216if test "$with_debug" != no; then
2217echo "$ac_t""no" 1>&6
2218else
2219echo "$ac_t""yes" 1>&6
2220cat >> confdefs.h <<\EOF
2221#define OM_NDEBUG 1
2222EOF
2223
2224with_track=no
2225fi
2226
2227echo $ac_n "checking whether to have tracking debug functionality""... $ac_c" 1>&6
2228echo "configure:2209: checking whether to have tracking debug functionality" >&5
2229if test "$with_track" != no; then
2230echo "$ac_t""yes" 1>&6
2231cat >> confdefs.h <<\EOF
2232#define OM_HAVE_TRACK 1
2233EOF
2234
2235else
2236echo "$ac_t""no" 1>&6
2237fi
2238
2239echo $ac_n "checking whether to use internal debug""... $ac_c" 1>&6
2240echo "configure:2221: checking whether to use internal debug" >&5
2241if test "$with_internal_debug" = yes; then
2242echo "$ac_t""yes" 1>&6
2243cat >> confdefs.h <<\EOF
2244#define OM_INTERNAL_DEBUG 1
2245EOF
2246
2247with_inline=no
2248else
2249echo "$ac_t""no" 1>&6
2250fi
2251
2252echo $ac_n "checking whether to inline""... $ac_c" 1>&6
2253echo "configure:2234: checking whether to inline" >&5
2254if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then
2255  cat >> confdefs.h <<EOF
2256#define OM_INLINE static $ac_cv_c_inline
2257EOF
2258
2259  cat >> confdefs.h <<EOF
2260#define OM_INLINE_DECL static $ac_cv_c_inline
2261EOF
2262
2263  cat >> confdefs.h <<EOF
2264#define OM_INLINE_IMPL static $ac_cv_c_inline
2265EOF
2266
2267  cat >> confdefs.h <<EOF
2268#define OM_INLINE_LOCAL static $ac_cv_c_inline
2269EOF
2270
2271  echo "$ac_t""yes" 1>&6
2272else
2273  cat >> confdefs.h <<EOF
2274#define OM_INLINE_DECL extern
2275EOF
2276
2277  cat >> confdefs.h <<EOF
2278#define OM_INLINE_IMPL
2279EOF
2280
2281  cat >> confdefs.h <<EOF
2282#define OM_INLINE_LOCAL static
2283EOF
2284
2285  echo "$ac_t""no" 1>&6
2286fi
2287
2288echo $ac_n "checking whether GET_RET_ADDR works""... $ac_c" 1>&6
2289echo "configure:2270: checking whether GET_RET_ADDR works" >&5
2290if eval "test \"`echo '$''{'ac_cv_get_return_addr_works'+set}'`\" = set"; then
2291  echo $ac_n "(cached) $ac_c" 1>&6
2292else
2293  if test "$cross_compiling" = yes; then
2294  ac_cv_get_return_addr_works=no
2295else
2296  cat > conftest.$ac_ext <<EOF
2297#line 2278 "configure"
2298#include "confdefs.h"
2299
2300#include "omReturn.h"
2301int test_return_addr()
2302{
2303  char* f;
2304  GET_RET_ADDR(f);
2305  return (int) f;
2306}
2307int main()
2308{
2309   exit(! test_return_addr());
2310}
2311
2312EOF
2313if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2314then
2315  ac_cv_get_return_addr_works=yes
2316else
2317  echo "configure: failed program was:" >&5
2318  cat conftest.$ac_ext >&5
2319  rm -fr conftest*
2320  ac_cv_get_return_addr_works=no
2321fi
2322rm -fr conftest*
2323fi
2324
2325fi
2326
2327echo "$ac_t""$ac_cv_get_return_addr_works" 1>&6
2328if test "$ac_cv_get_return_addr_works" = yes; then
2329cat >> confdefs.h <<\EOF
2330#define OM_GET_RETURN_ADDR_WORKS 1
2331EOF
2332
2333fi
2334
2335echo $ac_n "checking whether omGetBackTrace works""... $ac_c" 1>&6
2336echo "configure:2317: checking whether omGetBackTrace works" >&5
2337if eval "test \"`echo '$''{'ac_cv_get_backtrace_works'+set}'`\" = set"; then
2338  echo $ac_n "(cached) $ac_c" 1>&6
2339else
2340  if test "$cross_compiling" = yes; then
2341  ac_cv_get_backtrace_works=no
2342else
2343  cat > conftest.$ac_ext <<EOF
2344#line 2325 "configure"
2345#include "confdefs.h"
2346
2347#include "omGetBackTrace.c"
2348#include <stdio.h>
2349int test_backtrace()
2350{
2351  void* bt;
2352  int i = omGetBackTrace(&bt, 0, 10);
2353  return i;
2354}
2355int main()
2356{
2357   int i;
2358   omInitGetBackTrace();
2359   i = test_backtrace();
2360   if (i == 1) exit(0);
2361   else exit(i+1);
2362}
2363
2364EOF
2365if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2366then
2367  ac_cv_get_backtrace_works=yes
2368else
2369  echo "configure: failed program was:" >&5
2370  cat conftest.$ac_ext >&5
2371  rm -fr conftest*
2372  ac_cv_get_backtrace_works=no
2373fi
2374rm -fr conftest*
2375fi
2376
2377fi
2378
2379echo "$ac_t""$ac_cv_get_backtrace_works" 1>&6
2380if test "$ac_cv_get_backtrace_works" = yes; then
2381cat >> confdefs.h <<\EOF
2382#define OM_GET_BACKTRACE_WORKS 1
2383EOF
2384
2385fi
2386
2387echo $ac_n "checking whether addr2line works""... $ac_c" 1>&6
2388echo "configure:2369: checking whether addr2line works" >&5
2389if eval "test \"`echo '$''{'ac_cv_prog_addr2line_works'+set}'`\" = set"; then
2390  echo $ac_n "(cached) $ac_c" 1>&6
2391else
2392  if test "$cross_compiling" = yes; then
2393  ac_cv_prog_addr2line_works=no
2394else
2395  cat > conftest.$ac_ext <<EOF
2396#line 2377 "configure"
2397#include "confdefs.h"
2398
2399#undef OM_GET_BACKTRACE_WORKS
2400#include "omReturn.h"
2401#include "omStructs.h"
2402#include "omGetBackTrace.h"
2403#include "omRet2Info.c"
2404#include "omFindExec.c"
2405
2406
2407int test_Ret_2_Info()
2408{
2409  void* bt;
2410  int i;
2411  struct omRetInfo_s info;
2412
2413  GET_RET_ADDR(bt);
2414  i = omBackTrace_2_RetInfo(&bt, &info, 1);
2415  return i;
2416}
2417
2418int main(int argc, char** argv)
2419{
2420  int i;
2421  omInitRet_2_Info(*argv);
2422  i = test_Ret_2_Info();
2423  if (i==1) exit(0);
2424  else exit (i+10);
2425}
2426
2427EOF
2428if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2429then
2430  ac_cv_prog_addr2line_works=yes
2431else
2432  echo "configure: failed program was:" >&5
2433  cat conftest.$ac_ext >&5
2434  rm -fr conftest*
2435  ac_cv_prog_addr2line_works=no
2436fi
2437rm -fr conftest*
2438fi
2439
2440fi
2441
2442echo "$ac_t""$ac_cv_prog_addr2line_works" 1>&6
2443
2444echo $ac_n "checking whether to track return addresses""... $ac_c" 1>&6
2445echo "configure:2426: checking whether to track return addresses" >&5
2446if test "$with_track_return" = no || test "$ac_cv_get_return_addr_works" = no || test "$ac_cv_prog_addr2line_works" != yes; then
2447  with_track_return=no
2448else
2449  cat >> confdefs.h <<\EOF
2450#define OM_TRACK_RETURN 1
2451EOF
2452
2453  with_track_return=yes
2454fi
2455echo "$ac_t""$with_track_return" 1>&6
2456
2457echo $ac_n "checking whether to track files and line numbers""... $ac_c" 1>&6
2458echo "configure:2439: checking whether to track files and line numbers" >&5
2459if test "$with_track_fl" = no && test "$with_track_return" = no; then
2460  with_track_fl=yes
2461fi
2462if test "${with_track_fl+set}" != set; then
2463  if test "$with_track_return" = yes; then
2464    with_track_fl=no
2465  else
2466    with_track_fl=yes
2467  fi
2468fi
2469echo "$ac_t""$with_track_fl" 1>&6
2470if test "$with_track_fl" = yes; then
2471  cat >> confdefs.h <<\EOF
2472#define OM_TRACK_FILE_LINE 1
2473EOF
2474
2475fi
2476
2477echo $ac_n "checking whether to track stack backtraces""... $ac_c" 1>&6
2478echo "configure:2459: checking whether to track stack backtraces" >&5
2479if test "$with_track" != no && test "$ac_cv_get_backtrace_works" = yes && test "$with_track_backtrace" != no && test "$ac_cv_prog_addr2line_works" = yes; then
2480  with_track_backtrace=yes
2481  cat >> confdefs.h <<\EOF
2482#define OM_TRACK_BACKTRACE 1
2483EOF
2484
2485else
2486  with_track_backtrace=no
2487fi
2488echo "$ac_t""$with_track_backtrace" 1>&6
2489
2490echo $ac_n "checking whether to track custom values""... $ac_c" 1>&6
2491echo "configure:2472: checking whether to track custom values" >&5
2492if test "$with_track" != no && test "$with_track_custom" = yes; then
2493  cat >> confdefs.h <<\EOF
2494#define OM_TRACK_CUSTOM 1
2495EOF
2496
2497else
2498  with_track_custom=no
2499fi
2500echo "$ac_t""$with_track_custom" 1>&6
2501
2502
2503echo $ac_n "checking return type of sbrk""... $ac_c" 1>&6
2504echo "configure:2485: checking return type of sbrk" >&5
2505cat > conftest.$ac_ext <<EOF
2506#line 2487 "configure"
2507#include "confdefs.h"
2508#define __USE_MISC
2509#include <unistd.h>
2510
2511int main() {
2512void *sbrk();
2513
2514; return 0; }
2515EOF
2516if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2517  rm -rf conftest*
2518  cat >> confdefs.h <<\EOF
2519#define Void_t void
2520EOF
2521
2522else
2523  echo "configure: failed program was:" >&5
2524  cat conftest.$ac_ext >&5
2525  rm -rf conftest*
2526  cat >> confdefs.h <<\EOF
2527#define Void_t char
2528EOF
2529
2530fi
2531rm -f conftest*
2532echo "$ac_t""Void_t" 1>&6
2533
2534
2535
2536
2537
2538trap '' 1 2 15
2539cat > confcache <<\EOF
2540# This file is a shell script that caches the results of configure
2541# tests run on this system so they can be shared between configure
2542# scripts and configure runs.  It is not useful on other systems.
2543# If it contains results you don't want to keep, you may remove or edit it.
2544#
2545# By default, configure uses ./config.cache as the cache file,
2546# creating it if it does not exist already.  You can give configure
2547# the --cache-file=FILE option to use a different cache file; that is
2548# what configure does when it calls configure scripts in
2549# subdirectories, so they share the cache.
2550# Giving --cache-file=/dev/null disables caching, for debugging configure.
2551# config.status only pays attention to the cache file if you give it the
2552# --recheck option to rerun configure.
2553#
2554EOF
2555# The following way of writing the cache mishandles newlines in values,
2556# but we know of no workaround that is simple, portable, and efficient.
2557# So, don't put newlines in cache variables' values.
2558# Ultrix sh set writes to stderr and can't be redirected directly,
2559# and sets the high bit in the cache file unless we assign to the vars.
2560(set) 2>&1 |
2561  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2562  *ac_space=\ *)
2563    # `set' does not quote correctly, so add quotes (double-quote substitution
2564    # turns \\\\ into \\, and sed turns \\ into \).
2565    sed -n \
2566      -e "s/'/'\\\\''/g" \
2567      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2568    ;;
2569  *)
2570    # `set' quotes correctly as required by POSIX, so do not add quotes.
2571    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2572    ;;
2573  esac >> confcache
2574if cmp -s $cache_file confcache; then
2575  :
2576else
2577  if test -w $cache_file; then
2578    echo "updating cache $cache_file"
2579    cat confcache > $cache_file
2580  else
2581    echo "not updating unwritable cache $cache_file"
2582  fi
2583fi
2584rm -f confcache
2585
2586trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2587
2588test "x$prefix" = xNONE && prefix=$ac_default_prefix
2589# Let make expand exec_prefix.
2590test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2591
2592# Any assignment to VPATH causes Sun make to only execute
2593# the first set of double-colon rules, so remove it if not needed.
2594# If there is a colon in the path, we need to keep it.
2595if test "x$srcdir" = x.; then
2596  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2597fi
2598
2599trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2600
2601DEFS=-DHAVE_CONFIG_H
2602
2603# Without the "./", some shells look in PATH for config.status.
2604: ${CONFIG_STATUS=./config.status}
2605
2606echo creating $CONFIG_STATUS
2607rm -f $CONFIG_STATUS
2608cat > $CONFIG_STATUS <<EOF
2609#! /bin/sh
2610# Generated automatically by configure.
2611# Run this file to recreate the current configuration.
2612# This directory was configured as follows,
2613# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2614#
2615# $0 $ac_configure_args
2616#
2617# Compiler output produced by configure, useful for debugging
2618# configure, is in ./config.log if it exists.
2619
2620ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2621for ac_option
2622do
2623  case "\$ac_option" in
2624  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2625    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2626    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2627  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2628    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2629    exit 0 ;;
2630  -help | --help | --hel | --he | --h)
2631    echo "\$ac_cs_usage"; exit 0 ;;
2632  *) echo "\$ac_cs_usage"; exit 1 ;;
2633  esac
2634done
2635
2636ac_given_srcdir=$srcdir
2637ac_given_INSTALL="$INSTALL"
2638
2639trap 'rm -fr `echo "Makefile omConfig.h omlimits.h omMalloc.h:${OM_MALLOC_HEADER}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2640EOF
2641cat >> $CONFIG_STATUS <<EOF
2642
2643# Protect against being on the right side of a sed subst in config.status.
2644sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2645 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2646$ac_vpsub
2647$extrasub
2648s%@SHELL@%$SHELL%g
2649s%@CFLAGS@%$CFLAGS%g
2650s%@CPPFLAGS@%$CPPFLAGS%g
2651s%@CXXFLAGS@%$CXXFLAGS%g
2652s%@FFLAGS@%$FFLAGS%g
2653s%@DEFS@%$DEFS%g
2654s%@LDFLAGS@%$LDFLAGS%g
2655s%@LIBS@%$LIBS%g
2656s%@exec_prefix@%$exec_prefix%g
2657s%@prefix@%$prefix%g
2658s%@program_transform_name@%$program_transform_name%g
2659s%@bindir@%$bindir%g
2660s%@sbindir@%$sbindir%g
2661s%@libexecdir@%$libexecdir%g
2662s%@datadir@%$datadir%g
2663s%@sysconfdir@%$sysconfdir%g
2664s%@sharedstatedir@%$sharedstatedir%g
2665s%@localstatedir@%$localstatedir%g
2666s%@libdir@%$libdir%g
2667s%@includedir@%$includedir%g
2668s%@oldincludedir@%$oldincludedir%g
2669s%@infodir@%$infodir%g
2670s%@mandir@%$mandir%g
2671s%@VERSION@%$VERSION%g
2672s%@SET_MAKE@%$SET_MAKE%g
2673s%@CC@%$CC%g
2674s%@CPP@%$CPP%g
2675s%@RANLIB@%$RANLIB%g
2676s%@LN_S@%$LN_S%g
2677s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2678s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2679s%@INSTALL_DATA@%$INSTALL_DATA%g
2680s%@AR@%$AR%g
2681s%@PERL@%$PERL%g
2682s%@ADDR2LINE@%$ADDR2LINE%g
2683s%@EXTERNAL_CONFIG_HEADER@%$EXTERNAL_CONFIG_HEADER%g
2684s%@EXTERNAL_CONFIG_SOURCE@%$EXTERNAL_CONFIG_SOURCE%g
2685s%@OM_MALLOC_HEADER@%$OM_MALLOC_HEADER%g
2686s%@OM_MALLOC_SOURCE@%$OM_MALLOC_SOURCE%g
2687
2688CEOF
2689EOF
2690
2691cat >> $CONFIG_STATUS <<\EOF
2692
2693# Split the substitutions into bite-sized pieces for seds with
2694# small command number limits, like on Digital OSF/1 and HP-UX.
2695ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2696ac_file=1 # Number of current file.
2697ac_beg=1 # First line for current file.
2698ac_end=$ac_max_sed_cmds # Line after last line for current file.
2699ac_more_lines=:
2700ac_sed_cmds=""
2701while $ac_more_lines; do
2702  if test $ac_beg -gt 1; then
2703    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2704  else
2705    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2706  fi
2707  if test ! -s conftest.s$ac_file; then
2708    ac_more_lines=false
2709    rm -f conftest.s$ac_file
2710  else
2711    if test -z "$ac_sed_cmds"; then
2712      ac_sed_cmds="sed -f conftest.s$ac_file"
2713    else
2714      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2715    fi
2716    ac_file=`expr $ac_file + 1`
2717    ac_beg=$ac_end
2718    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2719  fi
2720done
2721if test -z "$ac_sed_cmds"; then
2722  ac_sed_cmds=cat
2723fi
2724EOF
2725
2726cat >> $CONFIG_STATUS <<EOF
2727
2728CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2729EOF
2730cat >> $CONFIG_STATUS <<\EOF
2731for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2732  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2733  case "$ac_file" in
2734  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2735       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2736  *) ac_file_in="${ac_file}.in" ;;
2737  esac
2738
2739  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2740
2741  # Remove last slash and all that follows it.  Not all systems have dirname.
2742  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2743  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2744    # The file is in a subdirectory.
2745    test ! -d "$ac_dir" && mkdir "$ac_dir"
2746    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2747    # A "../" for each directory in $ac_dir_suffix.
2748    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2749  else
2750    ac_dir_suffix= ac_dots=
2751  fi
2752
2753  case "$ac_given_srcdir" in
2754  .)  srcdir=.
2755      if test -z "$ac_dots"; then top_srcdir=.
2756      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2757  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2758  *) # Relative path.
2759    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2760    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2761  esac
2762
2763  case "$ac_given_INSTALL" in
2764  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2765  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2766  esac
2767
2768  echo creating "$ac_file"
2769  rm -f "$ac_file"
2770  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2771  case "$ac_file" in
2772  *Makefile*) ac_comsub="1i\\
2773# $configure_input" ;;
2774  *) ac_comsub= ;;
2775  esac
2776
2777  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2778  sed -e "$ac_comsub
2779s%@configure_input@%$configure_input%g
2780s%@srcdir@%$srcdir%g
2781s%@top_srcdir@%$top_srcdir%g
2782s%@INSTALL@%$INSTALL%g
2783" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2784fi; done
2785rm -f conftest.s*
2786
2787# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2788# NAME is the cpp macro being defined and VALUE is the value it is being given.
2789#
2790# ac_d sets the value in "#define NAME VALUE" lines.
2791ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2792ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2793ac_dC='\3'
2794ac_dD='%g'
2795# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2796ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2797ac_uB='\([      ]\)%\1#\2define\3'
2798ac_uC=' '
2799ac_uD='\4%g'
2800# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2801ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2802ac_eB='$%\1#\2define\3'
2803ac_eC=' '
2804ac_eD='%g'
2805
2806if test "${CONFIG_HEADERS+set}" != set; then
2807EOF
2808cat >> $CONFIG_STATUS <<EOF
2809  CONFIG_HEADERS="omConfig.h omlimits.h omMalloc.h:${OM_MALLOC_HEADER}"
2810EOF
2811cat >> $CONFIG_STATUS <<\EOF
2812fi
2813for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2814  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2815  case "$ac_file" in
2816  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2817       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2818  *) ac_file_in="${ac_file}.in" ;;
2819  esac
2820
2821  echo creating $ac_file
2822
2823  rm -f conftest.frag conftest.in conftest.out
2824  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2825  cat $ac_file_inputs > conftest.in
2826
2827EOF
2828
2829# Transform confdefs.h into a sed script conftest.vals that substitutes
2830# the proper values into config.h.in to produce config.h.  And first:
2831# Protect against being on the right side of a sed subst in config.status.
2832# Protect against being in an unquoted here document in config.status.
2833rm -f conftest.vals
2834cat > conftest.hdr <<\EOF
2835s/[\\&%]/\\&/g
2836s%[\\$`]%\\&%g
2837s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2838s%ac_d%ac_u%gp
2839s%ac_u%ac_e%gp
2840EOF
2841sed -n -f conftest.hdr confdefs.h > conftest.vals
2842rm -f conftest.hdr
2843
2844# This sed command replaces #undef with comments.  This is necessary, for
2845# example, in the case of _POSIX_SOURCE, which is predefined and required
2846# on some systems where configure will not decide to define it.
2847cat >> conftest.vals <<\EOF
2848s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2849EOF
2850
2851# Break up conftest.vals because some shells have a limit on
2852# the size of here documents, and old seds have small limits too.
2853
2854rm -f conftest.tail
2855while :
2856do
2857  ac_lines=`grep -c . conftest.vals`
2858  # grep -c gives empty output for an empty file on some AIX systems.
2859  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2860  # Write a limited-size here document to conftest.frag.
2861  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2862  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2863  echo 'CEOF
2864  sed -f conftest.frag conftest.in > conftest.out
2865  rm -f conftest.in
2866  mv conftest.out conftest.in
2867' >> $CONFIG_STATUS
2868  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2869  rm -f conftest.vals
2870  mv conftest.tail conftest.vals
2871done
2872rm -f conftest.vals
2873
2874cat >> $CONFIG_STATUS <<\EOF
2875  rm -f conftest.frag conftest.h
2876  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2877  cat conftest.in >> conftest.h
2878  rm -f conftest.in
2879  if cmp -s $ac_file conftest.h 2>/dev/null; then
2880    echo "$ac_file is unchanged"
2881    rm -f conftest.h
2882  else
2883    # Remove last slash and all that follows it.  Not all systems have dirname.
2884      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2885      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2886      # The file is in a subdirectory.
2887      test ! -d "$ac_dir" && mkdir "$ac_dir"
2888    fi
2889    rm -f $ac_file
2890    mv conftest.h $ac_file
2891  fi
2892fi; done
2893
2894EOF
2895cat >> $CONFIG_STATUS <<EOF
2896
2897EOF
2898cat >> $CONFIG_STATUS <<\EOF
2899\
2900 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi
2901exit 0
2902EOF
2903chmod +x $CONFIG_STATUS
2904rm -fr confdefs* $ac_clean_files
2905test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2906
2907
2908
Note: See TracBrowser for help on using the repository browser.