xref: /redis-3.2.3/deps/jemalloc/configure (revision b9bb7e2d)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell [email protected] about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="Makefile.in"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624cfgoutputs_out
625cfgoutputs_in
626cfghdrs_out
627cfghdrs_in
628enable_zone_allocator
629enable_tls
630enable_lazy_lock
631jemalloc_version_gid
632jemalloc_version_nrev
633jemalloc_version_bugfix
634jemalloc_version_minor
635jemalloc_version_major
636jemalloc_version
637enable_xmalloc
638enable_valgrind
639enable_utrace
640enable_fill
641enable_dss
642enable_munmap
643enable_mremap
644enable_tcache
645enable_prof
646enable_stats
647enable_debug
648je_
649install_suffix
650private_namespace
651enable_code_coverage
652enable_experimental
653AUTOCONF
654LD
655RANLIB
656INSTALL_DATA
657INSTALL_SCRIPT
658INSTALL_PROGRAM
659enable_autogen
660RPATH_EXTRA
661CC_MM
662AROUT
663ARFLAGS
664MKLIB
665LDTARGET
666CTARGET
667PIC_CFLAGS
668SOREV
669EXTRA_LDFLAGS
670DSO_LDFLAGS
671libprefix
672exe
673a
674o
675importlib
676so
677LD_PRELOAD_VAR
678RPATH
679abi
680AR
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689EGREP
690GREP
691CPP
692OBJEXT
693EXEEXT
694ac_ct_CC
695CPPFLAGS
696LDFLAGS
697CFLAGS
698CC
699XSLROOT
700XSLTPROC
701MANDIR
702DATADIR
703LIBDIR
704INCLUDEDIR
705BINDIR
706PREFIX
707abs_objroot
708objroot
709abs_srcroot
710srcroot
711rev
712target_alias
713host_alias
714build_alias
715LIBS
716ECHO_T
717ECHO_N
718ECHO_C
719DEFS
720mandir
721localedir
722libdir
723psdir
724pdfdir
725dvidir
726htmldir
727infodir
728docdir
729oldincludedir
730includedir
731localstatedir
732sharedstatedir
733sysconfdir
734datadir
735datarootdir
736libexecdir
737sbindir
738bindir
739program_transform_name
740prefix
741exec_prefix
742PACKAGE_URL
743PACKAGE_BUGREPORT
744PACKAGE_STRING
745PACKAGE_VERSION
746PACKAGE_TARNAME
747PACKAGE_NAME
748PATH_SEPARATOR
749SHELL'
750ac_subst_files=''
751ac_user_opts='
752enable_option_checking
753with_xslroot
754with_rpath
755enable_autogen
756enable_experimental
757enable_code_coverage
758with_mangling
759with_jemalloc_prefix
760with_export
761with_private_namespace
762with_install_suffix
763enable_cc_silence
764enable_debug
765enable_ivsalloc
766enable_stats
767enable_prof
768enable_prof_libunwind
769with_static_libunwind
770enable_prof_libgcc
771enable_prof_gcc
772enable_tcache
773enable_mremap
774enable_munmap
775enable_dss
776enable_fill
777enable_utrace
778enable_valgrind
779enable_xmalloc
780enable_lazy_lock
781enable_tls
782enable_zone_allocator
783'
784      ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792CPP'
793
794
795# Initialize some variables set by options.
796ac_init_help=
797ac_init_version=false
798ac_unrecognized_opts=
799ac_unrecognized_sep=
800# The variables have the same names as the options, with
801# dashes changed to underlines.
802cache_file=/dev/null
803exec_prefix=NONE
804no_create=
805no_recursion=
806prefix=NONE
807program_prefix=NONE
808program_suffix=NONE
809program_transform_name=s,x,x,
810silent=
811site=
812srcdir=
813verbose=
814x_includes=NONE
815x_libraries=NONE
816
817# Installation directory options.
818# These are left unexpanded so users can "make install exec_prefix=/foo"
819# and all the variables that are supposed to be based on exec_prefix
820# by default will actually change.
821# Use braces instead of parens because sh, perl, etc. also accept them.
822# (The list follows the same order as the GNU Coding Standards.)
823bindir='${exec_prefix}/bin'
824sbindir='${exec_prefix}/sbin'
825libexecdir='${exec_prefix}/libexec'
826datarootdir='${prefix}/share'
827datadir='${datarootdir}'
828sysconfdir='${prefix}/etc'
829sharedstatedir='${prefix}/com'
830localstatedir='${prefix}/var'
831includedir='${prefix}/include'
832oldincludedir='/usr/include'
833docdir='${datarootdir}/doc/${PACKAGE}'
834infodir='${datarootdir}/info'
835htmldir='${docdir}'
836dvidir='${docdir}'
837pdfdir='${docdir}'
838psdir='${docdir}'
839libdir='${exec_prefix}/lib'
840localedir='${datarootdir}/locale'
841mandir='${datarootdir}/man'
842
843ac_prev=
844ac_dashdash=
845for ac_option
846do
847  # If the previous option needs an argument, assign it.
848  if test -n "$ac_prev"; then
849    eval $ac_prev=\$ac_option
850    ac_prev=
851    continue
852  fi
853
854  case $ac_option in
855  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856  *=)   ac_optarg= ;;
857  *)    ac_optarg=yes ;;
858  esac
859
860  # Accept the important Cygnus configure options, so we can diagnose typos.
861
862  case $ac_dashdash$ac_option in
863  --)
864    ac_dashdash=yes ;;
865
866  -bindir | --bindir | --bindi | --bind | --bin | --bi)
867    ac_prev=bindir ;;
868  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869    bindir=$ac_optarg ;;
870
871  -build | --build | --buil | --bui | --bu)
872    ac_prev=build_alias ;;
873  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874    build_alias=$ac_optarg ;;
875
876  -cache-file | --cache-file | --cache-fil | --cache-fi \
877  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878    ac_prev=cache_file ;;
879  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881    cache_file=$ac_optarg ;;
882
883  --config-cache | -C)
884    cache_file=config.cache ;;
885
886  -datadir | --datadir | --datadi | --datad)
887    ac_prev=datadir ;;
888  -datadir=* | --datadir=* | --datadi=* | --datad=*)
889    datadir=$ac_optarg ;;
890
891  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892  | --dataroo | --dataro | --datar)
893    ac_prev=datarootdir ;;
894  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896    datarootdir=$ac_optarg ;;
897
898  -disable-* | --disable-*)
899    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900    # Reject names that are not valid shell variable names.
901    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902      as_fn_error $? "invalid feature name: $ac_useropt"
903    ac_useropt_orig=$ac_useropt
904    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905    case $ac_user_opts in
906      *"
907"enable_$ac_useropt"
908"*) ;;
909      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910	 ac_unrecognized_sep=', ';;
911    esac
912    eval enable_$ac_useropt=no ;;
913
914  -docdir | --docdir | --docdi | --doc | --do)
915    ac_prev=docdir ;;
916  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917    docdir=$ac_optarg ;;
918
919  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920    ac_prev=dvidir ;;
921  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922    dvidir=$ac_optarg ;;
923
924  -enable-* | --enable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=\$ac_optarg ;;
939
940  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942  | --exec | --exe | --ex)
943    ac_prev=exec_prefix ;;
944  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946  | --exec=* | --exe=* | --ex=*)
947    exec_prefix=$ac_optarg ;;
948
949  -gas | --gas | --ga | --g)
950    # Obsolete; use --with-gas.
951    with_gas=yes ;;
952
953  -help | --help | --hel | --he | -h)
954    ac_init_help=long ;;
955  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956    ac_init_help=recursive ;;
957  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958    ac_init_help=short ;;
959
960  -host | --host | --hos | --ho)
961    ac_prev=host_alias ;;
962  -host=* | --host=* | --hos=* | --ho=*)
963    host_alias=$ac_optarg ;;
964
965  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966    ac_prev=htmldir ;;
967  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968  | --ht=*)
969    htmldir=$ac_optarg ;;
970
971  -includedir | --includedir | --includedi | --included | --include \
972  | --includ | --inclu | --incl | --inc)
973    ac_prev=includedir ;;
974  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975  | --includ=* | --inclu=* | --incl=* | --inc=*)
976    includedir=$ac_optarg ;;
977
978  -infodir | --infodir | --infodi | --infod | --info | --inf)
979    ac_prev=infodir ;;
980  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981    infodir=$ac_optarg ;;
982
983  -libdir | --libdir | --libdi | --libd)
984    ac_prev=libdir ;;
985  -libdir=* | --libdir=* | --libdi=* | --libd=*)
986    libdir=$ac_optarg ;;
987
988  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989  | --libexe | --libex | --libe)
990    ac_prev=libexecdir ;;
991  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992  | --libexe=* | --libex=* | --libe=*)
993    libexecdir=$ac_optarg ;;
994
995  -localedir | --localedir | --localedi | --localed | --locale)
996    ac_prev=localedir ;;
997  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998    localedir=$ac_optarg ;;
999
1000  -localstatedir | --localstatedir | --localstatedi | --localstated \
1001  | --localstate | --localstat | --localsta | --localst | --locals)
1002    ac_prev=localstatedir ;;
1003  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005    localstatedir=$ac_optarg ;;
1006
1007  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008    ac_prev=mandir ;;
1009  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010    mandir=$ac_optarg ;;
1011
1012  -nfp | --nfp | --nf)
1013    # Obsolete; use --without-fp.
1014    with_fp=no ;;
1015
1016  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017  | --no-cr | --no-c | -n)
1018    no_create=yes ;;
1019
1020  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022    no_recursion=yes ;;
1023
1024  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026  | --oldin | --oldi | --old | --ol | --o)
1027    ac_prev=oldincludedir ;;
1028  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031    oldincludedir=$ac_optarg ;;
1032
1033  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034    ac_prev=prefix ;;
1035  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036    prefix=$ac_optarg ;;
1037
1038  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039  | --program-pre | --program-pr | --program-p)
1040    ac_prev=program_prefix ;;
1041  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043    program_prefix=$ac_optarg ;;
1044
1045  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046  | --program-suf | --program-su | --program-s)
1047    ac_prev=program_suffix ;;
1048  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050    program_suffix=$ac_optarg ;;
1051
1052  -program-transform-name | --program-transform-name \
1053  | --program-transform-nam | --program-transform-na \
1054  | --program-transform-n | --program-transform- \
1055  | --program-transform | --program-transfor \
1056  | --program-transfo | --program-transf \
1057  | --program-trans | --program-tran \
1058  | --progr-tra | --program-tr | --program-t)
1059    ac_prev=program_transform_name ;;
1060  -program-transform-name=* | --program-transform-name=* \
1061  | --program-transform-nam=* | --program-transform-na=* \
1062  | --program-transform-n=* | --program-transform-=* \
1063  | --program-transform=* | --program-transfor=* \
1064  | --program-transfo=* | --program-transf=* \
1065  | --program-trans=* | --program-tran=* \
1066  | --progr-tra=* | --program-tr=* | --program-t=*)
1067    program_transform_name=$ac_optarg ;;
1068
1069  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070    ac_prev=pdfdir ;;
1071  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072    pdfdir=$ac_optarg ;;
1073
1074  -psdir | --psdir | --psdi | --psd | --ps)
1075    ac_prev=psdir ;;
1076  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077    psdir=$ac_optarg ;;
1078
1079  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080  | -silent | --silent | --silen | --sile | --sil)
1081    silent=yes ;;
1082
1083  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084    ac_prev=sbindir ;;
1085  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086  | --sbi=* | --sb=*)
1087    sbindir=$ac_optarg ;;
1088
1089  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091  | --sharedst | --shareds | --shared | --share | --shar \
1092  | --sha | --sh)
1093    ac_prev=sharedstatedir ;;
1094  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097  | --sha=* | --sh=*)
1098    sharedstatedir=$ac_optarg ;;
1099
1100  -site | --site | --sit)
1101    ac_prev=site ;;
1102  -site=* | --site=* | --sit=*)
1103    site=$ac_optarg ;;
1104
1105  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106    ac_prev=srcdir ;;
1107  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108    srcdir=$ac_optarg ;;
1109
1110  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111  | --syscon | --sysco | --sysc | --sys | --sy)
1112    ac_prev=sysconfdir ;;
1113  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115    sysconfdir=$ac_optarg ;;
1116
1117  -target | --target | --targe | --targ | --tar | --ta | --t)
1118    ac_prev=target_alias ;;
1119  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120    target_alias=$ac_optarg ;;
1121
1122  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123    verbose=yes ;;
1124
1125  -version | --version | --versio | --versi | --vers | -V)
1126    ac_init_version=: ;;
1127
1128  -with-* | --with-*)
1129    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132      as_fn_error $? "invalid package name: $ac_useropt"
1133    ac_useropt_orig=$ac_useropt
1134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135    case $ac_user_opts in
1136      *"
1137"with_$ac_useropt"
1138"*) ;;
1139      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140	 ac_unrecognized_sep=', ';;
1141    esac
1142    eval with_$ac_useropt=\$ac_optarg ;;
1143
1144  -without-* | --without-*)
1145    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148      as_fn_error $? "invalid package name: $ac_useropt"
1149    ac_useropt_orig=$ac_useropt
1150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151    case $ac_user_opts in
1152      *"
1153"with_$ac_useropt"
1154"*) ;;
1155      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156	 ac_unrecognized_sep=', ';;
1157    esac
1158    eval with_$ac_useropt=no ;;
1159
1160  --x)
1161    # Obsolete; use --with-x.
1162    with_x=yes ;;
1163
1164  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165  | --x-incl | --x-inc | --x-in | --x-i)
1166    ac_prev=x_includes ;;
1167  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169    x_includes=$ac_optarg ;;
1170
1171  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173    ac_prev=x_libraries ;;
1174  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176    x_libraries=$ac_optarg ;;
1177
1178  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179Try \`$0 --help' for more information"
1180    ;;
1181
1182  *=*)
1183    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184    # Reject names that are not valid shell variable names.
1185    case $ac_envvar in #(
1186      '' | [0-9]* | *[!_$as_cr_alnum]* )
1187      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188    esac
1189    eval $ac_envvar=\$ac_optarg
1190    export $ac_envvar ;;
1191
1192  *)
1193    # FIXME: should be removed in autoconf 3.0.
1194    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198    ;;
1199
1200  esac
1201done
1202
1203if test -n "$ac_prev"; then
1204  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205  as_fn_error $? "missing argument to $ac_option"
1206fi
1207
1208if test -n "$ac_unrecognized_opts"; then
1209  case $enable_option_checking in
1210    no) ;;
1211    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213  esac
1214fi
1215
1216# Check all directory arguments for consistency.
1217for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218		datadir sysconfdir sharedstatedir localstatedir includedir \
1219		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220		libdir localedir mandir
1221do
1222  eval ac_val=\$$ac_var
1223  # Remove trailing slashes.
1224  case $ac_val in
1225    */ )
1226      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227      eval $ac_var=\$ac_val;;
1228  esac
1229  # Be sure to have absolute directory names.
1230  case $ac_val in
1231    [\\/$]* | ?:[\\/]* )  continue;;
1232    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233  esac
1234  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235done
1236
1237# There might be people who depend on the old broken behavior: `$host'
1238# used to hold the argument of --host etc.
1239# FIXME: To remove some day.
1240build=$build_alias
1241host=$host_alias
1242target=$target_alias
1243
1244# FIXME: To remove some day.
1245if test "x$host_alias" != x; then
1246  if test "x$build_alias" = x; then
1247    cross_compiling=maybe
1248  elif test "x$build_alias" != "x$host_alias"; then
1249    cross_compiling=yes
1250  fi
1251fi
1252
1253ac_tool_prefix=
1254test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256test "$silent" = yes && exec 6>/dev/null
1257
1258
1259ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260ac_ls_di=`ls -di .` &&
1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262  as_fn_error $? "working directory cannot be determined"
1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264  as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267# Find the source files, if location was not specified.
1268if test -z "$srcdir"; then
1269  ac_srcdir_defaulted=yes
1270  # Try the directory containing this script, then the parent directory.
1271  ac_confdir=`$as_dirname -- "$as_myself" ||
1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273	 X"$as_myself" : 'X\(//\)[^/]' \| \
1274	 X"$as_myself" : 'X\(//\)$' \| \
1275	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276$as_echo X"$as_myself" |
1277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\/\)[^/].*/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)$/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\).*/{
1290	    s//\1/
1291	    q
1292	  }
1293	  s/.*/./; q'`
1294  srcdir=$ac_confdir
1295  if test ! -r "$srcdir/$ac_unique_file"; then
1296    srcdir=..
1297  fi
1298else
1299  ac_srcdir_defaulted=no
1300fi
1301if test ! -r "$srcdir/$ac_unique_file"; then
1302  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304fi
1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306ac_abs_confdir=`(
1307	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308	pwd)`
1309# When building in place, set srcdir=.
1310if test "$ac_abs_confdir" = "$ac_pwd"; then
1311  srcdir=.
1312fi
1313# Remove unnecessary trailing slashes from srcdir.
1314# Double slashes in file names in object file debugging info
1315# mess up M-x gdb in Emacs.
1316case $srcdir in
1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318esac
1319for ac_var in $ac_precious_vars; do
1320  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_env_${ac_var}_value=\$${ac_var}
1322  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324done
1325
1326#
1327# Report the --help message.
1328#
1329if test "$ac_init_help" = "long"; then
1330  # Omit some internal or obsolete options to make the list less imposing.
1331  # This message is too long to be a string in the A/UX 3.1 sh.
1332  cat <<_ACEOF
1333\`configure' configures this package to adapt to many kinds of systems.
1334
1335Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338VAR=VALUE.  See below for descriptions of some of the useful variables.
1339
1340Defaults for the options are specified in brackets.
1341
1342Configuration:
1343  -h, --help              display this help and exit
1344      --help=short        display options specific to this package
1345      --help=recursive    display the short help of all the included packages
1346  -V, --version           display version information and exit
1347  -q, --quiet, --silent   do not print \`checking ...' messages
1348      --cache-file=FILE   cache test results in FILE [disabled]
1349  -C, --config-cache      alias for \`--cache-file=config.cache'
1350  -n, --no-create         do not create output files
1351      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352
1353Installation directories:
1354  --prefix=PREFIX         install architecture-independent files in PREFIX
1355                          [$ac_default_prefix]
1356  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357                          [PREFIX]
1358
1359By default, \`make install' will install all the files in
1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362for instance \`--prefix=\$HOME'.
1363
1364For better control, use the options below.
1365
1366Fine tuning of the installation directories:
1367  --bindir=DIR            user executables [EPREFIX/bin]
1368  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1369  --libexecdir=DIR        program executables [EPREFIX/libexec]
1370  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1371  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1372  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1373  --libdir=DIR            object code libraries [EPREFIX/lib]
1374  --includedir=DIR        C header files [PREFIX/include]
1375  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1376  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1377  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1378  --infodir=DIR           info documentation [DATAROOTDIR/info]
1379  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1380  --mandir=DIR            man documentation [DATAROOTDIR/man]
1381  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1382  --htmldir=DIR           html documentation [DOCDIR]
1383  --dvidir=DIR            dvi documentation [DOCDIR]
1384  --pdfdir=DIR            pdf documentation [DOCDIR]
1385  --psdir=DIR             ps documentation [DOCDIR]
1386_ACEOF
1387
1388  cat <<\_ACEOF
1389
1390System types:
1391  --build=BUILD     configure for building on BUILD [guessed]
1392  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397
1398  cat <<\_ACEOF
1399
1400Optional Features:
1401  --disable-option-checking  ignore unrecognized --enable/--with options
1402  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1403  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1404  --enable-autogen        Automatically regenerate configure output
1405  --disable-experimental  Disable support for the experimental API
1406  --enable-code-coverage  Enable code coverage
1407  --enable-cc-silence     Silence irrelevant compiler warnings
1408  --enable-debug          Build debugging code (implies --enable-ivsalloc)
1409  --enable-ivsalloc       Validate pointers passed through the public API
1410  --disable-stats         Disable statistics calculation/reporting
1411  --enable-prof           Enable allocation profiling
1412  --enable-prof-libunwind Use libunwind for backtracing
1413  --disable-prof-libgcc   Do not use libgcc for backtracing
1414  --disable-prof-gcc      Do not use gcc intrinsics for backtracing
1415  --disable-tcache        Disable per thread caches
1416  --enable-mremap         Enable mremap(2) for huge realloc()
1417  --disable-munmap        Disable VM deallocation via munmap(2)
1418  --enable-dss            Enable allocation from DSS
1419  --disable-fill          Disable support for junk/zero filling, quarantine,
1420                          and redzones
1421  --enable-utrace         Enable utrace(2)-based tracing
1422  --disable-valgrind      Disable support for Valgrind
1423  --enable-xmalloc        Support xmalloc option
1424  --enable-lazy-lock      Enable lazy locking (only lock when multi-threaded)
1425  --disable-tls           Disable thread-local storage (__thread keyword)
1426  --disable-zone-allocator
1427                          Disable zone allocator for Darwin
1428
1429Optional Packages:
1430  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432  --with-xslroot=<path>   XSL stylesheet root path
1433  --with-rpath=<rpath>    Colon-separated rpath (ELF systems only)
1434  --with-mangling=<map>   Mangle symbols in <map>
1435  --with-jemalloc-prefix=<prefix>
1436                          Prefix to prepend to all public APIs
1437  --without-export        disable exporting jemalloc public APIs
1438  --with-private-namespace=<prefix>
1439                          Prefix to prepend to all library-private APIs
1440  --with-install-suffix=<suffix>
1441                          Suffix to append to all installed files
1442  --with-static-libunwind=<libunwind.a>
1443                          Path to static libunwind library; use rather than
1444                          dynamically linking
1445
1446Some influential environment variables:
1447  CC          C compiler command
1448  CFLAGS      C compiler flags
1449  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450              nonstandard directory <lib dir>
1451  LIBS        libraries to pass to the linker, e.g. -l<library>
1452  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453              you have headers in a nonstandard directory <include dir>
1454  CPP         C preprocessor
1455
1456Use these variables to override the choices made by `configure' or to help
1457it to find libraries and programs with nonstandard names/locations.
1458
1459Report bugs to the package provider.
1460_ACEOF
1461ac_status=$?
1462fi
1463
1464if test "$ac_init_help" = "recursive"; then
1465  # If there are subdirs, report their specific --help.
1466  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467    test -d "$ac_dir" ||
1468      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469      continue
1470    ac_builddir=.
1471
1472case "$ac_dir" in
1473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474*)
1475  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476  # A ".." for each directory in $ac_dir_suffix.
1477  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478  case $ac_top_builddir_sub in
1479  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481  esac ;;
1482esac
1483ac_abs_top_builddir=$ac_pwd
1484ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485# for backward compatibility:
1486ac_top_builddir=$ac_top_build_prefix
1487
1488case $srcdir in
1489  .)  # We are building in place.
1490    ac_srcdir=.
1491    ac_top_srcdir=$ac_top_builddir_sub
1492    ac_abs_top_srcdir=$ac_pwd ;;
1493  [\\/]* | ?:[\\/]* )  # Absolute name.
1494    ac_srcdir=$srcdir$ac_dir_suffix;
1495    ac_top_srcdir=$srcdir
1496    ac_abs_top_srcdir=$srcdir ;;
1497  *) # Relative name.
1498    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499    ac_top_srcdir=$ac_top_build_prefix$srcdir
1500    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501esac
1502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504    cd "$ac_dir" || { ac_status=$?; continue; }
1505    # Check for guested configure.
1506    if test -f "$ac_srcdir/configure.gnu"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509    elif test -f "$ac_srcdir/configure"; then
1510      echo &&
1511      $SHELL "$ac_srcdir/configure" --help=recursive
1512    else
1513      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514    fi || ac_status=$?
1515    cd "$ac_pwd" || { ac_status=$?; break; }
1516  done
1517fi
1518
1519test -n "$ac_init_help" && exit $ac_status
1520if $ac_init_version; then
1521  cat <<\_ACEOF
1522configure
1523generated by GNU Autoconf 2.69
1524
1525Copyright (C) 2012 Free Software Foundation, Inc.
1526This configure script is free software; the Free Software Foundation
1527gives unlimited permission to copy, distribute and modify it.
1528_ACEOF
1529  exit
1530fi
1531
1532## ------------------------ ##
1533## Autoconf initialization. ##
1534## ------------------------ ##
1535
1536# ac_fn_c_try_compile LINENO
1537# --------------------------
1538# Try to compile conftest.$ac_ext, and return whether this succeeded.
1539ac_fn_c_try_compile ()
1540{
1541  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542  rm -f conftest.$ac_objext
1543  if { { ac_try="$ac_compile"
1544case "(($ac_try" in
1545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546  *) ac_try_echo=$ac_try;;
1547esac
1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549$as_echo "$ac_try_echo"; } >&5
1550  (eval "$ac_compile") 2>conftest.err
1551  ac_status=$?
1552  if test -s conftest.err; then
1553    grep -v '^ *+' conftest.err >conftest.er1
1554    cat conftest.er1 >&5
1555    mv -f conftest.er1 conftest.err
1556  fi
1557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558  test $ac_status = 0; } && {
1559	 test -z "$ac_c_werror_flag" ||
1560	 test ! -s conftest.err
1561       } && test -s conftest.$ac_objext; then :
1562  ac_retval=0
1563else
1564  $as_echo "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
1566
1567	ac_retval=1
1568fi
1569  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570  as_fn_set_status $ac_retval
1571
1572} # ac_fn_c_try_compile
1573
1574# ac_fn_c_try_cpp LINENO
1575# ----------------------
1576# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_cpp ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  if { { ac_try="$ac_cpp conftest.$ac_ext"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } > conftest.i && {
1596	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1597	 test ! -s conftest.err
1598       }; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604    ac_retval=1
1605fi
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_cpp
1610
1611# ac_fn_c_try_run LINENO
1612# ----------------------
1613# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1614# that executables *can* be run.
1615ac_fn_c_try_run ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  if { { ac_try="$ac_link"
1619case "(($ac_try" in
1620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621  *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625  (eval "$ac_link") 2>&5
1626  ac_status=$?
1627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1629  { { case "(($ac_try" in
1630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631  *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635  (eval "$ac_try") 2>&5
1636  ac_status=$?
1637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; }; }; then :
1639  ac_retval=0
1640else
1641  $as_echo "$as_me: program exited with status $ac_status" >&5
1642       $as_echo "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645       ac_retval=$ac_status
1646fi
1647  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649  as_fn_set_status $ac_retval
1650
1651} # ac_fn_c_try_run
1652
1653# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654# -------------------------------------------------------
1655# Tests whether HEADER exists and can be compiled using the include files in
1656# INCLUDES, setting the cache variable VAR accordingly.
1657ac_fn_c_check_header_compile ()
1658{
1659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if eval \${$3+:} false; then :
1663  $as_echo_n "(cached) " >&6
1664else
1665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666/* end confdefs.h.  */
1667$4
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_compile "$LINENO"; then :
1671  eval "$3=yes"
1672else
1673  eval "$3=no"
1674fi
1675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676fi
1677eval ac_res=\$$3
1678	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679$as_echo "$ac_res" >&6; }
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681
1682} # ac_fn_c_check_header_compile
1683
1684# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1685# --------------------------------------------
1686# Tries to find the compile-time value of EXPR in a program that includes
1687# INCLUDES, setting VAR accordingly. Returns whether the value could be
1688# computed
1689ac_fn_c_compute_int ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  if test "$cross_compiling" = yes; then
1693    # Depending upon the size, compute the lo and hi bounds.
1694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695/* end confdefs.h.  */
1696$4
1697int
1698main ()
1699{
1700static int test_array [1 - 2 * !(($2) >= 0)];
1701test_array [0] = 0;
1702return test_array [0];
1703
1704  ;
1705  return 0;
1706}
1707_ACEOF
1708if ac_fn_c_try_compile "$LINENO"; then :
1709  ac_lo=0 ac_mid=0
1710  while :; do
1711    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h.  */
1713$4
1714int
1715main ()
1716{
1717static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1718test_array [0] = 0;
1719return test_array [0];
1720
1721  ;
1722  return 0;
1723}
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"; then :
1726  ac_hi=$ac_mid; break
1727else
1728  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1729			if test $ac_lo -le $ac_mid; then
1730			  ac_lo= ac_hi=
1731			  break
1732			fi
1733			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1734fi
1735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736  done
1737else
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740$4
1741int
1742main ()
1743{
1744static int test_array [1 - 2 * !(($2) < 0)];
1745test_array [0] = 0;
1746return test_array [0];
1747
1748  ;
1749  return 0;
1750}
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753  ac_hi=-1 ac_mid=-1
1754  while :; do
1755    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757$4
1758int
1759main ()
1760{
1761static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1762test_array [0] = 0;
1763return test_array [0];
1764
1765  ;
1766  return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770  ac_lo=$ac_mid; break
1771else
1772  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1773			if test $ac_mid -le $ac_hi; then
1774			  ac_lo= ac_hi=
1775			  break
1776			fi
1777			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780  done
1781else
1782  ac_lo= ac_hi=
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785fi
1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787# Binary search between lo and hi bounds.
1788while test "x$ac_lo" != "x$ac_hi"; do
1789  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h.  */
1792$4
1793int
1794main ()
1795{
1796static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1797test_array [0] = 0;
1798return test_array [0];
1799
1800  ;
1801  return 0;
1802}
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"; then :
1805  ac_hi=$ac_mid
1806else
1807  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810done
1811case $ac_lo in #((
1812?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1813'') ac_retval=1 ;;
1814esac
1815  else
1816    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818$4
1819static long int longval () { return $2; }
1820static unsigned long int ulongval () { return $2; }
1821#include <stdio.h>
1822#include <stdlib.h>
1823int
1824main ()
1825{
1826
1827  FILE *f = fopen ("conftest.val", "w");
1828  if (! f)
1829    return 1;
1830  if (($2) < 0)
1831    {
1832      long int i = longval ();
1833      if (i != ($2))
1834	return 1;
1835      fprintf (f, "%ld", i);
1836    }
1837  else
1838    {
1839      unsigned long int i = ulongval ();
1840      if (i != ($2))
1841	return 1;
1842      fprintf (f, "%lu", i);
1843    }
1844  /* Do not output a trailing newline, as this causes \r\n confusion
1845     on some platforms.  */
1846  return ferror (f) || fclose (f) != 0;
1847
1848  ;
1849  return 0;
1850}
1851_ACEOF
1852if ac_fn_c_try_run "$LINENO"; then :
1853  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1854else
1855  ac_retval=1
1856fi
1857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1858  conftest.$ac_objext conftest.beam conftest.$ac_ext
1859rm -f conftest.val
1860
1861  fi
1862  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863  as_fn_set_status $ac_retval
1864
1865} # ac_fn_c_compute_int
1866
1867# ac_fn_c_try_link LINENO
1868# -----------------------
1869# Try to link conftest.$ac_ext, and return whether this succeeded.
1870ac_fn_c_try_link ()
1871{
1872  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873  rm -f conftest.$ac_objext conftest$ac_exeext
1874  if { { ac_try="$ac_link"
1875case "(($ac_try" in
1876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877  *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881  (eval "$ac_link") 2>conftest.err
1882  ac_status=$?
1883  if test -s conftest.err; then
1884    grep -v '^ *+' conftest.err >conftest.er1
1885    cat conftest.er1 >&5
1886    mv -f conftest.er1 conftest.err
1887  fi
1888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889  test $ac_status = 0; } && {
1890	 test -z "$ac_c_werror_flag" ||
1891	 test ! -s conftest.err
1892       } && test -s conftest$ac_exeext && {
1893	 test "$cross_compiling" = yes ||
1894	 test -x conftest$ac_exeext
1895       }; then :
1896  ac_retval=0
1897else
1898  $as_echo "$as_me: failed program was:" >&5
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
1901	ac_retval=1
1902fi
1903  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905  # interfere with the next link command; also delete a directory that is
1906  # left behind by Apple's compiler.  We do this before executing the actions.
1907  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909  as_fn_set_status $ac_retval
1910
1911} # ac_fn_c_try_link
1912
1913# ac_fn_c_check_func LINENO FUNC VAR
1914# ----------------------------------
1915# Tests whether FUNC exists, setting the cache variable VAR accordingly
1916ac_fn_c_check_func ()
1917{
1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920$as_echo_n "checking for $2... " >&6; }
1921if eval \${$3+:} false; then :
1922  $as_echo_n "(cached) " >&6
1923else
1924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925/* end confdefs.h.  */
1926/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1927   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1928#define $2 innocuous_$2
1929
1930/* System header to define __stub macros and hopefully few prototypes,
1931    which can conflict with char $2 (); below.
1932    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1933    <limits.h> exists even on freestanding compilers.  */
1934
1935#ifdef __STDC__
1936# include <limits.h>
1937#else
1938# include <assert.h>
1939#endif
1940
1941#undef $2
1942
1943/* Override any GCC internal prototype to avoid an error.
1944   Use char because int might match the return type of a GCC
1945   builtin and then its argument prototype would still apply.  */
1946#ifdef __cplusplus
1947extern "C"
1948#endif
1949char $2 ();
1950/* The GNU C library defines this for functions which it implements
1951    to always fail with ENOSYS.  Some functions are actually named
1952    something starting with __ and the normal name is an alias.  */
1953#if defined __stub_$2 || defined __stub___$2
1954choke me
1955#endif
1956
1957int
1958main ()
1959{
1960return $2 ();
1961  ;
1962  return 0;
1963}
1964_ACEOF
1965if ac_fn_c_try_link "$LINENO"; then :
1966  eval "$3=yes"
1967else
1968  eval "$3=no"
1969fi
1970rm -f core conftest.err conftest.$ac_objext \
1971    conftest$ac_exeext conftest.$ac_ext
1972fi
1973eval ac_res=\$$3
1974	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975$as_echo "$ac_res" >&6; }
1976  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977
1978} # ac_fn_c_check_func
1979
1980# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1981# -------------------------------------------------------
1982# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1983# the include files in INCLUDES and setting the cache variable VAR
1984# accordingly.
1985ac_fn_c_check_header_mongrel ()
1986{
1987  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988  if eval \${$3+:} false; then :
1989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; }
1991if eval \${$3+:} false; then :
1992  $as_echo_n "(cached) " >&6
1993fi
1994eval ac_res=\$$3
1995	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996$as_echo "$ac_res" >&6; }
1997else
1998  # Is the header compilable?
1999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2000$as_echo_n "checking $2 usability... " >&6; }
2001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h.  */
2003$4
2004#include <$2>
2005_ACEOF
2006if ac_fn_c_try_compile "$LINENO"; then :
2007  ac_header_compiler=yes
2008else
2009  ac_header_compiler=no
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2013$as_echo "$ac_header_compiler" >&6; }
2014
2015# Is the header present?
2016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2017$as_echo_n "checking $2 presence... " >&6; }
2018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h.  */
2020#include <$2>
2021_ACEOF
2022if ac_fn_c_try_cpp "$LINENO"; then :
2023  ac_header_preproc=yes
2024else
2025  ac_header_preproc=no
2026fi
2027rm -f conftest.err conftest.i conftest.$ac_ext
2028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2029$as_echo "$ac_header_preproc" >&6; }
2030
2031# So?  What about this header?
2032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2033  yes:no: )
2034    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2035$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2036    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2037$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038    ;;
2039  no:yes:* )
2040    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2041$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2042    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2043$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2044    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2045$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2046    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2047$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2048    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050    ;;
2051esac
2052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053$as_echo_n "checking for $2... " >&6; }
2054if eval \${$3+:} false; then :
2055  $as_echo_n "(cached) " >&6
2056else
2057  eval "$3=\$ac_header_compiler"
2058fi
2059eval ac_res=\$$3
2060	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062fi
2063  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064
2065} # ac_fn_c_check_header_mongrel
2066
2067# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2068# -------------------------------------------
2069# Tests whether TYPE exists after having included INCLUDES, setting cache
2070# variable VAR accordingly.
2071ac_fn_c_check_type ()
2072{
2073  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075$as_echo_n "checking for $2... " >&6; }
2076if eval \${$3+:} false; then :
2077  $as_echo_n "(cached) " >&6
2078else
2079  eval "$3=no"
2080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h.  */
2082$4
2083int
2084main ()
2085{
2086if (sizeof ($2))
2087	 return 0;
2088  ;
2089  return 0;
2090}
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094/* end confdefs.h.  */
2095$4
2096int
2097main ()
2098{
2099if (sizeof (($2)))
2100	    return 0;
2101  ;
2102  return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106
2107else
2108  eval "$3=yes"
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113fi
2114eval ac_res=\$$3
2115	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116$as_echo "$ac_res" >&6; }
2117  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118
2119} # ac_fn_c_check_type
2120cat >config.log <<_ACEOF
2121This file contains any messages produced by compilers while
2122running configure, to aid debugging if configure makes a mistake.
2123
2124It was created by $as_me, which was
2125generated by GNU Autoconf 2.69.  Invocation command line was
2126
2127  $ $0 $@
2128
2129_ACEOF
2130exec 5>>config.log
2131{
2132cat <<_ASUNAME
2133## --------- ##
2134## Platform. ##
2135## --------- ##
2136
2137hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2138uname -m = `(uname -m) 2>/dev/null || echo unknown`
2139uname -r = `(uname -r) 2>/dev/null || echo unknown`
2140uname -s = `(uname -s) 2>/dev/null || echo unknown`
2141uname -v = `(uname -v) 2>/dev/null || echo unknown`
2142
2143/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2144/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2145
2146/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2147/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2148/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2149/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2150/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2151/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2152/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2153
2154_ASUNAME
2155
2156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157for as_dir in $PATH
2158do
2159  IFS=$as_save_IFS
2160  test -z "$as_dir" && as_dir=.
2161    $as_echo "PATH: $as_dir"
2162  done
2163IFS=$as_save_IFS
2164
2165} >&5
2166
2167cat >&5 <<_ACEOF
2168
2169
2170## ----------- ##
2171## Core tests. ##
2172## ----------- ##
2173
2174_ACEOF
2175
2176
2177# Keep a trace of the command line.
2178# Strip out --no-create and --no-recursion so they do not pile up.
2179# Strip out --silent because we don't want to record it for future runs.
2180# Also quote any args containing shell meta-characters.
2181# Make two passes to allow for proper duplicate-argument suppression.
2182ac_configure_args=
2183ac_configure_args0=
2184ac_configure_args1=
2185ac_must_keep_next=false
2186for ac_pass in 1 2
2187do
2188  for ac_arg
2189  do
2190    case $ac_arg in
2191    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2192    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2193    | -silent | --silent | --silen | --sile | --sil)
2194      continue ;;
2195    *\'*)
2196      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2197    esac
2198    case $ac_pass in
2199    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2200    2)
2201      as_fn_append ac_configure_args1 " '$ac_arg'"
2202      if test $ac_must_keep_next = true; then
2203	ac_must_keep_next=false # Got value, back to normal.
2204      else
2205	case $ac_arg in
2206	  *=* | --config-cache | -C | -disable-* | --disable-* \
2207	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2208	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2209	  | -with-* | --with-* | -without-* | --without-* | --x)
2210	    case "$ac_configure_args0 " in
2211	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2212	    esac
2213	    ;;
2214	  -* ) ac_must_keep_next=true ;;
2215	esac
2216      fi
2217      as_fn_append ac_configure_args " '$ac_arg'"
2218      ;;
2219    esac
2220  done
2221done
2222{ ac_configure_args0=; unset ac_configure_args0;}
2223{ ac_configure_args1=; unset ac_configure_args1;}
2224
2225# When interrupted or exit'd, cleanup temporary files, and complete
2226# config.log.  We remove comments because anyway the quotes in there
2227# would cause problems or look ugly.
2228# WARNING: Use '\'' to represent an apostrophe within the trap.
2229# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2230trap 'exit_status=$?
2231  # Save into config.log some information that might help in debugging.
2232  {
2233    echo
2234
2235    $as_echo "## ---------------- ##
2236## Cache variables. ##
2237## ---------------- ##"
2238    echo
2239    # The following way of writing the cache mishandles newlines in values,
2240(
2241  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2242    eval ac_val=\$$ac_var
2243    case $ac_val in #(
2244    *${as_nl}*)
2245      case $ac_var in #(
2246      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2247$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2248      esac
2249      case $ac_var in #(
2250      _ | IFS | as_nl) ;; #(
2251      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2252      *) { eval $ac_var=; unset $ac_var;} ;;
2253      esac ;;
2254    esac
2255  done
2256  (set) 2>&1 |
2257    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2258    *${as_nl}ac_space=\ *)
2259      sed -n \
2260	"s/'\''/'\''\\\\'\'''\''/g;
2261	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2262      ;; #(
2263    *)
2264      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2265      ;;
2266    esac |
2267    sort
2268)
2269    echo
2270
2271    $as_echo "## ----------------- ##
2272## Output variables. ##
2273## ----------------- ##"
2274    echo
2275    for ac_var in $ac_subst_vars
2276    do
2277      eval ac_val=\$$ac_var
2278      case $ac_val in
2279      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280      esac
2281      $as_echo "$ac_var='\''$ac_val'\''"
2282    done | sort
2283    echo
2284
2285    if test -n "$ac_subst_files"; then
2286      $as_echo "## ------------------- ##
2287## File substitutions. ##
2288## ------------------- ##"
2289      echo
2290      for ac_var in $ac_subst_files
2291      do
2292	eval ac_val=\$$ac_var
2293	case $ac_val in
2294	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295	esac
2296	$as_echo "$ac_var='\''$ac_val'\''"
2297      done | sort
2298      echo
2299    fi
2300
2301    if test -s confdefs.h; then
2302      $as_echo "## ----------- ##
2303## confdefs.h. ##
2304## ----------- ##"
2305      echo
2306      cat confdefs.h
2307      echo
2308    fi
2309    test "$ac_signal" != 0 &&
2310      $as_echo "$as_me: caught signal $ac_signal"
2311    $as_echo "$as_me: exit $exit_status"
2312  } >&5
2313  rm -f core *.core core.conftest.* &&
2314    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2315    exit $exit_status
2316' 0
2317for ac_signal in 1 2 13 15; do
2318  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2319done
2320ac_signal=0
2321
2322# confdefs.h avoids OS command line length limits that DEFS can exceed.
2323rm -f -r conftest* confdefs.h
2324
2325$as_echo "/* confdefs.h */" > confdefs.h
2326
2327# Predefined preprocessor variables.
2328
2329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_NAME "$PACKAGE_NAME"
2331_ACEOF
2332
2333cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2335_ACEOF
2336
2337cat >>confdefs.h <<_ACEOF
2338#define PACKAGE_VERSION "$PACKAGE_VERSION"
2339_ACEOF
2340
2341cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_STRING "$PACKAGE_STRING"
2343_ACEOF
2344
2345cat >>confdefs.h <<_ACEOF
2346#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2347_ACEOF
2348
2349cat >>confdefs.h <<_ACEOF
2350#define PACKAGE_URL "$PACKAGE_URL"
2351_ACEOF
2352
2353
2354# Let the site file select an alternate cache file if it wants to.
2355# Prefer an explicitly selected file to automatically selected ones.
2356ac_site_file1=NONE
2357ac_site_file2=NONE
2358if test -n "$CONFIG_SITE"; then
2359  # We do not want a PATH search for config.site.
2360  case $CONFIG_SITE in #((
2361    -*)  ac_site_file1=./$CONFIG_SITE;;
2362    */*) ac_site_file1=$CONFIG_SITE;;
2363    *)   ac_site_file1=./$CONFIG_SITE;;
2364  esac
2365elif test "x$prefix" != xNONE; then
2366  ac_site_file1=$prefix/share/config.site
2367  ac_site_file2=$prefix/etc/config.site
2368else
2369  ac_site_file1=$ac_default_prefix/share/config.site
2370  ac_site_file2=$ac_default_prefix/etc/config.site
2371fi
2372for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2373do
2374  test "x$ac_site_file" = xNONE && continue
2375  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2376    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2377$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2378    sed 's/^/| /' "$ac_site_file" >&5
2379    . "$ac_site_file" \
2380      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2382as_fn_error $? "failed to load site script $ac_site_file
2383See \`config.log' for more details" "$LINENO" 5; }
2384  fi
2385done
2386
2387if test -r "$cache_file"; then
2388  # Some versions of bash will fail to source /dev/null (special files
2389  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2390  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2391    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2392$as_echo "$as_me: loading cache $cache_file" >&6;}
2393    case $cache_file in
2394      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2395      *)                      . "./$cache_file";;
2396    esac
2397  fi
2398else
2399  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2400$as_echo "$as_me: creating cache $cache_file" >&6;}
2401  >$cache_file
2402fi
2403
2404# Check that the precious variables saved in the cache have kept the same
2405# value.
2406ac_cache_corrupted=false
2407for ac_var in $ac_precious_vars; do
2408  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2409  eval ac_new_set=\$ac_env_${ac_var}_set
2410  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2411  eval ac_new_val=\$ac_env_${ac_var}_value
2412  case $ac_old_set,$ac_new_set in
2413    set,)
2414      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2415$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2416      ac_cache_corrupted=: ;;
2417    ,set)
2418      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2419$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2420      ac_cache_corrupted=: ;;
2421    ,);;
2422    *)
2423      if test "x$ac_old_val" != "x$ac_new_val"; then
2424	# differences in whitespace do not lead to failure.
2425	ac_old_val_w=`echo x $ac_old_val`
2426	ac_new_val_w=`echo x $ac_new_val`
2427	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2428	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2429$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2430	  ac_cache_corrupted=:
2431	else
2432	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2433$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2434	  eval $ac_var=\$ac_old_val
2435	fi
2436	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2437$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2438	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2439$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2440      fi;;
2441  esac
2442  # Pass precious variables to config.status.
2443  if test "$ac_new_set" = set; then
2444    case $ac_new_val in
2445    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2446    *) ac_arg=$ac_var=$ac_new_val ;;
2447    esac
2448    case " $ac_configure_args " in
2449      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2450      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2451    esac
2452  fi
2453done
2454if $ac_cache_corrupted; then
2455  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2458$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2459  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2460fi
2461## -------------------- ##
2462## Main body of script. ##
2463## -------------------- ##
2464
2465ac_ext=c
2466ac_cpp='$CPP $CPPFLAGS'
2467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479rev=1
2480
2481
2482srcroot=$srcdir
2483if test "x${srcroot}" = "x." ; then
2484  srcroot=""
2485else
2486  srcroot="${srcroot}/"
2487fi
2488
2489abs_srcroot="`cd \"${srcdir}\"; pwd`/"
2490
2491
2492objroot=""
2493
2494abs_objroot="`pwd`/"
2495
2496
2497if test "x$prefix" = "xNONE" ; then
2498  prefix="/usr/local"
2499fi
2500if test "x$exec_prefix" = "xNONE" ; then
2501  exec_prefix=$prefix
2502fi
2503PREFIX=$prefix
2504
2505BINDIR=`eval echo $bindir`
2506BINDIR=`eval echo $BINDIR`
2507
2508INCLUDEDIR=`eval echo $includedir`
2509INCLUDEDIR=`eval echo $INCLUDEDIR`
2510
2511LIBDIR=`eval echo $libdir`
2512LIBDIR=`eval echo $LIBDIR`
2513
2514DATADIR=`eval echo $datadir`
2515DATADIR=`eval echo $DATADIR`
2516
2517MANDIR=`eval echo $mandir`
2518MANDIR=`eval echo $MANDIR`
2519
2520
2521# Extract the first word of "xsltproc", so it can be a program name with args.
2522set dummy xsltproc; ac_word=$2
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524$as_echo_n "checking for $ac_word... " >&6; }
2525if ${ac_cv_path_XSLTPROC+:} false; then :
2526  $as_echo_n "(cached) " >&6
2527else
2528  case $XSLTPROC in
2529  [\\/]* | ?:[\\/]*)
2530  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
2531  ;;
2532  *)
2533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536  IFS=$as_save_IFS
2537  test -z "$as_dir" && as_dir=.
2538    for ac_exec_ext in '' $ac_executable_extensions; do
2539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
2541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542    break 2
2543  fi
2544done
2545  done
2546IFS=$as_save_IFS
2547
2548  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
2549  ;;
2550esac
2551fi
2552XSLTPROC=$ac_cv_path_XSLTPROC
2553if test -n "$XSLTPROC"; then
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
2555$as_echo "$XSLTPROC" >&6; }
2556else
2557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558$as_echo "no" >&6; }
2559fi
2560
2561
2562if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
2563  DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2564elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
2565  DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
2566else
2567    DEFAULT_XSLROOT=""
2568fi
2569
2570# Check whether --with-xslroot was given.
2571if test "${with_xslroot+set}" = set; then :
2572  withval=$with_xslroot;
2573if test "x$with_xslroot" = "xno" ; then
2574  XSLROOT="${DEFAULT_XSLROOT}"
2575else
2576  XSLROOT="${with_xslroot}"
2577fi
2578
2579else
2580  XSLROOT="${DEFAULT_XSLROOT}"
2581
2582fi
2583
2584
2585
2586CFLAGS=$CFLAGS
2587ac_ext=c
2588ac_cpp='$CPP $CPPFLAGS'
2589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592if test -n "$ac_tool_prefix"; then
2593  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2594set dummy ${ac_tool_prefix}gcc; ac_word=$2
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596$as_echo_n "checking for $ac_word... " >&6; }
2597if ${ac_cv_prog_CC+:} false; then :
2598  $as_echo_n "(cached) " >&6
2599else
2600  if test -n "$CC"; then
2601  ac_cv_prog_CC="$CC" # Let the user override the test.
2602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606  IFS=$as_save_IFS
2607  test -z "$as_dir" && as_dir=.
2608    for ac_exec_ext in '' $ac_executable_extensions; do
2609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2612    break 2
2613  fi
2614done
2615  done
2616IFS=$as_save_IFS
2617
2618fi
2619fi
2620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2623$as_echo "$CC" >&6; }
2624else
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626$as_echo "no" >&6; }
2627fi
2628
2629
2630fi
2631if test -z "$ac_cv_prog_CC"; then
2632  ac_ct_CC=$CC
2633  # Extract the first word of "gcc", so it can be a program name with args.
2634set dummy gcc; ac_word=$2
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636$as_echo_n "checking for $ac_word... " >&6; }
2637if ${ac_cv_prog_ac_ct_CC+:} false; then :
2638  $as_echo_n "(cached) " >&6
2639else
2640  if test -n "$ac_ct_CC"; then
2641  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646  IFS=$as_save_IFS
2647  test -z "$as_dir" && as_dir=.
2648    for ac_exec_ext in '' $ac_executable_extensions; do
2649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650    ac_cv_prog_ac_ct_CC="gcc"
2651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652    break 2
2653  fi
2654done
2655  done
2656IFS=$as_save_IFS
2657
2658fi
2659fi
2660ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661if test -n "$ac_ct_CC"; then
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2663$as_echo "$ac_ct_CC" >&6; }
2664else
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666$as_echo "no" >&6; }
2667fi
2668
2669  if test "x$ac_ct_CC" = x; then
2670    CC=""
2671  else
2672    case $cross_compiling:$ac_tool_warned in
2673yes:)
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2676ac_tool_warned=yes ;;
2677esac
2678    CC=$ac_ct_CC
2679  fi
2680else
2681  CC="$ac_cv_prog_CC"
2682fi
2683
2684if test -z "$CC"; then
2685          if test -n "$ac_tool_prefix"; then
2686    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2687set dummy ${ac_tool_prefix}cc; ac_word=$2
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689$as_echo_n "checking for $ac_word... " >&6; }
2690if ${ac_cv_prog_CC+:} false; then :
2691  $as_echo_n "(cached) " >&6
2692else
2693  if test -n "$CC"; then
2694  ac_cv_prog_CC="$CC" # Let the user override the test.
2695else
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699  IFS=$as_save_IFS
2700  test -z "$as_dir" && as_dir=.
2701    for ac_exec_ext in '' $ac_executable_extensions; do
2702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703    ac_cv_prog_CC="${ac_tool_prefix}cc"
2704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705    break 2
2706  fi
2707done
2708  done
2709IFS=$as_save_IFS
2710
2711fi
2712fi
2713CC=$ac_cv_prog_CC
2714if test -n "$CC"; then
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2716$as_echo "$CC" >&6; }
2717else
2718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720fi
2721
2722
2723  fi
2724fi
2725if test -z "$CC"; then
2726  # Extract the first word of "cc", so it can be a program name with args.
2727set dummy cc; ac_word=$2
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729$as_echo_n "checking for $ac_word... " >&6; }
2730if ${ac_cv_prog_CC+:} false; then :
2731  $as_echo_n "(cached) " >&6
2732else
2733  if test -n "$CC"; then
2734  ac_cv_prog_CC="$CC" # Let the user override the test.
2735else
2736  ac_prog_rejected=no
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740  IFS=$as_save_IFS
2741  test -z "$as_dir" && as_dir=.
2742    for ac_exec_ext in '' $ac_executable_extensions; do
2743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2745       ac_prog_rejected=yes
2746       continue
2747     fi
2748    ac_cv_prog_CC="cc"
2749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750    break 2
2751  fi
2752done
2753  done
2754IFS=$as_save_IFS
2755
2756if test $ac_prog_rejected = yes; then
2757  # We found a bogon in the path, so make sure we never use it.
2758  set dummy $ac_cv_prog_CC
2759  shift
2760  if test $# != 0; then
2761    # We chose a different compiler from the bogus one.
2762    # However, it has the same basename, so the bogon will be chosen
2763    # first if we set CC to just the basename; use the full file name.
2764    shift
2765    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2766  fi
2767fi
2768fi
2769fi
2770CC=$ac_cv_prog_CC
2771if test -n "$CC"; then
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2773$as_echo "$CC" >&6; }
2774else
2775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776$as_echo "no" >&6; }
2777fi
2778
2779
2780fi
2781if test -z "$CC"; then
2782  if test -n "$ac_tool_prefix"; then
2783  for ac_prog in cl.exe
2784  do
2785    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788$as_echo_n "checking for $ac_word... " >&6; }
2789if ${ac_cv_prog_CC+:} false; then :
2790  $as_echo_n "(cached) " >&6
2791else
2792  if test -n "$CC"; then
2793  ac_cv_prog_CC="$CC" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800    for ac_exec_ext in '' $ac_executable_extensions; do
2801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807  done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812CC=$ac_cv_prog_CC
2813if test -n "$CC"; then
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815$as_echo "$CC" >&6; }
2816else
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
2819fi
2820
2821
2822    test -n "$CC" && break
2823  done
2824fi
2825if test -z "$CC"; then
2826  ac_ct_CC=$CC
2827  for ac_prog in cl.exe
2828do
2829  # Extract the first word of "$ac_prog", so it can be a program name with args.
2830set dummy $ac_prog; ac_word=$2
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832$as_echo_n "checking for $ac_word... " >&6; }
2833if ${ac_cv_prog_ac_ct_CC+:} false; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  if test -n "$ac_ct_CC"; then
2837  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842  IFS=$as_save_IFS
2843  test -z "$as_dir" && as_dir=.
2844    for ac_exec_ext in '' $ac_executable_extensions; do
2845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846    ac_cv_prog_ac_ct_CC="$ac_prog"
2847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848    break 2
2849  fi
2850done
2851  done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857if test -n "$ac_ct_CC"; then
2858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2859$as_echo "$ac_ct_CC" >&6; }
2860else
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863fi
2864
2865
2866  test -n "$ac_ct_CC" && break
2867done
2868
2869  if test "x$ac_ct_CC" = x; then
2870    CC=""
2871  else
2872    case $cross_compiling:$ac_tool_warned in
2873yes:)
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876ac_tool_warned=yes ;;
2877esac
2878    CC=$ac_ct_CC
2879  fi
2880fi
2881
2882fi
2883
2884
2885test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887as_fn_error $? "no acceptable C compiler found in \$PATH
2888See \`config.log' for more details" "$LINENO" 5; }
2889
2890# Provide some information about the compiler.
2891$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2892set X $ac_compile
2893ac_compiler=$2
2894for ac_option in --version -v -V -qversion; do
2895  { { ac_try="$ac_compiler $ac_option >&5"
2896case "(($ac_try" in
2897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898  *) ac_try_echo=$ac_try;;
2899esac
2900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901$as_echo "$ac_try_echo"; } >&5
2902  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2903  ac_status=$?
2904  if test -s conftest.err; then
2905    sed '10a\
2906... rest of stderr output deleted ...
2907         10q' conftest.err >conftest.er1
2908    cat conftest.er1 >&5
2909  fi
2910  rm -f conftest.er1 conftest.err
2911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2912  test $ac_status = 0; }
2913done
2914
2915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916/* end confdefs.h.  */
2917
2918int
2919main ()
2920{
2921
2922  ;
2923  return 0;
2924}
2925_ACEOF
2926ac_clean_files_save=$ac_clean_files
2927ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2928# Try to create an executable without -o first, disregard a.out.
2929# It will help us diagnose broken compilers, and finding out an intuition
2930# of exeext.
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2932$as_echo_n "checking whether the C compiler works... " >&6; }
2933ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2934
2935# The possible output files:
2936ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2937
2938ac_rmfiles=
2939for ac_file in $ac_files
2940do
2941  case $ac_file in
2942    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2943    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2944  esac
2945done
2946rm -f $ac_rmfiles
2947
2948if { { ac_try="$ac_link_default"
2949case "(($ac_try" in
2950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951  *) ac_try_echo=$ac_try;;
2952esac
2953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954$as_echo "$ac_try_echo"; } >&5
2955  (eval "$ac_link_default") 2>&5
2956  ac_status=$?
2957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958  test $ac_status = 0; }; then :
2959  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2960# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2961# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2962# so that the user can short-circuit this test for compilers unknown to
2963# Autoconf.
2964for ac_file in $ac_files ''
2965do
2966  test -f "$ac_file" || continue
2967  case $ac_file in
2968    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2969	;;
2970    [ab].out )
2971	# We found the default executable, but exeext='' is most
2972	# certainly right.
2973	break;;
2974    *.* )
2975	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2976	then :; else
2977	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2978	fi
2979	# We set ac_cv_exeext here because the later test for it is not
2980	# safe: cross compilers may not add the suffix if given an `-o'
2981	# argument, so we may need to know it at that point already.
2982	# Even if this section looks crufty: it has the advantage of
2983	# actually working.
2984	break;;
2985    * )
2986	break;;
2987  esac
2988done
2989test "$ac_cv_exeext" = no && ac_cv_exeext=
2990
2991else
2992  ac_file=''
2993fi
2994if test -z "$ac_file"; then :
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997$as_echo "$as_me: failed program was:" >&5
2998sed 's/^/| /' conftest.$ac_ext >&5
2999
3000{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002as_fn_error 77 "C compiler cannot create executables
3003See \`config.log' for more details" "$LINENO" 5; }
3004else
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3006$as_echo "yes" >&6; }
3007fi
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3009$as_echo_n "checking for C compiler default output file name... " >&6; }
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3011$as_echo "$ac_file" >&6; }
3012ac_exeext=$ac_cv_exeext
3013
3014rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3015ac_clean_files=$ac_clean_files_save
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3017$as_echo_n "checking for suffix of executables... " >&6; }
3018if { { ac_try="$ac_link"
3019case "(($ac_try" in
3020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021  *) ac_try_echo=$ac_try;;
3022esac
3023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024$as_echo "$ac_try_echo"; } >&5
3025  (eval "$ac_link") 2>&5
3026  ac_status=$?
3027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028  test $ac_status = 0; }; then :
3029  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3030# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3031# work properly (i.e., refer to `conftest.exe'), while it won't with
3032# `rm'.
3033for ac_file in conftest.exe conftest conftest.*; do
3034  test -f "$ac_file" || continue
3035  case $ac_file in
3036    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3037    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3038	  break;;
3039    * ) break;;
3040  esac
3041done
3042else
3043  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3046See \`config.log' for more details" "$LINENO" 5; }
3047fi
3048rm -f conftest conftest$ac_cv_exeext
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3050$as_echo "$ac_cv_exeext" >&6; }
3051
3052rm -f conftest.$ac_ext
3053EXEEXT=$ac_cv_exeext
3054ac_exeext=$EXEEXT
3055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056/* end confdefs.h.  */
3057#include <stdio.h>
3058int
3059main ()
3060{
3061FILE *f = fopen ("conftest.out", "w");
3062 return ferror (f) || fclose (f) != 0;
3063
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068ac_clean_files="$ac_clean_files conftest.out"
3069# Check that the compiler produces executables we can run.  If not, either
3070# the compiler is broken, or we cross compile.
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3072$as_echo_n "checking whether we are cross compiling... " >&6; }
3073if test "$cross_compiling" != yes; then
3074  { { ac_try="$ac_link"
3075case "(($ac_try" in
3076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077  *) ac_try_echo=$ac_try;;
3078esac
3079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080$as_echo "$ac_try_echo"; } >&5
3081  (eval "$ac_link") 2>&5
3082  ac_status=$?
3083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084  test $ac_status = 0; }
3085  if { ac_try='./conftest$ac_cv_exeext'
3086  { { case "(($ac_try" in
3087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088  *) ac_try_echo=$ac_try;;
3089esac
3090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091$as_echo "$ac_try_echo"; } >&5
3092  (eval "$ac_try") 2>&5
3093  ac_status=$?
3094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095  test $ac_status = 0; }; }; then
3096    cross_compiling=no
3097  else
3098    if test "$cross_compiling" = maybe; then
3099	cross_compiling=yes
3100    else
3101	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103as_fn_error $? "cannot run C compiled programs.
3104If you meant to cross compile, use \`--host'.
3105See \`config.log' for more details" "$LINENO" 5; }
3106    fi
3107  fi
3108fi
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3110$as_echo "$cross_compiling" >&6; }
3111
3112rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3113ac_clean_files=$ac_clean_files_save
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3115$as_echo_n "checking for suffix of object files... " >&6; }
3116if ${ac_cv_objext+:} false; then :
3117  $as_echo_n "(cached) " >&6
3118else
3119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120/* end confdefs.h.  */
3121
3122int
3123main ()
3124{
3125
3126  ;
3127  return 0;
3128}
3129_ACEOF
3130rm -f conftest.o conftest.obj
3131if { { ac_try="$ac_compile"
3132case "(($ac_try" in
3133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134  *) ac_try_echo=$ac_try;;
3135esac
3136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137$as_echo "$ac_try_echo"; } >&5
3138  (eval "$ac_compile") 2>&5
3139  ac_status=$?
3140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141  test $ac_status = 0; }; then :
3142  for ac_file in conftest.o conftest.obj conftest.*; do
3143  test -f "$ac_file" || continue;
3144  case $ac_file in
3145    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3146    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3147       break;;
3148  esac
3149done
3150else
3151  $as_echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156as_fn_error $? "cannot compute suffix of object files: cannot compile
3157See \`config.log' for more details" "$LINENO" 5; }
3158fi
3159rm -f conftest.$ac_cv_objext conftest.$ac_ext
3160fi
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3162$as_echo "$ac_cv_objext" >&6; }
3163OBJEXT=$ac_cv_objext
3164ac_objext=$OBJEXT
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3166$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3167if ${ac_cv_c_compiler_gnu+:} false; then :
3168  $as_echo_n "(cached) " >&6
3169else
3170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171/* end confdefs.h.  */
3172
3173int
3174main ()
3175{
3176#ifndef __GNUC__
3177       choke me
3178#endif
3179
3180  ;
3181  return 0;
3182}
3183_ACEOF
3184if ac_fn_c_try_compile "$LINENO"; then :
3185  ac_compiler_gnu=yes
3186else
3187  ac_compiler_gnu=no
3188fi
3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190ac_cv_c_compiler_gnu=$ac_compiler_gnu
3191
3192fi
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3194$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3195if test $ac_compiler_gnu = yes; then
3196  GCC=yes
3197else
3198  GCC=
3199fi
3200ac_test_CFLAGS=${CFLAGS+set}
3201ac_save_CFLAGS=$CFLAGS
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3203$as_echo_n "checking whether $CC accepts -g... " >&6; }
3204if ${ac_cv_prog_cc_g+:} false; then :
3205  $as_echo_n "(cached) " >&6
3206else
3207  ac_save_c_werror_flag=$ac_c_werror_flag
3208   ac_c_werror_flag=yes
3209   ac_cv_prog_cc_g=no
3210   CFLAGS="-g"
3211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212/* end confdefs.h.  */
3213
3214int
3215main ()
3216{
3217
3218  ;
3219  return 0;
3220}
3221_ACEOF
3222if ac_fn_c_try_compile "$LINENO"; then :
3223  ac_cv_prog_cc_g=yes
3224else
3225  CFLAGS=""
3226      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227/* end confdefs.h.  */
3228
3229int
3230main ()
3231{
3232
3233  ;
3234  return 0;
3235}
3236_ACEOF
3237if ac_fn_c_try_compile "$LINENO"; then :
3238
3239else
3240  ac_c_werror_flag=$ac_save_c_werror_flag
3241	 CFLAGS="-g"
3242	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243/* end confdefs.h.  */
3244
3245int
3246main ()
3247{
3248
3249  ;
3250  return 0;
3251}
3252_ACEOF
3253if ac_fn_c_try_compile "$LINENO"; then :
3254  ac_cv_prog_cc_g=yes
3255fi
3256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257fi
3258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259fi
3260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261   ac_c_werror_flag=$ac_save_c_werror_flag
3262fi
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3264$as_echo "$ac_cv_prog_cc_g" >&6; }
3265if test "$ac_test_CFLAGS" = set; then
3266  CFLAGS=$ac_save_CFLAGS
3267elif test $ac_cv_prog_cc_g = yes; then
3268  if test "$GCC" = yes; then
3269    CFLAGS="-g -O2"
3270  else
3271    CFLAGS="-g"
3272  fi
3273else
3274  if test "$GCC" = yes; then
3275    CFLAGS="-O2"
3276  else
3277    CFLAGS=
3278  fi
3279fi
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3281$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3282if ${ac_cv_prog_cc_c89+:} false; then :
3283  $as_echo_n "(cached) " >&6
3284else
3285  ac_cv_prog_cc_c89=no
3286ac_save_CC=$CC
3287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288/* end confdefs.h.  */
3289#include <stdarg.h>
3290#include <stdio.h>
3291struct stat;
3292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3293struct buf { int x; };
3294FILE * (*rcsopen) (struct buf *, struct stat *, int);
3295static char *e (p, i)
3296     char **p;
3297     int i;
3298{
3299  return p[i];
3300}
3301static char *f (char * (*g) (char **, int), char **p, ...)
3302{
3303  char *s;
3304  va_list v;
3305  va_start (v,p);
3306  s = g (p, va_arg (v,int));
3307  va_end (v);
3308  return s;
3309}
3310
3311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3312   function prototypes and stuff, but not '\xHH' hex character constants.
3313   These don't provoke an error unfortunately, instead are silently treated
3314   as 'x'.  The following induces an error, until -std is added to get
3315   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3316   array size at least.  It's necessary to write '\x00'==0 to get something
3317   that's true only with -std.  */
3318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3319
3320/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3321   inside strings and character constants.  */
3322#define FOO(x) 'x'
3323int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3324
3325int test (int i, double x);
3326struct s1 {int (*f) (int a);};
3327struct s2 {int (*f) (double a);};
3328int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3329int argc;
3330char **argv;
3331int
3332main ()
3333{
3334return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3335  ;
3336  return 0;
3337}
3338_ACEOF
3339for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3340	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3341do
3342  CC="$ac_save_CC $ac_arg"
3343  if ac_fn_c_try_compile "$LINENO"; then :
3344  ac_cv_prog_cc_c89=$ac_arg
3345fi
3346rm -f core conftest.err conftest.$ac_objext
3347  test "x$ac_cv_prog_cc_c89" != "xno" && break
3348done
3349rm -f conftest.$ac_ext
3350CC=$ac_save_CC
3351
3352fi
3353# AC_CACHE_VAL
3354case "x$ac_cv_prog_cc_c89" in
3355  x)
3356    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3357$as_echo "none needed" >&6; } ;;
3358  xno)
3359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3360$as_echo "unsupported" >&6; } ;;
3361  *)
3362    CC="$CC $ac_cv_prog_cc_c89"
3363    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3364$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3365esac
3366if test "x$ac_cv_prog_cc_c89" != xno; then :
3367
3368fi
3369
3370ac_ext=c
3371ac_cpp='$CPP $CPPFLAGS'
3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375
3376if test "x$GCC" != "xyes" ; then
3377
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
3379$as_echo_n "checking whether compiler is MSVC... " >&6; }
3380if ${je_cv_msvc+:} false; then :
3381  $as_echo_n "(cached) " >&6
3382else
3383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384/* end confdefs.h.  */
3385
3386int
3387main ()
3388{
3389
3390#ifndef _MSC_VER
3391  int fail-1;
3392#endif
3393
3394  ;
3395  return 0;
3396}
3397_ACEOF
3398if ac_fn_c_try_compile "$LINENO"; then :
3399  je_cv_msvc=yes
3400else
3401  je_cv_msvc=no
3402fi
3403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404fi
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
3406$as_echo "$je_cv_msvc" >&6; }
3407fi
3408
3409if test "x$CFLAGS" = "x" ; then
3410  no_CFLAGS="yes"
3411  if test "x$GCC" = "xyes" ; then
3412
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
3414$as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
3415TCFLAGS="${CFLAGS}"
3416if test "x${CFLAGS}" = "x" ; then
3417  CFLAGS="-std=gnu99"
3418else
3419  CFLAGS="${CFLAGS} -std=gnu99"
3420fi
3421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422/* end confdefs.h.  */
3423
3424
3425int
3426main ()
3427{
3428
3429    return 0;
3430
3431  ;
3432  return 0;
3433}
3434_ACEOF
3435if ac_fn_c_try_compile "$LINENO"; then :
3436  je_cv_cflags_appended=-std=gnu99
3437              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438$as_echo "yes" >&6; }
3439else
3440  je_cv_cflags_appended=
3441              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442$as_echo "no" >&6; }
3443              CFLAGS="${TCFLAGS}"
3444
3445fi
3446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447
3448    if test "x$je_cv_cflags_appended" = "x-std=gnu99" ; then
3449      cat >>confdefs.h <<_ACEOF
3450#define JEMALLOC_HAS_RESTRICT 1
3451_ACEOF
3452
3453    fi
3454
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
3456$as_echo_n "checking whether compiler supports -Wall... " >&6; }
3457TCFLAGS="${CFLAGS}"
3458if test "x${CFLAGS}" = "x" ; then
3459  CFLAGS="-Wall"
3460else
3461  CFLAGS="${CFLAGS} -Wall"
3462fi
3463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465
3466
3467int
3468main ()
3469{
3470
3471    return 0;
3472
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477if ac_fn_c_try_compile "$LINENO"; then :
3478  je_cv_cflags_appended=-Wall
3479              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3480$as_echo "yes" >&6; }
3481else
3482  je_cv_cflags_appended=
3483              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485              CFLAGS="${TCFLAGS}"
3486
3487fi
3488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489
3490
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
3492$as_echo_n "checking whether compiler supports -pipe... " >&6; }
3493TCFLAGS="${CFLAGS}"
3494if test "x${CFLAGS}" = "x" ; then
3495  CFLAGS="-pipe"
3496else
3497  CFLAGS="${CFLAGS} -pipe"
3498fi
3499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500/* end confdefs.h.  */
3501
3502
3503int
3504main ()
3505{
3506
3507    return 0;
3508
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513if ac_fn_c_try_compile "$LINENO"; then :
3514  je_cv_cflags_appended=-pipe
3515              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516$as_echo "yes" >&6; }
3517else
3518  je_cv_cflags_appended=
3519              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520$as_echo "no" >&6; }
3521              CFLAGS="${TCFLAGS}"
3522
3523fi
3524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525
3526
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
3528$as_echo_n "checking whether compiler supports -g3... " >&6; }
3529TCFLAGS="${CFLAGS}"
3530if test "x${CFLAGS}" = "x" ; then
3531  CFLAGS="-g3"
3532else
3533  CFLAGS="${CFLAGS} -g3"
3534fi
3535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536/* end confdefs.h.  */
3537
3538
3539int
3540main ()
3541{
3542
3543    return 0;
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549if ac_fn_c_try_compile "$LINENO"; then :
3550  je_cv_cflags_appended=-g3
3551              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552$as_echo "yes" >&6; }
3553else
3554  je_cv_cflags_appended=
3555              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556$as_echo "no" >&6; }
3557              CFLAGS="${TCFLAGS}"
3558
3559fi
3560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561
3562  elif test "x$je_cv_msvc" = "xyes" ; then
3563    CC="$CC -nologo"
3564
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
3566$as_echo_n "checking whether compiler supports -Zi... " >&6; }
3567TCFLAGS="${CFLAGS}"
3568if test "x${CFLAGS}" = "x" ; then
3569  CFLAGS="-Zi"
3570else
3571  CFLAGS="${CFLAGS} -Zi"
3572fi
3573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575
3576
3577int
3578main ()
3579{
3580
3581    return 0;
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587if ac_fn_c_try_compile "$LINENO"; then :
3588  je_cv_cflags_appended=-Zi
3589              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3590$as_echo "yes" >&6; }
3591else
3592  je_cv_cflags_appended=
3593              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594$as_echo "no" >&6; }
3595              CFLAGS="${TCFLAGS}"
3596
3597fi
3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599
3600
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
3602$as_echo_n "checking whether compiler supports -MT... " >&6; }
3603TCFLAGS="${CFLAGS}"
3604if test "x${CFLAGS}" = "x" ; then
3605  CFLAGS="-MT"
3606else
3607  CFLAGS="${CFLAGS} -MT"
3608fi
3609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610/* end confdefs.h.  */
3611
3612
3613int
3614main ()
3615{
3616
3617    return 0;
3618
3619  ;
3620  return 0;
3621}
3622_ACEOF
3623if ac_fn_c_try_compile "$LINENO"; then :
3624  je_cv_cflags_appended=-MT
3625              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626$as_echo "yes" >&6; }
3627else
3628  je_cv_cflags_appended=
3629              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630$as_echo "no" >&6; }
3631              CFLAGS="${TCFLAGS}"
3632
3633fi
3634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635
3636
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
3638$as_echo_n "checking whether compiler supports -W3... " >&6; }
3639TCFLAGS="${CFLAGS}"
3640if test "x${CFLAGS}" = "x" ; then
3641  CFLAGS="-W3"
3642else
3643  CFLAGS="${CFLAGS} -W3"
3644fi
3645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646/* end confdefs.h.  */
3647
3648
3649int
3650main ()
3651{
3652
3653    return 0;
3654
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659if ac_fn_c_try_compile "$LINENO"; then :
3660  je_cv_cflags_appended=-W3
3661              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3662$as_echo "yes" >&6; }
3663else
3664  je_cv_cflags_appended=
3665              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666$as_echo "no" >&6; }
3667              CFLAGS="${TCFLAGS}"
3668
3669fi
3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671
3672    CPPFLAGS="$CPPFLAGS -I${srcroot}/include/msvc_compat"
3673  fi
3674fi
3675if test "x$EXTRA_CFLAGS" != "x" ; then
3676
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports $EXTRA_CFLAGS" >&5
3678$as_echo_n "checking whether compiler supports $EXTRA_CFLAGS... " >&6; }
3679TCFLAGS="${CFLAGS}"
3680if test "x${CFLAGS}" = "x" ; then
3681  CFLAGS="$EXTRA_CFLAGS"
3682else
3683  CFLAGS="${CFLAGS} $EXTRA_CFLAGS"
3684fi
3685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687
3688
3689int
3690main ()
3691{
3692
3693    return 0;
3694
3695  ;
3696  return 0;
3697}
3698_ACEOF
3699if ac_fn_c_try_compile "$LINENO"; then :
3700  je_cv_cflags_appended=$EXTRA_CFLAGS
3701              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3702$as_echo "yes" >&6; }
3703else
3704  je_cv_cflags_appended=
3705              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706$as_echo "no" >&6; }
3707              CFLAGS="${TCFLAGS}"
3708
3709fi
3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711
3712fi
3713ac_ext=c
3714ac_cpp='$CPP $CPPFLAGS'
3715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3719$as_echo_n "checking how to run the C preprocessor... " >&6; }
3720# On Suns, sometimes $CPP names a directory.
3721if test -n "$CPP" && test -d "$CPP"; then
3722  CPP=
3723fi
3724if test -z "$CPP"; then
3725  if ${ac_cv_prog_CPP+:} false; then :
3726  $as_echo_n "(cached) " >&6
3727else
3728      # Double quotes because CPP needs to be expanded
3729    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3730    do
3731      ac_preproc_ok=false
3732for ac_c_preproc_warn_flag in '' yes
3733do
3734  # Use a header file that comes with gcc, so configuring glibc
3735  # with a fresh cross-compiler works.
3736  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3737  # <limits.h> exists even on freestanding compilers.
3738  # On the NeXT, cc -E runs the code through the compiler's parser,
3739  # not just through cpp. "Syntax error" is here to catch this case.
3740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741/* end confdefs.h.  */
3742#ifdef __STDC__
3743# include <limits.h>
3744#else
3745# include <assert.h>
3746#endif
3747		     Syntax error
3748_ACEOF
3749if ac_fn_c_try_cpp "$LINENO"; then :
3750
3751else
3752  # Broken: fails on valid input.
3753continue
3754fi
3755rm -f conftest.err conftest.i conftest.$ac_ext
3756
3757  # OK, works on sane cases.  Now check whether nonexistent headers
3758  # can be detected and how.
3759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h.  */
3761#include <ac_nonexistent.h>
3762_ACEOF
3763if ac_fn_c_try_cpp "$LINENO"; then :
3764  # Broken: success on invalid input.
3765continue
3766else
3767  # Passes both tests.
3768ac_preproc_ok=:
3769break
3770fi
3771rm -f conftest.err conftest.i conftest.$ac_ext
3772
3773done
3774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3775rm -f conftest.i conftest.err conftest.$ac_ext
3776if $ac_preproc_ok; then :
3777  break
3778fi
3779
3780    done
3781    ac_cv_prog_CPP=$CPP
3782
3783fi
3784  CPP=$ac_cv_prog_CPP
3785else
3786  ac_cv_prog_CPP=$CPP
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3789$as_echo "$CPP" >&6; }
3790ac_preproc_ok=false
3791for ac_c_preproc_warn_flag in '' yes
3792do
3793  # Use a header file that comes with gcc, so configuring glibc
3794  # with a fresh cross-compiler works.
3795  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796  # <limits.h> exists even on freestanding compilers.
3797  # On the NeXT, cc -E runs the code through the compiler's parser,
3798  # not just through cpp. "Syntax error" is here to catch this case.
3799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800/* end confdefs.h.  */
3801#ifdef __STDC__
3802# include <limits.h>
3803#else
3804# include <assert.h>
3805#endif
3806		     Syntax error
3807_ACEOF
3808if ac_fn_c_try_cpp "$LINENO"; then :
3809
3810else
3811  # Broken: fails on valid input.
3812continue
3813fi
3814rm -f conftest.err conftest.i conftest.$ac_ext
3815
3816  # OK, works on sane cases.  Now check whether nonexistent headers
3817  # can be detected and how.
3818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h.  */
3820#include <ac_nonexistent.h>
3821_ACEOF
3822if ac_fn_c_try_cpp "$LINENO"; then :
3823  # Broken: success on invalid input.
3824continue
3825else
3826  # Passes both tests.
3827ac_preproc_ok=:
3828break
3829fi
3830rm -f conftest.err conftest.i conftest.$ac_ext
3831
3832done
3833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834rm -f conftest.i conftest.err conftest.$ac_ext
3835if $ac_preproc_ok; then :
3836
3837else
3838  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3841See \`config.log' for more details" "$LINENO" 5; }
3842fi
3843
3844ac_ext=c
3845ac_cpp='$CPP $CPPFLAGS'
3846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849
3850
3851
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3853$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3854if ${ac_cv_path_GREP+:} false; then :
3855  $as_echo_n "(cached) " >&6
3856else
3857  if test -z "$GREP"; then
3858  ac_path_GREP_found=false
3859  # Loop through the user's path and test for each of PROGNAME-LIST
3860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3862do
3863  IFS=$as_save_IFS
3864  test -z "$as_dir" && as_dir=.
3865    for ac_prog in grep ggrep; do
3866    for ac_exec_ext in '' $ac_executable_extensions; do
3867      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3868      as_fn_executable_p "$ac_path_GREP" || continue
3869# Check for GNU ac_path_GREP and select it if it is found.
3870  # Check for GNU $ac_path_GREP
3871case `"$ac_path_GREP" --version 2>&1` in
3872*GNU*)
3873  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3874*)
3875  ac_count=0
3876  $as_echo_n 0123456789 >"conftest.in"
3877  while :
3878  do
3879    cat "conftest.in" "conftest.in" >"conftest.tmp"
3880    mv "conftest.tmp" "conftest.in"
3881    cp "conftest.in" "conftest.nl"
3882    $as_echo 'GREP' >> "conftest.nl"
3883    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3884    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3885    as_fn_arith $ac_count + 1 && ac_count=$as_val
3886    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3887      # Best one so far, save it but keep looking for a better one
3888      ac_cv_path_GREP="$ac_path_GREP"
3889      ac_path_GREP_max=$ac_count
3890    fi
3891    # 10*(2^10) chars as input seems more than enough
3892    test $ac_count -gt 10 && break
3893  done
3894  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3895esac
3896
3897      $ac_path_GREP_found && break 3
3898    done
3899  done
3900  done
3901IFS=$as_save_IFS
3902  if test -z "$ac_cv_path_GREP"; then
3903    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3904  fi
3905else
3906  ac_cv_path_GREP=$GREP
3907fi
3908
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3911$as_echo "$ac_cv_path_GREP" >&6; }
3912 GREP="$ac_cv_path_GREP"
3913
3914
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3916$as_echo_n "checking for egrep... " >&6; }
3917if ${ac_cv_path_EGREP+:} false; then :
3918  $as_echo_n "(cached) " >&6
3919else
3920  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3921   then ac_cv_path_EGREP="$GREP -E"
3922   else
3923     if test -z "$EGREP"; then
3924  ac_path_EGREP_found=false
3925  # Loop through the user's path and test for each of PROGNAME-LIST
3926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3928do
3929  IFS=$as_save_IFS
3930  test -z "$as_dir" && as_dir=.
3931    for ac_prog in egrep; do
3932    for ac_exec_ext in '' $ac_executable_extensions; do
3933      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3934      as_fn_executable_p "$ac_path_EGREP" || continue
3935# Check for GNU ac_path_EGREP and select it if it is found.
3936  # Check for GNU $ac_path_EGREP
3937case `"$ac_path_EGREP" --version 2>&1` in
3938*GNU*)
3939  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3940*)
3941  ac_count=0
3942  $as_echo_n 0123456789 >"conftest.in"
3943  while :
3944  do
3945    cat "conftest.in" "conftest.in" >"conftest.tmp"
3946    mv "conftest.tmp" "conftest.in"
3947    cp "conftest.in" "conftest.nl"
3948    $as_echo 'EGREP' >> "conftest.nl"
3949    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3950    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3951    as_fn_arith $ac_count + 1 && ac_count=$as_val
3952    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3953      # Best one so far, save it but keep looking for a better one
3954      ac_cv_path_EGREP="$ac_path_EGREP"
3955      ac_path_EGREP_max=$ac_count
3956    fi
3957    # 10*(2^10) chars as input seems more than enough
3958    test $ac_count -gt 10 && break
3959  done
3960  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3961esac
3962
3963      $ac_path_EGREP_found && break 3
3964    done
3965  done
3966  done
3967IFS=$as_save_IFS
3968  if test -z "$ac_cv_path_EGREP"; then
3969    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3970  fi
3971else
3972  ac_cv_path_EGREP=$EGREP
3973fi
3974
3975   fi
3976fi
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3978$as_echo "$ac_cv_path_EGREP" >&6; }
3979 EGREP="$ac_cv_path_EGREP"
3980
3981
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3983$as_echo_n "checking for ANSI C header files... " >&6; }
3984if ${ac_cv_header_stdc+:} false; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988/* end confdefs.h.  */
3989#include <stdlib.h>
3990#include <stdarg.h>
3991#include <string.h>
3992#include <float.h>
3993
3994int
3995main ()
3996{
3997
3998  ;
3999  return 0;
4000}
4001_ACEOF
4002if ac_fn_c_try_compile "$LINENO"; then :
4003  ac_cv_header_stdc=yes
4004else
4005  ac_cv_header_stdc=no
4006fi
4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008
4009if test $ac_cv_header_stdc = yes; then
4010  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013#include <string.h>
4014
4015_ACEOF
4016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4017  $EGREP "memchr" >/dev/null 2>&1; then :
4018
4019else
4020  ac_cv_header_stdc=no
4021fi
4022rm -f conftest*
4023
4024fi
4025
4026if test $ac_cv_header_stdc = yes; then
4027  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h.  */
4030#include <stdlib.h>
4031
4032_ACEOF
4033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4034  $EGREP "free" >/dev/null 2>&1; then :
4035
4036else
4037  ac_cv_header_stdc=no
4038fi
4039rm -f conftest*
4040
4041fi
4042
4043if test $ac_cv_header_stdc = yes; then
4044  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4045  if test "$cross_compiling" = yes; then :
4046  :
4047else
4048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049/* end confdefs.h.  */
4050#include <ctype.h>
4051#include <stdlib.h>
4052#if ((' ' & 0x0FF) == 0x020)
4053# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4054# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4055#else
4056# define ISLOWER(c) \
4057		   (('a' <= (c) && (c) <= 'i') \
4058		     || ('j' <= (c) && (c) <= 'r') \
4059		     || ('s' <= (c) && (c) <= 'z'))
4060# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4061#endif
4062
4063#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4064int
4065main ()
4066{
4067  int i;
4068  for (i = 0; i < 256; i++)
4069    if (XOR (islower (i), ISLOWER (i))
4070	|| toupper (i) != TOUPPER (i))
4071      return 2;
4072  return 0;
4073}
4074_ACEOF
4075if ac_fn_c_try_run "$LINENO"; then :
4076
4077else
4078  ac_cv_header_stdc=no
4079fi
4080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4081  conftest.$ac_objext conftest.beam conftest.$ac_ext
4082fi
4083
4084fi
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4087$as_echo "$ac_cv_header_stdc" >&6; }
4088if test $ac_cv_header_stdc = yes; then
4089
4090$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4091
4092fi
4093
4094# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4095for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4096		  inttypes.h stdint.h unistd.h
4097do :
4098  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4099ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4100"
4101if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4102  cat >>confdefs.h <<_ACEOF
4103#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104_ACEOF
4105
4106fi
4107
4108done
4109
4110
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4112$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4113if ${ac_cv_c_bigendian+:} false; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116  ac_cv_c_bigendian=unknown
4117    # See if we're dealing with a universal compiler.
4118    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119/* end confdefs.h.  */
4120#ifndef __APPLE_CC__
4121	       not a universal capable compiler
4122	     #endif
4123	     typedef int dummy;
4124
4125_ACEOF
4126if ac_fn_c_try_compile "$LINENO"; then :
4127
4128	# Check for potential -arch flags.  It is not universal unless
4129	# there are at least two -arch flags with different values.
4130	ac_arch=
4131	ac_prev=
4132	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4133	 if test -n "$ac_prev"; then
4134	   case $ac_word in
4135	     i?86 | x86_64 | ppc | ppc64)
4136	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4137		 ac_arch=$ac_word
4138	       else
4139		 ac_cv_c_bigendian=universal
4140		 break
4141	       fi
4142	       ;;
4143	   esac
4144	   ac_prev=
4145	 elif test "x$ac_word" = "x-arch"; then
4146	   ac_prev=arch
4147	 fi
4148       done
4149fi
4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151    if test $ac_cv_c_bigendian = unknown; then
4152      # See if sys/param.h defines the BYTE_ORDER macro.
4153      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154/* end confdefs.h.  */
4155#include <sys/types.h>
4156	     #include <sys/param.h>
4157
4158int
4159main ()
4160{
4161#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4162		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4163		     && LITTLE_ENDIAN)
4164	      bogus endian macros
4165	     #endif
4166
4167  ;
4168  return 0;
4169}
4170_ACEOF
4171if ac_fn_c_try_compile "$LINENO"; then :
4172  # It does; now see whether it defined to BIG_ENDIAN or not.
4173	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175#include <sys/types.h>
4176		#include <sys/param.h>
4177
4178int
4179main ()
4180{
4181#if BYTE_ORDER != BIG_ENDIAN
4182		 not big endian
4183		#endif
4184
4185  ;
4186  return 0;
4187}
4188_ACEOF
4189if ac_fn_c_try_compile "$LINENO"; then :
4190  ac_cv_c_bigendian=yes
4191else
4192  ac_cv_c_bigendian=no
4193fi
4194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195fi
4196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197    fi
4198    if test $ac_cv_c_bigendian = unknown; then
4199      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4200      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h.  */
4202#include <limits.h>
4203
4204int
4205main ()
4206{
4207#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4208	      bogus endian macros
4209	     #endif
4210
4211  ;
4212  return 0;
4213}
4214_ACEOF
4215if ac_fn_c_try_compile "$LINENO"; then :
4216  # It does; now see whether it defined to _BIG_ENDIAN or not.
4217	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218/* end confdefs.h.  */
4219#include <limits.h>
4220
4221int
4222main ()
4223{
4224#ifndef _BIG_ENDIAN
4225		 not big endian
4226		#endif
4227
4228  ;
4229  return 0;
4230}
4231_ACEOF
4232if ac_fn_c_try_compile "$LINENO"; then :
4233  ac_cv_c_bigendian=yes
4234else
4235  ac_cv_c_bigendian=no
4236fi
4237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238fi
4239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240    fi
4241    if test $ac_cv_c_bigendian = unknown; then
4242      # Compile a test program.
4243      if test "$cross_compiling" = yes; then :
4244  # Try to guess by grepping values from an object file.
4245	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246/* end confdefs.h.  */
4247short int ascii_mm[] =
4248		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4249		short int ascii_ii[] =
4250		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4251		int use_ascii (int i) {
4252		  return ascii_mm[i] + ascii_ii[i];
4253		}
4254		short int ebcdic_ii[] =
4255		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4256		short int ebcdic_mm[] =
4257		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4258		int use_ebcdic (int i) {
4259		  return ebcdic_mm[i] + ebcdic_ii[i];
4260		}
4261		extern int foo;
4262
4263int
4264main ()
4265{
4266return use_ascii (foo) == use_ebcdic (foo);
4267  ;
4268  return 0;
4269}
4270_ACEOF
4271if ac_fn_c_try_compile "$LINENO"; then :
4272  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4273	      ac_cv_c_bigendian=yes
4274	    fi
4275	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276	      if test "$ac_cv_c_bigendian" = unknown; then
4277		ac_cv_c_bigendian=no
4278	      else
4279		# finding both strings is unlikely to happen, but who knows?
4280		ac_cv_c_bigendian=unknown
4281	      fi
4282	    fi
4283fi
4284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285else
4286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287/* end confdefs.h.  */
4288$ac_includes_default
4289int
4290main ()
4291{
4292
4293	     /* Are we little or big endian?  From Harbison&Steele.  */
4294	     union
4295	     {
4296	       long int l;
4297	       char c[sizeof (long int)];
4298	     } u;
4299	     u.l = 1;
4300	     return u.c[sizeof (long int) - 1] == 1;
4301
4302  ;
4303  return 0;
4304}
4305_ACEOF
4306if ac_fn_c_try_run "$LINENO"; then :
4307  ac_cv_c_bigendian=no
4308else
4309  ac_cv_c_bigendian=yes
4310fi
4311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4312  conftest.$ac_objext conftest.beam conftest.$ac_ext
4313fi
4314
4315    fi
4316fi
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4318$as_echo "$ac_cv_c_bigendian" >&6; }
4319 case $ac_cv_c_bigendian in #(
4320   yes)
4321     ac_cv_big_endian=1;; #(
4322   no)
4323     ac_cv_big_endian=0 ;; #(
4324   universal)
4325
4326$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4327
4328     ;; #(
4329   *)
4330     as_fn_error $? "unknown endianness
4331 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4332 esac
4333
4334if test "x${ac_cv_big_endian}" = "x1" ; then
4335  cat >>confdefs.h <<_ACEOF
4336#define JEMALLOC_BIG_ENDIAN
4337_ACEOF
4338
4339fi
4340
4341# The cast to long int works around a bug in the HP C Compiler
4342# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4343# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4344# This bug is HP SR number 8606223364.
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4346$as_echo_n "checking size of void *... " >&6; }
4347if ${ac_cv_sizeof_void_p+:} false; then :
4348  $as_echo_n "(cached) " >&6
4349else
4350  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
4351
4352else
4353  if test "$ac_cv_type_void_p" = yes; then
4354     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4356as_fn_error 77 "cannot compute sizeof (void *)
4357See \`config.log' for more details" "$LINENO" 5; }
4358   else
4359     ac_cv_sizeof_void_p=0
4360   fi
4361fi
4362
4363fi
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4365$as_echo "$ac_cv_sizeof_void_p" >&6; }
4366
4367
4368
4369cat >>confdefs.h <<_ACEOF
4370#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4371_ACEOF
4372
4373
4374if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
4375  LG_SIZEOF_PTR=3
4376elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
4377  LG_SIZEOF_PTR=2
4378else
4379  as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
4380fi
4381cat >>confdefs.h <<_ACEOF
4382#define LG_SIZEOF_PTR $LG_SIZEOF_PTR
4383_ACEOF
4384
4385
4386# The cast to long int works around a bug in the HP C Compiler
4387# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4388# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4389# This bug is HP SR number 8606223364.
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4391$as_echo_n "checking size of int... " >&6; }
4392if ${ac_cv_sizeof_int+:} false; then :
4393  $as_echo_n "(cached) " >&6
4394else
4395  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
4396
4397else
4398  if test "$ac_cv_type_int" = yes; then
4399     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401as_fn_error 77 "cannot compute sizeof (int)
4402See \`config.log' for more details" "$LINENO" 5; }
4403   else
4404     ac_cv_sizeof_int=0
4405   fi
4406fi
4407
4408fi
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4410$as_echo "$ac_cv_sizeof_int" >&6; }
4411
4412
4413
4414cat >>confdefs.h <<_ACEOF
4415#define SIZEOF_INT $ac_cv_sizeof_int
4416_ACEOF
4417
4418
4419if test "x${ac_cv_sizeof_int}" = "x8" ; then
4420  LG_SIZEOF_INT=3
4421elif test "x${ac_cv_sizeof_int}" = "x4" ; then
4422  LG_SIZEOF_INT=2
4423else
4424  as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
4425fi
4426cat >>confdefs.h <<_ACEOF
4427#define LG_SIZEOF_INT $LG_SIZEOF_INT
4428_ACEOF
4429
4430
4431# The cast to long int works around a bug in the HP C Compiler
4432# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4433# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4434# This bug is HP SR number 8606223364.
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4436$as_echo_n "checking size of long... " >&6; }
4437if ${ac_cv_sizeof_long+:} false; then :
4438  $as_echo_n "(cached) " >&6
4439else
4440  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
4441
4442else
4443  if test "$ac_cv_type_long" = yes; then
4444     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4446as_fn_error 77 "cannot compute sizeof (long)
4447See \`config.log' for more details" "$LINENO" 5; }
4448   else
4449     ac_cv_sizeof_long=0
4450   fi
4451fi
4452
4453fi
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4455$as_echo "$ac_cv_sizeof_long" >&6; }
4456
4457
4458
4459cat >>confdefs.h <<_ACEOF
4460#define SIZEOF_LONG $ac_cv_sizeof_long
4461_ACEOF
4462
4463
4464if test "x${ac_cv_sizeof_long}" = "x8" ; then
4465  LG_SIZEOF_LONG=3
4466elif test "x${ac_cv_sizeof_long}" = "x4" ; then
4467  LG_SIZEOF_LONG=2
4468else
4469  as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
4470fi
4471cat >>confdefs.h <<_ACEOF
4472#define LG_SIZEOF_LONG $LG_SIZEOF_LONG
4473_ACEOF
4474
4475
4476# The cast to long int works around a bug in the HP C Compiler
4477# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4478# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4479# This bug is HP SR number 8606223364.
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
4481$as_echo_n "checking size of intmax_t... " >&6; }
4482if ${ac_cv_sizeof_intmax_t+:} false; then :
4483  $as_echo_n "(cached) " >&6
4484else
4485  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
4486
4487else
4488  if test "$ac_cv_type_intmax_t" = yes; then
4489     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4491as_fn_error 77 "cannot compute sizeof (intmax_t)
4492See \`config.log' for more details" "$LINENO" 5; }
4493   else
4494     ac_cv_sizeof_intmax_t=0
4495   fi
4496fi
4497
4498fi
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
4500$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
4501
4502
4503
4504cat >>confdefs.h <<_ACEOF
4505#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
4506_ACEOF
4507
4508
4509if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
4510  LG_SIZEOF_INTMAX_T=4
4511elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
4512  LG_SIZEOF_INTMAX_T=3
4513elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
4514  LG_SIZEOF_INTMAX_T=2
4515else
4516  as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
4517fi
4518cat >>confdefs.h <<_ACEOF
4519#define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
4520_ACEOF
4521
4522
4523ac_aux_dir=
4524for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4525  if test -f "$ac_dir/install-sh"; then
4526    ac_aux_dir=$ac_dir
4527    ac_install_sh="$ac_aux_dir/install-sh -c"
4528    break
4529  elif test -f "$ac_dir/install.sh"; then
4530    ac_aux_dir=$ac_dir
4531    ac_install_sh="$ac_aux_dir/install.sh -c"
4532    break
4533  elif test -f "$ac_dir/shtool"; then
4534    ac_aux_dir=$ac_dir
4535    ac_install_sh="$ac_aux_dir/shtool install -c"
4536    break
4537  fi
4538done
4539if test -z "$ac_aux_dir"; then
4540  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4541fi
4542
4543# These three variables are undocumented and unsupported,
4544# and are intended to be withdrawn in a future Autoconf release.
4545# They can cause serious problems if a builder's source tree is in a directory
4546# whose full name contains unusual characters.
4547ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4548ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4549ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4550
4551
4552# Make sure we can run config.sub.
4553$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4554  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4555
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4557$as_echo_n "checking build system type... " >&6; }
4558if ${ac_cv_build+:} false; then :
4559  $as_echo_n "(cached) " >&6
4560else
4561  ac_build_alias=$build_alias
4562test "x$ac_build_alias" = x &&
4563  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4564test "x$ac_build_alias" = x &&
4565  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4566ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4567  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4568
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4571$as_echo "$ac_cv_build" >&6; }
4572case $ac_cv_build in
4573*-*-*) ;;
4574*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4575esac
4576build=$ac_cv_build
4577ac_save_IFS=$IFS; IFS='-'
4578set x $ac_cv_build
4579shift
4580build_cpu=$1
4581build_vendor=$2
4582shift; shift
4583# Remember, the first character of IFS is used to create $*,
4584# except with old shells:
4585build_os=$*
4586IFS=$ac_save_IFS
4587case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4588
4589
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4591$as_echo_n "checking host system type... " >&6; }
4592if ${ac_cv_host+:} false; then :
4593  $as_echo_n "(cached) " >&6
4594else
4595  if test "x$host_alias" = x; then
4596  ac_cv_host=$ac_cv_build
4597else
4598  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4599    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4600fi
4601
4602fi
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4604$as_echo "$ac_cv_host" >&6; }
4605case $ac_cv_host in
4606*-*-*) ;;
4607*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4608esac
4609host=$ac_cv_host
4610ac_save_IFS=$IFS; IFS='-'
4611set x $ac_cv_host
4612shift
4613host_cpu=$1
4614host_vendor=$2
4615shift; shift
4616# Remember, the first character of IFS is used to create $*,
4617# except with old shells:
4618host_os=$*
4619IFS=$ac_save_IFS
4620case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4621
4622
4623CPU_SPINWAIT=""
4624case "${host_cpu}" in
4625  i[345]86)
4626	;;
4627  i686|x86_64)
4628
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
4630$as_echo_n "checking whether pause instruction is compilable... " >&6; }
4631if ${je_cv_pause+:} false; then :
4632  $as_echo_n "(cached) " >&6
4633else
4634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635/* end confdefs.h.  */
4636
4637int
4638main ()
4639{
4640__asm__ volatile("pause"); return 0;
4641  ;
4642  return 0;
4643}
4644_ACEOF
4645if ac_fn_c_try_link "$LINENO"; then :
4646  je_cv_pause=yes
4647else
4648  je_cv_pause=no
4649fi
4650rm -f core conftest.err conftest.$ac_objext \
4651    conftest$ac_exeext conftest.$ac_ext
4652fi
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
4654$as_echo "$je_cv_pause" >&6; }
4655
4656	if test "x${je_cv_pause}" = "xyes" ; then
4657	    CPU_SPINWAIT='__asm__ volatile("pause")'
4658	fi
4659
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSE2 intrinsics is compilable" >&5
4661$as_echo_n "checking whether SSE2 intrinsics is compilable... " >&6; }
4662if ${je_cv_sse2+:} false; then :
4663  $as_echo_n "(cached) " >&6
4664else
4665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666/* end confdefs.h.  */
4667
4668#include <emmintrin.h>
4669
4670int
4671main ()
4672{
4673
4674  ;
4675  return 0;
4676}
4677_ACEOF
4678if ac_fn_c_try_link "$LINENO"; then :
4679  je_cv_sse2=yes
4680else
4681  je_cv_sse2=no
4682fi
4683rm -f core conftest.err conftest.$ac_objext \
4684    conftest$ac_exeext conftest.$ac_ext
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sse2" >&5
4687$as_echo "$je_cv_sse2" >&6; }
4688
4689	if test "x${je_cv_sse2}" = "xyes" ; then
4690	  cat >>confdefs.h <<_ACEOF
4691#define HAVE_SSE2
4692_ACEOF
4693
4694	fi
4695	;;
4696  powerpc)
4697	cat >>confdefs.h <<_ACEOF
4698#define HAVE_ALTIVEC
4699_ACEOF
4700
4701	;;
4702  *)
4703	;;
4704esac
4705cat >>confdefs.h <<_ACEOF
4706#define CPU_SPINWAIT $CPU_SPINWAIT
4707_ACEOF
4708
4709
4710LD_PRELOAD_VAR="LD_PRELOAD"
4711so="so"
4712importlib="${so}"
4713o="$ac_objext"
4714a="a"
4715exe="$ac_exeext"
4716libprefix="lib"
4717DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
4718RPATH='-Wl,-rpath,$(1)'
4719SOREV="${so}.${rev}"
4720PIC_CFLAGS='-fPIC -DPIC'
4721CTARGET='-o $@'
4722LDTARGET='-o $@'
4723EXTRA_LDFLAGS=
4724ARFLAGS='crus'
4725AROUT=' $@'
4726CC_MM=1
4727
4728
4729
4730
4731if test -n "$ac_tool_prefix"; then
4732  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4733set dummy ${ac_tool_prefix}ar; ac_word=$2
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735$as_echo_n "checking for $ac_word... " >&6; }
4736if ${ac_cv_prog_AR+:} false; then :
4737  $as_echo_n "(cached) " >&6
4738else
4739  if test -n "$AR"; then
4740  ac_cv_prog_AR="$AR" # Let the user override the test.
4741else
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745  IFS=$as_save_IFS
4746  test -z "$as_dir" && as_dir=.
4747    for ac_exec_ext in '' $ac_executable_extensions; do
4748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749    ac_cv_prog_AR="${ac_tool_prefix}ar"
4750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751    break 2
4752  fi
4753done
4754  done
4755IFS=$as_save_IFS
4756
4757fi
4758fi
4759AR=$ac_cv_prog_AR
4760if test -n "$AR"; then
4761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4762$as_echo "$AR" >&6; }
4763else
4764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765$as_echo "no" >&6; }
4766fi
4767
4768
4769fi
4770if test -z "$ac_cv_prog_AR"; then
4771  ac_ct_AR=$AR
4772  # Extract the first word of "ar", so it can be a program name with args.
4773set dummy ar; ac_word=$2
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775$as_echo_n "checking for $ac_word... " >&6; }
4776if ${ac_cv_prog_ac_ct_AR+:} false; then :
4777  $as_echo_n "(cached) " >&6
4778else
4779  if test -n "$ac_ct_AR"; then
4780  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4781else
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785  IFS=$as_save_IFS
4786  test -z "$as_dir" && as_dir=.
4787    for ac_exec_ext in '' $ac_executable_extensions; do
4788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789    ac_cv_prog_ac_ct_AR="ar"
4790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791    break 2
4792  fi
4793done
4794  done
4795IFS=$as_save_IFS
4796
4797fi
4798fi
4799ac_ct_AR=$ac_cv_prog_ac_ct_AR
4800if test -n "$ac_ct_AR"; then
4801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4802$as_echo "$ac_ct_AR" >&6; }
4803else
4804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805$as_echo "no" >&6; }
4806fi
4807
4808  if test "x$ac_ct_AR" = x; then
4809    AR=":"
4810  else
4811    case $cross_compiling:$ac_tool_warned in
4812yes:)
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4815ac_tool_warned=yes ;;
4816esac
4817    AR=$ac_ct_AR
4818  fi
4819else
4820  AR="$ac_cv_prog_AR"
4821fi
4822
4823
4824default_munmap="1"
4825JEMALLOC_USABLE_SIZE_CONST="const"
4826case "${host}" in
4827  *-*-darwin*)
4828	CFLAGS="$CFLAGS"
4829	abi="macho"
4830	$as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
4831
4832	RPATH=""
4833	LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
4834	so="dylib"
4835	importlib="${so}"
4836	force_tls="0"
4837	DSO_LDFLAGS='-shared -Wl,-dylib_install_name,$(@F)'
4838	SOREV="${rev}.${so}"
4839	sbrk_deprecated="1"
4840	;;
4841  *-*-freebsd*)
4842	CFLAGS="$CFLAGS"
4843	abi="elf"
4844	$as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
4845
4846	force_lazy_lock="1"
4847	;;
4848  *-*-linux*)
4849	CFLAGS="$CFLAGS"
4850	CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
4851	abi="elf"
4852	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
4853
4854	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED  " >>confdefs.h
4855
4856	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
4857
4858	JEMALLOC_USABLE_SIZE_CONST=""
4859	default_munmap="0"
4860	;;
4861  *-*-netbsd*)
4862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
4863$as_echo_n "checking ABI... " >&6; }
4864        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865/* end confdefs.h.  */
4866#ifdef __ELF__
4867/* ELF */
4868#else
4869#error aout
4870#endif
4871
4872int
4873main ()
4874{
4875
4876  ;
4877  return 0;
4878}
4879_ACEOF
4880if ac_fn_c_try_compile "$LINENO"; then :
4881  CFLAGS="$CFLAGS"; abi="elf"
4882else
4883  abi="aout"
4884fi
4885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
4887$as_echo "$abi" >&6; }
4888	$as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
4889
4890	;;
4891  *-*-solaris2*)
4892	CFLAGS="$CFLAGS"
4893	abi="elf"
4894	$as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
4895
4896	RPATH='-Wl,-R,$(1)'
4897		CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
4898	LIBS="$LIBS -lposix4 -lsocket -lnsl"
4899	;;
4900  *-ibm-aix*)
4901	if "$LG_SIZEOF_PTR" = "8"; then
4902	  	  LD_PRELOAD_VAR="LDR_PRELOAD64"
4903	else
4904	  	  LD_PRELOAD_VAR="LDR_PRELOAD"
4905	fi
4906	abi="xcoff"
4907	;;
4908  *-*-mingw*)
4909	abi="pecoff"
4910	force_tls="0"
4911	RPATH=""
4912	so="dll"
4913	if test "x$je_cv_msvc" = "xyes" ; then
4914	  importlib="lib"
4915	  DSO_LDFLAGS="-LD"
4916	  EXTRA_LDFLAGS="-link -DEBUG"
4917	  CTARGET='-Fo$@'
4918	  LDTARGET='-Fe$@'
4919	  AR='lib'
4920	  ARFLAGS='-nologo -out:'
4921	  AROUT='$@'
4922	  CC_MM=
4923        else
4924	  importlib="${so}"
4925	  DSO_LDFLAGS="-shared"
4926	fi
4927	a="lib"
4928	libprefix=""
4929	SOREV="${so}"
4930	PIC_CFLAGS=""
4931	;;
4932  *)
4933	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
4934$as_echo "Unsupported operating system: ${host}" >&6; }
4935	abi="elf"
4936	;;
4937esac
4938cat >>confdefs.h <<_ACEOF
4939#define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
4940_ACEOF
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
4964$as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
4965if ${je_cv_attribute+:} false; then :
4966  $as_echo_n "(cached) " >&6
4967else
4968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969/* end confdefs.h.  */
4970static __attribute__((unused)) void foo(void){}
4971int
4972main ()
4973{
4974
4975  ;
4976  return 0;
4977}
4978_ACEOF
4979if ac_fn_c_try_link "$LINENO"; then :
4980  je_cv_attribute=yes
4981else
4982  je_cv_attribute=no
4983fi
4984rm -f core conftest.err conftest.$ac_objext \
4985    conftest$ac_exeext conftest.$ac_ext
4986fi
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
4988$as_echo "$je_cv_attribute" >&6; }
4989
4990if test "x${je_cv_attribute}" = "xyes" ; then
4991  $as_echo "#define JEMALLOC_HAVE_ATTR  " >>confdefs.h
4992
4993  if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
4994
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
4996$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
4997TCFLAGS="${CFLAGS}"
4998if test "x${CFLAGS}" = "x" ; then
4999  CFLAGS="-fvisibility=hidden"
5000else
5001  CFLAGS="${CFLAGS} -fvisibility=hidden"
5002fi
5003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004/* end confdefs.h.  */
5005
5006
5007int
5008main ()
5009{
5010
5011    return 0;
5012
5013  ;
5014  return 0;
5015}
5016_ACEOF
5017if ac_fn_c_try_compile "$LINENO"; then :
5018  je_cv_cflags_appended=-fvisibility=hidden
5019              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5020$as_echo "yes" >&6; }
5021else
5022  je_cv_cflags_appended=
5023              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024$as_echo "no" >&6; }
5025              CFLAGS="${TCFLAGS}"
5026
5027fi
5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029
5030  fi
5031fi
5032SAVED_CFLAGS="${CFLAGS}"
5033
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
5035$as_echo_n "checking whether compiler supports -Werror... " >&6; }
5036TCFLAGS="${CFLAGS}"
5037if test "x${CFLAGS}" = "x" ; then
5038  CFLAGS="-Werror"
5039else
5040  CFLAGS="${CFLAGS} -Werror"
5041fi
5042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h.  */
5044
5045
5046int
5047main ()
5048{
5049
5050    return 0;
5051
5052  ;
5053  return 0;
5054}
5055_ACEOF
5056if ac_fn_c_try_compile "$LINENO"; then :
5057  je_cv_cflags_appended=-Werror
5058              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5059$as_echo "yes" >&6; }
5060else
5061  je_cv_cflags_appended=
5062              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }
5064              CFLAGS="${TCFLAGS}"
5065
5066fi
5067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068
5069
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
5071$as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
5072if ${je_cv_tls_model+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h.  */
5077
5078int
5079main ()
5080{
5081static __thread int
5082               __attribute__((tls_model("initial-exec"))) foo;
5083               foo = 0;
5084  ;
5085  return 0;
5086}
5087_ACEOF
5088if ac_fn_c_try_link "$LINENO"; then :
5089  je_cv_tls_model=yes
5090else
5091  je_cv_tls_model=no
5092fi
5093rm -f core conftest.err conftest.$ac_objext \
5094    conftest$ac_exeext conftest.$ac_ext
5095fi
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
5097$as_echo "$je_cv_tls_model" >&6; }
5098
5099CFLAGS="${SAVED_CFLAGS}"
5100if test "x${je_cv_tls_model}" = "xyes" ; then
5101  $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
5102
5103else
5104  $as_echo "#define JEMALLOC_TLS_MODEL  " >>confdefs.h
5105
5106fi
5107
5108
5109# Check whether --with-rpath was given.
5110if test "${with_rpath+set}" = set; then :
5111  withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
5112  RPATH_EXTRA=
5113else
5114  RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
5115fi
5116else
5117  RPATH_EXTRA=
5118
5119fi
5120
5121
5122
5123# Check whether --enable-autogen was given.
5124if test "${enable_autogen+set}" = set; then :
5125  enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
5126  enable_autogen="0"
5127else
5128  enable_autogen="1"
5129fi
5130
5131else
5132  enable_autogen="0"
5133
5134fi
5135
5136
5137
5138# Find a good install program.  We prefer a C program (faster),
5139# so one script is as good as another.  But avoid the broken or
5140# incompatible versions:
5141# SysV /etc/install, /usr/sbin/install
5142# SunOS /usr/etc/install
5143# IRIX /sbin/install
5144# AIX /bin/install
5145# AmigaOS /C/install, which installs bootblocks on floppy discs
5146# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5147# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5148# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5149# OS/2's system install, which has a completely different semantic
5150# ./install, which can be erroneously created by make from ./install.sh.
5151# Reject install programs that cannot install multiple files.
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5153$as_echo_n "checking for a BSD-compatible install... " >&6; }
5154if test -z "$INSTALL"; then
5155if ${ac_cv_path_install+:} false; then :
5156  $as_echo_n "(cached) " >&6
5157else
5158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161  IFS=$as_save_IFS
5162  test -z "$as_dir" && as_dir=.
5163    # Account for people who put trailing slashes in PATH elements.
5164case $as_dir/ in #((
5165  ./ | .// | /[cC]/* | \
5166  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5167  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5168  /usr/ucb/* ) ;;
5169  *)
5170    # OSF1 and SCO ODT 3.0 have their own names for install.
5171    # Don't use installbsd from OSF since it installs stuff as root
5172    # by default.
5173    for ac_prog in ginstall scoinst install; do
5174      for ac_exec_ext in '' $ac_executable_extensions; do
5175	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5176	  if test $ac_prog = install &&
5177	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5178	    # AIX install.  It has an incompatible calling convention.
5179	    :
5180	  elif test $ac_prog = install &&
5181	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5182	    # program-specific install script used by HP pwplus--don't use.
5183	    :
5184	  else
5185	    rm -rf conftest.one conftest.two conftest.dir
5186	    echo one > conftest.one
5187	    echo two > conftest.two
5188	    mkdir conftest.dir
5189	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5190	      test -s conftest.one && test -s conftest.two &&
5191	      test -s conftest.dir/conftest.one &&
5192	      test -s conftest.dir/conftest.two
5193	    then
5194	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5195	      break 3
5196	    fi
5197	  fi
5198	fi
5199      done
5200    done
5201    ;;
5202esac
5203
5204  done
5205IFS=$as_save_IFS
5206
5207rm -rf conftest.one conftest.two conftest.dir
5208
5209fi
5210  if test "${ac_cv_path_install+set}" = set; then
5211    INSTALL=$ac_cv_path_install
5212  else
5213    # As a last resort, use the slow shell script.  Don't cache a
5214    # value for INSTALL within a source directory, because that will
5215    # break other packages using the cache if that directory is
5216    # removed, or if the value is a relative name.
5217    INSTALL=$ac_install_sh
5218  fi
5219fi
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5221$as_echo "$INSTALL" >&6; }
5222
5223# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5224# It thinks the first close brace ends the variable substitution.
5225test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5226
5227test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5228
5229test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5230
5231if test -n "$ac_tool_prefix"; then
5232  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5233set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235$as_echo_n "checking for $ac_word... " >&6; }
5236if ${ac_cv_prog_RANLIB+:} false; then :
5237  $as_echo_n "(cached) " >&6
5238else
5239  if test -n "$RANLIB"; then
5240  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5241else
5242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH
5244do
5245  IFS=$as_save_IFS
5246  test -z "$as_dir" && as_dir=.
5247    for ac_exec_ext in '' $ac_executable_extensions; do
5248  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251    break 2
5252  fi
5253done
5254  done
5255IFS=$as_save_IFS
5256
5257fi
5258fi
5259RANLIB=$ac_cv_prog_RANLIB
5260if test -n "$RANLIB"; then
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5262$as_echo "$RANLIB" >&6; }
5263else
5264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265$as_echo "no" >&6; }
5266fi
5267
5268
5269fi
5270if test -z "$ac_cv_prog_RANLIB"; then
5271  ac_ct_RANLIB=$RANLIB
5272  # Extract the first word of "ranlib", so it can be a program name with args.
5273set dummy ranlib; ac_word=$2
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275$as_echo_n "checking for $ac_word... " >&6; }
5276if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5277  $as_echo_n "(cached) " >&6
5278else
5279  if test -n "$ac_ct_RANLIB"; then
5280  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5281else
5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH
5284do
5285  IFS=$as_save_IFS
5286  test -z "$as_dir" && as_dir=.
5287    for ac_exec_ext in '' $ac_executable_extensions; do
5288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289    ac_cv_prog_ac_ct_RANLIB="ranlib"
5290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291    break 2
5292  fi
5293done
5294  done
5295IFS=$as_save_IFS
5296
5297fi
5298fi
5299ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5300if test -n "$ac_ct_RANLIB"; then
5301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5302$as_echo "$ac_ct_RANLIB" >&6; }
5303else
5304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305$as_echo "no" >&6; }
5306fi
5307
5308  if test "x$ac_ct_RANLIB" = x; then
5309    RANLIB=":"
5310  else
5311    case $cross_compiling:$ac_tool_warned in
5312yes:)
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5315ac_tool_warned=yes ;;
5316esac
5317    RANLIB=$ac_ct_RANLIB
5318  fi
5319else
5320  RANLIB="$ac_cv_prog_RANLIB"
5321fi
5322
5323# Extract the first word of "ld", so it can be a program name with args.
5324set dummy ld; ac_word=$2
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326$as_echo_n "checking for $ac_word... " >&6; }
5327if ${ac_cv_path_LD+:} false; then :
5328  $as_echo_n "(cached) " >&6
5329else
5330  case $LD in
5331  [\\/]* | ?:[\\/]*)
5332  ac_cv_path_LD="$LD" # Let the user override the test with a path.
5333  ;;
5334  *)
5335  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338  IFS=$as_save_IFS
5339  test -z "$as_dir" && as_dir=.
5340    for ac_exec_ext in '' $ac_executable_extensions; do
5341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342    ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344    break 2
5345  fi
5346done
5347  done
5348IFS=$as_save_IFS
5349
5350  test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
5351  ;;
5352esac
5353fi
5354LD=$ac_cv_path_LD
5355if test -n "$LD"; then
5356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5357$as_echo "$LD" >&6; }
5358else
5359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360$as_echo "no" >&6; }
5361fi
5362
5363
5364# Extract the first word of "autoconf", so it can be a program name with args.
5365set dummy autoconf; ac_word=$2
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367$as_echo_n "checking for $ac_word... " >&6; }
5368if ${ac_cv_path_AUTOCONF+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  case $AUTOCONF in
5372  [\\/]* | ?:[\\/]*)
5373  ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
5374  ;;
5375  *)
5376  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377for as_dir in $PATH
5378do
5379  IFS=$as_save_IFS
5380  test -z "$as_dir" && as_dir=.
5381    for ac_exec_ext in '' $ac_executable_extensions; do
5382  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383    ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
5384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385    break 2
5386  fi
5387done
5388  done
5389IFS=$as_save_IFS
5390
5391  test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
5392  ;;
5393esac
5394fi
5395AUTOCONF=$ac_cv_path_AUTOCONF
5396if test -n "$AUTOCONF"; then
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5398$as_echo "$AUTOCONF" >&6; }
5399else
5400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401$as_echo "no" >&6; }
5402fi
5403
5404
5405
5406public_syms="malloc_conf malloc_message malloc calloc posix_memalign aligned_alloc realloc free mallocx rallocx xallocx sallocx dallocx nallocx mallctl mallctlnametomib mallctlbymib malloc_stats_print malloc_usable_size"
5407
5408ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
5409if test "x$ac_cv_func_memalign" = xyes; then :
5410  $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN  " >>confdefs.h
5411
5412	       public_syms="${public_syms} memalign"
5413fi
5414
5415ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
5416if test "x$ac_cv_func_valloc" = xyes; then :
5417  $as_echo "#define JEMALLOC_OVERRIDE_VALLOC  " >>confdefs.h
5418
5419	       public_syms="${public_syms} valloc"
5420fi
5421
5422
5423# Check whether --enable-experimental was given.
5424if test "${enable_experimental+set}" = set; then :
5425  enableval=$enable_experimental; if test "x$enable_experimental" = "xno" ; then
5426  enable_experimental="0"
5427else
5428  enable_experimental="1"
5429fi
5430
5431else
5432  enable_experimental="1"
5433
5434fi
5435
5436if test "x$enable_experimental" = "x1" ; then
5437  $as_echo "#define JEMALLOC_EXPERIMENTAL  " >>confdefs.h
5438
5439  public_syms="${public_syms} allocm dallocm nallocm rallocm sallocm"
5440fi
5441
5442
5443GCOV_FLAGS=
5444# Check whether --enable-code-coverage was given.
5445if test "${enable_code_coverage+set}" = set; then :
5446  enableval=$enable_code_coverage; if test "x$enable_code_coverage" = "xno" ; then
5447  enable_code_coverage="0"
5448else
5449  enable_code_coverage="1"
5450fi
5451
5452else
5453  enable_code_coverage="0"
5454
5455fi
5456
5457if test "x$enable_code_coverage" = "x1" ; then
5458  deoptimize="no"
5459  echo "$CFLAGS $EXTRA_CFLAGS" | grep '\-O' >/dev/null || deoptimize="yes"
5460  if test "x${deoptimize}" = "xyes" ; then
5461
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O0" >&5
5463$as_echo_n "checking whether compiler supports -O0... " >&6; }
5464TCFLAGS="${CFLAGS}"
5465if test "x${CFLAGS}" = "x" ; then
5466  CFLAGS="-O0"
5467else
5468  CFLAGS="${CFLAGS} -O0"
5469fi
5470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h.  */
5472
5473
5474int
5475main ()
5476{
5477
5478    return 0;
5479
5480  ;
5481  return 0;
5482}
5483_ACEOF
5484if ac_fn_c_try_compile "$LINENO"; then :
5485  je_cv_cflags_appended=-O0
5486              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5487$as_echo "yes" >&6; }
5488else
5489  je_cv_cflags_appended=
5490              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491$as_echo "no" >&6; }
5492              CFLAGS="${TCFLAGS}"
5493
5494fi
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496
5497  fi
5498
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fprofile-arcs -ftest-coverage" >&5
5500$as_echo_n "checking whether compiler supports -fprofile-arcs -ftest-coverage... " >&6; }
5501TCFLAGS="${CFLAGS}"
5502if test "x${CFLAGS}" = "x" ; then
5503  CFLAGS="-fprofile-arcs -ftest-coverage"
5504else
5505  CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage"
5506fi
5507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508/* end confdefs.h.  */
5509
5510
5511int
5512main ()
5513{
5514
5515    return 0;
5516
5517  ;
5518  return 0;
5519}
5520_ACEOF
5521if ac_fn_c_try_compile "$LINENO"; then :
5522  je_cv_cflags_appended=-fprofile-arcs -ftest-coverage
5523              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5524$as_echo "yes" >&6; }
5525else
5526  je_cv_cflags_appended=
5527              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528$as_echo "no" >&6; }
5529              CFLAGS="${TCFLAGS}"
5530
5531fi
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533
5534  EXTRA_LDFLAGS="$EXTRA_LDFLAGS -fprofile-arcs -ftest-coverage"
5535  $as_echo "#define JEMALLOC_CODE_COVERAGE  " >>confdefs.h
5536
5537fi
5538
5539
5540
5541# Check whether --with-mangling was given.
5542if test "${with_mangling+set}" = set; then :
5543  withval=$with_mangling; mangling_map="$with_mangling"
5544else
5545  mangling_map=""
5546fi
5547
5548
5549
5550# Check whether --with-jemalloc_prefix was given.
5551if test "${with_jemalloc_prefix+set}" = set; then :
5552  withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
5553else
5554  if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
5555  JEMALLOC_PREFIX=""
5556else
5557  JEMALLOC_PREFIX="je_"
5558fi
5559
5560fi
5561
5562if test "x$JEMALLOC_PREFIX" != "x" ; then
5563  JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
5564  cat >>confdefs.h <<_ACEOF
5565#define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
5566_ACEOF
5567
5568  cat >>confdefs.h <<_ACEOF
5569#define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
5570_ACEOF
5571
5572fi
5573
5574
5575# Check whether --with-export was given.
5576if test "${with_export+set}" = set; then :
5577  withval=$with_export; if test "x$with_export" = "xno"; then
5578  $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
5579
5580fi
5581
5582fi
5583
5584
5585
5586# Check whether --with-private_namespace was given.
5587if test "${with_private_namespace+set}" = set; then :
5588  withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
5589else
5590  JEMALLOC_PRIVATE_NAMESPACE="je_"
5591
5592fi
5593
5594cat >>confdefs.h <<_ACEOF
5595#define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
5596_ACEOF
5597
5598private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
5599
5600
5601
5602# Check whether --with-install_suffix was given.
5603if test "${with_install_suffix+set}" = set; then :
5604  withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
5605else
5606  INSTALL_SUFFIX=
5607
5608fi
5609
5610install_suffix="$INSTALL_SUFFIX"
5611
5612
5613je_="je_"
5614
5615
5616cfgoutputs_in="${srcroot}Makefile.in"
5617cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/html.xsl.in"
5618cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/manpages.xsl.in"
5619cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/jemalloc.xml.in"
5620cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/jemalloc_macros.h.in"
5621cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/jemalloc_protos.h.in"
5622cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/internal/jemalloc_internal.h.in"
5623cfgoutputs_in="${cfgoutputs_in} ${srcroot}test/test.sh.in"
5624cfgoutputs_in="${cfgoutputs_in} ${srcroot}test/include/test/jemalloc_test.h.in"
5625
5626cfgoutputs_out="Makefile"
5627cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
5628cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
5629cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
5630cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
5631cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
5632cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_internal.h"
5633cfgoutputs_out="${cfgoutputs_out} test/test.sh"
5634cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
5635
5636cfgoutputs_tup="Makefile"
5637cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
5638cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
5639cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
5640cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
5641cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
5642cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_internal.h"
5643cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
5644cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
5645
5646cfghdrs_in="${srcroot}include/jemalloc/jemalloc_defs.h.in"
5647cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/internal/jemalloc_internal_defs.h.in"
5648cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/internal/private_namespace.sh"
5649cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/internal/private_unnamespace.sh"
5650cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/internal/private_symbols.txt"
5651cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/internal/public_namespace.sh"
5652cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/internal/public_unnamespace.sh"
5653cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/internal/size_classes.sh"
5654cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/jemalloc_rename.sh"
5655cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/jemalloc_mangle.sh"
5656cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/jemalloc.sh"
5657cfghdrs_in="${cfghdrs_in} ${srcroot}test/include/test/jemalloc_test_defs.h.in"
5658
5659cfghdrs_out="include/jemalloc/jemalloc_defs.h"
5660cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
5661cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_namespace.h"
5662cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_unnamespace.h"
5663cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
5664cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
5665cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
5666cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h"
5667cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
5668cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
5669cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
5670cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
5671cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
5672cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
5673
5674cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
5675cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:${srcroot}include/jemalloc/internal/jemalloc_internal_defs.h.in"
5676cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:${srcroot}test/include/test/jemalloc_test_defs.h.in"
5677
5678# Check whether --enable-cc-silence was given.
5679if test "${enable_cc_silence+set}" = set; then :
5680  enableval=$enable_cc_silence; if test "x$enable_cc_silence" = "xno" ; then
5681  enable_cc_silence="0"
5682else
5683  enable_cc_silence="1"
5684fi
5685
5686else
5687  enable_cc_silence="0"
5688
5689fi
5690
5691if test "x$enable_cc_silence" = "x1" ; then
5692  $as_echo "#define JEMALLOC_CC_SILENCE  " >>confdefs.h
5693
5694fi
5695
5696# Check whether --enable-debug was given.
5697if test "${enable_debug+set}" = set; then :
5698  enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
5699  enable_debug="0"
5700else
5701  enable_debug="1"
5702fi
5703
5704else
5705  enable_debug="0"
5706
5707fi
5708
5709if test "x$enable_debug" = "x1" ; then
5710  $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
5711
5712  enable_ivsalloc="1"
5713fi
5714
5715
5716# Check whether --enable-ivsalloc was given.
5717if test "${enable_ivsalloc+set}" = set; then :
5718  enableval=$enable_ivsalloc; if test "x$enable_ivsalloc" = "xno" ; then
5719  enable_ivsalloc="0"
5720else
5721  enable_ivsalloc="1"
5722fi
5723
5724else
5725  enable_ivsalloc="0"
5726
5727fi
5728
5729if test "x$enable_ivsalloc" = "x1" ; then
5730  $as_echo "#define JEMALLOC_IVSALLOC  " >>confdefs.h
5731
5732fi
5733
5734if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then
5735    optimize="no"
5736  echo "$CFLAGS $EXTRA_CFLAGS" | grep '\-O' >/dev/null || optimize="yes"
5737  if test "x${optimize}" = "xyes" ; then
5738    if test "x$GCC" = "xyes" ; then
5739
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
5741$as_echo_n "checking whether compiler supports -O3... " >&6; }
5742TCFLAGS="${CFLAGS}"
5743if test "x${CFLAGS}" = "x" ; then
5744  CFLAGS="-O3"
5745else
5746  CFLAGS="${CFLAGS} -O3"
5747fi
5748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h.  */
5750
5751
5752int
5753main ()
5754{
5755
5756    return 0;
5757
5758  ;
5759  return 0;
5760}
5761_ACEOF
5762if ac_fn_c_try_compile "$LINENO"; then :
5763  je_cv_cflags_appended=-O3
5764              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5765$as_echo "yes" >&6; }
5766else
5767  je_cv_cflags_appended=
5768              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769$as_echo "no" >&6; }
5770              CFLAGS="${TCFLAGS}"
5771
5772fi
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774
5775
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
5777$as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
5778TCFLAGS="${CFLAGS}"
5779if test "x${CFLAGS}" = "x" ; then
5780  CFLAGS="-funroll-loops"
5781else
5782  CFLAGS="${CFLAGS} -funroll-loops"
5783fi
5784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785/* end confdefs.h.  */
5786
5787
5788int
5789main ()
5790{
5791
5792    return 0;
5793
5794  ;
5795  return 0;
5796}
5797_ACEOF
5798if ac_fn_c_try_compile "$LINENO"; then :
5799  je_cv_cflags_appended=-funroll-loops
5800              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5801$as_echo "yes" >&6; }
5802else
5803  je_cv_cflags_appended=
5804              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805$as_echo "no" >&6; }
5806              CFLAGS="${TCFLAGS}"
5807
5808fi
5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810
5811    elif test "x$je_cv_msvc" = "xyes" ; then
5812
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
5814$as_echo_n "checking whether compiler supports -O2... " >&6; }
5815TCFLAGS="${CFLAGS}"
5816if test "x${CFLAGS}" = "x" ; then
5817  CFLAGS="-O2"
5818else
5819  CFLAGS="${CFLAGS} -O2"
5820fi
5821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h.  */
5823
5824
5825int
5826main ()
5827{
5828
5829    return 0;
5830
5831  ;
5832  return 0;
5833}
5834_ACEOF
5835if ac_fn_c_try_compile "$LINENO"; then :
5836  je_cv_cflags_appended=-O2
5837              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5838$as_echo "yes" >&6; }
5839else
5840  je_cv_cflags_appended=
5841              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842$as_echo "no" >&6; }
5843              CFLAGS="${TCFLAGS}"
5844
5845fi
5846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847
5848    else
5849
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
5851$as_echo_n "checking whether compiler supports -O... " >&6; }
5852TCFLAGS="${CFLAGS}"
5853if test "x${CFLAGS}" = "x" ; then
5854  CFLAGS="-O"
5855else
5856  CFLAGS="${CFLAGS} -O"
5857fi
5858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h.  */
5860
5861
5862int
5863main ()
5864{
5865
5866    return 0;
5867
5868  ;
5869  return 0;
5870}
5871_ACEOF
5872if ac_fn_c_try_compile "$LINENO"; then :
5873  je_cv_cflags_appended=-O
5874              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5875$as_echo "yes" >&6; }
5876else
5877  je_cv_cflags_appended=
5878              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879$as_echo "no" >&6; }
5880              CFLAGS="${TCFLAGS}"
5881
5882fi
5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884
5885    fi
5886  fi
5887fi
5888
5889# Check whether --enable-stats was given.
5890if test "${enable_stats+set}" = set; then :
5891  enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
5892  enable_stats="0"
5893else
5894  enable_stats="1"
5895fi
5896
5897else
5898  enable_stats="1"
5899
5900fi
5901
5902if test "x$enable_stats" = "x1" ; then
5903  $as_echo "#define JEMALLOC_STATS  " >>confdefs.h
5904
5905fi
5906
5907
5908# Check whether --enable-prof was given.
5909if test "${enable_prof+set}" = set; then :
5910  enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
5911  enable_prof="0"
5912else
5913  enable_prof="1"
5914fi
5915
5916else
5917  enable_prof="0"
5918
5919fi
5920
5921if test "x$enable_prof" = "x1" ; then
5922  backtrace_method=""
5923else
5924  backtrace_method="N/A"
5925fi
5926
5927# Check whether --enable-prof-libunwind was given.
5928if test "${enable_prof_libunwind+set}" = set; then :
5929  enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
5930  enable_prof_libunwind="0"
5931else
5932  enable_prof_libunwind="1"
5933fi
5934
5935else
5936  enable_prof_libunwind="0"
5937
5938fi
5939
5940
5941# Check whether --with-static_libunwind was given.
5942if test "${with_static_libunwind+set}" = set; then :
5943  withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
5944  LUNWIND="-lunwind"
5945else
5946  if test ! -f "$with_static_libunwind" ; then
5947    as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
5948  fi
5949  LUNWIND="$with_static_libunwind"
5950fi
5951else
5952  LUNWIND="-lunwind"
5953
5954fi
5955
5956if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
5957  for ac_header in libunwind.h
5958do :
5959  ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
5960if test "x$ac_cv_header_libunwind_h" = xyes; then :
5961  cat >>confdefs.h <<_ACEOF
5962#define HAVE_LIBUNWIND_H 1
5963_ACEOF
5964
5965else
5966  enable_prof_libunwind="0"
5967fi
5968
5969done
5970
5971  if test "x$LUNWIND" = "x-lunwind" ; then
5972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
5973$as_echo_n "checking for backtrace in -lunwind... " >&6; }
5974if ${ac_cv_lib_unwind_backtrace+:} false; then :
5975  $as_echo_n "(cached) " >&6
5976else
5977  ac_check_lib_save_LIBS=$LIBS
5978LIBS="-lunwind  $LIBS"
5979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980/* end confdefs.h.  */
5981
5982/* Override any GCC internal prototype to avoid an error.
5983   Use char because int might match the return type of a GCC
5984   builtin and then its argument prototype would still apply.  */
5985#ifdef __cplusplus
5986extern "C"
5987#endif
5988char backtrace ();
5989int
5990main ()
5991{
5992return backtrace ();
5993  ;
5994  return 0;
5995}
5996_ACEOF
5997if ac_fn_c_try_link "$LINENO"; then :
5998  ac_cv_lib_unwind_backtrace=yes
5999else
6000  ac_cv_lib_unwind_backtrace=no
6001fi
6002rm -f core conftest.err conftest.$ac_objext \
6003    conftest$ac_exeext conftest.$ac_ext
6004LIBS=$ac_check_lib_save_LIBS
6005fi
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
6007$as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
6008if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
6009  LIBS="$LIBS $LUNWIND"
6010else
6011  enable_prof_libunwind="0"
6012fi
6013
6014  else
6015    LIBS="$LIBS $LUNWIND"
6016  fi
6017  if test "x${enable_prof_libunwind}" = "x1" ; then
6018    backtrace_method="libunwind"
6019    $as_echo "#define JEMALLOC_PROF_LIBUNWIND  " >>confdefs.h
6020
6021  fi
6022fi
6023
6024# Check whether --enable-prof-libgcc was given.
6025if test "${enable_prof_libgcc+set}" = set; then :
6026  enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
6027  enable_prof_libgcc="0"
6028else
6029  enable_prof_libgcc="1"
6030fi
6031
6032else
6033  enable_prof_libgcc="1"
6034
6035fi
6036
6037if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
6038     -a "x$GCC" = "xyes" ; then
6039  for ac_header in unwind.h
6040do :
6041  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
6042if test "x$ac_cv_header_unwind_h" = xyes; then :
6043  cat >>confdefs.h <<_ACEOF
6044#define HAVE_UNWIND_H 1
6045_ACEOF
6046
6047else
6048  enable_prof_libgcc="0"
6049fi
6050
6051done
6052
6053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
6054$as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
6055if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
6056  $as_echo_n "(cached) " >&6
6057else
6058  ac_check_lib_save_LIBS=$LIBS
6059LIBS="-lgcc  $LIBS"
6060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061/* end confdefs.h.  */
6062
6063/* Override any GCC internal prototype to avoid an error.
6064   Use char because int might match the return type of a GCC
6065   builtin and then its argument prototype would still apply.  */
6066#ifdef __cplusplus
6067extern "C"
6068#endif
6069char _Unwind_Backtrace ();
6070int
6071main ()
6072{
6073return _Unwind_Backtrace ();
6074  ;
6075  return 0;
6076}
6077_ACEOF
6078if ac_fn_c_try_link "$LINENO"; then :
6079  ac_cv_lib_gcc__Unwind_Backtrace=yes
6080else
6081  ac_cv_lib_gcc__Unwind_Backtrace=no
6082fi
6083rm -f core conftest.err conftest.$ac_objext \
6084    conftest$ac_exeext conftest.$ac_ext
6085LIBS=$ac_check_lib_save_LIBS
6086fi
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
6088$as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
6089if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
6090  LIBS="$LIBS -lgcc"
6091else
6092  enable_prof_libgcc="0"
6093fi
6094
6095  if test "x${enable_prof_libgcc}" = "x1" ; then
6096    backtrace_method="libgcc"
6097    $as_echo "#define JEMALLOC_PROF_LIBGCC  " >>confdefs.h
6098
6099  fi
6100else
6101  enable_prof_libgcc="0"
6102fi
6103
6104# Check whether --enable-prof-gcc was given.
6105if test "${enable_prof_gcc+set}" = set; then :
6106  enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
6107  enable_prof_gcc="0"
6108else
6109  enable_prof_gcc="1"
6110fi
6111
6112else
6113  enable_prof_gcc="1"
6114
6115fi
6116
6117if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
6118     -a "x$GCC" = "xyes" ; then
6119
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
6121$as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
6122TCFLAGS="${CFLAGS}"
6123if test "x${CFLAGS}" = "x" ; then
6124  CFLAGS="-fno-omit-frame-pointer"
6125else
6126  CFLAGS="${CFLAGS} -fno-omit-frame-pointer"
6127fi
6128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129/* end confdefs.h.  */
6130
6131
6132int
6133main ()
6134{
6135
6136    return 0;
6137
6138  ;
6139  return 0;
6140}
6141_ACEOF
6142if ac_fn_c_try_compile "$LINENO"; then :
6143  je_cv_cflags_appended=-fno-omit-frame-pointer
6144              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6145$as_echo "yes" >&6; }
6146else
6147  je_cv_cflags_appended=
6148              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149$as_echo "no" >&6; }
6150              CFLAGS="${TCFLAGS}"
6151
6152fi
6153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154
6155  backtrace_method="gcc intrinsics"
6156  $as_echo "#define JEMALLOC_PROF_GCC  " >>confdefs.h
6157
6158else
6159  enable_prof_gcc="0"
6160fi
6161
6162if test "x$backtrace_method" = "x" ; then
6163  backtrace_method="none (disabling profiling)"
6164  enable_prof="0"
6165fi
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
6167$as_echo_n "checking configured backtracing method... " >&6; }
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
6169$as_echo "$backtrace_method" >&6; }
6170if test "x$enable_prof" = "x1" ; then
6171  if test "x${force_tls}" = "x0" ; then
6172    as_fn_error $? "Heap profiling requires TLS" "$LINENO" 5;
6173  fi
6174  force_tls="1"
6175
6176  if test "x$abi" != "xpecoff"; then
6177        LIBS="$LIBS -lm"
6178  fi
6179
6180  $as_echo "#define JEMALLOC_PROF  " >>confdefs.h
6181
6182fi
6183
6184
6185# Check whether --enable-tcache was given.
6186if test "${enable_tcache+set}" = set; then :
6187  enableval=$enable_tcache; if test "x$enable_tcache" = "xno" ; then
6188  enable_tcache="0"
6189else
6190  enable_tcache="1"
6191fi
6192
6193else
6194  enable_tcache="1"
6195
6196fi
6197
6198if test "x$enable_tcache" = "x1" ; then
6199  $as_echo "#define JEMALLOC_TCACHE  " >>confdefs.h
6200
6201fi
6202
6203
6204# Check whether --enable-mremap was given.
6205if test "${enable_mremap+set}" = set; then :
6206  enableval=$enable_mremap; if test "x$enable_mremap" = "xno" ; then
6207  enable_mremap="0"
6208else
6209  enable_mremap="1"
6210fi
6211
6212else
6213  enable_mremap="0"
6214
6215fi
6216
6217if test "x$enable_mremap" = "x1" ; then
6218
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mremap(...MREMAP_FIXED...) is compilable" >&5
6220$as_echo_n "checking whether mremap(...MREMAP_FIXED...) is compilable... " >&6; }
6221if ${je_cv_mremap_fixed+:} false; then :
6222  $as_echo_n "(cached) " >&6
6223else
6224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h.  */
6226
6227#define	_GNU_SOURCE
6228#include <sys/mman.h>
6229
6230int
6231main ()
6232{
6233
6234void *p = mremap((void *)0, 0, 0, MREMAP_MAYMOVE|MREMAP_FIXED, (void *)0);
6235
6236  ;
6237  return 0;
6238}
6239_ACEOF
6240if ac_fn_c_try_link "$LINENO"; then :
6241  je_cv_mremap_fixed=yes
6242else
6243  je_cv_mremap_fixed=no
6244fi
6245rm -f core conftest.err conftest.$ac_objext \
6246    conftest$ac_exeext conftest.$ac_ext
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mremap_fixed" >&5
6249$as_echo "$je_cv_mremap_fixed" >&6; }
6250
6251  if test "x${je_cv_mremap_fixed}" = "xno" ; then
6252    enable_mremap="0"
6253  fi
6254fi
6255if test "x$enable_mremap" = "x1" ; then
6256  $as_echo "#define JEMALLOC_MREMAP  " >>confdefs.h
6257
6258fi
6259
6260
6261# Check whether --enable-munmap was given.
6262if test "${enable_munmap+set}" = set; then :
6263  enableval=$enable_munmap; if test "x$enable_munmap" = "xno" ; then
6264  enable_munmap="0"
6265else
6266  enable_munmap="1"
6267fi
6268
6269else
6270  enable_munmap="${default_munmap}"
6271
6272fi
6273
6274if test "x$enable_munmap" = "x1" ; then
6275  $as_echo "#define JEMALLOC_MUNMAP  " >>confdefs.h
6276
6277fi
6278
6279
6280# Check whether --enable-dss was given.
6281if test "${enable_dss+set}" = set; then :
6282  enableval=$enable_dss; if test "x$enable_dss" = "xno" ; then
6283  enable_dss="0"
6284else
6285  enable_dss="1"
6286fi
6287
6288else
6289  enable_dss="0"
6290
6291fi
6292
6293ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
6294if test "x$ac_cv_func_sbrk" = xyes; then :
6295  have_sbrk="1"
6296else
6297  have_sbrk="0"
6298fi
6299
6300if test "x$have_sbrk" = "x1" ; then
6301  if test "x$sbrk_deprecated" == "x1" ; then
6302    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
6303$as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
6304    enable_dss="0"
6305  else
6306    $as_echo "#define JEMALLOC_HAVE_SBRK  " >>confdefs.h
6307
6308  fi
6309else
6310  enable_dss="0"
6311fi
6312
6313if test "x$enable_dss" = "x1" ; then
6314  $as_echo "#define JEMALLOC_DSS  " >>confdefs.h
6315
6316fi
6317
6318
6319# Check whether --enable-fill was given.
6320if test "${enable_fill+set}" = set; then :
6321  enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
6322  enable_fill="0"
6323else
6324  enable_fill="1"
6325fi
6326
6327else
6328  enable_fill="1"
6329
6330fi
6331
6332if test "x$enable_fill" = "x1" ; then
6333  $as_echo "#define JEMALLOC_FILL  " >>confdefs.h
6334
6335fi
6336
6337
6338# Check whether --enable-utrace was given.
6339if test "${enable_utrace+set}" = set; then :
6340  enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
6341  enable_utrace="0"
6342else
6343  enable_utrace="1"
6344fi
6345
6346else
6347  enable_utrace="0"
6348
6349fi
6350
6351
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
6353$as_echo_n "checking whether utrace(2) is compilable... " >&6; }
6354if ${je_cv_utrace+:} false; then :
6355  $as_echo_n "(cached) " >&6
6356else
6357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358/* end confdefs.h.  */
6359
6360#include <sys/types.h>
6361#include <sys/param.h>
6362#include <sys/time.h>
6363#include <sys/uio.h>
6364#include <sys/ktrace.h>
6365
6366int
6367main ()
6368{
6369
6370	utrace((void *)0, 0);
6371
6372  ;
6373  return 0;
6374}
6375_ACEOF
6376if ac_fn_c_try_link "$LINENO"; then :
6377  je_cv_utrace=yes
6378else
6379  je_cv_utrace=no
6380fi
6381rm -f core conftest.err conftest.$ac_objext \
6382    conftest$ac_exeext conftest.$ac_ext
6383fi
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
6385$as_echo "$je_cv_utrace" >&6; }
6386
6387if test "x${je_cv_utrace}" = "xno" ; then
6388  enable_utrace="0"
6389fi
6390if test "x$enable_utrace" = "x1" ; then
6391  $as_echo "#define JEMALLOC_UTRACE  " >>confdefs.h
6392
6393fi
6394
6395
6396# Check whether --enable-valgrind was given.
6397if test "${enable_valgrind+set}" = set; then :
6398  enableval=$enable_valgrind; if test "x$enable_valgrind" = "xno" ; then
6399  enable_valgrind="0"
6400else
6401  enable_valgrind="1"
6402fi
6403
6404else
6405  enable_valgrind="1"
6406
6407fi
6408
6409if test "x$enable_valgrind" = "x1" ; then
6410
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind is compilable" >&5
6412$as_echo_n "checking whether valgrind is compilable... " >&6; }
6413if ${je_cv_valgrind+:} false; then :
6414  $as_echo_n "(cached) " >&6
6415else
6416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417/* end confdefs.h.  */
6418
6419#include <valgrind/valgrind.h>
6420#include <valgrind/memcheck.h>
6421
6422#if !defined(VALGRIND_RESIZEINPLACE_BLOCK)
6423#  error "Incompatible Valgrind version"
6424#endif
6425
6426int
6427main ()
6428{
6429
6430  ;
6431  return 0;
6432}
6433_ACEOF
6434if ac_fn_c_try_link "$LINENO"; then :
6435  je_cv_valgrind=yes
6436else
6437  je_cv_valgrind=no
6438fi
6439rm -f core conftest.err conftest.$ac_objext \
6440    conftest$ac_exeext conftest.$ac_ext
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_valgrind" >&5
6443$as_echo "$je_cv_valgrind" >&6; }
6444
6445  if test "x${je_cv_valgrind}" = "xno" ; then
6446    enable_valgrind="0"
6447  fi
6448  if test "x$enable_valgrind" = "x1" ; then
6449    $as_echo "#define JEMALLOC_VALGRIND  " >>confdefs.h
6450
6451  fi
6452fi
6453
6454
6455# Check whether --enable-xmalloc was given.
6456if test "${enable_xmalloc+set}" = set; then :
6457  enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
6458  enable_xmalloc="0"
6459else
6460  enable_xmalloc="1"
6461fi
6462
6463else
6464  enable_xmalloc="0"
6465
6466fi
6467
6468if test "x$enable_xmalloc" = "x1" ; then
6469  $as_echo "#define JEMALLOC_XMALLOC  " >>confdefs.h
6470
6471fi
6472
6473
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking STATIC_PAGE_SHIFT" >&5
6475$as_echo_n "checking STATIC_PAGE_SHIFT... " >&6; }
6476if ${je_cv_static_page_shift+:} false; then :
6477  $as_echo_n "(cached) " >&6
6478else
6479  if test "$cross_compiling" = yes; then :
6480  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6482as_fn_error $? "cannot run test program while cross compiling
6483See \`config.log' for more details" "$LINENO" 5; }
6484else
6485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486/* end confdefs.h.  */
6487
6488#include <strings.h>
6489#ifdef _WIN32
6490#include <windows.h>
6491#else
6492#include <unistd.h>
6493#endif
6494#include <stdio.h>
6495
6496int
6497main ()
6498{
6499
6500    int result;
6501    FILE *f;
6502
6503#ifdef _WIN32
6504    SYSTEM_INFO si;
6505    GetSystemInfo(&si);
6506    result = si.dwPageSize;
6507#else
6508    result = sysconf(_SC_PAGESIZE);
6509#endif
6510    if (result == -1) {
6511	return 1;
6512    }
6513    result = ffsl(result) - 1;
6514
6515    f = fopen("conftest.out", "w");
6516    if (f == NULL) {
6517	return 1;
6518    }
6519    fprintf(f, "%d\n", result);
6520    fclose(f);
6521
6522    return 0;
6523
6524  ;
6525  return 0;
6526}
6527_ACEOF
6528if ac_fn_c_try_run "$LINENO"; then :
6529  je_cv_static_page_shift=`cat conftest.out`
6530else
6531  je_cv_static_page_shift=undefined
6532fi
6533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6534  conftest.$ac_objext conftest.beam conftest.$ac_ext
6535fi
6536
6537fi
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_static_page_shift" >&5
6539$as_echo "$je_cv_static_page_shift" >&6; }
6540
6541if test "x$je_cv_static_page_shift" != "xundefined"; then
6542   cat >>confdefs.h <<_ACEOF
6543#define STATIC_PAGE_SHIFT $je_cv_static_page_shift
6544_ACEOF
6545
6546else
6547   as_fn_error $? "cannot determine value for STATIC_PAGE_SHIFT" "$LINENO" 5
6548fi
6549
6550
6551if test -d "${srcroot}.git" ; then
6552  git describe --long --abbrev=40 > ${srcroot}VERSION
6553fi
6554jemalloc_version=`cat ${srcroot}VERSION`
6555jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
6556jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
6557jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
6558jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
6559jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
6560
6561
6562
6563
6564
6565
6566
6567
6568if test "x$abi" != "xpecoff" ; then
6569  for ac_header in pthread.h
6570do :
6571  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6572if test "x$ac_cv_header_pthread_h" = xyes; then :
6573  cat >>confdefs.h <<_ACEOF
6574#define HAVE_PTHREAD_H 1
6575_ACEOF
6576
6577else
6578  as_fn_error $? "pthread.h is missing" "$LINENO" 5
6579fi
6580
6581done
6582
6583      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6584$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6585if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  ac_check_lib_save_LIBS=$LIBS
6589LIBS="-lpthread  $LIBS"
6590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h.  */
6592
6593/* Override any GCC internal prototype to avoid an error.
6594   Use char because int might match the return type of a GCC
6595   builtin and then its argument prototype would still apply.  */
6596#ifdef __cplusplus
6597extern "C"
6598#endif
6599char pthread_create ();
6600int
6601main ()
6602{
6603return pthread_create ();
6604  ;
6605  return 0;
6606}
6607_ACEOF
6608if ac_fn_c_try_link "$LINENO"; then :
6609  ac_cv_lib_pthread_pthread_create=yes
6610else
6611  ac_cv_lib_pthread_pthread_create=no
6612fi
6613rm -f core conftest.err conftest.$ac_objext \
6614    conftest$ac_exeext conftest.$ac_ext
6615LIBS=$ac_check_lib_save_LIBS
6616fi
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6618$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6619if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6620  LIBS="$LIBS -lpthread"
6621else
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
6623$as_echo_n "checking for library containing pthread_create... " >&6; }
6624if ${ac_cv_search_pthread_create+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  ac_func_search_save_LIBS=$LIBS
6628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h.  */
6630
6631/* Override any GCC internal prototype to avoid an error.
6632   Use char because int might match the return type of a GCC
6633   builtin and then its argument prototype would still apply.  */
6634#ifdef __cplusplus
6635extern "C"
6636#endif
6637char pthread_create ();
6638int
6639main ()
6640{
6641return pthread_create ();
6642  ;
6643  return 0;
6644}
6645_ACEOF
6646for ac_lib in '' ; do
6647  if test -z "$ac_lib"; then
6648    ac_res="none required"
6649  else
6650    ac_res=-l$ac_lib
6651    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6652  fi
6653  if ac_fn_c_try_link "$LINENO"; then :
6654  ac_cv_search_pthread_create=$ac_res
6655fi
6656rm -f core conftest.err conftest.$ac_objext \
6657    conftest$ac_exeext
6658  if ${ac_cv_search_pthread_create+:} false; then :
6659  break
6660fi
6661done
6662if ${ac_cv_search_pthread_create+:} false; then :
6663
6664else
6665  ac_cv_search_pthread_create=no
6666fi
6667rm conftest.$ac_ext
6668LIBS=$ac_func_search_save_LIBS
6669fi
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
6671$as_echo "$ac_cv_search_pthread_create" >&6; }
6672ac_res=$ac_cv_search_pthread_create
6673if test "$ac_res" != no; then :
6674  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6675
6676else
6677  as_fn_error $? "libpthread is missing" "$LINENO" 5
6678fi
6679
6680fi
6681
6682fi
6683
6684CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6685
6686ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
6687if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
6688  have__malloc_thread_cleanup="1"
6689else
6690  have__malloc_thread_cleanup="0"
6691
6692fi
6693
6694if test "x$have__malloc_thread_cleanup" = "x1" ; then
6695  $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP  " >>confdefs.h
6696
6697  force_tls="1"
6698fi
6699
6700ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
6701if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
6702  have__pthread_mutex_init_calloc_cb="1"
6703else
6704  have__pthread_mutex_init_calloc_cb="0"
6705
6706fi
6707
6708if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
6709  $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
6710
6711fi
6712
6713# Check whether --enable-lazy_lock was given.
6714if test "${enable_lazy_lock+set}" = set; then :
6715  enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
6716  enable_lazy_lock="0"
6717else
6718  enable_lazy_lock="1"
6719fi
6720
6721else
6722  enable_lazy_lock="0"
6723
6724fi
6725
6726if test "x$enable_lazy_lock" = "x0" -a "x${force_lazy_lock}" = "x1" ; then
6727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
6728$as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
6729  enable_lazy_lock="1"
6730fi
6731if test "x$enable_lazy_lock" = "x1" ; then
6732  if test "x$abi" != "xpecoff" ; then
6733    for ac_header in dlfcn.h
6734do :
6735  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6736if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6737  cat >>confdefs.h <<_ACEOF
6738#define HAVE_DLFCN_H 1
6739_ACEOF
6740
6741else
6742  as_fn_error $? "dlfcn.h is missing" "$LINENO" 5
6743fi
6744
6745done
6746
6747    ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
6748if test "x$ac_cv_func_dlsym" = xyes; then :
6749
6750else
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
6752$as_echo_n "checking for dlsym in -ldl... " >&6; }
6753if ${ac_cv_lib_dl_dlsym+:} false; then :
6754  $as_echo_n "(cached) " >&6
6755else
6756  ac_check_lib_save_LIBS=$LIBS
6757LIBS="-ldl  $LIBS"
6758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759/* end confdefs.h.  */
6760
6761/* Override any GCC internal prototype to avoid an error.
6762   Use char because int might match the return type of a GCC
6763   builtin and then its argument prototype would still apply.  */
6764#ifdef __cplusplus
6765extern "C"
6766#endif
6767char dlsym ();
6768int
6769main ()
6770{
6771return dlsym ();
6772  ;
6773  return 0;
6774}
6775_ACEOF
6776if ac_fn_c_try_link "$LINENO"; then :
6777  ac_cv_lib_dl_dlsym=yes
6778else
6779  ac_cv_lib_dl_dlsym=no
6780fi
6781rm -f core conftest.err conftest.$ac_objext \
6782    conftest$ac_exeext conftest.$ac_ext
6783LIBS=$ac_check_lib_save_LIBS
6784fi
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
6786$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
6787if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
6788  LIBS="$LIBS -ldl"
6789else
6790  as_fn_error $? "libdl is missing" "$LINENO" 5
6791fi
6792
6793
6794fi
6795
6796  fi
6797  $as_echo "#define JEMALLOC_LAZY_LOCK  " >>confdefs.h
6798
6799fi
6800
6801
6802# Check whether --enable-tls was given.
6803if test "${enable_tls+set}" = set; then :
6804  enableval=$enable_tls; if test "x$enable_tls" = "xno" ; then
6805  enable_tls="0"
6806else
6807  enable_tls="1"
6808fi
6809
6810else
6811  enable_tls="1"
6812
6813fi
6814
6815if test "x${enable_tls}" = "x0" -a "x${force_tls}" = "x1" ; then
6816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing TLS to avoid allocator/threading bootstrap issues" >&5
6817$as_echo "Forcing TLS to avoid allocator/threading bootstrap issues" >&6; }
6818  enable_tls="1"
6819fi
6820if test "x${enable_tls}" = "x1" -a "x${force_tls}" = "x0" ; then
6821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no TLS to avoid allocator/threading bootstrap issues" >&5
6822$as_echo "Forcing no TLS to avoid allocator/threading bootstrap issues" >&6; }
6823  enable_tls="0"
6824fi
6825if test "x${enable_tls}" = "x1" ; then
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
6827$as_echo_n "checking for TLS... " >&6; }
6828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830
6831    __thread int x;
6832
6833int
6834main ()
6835{
6836
6837    x = 42;
6838
6839    return 0;
6840
6841  ;
6842  return 0;
6843}
6844_ACEOF
6845if ac_fn_c_try_compile "$LINENO"; then :
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6847$as_echo "yes" >&6; }
6848else
6849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850$as_echo "no" >&6; }
6851              enable_tls="0"
6852fi
6853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854fi
6855
6856if test "x${enable_tls}" = "x1" ; then
6857  cat >>confdefs.h <<_ACEOF
6858#define JEMALLOC_TLS
6859_ACEOF
6860
6861elif test "x${force_tls}" = "x1" ; then
6862  as_fn_error $? "Failed to configure TLS, which is mandatory for correct function" "$LINENO" 5
6863fi
6864
6865
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
6867$as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
6868if ${je_cv_function_ffsl+:} false; then :
6869  $as_echo_n "(cached) " >&6
6870else
6871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872/* end confdefs.h.  */
6873
6874#include <stdio.h>
6875#include <strings.h>
6876#include <string.h>
6877
6878int
6879main ()
6880{
6881
6882	{
6883		int rv = ffsl(0x08);
6884		printf("%d\n", rv);
6885	}
6886
6887  ;
6888  return 0;
6889}
6890_ACEOF
6891if ac_fn_c_try_link "$LINENO"; then :
6892  je_cv_function_ffsl=yes
6893else
6894  je_cv_function_ffsl=no
6895fi
6896rm -f core conftest.err conftest.$ac_objext \
6897    conftest$ac_exeext conftest.$ac_ext
6898fi
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
6900$as_echo "$je_cv_function_ffsl" >&6; }
6901
6902if test "x${je_cv_function_ffsl}" != "xyes" ; then
6903   as_fn_error $? "Cannot build without ffsl(3)" "$LINENO" 5
6904fi
6905
6906
6907
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic(9) is compilable" >&5
6909$as_echo_n "checking whether atomic(9) is compilable... " >&6; }
6910if ${je_cv_atomic9+:} false; then :
6911  $as_echo_n "(cached) " >&6
6912else
6913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h.  */
6915
6916#include <sys/types.h>
6917#include <machine/atomic.h>
6918#include <inttypes.h>
6919
6920int
6921main ()
6922{
6923
6924	{
6925		uint32_t x32 = 0;
6926		volatile uint32_t *x32p = &x32;
6927		atomic_fetchadd_32(x32p, 1);
6928	}
6929	{
6930		unsigned long xlong = 0;
6931		volatile unsigned long *xlongp = &xlong;
6932		atomic_fetchadd_long(xlongp, 1);
6933	}
6934
6935  ;
6936  return 0;
6937}
6938_ACEOF
6939if ac_fn_c_try_link "$LINENO"; then :
6940  je_cv_atomic9=yes
6941else
6942  je_cv_atomic9=no
6943fi
6944rm -f core conftest.err conftest.$ac_objext \
6945    conftest$ac_exeext conftest.$ac_ext
6946fi
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_atomic9" >&5
6948$as_echo "$je_cv_atomic9" >&6; }
6949
6950if test "x${je_cv_atomic9}" = "xyes" ; then
6951  $as_echo "#define JEMALLOC_ATOMIC9 1" >>confdefs.h
6952
6953fi
6954
6955
6956
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
6958$as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
6959if ${je_cv_osatomic+:} false; then :
6960  $as_echo_n "(cached) " >&6
6961else
6962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964
6965#include <libkern/OSAtomic.h>
6966#include <inttypes.h>
6967
6968int
6969main ()
6970{
6971
6972	{
6973		int32_t x32 = 0;
6974		volatile int32_t *x32p = &x32;
6975		OSAtomicAdd32(1, x32p);
6976	}
6977	{
6978		int64_t x64 = 0;
6979		volatile int64_t *x64p = &x64;
6980		OSAtomicAdd64(1, x64p);
6981	}
6982
6983  ;
6984  return 0;
6985}
6986_ACEOF
6987if ac_fn_c_try_link "$LINENO"; then :
6988  je_cv_osatomic=yes
6989else
6990  je_cv_osatomic=no
6991fi
6992rm -f core conftest.err conftest.$ac_objext \
6993    conftest$ac_exeext conftest.$ac_ext
6994fi
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
6996$as_echo "$je_cv_osatomic" >&6; }
6997
6998if test "x${je_cv_osatomic}" = "xyes" ; then
6999  $as_echo "#define JEMALLOC_OSATOMIC  " >>confdefs.h
7000
7001fi
7002
7003
7004
7005
7006if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then
7007
7008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5
7009$as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; }
7010if ${je_cv_sync_compare_and_swap_4+:} false; then :
7011  $as_echo_n "(cached) " >&6
7012else
7013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014/* end confdefs.h.  */
7015
7016                                                 #include <stdint.h>
7017
7018int
7019main ()
7020{
7021
7022                                                 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
7023                                                 {
7024                                                    uint32_t x32 = 0;
7025                                                    __sync_add_and_fetch(&x32, 42);
7026                                                    __sync_sub_and_fetch(&x32, 1);
7027                                                 }
7028                                                 #else
7029                                                 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force
7030                                                 #endif
7031
7032  ;
7033  return 0;
7034}
7035_ACEOF
7036if ac_fn_c_try_link "$LINENO"; then :
7037  je_cv_sync_compare_and_swap_4=yes
7038else
7039  je_cv_sync_compare_and_swap_4=no
7040fi
7041rm -f core conftest.err conftest.$ac_objext \
7042    conftest$ac_exeext conftest.$ac_ext
7043fi
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5
7045$as_echo "$je_cv_sync_compare_and_swap_4" >&6; }
7046
7047  if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then
7048    $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4  " >>confdefs.h
7049
7050  fi
7051
7052
7053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5
7054$as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; }
7055if ${je_cv_sync_compare_and_swap_8+:} false; then :
7056  $as_echo_n "(cached) " >&6
7057else
7058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h.  */
7060
7061                                                 #include <stdint.h>
7062
7063int
7064main ()
7065{
7066
7067                                                 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
7068                                                 {
7069                                                    uint64_t x64 = 0;
7070                                                    __sync_add_and_fetch(&x64, 42);
7071                                                    __sync_sub_and_fetch(&x64, 1);
7072                                                 }
7073                                                 #else
7074                                                 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force
7075                                                 #endif
7076
7077  ;
7078  return 0;
7079}
7080_ACEOF
7081if ac_fn_c_try_link "$LINENO"; then :
7082  je_cv_sync_compare_and_swap_8=yes
7083else
7084  je_cv_sync_compare_and_swap_8=no
7085fi
7086rm -f core conftest.err conftest.$ac_objext \
7087    conftest$ac_exeext conftest.$ac_ext
7088fi
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5
7090$as_echo "$je_cv_sync_compare_and_swap_8" >&6; }
7091
7092  if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then
7093    $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8  " >>confdefs.h
7094
7095  fi
7096
7097fi
7098
7099
7100
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
7102$as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
7103if ${je_cv_osspin+:} false; then :
7104  $as_echo_n "(cached) " >&6
7105else
7106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107/* end confdefs.h.  */
7108
7109#include <libkern/OSAtomic.h>
7110#include <inttypes.h>
7111
7112int
7113main ()
7114{
7115
7116	OSSpinLock lock = 0;
7117	OSSpinLockLock(&lock);
7118	OSSpinLockUnlock(&lock);
7119
7120  ;
7121  return 0;
7122}
7123_ACEOF
7124if ac_fn_c_try_link "$LINENO"; then :
7125  je_cv_osspin=yes
7126else
7127  je_cv_osspin=no
7128fi
7129rm -f core conftest.err conftest.$ac_objext \
7130    conftest$ac_exeext conftest.$ac_ext
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5
7133$as_echo "$je_cv_osspin" >&6; }
7134
7135if test "x${je_cv_osspin}" = "xyes" ; then
7136  $as_echo "#define JEMALLOC_OSSPIN  " >>confdefs.h
7137
7138fi
7139
7140
7141# Check whether --enable-zone-allocator was given.
7142if test "${enable_zone_allocator+set}" = set; then :
7143  enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
7144  enable_zone_allocator="0"
7145else
7146  enable_zone_allocator="1"
7147fi
7148
7149else
7150  if test "x${abi}" = "xmacho"; then
7151  enable_zone_allocator="1"
7152fi
7153
7154
7155fi
7156
7157
7158
7159if test "x${enable_zone_allocator}" = "x1" ; then
7160  if test "x${abi}" != "xmacho"; then
7161    as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
7162  fi
7163  $as_echo "#define JEMALLOC_IVSALLOC  " >>confdefs.h
7164
7165  $as_echo "#define JEMALLOC_ZONE  " >>confdefs.h
7166
7167
7168        { $as_echo "$as_me:${as_lineno-$LINENO}: checking malloc zone version" >&5
7169$as_echo_n "checking malloc zone version... " >&6; }
7170
7171
7172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h.  */
7174#include <malloc/malloc.h>
7175int
7176main ()
7177{
7178static foo[sizeof(malloc_zone_t) == sizeof(void *) * 14 ? 1 : -1]
7179
7180  ;
7181  return 0;
7182}
7183_ACEOF
7184if ac_fn_c_try_compile "$LINENO"; then :
7185  JEMALLOC_ZONE_VERSION=3
7186else
7187
7188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189/* end confdefs.h.  */
7190#include <malloc/malloc.h>
7191int
7192main ()
7193{
7194static foo[sizeof(malloc_zone_t) == sizeof(void *) * 15 ? 1 : -1]
7195
7196  ;
7197  return 0;
7198}
7199_ACEOF
7200if ac_fn_c_try_compile "$LINENO"; then :
7201  JEMALLOC_ZONE_VERSION=5
7202else
7203
7204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h.  */
7206#include <malloc/malloc.h>
7207int
7208main ()
7209{
7210static foo[sizeof(malloc_zone_t) == sizeof(void *) * 16 ? 1 : -1]
7211
7212  ;
7213  return 0;
7214}
7215_ACEOF
7216if ac_fn_c_try_compile "$LINENO"; then :
7217
7218    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219/* end confdefs.h.  */
7220#include <malloc/malloc.h>
7221int
7222main ()
7223{
7224static foo[sizeof(malloc_introspection_t) == sizeof(void *) * 9 ? 1 : -1]
7225
7226  ;
7227  return 0;
7228}
7229_ACEOF
7230if ac_fn_c_try_compile "$LINENO"; then :
7231  JEMALLOC_ZONE_VERSION=6
7232else
7233
7234    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236#include <malloc/malloc.h>
7237int
7238main ()
7239{
7240static foo[sizeof(malloc_introspection_t) == sizeof(void *) * 13 ? 1 : -1]
7241
7242  ;
7243  return 0;
7244}
7245_ACEOF
7246if ac_fn_c_try_compile "$LINENO"; then :
7247  JEMALLOC_ZONE_VERSION=7
7248else
7249  JEMALLOC_ZONE_VERSION=
7250
7251fi
7252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253fi
7254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255else
7256
7257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h.  */
7259#include <malloc/malloc.h>
7260int
7261main ()
7262{
7263static foo[sizeof(malloc_zone_t) == sizeof(void *) * 17 ? 1 : -1]
7264
7265  ;
7266  return 0;
7267}
7268_ACEOF
7269if ac_fn_c_try_compile "$LINENO"; then :
7270  JEMALLOC_ZONE_VERSION=8
7271else
7272
7273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274/* end confdefs.h.  */
7275#include <malloc/malloc.h>
7276int
7277main ()
7278{
7279static foo[sizeof(malloc_zone_t) > sizeof(void *) * 17 ? 1 : -1]
7280
7281  ;
7282  return 0;
7283}
7284_ACEOF
7285if ac_fn_c_try_compile "$LINENO"; then :
7286  JEMALLOC_ZONE_VERSION=9
7287else
7288  JEMALLOC_ZONE_VERSION=
7289
7290fi
7291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292fi
7293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294fi
7295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296fi
7297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298fi
7299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300  if test "x${JEMALLOC_ZONE_VERSION}" = "x"; then
7301    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7302$as_echo "unsupported" >&6; }
7303    as_fn_error $? "Unsupported malloc zone version" "$LINENO" 5
7304  fi
7305  if test "${JEMALLOC_ZONE_VERSION}" = 9; then
7306    JEMALLOC_ZONE_VERSION=8
7307    { $as_echo "$as_me:${as_lineno-$LINENO}: result: > 8" >&5
7308$as_echo "> 8" >&6; }
7309  else
7310    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JEMALLOC_ZONE_VERSION" >&5
7311$as_echo "$JEMALLOC_ZONE_VERSION" >&6; }
7312  fi
7313  cat >>confdefs.h <<_ACEOF
7314#define JEMALLOC_ZONE_VERSION $JEMALLOC_ZONE_VERSION
7315_ACEOF
7316
7317fi
7318
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7320$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7321if ${ac_cv_header_stdbool_h+:} false; then :
7322  $as_echo_n "(cached) " >&6
7323else
7324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h.  */
7326
7327             #include <stdbool.h>
7328             #ifndef bool
7329              "error: bool is not defined"
7330             #endif
7331             #ifndef false
7332              "error: false is not defined"
7333             #endif
7334             #if false
7335              "error: false is not 0"
7336             #endif
7337             #ifndef true
7338              "error: true is not defined"
7339             #endif
7340             #if true != 1
7341              "error: true is not 1"
7342             #endif
7343             #ifndef __bool_true_false_are_defined
7344              "error: __bool_true_false_are_defined is not defined"
7345             #endif
7346
7347             struct s { _Bool s: 1; _Bool t; } s;
7348
7349             char a[true == 1 ? 1 : -1];
7350             char b[false == 0 ? 1 : -1];
7351             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7352             char d[(bool) 0.5 == true ? 1 : -1];
7353             /* See body of main program for 'e'.  */
7354             char f[(_Bool) 0.0 == false ? 1 : -1];
7355             char g[true];
7356             char h[sizeof (_Bool)];
7357             char i[sizeof s.t];
7358             enum { j = false, k = true, l = false * true, m = true * 256 };
7359             /* The following fails for
7360                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7361             _Bool n[m];
7362             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7363             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7364             /* Catch a bug in an HP-UX C compiler.  See
7365                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7366                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7367              */
7368             _Bool q = true;
7369             _Bool *pq = &q;
7370
7371int
7372main ()
7373{
7374
7375             bool e = &s;
7376             *pq |= q;
7377             *pq |= ! q;
7378             /* Refer to every declared value, to avoid compiler optimizations.  */
7379             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7380                     + !m + !n + !o + !p + !q + !pq);
7381
7382  ;
7383  return 0;
7384}
7385_ACEOF
7386if ac_fn_c_try_compile "$LINENO"; then :
7387  ac_cv_header_stdbool_h=yes
7388else
7389  ac_cv_header_stdbool_h=no
7390fi
7391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392fi
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7394$as_echo "$ac_cv_header_stdbool_h" >&6; }
7395   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7396if test "x$ac_cv_type__Bool" = xyes; then :
7397
7398cat >>confdefs.h <<_ACEOF
7399#define HAVE__BOOL 1
7400_ACEOF
7401
7402
7403fi
7404
7405
7406if test $ac_cv_header_stdbool_h = yes; then
7407
7408$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7409
7410fi
7411
7412
7413
7414ac_config_commands="$ac_config_commands include/jemalloc/internal/private_namespace.h"
7415
7416ac_config_commands="$ac_config_commands include/jemalloc/internal/private_unnamespace.h"
7417
7418ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
7419
7420ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
7421
7422ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
7423
7424ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h"
7425
7426ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
7427
7428ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
7429
7430ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
7431
7432ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
7433
7434ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
7435
7436
7437
7438
7439ac_config_headers="$ac_config_headers $cfghdrs_tup"
7440
7441
7442
7443ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc.sh"
7444
7445
7446
7447cat >confcache <<\_ACEOF
7448# This file is a shell script that caches the results of configure
7449# tests run on this system so they can be shared between configure
7450# scripts and configure runs, see configure's option --config-cache.
7451# It is not useful on other systems.  If it contains results you don't
7452# want to keep, you may remove or edit it.
7453#
7454# config.status only pays attention to the cache file if you give it
7455# the --recheck option to rerun configure.
7456#
7457# `ac_cv_env_foo' variables (set or unset) will be overridden when
7458# loading this file, other *unset* `ac_cv_foo' will be assigned the
7459# following values.
7460
7461_ACEOF
7462
7463# The following way of writing the cache mishandles newlines in values,
7464# but we know of no workaround that is simple, portable, and efficient.
7465# So, we kill variables containing newlines.
7466# Ultrix sh set writes to stderr and can't be redirected directly,
7467# and sets the high bit in the cache file unless we assign to the vars.
7468(
7469  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7470    eval ac_val=\$$ac_var
7471    case $ac_val in #(
7472    *${as_nl}*)
7473      case $ac_var in #(
7474      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7475$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7476      esac
7477      case $ac_var in #(
7478      _ | IFS | as_nl) ;; #(
7479      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7480      *) { eval $ac_var=; unset $ac_var;} ;;
7481      esac ;;
7482    esac
7483  done
7484
7485  (set) 2>&1 |
7486    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7487    *${as_nl}ac_space=\ *)
7488      # `set' does not quote correctly, so add quotes: double-quote
7489      # substitution turns \\\\ into \\, and sed turns \\ into \.
7490      sed -n \
7491	"s/'/'\\\\''/g;
7492	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7493      ;; #(
7494    *)
7495      # `set' quotes correctly as required by POSIX, so do not add quotes.
7496      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7497      ;;
7498    esac |
7499    sort
7500) |
7501  sed '
7502     /^ac_cv_env_/b end
7503     t clear
7504     :clear
7505     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7506     t end
7507     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7508     :end' >>confcache
7509if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7510  if test -w "$cache_file"; then
7511    if test "x$cache_file" != "x/dev/null"; then
7512      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7513$as_echo "$as_me: updating cache $cache_file" >&6;}
7514      if test ! -f "$cache_file" || test -h "$cache_file"; then
7515	cat confcache >"$cache_file"
7516      else
7517        case $cache_file in #(
7518        */* | ?:*)
7519	  mv -f confcache "$cache_file"$$ &&
7520	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7521        *)
7522	  mv -f confcache "$cache_file" ;;
7523	esac
7524      fi
7525    fi
7526  else
7527    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7528$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7529  fi
7530fi
7531rm -f confcache
7532
7533test "x$prefix" = xNONE && prefix=$ac_default_prefix
7534# Let make expand exec_prefix.
7535test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7536
7537DEFS=-DHAVE_CONFIG_H
7538
7539ac_libobjs=
7540ac_ltlibobjs=
7541U=
7542for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7543  # 1. Remove the extension, and $U if already installed.
7544  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7545  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7546  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7547  #    will be set to the directory where LIBOBJS objects are built.
7548  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7549  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7550done
7551LIBOBJS=$ac_libobjs
7552
7553LTLIBOBJS=$ac_ltlibobjs
7554
7555
7556
7557
7558: "${CONFIG_STATUS=./config.status}"
7559ac_write_fail=0
7560ac_clean_files_save=$ac_clean_files
7561ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7563$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7564as_write_fail=0
7565cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7566#! $SHELL
7567# Generated by $as_me.
7568# Run this file to recreate the current configuration.
7569# Compiler output produced by configure, useful for debugging
7570# configure, is in config.log if it exists.
7571
7572debug=false
7573ac_cs_recheck=false
7574ac_cs_silent=false
7575
7576SHELL=\${CONFIG_SHELL-$SHELL}
7577export SHELL
7578_ASEOF
7579cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7580## -------------------- ##
7581## M4sh Initialization. ##
7582## -------------------- ##
7583
7584# Be more Bourne compatible
7585DUALCASE=1; export DUALCASE # for MKS sh
7586if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7587  emulate sh
7588  NULLCMD=:
7589  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7590  # is contrary to our usage.  Disable this feature.
7591  alias -g '${1+"$@"}'='"$@"'
7592  setopt NO_GLOB_SUBST
7593else
7594  case `(set -o) 2>/dev/null` in #(
7595  *posix*) :
7596    set -o posix ;; #(
7597  *) :
7598     ;;
7599esac
7600fi
7601
7602
7603as_nl='
7604'
7605export as_nl
7606# Printing a long string crashes Solaris 7 /usr/bin/printf.
7607as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7608as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7609as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7610# Prefer a ksh shell builtin over an external printf program on Solaris,
7611# but without wasting forks for bash or zsh.
7612if test -z "$BASH_VERSION$ZSH_VERSION" \
7613    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7614  as_echo='print -r --'
7615  as_echo_n='print -rn --'
7616elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7617  as_echo='printf %s\n'
7618  as_echo_n='printf %s'
7619else
7620  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7621    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7622    as_echo_n='/usr/ucb/echo -n'
7623  else
7624    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7625    as_echo_n_body='eval
7626      arg=$1;
7627      case $arg in #(
7628      *"$as_nl"*)
7629	expr "X$arg" : "X\\(.*\\)$as_nl";
7630	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7631      esac;
7632      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7633    '
7634    export as_echo_n_body
7635    as_echo_n='sh -c $as_echo_n_body as_echo'
7636  fi
7637  export as_echo_body
7638  as_echo='sh -c $as_echo_body as_echo'
7639fi
7640
7641# The user is always right.
7642if test "${PATH_SEPARATOR+set}" != set; then
7643  PATH_SEPARATOR=:
7644  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7645    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7646      PATH_SEPARATOR=';'
7647  }
7648fi
7649
7650
7651# IFS
7652# We need space, tab and new line, in precisely that order.  Quoting is
7653# there to prevent editors from complaining about space-tab.
7654# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7655# splitting by setting IFS to empty value.)
7656IFS=" ""	$as_nl"
7657
7658# Find who we are.  Look in the path if we contain no directory separator.
7659as_myself=
7660case $0 in #((
7661  *[\\/]* ) as_myself=$0 ;;
7662  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663for as_dir in $PATH
7664do
7665  IFS=$as_save_IFS
7666  test -z "$as_dir" && as_dir=.
7667    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7668  done
7669IFS=$as_save_IFS
7670
7671     ;;
7672esac
7673# We did not find ourselves, most probably we were run as `sh COMMAND'
7674# in which case we are not to be found in the path.
7675if test "x$as_myself" = x; then
7676  as_myself=$0
7677fi
7678if test ! -f "$as_myself"; then
7679  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7680  exit 1
7681fi
7682
7683# Unset variables that we do not need and which cause bugs (e.g. in
7684# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7685# suppresses any "Segmentation fault" message there.  '((' could
7686# trigger a bug in pdksh 5.2.14.
7687for as_var in BASH_ENV ENV MAIL MAILPATH
7688do eval test x\${$as_var+set} = xset \
7689  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7690done
7691PS1='$ '
7692PS2='> '
7693PS4='+ '
7694
7695# NLS nuisances.
7696LC_ALL=C
7697export LC_ALL
7698LANGUAGE=C
7699export LANGUAGE
7700
7701# CDPATH.
7702(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7703
7704
7705# as_fn_error STATUS ERROR [LINENO LOG_FD]
7706# ----------------------------------------
7707# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7708# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7709# script with STATUS, using 1 if that was 0.
7710as_fn_error ()
7711{
7712  as_status=$1; test $as_status -eq 0 && as_status=1
7713  if test "$4"; then
7714    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7715    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7716  fi
7717  $as_echo "$as_me: error: $2" >&2
7718  as_fn_exit $as_status
7719} # as_fn_error
7720
7721
7722# as_fn_set_status STATUS
7723# -----------------------
7724# Set $? to STATUS, without forking.
7725as_fn_set_status ()
7726{
7727  return $1
7728} # as_fn_set_status
7729
7730# as_fn_exit STATUS
7731# -----------------
7732# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7733as_fn_exit ()
7734{
7735  set +e
7736  as_fn_set_status $1
7737  exit $1
7738} # as_fn_exit
7739
7740# as_fn_unset VAR
7741# ---------------
7742# Portably unset VAR.
7743as_fn_unset ()
7744{
7745  { eval $1=; unset $1;}
7746}
7747as_unset=as_fn_unset
7748# as_fn_append VAR VALUE
7749# ----------------------
7750# Append the text in VALUE to the end of the definition contained in VAR. Take
7751# advantage of any shell optimizations that allow amortized linear growth over
7752# repeated appends, instead of the typical quadratic growth present in naive
7753# implementations.
7754if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7755  eval 'as_fn_append ()
7756  {
7757    eval $1+=\$2
7758  }'
7759else
7760  as_fn_append ()
7761  {
7762    eval $1=\$$1\$2
7763  }
7764fi # as_fn_append
7765
7766# as_fn_arith ARG...
7767# ------------------
7768# Perform arithmetic evaluation on the ARGs, and store the result in the
7769# global $as_val. Take advantage of shells that can avoid forks. The arguments
7770# must be portable across $(()) and expr.
7771if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7772  eval 'as_fn_arith ()
7773  {
7774    as_val=$(( $* ))
7775  }'
7776else
7777  as_fn_arith ()
7778  {
7779    as_val=`expr "$@" || test $? -eq 1`
7780  }
7781fi # as_fn_arith
7782
7783
7784if expr a : '\(a\)' >/dev/null 2>&1 &&
7785   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7786  as_expr=expr
7787else
7788  as_expr=false
7789fi
7790
7791if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7792  as_basename=basename
7793else
7794  as_basename=false
7795fi
7796
7797if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7798  as_dirname=dirname
7799else
7800  as_dirname=false
7801fi
7802
7803as_me=`$as_basename -- "$0" ||
7804$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7805	 X"$0" : 'X\(//\)$' \| \
7806	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7807$as_echo X/"$0" |
7808    sed '/^.*\/\([^/][^/]*\)\/*$/{
7809	    s//\1/
7810	    q
7811	  }
7812	  /^X\/\(\/\/\)$/{
7813	    s//\1/
7814	    q
7815	  }
7816	  /^X\/\(\/\).*/{
7817	    s//\1/
7818	    q
7819	  }
7820	  s/.*/./; q'`
7821
7822# Avoid depending upon Character Ranges.
7823as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7824as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7825as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7826as_cr_digits='0123456789'
7827as_cr_alnum=$as_cr_Letters$as_cr_digits
7828
7829ECHO_C= ECHO_N= ECHO_T=
7830case `echo -n x` in #(((((
7831-n*)
7832  case `echo 'xy\c'` in
7833  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7834  xy)  ECHO_C='\c';;
7835  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7836       ECHO_T='	';;
7837  esac;;
7838*)
7839  ECHO_N='-n';;
7840esac
7841
7842rm -f conf$$ conf$$.exe conf$$.file
7843if test -d conf$$.dir; then
7844  rm -f conf$$.dir/conf$$.file
7845else
7846  rm -f conf$$.dir
7847  mkdir conf$$.dir 2>/dev/null
7848fi
7849if (echo >conf$$.file) 2>/dev/null; then
7850  if ln -s conf$$.file conf$$ 2>/dev/null; then
7851    as_ln_s='ln -s'
7852    # ... but there are two gotchas:
7853    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7854    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7855    # In both cases, we have to default to `cp -pR'.
7856    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7857      as_ln_s='cp -pR'
7858  elif ln conf$$.file conf$$ 2>/dev/null; then
7859    as_ln_s=ln
7860  else
7861    as_ln_s='cp -pR'
7862  fi
7863else
7864  as_ln_s='cp -pR'
7865fi
7866rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7867rmdir conf$$.dir 2>/dev/null
7868
7869
7870# as_fn_mkdir_p
7871# -------------
7872# Create "$as_dir" as a directory, including parents if necessary.
7873as_fn_mkdir_p ()
7874{
7875
7876  case $as_dir in #(
7877  -*) as_dir=./$as_dir;;
7878  esac
7879  test -d "$as_dir" || eval $as_mkdir_p || {
7880    as_dirs=
7881    while :; do
7882      case $as_dir in #(
7883      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7884      *) as_qdir=$as_dir;;
7885      esac
7886      as_dirs="'$as_qdir' $as_dirs"
7887      as_dir=`$as_dirname -- "$as_dir" ||
7888$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7889	 X"$as_dir" : 'X\(//\)[^/]' \| \
7890	 X"$as_dir" : 'X\(//\)$' \| \
7891	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7892$as_echo X"$as_dir" |
7893    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7894	    s//\1/
7895	    q
7896	  }
7897	  /^X\(\/\/\)[^/].*/{
7898	    s//\1/
7899	    q
7900	  }
7901	  /^X\(\/\/\)$/{
7902	    s//\1/
7903	    q
7904	  }
7905	  /^X\(\/\).*/{
7906	    s//\1/
7907	    q
7908	  }
7909	  s/.*/./; q'`
7910      test -d "$as_dir" && break
7911    done
7912    test -z "$as_dirs" || eval "mkdir $as_dirs"
7913  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7914
7915
7916} # as_fn_mkdir_p
7917if mkdir -p . 2>/dev/null; then
7918  as_mkdir_p='mkdir -p "$as_dir"'
7919else
7920  test -d ./-p && rmdir ./-p
7921  as_mkdir_p=false
7922fi
7923
7924
7925# as_fn_executable_p FILE
7926# -----------------------
7927# Test if FILE is an executable regular file.
7928as_fn_executable_p ()
7929{
7930  test -f "$1" && test -x "$1"
7931} # as_fn_executable_p
7932as_test_x='test -x'
7933as_executable_p=as_fn_executable_p
7934
7935# Sed expression to map a string onto a valid CPP name.
7936as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7937
7938# Sed expression to map a string onto a valid variable name.
7939as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7940
7941
7942exec 6>&1
7943## ----------------------------------- ##
7944## Main body of $CONFIG_STATUS script. ##
7945## ----------------------------------- ##
7946_ASEOF
7947test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7948
7949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7950# Save the log message, to keep $0 and so on meaningful, and to
7951# report actual input values of CONFIG_FILES etc. instead of their
7952# values after options handling.
7953ac_log="
7954This file was extended by $as_me, which was
7955generated by GNU Autoconf 2.69.  Invocation command line was
7956
7957  CONFIG_FILES    = $CONFIG_FILES
7958  CONFIG_HEADERS  = $CONFIG_HEADERS
7959  CONFIG_LINKS    = $CONFIG_LINKS
7960  CONFIG_COMMANDS = $CONFIG_COMMANDS
7961  $ $0 $@
7962
7963on `(hostname || uname -n) 2>/dev/null | sed 1q`
7964"
7965
7966_ACEOF
7967
7968case $ac_config_files in *"
7969"*) set x $ac_config_files; shift; ac_config_files=$*;;
7970esac
7971
7972case $ac_config_headers in *"
7973"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7974esac
7975
7976
7977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7978# Files that config.status was made for.
7979config_files="$ac_config_files"
7980config_headers="$ac_config_headers"
7981config_commands="$ac_config_commands"
7982
7983_ACEOF
7984
7985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7986ac_cs_usage="\
7987\`$as_me' instantiates files and other configuration actions
7988from templates according to the current configuration.  Unless the files
7989and actions are specified as TAGs, all are instantiated by default.
7990
7991Usage: $0 [OPTION]... [TAG]...
7992
7993  -h, --help       print this help, then exit
7994  -V, --version    print version number and configuration settings, then exit
7995      --config     print configuration, then exit
7996  -q, --quiet, --silent
7997                   do not print progress messages
7998  -d, --debug      don't remove temporary files
7999      --recheck    update $as_me by reconfiguring in the same conditions
8000      --file=FILE[:TEMPLATE]
8001                   instantiate the configuration file FILE
8002      --header=FILE[:TEMPLATE]
8003                   instantiate the configuration header FILE
8004
8005Configuration files:
8006$config_files
8007
8008Configuration headers:
8009$config_headers
8010
8011Configuration commands:
8012$config_commands
8013
8014Report bugs to the package provider."
8015
8016_ACEOF
8017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8018ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8019ac_cs_version="\\
8020config.status
8021configured by $0, generated by GNU Autoconf 2.69,
8022  with options \\"\$ac_cs_config\\"
8023
8024Copyright (C) 2012 Free Software Foundation, Inc.
8025This config.status script is free software; the Free Software Foundation
8026gives unlimited permission to copy, distribute and modify it."
8027
8028ac_pwd='$ac_pwd'
8029srcdir='$srcdir'
8030INSTALL='$INSTALL'
8031test -n "\$AWK" || AWK=awk
8032_ACEOF
8033
8034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8035# The default lists apply if the user does not specify any file.
8036ac_need_defaults=:
8037while test $# != 0
8038do
8039  case $1 in
8040  --*=?*)
8041    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8042    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8043    ac_shift=:
8044    ;;
8045  --*=)
8046    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8047    ac_optarg=
8048    ac_shift=:
8049    ;;
8050  *)
8051    ac_option=$1
8052    ac_optarg=$2
8053    ac_shift=shift
8054    ;;
8055  esac
8056
8057  case $ac_option in
8058  # Handling of the options.
8059  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8060    ac_cs_recheck=: ;;
8061  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8062    $as_echo "$ac_cs_version"; exit ;;
8063  --config | --confi | --conf | --con | --co | --c )
8064    $as_echo "$ac_cs_config"; exit ;;
8065  --debug | --debu | --deb | --de | --d | -d )
8066    debug=: ;;
8067  --file | --fil | --fi | --f )
8068    $ac_shift
8069    case $ac_optarg in
8070    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8071    '') as_fn_error $? "missing file argument" ;;
8072    esac
8073    as_fn_append CONFIG_FILES " '$ac_optarg'"
8074    ac_need_defaults=false;;
8075  --header | --heade | --head | --hea )
8076    $ac_shift
8077    case $ac_optarg in
8078    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8079    esac
8080    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8081    ac_need_defaults=false;;
8082  --he | --h)
8083    # Conflict between --help and --header
8084    as_fn_error $? "ambiguous option: \`$1'
8085Try \`$0 --help' for more information.";;
8086  --help | --hel | -h )
8087    $as_echo "$ac_cs_usage"; exit ;;
8088  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8089  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8090    ac_cs_silent=: ;;
8091
8092  # This is an error.
8093  -*) as_fn_error $? "unrecognized option: \`$1'
8094Try \`$0 --help' for more information." ;;
8095
8096  *) as_fn_append ac_config_targets " $1"
8097     ac_need_defaults=false ;;
8098
8099  esac
8100  shift
8101done
8102
8103ac_configure_extra_args=
8104
8105if $ac_cs_silent; then
8106  exec 6>/dev/null
8107  ac_configure_extra_args="$ac_configure_extra_args --silent"
8108fi
8109
8110_ACEOF
8111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8112if \$ac_cs_recheck; then
8113  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8114  shift
8115  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8116  CONFIG_SHELL='$SHELL'
8117  export CONFIG_SHELL
8118  exec "\$@"
8119fi
8120
8121_ACEOF
8122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8123exec 5>>config.log
8124{
8125  echo
8126  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8127## Running $as_me. ##
8128_ASBOX
8129  $as_echo "$ac_log"
8130} >&5
8131
8132_ACEOF
8133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8134#
8135# INIT-COMMANDS
8136#
8137
8138  srcdir="${srcdir}"
8139  objroot="${objroot}"
8140
8141
8142  srcdir="${srcdir}"
8143  objroot="${objroot}"
8144
8145
8146  srcdir="${srcdir}"
8147  objroot="${objroot}"
8148  mangling_map="${mangling_map}"
8149  public_syms="${public_syms}"
8150  JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
8151
8152
8153  srcdir="${srcdir}"
8154  objroot="${objroot}"
8155
8156
8157  srcdir="${srcdir}"
8158  objroot="${objroot}"
8159
8160
8161  srcdir="${srcdir}"
8162  objroot="${objroot}"
8163
8164
8165  srcdir="${srcdir}"
8166  objroot="${objroot}"
8167
8168
8169  srcdir="${srcdir}"
8170  objroot="${objroot}"
8171
8172
8173  srcdir="${srcdir}"
8174  objroot="${objroot}"
8175
8176
8177  srcdir="${srcdir}"
8178  objroot="${objroot}"
8179
8180
8181  srcdir="${srcdir}"
8182  objroot="${objroot}"
8183  install_suffix="${install_suffix}"
8184
8185
8186_ACEOF
8187
8188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8189
8190# Handling of arguments.
8191for ac_config_target in $ac_config_targets
8192do
8193  case $ac_config_target in
8194    "include/jemalloc/internal/private_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_namespace.h" ;;
8195    "include/jemalloc/internal/private_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_unnamespace.h" ;;
8196    "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
8197    "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
8198    "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
8199    "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;;
8200    "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
8201    "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
8202    "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
8203    "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
8204    "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
8205    "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
8206    "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
8207    "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
8208    "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
8209
8210  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8211  esac
8212done
8213
8214
8215# If the user did not use the arguments to specify the items to instantiate,
8216# then the envvar interface is used.  Set only those that are not.
8217# We use the long form for the default assignment because of an extremely
8218# bizarre bug on SunOS 4.1.3.
8219if $ac_need_defaults; then
8220  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8221  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8222  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8223fi
8224
8225# Have a temporary directory for convenience.  Make it in the build tree
8226# simply because there is no reason against having it here, and in addition,
8227# creating and moving files from /tmp can sometimes cause problems.
8228# Hook for its removal unless debugging.
8229# Note that there is a small window in which the directory will not be cleaned:
8230# after its creation but before its name has been assigned to `$tmp'.
8231$debug ||
8232{
8233  tmp= ac_tmp=
8234  trap 'exit_status=$?
8235  : "${ac_tmp:=$tmp}"
8236  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8237' 0
8238  trap 'as_fn_exit 1' 1 2 13 15
8239}
8240# Create a (secure) tmp directory for tmp files.
8241
8242{
8243  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8244  test -d "$tmp"
8245}  ||
8246{
8247  tmp=./conf$$-$RANDOM
8248  (umask 077 && mkdir "$tmp")
8249} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8250ac_tmp=$tmp
8251
8252# Set up the scripts for CONFIG_FILES section.
8253# No need to generate them if there are no CONFIG_FILES.
8254# This happens for instance with `./config.status config.h'.
8255if test -n "$CONFIG_FILES"; then
8256
8257
8258ac_cr=`echo X | tr X '\015'`
8259# On cygwin, bash can eat \r inside `` if the user requested igncr.
8260# But we know of no other shell where ac_cr would be empty at this
8261# point, so we can use a bashism as a fallback.
8262if test "x$ac_cr" = x; then
8263  eval ac_cr=\$\'\\r\'
8264fi
8265ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8266if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8267  ac_cs_awk_cr='\\r'
8268else
8269  ac_cs_awk_cr=$ac_cr
8270fi
8271
8272echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8273_ACEOF
8274
8275
8276{
8277  echo "cat >conf$$subs.awk <<_ACEOF" &&
8278  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8279  echo "_ACEOF"
8280} >conf$$subs.sh ||
8281  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8282ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8283ac_delim='%!_!# '
8284for ac_last_try in false false false false false :; do
8285  . ./conf$$subs.sh ||
8286    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8287
8288  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8289  if test $ac_delim_n = $ac_delim_num; then
8290    break
8291  elif $ac_last_try; then
8292    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8293  else
8294    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8295  fi
8296done
8297rm -f conf$$subs.sh
8298
8299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8300cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8301_ACEOF
8302sed -n '
8303h
8304s/^/S["/; s/!.*/"]=/
8305p
8306g
8307s/^[^!]*!//
8308:repl
8309t repl
8310s/'"$ac_delim"'$//
8311t delim
8312:nl
8313h
8314s/\(.\{148\}\)..*/\1/
8315t more1
8316s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8317p
8318n
8319b repl
8320:more1
8321s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8322p
8323g
8324s/.\{148\}//
8325t nl
8326:delim
8327h
8328s/\(.\{148\}\)..*/\1/
8329t more2
8330s/["\\]/\\&/g; s/^/"/; s/$/"/
8331p
8332b
8333:more2
8334s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8335p
8336g
8337s/.\{148\}//
8338t delim
8339' <conf$$subs.awk | sed '
8340/^[^""]/{
8341  N
8342  s/\n//
8343}
8344' >>$CONFIG_STATUS || ac_write_fail=1
8345rm -f conf$$subs.awk
8346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8347_ACAWK
8348cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8349  for (key in S) S_is_set[key] = 1
8350  FS = ""
8351
8352}
8353{
8354  line = $ 0
8355  nfields = split(line, field, "@")
8356  substed = 0
8357  len = length(field[1])
8358  for (i = 2; i < nfields; i++) {
8359    key = field[i]
8360    keylen = length(key)
8361    if (S_is_set[key]) {
8362      value = S[key]
8363      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8364      len += length(value) + length(field[++i])
8365      substed = 1
8366    } else
8367      len += 1 + keylen
8368  }
8369
8370  print line
8371}
8372
8373_ACAWK
8374_ACEOF
8375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8376if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8377  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8378else
8379  cat
8380fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8381  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8382_ACEOF
8383
8384# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8385# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8386# trailing colons and then remove the whole line if VPATH becomes empty
8387# (actually we leave an empty line to preserve line numbers).
8388if test "x$srcdir" = x.; then
8389  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8390h
8391s///
8392s/^/:/
8393s/[	 ]*$/:/
8394s/:\$(srcdir):/:/g
8395s/:\${srcdir}:/:/g
8396s/:@srcdir@:/:/g
8397s/^:*//
8398s/:*$//
8399x
8400s/\(=[	 ]*\).*/\1/
8401G
8402s/\n//
8403s/^[^=]*=[	 ]*$//
8404}'
8405fi
8406
8407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8408fi # test -n "$CONFIG_FILES"
8409
8410# Set up the scripts for CONFIG_HEADERS section.
8411# No need to generate them if there are no CONFIG_HEADERS.
8412# This happens for instance with `./config.status Makefile'.
8413if test -n "$CONFIG_HEADERS"; then
8414cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8415BEGIN {
8416_ACEOF
8417
8418# Transform confdefs.h into an awk script `defines.awk', embedded as
8419# here-document in config.status, that substitutes the proper values into
8420# config.h.in to produce config.h.
8421
8422# Create a delimiter string that does not exist in confdefs.h, to ease
8423# handling of long lines.
8424ac_delim='%!_!# '
8425for ac_last_try in false false :; do
8426  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8427  if test -z "$ac_tt"; then
8428    break
8429  elif $ac_last_try; then
8430    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8431  else
8432    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8433  fi
8434done
8435
8436# For the awk script, D is an array of macro values keyed by name,
8437# likewise P contains macro parameters if any.  Preserve backslash
8438# newline sequences.
8439
8440ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8441sed -n '
8442s/.\{148\}/&'"$ac_delim"'/g
8443t rset
8444:rset
8445s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
8446t def
8447d
8448:def
8449s/\\$//
8450t bsnl
8451s/["\\]/\\&/g
8452s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8453D["\1"]=" \3"/p
8454s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
8455d
8456:bsnl
8457s/["\\]/\\&/g
8458s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8459D["\1"]=" \3\\\\\\n"\\/p
8460t cont
8461s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8462t cont
8463d
8464:cont
8465n
8466s/.\{148\}/&'"$ac_delim"'/g
8467t clear
8468:clear
8469s/\\$//
8470t bsnlc
8471s/["\\]/\\&/g; s/^/"/; s/$/"/p
8472d
8473:bsnlc
8474s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8475b cont
8476' <confdefs.h | sed '
8477s/'"$ac_delim"'/"\\\
8478"/g' >>$CONFIG_STATUS || ac_write_fail=1
8479
8480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8481  for (key in D) D_is_set[key] = 1
8482  FS = ""
8483}
8484/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8485  line = \$ 0
8486  split(line, arg, " ")
8487  if (arg[1] == "#") {
8488    defundef = arg[2]
8489    mac1 = arg[3]
8490  } else {
8491    defundef = substr(arg[1], 2)
8492    mac1 = arg[2]
8493  }
8494  split(mac1, mac2, "(") #)
8495  macro = mac2[1]
8496  prefix = substr(line, 1, index(line, defundef) - 1)
8497  if (D_is_set[macro]) {
8498    # Preserve the white space surrounding the "#".
8499    print prefix "define", macro P[macro] D[macro]
8500    next
8501  } else {
8502    # Replace #undef with comments.  This is necessary, for example,
8503    # in the case of _POSIX_SOURCE, which is predefined and required
8504    # on some systems where configure will not decide to define it.
8505    if (defundef == "undef") {
8506      print "/*", prefix defundef, macro, "*/"
8507      next
8508    }
8509  }
8510}
8511{ print }
8512_ACAWK
8513_ACEOF
8514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8515  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8516fi # test -n "$CONFIG_HEADERS"
8517
8518
8519eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8520shift
8521for ac_tag
8522do
8523  case $ac_tag in
8524  :[FHLC]) ac_mode=$ac_tag; continue;;
8525  esac
8526  case $ac_mode$ac_tag in
8527  :[FHL]*:*);;
8528  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8529  :[FH]-) ac_tag=-:-;;
8530  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8531  esac
8532  ac_save_IFS=$IFS
8533  IFS=:
8534  set x $ac_tag
8535  IFS=$ac_save_IFS
8536  shift
8537  ac_file=$1
8538  shift
8539
8540  case $ac_mode in
8541  :L) ac_source=$1;;
8542  :[FH])
8543    ac_file_inputs=
8544    for ac_f
8545    do
8546      case $ac_f in
8547      -) ac_f="$ac_tmp/stdin";;
8548      *) # Look for the file first in the build tree, then in the source tree
8549	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8550	 # because $ac_f cannot contain `:'.
8551	 test -f "$ac_f" ||
8552	   case $ac_f in
8553	   [\\/$]*) false;;
8554	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8555	   esac ||
8556	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8557      esac
8558      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8559      as_fn_append ac_file_inputs " '$ac_f'"
8560    done
8561
8562    # Let's still pretend it is `configure' which instantiates (i.e., don't
8563    # use $as_me), people would be surprised to read:
8564    #    /* config.h.  Generated by config.status.  */
8565    configure_input='Generated from '`
8566	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8567	`' by configure.'
8568    if test x"$ac_file" != x-; then
8569      configure_input="$ac_file.  $configure_input"
8570      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8571$as_echo "$as_me: creating $ac_file" >&6;}
8572    fi
8573    # Neutralize special characters interpreted by sed in replacement strings.
8574    case $configure_input in #(
8575    *\&* | *\|* | *\\* )
8576       ac_sed_conf_input=`$as_echo "$configure_input" |
8577       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8578    *) ac_sed_conf_input=$configure_input;;
8579    esac
8580
8581    case $ac_tag in
8582    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8583      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8584    esac
8585    ;;
8586  esac
8587
8588  ac_dir=`$as_dirname -- "$ac_file" ||
8589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8590	 X"$ac_file" : 'X\(//\)[^/]' \| \
8591	 X"$ac_file" : 'X\(//\)$' \| \
8592	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8593$as_echo X"$ac_file" |
8594    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8595	    s//\1/
8596	    q
8597	  }
8598	  /^X\(\/\/\)[^/].*/{
8599	    s//\1/
8600	    q
8601	  }
8602	  /^X\(\/\/\)$/{
8603	    s//\1/
8604	    q
8605	  }
8606	  /^X\(\/\).*/{
8607	    s//\1/
8608	    q
8609	  }
8610	  s/.*/./; q'`
8611  as_dir="$ac_dir"; as_fn_mkdir_p
8612  ac_builddir=.
8613
8614case "$ac_dir" in
8615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8616*)
8617  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8618  # A ".." for each directory in $ac_dir_suffix.
8619  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8620  case $ac_top_builddir_sub in
8621  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8622  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8623  esac ;;
8624esac
8625ac_abs_top_builddir=$ac_pwd
8626ac_abs_builddir=$ac_pwd$ac_dir_suffix
8627# for backward compatibility:
8628ac_top_builddir=$ac_top_build_prefix
8629
8630case $srcdir in
8631  .)  # We are building in place.
8632    ac_srcdir=.
8633    ac_top_srcdir=$ac_top_builddir_sub
8634    ac_abs_top_srcdir=$ac_pwd ;;
8635  [\\/]* | ?:[\\/]* )  # Absolute name.
8636    ac_srcdir=$srcdir$ac_dir_suffix;
8637    ac_top_srcdir=$srcdir
8638    ac_abs_top_srcdir=$srcdir ;;
8639  *) # Relative name.
8640    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8641    ac_top_srcdir=$ac_top_build_prefix$srcdir
8642    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8643esac
8644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8645
8646
8647  case $ac_mode in
8648  :F)
8649  #
8650  # CONFIG_FILE
8651  #
8652
8653  case $INSTALL in
8654  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8655  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8656  esac
8657_ACEOF
8658
8659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8660# If the template does not know about datarootdir, expand it.
8661# FIXME: This hack should be removed a few years after 2.60.
8662ac_datarootdir_hack=; ac_datarootdir_seen=
8663ac_sed_dataroot='
8664/datarootdir/ {
8665  p
8666  q
8667}
8668/@datadir@/p
8669/@docdir@/p
8670/@infodir@/p
8671/@localedir@/p
8672/@mandir@/p'
8673case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8674*datarootdir*) ac_datarootdir_seen=yes;;
8675*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8676  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8677$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8678_ACEOF
8679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8680  ac_datarootdir_hack='
8681  s&@datadir@&$datadir&g
8682  s&@docdir@&$docdir&g
8683  s&@infodir@&$infodir&g
8684  s&@localedir@&$localedir&g
8685  s&@mandir@&$mandir&g
8686  s&\\\${datarootdir}&$datarootdir&g' ;;
8687esac
8688_ACEOF
8689
8690# Neutralize VPATH when `$srcdir' = `.'.
8691# Shell code in configure.ac might set extrasub.
8692# FIXME: do we really want to maintain this feature?
8693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8694ac_sed_extra="$ac_vpsub
8695$extrasub
8696_ACEOF
8697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8698:t
8699/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8700s|@configure_input@|$ac_sed_conf_input|;t t
8701s&@top_builddir@&$ac_top_builddir_sub&;t t
8702s&@top_build_prefix@&$ac_top_build_prefix&;t t
8703s&@srcdir@&$ac_srcdir&;t t
8704s&@abs_srcdir@&$ac_abs_srcdir&;t t
8705s&@top_srcdir@&$ac_top_srcdir&;t t
8706s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8707s&@builddir@&$ac_builddir&;t t
8708s&@abs_builddir@&$ac_abs_builddir&;t t
8709s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8710s&@INSTALL@&$ac_INSTALL&;t t
8711$ac_datarootdir_hack
8712"
8713eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8714  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8715
8716test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8717  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8718  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8719      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8720  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8721which seems to be undefined.  Please make sure it is defined" >&5
8722$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8723which seems to be undefined.  Please make sure it is defined" >&2;}
8724
8725  rm -f "$ac_tmp/stdin"
8726  case $ac_file in
8727  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8728  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8729  esac \
8730  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8731 ;;
8732  :H)
8733  #
8734  # CONFIG_HEADER
8735  #
8736  if test x"$ac_file" != x-; then
8737    {
8738      $as_echo "/* $configure_input  */" \
8739      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8740    } >"$ac_tmp/config.h" \
8741      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8742    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8743      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8744$as_echo "$as_me: $ac_file is unchanged" >&6;}
8745    else
8746      rm -f "$ac_file"
8747      mv "$ac_tmp/config.h" "$ac_file" \
8748	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8749    fi
8750  else
8751    $as_echo "/* $configure_input  */" \
8752      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8753      || as_fn_error $? "could not create -" "$LINENO" 5
8754  fi
8755 ;;
8756
8757  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8758$as_echo "$as_me: executing $ac_file commands" >&6;}
8759 ;;
8760  esac
8761
8762
8763  case $ac_file$ac_mode in
8764    "include/jemalloc/internal/private_namespace.h":C)
8765  mkdir -p "${objroot}include/jemalloc/internal"
8766  "${srcdir}/include/jemalloc/internal/private_namespace.sh" "${srcdir}/include/jemalloc/internal/private_symbols.txt" > "${objroot}include/jemalloc/internal/private_namespace.h"
8767 ;;
8768    "include/jemalloc/internal/private_unnamespace.h":C)
8769  mkdir -p "${objroot}include/jemalloc/internal"
8770  "${srcdir}/include/jemalloc/internal/private_unnamespace.sh" "${srcdir}/include/jemalloc/internal/private_symbols.txt" > "${objroot}include/jemalloc/internal/private_unnamespace.h"
8771 ;;
8772    "include/jemalloc/internal/public_symbols.txt":C)
8773  f="${objroot}include/jemalloc/internal/public_symbols.txt"
8774  mkdir -p "${objroot}include/jemalloc/internal"
8775  cp /dev/null "${f}"
8776  for nm in `echo ${mangling_map} |tr ',' ' '` ; do
8777    n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
8778    m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
8779    echo "${n}:${m}" >> "${f}"
8780        public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
8781  done
8782  for sym in ${public_syms} ; do
8783    n="${sym}"
8784    m="${JEMALLOC_PREFIX}${sym}"
8785    echo "${n}:${m}" >> "${f}"
8786  done
8787 ;;
8788    "include/jemalloc/internal/public_namespace.h":C)
8789  mkdir -p "${objroot}include/jemalloc/internal"
8790  "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
8791 ;;
8792    "include/jemalloc/internal/public_unnamespace.h":C)
8793  mkdir -p "${objroot}include/jemalloc/internal"
8794  "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
8795 ;;
8796    "include/jemalloc/internal/size_classes.h":C)
8797  mkdir -p "${objroot}include/jemalloc/internal"
8798  "${srcdir}/include/jemalloc/internal/size_classes.sh" > "${objroot}include/jemalloc/internal/size_classes.h"
8799 ;;
8800    "include/jemalloc/jemalloc_protos_jet.h":C)
8801  mkdir -p "${objroot}include/jemalloc"
8802  cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
8803 ;;
8804    "include/jemalloc/jemalloc_rename.h":C)
8805  mkdir -p "${objroot}include/jemalloc"
8806  "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
8807 ;;
8808    "include/jemalloc/jemalloc_mangle.h":C)
8809  mkdir -p "${objroot}include/jemalloc"
8810  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
8811 ;;
8812    "include/jemalloc/jemalloc_mangle_jet.h":C)
8813  mkdir -p "${objroot}include/jemalloc"
8814  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
8815 ;;
8816    "include/jemalloc/jemalloc.h":C)
8817  mkdir -p "${objroot}include/jemalloc"
8818  "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
8819 ;;
8820
8821  esac
8822done # for ac_tag
8823
8824
8825as_fn_exit 0
8826_ACEOF
8827ac_clean_files=$ac_clean_files_save
8828
8829test $ac_write_fail = 0 ||
8830  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8831
8832
8833# configure is writing to config.log, and then calls config.status.
8834# config.status does its own redirection, appending to config.log.
8835# Unfortunately, on DOS this fails, as config.log is still kept open
8836# by configure, so config.status won't be able to write to it; its
8837# output is simply discarded.  So we exec the FD to /dev/null,
8838# effectively closing config.log, so it can be properly (re)opened and
8839# appended to by config.status.  When coming back to configure, we
8840# need to make the FD available again.
8841if test "$no_create" != yes; then
8842  ac_cs_success=:
8843  ac_config_status_args=
8844  test "$silent" = yes &&
8845    ac_config_status_args="$ac_config_status_args --quiet"
8846  exec 5>/dev/null
8847  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8848  exec 5>>config.log
8849  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8850  # would make configure fail if this is the last instruction.
8851  $ac_cs_success || as_fn_exit 1
8852fi
8853if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8854  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8855$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8856fi
8857
8858
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
8860$as_echo "===============================================================================" >&6; }
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version   : ${jemalloc_version}" >&5
8862$as_echo "jemalloc version   : ${jemalloc_version}" >&6; }
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision   : ${rev}" >&5
8864$as_echo "library revision   : ${rev}" >&6; }
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8866$as_echo "" >&6; }
8867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC                 : ${CC}" >&5
8868$as_echo "CC                 : ${CC}" >&6; }
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS           : ${CPPFLAGS}" >&5
8870$as_echo "CPPFLAGS           : ${CPPFLAGS}" >&6; }
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS             : ${CFLAGS}" >&5
8872$as_echo "CFLAGS             : ${CFLAGS}" >&6; }
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS            : ${LDFLAGS}" >&5
8874$as_echo "LDFLAGS            : ${LDFLAGS}" >&6; }
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&5
8876$as_echo "EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&6; }
8877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS               : ${LIBS}" >&5
8878$as_echo "LIBS               : ${LIBS}" >&6; }
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA        : ${RPATH_EXTRA}" >&5
8880$as_echo "RPATH_EXTRA        : ${RPATH_EXTRA}" >&6; }
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8882$as_echo "" >&6; }
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC           : ${XSLTPROC}" >&5
8884$as_echo "XSLTPROC           : ${XSLTPROC}" >&6; }
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT            : ${XSLROOT}" >&5
8886$as_echo "XSLROOT            : ${XSLROOT}" >&6; }
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8888$as_echo "" >&6; }
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX             : ${PREFIX}" >&5
8890$as_echo "PREFIX             : ${PREFIX}" >&6; }
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR             : ${BINDIR}" >&5
8892$as_echo "BINDIR             : ${BINDIR}" >&6; }
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR         : ${INCLUDEDIR}" >&5
8894$as_echo "INCLUDEDIR         : ${INCLUDEDIR}" >&6; }
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR             : ${LIBDIR}" >&5
8896$as_echo "LIBDIR             : ${LIBDIR}" >&6; }
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR            : ${DATADIR}" >&5
8898$as_echo "DATADIR            : ${DATADIR}" >&6; }
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR             : ${MANDIR}" >&5
8900$as_echo "MANDIR             : ${MANDIR}" >&6; }
8901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8902$as_echo "" >&6; }
8903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot            : ${srcroot}" >&5
8904$as_echo "srcroot            : ${srcroot}" >&6; }
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot        : ${abs_srcroot}" >&5
8906$as_echo "abs_srcroot        : ${abs_srcroot}" >&6; }
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot            : ${objroot}" >&5
8908$as_echo "objroot            : ${objroot}" >&6; }
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot        : ${abs_objroot}" >&5
8910$as_echo "abs_objroot        : ${abs_objroot}" >&6; }
8911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8912$as_echo "" >&6; }
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&5
8914$as_echo "JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&6; }
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
8916$as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result:                    : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
8918$as_echo "                   : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix     : ${install_suffix}" >&5
8920$as_echo "install_suffix     : ${install_suffix}" >&6; }
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen            : ${enable_autogen}" >&5
8922$as_echo "autogen            : ${enable_autogen}" >&6; }
8923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: experimental       : ${enable_experimental}" >&5
8924$as_echo "experimental       : ${enable_experimental}" >&6; }
8925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cc-silence         : ${enable_cc_silence}" >&5
8926$as_echo "cc-silence         : ${enable_cc_silence}" >&6; }
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: debug              : ${enable_debug}" >&5
8928$as_echo "debug              : ${enable_debug}" >&6; }
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: code-coverage      : ${enable_code_coverage}" >&5
8930$as_echo "code-coverage      : ${enable_code_coverage}" >&6; }
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: stats              : ${enable_stats}" >&5
8932$as_echo "stats              : ${enable_stats}" >&6; }
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof               : ${enable_prof}" >&5
8934$as_echo "prof               : ${enable_prof}" >&6; }
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind     : ${enable_prof_libunwind}" >&5
8936$as_echo "prof-libunwind     : ${enable_prof_libunwind}" >&6; }
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc        : ${enable_prof_libgcc}" >&5
8938$as_echo "prof-libgcc        : ${enable_prof_libgcc}" >&6; }
8939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc           : ${enable_prof_gcc}" >&5
8940$as_echo "prof-gcc           : ${enable_prof_gcc}" >&6; }
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: tcache             : ${enable_tcache}" >&5
8942$as_echo "tcache             : ${enable_tcache}" >&6; }
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fill               : ${enable_fill}" >&5
8944$as_echo "fill               : ${enable_fill}" >&6; }
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace             : ${enable_utrace}" >&5
8946$as_echo "utrace             : ${enable_utrace}" >&6; }
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: valgrind           : ${enable_valgrind}" >&5
8948$as_echo "valgrind           : ${enable_valgrind}" >&6; }
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc            : ${enable_xmalloc}" >&5
8950$as_echo "xmalloc            : ${enable_xmalloc}" >&6; }
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: mremap             : ${enable_mremap}" >&5
8952$as_echo "mremap             : ${enable_mremap}" >&6; }
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: munmap             : ${enable_munmap}" >&5
8954$as_echo "munmap             : ${enable_munmap}" >&6; }
8955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: dss                : ${enable_dss}" >&5
8956$as_echo "dss                : ${enable_dss}" >&6; }
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock          : ${enable_lazy_lock}" >&5
8958$as_echo "lazy_lock          : ${enable_lazy_lock}" >&6; }
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: tls                : ${enable_tls}" >&5
8960$as_echo "tls                : ${enable_tls}" >&6; }
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
8962$as_echo "===============================================================================" >&6; }
8963