source: git/omalloc/configure @ 78f1ab

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