xref: /netbsd-src/external/bsd/jemalloc/dist/configure (revision dcc4f12d8d65994207fd5f741e1a058e79538559)
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 bug-autoconf@gnu.org 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_initial_exec_tls
629enable_zone_allocator
630enable_tls
631enable_lazy_lock
632libdl
633enable_uaf_detection
634enable_opt_size_checks
635enable_opt_safety_checks
636enable_readlinkat
637enable_log
638enable_cache_oblivious
639enable_xmalloc
640enable_utrace
641enable_fill
642enable_prof
643enable_experimental_smallocx
644enable_stats
645enable_debug
646je_
647install_suffix
648private_namespace
649JEMALLOC_CPREFIX
650JEMALLOC_PREFIX
651enable_static
652enable_shared
653enable_doc
654AUTOCONF
655LD
656RANLIB
657INSTALL_DATA
658INSTALL_SCRIPT
659INSTALL_PROGRAM
660enable_autogen
661RPATH_EXTRA
662LM
663CC_MM
664DUMP_SYMS
665AROUT
666ARFLAGS
667MKLIB
668TEST_LD_MODE
669LDTARGET
670CTARGET
671PIC_CFLAGS
672SOREV
673EXTRA_LDFLAGS
674DSO_LDFLAGS
675link_whole_archive
676libprefix
677exe
678a
679o
680importlib
681so
682LD_PRELOAD_VAR
683RPATH
684abi
685jemalloc_version_gid
686jemalloc_version_nrev
687jemalloc_version_bugfix
688jemalloc_version_minor
689jemalloc_version_major
690jemalloc_version
691AWK
692NM
693AR
694host_os
695host_vendor
696host_cpu
697host
698build_os
699build_vendor
700build_cpu
701build
702EGREP
703GREP
704EXTRA_CXXFLAGS
705SPECIFIED_CXXFLAGS
706CONFIGURE_CXXFLAGS
707enable_cxx
708HAVE_CXX14
709HAVE_CXX17
710ac_ct_CXX
711CXXFLAGS
712CXX
713CPP
714EXTRA_CFLAGS
715SPECIFIED_CFLAGS
716CONFIGURE_CFLAGS
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724XSLROOT
725XSLTPROC
726MANDIR
727DATADIR
728LIBDIR
729INCLUDEDIR
730BINDIR
731PREFIX
732abs_objroot
733objroot
734abs_srcroot
735srcroot
736rev
737CONFIG
738target_alias
739host_alias
740build_alias
741LIBS
742ECHO_T
743ECHO_N
744ECHO_C
745DEFS
746mandir
747localedir
748libdir
749psdir
750pdfdir
751dvidir
752htmldir
753infodir
754docdir
755oldincludedir
756includedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
768PACKAGE_URL
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
779with_xslroot
780enable_cxx
781with_lg_vaddr
782with_version
783with_rpath
784enable_autogen
785enable_doc
786enable_shared
787enable_static
788with_mangling
789with_jemalloc_prefix
790with_export
791with_private_namespace
792with_install_suffix
793with_malloc_conf
794enable_debug
795enable_stats
796enable_experimental_smallocx
797enable_prof
798enable_prof_libunwind
799with_static_libunwind
800enable_prof_libgcc
801enable_prof_gcc
802enable_fill
803enable_utrace
804enable_xmalloc
805enable_cache_oblivious
806enable_log
807enable_readlinkat
808enable_opt_safety_checks
809enable_opt_size_checks
810enable_uaf_detection
811with_lg_quantum
812with_lg_slab_maxregs
813with_lg_page
814with_lg_hugepage
815enable_libdl
816enable_syscall
817enable_lazy_lock
818enable_zone_allocator
819enable_initial_exec_tls
820'
821      ac_precious_vars='build_alias
822host_alias
823target_alias
824CC
825CFLAGS
826LDFLAGS
827LIBS
828CPPFLAGS
829CPP
830CXX
831CXXFLAGS
832CCC'
833
834
835# Initialize some variables set by options.
836ac_init_help=
837ac_init_version=false
838ac_unrecognized_opts=
839ac_unrecognized_sep=
840# The variables have the same names as the options, with
841# dashes changed to underlines.
842cache_file=/dev/null
843exec_prefix=NONE
844no_create=
845no_recursion=
846prefix=NONE
847program_prefix=NONE
848program_suffix=NONE
849program_transform_name=s,x,x,
850silent=
851site=
852srcdir=
853verbose=
854x_includes=NONE
855x_libraries=NONE
856
857# Installation directory options.
858# These are left unexpanded so users can "make install exec_prefix=/foo"
859# and all the variables that are supposed to be based on exec_prefix
860# by default will actually change.
861# Use braces instead of parens because sh, perl, etc. also accept them.
862# (The list follows the same order as the GNU Coding Standards.)
863bindir='${exec_prefix}/bin'
864sbindir='${exec_prefix}/sbin'
865libexecdir='${exec_prefix}/libexec'
866datarootdir='${prefix}/share'
867datadir='${datarootdir}'
868sysconfdir='${prefix}/etc'
869sharedstatedir='${prefix}/com'
870localstatedir='${prefix}/var'
871includedir='${prefix}/include'
872oldincludedir='/usr/include'
873docdir='${datarootdir}/doc/${PACKAGE}'
874infodir='${datarootdir}/info'
875htmldir='${docdir}'
876dvidir='${docdir}'
877pdfdir='${docdir}'
878psdir='${docdir}'
879libdir='${exec_prefix}/lib'
880localedir='${datarootdir}/locale'
881mandir='${datarootdir}/man'
882
883ac_prev=
884ac_dashdash=
885for ac_option
886do
887  # If the previous option needs an argument, assign it.
888  if test -n "$ac_prev"; then
889    eval $ac_prev=\$ac_option
890    ac_prev=
891    continue
892  fi
893
894  case $ac_option in
895  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896  *=)   ac_optarg= ;;
897  *)    ac_optarg=yes ;;
898  esac
899
900  # Accept the important Cygnus configure options, so we can diagnose typos.
901
902  case $ac_dashdash$ac_option in
903  --)
904    ac_dashdash=yes ;;
905
906  -bindir | --bindir | --bindi | --bind | --bin | --bi)
907    ac_prev=bindir ;;
908  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909    bindir=$ac_optarg ;;
910
911  -build | --build | --buil | --bui | --bu)
912    ac_prev=build_alias ;;
913  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914    build_alias=$ac_optarg ;;
915
916  -cache-file | --cache-file | --cache-fil | --cache-fi \
917  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918    ac_prev=cache_file ;;
919  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921    cache_file=$ac_optarg ;;
922
923  --config-cache | -C)
924    cache_file=config.cache ;;
925
926  -datadir | --datadir | --datadi | --datad)
927    ac_prev=datadir ;;
928  -datadir=* | --datadir=* | --datadi=* | --datad=*)
929    datadir=$ac_optarg ;;
930
931  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932  | --dataroo | --dataro | --datar)
933    ac_prev=datarootdir ;;
934  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936    datarootdir=$ac_optarg ;;
937
938  -disable-* | --disable-*)
939    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940    # Reject names that are not valid shell variable names.
941    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942      as_fn_error $? "invalid feature name: $ac_useropt"
943    ac_useropt_orig=$ac_useropt
944    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945    case $ac_user_opts in
946      *"
947"enable_$ac_useropt"
948"*) ;;
949      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950	 ac_unrecognized_sep=', ';;
951    esac
952    eval enable_$ac_useropt=no ;;
953
954  -docdir | --docdir | --docdi | --doc | --do)
955    ac_prev=docdir ;;
956  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957    docdir=$ac_optarg ;;
958
959  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960    ac_prev=dvidir ;;
961  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962    dvidir=$ac_optarg ;;
963
964  -enable-* | --enable-*)
965    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966    # Reject names that are not valid shell variable names.
967    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968      as_fn_error $? "invalid feature name: $ac_useropt"
969    ac_useropt_orig=$ac_useropt
970    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971    case $ac_user_opts in
972      *"
973"enable_$ac_useropt"
974"*) ;;
975      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976	 ac_unrecognized_sep=', ';;
977    esac
978    eval enable_$ac_useropt=\$ac_optarg ;;
979
980  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982  | --exec | --exe | --ex)
983    ac_prev=exec_prefix ;;
984  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986  | --exec=* | --exe=* | --ex=*)
987    exec_prefix=$ac_optarg ;;
988
989  -gas | --gas | --ga | --g)
990    # Obsolete; use --with-gas.
991    with_gas=yes ;;
992
993  -help | --help | --hel | --he | -h)
994    ac_init_help=long ;;
995  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996    ac_init_help=recursive ;;
997  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998    ac_init_help=short ;;
999
1000  -host | --host | --hos | --ho)
1001    ac_prev=host_alias ;;
1002  -host=* | --host=* | --hos=* | --ho=*)
1003    host_alias=$ac_optarg ;;
1004
1005  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006    ac_prev=htmldir ;;
1007  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008  | --ht=*)
1009    htmldir=$ac_optarg ;;
1010
1011  -includedir | --includedir | --includedi | --included | --include \
1012  | --includ | --inclu | --incl | --inc)
1013    ac_prev=includedir ;;
1014  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015  | --includ=* | --inclu=* | --incl=* | --inc=*)
1016    includedir=$ac_optarg ;;
1017
1018  -infodir | --infodir | --infodi | --infod | --info | --inf)
1019    ac_prev=infodir ;;
1020  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021    infodir=$ac_optarg ;;
1022
1023  -libdir | --libdir | --libdi | --libd)
1024    ac_prev=libdir ;;
1025  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026    libdir=$ac_optarg ;;
1027
1028  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029  | --libexe | --libex | --libe)
1030    ac_prev=libexecdir ;;
1031  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032  | --libexe=* | --libex=* | --libe=*)
1033    libexecdir=$ac_optarg ;;
1034
1035  -localedir | --localedir | --localedi | --localed | --locale)
1036    ac_prev=localedir ;;
1037  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038    localedir=$ac_optarg ;;
1039
1040  -localstatedir | --localstatedir | --localstatedi | --localstated \
1041  | --localstate | --localstat | --localsta | --localst | --locals)
1042    ac_prev=localstatedir ;;
1043  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045    localstatedir=$ac_optarg ;;
1046
1047  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048    ac_prev=mandir ;;
1049  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050    mandir=$ac_optarg ;;
1051
1052  -nfp | --nfp | --nf)
1053    # Obsolete; use --without-fp.
1054    with_fp=no ;;
1055
1056  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057  | --no-cr | --no-c | -n)
1058    no_create=yes ;;
1059
1060  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062    no_recursion=yes ;;
1063
1064  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066  | --oldin | --oldi | --old | --ol | --o)
1067    ac_prev=oldincludedir ;;
1068  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071    oldincludedir=$ac_optarg ;;
1072
1073  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074    ac_prev=prefix ;;
1075  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076    prefix=$ac_optarg ;;
1077
1078  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079  | --program-pre | --program-pr | --program-p)
1080    ac_prev=program_prefix ;;
1081  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083    program_prefix=$ac_optarg ;;
1084
1085  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086  | --program-suf | --program-su | --program-s)
1087    ac_prev=program_suffix ;;
1088  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090    program_suffix=$ac_optarg ;;
1091
1092  -program-transform-name | --program-transform-name \
1093  | --program-transform-nam | --program-transform-na \
1094  | --program-transform-n | --program-transform- \
1095  | --program-transform | --program-transfor \
1096  | --program-transfo | --program-transf \
1097  | --program-trans | --program-tran \
1098  | --progr-tra | --program-tr | --program-t)
1099    ac_prev=program_transform_name ;;
1100  -program-transform-name=* | --program-transform-name=* \
1101  | --program-transform-nam=* | --program-transform-na=* \
1102  | --program-transform-n=* | --program-transform-=* \
1103  | --program-transform=* | --program-transfor=* \
1104  | --program-transfo=* | --program-transf=* \
1105  | --program-trans=* | --program-tran=* \
1106  | --progr-tra=* | --program-tr=* | --program-t=*)
1107    program_transform_name=$ac_optarg ;;
1108
1109  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110    ac_prev=pdfdir ;;
1111  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112    pdfdir=$ac_optarg ;;
1113
1114  -psdir | --psdir | --psdi | --psd | --ps)
1115    ac_prev=psdir ;;
1116  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117    psdir=$ac_optarg ;;
1118
1119  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120  | -silent | --silent | --silen | --sile | --sil)
1121    silent=yes ;;
1122
1123  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124    ac_prev=sbindir ;;
1125  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126  | --sbi=* | --sb=*)
1127    sbindir=$ac_optarg ;;
1128
1129  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131  | --sharedst | --shareds | --shared | --share | --shar \
1132  | --sha | --sh)
1133    ac_prev=sharedstatedir ;;
1134  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137  | --sha=* | --sh=*)
1138    sharedstatedir=$ac_optarg ;;
1139
1140  -site | --site | --sit)
1141    ac_prev=site ;;
1142  -site=* | --site=* | --sit=*)
1143    site=$ac_optarg ;;
1144
1145  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146    ac_prev=srcdir ;;
1147  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148    srcdir=$ac_optarg ;;
1149
1150  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151  | --syscon | --sysco | --sysc | --sys | --sy)
1152    ac_prev=sysconfdir ;;
1153  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155    sysconfdir=$ac_optarg ;;
1156
1157  -target | --target | --targe | --targ | --tar | --ta | --t)
1158    ac_prev=target_alias ;;
1159  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160    target_alias=$ac_optarg ;;
1161
1162  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163    verbose=yes ;;
1164
1165  -version | --version | --versio | --versi | --vers | -V)
1166    ac_init_version=: ;;
1167
1168  -with-* | --with-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: $ac_useropt"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=\$ac_optarg ;;
1183
1184  -without-* | --without-*)
1185    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186    # Reject names that are not valid shell variable names.
1187    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188      as_fn_error $? "invalid package name: $ac_useropt"
1189    ac_useropt_orig=$ac_useropt
1190    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191    case $ac_user_opts in
1192      *"
1193"with_$ac_useropt"
1194"*) ;;
1195      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196	 ac_unrecognized_sep=', ';;
1197    esac
1198    eval with_$ac_useropt=no ;;
1199
1200  --x)
1201    # Obsolete; use --with-x.
1202    with_x=yes ;;
1203
1204  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205  | --x-incl | --x-inc | --x-in | --x-i)
1206    ac_prev=x_includes ;;
1207  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209    x_includes=$ac_optarg ;;
1210
1211  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213    ac_prev=x_libraries ;;
1214  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216    x_libraries=$ac_optarg ;;
1217
1218  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219Try \`$0 --help' for more information"
1220    ;;
1221
1222  *=*)
1223    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224    # Reject names that are not valid shell variable names.
1225    case $ac_envvar in #(
1226      '' | [0-9]* | *[!_$as_cr_alnum]* )
1227      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228    esac
1229    eval $ac_envvar=\$ac_optarg
1230    export $ac_envvar ;;
1231
1232  *)
1233    # FIXME: should be removed in autoconf 3.0.
1234    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238    ;;
1239
1240  esac
1241done
1242
1243if test -n "$ac_prev"; then
1244  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245  as_fn_error $? "missing argument to $ac_option"
1246fi
1247
1248if test -n "$ac_unrecognized_opts"; then
1249  case $enable_option_checking in
1250    no) ;;
1251    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253  esac
1254fi
1255
1256# Check all directory arguments for consistency.
1257for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258		datadir sysconfdir sharedstatedir localstatedir includedir \
1259		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260		libdir localedir mandir
1261do
1262  eval ac_val=\$$ac_var
1263  # Remove trailing slashes.
1264  case $ac_val in
1265    */ )
1266      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267      eval $ac_var=\$ac_val;;
1268  esac
1269  # Be sure to have absolute directory names.
1270  case $ac_val in
1271    [\\/$]* | ?:[\\/]* )  continue;;
1272    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273  esac
1274  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275done
1276
1277# There might be people who depend on the old broken behavior: `$host'
1278# used to hold the argument of --host etc.
1279# FIXME: To remove some day.
1280build=$build_alias
1281host=$host_alias
1282target=$target_alias
1283
1284# FIXME: To remove some day.
1285if test "x$host_alias" != x; then
1286  if test "x$build_alias" = x; then
1287    cross_compiling=maybe
1288  elif test "x$build_alias" != "x$host_alias"; then
1289    cross_compiling=yes
1290  fi
1291fi
1292
1293ac_tool_prefix=
1294test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296test "$silent" = yes && exec 6>/dev/null
1297
1298
1299ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300ac_ls_di=`ls -di .` &&
1301ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302  as_fn_error $? "working directory cannot be determined"
1303test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304  as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307# Find the source files, if location was not specified.
1308if test -z "$srcdir"; then
1309  ac_srcdir_defaulted=yes
1310  # Try the directory containing this script, then the parent directory.
1311  ac_confdir=`$as_dirname -- "$as_myself" ||
1312$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313	 X"$as_myself" : 'X\(//\)[^/]' \| \
1314	 X"$as_myself" : 'X\(//\)$' \| \
1315	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316$as_echo X"$as_myself" |
1317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318	    s//\1/
1319	    q
1320	  }
1321	  /^X\(\/\/\)[^/].*/{
1322	    s//\1/
1323	    q
1324	  }
1325	  /^X\(\/\/\)$/{
1326	    s//\1/
1327	    q
1328	  }
1329	  /^X\(\/\).*/{
1330	    s//\1/
1331	    q
1332	  }
1333	  s/.*/./; q'`
1334  srcdir=$ac_confdir
1335  if test ! -r "$srcdir/$ac_unique_file"; then
1336    srcdir=..
1337  fi
1338else
1339  ac_srcdir_defaulted=no
1340fi
1341if test ! -r "$srcdir/$ac_unique_file"; then
1342  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344fi
1345ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346ac_abs_confdir=`(
1347	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348	pwd)`
1349# When building in place, set srcdir=.
1350if test "$ac_abs_confdir" = "$ac_pwd"; then
1351  srcdir=.
1352fi
1353# Remove unnecessary trailing slashes from srcdir.
1354# Double slashes in file names in object file debugging info
1355# mess up M-x gdb in Emacs.
1356case $srcdir in
1357*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358esac
1359for ac_var in $ac_precious_vars; do
1360  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361  eval ac_env_${ac_var}_value=\$${ac_var}
1362  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364done
1365
1366#
1367# Report the --help message.
1368#
1369if test "$ac_init_help" = "long"; then
1370  # Omit some internal or obsolete options to make the list less imposing.
1371  # This message is too long to be a string in the A/UX 3.1 sh.
1372  cat <<_ACEOF
1373\`configure' configures this package to adapt to many kinds of systems.
1374
1375Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378VAR=VALUE.  See below for descriptions of some of the useful variables.
1379
1380Defaults for the options are specified in brackets.
1381
1382Configuration:
1383  -h, --help              display this help and exit
1384      --help=short        display options specific to this package
1385      --help=recursive    display the short help of all the included packages
1386  -V, --version           display version information and exit
1387  -q, --quiet, --silent   do not print \`checking ...' messages
1388      --cache-file=FILE   cache test results in FILE [disabled]
1389  -C, --config-cache      alias for \`--cache-file=config.cache'
1390  -n, --no-create         do not create output files
1391      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1392
1393Installation directories:
1394  --prefix=PREFIX         install architecture-independent files in PREFIX
1395                          [$ac_default_prefix]
1396  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1397                          [PREFIX]
1398
1399By default, \`make install' will install all the files in
1400\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1401an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402for instance \`--prefix=\$HOME'.
1403
1404For better control, use the options below.
1405
1406Fine tuning of the installation directories:
1407  --bindir=DIR            user executables [EPREFIX/bin]
1408  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1409  --libexecdir=DIR        program executables [EPREFIX/libexec]
1410  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1411  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1412  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1413  --libdir=DIR            object code libraries [EPREFIX/lib]
1414  --includedir=DIR        C header files [PREFIX/include]
1415  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1416  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1417  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1418  --infodir=DIR           info documentation [DATAROOTDIR/info]
1419  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1420  --mandir=DIR            man documentation [DATAROOTDIR/man]
1421  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1422  --htmldir=DIR           html documentation [DOCDIR]
1423  --dvidir=DIR            dvi documentation [DOCDIR]
1424  --pdfdir=DIR            pdf documentation [DOCDIR]
1425  --psdir=DIR             ps documentation [DOCDIR]
1426_ACEOF
1427
1428  cat <<\_ACEOF
1429
1430System types:
1431  --build=BUILD     configure for building on BUILD [guessed]
1432  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1433_ACEOF
1434fi
1435
1436if test -n "$ac_init_help"; then
1437
1438  cat <<\_ACEOF
1439
1440Optional Features:
1441  --disable-option-checking  ignore unrecognized --enable/--with options
1442  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1443  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1444  --disable-cxx           Disable C++ integration
1445  --enable-autogen        Automatically regenerate configure output
1446  --enable-doc            Build documentation
1447  --enable-shared         Build shared libaries
1448  --enable-static         Build static libaries
1449  --enable-debug          Build debugging code
1450  --disable-stats         Disable statistics calculation/reporting
1451  --enable-experimental-smallocx
1452                          Enable experimental smallocx API
1453  --enable-prof           Enable allocation profiling
1454  --enable-prof-libunwind Use libunwind for backtracing
1455  --disable-prof-libgcc   Do not use libgcc for backtracing
1456  --disable-prof-gcc      Do not use gcc intrinsics for backtracing
1457  --disable-fill          Disable support for junk/zero filling
1458  --enable-utrace         Enable utrace(2)-based tracing
1459  --enable-xmalloc        Support xmalloc option
1460  --disable-cache-oblivious
1461                          Disable support for cache-oblivious allocation
1462                          alignment
1463  --enable-log            Support debug logging
1464  --enable-readlinkat     Use readlinkat over readlink
1465  --enable-opt-safety-checks
1466                          Perform certain low-overhead checks, even in opt
1467                          mode
1468  --enable-opt-size-checks
1469                          Perform sized-deallocation argument checks, even in
1470                          opt mode
1471  --enable-uaf-detection  Allow sampled junk-filling on deallocation to detect
1472                          use-after-free
1473  --disable-libdl         Do not use libdl
1474  --disable-syscall       Disable use of syscall(2)
1475  --enable-lazy-lock      Enable lazy locking (only lock when multi-threaded)
1476  --disable-zone-allocator
1477                          Disable zone allocator for Darwin
1478  --disable-initial-exec-tls
1479                          Disable the initial-exec tls model
1480
1481Optional Packages:
1482  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1483  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1484  --with-xslroot=<path>   XSL stylesheet root path
1485  --with-lg-vaddr=<lg-vaddr>
1486                          Number of significant virtual address bits
1487  --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
1488                          Version string
1489  --with-rpath=<rpath>    Colon-separated rpath (ELF systems only)
1490  --with-mangling=<map>   Mangle symbols in <map>
1491  --with-jemalloc-prefix=<prefix>
1492                          Prefix to prepend to all public APIs
1493  --without-export        disable exporting jemalloc public APIs
1494  --with-private-namespace=<prefix>
1495                          Prefix to prepend to all library-private APIs
1496  --with-install-suffix=<suffix>
1497                          Suffix to append to all installed files
1498  --with-malloc-conf=<malloc_conf>
1499                          config.malloc_conf options string
1500  --with-static-libunwind=<libunwind.a>
1501                          Path to static libunwind library; use rather than
1502                          dynamically linking
1503  --with-lg-quantum=<lg-quantum>
1504                          Base 2 log of minimum allocation alignment
1505  --with-lg-slab-maxregs=<lg-slab-maxregs>
1506                          Base 2 log of maximum number of regions in a slab
1507                          (used with malloc_conf slab_sizes)
1508  --with-lg-page=<lg-page>
1509                          Base 2 log of system page size
1510  --with-lg-hugepage=<lg-hugepage>
1511                          Base 2 log of system huge page size
1512
1513Some influential environment variables:
1514  CC          C compiler command
1515  CFLAGS      C compiler flags
1516  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1517              nonstandard directory <lib dir>
1518  LIBS        libraries to pass to the linker, e.g. -l<library>
1519  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520              you have headers in a nonstandard directory <include dir>
1521  CPP         C preprocessor
1522  CXX         C++ compiler command
1523  CXXFLAGS    C++ compiler flags
1524
1525Use these variables to override the choices made by `configure' or to help
1526it to find libraries and programs with nonstandard names/locations.
1527
1528Report bugs to the package provider.
1529_ACEOF
1530ac_status=$?
1531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534  # If there are subdirs, report their specific --help.
1535  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536    test -d "$ac_dir" ||
1537      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538      continue
1539    ac_builddir=.
1540
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
1544  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545  # A ".." for each directory in $ac_dir_suffix.
1546  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547  case $ac_top_builddir_sub in
1548  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550  esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
1556
1557case $srcdir in
1558  .)  # We are building in place.
1559    ac_srcdir=.
1560    ac_top_srcdir=$ac_top_builddir_sub
1561    ac_abs_top_srcdir=$ac_pwd ;;
1562  [\\/]* | ?:[\\/]* )  # Absolute name.
1563    ac_srcdir=$srcdir$ac_dir_suffix;
1564    ac_top_srcdir=$srcdir
1565    ac_abs_top_srcdir=$srcdir ;;
1566  *) # Relative name.
1567    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568    ac_top_srcdir=$ac_top_build_prefix$srcdir
1569    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570esac
1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573    cd "$ac_dir" || { ac_status=$?; continue; }
1574    # Check for guested configure.
1575    if test -f "$ac_srcdir/configure.gnu"; then
1576      echo &&
1577      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578    elif test -f "$ac_srcdir/configure"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure" --help=recursive
1581    else
1582      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583    fi || ac_status=$?
1584    cd "$ac_pwd" || { ac_status=$?; break; }
1585  done
1586fi
1587
1588test -n "$ac_init_help" && exit $ac_status
1589if $ac_init_version; then
1590  cat <<\_ACEOF
1591configure
1592generated by GNU Autoconf 2.69
1593
1594Copyright (C) 2012 Free Software Foundation, Inc.
1595This configure script is free software; the Free Software Foundation
1596gives unlimited permission to copy, distribute and modify it.
1597_ACEOF
1598  exit
1599fi
1600
1601## ------------------------ ##
1602## Autoconf initialization. ##
1603## ------------------------ ##
1604
1605# ac_fn_c_try_compile LINENO
1606# --------------------------
1607# Try to compile conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_compile ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  rm -f conftest.$ac_objext
1612  if { { ac_try="$ac_compile"
1613case "(($ac_try" in
1614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615  *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619  (eval "$ac_compile") 2>conftest.err
1620  ac_status=$?
1621  if test -s conftest.err; then
1622    grep -v '^ *+' conftest.err >conftest.er1
1623    cat conftest.er1 >&5
1624    mv -f conftest.er1 conftest.err
1625  fi
1626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627  test $ac_status = 0; } && {
1628	 test -z "$ac_c_werror_flag" ||
1629	 test ! -s conftest.err
1630       } && test -s conftest.$ac_objext; then :
1631  ac_retval=0
1632else
1633  $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636	ac_retval=1
1637fi
1638  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639  as_fn_set_status $ac_retval
1640
1641} # ac_fn_c_try_compile
1642
1643# ac_fn_c_try_cpp LINENO
1644# ----------------------
1645# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_c_try_cpp ()
1647{
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  if { { ac_try="$ac_cpp conftest.$ac_ext"
1650case "(($ac_try" in
1651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652  *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657  ac_status=$?
1658  if test -s conftest.err; then
1659    grep -v '^ *+' conftest.err >conftest.er1
1660    cat conftest.er1 >&5
1661    mv -f conftest.er1 conftest.err
1662  fi
1663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664  test $ac_status = 0; } > conftest.i && {
1665	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666	 test ! -s conftest.err
1667       }; then :
1668  ac_retval=0
1669else
1670  $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673    ac_retval=1
1674fi
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676  as_fn_set_status $ac_retval
1677
1678} # ac_fn_c_try_cpp
1679
1680# ac_fn_cxx_try_compile LINENO
1681# ----------------------------
1682# Try to compile conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_cxx_try_compile ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  rm -f conftest.$ac_objext
1687  if { { ac_try="$ac_compile"
1688case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694  (eval "$ac_compile") 2>conftest.err
1695  ac_status=$?
1696  if test -s conftest.err; then
1697    grep -v '^ *+' conftest.err >conftest.er1
1698    cat conftest.er1 >&5
1699    mv -f conftest.er1 conftest.err
1700  fi
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } && {
1703	 test -z "$ac_cxx_werror_flag" ||
1704	 test ! -s conftest.err
1705       } && test -s conftest.$ac_objext; then :
1706  ac_retval=0
1707else
1708  $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711	ac_retval=1
1712fi
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_cxx_try_compile
1717
1718# ac_fn_c_try_link LINENO
1719# -----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_link ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  rm -f conftest.$ac_objext conftest$ac_exeext
1725  if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728  *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732  (eval "$ac_link") 2>conftest.err
1733  ac_status=$?
1734  if test -s conftest.err; then
1735    grep -v '^ *+' conftest.err >conftest.er1
1736    cat conftest.er1 >&5
1737    mv -f conftest.er1 conftest.err
1738  fi
1739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740  test $ac_status = 0; } && {
1741	 test -z "$ac_c_werror_flag" ||
1742	 test ! -s conftest.err
1743       } && test -s conftest$ac_exeext && {
1744	 test "$cross_compiling" = yes ||
1745	 test -x conftest$ac_exeext
1746       }; then :
1747  ac_retval=0
1748else
1749  $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752	ac_retval=1
1753fi
1754  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756  # interfere with the next link command; also delete a directory that is
1757  # left behind by Apple's compiler.  We do this before executing the actions.
1758  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760  as_fn_set_status $ac_retval
1761
1762} # ac_fn_c_try_link
1763
1764# ac_fn_c_try_run LINENO
1765# ----------------------
1766# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767# that executables *can* be run.
1768ac_fn_c_try_run ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  if { { ac_try="$ac_link"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_link") 2>&5
1779  ac_status=$?
1780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782  { { case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_try") 2>&5
1789  ac_status=$?
1790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; }; }; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: program exited with status $ac_status" >&5
1795       $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798       ac_retval=$ac_status
1799fi
1800  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802  as_fn_set_status $ac_retval
1803
1804} # ac_fn_c_try_run
1805
1806# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1807# -------------------------------------------------------
1808# Tests whether HEADER exists and can be compiled using the include files in
1809# INCLUDES, setting the cache variable VAR accordingly.
1810ac_fn_c_check_header_compile ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if eval \${$3+:} false; then :
1816  $as_echo_n "(cached) " >&6
1817else
1818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819/* end confdefs.h.  */
1820$4
1821#include <$2>
1822_ACEOF
1823if ac_fn_c_try_compile "$LINENO"; then :
1824  eval "$3=yes"
1825else
1826  eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835} # ac_fn_c_check_header_compile
1836
1837# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1838# --------------------------------------------
1839# Tries to find the compile-time value of EXPR in a program that includes
1840# INCLUDES, setting VAR accordingly. Returns whether the value could be
1841# computed
1842ac_fn_c_compute_int ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  if test "$cross_compiling" = yes; then
1846    # Depending upon the size, compute the lo and hi bounds.
1847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848/* end confdefs.h.  */
1849$4
1850int
1851main ()
1852{
1853static int test_array [1 - 2 * !(($2) >= 0)];
1854test_array [0] = 0;
1855return test_array [0];
1856
1857  ;
1858  return 0;
1859}
1860_ACEOF
1861if ac_fn_c_try_compile "$LINENO"; then :
1862  ac_lo=0 ac_mid=0
1863  while :; do
1864    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866$4
1867int
1868main ()
1869{
1870static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1871test_array [0] = 0;
1872return test_array [0];
1873
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_compile "$LINENO"; then :
1879  ac_hi=$ac_mid; break
1880else
1881  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1882			if test $ac_lo -le $ac_mid; then
1883			  ac_lo= ac_hi=
1884			  break
1885			fi
1886			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1887fi
1888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889  done
1890else
1891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893$4
1894int
1895main ()
1896{
1897static int test_array [1 - 2 * !(($2) < 0)];
1898test_array [0] = 0;
1899return test_array [0];
1900
1901  ;
1902  return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906  ac_hi=-1 ac_mid=-1
1907  while :; do
1908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h.  */
1910$4
1911int
1912main ()
1913{
1914static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1915test_array [0] = 0;
1916return test_array [0];
1917
1918  ;
1919  return 0;
1920}
1921_ACEOF
1922if ac_fn_c_try_compile "$LINENO"; then :
1923  ac_lo=$ac_mid; break
1924else
1925  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1926			if test $ac_mid -le $ac_hi; then
1927			  ac_lo= ac_hi=
1928			  break
1929			fi
1930			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1931fi
1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933  done
1934else
1935  ac_lo= ac_hi=
1936fi
1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940# Binary search between lo and hi bounds.
1941while test "x$ac_lo" != "x$ac_hi"; do
1942  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h.  */
1945$4
1946int
1947main ()
1948{
1949static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1950test_array [0] = 0;
1951return test_array [0];
1952
1953  ;
1954  return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958  ac_hi=$ac_mid
1959else
1960  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1961fi
1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963done
1964case $ac_lo in #((
1965?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1966'') ac_retval=1 ;;
1967esac
1968  else
1969    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h.  */
1971$4
1972static long int longval () { return $2; }
1973static unsigned long int ulongval () { return $2; }
1974#include <stdio.h>
1975#include <stdlib.h>
1976int
1977main ()
1978{
1979
1980  FILE *f = fopen ("conftest.val", "w");
1981  if (! f)
1982    return 1;
1983  if (($2) < 0)
1984    {
1985      long int i = longval ();
1986      if (i != ($2))
1987	return 1;
1988      fprintf (f, "%ld", i);
1989    }
1990  else
1991    {
1992      unsigned long int i = ulongval ();
1993      if (i != ($2))
1994	return 1;
1995      fprintf (f, "%lu", i);
1996    }
1997  /* Do not output a trailing newline, as this causes \r\n confusion
1998     on some platforms.  */
1999  return ferror (f) || fclose (f) != 0;
2000
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_run "$LINENO"; then :
2006  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2007else
2008  ac_retval=1
2009fi
2010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2011  conftest.$ac_objext conftest.beam conftest.$ac_ext
2012rm -f conftest.val
2013
2014  fi
2015  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016  as_fn_set_status $ac_retval
2017
2018} # ac_fn_c_compute_int
2019
2020# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2021# -------------------------------------------------------
2022# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2023# the include files in INCLUDES and setting the cache variable VAR
2024# accordingly.
2025ac_fn_c_check_header_mongrel ()
2026{
2027  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028  if eval \${$3+:} false; then :
2029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030$as_echo_n "checking for $2... " >&6; }
2031if eval \${$3+:} false; then :
2032  $as_echo_n "(cached) " >&6
2033fi
2034eval ac_res=\$$3
2035	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036$as_echo "$ac_res" >&6; }
2037else
2038  # Is the header compilable?
2039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2040$as_echo_n "checking $2 usability... " >&6; }
2041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h.  */
2043$4
2044#include <$2>
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047  ac_header_compiler=yes
2048else
2049  ac_header_compiler=no
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2053$as_echo "$ac_header_compiler" >&6; }
2054
2055# Is the header present?
2056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2057$as_echo_n "checking $2 presence... " >&6; }
2058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h.  */
2060#include <$2>
2061_ACEOF
2062if ac_fn_c_try_cpp "$LINENO"; then :
2063  ac_header_preproc=yes
2064else
2065  ac_header_preproc=no
2066fi
2067rm -f conftest.err conftest.i conftest.$ac_ext
2068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2069$as_echo "$ac_header_preproc" >&6; }
2070
2071# So?  What about this header?
2072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2073  yes:no: )
2074    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2075$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2076    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2077$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2078    ;;
2079  no:yes:* )
2080    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2081$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2082    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2083$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2085$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2086    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2087$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2088    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2089$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2090    ;;
2091esac
2092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093$as_echo_n "checking for $2... " >&6; }
2094if eval \${$3+:} false; then :
2095  $as_echo_n "(cached) " >&6
2096else
2097  eval "$3=\$ac_header_compiler"
2098fi
2099eval ac_res=\$$3
2100	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101$as_echo "$ac_res" >&6; }
2102fi
2103  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104
2105} # ac_fn_c_check_header_mongrel
2106
2107# ac_fn_c_check_func LINENO FUNC VAR
2108# ----------------------------------
2109# Tests whether FUNC exists, setting the cache variable VAR accordingly
2110ac_fn_c_check_func ()
2111{
2112  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114$as_echo_n "checking for $2... " >&6; }
2115if eval \${$3+:} false; then :
2116  $as_echo_n "(cached) " >&6
2117else
2118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h.  */
2120/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2121   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2122#define $2 innocuous_$2
2123
2124/* System header to define __stub macros and hopefully few prototypes,
2125    which can conflict with char $2 (); below.
2126    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2127    <limits.h> exists even on freestanding compilers.  */
2128
2129#ifdef __STDC__
2130# include <limits.h>
2131#else
2132# include <assert.h>
2133#endif
2134
2135#undef $2
2136
2137/* Override any GCC internal prototype to avoid an error.
2138   Use char because int might match the return type of a GCC
2139   builtin and then its argument prototype would still apply.  */
2140#ifdef __cplusplus
2141extern "C"
2142#endif
2143char $2 ();
2144/* The GNU C library defines this for functions which it implements
2145    to always fail with ENOSYS.  Some functions are actually named
2146    something starting with __ and the normal name is an alias.  */
2147#if defined __stub_$2 || defined __stub___$2
2148choke me
2149#endif
2150
2151int
2152main ()
2153{
2154return $2 ();
2155  ;
2156  return 0;
2157}
2158_ACEOF
2159if ac_fn_c_try_link "$LINENO"; then :
2160  eval "$3=yes"
2161else
2162  eval "$3=no"
2163fi
2164rm -f core conftest.err conftest.$ac_objext \
2165    conftest$ac_exeext conftest.$ac_ext
2166fi
2167eval ac_res=\$$3
2168	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169$as_echo "$ac_res" >&6; }
2170  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171
2172} # ac_fn_c_check_func
2173
2174# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2175# -------------------------------------------
2176# Tests whether TYPE exists after having included INCLUDES, setting cache
2177# variable VAR accordingly.
2178ac_fn_c_check_type ()
2179{
2180  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182$as_echo_n "checking for $2... " >&6; }
2183if eval \${$3+:} false; then :
2184  $as_echo_n "(cached) " >&6
2185else
2186  eval "$3=no"
2187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h.  */
2189$4
2190int
2191main ()
2192{
2193if (sizeof ($2))
2194	 return 0;
2195  ;
2196  return 0;
2197}
2198_ACEOF
2199if ac_fn_c_try_compile "$LINENO"; then :
2200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201/* end confdefs.h.  */
2202$4
2203int
2204main ()
2205{
2206if (sizeof (($2)))
2207	    return 0;
2208  ;
2209  return 0;
2210}
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213
2214else
2215  eval "$3=yes"
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220fi
2221eval ac_res=\$$3
2222	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223$as_echo "$ac_res" >&6; }
2224  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225
2226} # ac_fn_c_check_type
2227cat >config.log <<_ACEOF
2228This file contains any messages produced by compilers while
2229running configure, to aid debugging if configure makes a mistake.
2230
2231It was created by $as_me, which was
2232generated by GNU Autoconf 2.69.  Invocation command line was
2233
2234  $ $0 $@
2235
2236_ACEOF
2237exec 5>>config.log
2238{
2239cat <<_ASUNAME
2240## --------- ##
2241## Platform. ##
2242## --------- ##
2243
2244hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2245uname -m = `(uname -m) 2>/dev/null || echo unknown`
2246uname -r = `(uname -r) 2>/dev/null || echo unknown`
2247uname -s = `(uname -s) 2>/dev/null || echo unknown`
2248uname -v = `(uname -v) 2>/dev/null || echo unknown`
2249
2250/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2251/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2252
2253/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2254/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2255/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2256/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2257/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2258/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2259/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2260
2261_ASUNAME
2262
2263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH
2265do
2266  IFS=$as_save_IFS
2267  test -z "$as_dir" && as_dir=.
2268    $as_echo "PATH: $as_dir"
2269  done
2270IFS=$as_save_IFS
2271
2272} >&5
2273
2274cat >&5 <<_ACEOF
2275
2276
2277## ----------- ##
2278## Core tests. ##
2279## ----------- ##
2280
2281_ACEOF
2282
2283
2284# Keep a trace of the command line.
2285# Strip out --no-create and --no-recursion so they do not pile up.
2286# Strip out --silent because we don't want to record it for future runs.
2287# Also quote any args containing shell meta-characters.
2288# Make two passes to allow for proper duplicate-argument suppression.
2289ac_configure_args=
2290ac_configure_args0=
2291ac_configure_args1=
2292ac_must_keep_next=false
2293for ac_pass in 1 2
2294do
2295  for ac_arg
2296  do
2297    case $ac_arg in
2298    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2299    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2300    | -silent | --silent | --silen | --sile | --sil)
2301      continue ;;
2302    *\'*)
2303      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2304    esac
2305    case $ac_pass in
2306    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2307    2)
2308      as_fn_append ac_configure_args1 " '$ac_arg'"
2309      if test $ac_must_keep_next = true; then
2310	ac_must_keep_next=false # Got value, back to normal.
2311      else
2312	case $ac_arg in
2313	  *=* | --config-cache | -C | -disable-* | --disable-* \
2314	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2315	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2316	  | -with-* | --with-* | -without-* | --without-* | --x)
2317	    case "$ac_configure_args0 " in
2318	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2319	    esac
2320	    ;;
2321	  -* ) ac_must_keep_next=true ;;
2322	esac
2323      fi
2324      as_fn_append ac_configure_args " '$ac_arg'"
2325      ;;
2326    esac
2327  done
2328done
2329{ ac_configure_args0=; unset ac_configure_args0;}
2330{ ac_configure_args1=; unset ac_configure_args1;}
2331
2332# When interrupted or exit'd, cleanup temporary files, and complete
2333# config.log.  We remove comments because anyway the quotes in there
2334# would cause problems or look ugly.
2335# WARNING: Use '\'' to represent an apostrophe within the trap.
2336# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2337trap 'exit_status=$?
2338  # Save into config.log some information that might help in debugging.
2339  {
2340    echo
2341
2342    $as_echo "## ---------------- ##
2343## Cache variables. ##
2344## ---------------- ##"
2345    echo
2346    # The following way of writing the cache mishandles newlines in values,
2347(
2348  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2349    eval ac_val=\$$ac_var
2350    case $ac_val in #(
2351    *${as_nl}*)
2352      case $ac_var in #(
2353      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2354$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2355      esac
2356      case $ac_var in #(
2357      _ | IFS | as_nl) ;; #(
2358      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2359      *) { eval $ac_var=; unset $ac_var;} ;;
2360      esac ;;
2361    esac
2362  done
2363  (set) 2>&1 |
2364    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2365    *${as_nl}ac_space=\ *)
2366      sed -n \
2367	"s/'\''/'\''\\\\'\'''\''/g;
2368	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2369      ;; #(
2370    *)
2371      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2372      ;;
2373    esac |
2374    sort
2375)
2376    echo
2377
2378    $as_echo "## ----------------- ##
2379## Output variables. ##
2380## ----------------- ##"
2381    echo
2382    for ac_var in $ac_subst_vars
2383    do
2384      eval ac_val=\$$ac_var
2385      case $ac_val in
2386      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2387      esac
2388      $as_echo "$ac_var='\''$ac_val'\''"
2389    done | sort
2390    echo
2391
2392    if test -n "$ac_subst_files"; then
2393      $as_echo "## ------------------- ##
2394## File substitutions. ##
2395## ------------------- ##"
2396      echo
2397      for ac_var in $ac_subst_files
2398      do
2399	eval ac_val=\$$ac_var
2400	case $ac_val in
2401	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402	esac
2403	$as_echo "$ac_var='\''$ac_val'\''"
2404      done | sort
2405      echo
2406    fi
2407
2408    if test -s confdefs.h; then
2409      $as_echo "## ----------- ##
2410## confdefs.h. ##
2411## ----------- ##"
2412      echo
2413      cat confdefs.h
2414      echo
2415    fi
2416    test "$ac_signal" != 0 &&
2417      $as_echo "$as_me: caught signal $ac_signal"
2418    $as_echo "$as_me: exit $exit_status"
2419  } >&5
2420  rm -f core *.core core.conftest.* &&
2421    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2422    exit $exit_status
2423' 0
2424for ac_signal in 1 2 13 15; do
2425  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2426done
2427ac_signal=0
2428
2429# confdefs.h avoids OS command line length limits that DEFS can exceed.
2430rm -f -r conftest* confdefs.h
2431
2432$as_echo "/* confdefs.h */" > confdefs.h
2433
2434# Predefined preprocessor variables.
2435
2436cat >>confdefs.h <<_ACEOF
2437#define PACKAGE_NAME "$PACKAGE_NAME"
2438_ACEOF
2439
2440cat >>confdefs.h <<_ACEOF
2441#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2442_ACEOF
2443
2444cat >>confdefs.h <<_ACEOF
2445#define PACKAGE_VERSION "$PACKAGE_VERSION"
2446_ACEOF
2447
2448cat >>confdefs.h <<_ACEOF
2449#define PACKAGE_STRING "$PACKAGE_STRING"
2450_ACEOF
2451
2452cat >>confdefs.h <<_ACEOF
2453#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2454_ACEOF
2455
2456cat >>confdefs.h <<_ACEOF
2457#define PACKAGE_URL "$PACKAGE_URL"
2458_ACEOF
2459
2460
2461# Let the site file select an alternate cache file if it wants to.
2462# Prefer an explicitly selected file to automatically selected ones.
2463ac_site_file1=NONE
2464ac_site_file2=NONE
2465if test -n "$CONFIG_SITE"; then
2466  # We do not want a PATH search for config.site.
2467  case $CONFIG_SITE in #((
2468    -*)  ac_site_file1=./$CONFIG_SITE;;
2469    */*) ac_site_file1=$CONFIG_SITE;;
2470    *)   ac_site_file1=./$CONFIG_SITE;;
2471  esac
2472elif test "x$prefix" != xNONE; then
2473  ac_site_file1=$prefix/share/config.site
2474  ac_site_file2=$prefix/etc/config.site
2475else
2476  ac_site_file1=$ac_default_prefix/share/config.site
2477  ac_site_file2=$ac_default_prefix/etc/config.site
2478fi
2479for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2480do
2481  test "x$ac_site_file" = xNONE && continue
2482  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2483    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2484$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2485    sed 's/^/| /' "$ac_site_file" >&5
2486    . "$ac_site_file" \
2487      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489as_fn_error $? "failed to load site script $ac_site_file
2490See \`config.log' for more details" "$LINENO" 5; }
2491  fi
2492done
2493
2494if test -r "$cache_file"; then
2495  # Some versions of bash will fail to source /dev/null (special files
2496  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2497  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2498    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2499$as_echo "$as_me: loading cache $cache_file" >&6;}
2500    case $cache_file in
2501      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2502      *)                      . "./$cache_file";;
2503    esac
2504  fi
2505else
2506  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2507$as_echo "$as_me: creating cache $cache_file" >&6;}
2508  >$cache_file
2509fi
2510
2511# Check that the precious variables saved in the cache have kept the same
2512# value.
2513ac_cache_corrupted=false
2514for ac_var in $ac_precious_vars; do
2515  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2516  eval ac_new_set=\$ac_env_${ac_var}_set
2517  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2518  eval ac_new_val=\$ac_env_${ac_var}_value
2519  case $ac_old_set,$ac_new_set in
2520    set,)
2521      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2522$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2523      ac_cache_corrupted=: ;;
2524    ,set)
2525      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2526$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2527      ac_cache_corrupted=: ;;
2528    ,);;
2529    *)
2530      if test "x$ac_old_val" != "x$ac_new_val"; then
2531	# differences in whitespace do not lead to failure.
2532	ac_old_val_w=`echo x $ac_old_val`
2533	ac_new_val_w=`echo x $ac_new_val`
2534	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2535	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2536$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2537	  ac_cache_corrupted=:
2538	else
2539	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2540$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2541	  eval $ac_var=\$ac_old_val
2542	fi
2543	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2544$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2545	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2546$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2547      fi;;
2548  esac
2549  # Pass precious variables to config.status.
2550  if test "$ac_new_set" = set; then
2551    case $ac_new_val in
2552    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2553    *) ac_arg=$ac_var=$ac_new_val ;;
2554    esac
2555    case " $ac_configure_args " in
2556      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2557      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2558    esac
2559  fi
2560done
2561if $ac_cache_corrupted; then
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2565$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2566  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2567fi
2568## -------------------- ##
2569## Main body of script. ##
2570## -------------------- ##
2571
2572ac_ext=c
2573ac_cpp='$CPP $CPPFLAGS'
2574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577
2578
2579
2580ac_aux_dir=
2581for ac_dir in build-aux "$srcdir"/build-aux; do
2582  if test -f "$ac_dir/install-sh"; then
2583    ac_aux_dir=$ac_dir
2584    ac_install_sh="$ac_aux_dir/install-sh -c"
2585    break
2586  elif test -f "$ac_dir/install.sh"; then
2587    ac_aux_dir=$ac_dir
2588    ac_install_sh="$ac_aux_dir/install.sh -c"
2589    break
2590  elif test -f "$ac_dir/shtool"; then
2591    ac_aux_dir=$ac_dir
2592    ac_install_sh="$ac_aux_dir/shtool install -c"
2593    break
2594  fi
2595done
2596if test -z "$ac_aux_dir"; then
2597  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2598fi
2599
2600# These three variables are undocumented and unsupported,
2601# and are intended to be withdrawn in a future Autoconf release.
2602# They can cause serious problems if a builder's source tree is in a directory
2603# whose full name contains unusual characters.
2604ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2605ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2606ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2607
2608
2609
2610
2611
2612
2613
2614
2615CONFIGURE_CFLAGS=
2616SPECIFIED_CFLAGS="${CFLAGS}"
2617
2618
2619
2620
2621
2622CONFIGURE_CXXFLAGS=
2623SPECIFIED_CXXFLAGS="${CXXFLAGS}"
2624
2625
2626
2627
2628
2629CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
2630
2631
2632rev=2
2633
2634
2635srcroot=$srcdir
2636if test "x${srcroot}" = "x." ; then
2637  srcroot=""
2638else
2639  srcroot="${srcroot}/"
2640fi
2641
2642abs_srcroot="`cd \"${srcdir}\"; pwd`/"
2643
2644
2645objroot=""
2646
2647abs_objroot="`pwd`/"
2648
2649
2650case "$prefix" in
2651   *\ * ) as_fn_error $? "Prefix should not contain spaces" "$LINENO" 5 ;;
2652   "NONE" ) prefix="/usr/local" ;;
2653esac
2654case "$exec_prefix" in
2655   *\ * ) as_fn_error $? "Exec prefix should not contain spaces" "$LINENO" 5 ;;
2656   "NONE" ) exec_prefix=$prefix ;;
2657esac
2658PREFIX=$prefix
2659
2660BINDIR=`eval echo $bindir`
2661BINDIR=`eval echo $BINDIR`
2662
2663INCLUDEDIR=`eval echo $includedir`
2664INCLUDEDIR=`eval echo $INCLUDEDIR`
2665
2666LIBDIR=`eval echo $libdir`
2667LIBDIR=`eval echo $LIBDIR`
2668
2669DATADIR=`eval echo $datadir`
2670DATADIR=`eval echo $DATADIR`
2671
2672MANDIR=`eval echo $mandir`
2673MANDIR=`eval echo $MANDIR`
2674
2675
2676# Extract the first word of "xsltproc", so it can be a program name with args.
2677set dummy xsltproc; ac_word=$2
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
2680if ${ac_cv_path_XSLTPROC+:} false; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  case $XSLTPROC in
2684  [\\/]* | ?:[\\/]*)
2685  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
2686  ;;
2687  *)
2688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691  IFS=$as_save_IFS
2692  test -z "$as_dir" && as_dir=.
2693    for ac_exec_ext in '' $ac_executable_extensions; do
2694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
2696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697    break 2
2698  fi
2699done
2700  done
2701IFS=$as_save_IFS
2702
2703  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
2704  ;;
2705esac
2706fi
2707XSLTPROC=$ac_cv_path_XSLTPROC
2708if test -n "$XSLTPROC"; then
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
2710$as_echo "$XSLTPROC" >&6; }
2711else
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713$as_echo "no" >&6; }
2714fi
2715
2716
2717if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
2718  DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2719elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
2720  DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
2721else
2722    DEFAULT_XSLROOT=""
2723fi
2724
2725# Check whether --with-xslroot was given.
2726if test "${with_xslroot+set}" = set; then :
2727  withval=$with_xslroot;
2728if test "x$with_xslroot" = "xno" ; then
2729  XSLROOT="${DEFAULT_XSLROOT}"
2730else
2731  XSLROOT="${with_xslroot}"
2732fi
2733
2734else
2735  XSLROOT="${DEFAULT_XSLROOT}"
2736
2737fi
2738
2739if test "x$XSLTPROC" = "xfalse" ; then
2740  XSLROOT=""
2741fi
2742
2743
2744CFLAGS=$CFLAGS
2745ac_ext=c
2746ac_cpp='$CPP $CPPFLAGS'
2747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750if test -n "$ac_tool_prefix"; then
2751  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2752set dummy ${ac_tool_prefix}gcc; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if ${ac_cv_prog_CC+:} false; then :
2756  $as_echo_n "(cached) " >&6
2757else
2758  if test -n "$CC"; then
2759  ac_cv_prog_CC="$CC" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764  IFS=$as_save_IFS
2765  test -z "$as_dir" && as_dir=.
2766    for ac_exec_ext in '' $ac_executable_extensions; do
2767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770    break 2
2771  fi
2772done
2773  done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778CC=$ac_cv_prog_CC
2779if test -n "$CC"; then
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781$as_echo "$CC" >&6; }
2782else
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787
2788fi
2789if test -z "$ac_cv_prog_CC"; then
2790  ac_ct_CC=$CC
2791  # Extract the first word of "gcc", so it can be a program name with args.
2792set dummy gcc; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if ${ac_cv_prog_ac_ct_CC+:} false; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  if test -n "$ac_ct_CC"; then
2799  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  test -z "$as_dir" && as_dir=.
2806    for ac_exec_ext in '' $ac_executable_extensions; do
2807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808    ac_cv_prog_ac_ct_CC="gcc"
2809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810    break 2
2811  fi
2812done
2813  done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819if test -n "$ac_ct_CC"; then
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2821$as_echo "$ac_ct_CC" >&6; }
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827  if test "x$ac_ct_CC" = x; then
2828    CC=""
2829  else
2830    case $cross_compiling:$ac_tool_warned in
2831yes:)
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834ac_tool_warned=yes ;;
2835esac
2836    CC=$ac_ct_CC
2837  fi
2838else
2839  CC="$ac_cv_prog_CC"
2840fi
2841
2842if test -z "$CC"; then
2843          if test -n "$ac_tool_prefix"; then
2844    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2845set dummy ${ac_tool_prefix}cc; ac_word=$2
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847$as_echo_n "checking for $ac_word... " >&6; }
2848if ${ac_cv_prog_CC+:} false; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  if test -n "$CC"; then
2852  ac_cv_prog_CC="$CC" # Let the user override the test.
2853else
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857  IFS=$as_save_IFS
2858  test -z "$as_dir" && as_dir=.
2859    for ac_exec_ext in '' $ac_executable_extensions; do
2860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861    ac_cv_prog_CC="${ac_tool_prefix}cc"
2862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866  done
2867IFS=$as_save_IFS
2868
2869fi
2870fi
2871CC=$ac_cv_prog_CC
2872if test -n "$CC"; then
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2874$as_echo "$CC" >&6; }
2875else
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877$as_echo "no" >&6; }
2878fi
2879
2880
2881  fi
2882fi
2883if test -z "$CC"; then
2884  # Extract the first word of "cc", so it can be a program name with args.
2885set dummy cc; ac_word=$2
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887$as_echo_n "checking for $ac_word... " >&6; }
2888if ${ac_cv_prog_CC+:} false; then :
2889  $as_echo_n "(cached) " >&6
2890else
2891  if test -n "$CC"; then
2892  ac_cv_prog_CC="$CC" # Let the user override the test.
2893else
2894  ac_prog_rejected=no
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898  IFS=$as_save_IFS
2899  test -z "$as_dir" && as_dir=.
2900    for ac_exec_ext in '' $ac_executable_extensions; do
2901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903       ac_prog_rejected=yes
2904       continue
2905     fi
2906    ac_cv_prog_CC="cc"
2907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908    break 2
2909  fi
2910done
2911  done
2912IFS=$as_save_IFS
2913
2914if test $ac_prog_rejected = yes; then
2915  # We found a bogon in the path, so make sure we never use it.
2916  set dummy $ac_cv_prog_CC
2917  shift
2918  if test $# != 0; then
2919    # We chose a different compiler from the bogus one.
2920    # However, it has the same basename, so the bogon will be chosen
2921    # first if we set CC to just the basename; use the full file name.
2922    shift
2923    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2924  fi
2925fi
2926fi
2927fi
2928CC=$ac_cv_prog_CC
2929if test -n "$CC"; then
2930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931$as_echo "$CC" >&6; }
2932else
2933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
2935fi
2936
2937
2938fi
2939if test -z "$CC"; then
2940  if test -n "$ac_tool_prefix"; then
2941  for ac_prog in cl.exe
2942  do
2943    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946$as_echo_n "checking for $ac_word... " >&6; }
2947if ${ac_cv_prog_CC+:} false; then :
2948  $as_echo_n "(cached) " >&6
2949else
2950  if test -n "$CC"; then
2951  ac_cv_prog_CC="$CC" # Let the user override the test.
2952else
2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH
2955do
2956  IFS=$as_save_IFS
2957  test -z "$as_dir" && as_dir=.
2958    for ac_exec_ext in '' $ac_executable_extensions; do
2959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962    break 2
2963  fi
2964done
2965  done
2966IFS=$as_save_IFS
2967
2968fi
2969fi
2970CC=$ac_cv_prog_CC
2971if test -n "$CC"; then
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973$as_echo "$CC" >&6; }
2974else
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977fi
2978
2979
2980    test -n "$CC" && break
2981  done
2982fi
2983if test -z "$CC"; then
2984  ac_ct_CC=$CC
2985  for ac_prog in cl.exe
2986do
2987  # Extract the first word of "$ac_prog", so it can be a program name with args.
2988set dummy $ac_prog; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990$as_echo_n "checking for $ac_word... " >&6; }
2991if ${ac_cv_prog_ac_ct_CC+:} false; then :
2992  $as_echo_n "(cached) " >&6
2993else
2994  if test -n "$ac_ct_CC"; then
2995  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000  IFS=$as_save_IFS
3001  test -z "$as_dir" && as_dir=.
3002    for ac_exec_ext in '' $ac_executable_extensions; do
3003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004    ac_cv_prog_ac_ct_CC="$ac_prog"
3005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009  done
3010IFS=$as_save_IFS
3011
3012fi
3013fi
3014ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015if test -n "$ac_ct_CC"; then
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3017$as_echo "$ac_ct_CC" >&6; }
3018else
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
3021fi
3022
3023
3024  test -n "$ac_ct_CC" && break
3025done
3026
3027  if test "x$ac_ct_CC" = x; then
3028    CC=""
3029  else
3030    case $cross_compiling:$ac_tool_warned in
3031yes:)
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034ac_tool_warned=yes ;;
3035esac
3036    CC=$ac_ct_CC
3037  fi
3038fi
3039
3040fi
3041
3042
3043test -z "$CC" && { { $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 $? "no acceptable C compiler found in \$PATH
3046See \`config.log' for more details" "$LINENO" 5; }
3047
3048# Provide some information about the compiler.
3049$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3050set X $ac_compile
3051ac_compiler=$2
3052for ac_option in --version -v -V -qversion; do
3053  { { ac_try="$ac_compiler $ac_option >&5"
3054case "(($ac_try" in
3055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056  *) ac_try_echo=$ac_try;;
3057esac
3058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059$as_echo "$ac_try_echo"; } >&5
3060  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3061  ac_status=$?
3062  if test -s conftest.err; then
3063    sed '10a\
3064... rest of stderr output deleted ...
3065         10q' conftest.err >conftest.er1
3066    cat conftest.er1 >&5
3067  fi
3068  rm -f conftest.er1 conftest.err
3069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070  test $ac_status = 0; }
3071done
3072
3073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074/* end confdefs.h.  */
3075
3076int
3077main ()
3078{
3079
3080  ;
3081  return 0;
3082}
3083_ACEOF
3084ac_clean_files_save=$ac_clean_files
3085ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3086# Try to create an executable without -o first, disregard a.out.
3087# It will help us diagnose broken compilers, and finding out an intuition
3088# of exeext.
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3090$as_echo_n "checking whether the C compiler works... " >&6; }
3091ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3092
3093# The possible output files:
3094ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3095
3096ac_rmfiles=
3097for ac_file in $ac_files
3098do
3099  case $ac_file in
3100    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3101    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3102  esac
3103done
3104rm -f $ac_rmfiles
3105
3106if { { ac_try="$ac_link_default"
3107case "(($ac_try" in
3108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109  *) ac_try_echo=$ac_try;;
3110esac
3111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112$as_echo "$ac_try_echo"; } >&5
3113  (eval "$ac_link_default") 2>&5
3114  ac_status=$?
3115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116  test $ac_status = 0; }; then :
3117  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3118# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3119# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3120# so that the user can short-circuit this test for compilers unknown to
3121# Autoconf.
3122for ac_file in $ac_files ''
3123do
3124  test -f "$ac_file" || continue
3125  case $ac_file in
3126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3127	;;
3128    [ab].out )
3129	# We found the default executable, but exeext='' is most
3130	# certainly right.
3131	break;;
3132    *.* )
3133	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3134	then :; else
3135	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136	fi
3137	# We set ac_cv_exeext here because the later test for it is not
3138	# safe: cross compilers may not add the suffix if given an `-o'
3139	# argument, so we may need to know it at that point already.
3140	# Even if this section looks crufty: it has the advantage of
3141	# actually working.
3142	break;;
3143    * )
3144	break;;
3145  esac
3146done
3147test "$ac_cv_exeext" = no && ac_cv_exeext=
3148
3149else
3150  ac_file=''
3151fi
3152if test -z "$ac_file"; then :
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
3155$as_echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160as_fn_error 77 "C compiler cannot create executables
3161See \`config.log' for more details" "$LINENO" 5; }
3162else
3163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164$as_echo "yes" >&6; }
3165fi
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3167$as_echo_n "checking for C compiler default output file name... " >&6; }
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3169$as_echo "$ac_file" >&6; }
3170ac_exeext=$ac_cv_exeext
3171
3172rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3173ac_clean_files=$ac_clean_files_save
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3175$as_echo_n "checking for suffix of executables... " >&6; }
3176if { { ac_try="$ac_link"
3177case "(($ac_try" in
3178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179  *) ac_try_echo=$ac_try;;
3180esac
3181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182$as_echo "$ac_try_echo"; } >&5
3183  (eval "$ac_link") 2>&5
3184  ac_status=$?
3185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186  test $ac_status = 0; }; then :
3187  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3188# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3189# work properly (i.e., refer to `conftest.exe'), while it won't with
3190# `rm'.
3191for ac_file in conftest.exe conftest conftest.*; do
3192  test -f "$ac_file" || continue
3193  case $ac_file in
3194    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3196	  break;;
3197    * ) break;;
3198  esac
3199done
3200else
3201  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3204See \`config.log' for more details" "$LINENO" 5; }
3205fi
3206rm -f conftest conftest$ac_cv_exeext
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3208$as_echo "$ac_cv_exeext" >&6; }
3209
3210rm -f conftest.$ac_ext
3211EXEEXT=$ac_cv_exeext
3212ac_exeext=$EXEEXT
3213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214/* end confdefs.h.  */
3215#include <stdio.h>
3216int
3217main ()
3218{
3219FILE *f = fopen ("conftest.out", "w");
3220 return ferror (f) || fclose (f) != 0;
3221
3222  ;
3223  return 0;
3224}
3225_ACEOF
3226ac_clean_files="$ac_clean_files conftest.out"
3227# Check that the compiler produces executables we can run.  If not, either
3228# the compiler is broken, or we cross compile.
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3230$as_echo_n "checking whether we are cross compiling... " >&6; }
3231if test "$cross_compiling" != yes; then
3232  { { ac_try="$ac_link"
3233case "(($ac_try" in
3234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235  *) ac_try_echo=$ac_try;;
3236esac
3237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238$as_echo "$ac_try_echo"; } >&5
3239  (eval "$ac_link") 2>&5
3240  ac_status=$?
3241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242  test $ac_status = 0; }
3243  if { ac_try='./conftest$ac_cv_exeext'
3244  { { case "(($ac_try" in
3245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246  *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250  (eval "$ac_try") 2>&5
3251  ac_status=$?
3252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253  test $ac_status = 0; }; }; then
3254    cross_compiling=no
3255  else
3256    if test "$cross_compiling" = maybe; then
3257	cross_compiling=yes
3258    else
3259	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261as_fn_error $? "cannot run C compiled programs.
3262If you meant to cross compile, use \`--host'.
3263See \`config.log' for more details" "$LINENO" 5; }
3264    fi
3265  fi
3266fi
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3268$as_echo "$cross_compiling" >&6; }
3269
3270rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3271ac_clean_files=$ac_clean_files_save
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3273$as_echo_n "checking for suffix of object files... " >&6; }
3274if ${ac_cv_objext+:} false; then :
3275  $as_echo_n "(cached) " >&6
3276else
3277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278/* end confdefs.h.  */
3279
3280int
3281main ()
3282{
3283
3284  ;
3285  return 0;
3286}
3287_ACEOF
3288rm -f conftest.o conftest.obj
3289if { { ac_try="$ac_compile"
3290case "(($ac_try" in
3291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292  *) ac_try_echo=$ac_try;;
3293esac
3294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295$as_echo "$ac_try_echo"; } >&5
3296  (eval "$ac_compile") 2>&5
3297  ac_status=$?
3298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299  test $ac_status = 0; }; then :
3300  for ac_file in conftest.o conftest.obj conftest.*; do
3301  test -f "$ac_file" || continue;
3302  case $ac_file in
3303    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3304    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3305       break;;
3306  esac
3307done
3308else
3309  $as_echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314as_fn_error $? "cannot compute suffix of object files: cannot compile
3315See \`config.log' for more details" "$LINENO" 5; }
3316fi
3317rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318fi
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3320$as_echo "$ac_cv_objext" >&6; }
3321OBJEXT=$ac_cv_objext
3322ac_objext=$OBJEXT
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3324$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3325if ${ac_cv_c_compiler_gnu+:} false; then :
3326  $as_echo_n "(cached) " >&6
3327else
3328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329/* end confdefs.h.  */
3330
3331int
3332main ()
3333{
3334#ifndef __GNUC__
3335       choke me
3336#endif
3337
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342if ac_fn_c_try_compile "$LINENO"; then :
3343  ac_compiler_gnu=yes
3344else
3345  ac_compiler_gnu=no
3346fi
3347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348ac_cv_c_compiler_gnu=$ac_compiler_gnu
3349
3350fi
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3352$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3353if test $ac_compiler_gnu = yes; then
3354  GCC=yes
3355else
3356  GCC=
3357fi
3358ac_test_CFLAGS=${CFLAGS+set}
3359ac_save_CFLAGS=$CFLAGS
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3361$as_echo_n "checking whether $CC accepts -g... " >&6; }
3362if ${ac_cv_prog_cc_g+:} false; then :
3363  $as_echo_n "(cached) " >&6
3364else
3365  ac_save_c_werror_flag=$ac_c_werror_flag
3366   ac_c_werror_flag=yes
3367   ac_cv_prog_cc_g=no
3368   CFLAGS="-g"
3369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370/* end confdefs.h.  */
3371
3372int
3373main ()
3374{
3375
3376  ;
3377  return 0;
3378}
3379_ACEOF
3380if ac_fn_c_try_compile "$LINENO"; then :
3381  ac_cv_prog_cc_g=yes
3382else
3383  CFLAGS=""
3384      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385/* end confdefs.h.  */
3386
3387int
3388main ()
3389{
3390
3391  ;
3392  return 0;
3393}
3394_ACEOF
3395if ac_fn_c_try_compile "$LINENO"; then :
3396
3397else
3398  ac_c_werror_flag=$ac_save_c_werror_flag
3399	 CFLAGS="-g"
3400	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401/* end confdefs.h.  */
3402
3403int
3404main ()
3405{
3406
3407  ;
3408  return 0;
3409}
3410_ACEOF
3411if ac_fn_c_try_compile "$LINENO"; then :
3412  ac_cv_prog_cc_g=yes
3413fi
3414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415fi
3416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417fi
3418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419   ac_c_werror_flag=$ac_save_c_werror_flag
3420fi
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3422$as_echo "$ac_cv_prog_cc_g" >&6; }
3423if test "$ac_test_CFLAGS" = set; then
3424  CFLAGS=$ac_save_CFLAGS
3425elif test $ac_cv_prog_cc_g = yes; then
3426  if test "$GCC" = yes; then
3427    CFLAGS="-g -O2"
3428  else
3429    CFLAGS="-g"
3430  fi
3431else
3432  if test "$GCC" = yes; then
3433    CFLAGS="-O2"
3434  else
3435    CFLAGS=
3436  fi
3437fi
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3439$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3440if ${ac_cv_prog_cc_c89+:} false; then :
3441  $as_echo_n "(cached) " >&6
3442else
3443  ac_cv_prog_cc_c89=no
3444ac_save_CC=$CC
3445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446/* end confdefs.h.  */
3447#include <stdarg.h>
3448#include <stdio.h>
3449struct stat;
3450/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3451struct buf { int x; };
3452FILE * (*rcsopen) (struct buf *, struct stat *, int);
3453static char *e (p, i)
3454     char **p;
3455     int i;
3456{
3457  return p[i];
3458}
3459static char *f (char * (*g) (char **, int), char **p, ...)
3460{
3461  char *s;
3462  va_list v;
3463  va_start (v,p);
3464  s = g (p, va_arg (v,int));
3465  va_end (v);
3466  return s;
3467}
3468
3469/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3470   function prototypes and stuff, but not '\xHH' hex character constants.
3471   These don't provoke an error unfortunately, instead are silently treated
3472   as 'x'.  The following induces an error, until -std is added to get
3473   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3474   array size at least.  It's necessary to write '\x00'==0 to get something
3475   that's true only with -std.  */
3476int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3477
3478/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3479   inside strings and character constants.  */
3480#define FOO(x) 'x'
3481int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3482
3483int test (int i, double x);
3484struct s1 {int (*f) (int a);};
3485struct s2 {int (*f) (double a);};
3486int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487int argc;
3488char **argv;
3489int
3490main ()
3491{
3492return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3493  ;
3494  return 0;
3495}
3496_ACEOF
3497for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3498	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3499do
3500  CC="$ac_save_CC $ac_arg"
3501  if ac_fn_c_try_compile "$LINENO"; then :
3502  ac_cv_prog_cc_c89=$ac_arg
3503fi
3504rm -f core conftest.err conftest.$ac_objext
3505  test "x$ac_cv_prog_cc_c89" != "xno" && break
3506done
3507rm -f conftest.$ac_ext
3508CC=$ac_save_CC
3509
3510fi
3511# AC_CACHE_VAL
3512case "x$ac_cv_prog_cc_c89" in
3513  x)
3514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3515$as_echo "none needed" >&6; } ;;
3516  xno)
3517    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3518$as_echo "unsupported" >&6; } ;;
3519  *)
3520    CC="$CC $ac_cv_prog_cc_c89"
3521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3522$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3523esac
3524if test "x$ac_cv_prog_cc_c89" != xno; then :
3525
3526fi
3527
3528ac_ext=c
3529ac_cpp='$CPP $CPPFLAGS'
3530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533
3534
3535if test "x$GCC" != "xyes" ; then
3536
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
3538$as_echo_n "checking whether compiler is MSVC... " >&6; }
3539if ${je_cv_msvc+:} false; then :
3540  $as_echo_n "(cached) " >&6
3541else
3542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544
3545int
3546main ()
3547{
3548
3549#ifndef _MSC_VER
3550  int fail-1;
3551#endif
3552
3553  ;
3554  return 0;
3555}
3556_ACEOF
3557if ac_fn_c_try_compile "$LINENO"; then :
3558  je_cv_msvc=yes
3559else
3560  je_cv_msvc=no
3561fi
3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563fi
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
3565$as_echo "$je_cv_msvc" >&6; }
3566fi
3567
3568je_cv_cray_prgenv_wrapper=""
3569if test "x${PE_ENV}" != "x" ; then
3570  case "${CC}" in
3571    CC|cc)
3572	je_cv_cray_prgenv_wrapper="yes"
3573	;;
3574    *)
3575       ;;
3576  esac
3577fi
3578
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
3580$as_echo_n "checking whether compiler is cray... " >&6; }
3581if ${je_cv_cray+:} false; then :
3582  $as_echo_n "(cached) " >&6
3583else
3584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586
3587int
3588main ()
3589{
3590
3591#ifndef _CRAYC
3592  int fail-1;
3593#endif
3594
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599if ac_fn_c_try_compile "$LINENO"; then :
3600  je_cv_cray=yes
3601else
3602  je_cv_cray=no
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605fi
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
3607$as_echo "$je_cv_cray" >&6; }
3608
3609if test "x${je_cv_cray}" = "xyes" ; then
3610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
3611$as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
3612if ${je_cv_cray_84+:} false; then :
3613  $as_echo_n "(cached) " >&6
3614else
3615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616/* end confdefs.h.  */
3617
3618int
3619main ()
3620{
3621
3622#if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
3623  int fail-1;
3624#endif
3625
3626  ;
3627  return 0;
3628}
3629_ACEOF
3630if ac_fn_c_try_compile "$LINENO"; then :
3631  je_cv_cray_84=yes
3632else
3633  je_cv_cray_84=no
3634fi
3635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636fi
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
3638$as_echo "$je_cv_cray_84" >&6; }
3639fi
3640
3641if test "x$GCC" = "xyes" ; then
3642
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
3644$as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
3645T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3646T_APPEND_V=-std=gnu11
3647  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3648  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3649else
3650  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3651fi
3652
3653
3654if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3655  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3656else
3657  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3658fi
3659
3660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661/* end confdefs.h.  */
3662
3663
3664int
3665main ()
3666{
3667
3668    return 0;
3669
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674if ac_fn_c_try_compile "$LINENO"; then :
3675  je_cv_cflags_added=-std=gnu11
3676              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3677$as_echo "yes" >&6; }
3678else
3679  je_cv_cflags_added=
3680              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681$as_echo "no" >&6; }
3682              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3683
3684fi
3685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3687  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3688else
3689  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3690fi
3691
3692
3693  if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
3694
3695cat >>confdefs.h <<_ACEOF
3696#define JEMALLOC_HAS_RESTRICT
3697_ACEOF
3698
3699  else
3700
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
3702$as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
3703T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3704T_APPEND_V=-std=gnu99
3705  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3706  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3707else
3708  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3709fi
3710
3711
3712if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3713  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3714else
3715  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3716fi
3717
3718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719/* end confdefs.h.  */
3720
3721
3722int
3723main ()
3724{
3725
3726    return 0;
3727
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732if ac_fn_c_try_compile "$LINENO"; then :
3733  je_cv_cflags_added=-std=gnu99
3734              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3735$as_echo "yes" >&6; }
3736else
3737  je_cv_cflags_added=
3738              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739$as_echo "no" >&6; }
3740              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3741
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3745  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3746else
3747  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3748fi
3749
3750
3751    if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
3752
3753cat >>confdefs.h <<_ACEOF
3754#define JEMALLOC_HAS_RESTRICT
3755_ACEOF
3756
3757    fi
3758  fi
3759
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror=unknown-warning-option" >&5
3761$as_echo_n "checking whether compiler supports -Werror=unknown-warning-option... " >&6; }
3762T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3763T_APPEND_V=-Werror=unknown-warning-option
3764  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3765  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3766else
3767  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3768fi
3769
3770
3771if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3772  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3773else
3774  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3775fi
3776
3777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h.  */
3779
3780
3781int
3782main ()
3783{
3784
3785    return 0;
3786
3787  ;
3788  return 0;
3789}
3790_ACEOF
3791if ac_fn_c_try_compile "$LINENO"; then :
3792  je_cv_cflags_added=-Werror=unknown-warning-option
3793              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3794$as_echo "yes" >&6; }
3795else
3796  je_cv_cflags_added=
3797              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798$as_echo "no" >&6; }
3799              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3800
3801fi
3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3804  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3805else
3806  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3807fi
3808
3809
3810
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
3812$as_echo_n "checking whether compiler supports -Wall... " >&6; }
3813T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3814T_APPEND_V=-Wall
3815  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3816  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3817else
3818  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3819fi
3820
3821
3822if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3823  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3824else
3825  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3826fi
3827
3828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829/* end confdefs.h.  */
3830
3831
3832int
3833main ()
3834{
3835
3836    return 0;
3837
3838  ;
3839  return 0;
3840}
3841_ACEOF
3842if ac_fn_c_try_compile "$LINENO"; then :
3843  je_cv_cflags_added=-Wall
3844              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3845$as_echo "yes" >&6; }
3846else
3847  je_cv_cflags_added=
3848              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849$as_echo "no" >&6; }
3850              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3851
3852fi
3853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3855  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3856else
3857  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3858fi
3859
3860
3861
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
3863$as_echo_n "checking whether compiler supports -Wextra... " >&6; }
3864T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3865T_APPEND_V=-Wextra
3866  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3867  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3868else
3869  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3870fi
3871
3872
3873if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3874  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3875else
3876  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3877fi
3878
3879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881
3882
3883int
3884main ()
3885{
3886
3887    return 0;
3888
3889  ;
3890  return 0;
3891}
3892_ACEOF
3893if ac_fn_c_try_compile "$LINENO"; then :
3894  je_cv_cflags_added=-Wextra
3895              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896$as_echo "yes" >&6; }
3897else
3898  je_cv_cflags_added=
3899              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3902
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3906  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3907else
3908  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3909fi
3910
3911
3912
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
3914$as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
3915T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3916T_APPEND_V=-Wshorten-64-to-32
3917  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3918  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3919else
3920  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3921fi
3922
3923
3924if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3925  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3926else
3927  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3928fi
3929
3930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931/* end confdefs.h.  */
3932
3933
3934int
3935main ()
3936{
3937
3938    return 0;
3939
3940  ;
3941  return 0;
3942}
3943_ACEOF
3944if ac_fn_c_try_compile "$LINENO"; then :
3945  je_cv_cflags_added=-Wshorten-64-to-32
3946              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947$as_echo "yes" >&6; }
3948else
3949  je_cv_cflags_added=
3950              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951$as_echo "no" >&6; }
3952              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3953
3954fi
3955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3957  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3958else
3959  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3960fi
3961
3962
3963
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
3965$as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
3966T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3967T_APPEND_V=-Wsign-compare
3968  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3969  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3970else
3971  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3972fi
3973
3974
3975if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3976  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3977else
3978  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3979fi
3980
3981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h.  */
3983
3984
3985int
3986main ()
3987{
3988
3989    return 0;
3990
3991  ;
3992  return 0;
3993}
3994_ACEOF
3995if ac_fn_c_try_compile "$LINENO"; then :
3996  je_cv_cflags_added=-Wsign-compare
3997              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3998$as_echo "yes" >&6; }
3999else
4000  je_cv_cflags_added=
4001              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002$as_echo "no" >&6; }
4003              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4004
4005fi
4006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4008  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4009else
4010  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4011fi
4012
4013
4014
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
4016$as_echo_n "checking whether compiler supports -Wundef... " >&6; }
4017T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4018T_APPEND_V=-Wundef
4019  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4020  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4021else
4022  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4023fi
4024
4025
4026if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4027  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4028else
4029  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4030fi
4031
4032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033/* end confdefs.h.  */
4034
4035
4036int
4037main ()
4038{
4039
4040    return 0;
4041
4042  ;
4043  return 0;
4044}
4045_ACEOF
4046if ac_fn_c_try_compile "$LINENO"; then :
4047  je_cv_cflags_added=-Wundef
4048              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4049$as_echo "yes" >&6; }
4050else
4051  je_cv_cflags_added=
4052              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
4054              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4055
4056fi
4057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4059  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4060else
4061  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4062fi
4063
4064
4065
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
4067$as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; }
4068T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4069T_APPEND_V=-Wno-format-zero-length
4070  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4071  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4072else
4073  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4074fi
4075
4076
4077if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4078  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4079else
4080  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4081fi
4082
4083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h.  */
4085
4086
4087int
4088main ()
4089{
4090
4091    return 0;
4092
4093  ;
4094  return 0;
4095}
4096_ACEOF
4097if ac_fn_c_try_compile "$LINENO"; then :
4098  je_cv_cflags_added=-Wno-format-zero-length
4099              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4100$as_echo "yes" >&6; }
4101else
4102  je_cv_cflags_added=
4103              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104$as_echo "no" >&6; }
4105              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4106
4107fi
4108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4110  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4111else
4112  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4113fi
4114
4115
4116
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wpointer-arith" >&5
4118$as_echo_n "checking whether compiler supports -Wpointer-arith... " >&6; }
4119T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4120T_APPEND_V=-Wpointer-arith
4121  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4122  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4123else
4124  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4125fi
4126
4127
4128if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4129  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4130else
4131  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4132fi
4133
4134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135/* end confdefs.h.  */
4136
4137
4138int
4139main ()
4140{
4141
4142    return 0;
4143
4144  ;
4145  return 0;
4146}
4147_ACEOF
4148if ac_fn_c_try_compile "$LINENO"; then :
4149  je_cv_cflags_added=-Wpointer-arith
4150              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4151$as_echo "yes" >&6; }
4152else
4153  je_cv_cflags_added=
4154              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155$as_echo "no" >&6; }
4156              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4157
4158fi
4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4161  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4162else
4163  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4164fi
4165
4166
4167
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-braces" >&5
4169$as_echo_n "checking whether compiler supports -Wno-missing-braces... " >&6; }
4170T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4171T_APPEND_V=-Wno-missing-braces
4172  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4173  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4174else
4175  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4176fi
4177
4178
4179if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4180  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4181else
4182  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4183fi
4184
4185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h.  */
4187
4188
4189int
4190main ()
4191{
4192
4193    return 0;
4194
4195  ;
4196  return 0;
4197}
4198_ACEOF
4199if ac_fn_c_try_compile "$LINENO"; then :
4200  je_cv_cflags_added=-Wno-missing-braces
4201              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4202$as_echo "yes" >&6; }
4203else
4204  je_cv_cflags_added=
4205              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206$as_echo "no" >&6; }
4207              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4208
4209fi
4210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4212  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4213else
4214  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4215fi
4216
4217
4218
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-field-initializers" >&5
4220$as_echo_n "checking whether compiler supports -Wno-missing-field-initializers... " >&6; }
4221T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4222T_APPEND_V=-Wno-missing-field-initializers
4223  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4224  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4225else
4226  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4227fi
4228
4229
4230if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4231  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4232else
4233  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4234fi
4235
4236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h.  */
4238
4239
4240int
4241main ()
4242{
4243
4244    return 0;
4245
4246  ;
4247  return 0;
4248}
4249_ACEOF
4250if ac_fn_c_try_compile "$LINENO"; then :
4251  je_cv_cflags_added=-Wno-missing-field-initializers
4252              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4253$as_echo "yes" >&6; }
4254else
4255  je_cv_cflags_added=
4256              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
4258              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4259
4260fi
4261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4263  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4264else
4265  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4266fi
4267
4268
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-attributes" >&5
4271$as_echo_n "checking whether compiler supports -Wno-missing-attributes... " >&6; }
4272T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4273T_APPEND_V=-Wno-missing-attributes
4274  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4275  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4276else
4277  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4278fi
4279
4280
4281if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4282  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4283else
4284  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4285fi
4286
4287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h.  */
4289
4290
4291int
4292main ()
4293{
4294
4295    return 0;
4296
4297  ;
4298  return 0;
4299}
4300_ACEOF
4301if ac_fn_c_try_compile "$LINENO"; then :
4302  je_cv_cflags_added=-Wno-missing-attributes
4303              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4304$as_echo "yes" >&6; }
4305else
4306  je_cv_cflags_added=
4307              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308$as_echo "no" >&6; }
4309              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4310
4311fi
4312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4314  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4315else
4316  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4317fi
4318
4319
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
4322$as_echo_n "checking whether compiler supports -pipe... " >&6; }
4323T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4324T_APPEND_V=-pipe
4325  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4326  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4327else
4328  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4329fi
4330
4331
4332if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4333  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4334else
4335  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4336fi
4337
4338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339/* end confdefs.h.  */
4340
4341
4342int
4343main ()
4344{
4345
4346    return 0;
4347
4348  ;
4349  return 0;
4350}
4351_ACEOF
4352if ac_fn_c_try_compile "$LINENO"; then :
4353  je_cv_cflags_added=-pipe
4354              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355$as_echo "yes" >&6; }
4356else
4357  je_cv_cflags_added=
4358              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359$as_echo "no" >&6; }
4360              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4361
4362fi
4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4365  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4366else
4367  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4368fi
4369
4370
4371
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
4373$as_echo_n "checking whether compiler supports -g3... " >&6; }
4374T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4375T_APPEND_V=-g3
4376  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4377  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4378else
4379  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4380fi
4381
4382
4383if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4384  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4385else
4386  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4387fi
4388
4389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390/* end confdefs.h.  */
4391
4392
4393int
4394main ()
4395{
4396
4397    return 0;
4398
4399  ;
4400  return 0;
4401}
4402_ACEOF
4403if ac_fn_c_try_compile "$LINENO"; then :
4404  je_cv_cflags_added=-g3
4405              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4406$as_echo "yes" >&6; }
4407else
4408  je_cv_cflags_added=
4409              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410$as_echo "no" >&6; }
4411              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4412
4413fi
4414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4416  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4417else
4418  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4419fi
4420
4421
4422elif test "x$je_cv_msvc" = "xyes" ; then
4423  CC="$CC -nologo"
4424
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
4426$as_echo_n "checking whether compiler supports -Zi... " >&6; }
4427T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4428T_APPEND_V=-Zi
4429  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4430  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4431else
4432  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4433fi
4434
4435
4436if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4437  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4438else
4439  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4440fi
4441
4442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h.  */
4444
4445
4446int
4447main ()
4448{
4449
4450    return 0;
4451
4452  ;
4453  return 0;
4454}
4455_ACEOF
4456if ac_fn_c_try_compile "$LINENO"; then :
4457  je_cv_cflags_added=-Zi
4458              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4459$as_echo "yes" >&6; }
4460else
4461  je_cv_cflags_added=
4462              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463$as_echo "no" >&6; }
4464              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4465
4466fi
4467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4469  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4470else
4471  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4472fi
4473
4474
4475
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
4477$as_echo_n "checking whether compiler supports -MT... " >&6; }
4478T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4479T_APPEND_V=-MT
4480  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4481  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4482else
4483  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4484fi
4485
4486
4487if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4488  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4489else
4490  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4491fi
4492
4493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494/* end confdefs.h.  */
4495
4496
4497int
4498main ()
4499{
4500
4501    return 0;
4502
4503  ;
4504  return 0;
4505}
4506_ACEOF
4507if ac_fn_c_try_compile "$LINENO"; then :
4508  je_cv_cflags_added=-MT
4509              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510$as_echo "yes" >&6; }
4511else
4512  je_cv_cflags_added=
4513              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514$as_echo "no" >&6; }
4515              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4516
4517fi
4518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4520  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4521else
4522  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4523fi
4524
4525
4526
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
4528$as_echo_n "checking whether compiler supports -W3... " >&6; }
4529T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4530T_APPEND_V=-W3
4531  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4532  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4533else
4534  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4535fi
4536
4537
4538if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4539  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4540else
4541  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4542fi
4543
4544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h.  */
4546
4547
4548int
4549main ()
4550{
4551
4552    return 0;
4553
4554  ;
4555  return 0;
4556}
4557_ACEOF
4558if ac_fn_c_try_compile "$LINENO"; then :
4559  je_cv_cflags_added=-W3
4560              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4561$as_echo "yes" >&6; }
4562else
4563  je_cv_cflags_added=
4564              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565$as_echo "no" >&6; }
4566              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4567
4568fi
4569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4571  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4572else
4573  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4574fi
4575
4576
4577
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
4579$as_echo_n "checking whether compiler supports -FS... " >&6; }
4580T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4581T_APPEND_V=-FS
4582  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4583  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4584else
4585  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4586fi
4587
4588
4589if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4590  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4591else
4592  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4593fi
4594
4595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596/* end confdefs.h.  */
4597
4598
4599int
4600main ()
4601{
4602
4603    return 0;
4604
4605  ;
4606  return 0;
4607}
4608_ACEOF
4609if ac_fn_c_try_compile "$LINENO"; then :
4610  je_cv_cflags_added=-FS
4611              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4612$as_echo "yes" >&6; }
4613else
4614  je_cv_cflags_added=
4615              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616$as_echo "no" >&6; }
4617              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4618
4619fi
4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4622  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4623else
4624  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4625fi
4626
4627
4628  T_APPEND_V=-I${srcdir}/include/msvc_compat
4629  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4630  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
4631else
4632  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
4633fi
4634
4635
4636fi
4637if test "x$je_cv_cray" = "xyes" ; then
4638    if test "x$je_cv_cray_84" = "xyes" ; then
4639
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
4641$as_echo_n "checking whether compiler supports -hipa2... " >&6; }
4642T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4643T_APPEND_V=-hipa2
4644  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4645  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4646else
4647  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4648fi
4649
4650
4651if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4652  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4653else
4654  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4655fi
4656
4657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658/* end confdefs.h.  */
4659
4660
4661int
4662main ()
4663{
4664
4665    return 0;
4666
4667  ;
4668  return 0;
4669}
4670_ACEOF
4671if ac_fn_c_try_compile "$LINENO"; then :
4672  je_cv_cflags_added=-hipa2
4673              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4674$as_echo "yes" >&6; }
4675else
4676  je_cv_cflags_added=
4677              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678$as_echo "no" >&6; }
4679              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4680
4681fi
4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4684  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4685else
4686  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4687fi
4688
4689
4690
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
4692$as_echo_n "checking whether compiler supports -hnognu... " >&6; }
4693T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4694T_APPEND_V=-hnognu
4695  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4696  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4697else
4698  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4699fi
4700
4701
4702if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4703  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4704else
4705  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4706fi
4707
4708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h.  */
4710
4711
4712int
4713main ()
4714{
4715
4716    return 0;
4717
4718  ;
4719  return 0;
4720}
4721_ACEOF
4722if ac_fn_c_try_compile "$LINENO"; then :
4723  je_cv_cflags_added=-hnognu
4724              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4725$as_echo "yes" >&6; }
4726else
4727  je_cv_cflags_added=
4728              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729$as_echo "no" >&6; }
4730              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4731
4732fi
4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4735  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4736else
4737  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4738fi
4739
4740
4741  fi
4742
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
4744$as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
4745T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4746T_APPEND_V=-hnomessage=128
4747  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4748  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4749else
4750  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4751fi
4752
4753
4754if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4755  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4756else
4757  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4758fi
4759
4760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h.  */
4762
4763
4764int
4765main ()
4766{
4767
4768    return 0;
4769
4770  ;
4771  return 0;
4772}
4773_ACEOF
4774if ac_fn_c_try_compile "$LINENO"; then :
4775  je_cv_cflags_added=-hnomessage=128
4776              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777$as_echo "yes" >&6; }
4778else
4779  je_cv_cflags_added=
4780              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781$as_echo "no" >&6; }
4782              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4783
4784fi
4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4787  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4788else
4789  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4790fi
4791
4792
4793
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
4795$as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
4796T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4797T_APPEND_V=-hnomessage=1357
4798  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4799  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4800else
4801  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4802fi
4803
4804
4805if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4806  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4807else
4808  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4809fi
4810
4811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812/* end confdefs.h.  */
4813
4814
4815int
4816main ()
4817{
4818
4819    return 0;
4820
4821  ;
4822  return 0;
4823}
4824_ACEOF
4825if ac_fn_c_try_compile "$LINENO"; then :
4826  je_cv_cflags_added=-hnomessage=1357
4827              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4828$as_echo "yes" >&6; }
4829else
4830  je_cv_cflags_added=
4831              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832$as_echo "no" >&6; }
4833              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4834
4835fi
4836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4838  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4839else
4840  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4841fi
4842
4843
4844fi
4845
4846
4847
4848ac_ext=c
4849ac_cpp='$CPP $CPPFLAGS'
4850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4854$as_echo_n "checking how to run the C preprocessor... " >&6; }
4855# On Suns, sometimes $CPP names a directory.
4856if test -n "$CPP" && test -d "$CPP"; then
4857  CPP=
4858fi
4859if test -z "$CPP"; then
4860  if ${ac_cv_prog_CPP+:} false; then :
4861  $as_echo_n "(cached) " >&6
4862else
4863      # Double quotes because CPP needs to be expanded
4864    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4865    do
4866      ac_preproc_ok=false
4867for ac_c_preproc_warn_flag in '' yes
4868do
4869  # Use a header file that comes with gcc, so configuring glibc
4870  # with a fresh cross-compiler works.
4871  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4872  # <limits.h> exists even on freestanding compilers.
4873  # On the NeXT, cc -E runs the code through the compiler's parser,
4874  # not just through cpp. "Syntax error" is here to catch this case.
4875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876/* end confdefs.h.  */
4877#ifdef __STDC__
4878# include <limits.h>
4879#else
4880# include <assert.h>
4881#endif
4882		     Syntax error
4883_ACEOF
4884if ac_fn_c_try_cpp "$LINENO"; then :
4885
4886else
4887  # Broken: fails on valid input.
4888continue
4889fi
4890rm -f conftest.err conftest.i conftest.$ac_ext
4891
4892  # OK, works on sane cases.  Now check whether nonexistent headers
4893  # can be detected and how.
4894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895/* end confdefs.h.  */
4896#include <ac_nonexistent.h>
4897_ACEOF
4898if ac_fn_c_try_cpp "$LINENO"; then :
4899  # Broken: success on invalid input.
4900continue
4901else
4902  # Passes both tests.
4903ac_preproc_ok=:
4904break
4905fi
4906rm -f conftest.err conftest.i conftest.$ac_ext
4907
4908done
4909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4910rm -f conftest.i conftest.err conftest.$ac_ext
4911if $ac_preproc_ok; then :
4912  break
4913fi
4914
4915    done
4916    ac_cv_prog_CPP=$CPP
4917
4918fi
4919  CPP=$ac_cv_prog_CPP
4920else
4921  ac_cv_prog_CPP=$CPP
4922fi
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4924$as_echo "$CPP" >&6; }
4925ac_preproc_ok=false
4926for ac_c_preproc_warn_flag in '' yes
4927do
4928  # Use a header file that comes with gcc, so configuring glibc
4929  # with a fresh cross-compiler works.
4930  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4931  # <limits.h> exists even on freestanding compilers.
4932  # On the NeXT, cc -E runs the code through the compiler's parser,
4933  # not just through cpp. "Syntax error" is here to catch this case.
4934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935/* end confdefs.h.  */
4936#ifdef __STDC__
4937# include <limits.h>
4938#else
4939# include <assert.h>
4940#endif
4941		     Syntax error
4942_ACEOF
4943if ac_fn_c_try_cpp "$LINENO"; then :
4944
4945else
4946  # Broken: fails on valid input.
4947continue
4948fi
4949rm -f conftest.err conftest.i conftest.$ac_ext
4950
4951  # OK, works on sane cases.  Now check whether nonexistent headers
4952  # can be detected and how.
4953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954/* end confdefs.h.  */
4955#include <ac_nonexistent.h>
4956_ACEOF
4957if ac_fn_c_try_cpp "$LINENO"; then :
4958  # Broken: success on invalid input.
4959continue
4960else
4961  # Passes both tests.
4962ac_preproc_ok=:
4963break
4964fi
4965rm -f conftest.err conftest.i conftest.$ac_ext
4966
4967done
4968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4969rm -f conftest.i conftest.err conftest.$ac_ext
4970if $ac_preproc_ok; then :
4971
4972else
4973  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4975as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4976See \`config.log' for more details" "$LINENO" 5; }
4977fi
4978
4979ac_ext=c
4980ac_cpp='$CPP $CPPFLAGS'
4981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984
4985
4986# Check whether --enable-cxx was given.
4987if test "${enable_cxx+set}" = set; then :
4988  enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
4989  enable_cxx="0"
4990else
4991  enable_cxx="1"
4992fi
4993
4994else
4995  enable_cxx="1"
4996
4997fi
4998
4999if test "x$enable_cxx" = "x1" ; then
5000      # ===========================================================================
5001#  https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
5002# ===========================================================================
5003#
5004# SYNOPSIS
5005#
5006#   AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
5007#
5008# DESCRIPTION
5009#
5010#   Check for baseline language coverage in the compiler for the specified
5011#   version of the C++ standard.  If necessary, add switches to CXX and
5012#   CXXCPP to enable support.  VERSION may be '11' (for the C++11 standard)
5013#   or '14' (for the C++14 standard).
5014#
5015#   The second argument, if specified, indicates whether you insist on an
5016#   extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
5017#   -std=c++11).  If neither is specified, you get whatever works, with
5018#   preference for an extended mode.
5019#
5020#   The third argument, if specified 'mandatory' or if left unspecified,
5021#   indicates that baseline support for the specified C++ standard is
5022#   required and that the macro should error out if no mode with that
5023#   support is found.  If specified 'optional', then configuration proceeds
5024#   regardless, after defining HAVE_CXX${VERSION} if and only if a
5025#   supporting mode is found.
5026#
5027# LICENSE
5028#
5029#   Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
5030#   Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
5031#   Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
5032#   Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
5033#   Copyright (c) 2015 Paul Norman <penorman@mac.com>
5034#   Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
5035#   Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz@gmail.com>
5036#   Copyright (c) 2019 Enji Cooper <yaneurabeya@gmail.com>
5037#
5038#   Copying and distribution of this file, with or without modification, are
5039#   permitted in any medium without royalty provided the copyright notice
5040#   and this notice are preserved.  This file is offered as-is, without any
5041#   warranty.
5042
5043#serial 11
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069  ac_ext=cpp
5070ac_cpp='$CXXCPP $CPPFLAGS'
5071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5074if test -z "$CXX"; then
5075  if test -n "$CCC"; then
5076    CXX=$CCC
5077  else
5078    if test -n "$ac_tool_prefix"; then
5079  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5080  do
5081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084$as_echo_n "checking for $ac_word... " >&6; }
5085if ${ac_cv_prog_CXX+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088  if test -n "$CXX"; then
5089  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5090else
5091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092for as_dir in $PATH
5093do
5094  IFS=$as_save_IFS
5095  test -z "$as_dir" && as_dir=.
5096    for ac_exec_ext in '' $ac_executable_extensions; do
5097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100    break 2
5101  fi
5102done
5103  done
5104IFS=$as_save_IFS
5105
5106fi
5107fi
5108CXX=$ac_cv_prog_CXX
5109if test -n "$CXX"; then
5110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5111$as_echo "$CXX" >&6; }
5112else
5113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114$as_echo "no" >&6; }
5115fi
5116
5117
5118    test -n "$CXX" && break
5119  done
5120fi
5121if test -z "$CXX"; then
5122  ac_ct_CXX=$CXX
5123  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5124do
5125  # Extract the first word of "$ac_prog", so it can be a program name with args.
5126set dummy $ac_prog; ac_word=$2
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128$as_echo_n "checking for $ac_word... " >&6; }
5129if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5130  $as_echo_n "(cached) " >&6
5131else
5132  if test -n "$ac_ct_CXX"; then
5133  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5134else
5135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138  IFS=$as_save_IFS
5139  test -z "$as_dir" && as_dir=.
5140    for ac_exec_ext in '' $ac_executable_extensions; do
5141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142    ac_cv_prog_ac_ct_CXX="$ac_prog"
5143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144    break 2
5145  fi
5146done
5147  done
5148IFS=$as_save_IFS
5149
5150fi
5151fi
5152ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5153if test -n "$ac_ct_CXX"; then
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5155$as_echo "$ac_ct_CXX" >&6; }
5156else
5157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158$as_echo "no" >&6; }
5159fi
5160
5161
5162  test -n "$ac_ct_CXX" && break
5163done
5164
5165  if test "x$ac_ct_CXX" = x; then
5166    CXX="g++"
5167  else
5168    case $cross_compiling:$ac_tool_warned in
5169yes:)
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172ac_tool_warned=yes ;;
5173esac
5174    CXX=$ac_ct_CXX
5175  fi
5176fi
5177
5178  fi
5179fi
5180# Provide some information about the compiler.
5181$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5182set X $ac_compile
5183ac_compiler=$2
5184for ac_option in --version -v -V -qversion; do
5185  { { ac_try="$ac_compiler $ac_option >&5"
5186case "(($ac_try" in
5187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188  *) ac_try_echo=$ac_try;;
5189esac
5190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5191$as_echo "$ac_try_echo"; } >&5
5192  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5193  ac_status=$?
5194  if test -s conftest.err; then
5195    sed '10a\
5196... rest of stderr output deleted ...
5197         10q' conftest.err >conftest.er1
5198    cat conftest.er1 >&5
5199  fi
5200  rm -f conftest.er1 conftest.err
5201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5202  test $ac_status = 0; }
5203done
5204
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5206$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5207if ${ac_cv_cxx_compiler_gnu+:} false; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211/* end confdefs.h.  */
5212
5213int
5214main ()
5215{
5216#ifndef __GNUC__
5217       choke me
5218#endif
5219
5220  ;
5221  return 0;
5222}
5223_ACEOF
5224if ac_fn_cxx_try_compile "$LINENO"; then :
5225  ac_compiler_gnu=yes
5226else
5227  ac_compiler_gnu=no
5228fi
5229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5231
5232fi
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5234$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5235if test $ac_compiler_gnu = yes; then
5236  GXX=yes
5237else
5238  GXX=
5239fi
5240ac_test_CXXFLAGS=${CXXFLAGS+set}
5241ac_save_CXXFLAGS=$CXXFLAGS
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5243$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5244if ${ac_cv_prog_cxx_g+:} false; then :
5245  $as_echo_n "(cached) " >&6
5246else
5247  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5248   ac_cxx_werror_flag=yes
5249   ac_cv_prog_cxx_g=no
5250   CXXFLAGS="-g"
5251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252/* end confdefs.h.  */
5253
5254int
5255main ()
5256{
5257
5258  ;
5259  return 0;
5260}
5261_ACEOF
5262if ac_fn_cxx_try_compile "$LINENO"; then :
5263  ac_cv_prog_cxx_g=yes
5264else
5265  CXXFLAGS=""
5266      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h.  */
5268
5269int
5270main ()
5271{
5272
5273  ;
5274  return 0;
5275}
5276_ACEOF
5277if ac_fn_cxx_try_compile "$LINENO"; then :
5278
5279else
5280  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5281	 CXXFLAGS="-g"
5282	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h.  */
5284
5285int
5286main ()
5287{
5288
5289  ;
5290  return 0;
5291}
5292_ACEOF
5293if ac_fn_cxx_try_compile "$LINENO"; then :
5294  ac_cv_prog_cxx_g=yes
5295fi
5296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297fi
5298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299fi
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5302fi
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5304$as_echo "$ac_cv_prog_cxx_g" >&6; }
5305if test "$ac_test_CXXFLAGS" = set; then
5306  CXXFLAGS=$ac_save_CXXFLAGS
5307elif test $ac_cv_prog_cxx_g = yes; then
5308  if test "$GXX" = yes; then
5309    CXXFLAGS="-g -O2"
5310  else
5311    CXXFLAGS="-g"
5312  fi
5313else
5314  if test "$GXX" = yes; then
5315    CXXFLAGS="-O2"
5316  else
5317    CXXFLAGS=
5318  fi
5319fi
5320ac_ext=cpp
5321ac_cpp='$CXXCPP $CPPFLAGS'
5322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5325
5326
5327  ax_cxx_compile_alternatives="17 1z"    ax_cxx_compile_cxx17_required=false
5328  ac_ext=cpp
5329ac_cpp='$CXXCPP $CPPFLAGS'
5330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5333  ac_success=no
5334
5335
5336
5337    if test x$ac_success = xno; then
5338                for alternative in ${ax_cxx_compile_alternatives}; do
5339      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5340        cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
5341        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
5342$as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
5343if eval \${$cachevar+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346  ac_save_CXX="$CXX"
5347           CXX="$CXX $switch"
5348           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350
5351
5352// If the compiler admits that it is not ready for C++11, why torture it?
5353// Hopefully, this will speed up the test.
5354
5355#ifndef __cplusplus
5356
5357#error "This is not a C++ compiler"
5358
5359#elif __cplusplus < 201103L
5360
5361#error "This is not a C++11 compiler"
5362
5363#else
5364
5365namespace cxx11
5366{
5367
5368  namespace test_static_assert
5369  {
5370
5371    template <typename T>
5372    struct check
5373    {
5374      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5375    };
5376
5377  }
5378
5379  namespace test_final_override
5380  {
5381
5382    struct Base
5383    {
5384      virtual ~Base() {}
5385      virtual void f() {}
5386    };
5387
5388    struct Derived : public Base
5389    {
5390      virtual ~Derived() override {}
5391      virtual void f() override {}
5392    };
5393
5394  }
5395
5396  namespace test_double_right_angle_brackets
5397  {
5398
5399    template < typename T >
5400    struct check {};
5401
5402    typedef check<void> single_type;
5403    typedef check<check<void>> double_type;
5404    typedef check<check<check<void>>> triple_type;
5405    typedef check<check<check<check<void>>>> quadruple_type;
5406
5407  }
5408
5409  namespace test_decltype
5410  {
5411
5412    int
5413    f()
5414    {
5415      int a = 1;
5416      decltype(a) b = 2;
5417      return a + b;
5418    }
5419
5420  }
5421
5422  namespace test_type_deduction
5423  {
5424
5425    template < typename T1, typename T2 >
5426    struct is_same
5427    {
5428      static const bool value = false;
5429    };
5430
5431    template < typename T >
5432    struct is_same<T, T>
5433    {
5434      static const bool value = true;
5435    };
5436
5437    template < typename T1, typename T2 >
5438    auto
5439    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5440    {
5441      return a1 + a2;
5442    }
5443
5444    int
5445    test(const int c, volatile int v)
5446    {
5447      static_assert(is_same<int, decltype(0)>::value == true, "");
5448      static_assert(is_same<int, decltype(c)>::value == false, "");
5449      static_assert(is_same<int, decltype(v)>::value == false, "");
5450      auto ac = c;
5451      auto av = v;
5452      auto sumi = ac + av + 'x';
5453      auto sumf = ac + av + 1.0;
5454      static_assert(is_same<int, decltype(ac)>::value == true, "");
5455      static_assert(is_same<int, decltype(av)>::value == true, "");
5456      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5457      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5458      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5459      return (sumf > 0.0) ? sumi : add(c, v);
5460    }
5461
5462  }
5463
5464  namespace test_noexcept
5465  {
5466
5467    int f() { return 0; }
5468    int g() noexcept { return 0; }
5469
5470    static_assert(noexcept(f()) == false, "");
5471    static_assert(noexcept(g()) == true, "");
5472
5473  }
5474
5475  namespace test_constexpr
5476  {
5477
5478    template < typename CharT >
5479    unsigned long constexpr
5480    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5481    {
5482      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5483    }
5484
5485    template < typename CharT >
5486    unsigned long constexpr
5487    strlen_c(const CharT *const s) noexcept
5488    {
5489      return strlen_c_r(s, 0UL);
5490    }
5491
5492    static_assert(strlen_c("") == 0UL, "");
5493    static_assert(strlen_c("1") == 1UL, "");
5494    static_assert(strlen_c("example") == 7UL, "");
5495    static_assert(strlen_c("another\0example") == 7UL, "");
5496
5497  }
5498
5499  namespace test_rvalue_references
5500  {
5501
5502    template < int N >
5503    struct answer
5504    {
5505      static constexpr int value = N;
5506    };
5507
5508    answer<1> f(int&)       { return answer<1>(); }
5509    answer<2> f(const int&) { return answer<2>(); }
5510    answer<3> f(int&&)      { return answer<3>(); }
5511
5512    void
5513    test()
5514    {
5515      int i = 0;
5516      const int c = 0;
5517      static_assert(decltype(f(i))::value == 1, "");
5518      static_assert(decltype(f(c))::value == 2, "");
5519      static_assert(decltype(f(0))::value == 3, "");
5520    }
5521
5522  }
5523
5524  namespace test_uniform_initialization
5525  {
5526
5527    struct test
5528    {
5529      static const int zero {};
5530      static const int one {1};
5531    };
5532
5533    static_assert(test::zero == 0, "");
5534    static_assert(test::one == 1, "");
5535
5536  }
5537
5538  namespace test_lambdas
5539  {
5540
5541    void
5542    test1()
5543    {
5544      auto lambda1 = [](){};
5545      auto lambda2 = lambda1;
5546      lambda1();
5547      lambda2();
5548    }
5549
5550    int
5551    test2()
5552    {
5553      auto a = [](int i, int j){ return i + j; }(1, 2);
5554      auto b = []() -> int { return '0'; }();
5555      auto c = [=](){ return a + b; }();
5556      auto d = [&](){ return c; }();
5557      auto e = [a, &b](int x) mutable {
5558        const auto identity = [](int y){ return y; };
5559        for (auto i = 0; i < a; ++i)
5560          a += b--;
5561        return x + identity(a + b);
5562      }(0);
5563      return a + b + c + d + e;
5564    }
5565
5566    int
5567    test3()
5568    {
5569      const auto nullary = [](){ return 0; };
5570      const auto unary = [](int x){ return x; };
5571      using nullary_t = decltype(nullary);
5572      using unary_t = decltype(unary);
5573      const auto higher1st = [](nullary_t f){ return f(); };
5574      const auto higher2nd = [unary](nullary_t f1){
5575        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5576      };
5577      return higher1st(nullary) + higher2nd(nullary)(unary);
5578    }
5579
5580  }
5581
5582  namespace test_variadic_templates
5583  {
5584
5585    template <int...>
5586    struct sum;
5587
5588    template <int N0, int... N1toN>
5589    struct sum<N0, N1toN...>
5590    {
5591      static constexpr auto value = N0 + sum<N1toN...>::value;
5592    };
5593
5594    template <>
5595    struct sum<>
5596    {
5597      static constexpr auto value = 0;
5598    };
5599
5600    static_assert(sum<>::value == 0, "");
5601    static_assert(sum<1>::value == 1, "");
5602    static_assert(sum<23>::value == 23, "");
5603    static_assert(sum<1, 2>::value == 3, "");
5604    static_assert(sum<5, 5, 11>::value == 21, "");
5605    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5606
5607  }
5608
5609  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5610  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5611  // because of this.
5612  namespace test_template_alias_sfinae
5613  {
5614
5615    struct foo {};
5616
5617    template<typename T>
5618    using member = typename T::member_type;
5619
5620    template<typename T>
5621    void func(...) {}
5622
5623    template<typename T>
5624    void func(member<T>*) {}
5625
5626    void test();
5627
5628    void test() { func<foo>(0); }
5629
5630  }
5631
5632}  // namespace cxx11
5633
5634#endif  // __cplusplus >= 201103L
5635
5636
5637
5638
5639// If the compiler admits that it is not ready for C++14, why torture it?
5640// Hopefully, this will speed up the test.
5641
5642#ifndef __cplusplus
5643
5644#error "This is not a C++ compiler"
5645
5646#elif __cplusplus < 201402L
5647
5648#error "This is not a C++14 compiler"
5649
5650#else
5651
5652namespace cxx14
5653{
5654
5655  namespace test_polymorphic_lambdas
5656  {
5657
5658    int
5659    test()
5660    {
5661      const auto lambda = [](auto&&... args){
5662        const auto istiny = [](auto x){
5663          return (sizeof(x) == 1UL) ? 1 : 0;
5664        };
5665        const int aretiny[] = { istiny(args)... };
5666        return aretiny[0];
5667      };
5668      return lambda(1, 1L, 1.0f, '1');
5669    }
5670
5671  }
5672
5673  namespace test_binary_literals
5674  {
5675
5676    constexpr auto ivii = 0b0000000000101010;
5677    static_assert(ivii == 42, "wrong value");
5678
5679  }
5680
5681  namespace test_generalized_constexpr
5682  {
5683
5684    template < typename CharT >
5685    constexpr unsigned long
5686    strlen_c(const CharT *const s) noexcept
5687    {
5688      auto length = 0UL;
5689      for (auto p = s; *p; ++p)
5690        ++length;
5691      return length;
5692    }
5693
5694    static_assert(strlen_c("") == 0UL, "");
5695    static_assert(strlen_c("x") == 1UL, "");
5696    static_assert(strlen_c("test") == 4UL, "");
5697    static_assert(strlen_c("another\0test") == 7UL, "");
5698
5699  }
5700
5701  namespace test_lambda_init_capture
5702  {
5703
5704    int
5705    test()
5706    {
5707      auto x = 0;
5708      const auto lambda1 = [a = x](int b){ return a + b; };
5709      const auto lambda2 = [a = lambda1(x)](){ return a; };
5710      return lambda2();
5711    }
5712
5713  }
5714
5715  namespace test_digit_separators
5716  {
5717
5718    constexpr auto ten_million = 100'000'000;
5719    static_assert(ten_million == 100000000, "");
5720
5721  }
5722
5723  namespace test_return_type_deduction
5724  {
5725
5726    auto f(int& x) { return x; }
5727    decltype(auto) g(int& x) { return x; }
5728
5729    template < typename T1, typename T2 >
5730    struct is_same
5731    {
5732      static constexpr auto value = false;
5733    };
5734
5735    template < typename T >
5736    struct is_same<T, T>
5737    {
5738      static constexpr auto value = true;
5739    };
5740
5741    int
5742    test()
5743    {
5744      auto x = 0;
5745      static_assert(is_same<int, decltype(f(x))>::value, "");
5746      static_assert(is_same<int&, decltype(g(x))>::value, "");
5747      return x;
5748    }
5749
5750  }
5751
5752}  // namespace cxx14
5753
5754#endif  // __cplusplus >= 201402L
5755
5756
5757
5758
5759// If the compiler admits that it is not ready for C++17, why torture it?
5760// Hopefully, this will speed up the test.
5761
5762#ifndef __cplusplus
5763
5764#error "This is not a C++ compiler"
5765
5766#elif __cplusplus < 201703L
5767
5768#error "This is not a C++17 compiler"
5769
5770#else
5771
5772#include <initializer_list>
5773#include <utility>
5774#include <type_traits>
5775
5776namespace cxx17
5777{
5778
5779  namespace test_constexpr_lambdas
5780  {
5781
5782    constexpr int foo = [](){return 42;}();
5783
5784  }
5785
5786  namespace test::nested_namespace::definitions
5787  {
5788
5789  }
5790
5791  namespace test_fold_expression
5792  {
5793
5794    template<typename... Args>
5795    int multiply(Args... args)
5796    {
5797      return (args * ... * 1);
5798    }
5799
5800    template<typename... Args>
5801    bool all(Args... args)
5802    {
5803      return (args && ...);
5804    }
5805
5806  }
5807
5808  namespace test_extended_static_assert
5809  {
5810
5811    static_assert (true);
5812
5813  }
5814
5815  namespace test_auto_brace_init_list
5816  {
5817
5818    auto foo = {5};
5819    auto bar {5};
5820
5821    static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
5822    static_assert(std::is_same<int, decltype(bar)>::value);
5823  }
5824
5825  namespace test_typename_in_template_template_parameter
5826  {
5827
5828    template<template<typename> typename X> struct D;
5829
5830  }
5831
5832  namespace test_fallthrough_nodiscard_maybe_unused_attributes
5833  {
5834
5835    int f1()
5836    {
5837      return 42;
5838    }
5839
5840    [[nodiscard]] int f2()
5841    {
5842      [[maybe_unused]] auto unused = f1();
5843
5844      switch (f1())
5845      {
5846      case 17:
5847        f1();
5848        [[fallthrough]];
5849      case 42:
5850        f1();
5851      }
5852      return f1();
5853    }
5854
5855  }
5856
5857  namespace test_extended_aggregate_initialization
5858  {
5859
5860    struct base1
5861    {
5862      int b1, b2 = 42;
5863    };
5864
5865    struct base2
5866    {
5867      base2() {
5868        b3 = 42;
5869      }
5870      int b3;
5871    };
5872
5873    struct derived : base1, base2
5874    {
5875        int d;
5876    };
5877
5878    derived d1 {{1, 2}, {}, 4};  // full initialization
5879    derived d2 {{}, {}, 4};      // value-initialized bases
5880
5881  }
5882
5883  namespace test_general_range_based_for_loop
5884  {
5885
5886    struct iter
5887    {
5888      int i;
5889
5890      int& operator* ()
5891      {
5892        return i;
5893      }
5894
5895      const int& operator* () const
5896      {
5897        return i;
5898      }
5899
5900      iter& operator++()
5901      {
5902        ++i;
5903        return *this;
5904      }
5905    };
5906
5907    struct sentinel
5908    {
5909      int i;
5910    };
5911
5912    bool operator== (const iter& i, const sentinel& s)
5913    {
5914      return i.i == s.i;
5915    }
5916
5917    bool operator!= (const iter& i, const sentinel& s)
5918    {
5919      return !(i == s);
5920    }
5921
5922    struct range
5923    {
5924      iter begin() const
5925      {
5926        return {0};
5927      }
5928
5929      sentinel end() const
5930      {
5931        return {5};
5932      }
5933    };
5934
5935    void f()
5936    {
5937      range r {};
5938
5939      for (auto i : r)
5940      {
5941        [[maybe_unused]] auto v = i;
5942      }
5943    }
5944
5945  }
5946
5947  namespace test_lambda_capture_asterisk_this_by_value
5948  {
5949
5950    struct t
5951    {
5952      int i;
5953      int foo()
5954      {
5955        return [*this]()
5956        {
5957          return i;
5958        }();
5959      }
5960    };
5961
5962  }
5963
5964  namespace test_enum_class_construction
5965  {
5966
5967    enum class byte : unsigned char
5968    {};
5969
5970    byte foo {42};
5971
5972  }
5973
5974  namespace test_constexpr_if
5975  {
5976
5977    template <bool cond>
5978    int f ()
5979    {
5980      if constexpr(cond)
5981      {
5982        return 13;
5983      }
5984      else
5985      {
5986        return 42;
5987      }
5988    }
5989
5990  }
5991
5992  namespace test_selection_statement_with_initializer
5993  {
5994
5995    int f()
5996    {
5997      return 13;
5998    }
5999
6000    int f2()
6001    {
6002      if (auto i = f(); i > 0)
6003      {
6004        return 3;
6005      }
6006
6007      switch (auto i = f(); i + 4)
6008      {
6009      case 17:
6010        return 2;
6011
6012      default:
6013        return 1;
6014      }
6015    }
6016
6017  }
6018
6019  namespace test_template_argument_deduction_for_class_templates
6020  {
6021
6022    template <typename T1, typename T2>
6023    struct pair
6024    {
6025      pair (T1 p1, T2 p2)
6026        : m1 {p1},
6027          m2 {p2}
6028      {}
6029
6030      T1 m1;
6031      T2 m2;
6032    };
6033
6034    void f()
6035    {
6036      [[maybe_unused]] auto p = pair{13, 42u};
6037    }
6038
6039  }
6040
6041  namespace test_non_type_auto_template_parameters
6042  {
6043
6044    template <auto n>
6045    struct B
6046    {};
6047
6048    B<5> b1;
6049    B<'a'> b2;
6050
6051  }
6052
6053  namespace test_structured_bindings
6054  {
6055
6056    int arr[2] = { 1, 2 };
6057    std::pair<int, int> pr = { 1, 2 };
6058
6059    auto f1() -> int(&)[2]
6060    {
6061      return arr;
6062    }
6063
6064    auto f2() -> std::pair<int, int>&
6065    {
6066      return pr;
6067    }
6068
6069    struct S
6070    {
6071      int x1 : 2;
6072      volatile double y1;
6073    };
6074
6075    S f3()
6076    {
6077      return {};
6078    }
6079
6080    auto [ x1, y1 ] = f1();
6081    auto& [ xr1, yr1 ] = f1();
6082    auto [ x2, y2 ] = f2();
6083    auto& [ xr2, yr2 ] = f2();
6084    const auto [ x3, y3 ] = f3();
6085
6086  }
6087
6088  namespace test_exception_spec_type_system
6089  {
6090
6091    struct Good {};
6092    struct Bad {};
6093
6094    void g1() noexcept;
6095    void g2();
6096
6097    template<typename T>
6098    Bad
6099    f(T*, T*);
6100
6101    template<typename T1, typename T2>
6102    Good
6103    f(T1*, T2*);
6104
6105    static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
6106
6107  }
6108
6109  namespace test_inline_variables
6110  {
6111
6112    template<class T> void f(T)
6113    {}
6114
6115    template<class T> inline T g(T)
6116    {
6117      return T{};
6118    }
6119
6120    template<> inline void f<>(int)
6121    {}
6122
6123    template<> int g<>(int)
6124    {
6125      return 5;
6126    }
6127
6128  }
6129
6130}  // namespace cxx17
6131
6132#endif  // __cplusplus < 201703L
6133
6134
6135
6136_ACEOF
6137if ac_fn_cxx_try_compile "$LINENO"; then :
6138  eval $cachevar=yes
6139else
6140  eval $cachevar=no
6141fi
6142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143           CXX="$ac_save_CXX"
6144fi
6145eval ac_res=\$$cachevar
6146	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6147$as_echo "$ac_res" >&6; }
6148        if eval test x\$$cachevar = xyes; then
6149          CXX="$CXX $switch"
6150          if test -n "$CXXCPP" ; then
6151            CXXCPP="$CXXCPP $switch"
6152          fi
6153          ac_success=yes
6154          break
6155        fi
6156      done
6157      if test x$ac_success = xyes; then
6158        break
6159      fi
6160    done
6161  fi
6162  ac_ext=c
6163ac_cpp='$CPP $CPPFLAGS'
6164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166ac_compiler_gnu=$ac_cv_c_compiler_gnu
6167
6168  if test x$ax_cxx_compile_cxx17_required = xtrue; then
6169    if test x$ac_success = xno; then
6170      as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
6171    fi
6172  fi
6173  if test x$ac_success = xno; then
6174    HAVE_CXX17=0
6175    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
6176$as_echo "$as_me: No compiler with C++17 support was found" >&6;}
6177  else
6178    HAVE_CXX17=1
6179
6180$as_echo "#define HAVE_CXX17 1" >>confdefs.h
6181
6182  fi
6183
6184
6185  if test "x${HAVE_CXX17}" != "x1"; then
6186      ax_cxx_compile_alternatives="14 1y"    ax_cxx_compile_cxx14_required=false
6187  ac_ext=cpp
6188ac_cpp='$CXXCPP $CPPFLAGS'
6189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6192  ac_success=no
6193
6194
6195
6196    if test x$ac_success = xno; then
6197                for alternative in ${ax_cxx_compile_alternatives}; do
6198      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6199        cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6200        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6201$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6202if eval \${$cachevar+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  ac_save_CXX="$CXX"
6206           CXX="$CXX $switch"
6207           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h.  */
6209
6210
6211// If the compiler admits that it is not ready for C++11, why torture it?
6212// Hopefully, this will speed up the test.
6213
6214#ifndef __cplusplus
6215
6216#error "This is not a C++ compiler"
6217
6218#elif __cplusplus < 201103L
6219
6220#error "This is not a C++11 compiler"
6221
6222#else
6223
6224namespace cxx11
6225{
6226
6227  namespace test_static_assert
6228  {
6229
6230    template <typename T>
6231    struct check
6232    {
6233      static_assert(sizeof(int) <= sizeof(T), "not big enough");
6234    };
6235
6236  }
6237
6238  namespace test_final_override
6239  {
6240
6241    struct Base
6242    {
6243      virtual ~Base() {}
6244      virtual void f() {}
6245    };
6246
6247    struct Derived : public Base
6248    {
6249      virtual ~Derived() override {}
6250      virtual void f() override {}
6251    };
6252
6253  }
6254
6255  namespace test_double_right_angle_brackets
6256  {
6257
6258    template < typename T >
6259    struct check {};
6260
6261    typedef check<void> single_type;
6262    typedef check<check<void>> double_type;
6263    typedef check<check<check<void>>> triple_type;
6264    typedef check<check<check<check<void>>>> quadruple_type;
6265
6266  }
6267
6268  namespace test_decltype
6269  {
6270
6271    int
6272    f()
6273    {
6274      int a = 1;
6275      decltype(a) b = 2;
6276      return a + b;
6277    }
6278
6279  }
6280
6281  namespace test_type_deduction
6282  {
6283
6284    template < typename T1, typename T2 >
6285    struct is_same
6286    {
6287      static const bool value = false;
6288    };
6289
6290    template < typename T >
6291    struct is_same<T, T>
6292    {
6293      static const bool value = true;
6294    };
6295
6296    template < typename T1, typename T2 >
6297    auto
6298    add(T1 a1, T2 a2) -> decltype(a1 + a2)
6299    {
6300      return a1 + a2;
6301    }
6302
6303    int
6304    test(const int c, volatile int v)
6305    {
6306      static_assert(is_same<int, decltype(0)>::value == true, "");
6307      static_assert(is_same<int, decltype(c)>::value == false, "");
6308      static_assert(is_same<int, decltype(v)>::value == false, "");
6309      auto ac = c;
6310      auto av = v;
6311      auto sumi = ac + av + 'x';
6312      auto sumf = ac + av + 1.0;
6313      static_assert(is_same<int, decltype(ac)>::value == true, "");
6314      static_assert(is_same<int, decltype(av)>::value == true, "");
6315      static_assert(is_same<int, decltype(sumi)>::value == true, "");
6316      static_assert(is_same<int, decltype(sumf)>::value == false, "");
6317      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6318      return (sumf > 0.0) ? sumi : add(c, v);
6319    }
6320
6321  }
6322
6323  namespace test_noexcept
6324  {
6325
6326    int f() { return 0; }
6327    int g() noexcept { return 0; }
6328
6329    static_assert(noexcept(f()) == false, "");
6330    static_assert(noexcept(g()) == true, "");
6331
6332  }
6333
6334  namespace test_constexpr
6335  {
6336
6337    template < typename CharT >
6338    unsigned long constexpr
6339    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6340    {
6341      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6342    }
6343
6344    template < typename CharT >
6345    unsigned long constexpr
6346    strlen_c(const CharT *const s) noexcept
6347    {
6348      return strlen_c_r(s, 0UL);
6349    }
6350
6351    static_assert(strlen_c("") == 0UL, "");
6352    static_assert(strlen_c("1") == 1UL, "");
6353    static_assert(strlen_c("example") == 7UL, "");
6354    static_assert(strlen_c("another\0example") == 7UL, "");
6355
6356  }
6357
6358  namespace test_rvalue_references
6359  {
6360
6361    template < int N >
6362    struct answer
6363    {
6364      static constexpr int value = N;
6365    };
6366
6367    answer<1> f(int&)       { return answer<1>(); }
6368    answer<2> f(const int&) { return answer<2>(); }
6369    answer<3> f(int&&)      { return answer<3>(); }
6370
6371    void
6372    test()
6373    {
6374      int i = 0;
6375      const int c = 0;
6376      static_assert(decltype(f(i))::value == 1, "");
6377      static_assert(decltype(f(c))::value == 2, "");
6378      static_assert(decltype(f(0))::value == 3, "");
6379    }
6380
6381  }
6382
6383  namespace test_uniform_initialization
6384  {
6385
6386    struct test
6387    {
6388      static const int zero {};
6389      static const int one {1};
6390    };
6391
6392    static_assert(test::zero == 0, "");
6393    static_assert(test::one == 1, "");
6394
6395  }
6396
6397  namespace test_lambdas
6398  {
6399
6400    void
6401    test1()
6402    {
6403      auto lambda1 = [](){};
6404      auto lambda2 = lambda1;
6405      lambda1();
6406      lambda2();
6407    }
6408
6409    int
6410    test2()
6411    {
6412      auto a = [](int i, int j){ return i + j; }(1, 2);
6413      auto b = []() -> int { return '0'; }();
6414      auto c = [=](){ return a + b; }();
6415      auto d = [&](){ return c; }();
6416      auto e = [a, &b](int x) mutable {
6417        const auto identity = [](int y){ return y; };
6418        for (auto i = 0; i < a; ++i)
6419          a += b--;
6420        return x + identity(a + b);
6421      }(0);
6422      return a + b + c + d + e;
6423    }
6424
6425    int
6426    test3()
6427    {
6428      const auto nullary = [](){ return 0; };
6429      const auto unary = [](int x){ return x; };
6430      using nullary_t = decltype(nullary);
6431      using unary_t = decltype(unary);
6432      const auto higher1st = [](nullary_t f){ return f(); };
6433      const auto higher2nd = [unary](nullary_t f1){
6434        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6435      };
6436      return higher1st(nullary) + higher2nd(nullary)(unary);
6437    }
6438
6439  }
6440
6441  namespace test_variadic_templates
6442  {
6443
6444    template <int...>
6445    struct sum;
6446
6447    template <int N0, int... N1toN>
6448    struct sum<N0, N1toN...>
6449    {
6450      static constexpr auto value = N0 + sum<N1toN...>::value;
6451    };
6452
6453    template <>
6454    struct sum<>
6455    {
6456      static constexpr auto value = 0;
6457    };
6458
6459    static_assert(sum<>::value == 0, "");
6460    static_assert(sum<1>::value == 1, "");
6461    static_assert(sum<23>::value == 23, "");
6462    static_assert(sum<1, 2>::value == 3, "");
6463    static_assert(sum<5, 5, 11>::value == 21, "");
6464    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6465
6466  }
6467
6468  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6469  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6470  // because of this.
6471  namespace test_template_alias_sfinae
6472  {
6473
6474    struct foo {};
6475
6476    template<typename T>
6477    using member = typename T::member_type;
6478
6479    template<typename T>
6480    void func(...) {}
6481
6482    template<typename T>
6483    void func(member<T>*) {}
6484
6485    void test();
6486
6487    void test() { func<foo>(0); }
6488
6489  }
6490
6491}  // namespace cxx11
6492
6493#endif  // __cplusplus >= 201103L
6494
6495
6496
6497
6498// If the compiler admits that it is not ready for C++14, why torture it?
6499// Hopefully, this will speed up the test.
6500
6501#ifndef __cplusplus
6502
6503#error "This is not a C++ compiler"
6504
6505#elif __cplusplus < 201402L
6506
6507#error "This is not a C++14 compiler"
6508
6509#else
6510
6511namespace cxx14
6512{
6513
6514  namespace test_polymorphic_lambdas
6515  {
6516
6517    int
6518    test()
6519    {
6520      const auto lambda = [](auto&&... args){
6521        const auto istiny = [](auto x){
6522          return (sizeof(x) == 1UL) ? 1 : 0;
6523        };
6524        const int aretiny[] = { istiny(args)... };
6525        return aretiny[0];
6526      };
6527      return lambda(1, 1L, 1.0f, '1');
6528    }
6529
6530  }
6531
6532  namespace test_binary_literals
6533  {
6534
6535    constexpr auto ivii = 0b0000000000101010;
6536    static_assert(ivii == 42, "wrong value");
6537
6538  }
6539
6540  namespace test_generalized_constexpr
6541  {
6542
6543    template < typename CharT >
6544    constexpr unsigned long
6545    strlen_c(const CharT *const s) noexcept
6546    {
6547      auto length = 0UL;
6548      for (auto p = s; *p; ++p)
6549        ++length;
6550      return length;
6551    }
6552
6553    static_assert(strlen_c("") == 0UL, "");
6554    static_assert(strlen_c("x") == 1UL, "");
6555    static_assert(strlen_c("test") == 4UL, "");
6556    static_assert(strlen_c("another\0test") == 7UL, "");
6557
6558  }
6559
6560  namespace test_lambda_init_capture
6561  {
6562
6563    int
6564    test()
6565    {
6566      auto x = 0;
6567      const auto lambda1 = [a = x](int b){ return a + b; };
6568      const auto lambda2 = [a = lambda1(x)](){ return a; };
6569      return lambda2();
6570    }
6571
6572  }
6573
6574  namespace test_digit_separators
6575  {
6576
6577    constexpr auto ten_million = 100'000'000;
6578    static_assert(ten_million == 100000000, "");
6579
6580  }
6581
6582  namespace test_return_type_deduction
6583  {
6584
6585    auto f(int& x) { return x; }
6586    decltype(auto) g(int& x) { return x; }
6587
6588    template < typename T1, typename T2 >
6589    struct is_same
6590    {
6591      static constexpr auto value = false;
6592    };
6593
6594    template < typename T >
6595    struct is_same<T, T>
6596    {
6597      static constexpr auto value = true;
6598    };
6599
6600    int
6601    test()
6602    {
6603      auto x = 0;
6604      static_assert(is_same<int, decltype(f(x))>::value, "");
6605      static_assert(is_same<int&, decltype(g(x))>::value, "");
6606      return x;
6607    }
6608
6609  }
6610
6611}  // namespace cxx14
6612
6613#endif  // __cplusplus >= 201402L
6614
6615
6616
6617_ACEOF
6618if ac_fn_cxx_try_compile "$LINENO"; then :
6619  eval $cachevar=yes
6620else
6621  eval $cachevar=no
6622fi
6623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624           CXX="$ac_save_CXX"
6625fi
6626eval ac_res=\$$cachevar
6627	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6628$as_echo "$ac_res" >&6; }
6629        if eval test x\$$cachevar = xyes; then
6630          CXX="$CXX $switch"
6631          if test -n "$CXXCPP" ; then
6632            CXXCPP="$CXXCPP $switch"
6633          fi
6634          ac_success=yes
6635          break
6636        fi
6637      done
6638      if test x$ac_success = xyes; then
6639        break
6640      fi
6641    done
6642  fi
6643  ac_ext=c
6644ac_cpp='$CPP $CPPFLAGS'
6645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647ac_compiler_gnu=$ac_cv_c_compiler_gnu
6648
6649  if test x$ax_cxx_compile_cxx14_required = xtrue; then
6650    if test x$ac_success = xno; then
6651      as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
6652    fi
6653  fi
6654  if test x$ac_success = xno; then
6655    HAVE_CXX14=0
6656    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
6657$as_echo "$as_me: No compiler with C++14 support was found" >&6;}
6658  else
6659    HAVE_CXX14=1
6660
6661$as_echo "#define HAVE_CXX14 1" >>confdefs.h
6662
6663  fi
6664
6665
6666  fi
6667  if test "x${HAVE_CXX14}" = "x1" -o "x${HAVE_CXX17}" = "x1"; then
6668
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
6670$as_echo_n "checking whether compiler supports -Wall... " >&6; }
6671T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
6672T_APPEND_V=-Wall
6673  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6674  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
6675else
6676  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
6677fi
6678
6679
6680if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6681  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6682else
6683  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6684fi
6685
6686ac_ext=cpp
6687ac_cpp='$CXXCPP $CPPFLAGS'
6688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6691
6692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h.  */
6694
6695
6696int
6697main ()
6698{
6699
6700    return 0;
6701
6702  ;
6703  return 0;
6704}
6705_ACEOF
6706if ac_fn_cxx_try_compile "$LINENO"; then :
6707  je_cv_cxxflags_added=-Wall
6708              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6709$as_echo "yes" >&6; }
6710else
6711  je_cv_cxxflags_added=
6712              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713$as_echo "no" >&6; }
6714              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
6715
6716fi
6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718ac_ext=c
6719ac_cpp='$CPP $CPPFLAGS'
6720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722ac_compiler_gnu=$ac_cv_c_compiler_gnu
6723
6724if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6725  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6726else
6727  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6728fi
6729
6730
6731
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
6733$as_echo_n "checking whether compiler supports -Wextra... " >&6; }
6734T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
6735T_APPEND_V=-Wextra
6736  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6737  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
6738else
6739  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
6740fi
6741
6742
6743if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6744  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6745else
6746  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6747fi
6748
6749ac_ext=cpp
6750ac_cpp='$CXXCPP $CPPFLAGS'
6751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6754
6755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h.  */
6757
6758
6759int
6760main ()
6761{
6762
6763    return 0;
6764
6765  ;
6766  return 0;
6767}
6768_ACEOF
6769if ac_fn_cxx_try_compile "$LINENO"; then :
6770  je_cv_cxxflags_added=-Wextra
6771              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6772$as_echo "yes" >&6; }
6773else
6774  je_cv_cxxflags_added=
6775              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776$as_echo "no" >&6; }
6777              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
6778
6779fi
6780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781ac_ext=c
6782ac_cpp='$CPP $CPPFLAGS'
6783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785ac_compiler_gnu=$ac_cv_c_compiler_gnu
6786
6787if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6788  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6789else
6790  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6791fi
6792
6793
6794
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
6796$as_echo_n "checking whether compiler supports -g3... " >&6; }
6797T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
6798T_APPEND_V=-g3
6799  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6800  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
6801else
6802  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
6803fi
6804
6805
6806if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6807  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6808else
6809  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6810fi
6811
6812ac_ext=cpp
6813ac_cpp='$CXXCPP $CPPFLAGS'
6814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6817
6818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819/* end confdefs.h.  */
6820
6821
6822int
6823main ()
6824{
6825
6826    return 0;
6827
6828  ;
6829  return 0;
6830}
6831_ACEOF
6832if ac_fn_cxx_try_compile "$LINENO"; then :
6833  je_cv_cxxflags_added=-g3
6834              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6835$as_echo "yes" >&6; }
6836else
6837  je_cv_cxxflags_added=
6838              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839$as_echo "no" >&6; }
6840              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
6841
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844ac_ext=c
6845ac_cpp='$CPP $CPPFLAGS'
6846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849
6850if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6851  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6852else
6853  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6854fi
6855
6856
6857
6858    SAVED_LIBS="${LIBS}"
6859    T_APPEND_V=-lstdc++
6860  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6861  LIBS="${LIBS}${T_APPEND_V}"
6862else
6863  LIBS="${LIBS} ${T_APPEND_V}"
6864fi
6865
6866
6867
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
6869$as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; }
6870if ${je_cv_libstdcxx+:} false; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874/* end confdefs.h.  */
6875
6876#include <stdlib.h>
6877
6878int
6879main ()
6880{
6881
6882	int *arr = (int *)malloc(sizeof(int) * 42);
6883	if (arr == NULL)
6884		return 1;
6885
6886  ;
6887  return 0;
6888}
6889_ACEOF
6890if ac_fn_c_try_link "$LINENO"; then :
6891  je_cv_libstdcxx=yes
6892else
6893  je_cv_libstdcxx=no
6894fi
6895rm -f core conftest.err conftest.$ac_objext \
6896    conftest$ac_exeext conftest.$ac_ext
6897fi
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
6899$as_echo "$je_cv_libstdcxx" >&6; }
6900
6901    if test "x${je_cv_libstdcxx}" = "xno" ; then
6902      LIBS="${SAVED_LIBS}"
6903    fi
6904  else
6905    enable_cxx="0"
6906  fi
6907fi
6908if test "x$enable_cxx" = "x1"; then
6909
6910$as_echo "#define JEMALLOC_ENABLE_CXX  " >>confdefs.h
6911
6912fi
6913
6914
6915
6916
6917
6918
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6920$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6921if ${ac_cv_path_GREP+:} false; then :
6922  $as_echo_n "(cached) " >&6
6923else
6924  if test -z "$GREP"; then
6925  ac_path_GREP_found=false
6926  # Loop through the user's path and test for each of PROGNAME-LIST
6927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6929do
6930  IFS=$as_save_IFS
6931  test -z "$as_dir" && as_dir=.
6932    for ac_prog in grep ggrep; do
6933    for ac_exec_ext in '' $ac_executable_extensions; do
6934      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6935      as_fn_executable_p "$ac_path_GREP" || continue
6936# Check for GNU ac_path_GREP and select it if it is found.
6937  # Check for GNU $ac_path_GREP
6938case `"$ac_path_GREP" --version 2>&1` in
6939*GNU*)
6940  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6941*)
6942  ac_count=0
6943  $as_echo_n 0123456789 >"conftest.in"
6944  while :
6945  do
6946    cat "conftest.in" "conftest.in" >"conftest.tmp"
6947    mv "conftest.tmp" "conftest.in"
6948    cp "conftest.in" "conftest.nl"
6949    $as_echo 'GREP' >> "conftest.nl"
6950    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6951    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6952    as_fn_arith $ac_count + 1 && ac_count=$as_val
6953    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6954      # Best one so far, save it but keep looking for a better one
6955      ac_cv_path_GREP="$ac_path_GREP"
6956      ac_path_GREP_max=$ac_count
6957    fi
6958    # 10*(2^10) chars as input seems more than enough
6959    test $ac_count -gt 10 && break
6960  done
6961  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6962esac
6963
6964      $ac_path_GREP_found && break 3
6965    done
6966  done
6967  done
6968IFS=$as_save_IFS
6969  if test -z "$ac_cv_path_GREP"; then
6970    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6971  fi
6972else
6973  ac_cv_path_GREP=$GREP
6974fi
6975
6976fi
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6978$as_echo "$ac_cv_path_GREP" >&6; }
6979 GREP="$ac_cv_path_GREP"
6980
6981
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6983$as_echo_n "checking for egrep... " >&6; }
6984if ${ac_cv_path_EGREP+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6988   then ac_cv_path_EGREP="$GREP -E"
6989   else
6990     if test -z "$EGREP"; then
6991  ac_path_EGREP_found=false
6992  # Loop through the user's path and test for each of PROGNAME-LIST
6993  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6995do
6996  IFS=$as_save_IFS
6997  test -z "$as_dir" && as_dir=.
6998    for ac_prog in egrep; do
6999    for ac_exec_ext in '' $ac_executable_extensions; do
7000      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7001      as_fn_executable_p "$ac_path_EGREP" || continue
7002# Check for GNU ac_path_EGREP and select it if it is found.
7003  # Check for GNU $ac_path_EGREP
7004case `"$ac_path_EGREP" --version 2>&1` in
7005*GNU*)
7006  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7007*)
7008  ac_count=0
7009  $as_echo_n 0123456789 >"conftest.in"
7010  while :
7011  do
7012    cat "conftest.in" "conftest.in" >"conftest.tmp"
7013    mv "conftest.tmp" "conftest.in"
7014    cp "conftest.in" "conftest.nl"
7015    $as_echo 'EGREP' >> "conftest.nl"
7016    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7017    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7018    as_fn_arith $ac_count + 1 && ac_count=$as_val
7019    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7020      # Best one so far, save it but keep looking for a better one
7021      ac_cv_path_EGREP="$ac_path_EGREP"
7022      ac_path_EGREP_max=$ac_count
7023    fi
7024    # 10*(2^10) chars as input seems more than enough
7025    test $ac_count -gt 10 && break
7026  done
7027  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7028esac
7029
7030      $ac_path_EGREP_found && break 3
7031    done
7032  done
7033  done
7034IFS=$as_save_IFS
7035  if test -z "$ac_cv_path_EGREP"; then
7036    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7037  fi
7038else
7039  ac_cv_path_EGREP=$EGREP
7040fi
7041
7042   fi
7043fi
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7045$as_echo "$ac_cv_path_EGREP" >&6; }
7046 EGREP="$ac_cv_path_EGREP"
7047
7048
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7050$as_echo_n "checking for ANSI C header files... " >&6; }
7051if ${ac_cv_header_stdc+:} false; then :
7052  $as_echo_n "(cached) " >&6
7053else
7054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055/* end confdefs.h.  */
7056#include <stdlib.h>
7057#include <stdarg.h>
7058#include <string.h>
7059#include <float.h>
7060
7061int
7062main ()
7063{
7064
7065  ;
7066  return 0;
7067}
7068_ACEOF
7069if ac_fn_c_try_compile "$LINENO"; then :
7070  ac_cv_header_stdc=yes
7071else
7072  ac_cv_header_stdc=no
7073fi
7074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075
7076if test $ac_cv_header_stdc = yes; then
7077  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079/* end confdefs.h.  */
7080#include <string.h>
7081
7082_ACEOF
7083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084  $EGREP "memchr" >/dev/null 2>&1; then :
7085
7086else
7087  ac_cv_header_stdc=no
7088fi
7089rm -f conftest*
7090
7091fi
7092
7093if test $ac_cv_header_stdc = yes; then
7094  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096/* end confdefs.h.  */
7097#include <stdlib.h>
7098
7099_ACEOF
7100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101  $EGREP "free" >/dev/null 2>&1; then :
7102
7103else
7104  ac_cv_header_stdc=no
7105fi
7106rm -f conftest*
7107
7108fi
7109
7110if test $ac_cv_header_stdc = yes; then
7111  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7112  if test "$cross_compiling" = yes; then :
7113  :
7114else
7115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117#include <ctype.h>
7118#include <stdlib.h>
7119#if ((' ' & 0x0FF) == 0x020)
7120# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7121# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7122#else
7123# define ISLOWER(c) \
7124		   (('a' <= (c) && (c) <= 'i') \
7125		     || ('j' <= (c) && (c) <= 'r') \
7126		     || ('s' <= (c) && (c) <= 'z'))
7127# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7128#endif
7129
7130#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7131int
7132main ()
7133{
7134  int i;
7135  for (i = 0; i < 256; i++)
7136    if (XOR (islower (i), ISLOWER (i))
7137	|| toupper (i) != TOUPPER (i))
7138      return 2;
7139  return 0;
7140}
7141_ACEOF
7142if ac_fn_c_try_run "$LINENO"; then :
7143
7144else
7145  ac_cv_header_stdc=no
7146fi
7147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7148  conftest.$ac_objext conftest.beam conftest.$ac_ext
7149fi
7150
7151fi
7152fi
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7154$as_echo "$ac_cv_header_stdc" >&6; }
7155if test $ac_cv_header_stdc = yes; then
7156
7157$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7158
7159fi
7160
7161# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7162for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7163		  inttypes.h stdint.h unistd.h
7164do :
7165  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7166ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7167"
7168if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7169  cat >>confdefs.h <<_ACEOF
7170#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7171_ACEOF
7172
7173fi
7174
7175done
7176
7177
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7179$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7180if ${ac_cv_c_bigendian+:} false; then :
7181  $as_echo_n "(cached) " >&6
7182else
7183  ac_cv_c_bigendian=unknown
7184    # See if we're dealing with a universal compiler.
7185    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186/* end confdefs.h.  */
7187#ifndef __APPLE_CC__
7188	       not a universal capable compiler
7189	     #endif
7190	     typedef int dummy;
7191
7192_ACEOF
7193if ac_fn_c_try_compile "$LINENO"; then :
7194
7195	# Check for potential -arch flags.  It is not universal unless
7196	# there are at least two -arch flags with different values.
7197	ac_arch=
7198	ac_prev=
7199	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7200	 if test -n "$ac_prev"; then
7201	   case $ac_word in
7202	     i?86 | x86_64 | ppc | ppc64)
7203	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7204		 ac_arch=$ac_word
7205	       else
7206		 ac_cv_c_bigendian=universal
7207		 break
7208	       fi
7209	       ;;
7210	   esac
7211	   ac_prev=
7212	 elif test "x$ac_word" = "x-arch"; then
7213	   ac_prev=arch
7214	 fi
7215       done
7216fi
7217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218    if test $ac_cv_c_bigendian = unknown; then
7219      # See if sys/param.h defines the BYTE_ORDER macro.
7220      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221/* end confdefs.h.  */
7222#include <sys/types.h>
7223	     #include <sys/param.h>
7224
7225int
7226main ()
7227{
7228#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7229		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7230		     && LITTLE_ENDIAN)
7231	      bogus endian macros
7232	     #endif
7233
7234  ;
7235  return 0;
7236}
7237_ACEOF
7238if ac_fn_c_try_compile "$LINENO"; then :
7239  # It does; now see whether it defined to BIG_ENDIAN or not.
7240	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241/* end confdefs.h.  */
7242#include <sys/types.h>
7243		#include <sys/param.h>
7244
7245int
7246main ()
7247{
7248#if BYTE_ORDER != BIG_ENDIAN
7249		 not big endian
7250		#endif
7251
7252  ;
7253  return 0;
7254}
7255_ACEOF
7256if ac_fn_c_try_compile "$LINENO"; then :
7257  ac_cv_c_bigendian=yes
7258else
7259  ac_cv_c_bigendian=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262fi
7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264    fi
7265    if test $ac_cv_c_bigendian = unknown; then
7266      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7267      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268/* end confdefs.h.  */
7269#include <limits.h>
7270
7271int
7272main ()
7273{
7274#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7275	      bogus endian macros
7276	     #endif
7277
7278  ;
7279  return 0;
7280}
7281_ACEOF
7282if ac_fn_c_try_compile "$LINENO"; then :
7283  # It does; now see whether it defined to _BIG_ENDIAN or not.
7284	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h.  */
7286#include <limits.h>
7287
7288int
7289main ()
7290{
7291#ifndef _BIG_ENDIAN
7292		 not big endian
7293		#endif
7294
7295  ;
7296  return 0;
7297}
7298_ACEOF
7299if ac_fn_c_try_compile "$LINENO"; then :
7300  ac_cv_c_bigendian=yes
7301else
7302  ac_cv_c_bigendian=no
7303fi
7304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305fi
7306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307    fi
7308    if test $ac_cv_c_bigendian = unknown; then
7309      # Compile a test program.
7310      if test "$cross_compiling" = yes; then :
7311  # Try to guess by grepping values from an object file.
7312	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313/* end confdefs.h.  */
7314short int ascii_mm[] =
7315		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7316		short int ascii_ii[] =
7317		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7318		int use_ascii (int i) {
7319		  return ascii_mm[i] + ascii_ii[i];
7320		}
7321		short int ebcdic_ii[] =
7322		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7323		short int ebcdic_mm[] =
7324		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7325		int use_ebcdic (int i) {
7326		  return ebcdic_mm[i] + ebcdic_ii[i];
7327		}
7328		extern int foo;
7329
7330int
7331main ()
7332{
7333return use_ascii (foo) == use_ebcdic (foo);
7334  ;
7335  return 0;
7336}
7337_ACEOF
7338if ac_fn_c_try_compile "$LINENO"; then :
7339  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7340	      ac_cv_c_bigendian=yes
7341	    fi
7342	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7343	      if test "$ac_cv_c_bigendian" = unknown; then
7344		ac_cv_c_bigendian=no
7345	      else
7346		# finding both strings is unlikely to happen, but who knows?
7347		ac_cv_c_bigendian=unknown
7348	      fi
7349	    fi
7350fi
7351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352else
7353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354/* end confdefs.h.  */
7355$ac_includes_default
7356int
7357main ()
7358{
7359
7360	     /* Are we little or big endian?  From Harbison&Steele.  */
7361	     union
7362	     {
7363	       long int l;
7364	       char c[sizeof (long int)];
7365	     } u;
7366	     u.l = 1;
7367	     return u.c[sizeof (long int) - 1] == 1;
7368
7369  ;
7370  return 0;
7371}
7372_ACEOF
7373if ac_fn_c_try_run "$LINENO"; then :
7374  ac_cv_c_bigendian=no
7375else
7376  ac_cv_c_bigendian=yes
7377fi
7378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7379  conftest.$ac_objext conftest.beam conftest.$ac_ext
7380fi
7381
7382    fi
7383fi
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7385$as_echo "$ac_cv_c_bigendian" >&6; }
7386 case $ac_cv_c_bigendian in #(
7387   yes)
7388     ac_cv_big_endian=1;; #(
7389   no)
7390     ac_cv_big_endian=0 ;; #(
7391   universal)
7392
7393$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7394
7395     ;; #(
7396   *)
7397     as_fn_error $? "unknown endianness
7398 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7399 esac
7400
7401if test "x${ac_cv_big_endian}" = "x1" ; then
7402
7403cat >>confdefs.h <<_ACEOF
7404#define JEMALLOC_BIG_ENDIAN
7405_ACEOF
7406
7407fi
7408
7409if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
7410  T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
7411  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7412  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7413else
7414  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7415fi
7416
7417
7418fi
7419
7420if test "x${je_cv_msvc}" = "xyes" ; then
7421  LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
7422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
7423$as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
7424else
7425  # The cast to long int works around a bug in the HP C Compiler
7426# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7427# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7428# This bug is HP SR number 8606223364.
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7430$as_echo_n "checking size of void *... " >&6; }
7431if ${ac_cv_sizeof_void_p+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
7435
7436else
7437  if test "$ac_cv_type_void_p" = yes; then
7438     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7440as_fn_error 77 "cannot compute sizeof (void *)
7441See \`config.log' for more details" "$LINENO" 5; }
7442   else
7443     ac_cv_sizeof_void_p=0
7444   fi
7445fi
7446
7447fi
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7449$as_echo "$ac_cv_sizeof_void_p" >&6; }
7450
7451
7452
7453cat >>confdefs.h <<_ACEOF
7454#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7455_ACEOF
7456
7457
7458  if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
7459    LG_SIZEOF_PTR=3
7460  elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
7461    LG_SIZEOF_PTR=2
7462  else
7463    as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
7464  fi
7465fi
7466
7467cat >>confdefs.h <<_ACEOF
7468#define LG_SIZEOF_PTR $LG_SIZEOF_PTR
7469_ACEOF
7470
7471
7472# The cast to long int works around a bug in the HP C Compiler
7473# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7474# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7475# This bug is HP SR number 8606223364.
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7477$as_echo_n "checking size of int... " >&6; }
7478if ${ac_cv_sizeof_int+:} false; then :
7479  $as_echo_n "(cached) " >&6
7480else
7481  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
7482
7483else
7484  if test "$ac_cv_type_int" = yes; then
7485     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7487as_fn_error 77 "cannot compute sizeof (int)
7488See \`config.log' for more details" "$LINENO" 5; }
7489   else
7490     ac_cv_sizeof_int=0
7491   fi
7492fi
7493
7494fi
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7496$as_echo "$ac_cv_sizeof_int" >&6; }
7497
7498
7499
7500cat >>confdefs.h <<_ACEOF
7501#define SIZEOF_INT $ac_cv_sizeof_int
7502_ACEOF
7503
7504
7505if test "x${ac_cv_sizeof_int}" = "x8" ; then
7506  LG_SIZEOF_INT=3
7507elif test "x${ac_cv_sizeof_int}" = "x4" ; then
7508  LG_SIZEOF_INT=2
7509else
7510  as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
7511fi
7512
7513cat >>confdefs.h <<_ACEOF
7514#define LG_SIZEOF_INT $LG_SIZEOF_INT
7515_ACEOF
7516
7517
7518# The cast to long int works around a bug in the HP C Compiler
7519# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7520# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7521# This bug is HP SR number 8606223364.
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7523$as_echo_n "checking size of long... " >&6; }
7524if ${ac_cv_sizeof_long+:} false; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7528
7529else
7530  if test "$ac_cv_type_long" = yes; then
7531     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7533as_fn_error 77 "cannot compute sizeof (long)
7534See \`config.log' for more details" "$LINENO" 5; }
7535   else
7536     ac_cv_sizeof_long=0
7537   fi
7538fi
7539
7540fi
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7542$as_echo "$ac_cv_sizeof_long" >&6; }
7543
7544
7545
7546cat >>confdefs.h <<_ACEOF
7547#define SIZEOF_LONG $ac_cv_sizeof_long
7548_ACEOF
7549
7550
7551if test "x${ac_cv_sizeof_long}" = "x8" ; then
7552  LG_SIZEOF_LONG=3
7553elif test "x${ac_cv_sizeof_long}" = "x4" ; then
7554  LG_SIZEOF_LONG=2
7555else
7556  as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
7557fi
7558
7559cat >>confdefs.h <<_ACEOF
7560#define LG_SIZEOF_LONG $LG_SIZEOF_LONG
7561_ACEOF
7562
7563
7564# The cast to long int works around a bug in the HP C Compiler
7565# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7566# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7567# This bug is HP SR number 8606223364.
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7569$as_echo_n "checking size of long long... " >&6; }
7570if ${ac_cv_sizeof_long_long+:} false; then :
7571  $as_echo_n "(cached) " >&6
7572else
7573  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
7574
7575else
7576  if test "$ac_cv_type_long_long" = yes; then
7577     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7579as_fn_error 77 "cannot compute sizeof (long long)
7580See \`config.log' for more details" "$LINENO" 5; }
7581   else
7582     ac_cv_sizeof_long_long=0
7583   fi
7584fi
7585
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7588$as_echo "$ac_cv_sizeof_long_long" >&6; }
7589
7590
7591
7592cat >>confdefs.h <<_ACEOF
7593#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7594_ACEOF
7595
7596
7597if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
7598  LG_SIZEOF_LONG_LONG=3
7599elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
7600  LG_SIZEOF_LONG_LONG=2
7601else
7602  as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
7603fi
7604
7605cat >>confdefs.h <<_ACEOF
7606#define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
7607_ACEOF
7608
7609
7610# The cast to long int works around a bug in the HP C Compiler
7611# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7612# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7613# This bug is HP SR number 8606223364.
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
7615$as_echo_n "checking size of intmax_t... " >&6; }
7616if ${ac_cv_sizeof_intmax_t+:} false; then :
7617  $as_echo_n "(cached) " >&6
7618else
7619  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
7620
7621else
7622  if test "$ac_cv_type_intmax_t" = yes; then
7623     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7625as_fn_error 77 "cannot compute sizeof (intmax_t)
7626See \`config.log' for more details" "$LINENO" 5; }
7627   else
7628     ac_cv_sizeof_intmax_t=0
7629   fi
7630fi
7631
7632fi
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
7634$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
7635
7636
7637
7638cat >>confdefs.h <<_ACEOF
7639#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
7640_ACEOF
7641
7642
7643if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
7644  LG_SIZEOF_INTMAX_T=4
7645elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
7646  LG_SIZEOF_INTMAX_T=3
7647elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
7648  LG_SIZEOF_INTMAX_T=2
7649else
7650  as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
7651fi
7652
7653cat >>confdefs.h <<_ACEOF
7654#define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
7655_ACEOF
7656
7657
7658# Make sure we can run config.sub.
7659$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7660  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7661
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7663$as_echo_n "checking build system type... " >&6; }
7664if ${ac_cv_build+:} false; then :
7665  $as_echo_n "(cached) " >&6
7666else
7667  ac_build_alias=$build_alias
7668test "x$ac_build_alias" = x &&
7669  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7670test "x$ac_build_alias" = x &&
7671  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7672ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7673  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7674
7675fi
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7677$as_echo "$ac_cv_build" >&6; }
7678case $ac_cv_build in
7679*-*-*) ;;
7680*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7681esac
7682build=$ac_cv_build
7683ac_save_IFS=$IFS; IFS='-'
7684set x $ac_cv_build
7685shift
7686build_cpu=$1
7687build_vendor=$2
7688shift; shift
7689# Remember, the first character of IFS is used to create $*,
7690# except with old shells:
7691build_os=$*
7692IFS=$ac_save_IFS
7693case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7694
7695
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7697$as_echo_n "checking host system type... " >&6; }
7698if ${ac_cv_host+:} false; then :
7699  $as_echo_n "(cached) " >&6
7700else
7701  if test "x$host_alias" = x; then
7702  ac_cv_host=$ac_cv_build
7703else
7704  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7705    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7706fi
7707
7708fi
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7710$as_echo "$ac_cv_host" >&6; }
7711case $ac_cv_host in
7712*-*-*) ;;
7713*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7714esac
7715host=$ac_cv_host
7716ac_save_IFS=$IFS; IFS='-'
7717set x $ac_cv_host
7718shift
7719host_cpu=$1
7720host_vendor=$2
7721shift; shift
7722# Remember, the first character of IFS is used to create $*,
7723# except with old shells:
7724host_os=$*
7725IFS=$ac_save_IFS
7726case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7727
7728
7729CPU_SPINWAIT=""
7730case "${host_cpu}" in
7731  i686|x86_64)
7732	HAVE_CPU_SPINWAIT=1
7733	if test "x${je_cv_msvc}" = "xyes" ; then
7734	    if ${je_cv_pause_msvc+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
7739$as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
7740if ${je_cv_pause_msvc+:} false; then :
7741  $as_echo_n "(cached) " >&6
7742else
7743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h.  */
7745
7746int
7747main ()
7748{
7749_mm_pause(); return 0;
7750  ;
7751  return 0;
7752}
7753_ACEOF
7754if ac_fn_c_try_link "$LINENO"; then :
7755  je_cv_pause_msvc=yes
7756else
7757  je_cv_pause_msvc=no
7758fi
7759rm -f core conftest.err conftest.$ac_objext \
7760    conftest$ac_exeext conftest.$ac_ext
7761fi
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
7763$as_echo "$je_cv_pause_msvc" >&6; }
7764
7765fi
7766
7767	    if test "x${je_cv_pause_msvc}" = "xyes" ; then
7768		CPU_SPINWAIT='_mm_pause()'
7769	    fi
7770	else
7771	    if ${je_cv_pause+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
7776$as_echo_n "checking whether pause instruction is compilable... " >&6; }
7777if ${je_cv_pause+:} false; then :
7778  $as_echo_n "(cached) " >&6
7779else
7780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h.  */
7782
7783int
7784main ()
7785{
7786__asm__ volatile("pause"); return 0;
7787  ;
7788  return 0;
7789}
7790_ACEOF
7791if ac_fn_c_try_link "$LINENO"; then :
7792  je_cv_pause=yes
7793else
7794  je_cv_pause=no
7795fi
7796rm -f core conftest.err conftest.$ac_objext \
7797    conftest$ac_exeext conftest.$ac_ext
7798fi
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
7800$as_echo "$je_cv_pause" >&6; }
7801
7802fi
7803
7804	    if test "x${je_cv_pause}" = "xyes" ; then
7805		CPU_SPINWAIT='__asm__ volatile("pause")'
7806	    fi
7807	fi
7808	;;
7809  aarch64|arm*)
7810	HAVE_CPU_SPINWAIT=1
7811		if ${je_cv_isb+:} false; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isb instruction is compilable" >&5
7816$as_echo_n "checking whether isb instruction is compilable... " >&6; }
7817if ${je_cv_isb+:} false; then :
7818  $as_echo_n "(cached) " >&6
7819else
7820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821/* end confdefs.h.  */
7822
7823int
7824main ()
7825{
7826__asm__ volatile("isb"); return 0;
7827  ;
7828  return 0;
7829}
7830_ACEOF
7831if ac_fn_c_try_link "$LINENO"; then :
7832  je_cv_isb=yes
7833else
7834  je_cv_isb=no
7835fi
7836rm -f core conftest.err conftest.$ac_objext \
7837    conftest$ac_exeext conftest.$ac_ext
7838fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_isb" >&5
7840$as_echo "$je_cv_isb" >&6; }
7841
7842fi
7843
7844	if test "x${je_cv_isb}" = "xyes" ; then
7845	    CPU_SPINWAIT='__asm__ volatile("isb")'
7846	fi
7847	;;
7848  *)
7849	HAVE_CPU_SPINWAIT=0
7850	;;
7851esac
7852
7853cat >>confdefs.h <<_ACEOF
7854#define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT
7855_ACEOF
7856
7857
7858cat >>confdefs.h <<_ACEOF
7859#define CPU_SPINWAIT $CPU_SPINWAIT
7860_ACEOF
7861
7862
7863
7864# Check whether --with-lg_vaddr was given.
7865if test "${with_lg_vaddr+set}" = set; then :
7866  withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
7867else
7868  LG_VADDR="detect"
7869fi
7870
7871
7872case "${host_cpu}" in
7873  aarch64)
7874    if test "x$LG_VADDR" = "xdetect"; then
7875      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7876$as_echo_n "checking number of significant virtual address bits... " >&6; }
7877      if test "x${LG_SIZEOF_PTR}" = "x2" ; then
7878        #aarch64 ILP32
7879        LG_VADDR=32
7880      else
7881        #aarch64 LP64
7882        LG_VADDR=48
7883      fi
7884      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
7885$as_echo "$LG_VADDR" >&6; }
7886    fi
7887    ;;
7888  x86_64)
7889    if test "x$LG_VADDR" = "xdetect"; then
7890      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7891$as_echo_n "checking number of significant virtual address bits... " >&6; }
7892if ${je_cv_lg_vaddr+:} false; then :
7893  $as_echo_n "(cached) " >&6
7894else
7895  if test "$cross_compiling" = yes; then :
7896  je_cv_lg_vaddr=57
7897else
7898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h.  */
7900
7901#include <stdio.h>
7902#ifdef _WIN32
7903#include <limits.h>
7904#include <intrin.h>
7905typedef unsigned __int32 uint32_t;
7906#else
7907#include <stdint.h>
7908#endif
7909
7910int
7911main ()
7912{
7913
7914	uint32_t r[4];
7915	uint32_t eax_in = 0x80000008U;
7916#ifdef _WIN32
7917	__cpuid((int *)r, (int)eax_in);
7918#else
7919	asm volatile ("cpuid"
7920	    : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
7921	    : "a" (eax_in), "c" (0)
7922	);
7923#endif
7924	uint32_t eax_out = r[0];
7925	uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
7926	FILE *f = fopen("conftest.out", "w");
7927	if (f == NULL) {
7928		return 1;
7929	}
7930	if (vaddr > (sizeof(void *) << 3)) {
7931		vaddr = sizeof(void *) << 3;
7932	}
7933	fprintf(f, "%u", vaddr);
7934	fclose(f);
7935	return 0;
7936
7937  ;
7938  return 0;
7939}
7940_ACEOF
7941if ac_fn_c_try_run "$LINENO"; then :
7942  je_cv_lg_vaddr=`cat conftest.out`
7943else
7944  je_cv_lg_vaddr=error
7945fi
7946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7947  conftest.$ac_objext conftest.beam conftest.$ac_ext
7948fi
7949
7950fi
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
7952$as_echo "$je_cv_lg_vaddr" >&6; }
7953      if test "x${je_cv_lg_vaddr}" != "x" ; then
7954        LG_VADDR="${je_cv_lg_vaddr}"
7955      fi
7956      if test "x${LG_VADDR}" != "xerror" ; then
7957
7958cat >>confdefs.h <<_ACEOF
7959#define LG_VADDR $LG_VADDR
7960_ACEOF
7961
7962      else
7963        as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
7964      fi
7965    fi
7966    ;;
7967  *)
7968    if test "x$LG_VADDR" = "xdetect"; then
7969      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7970$as_echo_n "checking number of significant virtual address bits... " >&6; }
7971      if test "x${LG_SIZEOF_PTR}" = "x3" ; then
7972        LG_VADDR=64
7973      elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
7974        LG_VADDR=32
7975      elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
7976        LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
7977      else
7978        as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
7979      fi
7980      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
7981$as_echo "$LG_VADDR" >&6; }
7982    fi
7983    ;;
7984esac
7985
7986cat >>confdefs.h <<_ACEOF
7987#define LG_VADDR $LG_VADDR
7988_ACEOF
7989
7990
7991LD_PRELOAD_VAR="LD_PRELOAD"
7992so="so"
7993importlib="${so}"
7994o="$ac_objext"
7995a="a"
7996exe="$ac_exeext"
7997libprefix="lib"
7998link_whole_archive="0"
7999DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
8000RPATH='-Wl,-rpath,$(1)'
8001SOREV="${so}.${rev}"
8002PIC_CFLAGS='-fPIC -DPIC'
8003CTARGET='-o $@'
8004LDTARGET='-o $@'
8005TEST_LD_MODE=
8006EXTRA_LDFLAGS=
8007ARFLAGS='crus'
8008AROUT=' $@'
8009CC_MM=1
8010
8011if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
8012  TEST_LD_MODE='-dynamic'
8013fi
8014
8015if test "x${je_cv_cray}" = "xyes" ; then
8016  CC_MM=
8017fi
8018
8019
8020
8021
8022if test -n "$ac_tool_prefix"; then
8023  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8024set dummy ${ac_tool_prefix}ar; ac_word=$2
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026$as_echo_n "checking for $ac_word... " >&6; }
8027if ${ac_cv_prog_AR+:} false; then :
8028  $as_echo_n "(cached) " >&6
8029else
8030  if test -n "$AR"; then
8031  ac_cv_prog_AR="$AR" # Let the user override the test.
8032else
8033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034for as_dir in $PATH
8035do
8036  IFS=$as_save_IFS
8037  test -z "$as_dir" && as_dir=.
8038    for ac_exec_ext in '' $ac_executable_extensions; do
8039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040    ac_cv_prog_AR="${ac_tool_prefix}ar"
8041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042    break 2
8043  fi
8044done
8045  done
8046IFS=$as_save_IFS
8047
8048fi
8049fi
8050AR=$ac_cv_prog_AR
8051if test -n "$AR"; then
8052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8053$as_echo "$AR" >&6; }
8054else
8055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056$as_echo "no" >&6; }
8057fi
8058
8059
8060fi
8061if test -z "$ac_cv_prog_AR"; then
8062  ac_ct_AR=$AR
8063  # Extract the first word of "ar", so it can be a program name with args.
8064set dummy ar; ac_word=$2
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066$as_echo_n "checking for $ac_word... " >&6; }
8067if ${ac_cv_prog_ac_ct_AR+:} false; then :
8068  $as_echo_n "(cached) " >&6
8069else
8070  if test -n "$ac_ct_AR"; then
8071  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8072else
8073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074for as_dir in $PATH
8075do
8076  IFS=$as_save_IFS
8077  test -z "$as_dir" && as_dir=.
8078    for ac_exec_ext in '' $ac_executable_extensions; do
8079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080    ac_cv_prog_ac_ct_AR="ar"
8081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082    break 2
8083  fi
8084done
8085  done
8086IFS=$as_save_IFS
8087
8088fi
8089fi
8090ac_ct_AR=$ac_cv_prog_ac_ct_AR
8091if test -n "$ac_ct_AR"; then
8092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8093$as_echo "$ac_ct_AR" >&6; }
8094else
8095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096$as_echo "no" >&6; }
8097fi
8098
8099  if test "x$ac_ct_AR" = x; then
8100    AR=":"
8101  else
8102    case $cross_compiling:$ac_tool_warned in
8103yes:)
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8106ac_tool_warned=yes ;;
8107esac
8108    AR=$ac_ct_AR
8109  fi
8110else
8111  AR="$ac_cv_prog_AR"
8112fi
8113
8114
8115
8116
8117
8118if test -n "$ac_tool_prefix"; then
8119  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
8120set dummy ${ac_tool_prefix}nm; ac_word=$2
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122$as_echo_n "checking for $ac_word... " >&6; }
8123if ${ac_cv_prog_NM+:} false; then :
8124  $as_echo_n "(cached) " >&6
8125else
8126  if test -n "$NM"; then
8127  ac_cv_prog_NM="$NM" # Let the user override the test.
8128else
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132  IFS=$as_save_IFS
8133  test -z "$as_dir" && as_dir=.
8134    for ac_exec_ext in '' $ac_executable_extensions; do
8135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8136    ac_cv_prog_NM="${ac_tool_prefix}nm"
8137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138    break 2
8139  fi
8140done
8141  done
8142IFS=$as_save_IFS
8143
8144fi
8145fi
8146NM=$ac_cv_prog_NM
8147if test -n "$NM"; then
8148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8149$as_echo "$NM" >&6; }
8150else
8151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152$as_echo "no" >&6; }
8153fi
8154
8155
8156fi
8157if test -z "$ac_cv_prog_NM"; then
8158  ac_ct_NM=$NM
8159  # Extract the first word of "nm", so it can be a program name with args.
8160set dummy nm; ac_word=$2
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162$as_echo_n "checking for $ac_word... " >&6; }
8163if ${ac_cv_prog_ac_ct_NM+:} false; then :
8164  $as_echo_n "(cached) " >&6
8165else
8166  if test -n "$ac_ct_NM"; then
8167  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
8168else
8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172  IFS=$as_save_IFS
8173  test -z "$as_dir" && as_dir=.
8174    for ac_exec_ext in '' $ac_executable_extensions; do
8175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8176    ac_cv_prog_ac_ct_NM="nm"
8177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178    break 2
8179  fi
8180done
8181  done
8182IFS=$as_save_IFS
8183
8184fi
8185fi
8186ac_ct_NM=$ac_cv_prog_ac_ct_NM
8187if test -n "$ac_ct_NM"; then
8188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
8189$as_echo "$ac_ct_NM" >&6; }
8190else
8191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192$as_echo "no" >&6; }
8193fi
8194
8195  if test "x$ac_ct_NM" = x; then
8196    NM=":"
8197  else
8198    case $cross_compiling:$ac_tool_warned in
8199yes:)
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8202ac_tool_warned=yes ;;
8203esac
8204    NM=$ac_ct_NM
8205  fi
8206else
8207  NM="$ac_cv_prog_NM"
8208fi
8209
8210
8211for ac_prog in gawk mawk nawk awk
8212do
8213  # Extract the first word of "$ac_prog", so it can be a program name with args.
8214set dummy $ac_prog; ac_word=$2
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216$as_echo_n "checking for $ac_word... " >&6; }
8217if ${ac_cv_prog_AWK+:} false; then :
8218  $as_echo_n "(cached) " >&6
8219else
8220  if test -n "$AWK"; then
8221  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8222else
8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224for as_dir in $PATH
8225do
8226  IFS=$as_save_IFS
8227  test -z "$as_dir" && as_dir=.
8228    for ac_exec_ext in '' $ac_executable_extensions; do
8229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230    ac_cv_prog_AWK="$ac_prog"
8231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232    break 2
8233  fi
8234done
8235  done
8236IFS=$as_save_IFS
8237
8238fi
8239fi
8240AWK=$ac_cv_prog_AWK
8241if test -n "$AWK"; then
8242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8243$as_echo "$AWK" >&6; }
8244else
8245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246$as_echo "no" >&6; }
8247fi
8248
8249
8250  test -n "$AWK" && break
8251done
8252
8253
8254
8255
8256# Check whether --with-version was given.
8257if test "${with_version+set}" = set; then :
8258  withval=$with_version;
8259    echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
8260    if test $? -eq 0 ; then
8261      echo "$with_version" > "${objroot}VERSION"
8262    else
8263      echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
8264      if test $? -ne 0 ; then
8265        as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
8266      fi
8267    fi
8268
8269else
8270
8271        if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
8272                        for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
8273                     '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
8274                     '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
8275                     '[0-9][0-9].[0-9][0-9].[0-9]' \
8276                     '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
8277        (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
8278        if test $? -eq 0 ; then
8279          mv "${objroot}VERSION.tmp" "${objroot}VERSION"
8280          break
8281        fi
8282      done
8283    fi
8284    rm -f "${objroot}VERSION.tmp"
8285
8286fi
8287
8288
8289if test ! -e "${objroot}VERSION" ; then
8290  if test ! -e "${srcroot}VERSION" ; then
8291    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
8292$as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
8293    echo "0.0.0-0-g000000missing_version_try_git_fetch_tags" > "${objroot}VERSION"
8294  else
8295    cp ${srcroot}VERSION ${objroot}VERSION
8296  fi
8297fi
8298jemalloc_version=`cat "${objroot}VERSION"`
8299jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
8300jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
8301jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
8302jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
8303jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
8304
8305
8306
8307
8308
8309
8310
8311default_retain="0"
8312zero_realloc_default_free="0"
8313maps_coalesce="1"
8314DUMP_SYMS="${NM} -a"
8315SYM_PREFIX=""
8316case "${host}" in
8317  *-*-darwin* | *-*-ios*)
8318	abi="macho"
8319	RPATH=""
8320	LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
8321	so="dylib"
8322	importlib="${so}"
8323	force_tls="0"
8324	DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
8325	SOREV="${rev}.${so}"
8326	sbrk_deprecated="1"
8327	SYM_PREFIX="_"
8328	;;
8329  *-*-freebsd*)
8330	T_APPEND_V=-D_BSD_SOURCE
8331  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8332  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
8333else
8334  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
8335fi
8336
8337
8338	abi="elf"
8339
8340$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
8341
8342	force_lazy_lock="1"
8343	;;
8344  *-*-dragonfly*)
8345	abi="elf"
8346	;;
8347  *-*-openbsd*)
8348	abi="elf"
8349	force_tls="0"
8350	;;
8351  *-*-bitrig*)
8352	abi="elf"
8353	;;
8354  *-*-linux-android*)
8355		T_APPEND_V=-D_GNU_SOURCE
8356  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8357  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
8358else
8359  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
8360fi
8361
8362
8363	abi="elf"
8364	glibc="0"
8365
8366$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
8367
8368
8369$as_echo "#define JEMALLOC_HAS_ALLOCA_H  " >>confdefs.h
8370
8371
8372$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
8373
8374
8375$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
8376
8377
8378$as_echo "#define JEMALLOC_C11_ATOMICS  " >>confdefs.h
8379
8380	force_tls="0"
8381	if test "${LG_SIZEOF_PTR}" = "3"; then
8382	  default_retain="1"
8383	fi
8384	zero_realloc_default_free="1"
8385	;;
8386  *-*-linux*)
8387		T_APPEND_V=-D_GNU_SOURCE
8388  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8389  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
8390else
8391  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
8392fi
8393
8394
8395	abi="elf"
8396	glibc="1"
8397
8398$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
8399
8400
8401$as_echo "#define JEMALLOC_HAS_ALLOCA_H  " >>confdefs.h
8402
8403
8404$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
8405
8406
8407$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
8408
8409
8410$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
8411
8412	if test "${LG_SIZEOF_PTR}" = "3"; then
8413	  default_retain="1"
8414	fi
8415	zero_realloc_default_free="1"
8416	;;
8417  *-*-kfreebsd*)
8418		T_APPEND_V=-D_GNU_SOURCE
8419  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8420  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
8421else
8422  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
8423fi
8424
8425
8426	abi="elf"
8427
8428$as_echo "#define JEMALLOC_HAS_ALLOCA_H  " >>confdefs.h
8429
8430
8431$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
8432
8433
8434$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
8435
8436
8437$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
8438
8439	;;
8440  *-*-netbsd*)
8441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
8442$as_echo_n "checking ABI... " >&6; }
8443        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h.  */
8445#ifdef __ELF__
8446/* ELF */
8447#else
8448#error aout
8449#endif
8450
8451int
8452main ()
8453{
8454
8455  ;
8456  return 0;
8457}
8458_ACEOF
8459if ac_fn_c_try_compile "$LINENO"; then :
8460  abi="elf"
8461else
8462  abi="aout"
8463fi
8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
8466$as_echo "$abi" >&6; }
8467	;;
8468  *-*-solaris2*)
8469	abi="elf"
8470	RPATH='-Wl,-R,$(1)'
8471		T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
8472  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8473  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
8474else
8475  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
8476fi
8477
8478
8479	T_APPEND_V=-lposix4 -lsocket -lnsl
8480  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8481  LIBS="${LIBS}${T_APPEND_V}"
8482else
8483  LIBS="${LIBS} ${T_APPEND_V}"
8484fi
8485
8486
8487	;;
8488  *-ibm-aix*)
8489	if test "${LG_SIZEOF_PTR}" = "3"; then
8490	  	  LD_PRELOAD_VAR="LDR_PRELOAD64"
8491	else
8492	  	  LD_PRELOAD_VAR="LDR_PRELOAD"
8493	fi
8494	abi="xcoff"
8495	;;
8496  *-*-mingw* | *-*-cygwin*)
8497	abi="pecoff"
8498	force_tls="0"
8499	maps_coalesce="0"
8500	RPATH=""
8501	so="dll"
8502	if test "x$je_cv_msvc" = "xyes" ; then
8503	  importlib="lib"
8504	  DSO_LDFLAGS="-LD"
8505	  EXTRA_LDFLAGS="-link -DEBUG"
8506	  CTARGET='-Fo$@'
8507	  LDTARGET='-Fe$@'
8508	  AR='lib'
8509	  ARFLAGS='-nologo -out:'
8510	  AROUT='$@'
8511	  CC_MM=
8512        else
8513	  importlib="${so}"
8514	  DSO_LDFLAGS="-shared"
8515	  link_whole_archive="1"
8516	fi
8517	case "${host}" in
8518	  *-*-cygwin*)
8519	    DUMP_SYMS="dumpbin /SYMBOLS"
8520	    ;;
8521	  *)
8522	    ;;
8523	esac
8524	a="lib"
8525	libprefix=""
8526	SOREV="${so}"
8527	PIC_CFLAGS=""
8528	if test "${LG_SIZEOF_PTR}" = "3"; then
8529	  default_retain="1"
8530	fi
8531	zero_realloc_default_free="1"
8532	;;
8533  *-*-nto-qnx)
8534	abi="elf"
8535  force_tls="0"
8536
8537$as_echo "#define JEMALLOC_HAS_ALLOCA_H  " >>confdefs.h
8538
8539	;;
8540  *)
8541	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
8542$as_echo "Unsupported operating system: ${host}" >&6; }
8543	abi="elf"
8544	;;
8545esac
8546
8547JEMALLOC_USABLE_SIZE_CONST=const
8548for ac_header in malloc.h
8549do :
8550  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
8551if test "x$ac_cv_header_malloc_h" = xyes; then :
8552  cat >>confdefs.h <<_ACEOF
8553#define HAVE_MALLOC_H 1
8554_ACEOF
8555
8556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
8557$as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
8558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h.  */
8560#include <malloc.h>
8561     #include <stddef.h>
8562    size_t malloc_usable_size(const void *ptr);
8563
8564int
8565main ()
8566{
8567
8568  ;
8569  return 0;
8570}
8571_ACEOF
8572if ac_fn_c_try_compile "$LINENO"; then :
8573
8574                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8575$as_echo "yes" >&6; }
8576
8577else
8578
8579                JEMALLOC_USABLE_SIZE_CONST=
8580                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581$as_echo "no" >&6; }
8582
8583fi
8584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585
8586fi
8587
8588done
8589
8590
8591cat >>confdefs.h <<_ACEOF
8592#define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
8593_ACEOF
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
8619$as_echo_n "checking for library containing log... " >&6; }
8620if ${ac_cv_search_log+:} false; then :
8621  $as_echo_n "(cached) " >&6
8622else
8623  ac_func_search_save_LIBS=$LIBS
8624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625/* end confdefs.h.  */
8626
8627/* Override any GCC internal prototype to avoid an error.
8628   Use char because int might match the return type of a GCC
8629   builtin and then its argument prototype would still apply.  */
8630#ifdef __cplusplus
8631extern "C"
8632#endif
8633char log ();
8634int
8635main ()
8636{
8637return log ();
8638  ;
8639  return 0;
8640}
8641_ACEOF
8642for ac_lib in '' m; do
8643  if test -z "$ac_lib"; then
8644    ac_res="none required"
8645  else
8646    ac_res=-l$ac_lib
8647    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8648  fi
8649  if ac_fn_c_try_link "$LINENO"; then :
8650  ac_cv_search_log=$ac_res
8651fi
8652rm -f core conftest.err conftest.$ac_objext \
8653    conftest$ac_exeext
8654  if ${ac_cv_search_log+:} false; then :
8655  break
8656fi
8657done
8658if ${ac_cv_search_log+:} false; then :
8659
8660else
8661  ac_cv_search_log=no
8662fi
8663rm conftest.$ac_ext
8664LIBS=$ac_func_search_save_LIBS
8665fi
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
8667$as_echo "$ac_cv_search_log" >&6; }
8668ac_res=$ac_cv_search_log
8669if test "$ac_res" != no; then :
8670  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8671
8672else
8673  as_fn_error $? "Missing math functions" "$LINENO" 5
8674fi
8675
8676if test "x$ac_cv_search_log" != "xnone required" ; then
8677  LM="$ac_cv_search_log"
8678else
8679  LM=
8680fi
8681
8682
8683
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
8685$as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
8686if ${je_cv_attribute+:} false; then :
8687  $as_echo_n "(cached) " >&6
8688else
8689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h.  */
8691static __attribute__((unused)) void foo(void){}
8692int
8693main ()
8694{
8695
8696  ;
8697  return 0;
8698}
8699_ACEOF
8700if ac_fn_c_try_link "$LINENO"; then :
8701  je_cv_attribute=yes
8702else
8703  je_cv_attribute=no
8704fi
8705rm -f core conftest.err conftest.$ac_objext \
8706    conftest$ac_exeext conftest.$ac_ext
8707fi
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
8709$as_echo "$je_cv_attribute" >&6; }
8710
8711if test "x${je_cv_attribute}" = "xyes" ; then
8712
8713$as_echo "#define JEMALLOC_HAVE_ATTR  " >>confdefs.h
8714
8715  if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
8716
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
8718$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
8719T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8720T_APPEND_V=-fvisibility=hidden
8721  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8722  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8723else
8724  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8725fi
8726
8727
8728if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8729  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8730else
8731  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8732fi
8733
8734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735/* end confdefs.h.  */
8736
8737
8738int
8739main ()
8740{
8741
8742    return 0;
8743
8744  ;
8745  return 0;
8746}
8747_ACEOF
8748if ac_fn_c_try_compile "$LINENO"; then :
8749  je_cv_cflags_added=-fvisibility=hidden
8750              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8751$as_echo "yes" >&6; }
8752else
8753  je_cv_cflags_added=
8754              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755$as_echo "no" >&6; }
8756              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8757
8758fi
8759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8761  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8762else
8763  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8764fi
8765
8766
8767
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
8769$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
8770T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
8771T_APPEND_V=-fvisibility=hidden
8772  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8773  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
8774else
8775  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
8776fi
8777
8778
8779if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
8780  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
8781else
8782  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
8783fi
8784
8785ac_ext=cpp
8786ac_cpp='$CXXCPP $CPPFLAGS'
8787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8790
8791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792/* end confdefs.h.  */
8793
8794
8795int
8796main ()
8797{
8798
8799    return 0;
8800
8801  ;
8802  return 0;
8803}
8804_ACEOF
8805if ac_fn_cxx_try_compile "$LINENO"; then :
8806  je_cv_cxxflags_added=-fvisibility=hidden
8807              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8808$as_echo "yes" >&6; }
8809else
8810  je_cv_cxxflags_added=
8811              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
8814
8815fi
8816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817ac_ext=c
8818ac_cpp='$CPP $CPPFLAGS'
8819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8821ac_compiler_gnu=$ac_cv_c_compiler_gnu
8822
8823if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
8824  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
8825else
8826  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
8827fi
8828
8829
8830  fi
8831fi
8832SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8833
8834
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8836$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8837T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8838T_APPEND_V=-Werror
8839  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8840  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8841else
8842  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8843fi
8844
8845
8846if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8847  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8848else
8849  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8850fi
8851
8852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853/* end confdefs.h.  */
8854
8855
8856int
8857main ()
8858{
8859
8860    return 0;
8861
8862  ;
8863  return 0;
8864}
8865_ACEOF
8866if ac_fn_c_try_compile "$LINENO"; then :
8867  je_cv_cflags_added=-Werror
8868              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8869$as_echo "yes" >&6; }
8870else
8871  je_cv_cflags_added=
8872              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873$as_echo "no" >&6; }
8874              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8875
8876fi
8877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8879  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8880else
8881  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8882fi
8883
8884
8885
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8887$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8888T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8889T_APPEND_V=-herror_on_warning
8890  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8891  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8892else
8893  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8894fi
8895
8896
8897if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8898  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8899else
8900  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8901fi
8902
8903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h.  */
8905
8906
8907int
8908main ()
8909{
8910
8911    return 0;
8912
8913  ;
8914  return 0;
8915}
8916_ACEOF
8917if ac_fn_c_try_compile "$LINENO"; then :
8918  je_cv_cflags_added=-herror_on_warning
8919              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8920$as_echo "yes" >&6; }
8921else
8922  je_cv_cflags_added=
8923              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924$as_echo "no" >&6; }
8925              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8926
8927fi
8928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8930  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8931else
8932  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8933fi
8934
8935
8936
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
8938$as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
8939if ${je_cv_tls_model+:} false; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943/* end confdefs.h.  */
8944
8945int
8946main ()
8947{
8948static __thread int
8949               __attribute__((tls_model("initial-exec"), unused)) foo;
8950               foo = 0;
8951  ;
8952  return 0;
8953}
8954_ACEOF
8955if ac_fn_c_try_link "$LINENO"; then :
8956  je_cv_tls_model=yes
8957else
8958  je_cv_tls_model=no
8959fi
8960rm -f core conftest.err conftest.$ac_objext \
8961    conftest$ac_exeext conftest.$ac_ext
8962fi
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
8964$as_echo "$je_cv_tls_model" >&6; }
8965
8966CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8967if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8968  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8969else
8970  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8971fi
8972
8973
8974
8975SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8976
8977
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8979$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8980T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8981T_APPEND_V=-Werror
8982  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8983  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8984else
8985  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8986fi
8987
8988
8989if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8990  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8991else
8992  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8993fi
8994
8995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h.  */
8997
8998
8999int
9000main ()
9001{
9002
9003    return 0;
9004
9005  ;
9006  return 0;
9007}
9008_ACEOF
9009if ac_fn_c_try_compile "$LINENO"; then :
9010  je_cv_cflags_added=-Werror
9011              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9012$as_echo "yes" >&6; }
9013else
9014  je_cv_cflags_added=
9015              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016$as_echo "no" >&6; }
9017              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9018
9019fi
9020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9021if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9022  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9023else
9024  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9025fi
9026
9027
9028
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
9030$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
9031T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9032T_APPEND_V=-herror_on_warning
9033  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9034  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9035else
9036  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9037fi
9038
9039
9040if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9041  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9042else
9043  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9044fi
9045
9046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047/* end confdefs.h.  */
9048
9049
9050int
9051main ()
9052{
9053
9054    return 0;
9055
9056  ;
9057  return 0;
9058}
9059_ACEOF
9060if ac_fn_c_try_compile "$LINENO"; then :
9061  je_cv_cflags_added=-herror_on_warning
9062              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9063$as_echo "yes" >&6; }
9064else
9065  je_cv_cflags_added=
9066              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067$as_echo "no" >&6; }
9068              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9069
9070fi
9071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9073  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9074else
9075  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9076fi
9077
9078
9079
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
9081$as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
9082if ${je_cv_alloc_size+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087#include <stdlib.h>
9088int
9089main ()
9090{
9091void *foo(size_t size) __attribute__((alloc_size(1)));
9092  ;
9093  return 0;
9094}
9095_ACEOF
9096if ac_fn_c_try_link "$LINENO"; then :
9097  je_cv_alloc_size=yes
9098else
9099  je_cv_alloc_size=no
9100fi
9101rm -f core conftest.err conftest.$ac_objext \
9102    conftest$ac_exeext conftest.$ac_ext
9103fi
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
9105$as_echo "$je_cv_alloc_size" >&6; }
9106
9107CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
9108if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9109  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9110else
9111  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9112fi
9113
9114
9115if test "x${je_cv_alloc_size}" = "xyes" ; then
9116
9117$as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE  " >>confdefs.h
9118
9119fi
9120SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9121
9122
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
9124$as_echo_n "checking whether compiler supports -Werror... " >&6; }
9125T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9126T_APPEND_V=-Werror
9127  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9128  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9129else
9130  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9131fi
9132
9133
9134if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9135  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9136else
9137  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9138fi
9139
9140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141/* end confdefs.h.  */
9142
9143
9144int
9145main ()
9146{
9147
9148    return 0;
9149
9150  ;
9151  return 0;
9152}
9153_ACEOF
9154if ac_fn_c_try_compile "$LINENO"; then :
9155  je_cv_cflags_added=-Werror
9156              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9157$as_echo "yes" >&6; }
9158else
9159  je_cv_cflags_added=
9160              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161$as_echo "no" >&6; }
9162              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9163
9164fi
9165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9166if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9167  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9168else
9169  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9170fi
9171
9172
9173
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
9175$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
9176T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9177T_APPEND_V=-herror_on_warning
9178  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9179  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9180else
9181  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9182fi
9183
9184
9185if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9186  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9187else
9188  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9189fi
9190
9191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193
9194
9195int
9196main ()
9197{
9198
9199    return 0;
9200
9201  ;
9202  return 0;
9203}
9204_ACEOF
9205if ac_fn_c_try_compile "$LINENO"; then :
9206  je_cv_cflags_added=-herror_on_warning
9207              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9208$as_echo "yes" >&6; }
9209else
9210  je_cv_cflags_added=
9211              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212$as_echo "no" >&6; }
9213              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9214
9215fi
9216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9217if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9218  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9219else
9220  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9221fi
9222
9223
9224
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
9226$as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
9227if ${je_cv_format_gnu_printf+:} false; then :
9228  $as_echo_n "(cached) " >&6
9229else
9230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231/* end confdefs.h.  */
9232#include <stdlib.h>
9233int
9234main ()
9235{
9236void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
9237  ;
9238  return 0;
9239}
9240_ACEOF
9241if ac_fn_c_try_link "$LINENO"; then :
9242  je_cv_format_gnu_printf=yes
9243else
9244  je_cv_format_gnu_printf=no
9245fi
9246rm -f core conftest.err conftest.$ac_objext \
9247    conftest$ac_exeext conftest.$ac_ext
9248fi
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
9250$as_echo "$je_cv_format_gnu_printf" >&6; }
9251
9252CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
9253if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9254  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9255else
9256  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9257fi
9258
9259
9260if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
9261
9262$as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF  " >>confdefs.h
9263
9264fi
9265SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9266
9267
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
9269$as_echo_n "checking whether compiler supports -Werror... " >&6; }
9270T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9271T_APPEND_V=-Werror
9272  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9273  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9274else
9275  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9276fi
9277
9278
9279if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9280  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9281else
9282  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9283fi
9284
9285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287
9288
9289int
9290main ()
9291{
9292
9293    return 0;
9294
9295  ;
9296  return 0;
9297}
9298_ACEOF
9299if ac_fn_c_try_compile "$LINENO"; then :
9300  je_cv_cflags_added=-Werror
9301              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9302$as_echo "yes" >&6; }
9303else
9304  je_cv_cflags_added=
9305              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306$as_echo "no" >&6; }
9307              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9308
9309fi
9310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9312  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9313else
9314  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9315fi
9316
9317
9318
9319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
9320$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
9321T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9322T_APPEND_V=-herror_on_warning
9323  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9324  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9325else
9326  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9327fi
9328
9329
9330if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9331  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9332else
9333  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9334fi
9335
9336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337/* end confdefs.h.  */
9338
9339
9340int
9341main ()
9342{
9343
9344    return 0;
9345
9346  ;
9347  return 0;
9348}
9349_ACEOF
9350if ac_fn_c_try_compile "$LINENO"; then :
9351  je_cv_cflags_added=-herror_on_warning
9352              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9353$as_echo "yes" >&6; }
9354else
9355  je_cv_cflags_added=
9356              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357$as_echo "no" >&6; }
9358              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9359
9360fi
9361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9362if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9363  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9364else
9365  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9366fi
9367
9368
9369
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
9371$as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
9372if ${je_cv_format_printf+:} false; then :
9373  $as_echo_n "(cached) " >&6
9374else
9375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376/* end confdefs.h.  */
9377#include <stdlib.h>
9378int
9379main ()
9380{
9381void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
9382  ;
9383  return 0;
9384}
9385_ACEOF
9386if ac_fn_c_try_link "$LINENO"; then :
9387  je_cv_format_printf=yes
9388else
9389  je_cv_format_printf=no
9390fi
9391rm -f core conftest.err conftest.$ac_objext \
9392    conftest$ac_exeext conftest.$ac_ext
9393fi
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
9395$as_echo "$je_cv_format_printf" >&6; }
9396
9397CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
9398if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9399  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9400else
9401  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9402fi
9403
9404
9405if test "x${je_cv_format_printf}" = "xyes" ; then
9406
9407$as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF  " >>confdefs.h
9408
9409fi
9410
9411SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9412
9413
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
9415$as_echo_n "checking whether compiler supports -Werror... " >&6; }
9416T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9417T_APPEND_V=-Werror
9418  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9419  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9420else
9421  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9422fi
9423
9424
9425if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9426  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9427else
9428  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9429fi
9430
9431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432/* end confdefs.h.  */
9433
9434
9435int
9436main ()
9437{
9438
9439    return 0;
9440
9441  ;
9442  return 0;
9443}
9444_ACEOF
9445if ac_fn_c_try_compile "$LINENO"; then :
9446  je_cv_cflags_added=-Werror
9447              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9448$as_echo "yes" >&6; }
9449else
9450  je_cv_cflags_added=
9451              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452$as_echo "no" >&6; }
9453              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9454
9455fi
9456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9458  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9459else
9460  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9461fi
9462
9463
9464
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
9466$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
9467T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9468T_APPEND_V=-herror_on_warning
9469  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9470  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9471else
9472  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9473fi
9474
9475
9476if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9477  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9478else
9479  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9480fi
9481
9482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483/* end confdefs.h.  */
9484
9485
9486int
9487main ()
9488{
9489
9490    return 0;
9491
9492  ;
9493  return 0;
9494}
9495_ACEOF
9496if ac_fn_c_try_compile "$LINENO"; then :
9497  je_cv_cflags_added=-herror_on_warning
9498              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9499$as_echo "yes" >&6; }
9500else
9501  je_cv_cflags_added=
9502              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503$as_echo "no" >&6; }
9504              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9505
9506fi
9507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9509  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9510else
9511  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9512fi
9513
9514
9515
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
9517$as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
9518if ${je_cv_format_arg+:} false; then :
9519  $as_echo_n "(cached) " >&6
9520else
9521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522/* end confdefs.h.  */
9523#include <stdlib.h>
9524int
9525main ()
9526{
9527const char * __attribute__((__format_arg__(1))) foo(const char *format);
9528  ;
9529  return 0;
9530}
9531_ACEOF
9532if ac_fn_c_try_link "$LINENO"; then :
9533  je_cv_format_arg=yes
9534else
9535  je_cv_format_arg=no
9536fi
9537rm -f core conftest.err conftest.$ac_objext \
9538    conftest$ac_exeext conftest.$ac_ext
9539fi
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_arg" >&5
9541$as_echo "$je_cv_format_arg" >&6; }
9542
9543CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
9544if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9545  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9546else
9547  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9548fi
9549
9550
9551if test "x${je_cv_format_arg}" = "xyes" ; then
9552
9553$as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_ARG  " >>confdefs.h
9554
9555fi
9556
9557SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9558
9559
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5
9561$as_echo_n "checking whether compiler supports -Wimplicit-fallthrough... " >&6; }
9562T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9563T_APPEND_V=-Wimplicit-fallthrough
9564  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9565  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9566else
9567  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9568fi
9569
9570
9571if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9572  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9573else
9574  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9575fi
9576
9577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579
9580
9581int
9582main ()
9583{
9584
9585    return 0;
9586
9587  ;
9588  return 0;
9589}
9590_ACEOF
9591if ac_fn_c_try_compile "$LINENO"; then :
9592  je_cv_cflags_added=-Wimplicit-fallthrough
9593              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9594$as_echo "yes" >&6; }
9595else
9596  je_cv_cflags_added=
9597              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598$as_echo "no" >&6; }
9599              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9600
9601fi
9602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9604  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9605else
9606  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9607fi
9608
9609
9610
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fallthrough attribute is compilable" >&5
9612$as_echo_n "checking whether fallthrough attribute is compilable... " >&6; }
9613if ${je_cv_fallthrough+:} false; then :
9614  $as_echo_n "(cached) " >&6
9615else
9616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617/* end confdefs.h.  */
9618#if !__has_attribute(fallthrough)
9619               #error "foo"
9620               #endif
9621int
9622main ()
9623{
9624int x = 0;
9625               switch (x) {
9626               case 0: __attribute__((__fallthrough__));
9627               case 1: return 1;
9628               }
9629  ;
9630  return 0;
9631}
9632_ACEOF
9633if ac_fn_c_try_link "$LINENO"; then :
9634  je_cv_fallthrough=yes
9635else
9636  je_cv_fallthrough=no
9637fi
9638rm -f core conftest.err conftest.$ac_objext \
9639    conftest$ac_exeext conftest.$ac_ext
9640fi
9641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_fallthrough" >&5
9642$as_echo "$je_cv_fallthrough" >&6; }
9643
9644CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
9645if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9646  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9647else
9648  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9649fi
9650
9651
9652if test "x${je_cv_fallthrough}" = "xyes" ; then
9653
9654$as_echo "#define JEMALLOC_HAVE_ATTR_FALLTHROUGH  " >>confdefs.h
9655
9656
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5
9658$as_echo_n "checking whether compiler supports -Wimplicit-fallthrough... " >&6; }
9659T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9660T_APPEND_V=-Wimplicit-fallthrough
9661  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9662  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9663else
9664  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9665fi
9666
9667
9668if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9669  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9670else
9671  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9672fi
9673
9674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675/* end confdefs.h.  */
9676
9677
9678int
9679main ()
9680{
9681
9682    return 0;
9683
9684  ;
9685  return 0;
9686}
9687_ACEOF
9688if ac_fn_c_try_compile "$LINENO"; then :
9689  je_cv_cflags_added=-Wimplicit-fallthrough
9690              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9691$as_echo "yes" >&6; }
9692else
9693  je_cv_cflags_added=
9694              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695$as_echo "no" >&6; }
9696              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9697
9698fi
9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9701  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9702else
9703  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9704fi
9705
9706
9707
9708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5
9709$as_echo_n "checking whether compiler supports -Wimplicit-fallthrough... " >&6; }
9710T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9711T_APPEND_V=-Wimplicit-fallthrough
9712  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9713  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9714else
9715  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9716fi
9717
9718
9719if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9720  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9721else
9722  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9723fi
9724
9725ac_ext=cpp
9726ac_cpp='$CXXCPP $CPPFLAGS'
9727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9730
9731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732/* end confdefs.h.  */
9733
9734
9735int
9736main ()
9737{
9738
9739    return 0;
9740
9741  ;
9742  return 0;
9743}
9744_ACEOF
9745if ac_fn_cxx_try_compile "$LINENO"; then :
9746  je_cv_cxxflags_added=-Wimplicit-fallthrough
9747              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9748$as_echo "yes" >&6; }
9749else
9750  je_cv_cxxflags_added=
9751              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
9753              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9754
9755fi
9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757ac_ext=c
9758ac_cpp='$CPP $CPPFLAGS'
9759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9761ac_compiler_gnu=$ac_cv_c_compiler_gnu
9762
9763if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9764  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9765else
9766  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9767fi
9768
9769
9770fi
9771
9772SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9773
9774
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
9776$as_echo_n "checking whether compiler supports -Werror... " >&6; }
9777T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9778T_APPEND_V=-Werror
9779  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9780  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9781else
9782  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9783fi
9784
9785
9786if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9787  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9788else
9789  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9790fi
9791
9792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793/* end confdefs.h.  */
9794
9795
9796int
9797main ()
9798{
9799
9800    return 0;
9801
9802  ;
9803  return 0;
9804}
9805_ACEOF
9806if ac_fn_c_try_compile "$LINENO"; then :
9807  je_cv_cflags_added=-Werror
9808              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9809$as_echo "yes" >&6; }
9810else
9811  je_cv_cflags_added=
9812              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813$as_echo "no" >&6; }
9814              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9815
9816fi
9817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9819  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9820else
9821  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9822fi
9823
9824
9825
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
9827$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
9828T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9829T_APPEND_V=-herror_on_warning
9830  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9831  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9832else
9833  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9834fi
9835
9836
9837if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9838  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9839else
9840  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9841fi
9842
9843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844/* end confdefs.h.  */
9845
9846
9847int
9848main ()
9849{
9850
9851    return 0;
9852
9853  ;
9854  return 0;
9855}
9856_ACEOF
9857if ac_fn_c_try_compile "$LINENO"; then :
9858  je_cv_cflags_added=-herror_on_warning
9859              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9860$as_echo "yes" >&6; }
9861else
9862  je_cv_cflags_added=
9863              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864$as_echo "no" >&6; }
9865              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9866
9867fi
9868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9870  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9871else
9872  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9873fi
9874
9875
9876
9877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cold attribute is compilable" >&5
9878$as_echo_n "checking whether cold attribute is compilable... " >&6; }
9879if ${je_cv_cold+:} false; then :
9880  $as_echo_n "(cached) " >&6
9881else
9882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883/* end confdefs.h.  */
9884
9885int
9886main ()
9887{
9888__attribute__((__cold__)) void foo();
9889  ;
9890  return 0;
9891}
9892_ACEOF
9893if ac_fn_c_try_link "$LINENO"; then :
9894  je_cv_cold=yes
9895else
9896  je_cv_cold=no
9897fi
9898rm -f core conftest.err conftest.$ac_objext \
9899    conftest$ac_exeext conftest.$ac_ext
9900fi
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cold" >&5
9902$as_echo "$je_cv_cold" >&6; }
9903
9904CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
9905if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9906  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9907else
9908  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9909fi
9910
9911
9912if test "x${je_cv_cold}" = "xyes" ; then
9913
9914$as_echo "#define JEMALLOC_HAVE_ATTR_COLD  " >>confdefs.h
9915
9916fi
9917
9918
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vm_make_tag is compilable" >&5
9920$as_echo_n "checking whether vm_make_tag is compilable... " >&6; }
9921if ${je_cv_vm_make_tag+:} false; then :
9922  $as_echo_n "(cached) " >&6
9923else
9924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925/* end confdefs.h.  */
9926#include <sys/mman.h>
9927	       #include <mach/vm_statistics.h>
9928int
9929main ()
9930{
9931void *p;
9932	       p = mmap(0, 16, PROT_READ, MAP_ANON|MAP_PRIVATE, VM_MAKE_TAG(1), 0);
9933	       munmap(p, 16);
9934  ;
9935  return 0;
9936}
9937_ACEOF
9938if ac_fn_c_try_link "$LINENO"; then :
9939  je_cv_vm_make_tag=yes
9940else
9941  je_cv_vm_make_tag=no
9942fi
9943rm -f core conftest.err conftest.$ac_objext \
9944    conftest$ac_exeext conftest.$ac_ext
9945fi
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_vm_make_tag" >&5
9947$as_echo "$je_cv_vm_make_tag" >&6; }
9948
9949if test "x${je_cv_vm_make_tag}" = "xyes" ; then
9950
9951$as_echo "#define JEMALLOC_HAVE_VM_MAKE_TAG  " >>confdefs.h
9952
9953fi
9954
9955
9956# Check whether --with-rpath was given.
9957if test "${with_rpath+set}" = set; then :
9958  withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
9959  RPATH_EXTRA=
9960else
9961  RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
9962fi
9963else
9964  RPATH_EXTRA=
9965
9966fi
9967
9968
9969
9970# Check whether --enable-autogen was given.
9971if test "${enable_autogen+set}" = set; then :
9972  enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
9973  enable_autogen="0"
9974else
9975  enable_autogen="1"
9976fi
9977
9978else
9979  enable_autogen="0"
9980
9981fi
9982
9983
9984
9985# Find a good install program.  We prefer a C program (faster),
9986# so one script is as good as another.  But avoid the broken or
9987# incompatible versions:
9988# SysV /etc/install, /usr/sbin/install
9989# SunOS /usr/etc/install
9990# IRIX /sbin/install
9991# AIX /bin/install
9992# AmigaOS /C/install, which installs bootblocks on floppy discs
9993# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9994# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9995# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9996# OS/2's system install, which has a completely different semantic
9997# ./install, which can be erroneously created by make from ./install.sh.
9998# Reject install programs that cannot install multiple files.
9999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10000$as_echo_n "checking for a BSD-compatible install... " >&6; }
10001if test -z "$INSTALL"; then
10002if ${ac_cv_path_install+:} false; then :
10003  $as_echo_n "(cached) " >&6
10004else
10005  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006for as_dir in $PATH
10007do
10008  IFS=$as_save_IFS
10009  test -z "$as_dir" && as_dir=.
10010    # Account for people who put trailing slashes in PATH elements.
10011case $as_dir/ in #((
10012  ./ | .// | /[cC]/* | \
10013  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10014  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10015  /usr/ucb/* ) ;;
10016  *)
10017    # OSF1 and SCO ODT 3.0 have their own names for install.
10018    # Don't use installbsd from OSF since it installs stuff as root
10019    # by default.
10020    for ac_prog in ginstall scoinst install; do
10021      for ac_exec_ext in '' $ac_executable_extensions; do
10022	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10023	  if test $ac_prog = install &&
10024	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10025	    # AIX install.  It has an incompatible calling convention.
10026	    :
10027	  elif test $ac_prog = install &&
10028	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10029	    # program-specific install script used by HP pwplus--don't use.
10030	    :
10031	  else
10032	    rm -rf conftest.one conftest.two conftest.dir
10033	    echo one > conftest.one
10034	    echo two > conftest.two
10035	    mkdir conftest.dir
10036	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10037	      test -s conftest.one && test -s conftest.two &&
10038	      test -s conftest.dir/conftest.one &&
10039	      test -s conftest.dir/conftest.two
10040	    then
10041	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10042	      break 3
10043	    fi
10044	  fi
10045	fi
10046      done
10047    done
10048    ;;
10049esac
10050
10051  done
10052IFS=$as_save_IFS
10053
10054rm -rf conftest.one conftest.two conftest.dir
10055
10056fi
10057  if test "${ac_cv_path_install+set}" = set; then
10058    INSTALL=$ac_cv_path_install
10059  else
10060    # As a last resort, use the slow shell script.  Don't cache a
10061    # value for INSTALL within a source directory, because that will
10062    # break other packages using the cache if that directory is
10063    # removed, or if the value is a relative name.
10064    INSTALL=$ac_install_sh
10065  fi
10066fi
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10068$as_echo "$INSTALL" >&6; }
10069
10070# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10071# It thinks the first close brace ends the variable substitution.
10072test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10073
10074test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10075
10076test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10077
10078if test -n "$ac_tool_prefix"; then
10079  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10080set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082$as_echo_n "checking for $ac_word... " >&6; }
10083if ${ac_cv_prog_RANLIB+:} false; then :
10084  $as_echo_n "(cached) " >&6
10085else
10086  if test -n "$RANLIB"; then
10087  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10088else
10089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092  IFS=$as_save_IFS
10093  test -z "$as_dir" && as_dir=.
10094    for ac_exec_ext in '' $ac_executable_extensions; do
10095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098    break 2
10099  fi
10100done
10101  done
10102IFS=$as_save_IFS
10103
10104fi
10105fi
10106RANLIB=$ac_cv_prog_RANLIB
10107if test -n "$RANLIB"; then
10108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10109$as_echo "$RANLIB" >&6; }
10110else
10111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112$as_echo "no" >&6; }
10113fi
10114
10115
10116fi
10117if test -z "$ac_cv_prog_RANLIB"; then
10118  ac_ct_RANLIB=$RANLIB
10119  # Extract the first word of "ranlib", so it can be a program name with args.
10120set dummy ranlib; ac_word=$2
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122$as_echo_n "checking for $ac_word... " >&6; }
10123if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10124  $as_echo_n "(cached) " >&6
10125else
10126  if test -n "$ac_ct_RANLIB"; then
10127  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10128else
10129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130for as_dir in $PATH
10131do
10132  IFS=$as_save_IFS
10133  test -z "$as_dir" && as_dir=.
10134    for ac_exec_ext in '' $ac_executable_extensions; do
10135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136    ac_cv_prog_ac_ct_RANLIB="ranlib"
10137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138    break 2
10139  fi
10140done
10141  done
10142IFS=$as_save_IFS
10143
10144fi
10145fi
10146ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10147if test -n "$ac_ct_RANLIB"; then
10148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10149$as_echo "$ac_ct_RANLIB" >&6; }
10150else
10151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152$as_echo "no" >&6; }
10153fi
10154
10155  if test "x$ac_ct_RANLIB" = x; then
10156    RANLIB=":"
10157  else
10158    case $cross_compiling:$ac_tool_warned in
10159yes:)
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10162ac_tool_warned=yes ;;
10163esac
10164    RANLIB=$ac_ct_RANLIB
10165  fi
10166else
10167  RANLIB="$ac_cv_prog_RANLIB"
10168fi
10169
10170# Extract the first word of "ld", so it can be a program name with args.
10171set dummy ld; ac_word=$2
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173$as_echo_n "checking for $ac_word... " >&6; }
10174if ${ac_cv_path_LD+:} false; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  case $LD in
10178  [\\/]* | ?:[\\/]*)
10179  ac_cv_path_LD="$LD" # Let the user override the test with a path.
10180  ;;
10181  *)
10182  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183for as_dir in $PATH
10184do
10185  IFS=$as_save_IFS
10186  test -z "$as_dir" && as_dir=.
10187    for ac_exec_ext in '' $ac_executable_extensions; do
10188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10189    ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
10190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191    break 2
10192  fi
10193done
10194  done
10195IFS=$as_save_IFS
10196
10197  test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
10198  ;;
10199esac
10200fi
10201LD=$ac_cv_path_LD
10202if test -n "$LD"; then
10203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10204$as_echo "$LD" >&6; }
10205else
10206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207$as_echo "no" >&6; }
10208fi
10209
10210
10211# Extract the first word of "autoconf", so it can be a program name with args.
10212set dummy autoconf; ac_word=$2
10213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10214$as_echo_n "checking for $ac_word... " >&6; }
10215if ${ac_cv_path_AUTOCONF+:} false; then :
10216  $as_echo_n "(cached) " >&6
10217else
10218  case $AUTOCONF in
10219  [\\/]* | ?:[\\/]*)
10220  ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
10221  ;;
10222  *)
10223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224for as_dir in $PATH
10225do
10226  IFS=$as_save_IFS
10227  test -z "$as_dir" && as_dir=.
10228    for ac_exec_ext in '' $ac_executable_extensions; do
10229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10230    ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
10231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10232    break 2
10233  fi
10234done
10235  done
10236IFS=$as_save_IFS
10237
10238  test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
10239  ;;
10240esac
10241fi
10242AUTOCONF=$ac_cv_path_AUTOCONF
10243if test -n "$AUTOCONF"; then
10244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
10245$as_echo "$AUTOCONF" >&6; }
10246else
10247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248$as_echo "no" >&6; }
10249fi
10250
10251
10252
10253# Check whether --enable-doc was given.
10254if test "${enable_doc+set}" = set; then :
10255  enableval=$enable_doc; if test "x$enable_doc" = "xno" ; then
10256  enable_doc="0"
10257else
10258  enable_doc="1"
10259fi
10260
10261else
10262  enable_doc="1"
10263
10264fi
10265
10266
10267
10268# Check whether --enable-shared was given.
10269if test "${enable_shared+set}" = set; then :
10270  enableval=$enable_shared; if test "x$enable_shared" = "xno" ; then
10271  enable_shared="0"
10272else
10273  enable_shared="1"
10274fi
10275
10276else
10277  enable_shared="1"
10278
10279fi
10280
10281
10282
10283# Check whether --enable-static was given.
10284if test "${enable_static+set}" = set; then :
10285  enableval=$enable_static; if test "x$enable_static" = "xno" ; then
10286  enable_static="0"
10287else
10288  enable_static="1"
10289fi
10290
10291else
10292  enable_static="1"
10293
10294fi
10295
10296
10297
10298if test "$enable_shared$enable_static" = "00" ; then
10299  as_fn_error $? "Please enable one of shared or static builds" "$LINENO" 5
10300fi
10301
10302
10303# Check whether --with-mangling was given.
10304if test "${with_mangling+set}" = set; then :
10305  withval=$with_mangling; mangling_map="$with_mangling"
10306else
10307  mangling_map=""
10308fi
10309
10310
10311
10312# Check whether --with-jemalloc_prefix was given.
10313if test "${with_jemalloc_prefix+set}" = set; then :
10314  withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
10315else
10316  if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
10317  JEMALLOC_PREFIX=""
10318else
10319  JEMALLOC_PREFIX="je_"
10320fi
10321
10322fi
10323
10324if test "x$JEMALLOC_PREFIX" = "x" ; then
10325
10326$as_echo "#define JEMALLOC_IS_MALLOC  " >>confdefs.h
10327
10328else
10329  JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
10330
10331cat >>confdefs.h <<_ACEOF
10332#define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
10333_ACEOF
10334
10335
10336cat >>confdefs.h <<_ACEOF
10337#define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
10338_ACEOF
10339
10340fi
10341
10342
10343
10344
10345# Check whether --with-export was given.
10346if test "${with_export+set}" = set; then :
10347  withval=$with_export; if test "x$with_export" = "xno"; then
10348
10349$as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
10350
10351fi
10352
10353fi
10354
10355
10356public_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_conf_2_conf_harder malloc_message malloc_stats_print malloc_usable_size mallocx smallocx_${jemalloc_version_gid} nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx"
10357ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
10358if test "x$ac_cv_func_memalign" = xyes; then :
10359
10360$as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN  " >>confdefs.h
10361
10362	       public_syms="${public_syms} memalign"
10363fi
10364
10365ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
10366if test "x$ac_cv_func_valloc" = xyes; then :
10367
10368$as_echo "#define JEMALLOC_OVERRIDE_VALLOC  " >>confdefs.h
10369
10370	       public_syms="${public_syms} valloc"
10371fi
10372
10373ac_fn_c_check_func "$LINENO" "malloc_size" "ac_cv_func_malloc_size"
10374if test "x$ac_cv_func_malloc_size" = xyes; then :
10375
10376$as_echo "#define JEMALLOC_HAVE_MALLOC_SIZE  " >>confdefs.h
10377
10378	       public_syms="${public_syms} malloc_size"
10379fi
10380
10381
10382wrap_syms=
10383if test "x${JEMALLOC_PREFIX}" = "x" ; then
10384  ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
10385if test "x$ac_cv_func___libc_calloc" = xyes; then :
10386
10387$as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC  " >>confdefs.h
10388
10389		 wrap_syms="${wrap_syms} __libc_calloc"
10390fi
10391
10392  ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
10393if test "x$ac_cv_func___libc_free" = xyes; then :
10394
10395$as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE  " >>confdefs.h
10396
10397		 wrap_syms="${wrap_syms} __libc_free"
10398fi
10399
10400  ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
10401if test "x$ac_cv_func___libc_malloc" = xyes; then :
10402
10403$as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC  " >>confdefs.h
10404
10405		 wrap_syms="${wrap_syms} __libc_malloc"
10406fi
10407
10408  ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
10409if test "x$ac_cv_func___libc_memalign" = xyes; then :
10410
10411$as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN  " >>confdefs.h
10412
10413		 wrap_syms="${wrap_syms} __libc_memalign"
10414fi
10415
10416  ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
10417if test "x$ac_cv_func___libc_realloc" = xyes; then :
10418
10419$as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC  " >>confdefs.h
10420
10421		 wrap_syms="${wrap_syms} __libc_realloc"
10422fi
10423
10424  ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
10425if test "x$ac_cv_func___libc_valloc" = xyes; then :
10426
10427$as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC  " >>confdefs.h
10428
10429		 wrap_syms="${wrap_syms} __libc_valloc"
10430fi
10431
10432  ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
10433if test "x$ac_cv_func___posix_memalign" = xyes; then :
10434
10435$as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN  " >>confdefs.h
10436
10437		 wrap_syms="${wrap_syms} __posix_memalign"
10438fi
10439
10440fi
10441
10442case "${host}" in
10443  *-*-mingw* | *-*-cygwin*)
10444    wrap_syms="${wrap_syms} tls_callback"
10445    ;;
10446  *)
10447    ;;
10448esac
10449
10450
10451# Check whether --with-private_namespace was given.
10452if test "${with_private_namespace+set}" = set; then :
10453  withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
10454else
10455  JEMALLOC_PRIVATE_NAMESPACE="je_"
10456
10457fi
10458
10459
10460cat >>confdefs.h <<_ACEOF
10461#define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
10462_ACEOF
10463
10464private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
10465
10466
10467
10468# Check whether --with-install_suffix was given.
10469if test "${with_install_suffix+set}" = set; then :
10470  withval=$with_install_suffix; case "$with_install_suffix" in
10471   *\ * ) as_fn_error $? "Install suffix should not contain spaces" "$LINENO" 5 ;;
10472   * ) INSTALL_SUFFIX="$with_install_suffix" ;;
10473esac
10474else
10475  INSTALL_SUFFIX=
10476
10477fi
10478
10479install_suffix="$INSTALL_SUFFIX"
10480
10481
10482
10483# Check whether --with-malloc_conf was given.
10484if test "${with_malloc_conf+set}" = set; then :
10485  withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
10486else
10487  JEMALLOC_CONFIG_MALLOC_CONF=""
10488
10489fi
10490
10491config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
10492
10493cat >>confdefs.h <<_ACEOF
10494#define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
10495_ACEOF
10496
10497
10498je_="je_"
10499
10500
10501cfgoutputs_in="Makefile.in"
10502cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
10503cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
10504cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
10505cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
10506cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
10507cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
10508cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
10509cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
10510cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
10511cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
10512
10513cfgoutputs_out="Makefile"
10514cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
10515cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
10516cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
10517cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
10518cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
10519cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
10520cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
10521cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
10522cfgoutputs_out="${cfgoutputs_out} test/test.sh"
10523cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
10524
10525cfgoutputs_tup="Makefile"
10526cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
10527cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
10528cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
10529cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
10530cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
10531cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
10532cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
10533cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
10534cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
10535cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
10536
10537cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
10538cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
10539cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
10540cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
10541cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
10542cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
10543cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
10544cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
10545cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
10546cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
10547
10548cfghdrs_out="include/jemalloc/jemalloc_defs.h"
10549cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
10550cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
10551cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
10552cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
10553cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
10554cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
10555cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
10556cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
10557cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
10558cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
10559cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
10560cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
10561
10562cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
10563cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
10564cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
10565
10566
10567# Check whether --enable-debug was given.
10568if test "${enable_debug+set}" = set; then :
10569  enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
10570  enable_debug="0"
10571else
10572  enable_debug="1"
10573fi
10574
10575else
10576  enable_debug="0"
10577
10578fi
10579
10580if test "x$enable_debug" = "x1" ; then
10581
10582$as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
10583
10584fi
10585
10586
10587if test "x$enable_debug" = "x0" ; then
10588  if test "x$GCC" = "xyes" ; then
10589
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
10591$as_echo_n "checking whether compiler supports -O3... " >&6; }
10592T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10593T_APPEND_V=-O3
10594  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10595  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10596else
10597  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10598fi
10599
10600
10601if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10602  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10603else
10604  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10605fi
10606
10607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608/* end confdefs.h.  */
10609
10610
10611int
10612main ()
10613{
10614
10615    return 0;
10616
10617  ;
10618  return 0;
10619}
10620_ACEOF
10621if ac_fn_c_try_compile "$LINENO"; then :
10622  je_cv_cflags_added=-O3
10623              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10624$as_echo "yes" >&6; }
10625else
10626  je_cv_cflags_added=
10627              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628$as_echo "no" >&6; }
10629              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10630
10631fi
10632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10634  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10635else
10636  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10637fi
10638
10639
10640
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
10642$as_echo_n "checking whether compiler supports -O3... " >&6; }
10643T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
10644T_APPEND_V=-O3
10645  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10646  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
10647else
10648  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
10649fi
10650
10651
10652if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
10653  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
10654else
10655  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
10656fi
10657
10658ac_ext=cpp
10659ac_cpp='$CXXCPP $CPPFLAGS'
10660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10663
10664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665/* end confdefs.h.  */
10666
10667
10668int
10669main ()
10670{
10671
10672    return 0;
10673
10674  ;
10675  return 0;
10676}
10677_ACEOF
10678if ac_fn_cxx_try_compile "$LINENO"; then :
10679  je_cv_cxxflags_added=-O3
10680              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681$as_echo "yes" >&6; }
10682else
10683  je_cv_cxxflags_added=
10684              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685$as_echo "no" >&6; }
10686              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
10687
10688fi
10689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10690ac_ext=c
10691ac_cpp='$CPP $CPPFLAGS'
10692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10694ac_compiler_gnu=$ac_cv_c_compiler_gnu
10695
10696if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
10697  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
10698else
10699  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
10700fi
10701
10702
10703
10704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
10705$as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
10706T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10707T_APPEND_V=-funroll-loops
10708  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10709  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10710else
10711  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10712fi
10713
10714
10715if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10716  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10717else
10718  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10719fi
10720
10721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722/* end confdefs.h.  */
10723
10724
10725int
10726main ()
10727{
10728
10729    return 0;
10730
10731  ;
10732  return 0;
10733}
10734_ACEOF
10735if ac_fn_c_try_compile "$LINENO"; then :
10736  je_cv_cflags_added=-funroll-loops
10737              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10738$as_echo "yes" >&6; }
10739else
10740  je_cv_cflags_added=
10741              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742$as_echo "no" >&6; }
10743              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10744
10745fi
10746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10748  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10749else
10750  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10751fi
10752
10753
10754  elif test "x$je_cv_msvc" = "xyes" ; then
10755
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
10757$as_echo_n "checking whether compiler supports -O2... " >&6; }
10758T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10759T_APPEND_V=-O2
10760  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10761  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10762else
10763  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10764fi
10765
10766
10767if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10768  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10769else
10770  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10771fi
10772
10773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774/* end confdefs.h.  */
10775
10776
10777int
10778main ()
10779{
10780
10781    return 0;
10782
10783  ;
10784  return 0;
10785}
10786_ACEOF
10787if ac_fn_c_try_compile "$LINENO"; then :
10788  je_cv_cflags_added=-O2
10789              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10790$as_echo "yes" >&6; }
10791else
10792  je_cv_cflags_added=
10793              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794$as_echo "no" >&6; }
10795              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10796
10797fi
10798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10800  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10801else
10802  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10803fi
10804
10805
10806
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
10808$as_echo_n "checking whether compiler supports -O2... " >&6; }
10809T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
10810T_APPEND_V=-O2
10811  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10812  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
10813else
10814  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
10815fi
10816
10817
10818if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
10819  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
10820else
10821  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
10822fi
10823
10824ac_ext=cpp
10825ac_cpp='$CXXCPP $CPPFLAGS'
10826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10829
10830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831/* end confdefs.h.  */
10832
10833
10834int
10835main ()
10836{
10837
10838    return 0;
10839
10840  ;
10841  return 0;
10842}
10843_ACEOF
10844if ac_fn_cxx_try_compile "$LINENO"; then :
10845  je_cv_cxxflags_added=-O2
10846              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10847$as_echo "yes" >&6; }
10848else
10849  je_cv_cxxflags_added=
10850              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851$as_echo "no" >&6; }
10852              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
10853
10854fi
10855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856ac_ext=c
10857ac_cpp='$CPP $CPPFLAGS'
10858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10860ac_compiler_gnu=$ac_cv_c_compiler_gnu
10861
10862if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
10863  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
10864else
10865  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
10866fi
10867
10868
10869  else
10870
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
10872$as_echo_n "checking whether compiler supports -O... " >&6; }
10873T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10874T_APPEND_V=-O
10875  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10876  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10877else
10878  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10879fi
10880
10881
10882if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10883  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10884else
10885  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10886fi
10887
10888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889/* end confdefs.h.  */
10890
10891
10892int
10893main ()
10894{
10895
10896    return 0;
10897
10898  ;
10899  return 0;
10900}
10901_ACEOF
10902if ac_fn_c_try_compile "$LINENO"; then :
10903  je_cv_cflags_added=-O
10904              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10905$as_echo "yes" >&6; }
10906else
10907  je_cv_cflags_added=
10908              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
10910              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10911
10912fi
10913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10914if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10915  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10916else
10917  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10918fi
10919
10920
10921
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
10923$as_echo_n "checking whether compiler supports -O... " >&6; }
10924T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
10925T_APPEND_V=-O
10926  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10927  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
10928else
10929  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
10930fi
10931
10932
10933if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
10934  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
10935else
10936  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
10937fi
10938
10939ac_ext=cpp
10940ac_cpp='$CXXCPP $CPPFLAGS'
10941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10944
10945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946/* end confdefs.h.  */
10947
10948
10949int
10950main ()
10951{
10952
10953    return 0;
10954
10955  ;
10956  return 0;
10957}
10958_ACEOF
10959if ac_fn_cxx_try_compile "$LINENO"; then :
10960  je_cv_cxxflags_added=-O
10961              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10962$as_echo "yes" >&6; }
10963else
10964  je_cv_cxxflags_added=
10965              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966$as_echo "no" >&6; }
10967              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
10968
10969fi
10970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971ac_ext=c
10972ac_cpp='$CPP $CPPFLAGS'
10973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975ac_compiler_gnu=$ac_cv_c_compiler_gnu
10976
10977if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
10978  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
10979else
10980  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
10981fi
10982
10983
10984  fi
10985fi
10986
10987# Check whether --enable-stats was given.
10988if test "${enable_stats+set}" = set; then :
10989  enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
10990  enable_stats="0"
10991else
10992  enable_stats="1"
10993fi
10994
10995else
10996  enable_stats="1"
10997
10998fi
10999
11000if test "x$enable_stats" = "x1" ; then
11001
11002$as_echo "#define JEMALLOC_STATS  " >>confdefs.h
11003
11004fi
11005
11006
11007# Check whether --enable-experimental_smallocx was given.
11008if test "${enable_experimental_smallocx+set}" = set; then :
11009  enableval=$enable_experimental_smallocx; if test "x$enable_experimental_smallocx" = "xno" ; then
11010enable_experimental_smallocx="0"
11011else
11012enable_experimental_smallocx="1"
11013fi
11014
11015else
11016  enable_experimental_smallocx="0"
11017
11018fi
11019
11020if test "x$enable_experimental_smallocx" = "x1" ; then
11021
11022$as_echo "#define JEMALLOC_EXPERIMENTAL_SMALLOCX_API  " >>confdefs.h
11023
11024fi
11025
11026
11027# Check whether --enable-prof was given.
11028if test "${enable_prof+set}" = set; then :
11029  enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
11030  enable_prof="0"
11031else
11032  enable_prof="1"
11033fi
11034
11035else
11036  enable_prof="0"
11037
11038fi
11039
11040if test "x$enable_prof" = "x1" ; then
11041  backtrace_method=""
11042else
11043  backtrace_method="N/A"
11044fi
11045
11046# Check whether --enable-prof-libunwind was given.
11047if test "${enable_prof_libunwind+set}" = set; then :
11048  enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
11049  enable_prof_libunwind="0"
11050else
11051  enable_prof_libunwind="1"
11052  if test "x$enable_prof" = "x0" ; then
11053    as_fn_error $? "--enable-prof-libunwind should only be used with --enable-prof" "$LINENO" 5
11054  fi
11055fi
11056
11057else
11058  enable_prof_libunwind="0"
11059
11060fi
11061
11062
11063# Check whether --with-static_libunwind was given.
11064if test "${with_static_libunwind+set}" = set; then :
11065  withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
11066  LUNWIND="-lunwind"
11067else
11068  if test ! -f "$with_static_libunwind" ; then
11069    as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
11070  fi
11071  LUNWIND="$with_static_libunwind"
11072fi
11073else
11074  LUNWIND="-lunwind"
11075
11076fi
11077
11078if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
11079  for ac_header in libunwind.h
11080do :
11081  ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
11082if test "x$ac_cv_header_libunwind_h" = xyes; then :
11083  cat >>confdefs.h <<_ACEOF
11084#define HAVE_LIBUNWIND_H 1
11085_ACEOF
11086
11087else
11088  enable_prof_libunwind="0"
11089fi
11090
11091done
11092
11093  if test "x$LUNWIND" = "x-lunwind" ; then
11094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
11095$as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
11096if ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
11097  $as_echo_n "(cached) " >&6
11098else
11099  ac_check_lib_save_LIBS=$LIBS
11100LIBS="-lunwind  $LIBS"
11101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102/* end confdefs.h.  */
11103
11104/* Override any GCC internal prototype to avoid an error.
11105   Use char because int might match the return type of a GCC
11106   builtin and then its argument prototype would still apply.  */
11107#ifdef __cplusplus
11108extern "C"
11109#endif
11110char unw_backtrace ();
11111int
11112main ()
11113{
11114return unw_backtrace ();
11115  ;
11116  return 0;
11117}
11118_ACEOF
11119if ac_fn_c_try_link "$LINENO"; then :
11120  ac_cv_lib_unwind_unw_backtrace=yes
11121else
11122  ac_cv_lib_unwind_unw_backtrace=no
11123fi
11124rm -f core conftest.err conftest.$ac_objext \
11125    conftest$ac_exeext conftest.$ac_ext
11126LIBS=$ac_check_lib_save_LIBS
11127fi
11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
11129$as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
11130if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
11131  T_APPEND_V=$LUNWIND
11132  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11133  LIBS="${LIBS}${T_APPEND_V}"
11134else
11135  LIBS="${LIBS} ${T_APPEND_V}"
11136fi
11137
11138
11139else
11140  enable_prof_libunwind="0"
11141fi
11142
11143  else
11144    T_APPEND_V=$LUNWIND
11145  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11146  LIBS="${LIBS}${T_APPEND_V}"
11147else
11148  LIBS="${LIBS} ${T_APPEND_V}"
11149fi
11150
11151
11152  fi
11153  if test "x${enable_prof_libunwind}" = "x1" ; then
11154    backtrace_method="libunwind"
11155
11156$as_echo "#define JEMALLOC_PROF_LIBUNWIND  " >>confdefs.h
11157
11158  fi
11159fi
11160
11161# Check whether --enable-prof-libgcc was given.
11162if test "${enable_prof_libgcc+set}" = set; then :
11163  enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
11164  enable_prof_libgcc="0"
11165else
11166  enable_prof_libgcc="1"
11167fi
11168
11169else
11170  enable_prof_libgcc="1"
11171
11172fi
11173
11174if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
11175     -a "x$GCC" = "xyes" ; then
11176  for ac_header in unwind.h
11177do :
11178  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11179if test "x$ac_cv_header_unwind_h" = xyes; then :
11180  cat >>confdefs.h <<_ACEOF
11181#define HAVE_UNWIND_H 1
11182_ACEOF
11183
11184else
11185  enable_prof_libgcc="0"
11186fi
11187
11188done
11189
11190  if test "x${enable_prof_libgcc}" = "x1" ; then
11191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
11192$as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
11193if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
11194  $as_echo_n "(cached) " >&6
11195else
11196  ac_check_lib_save_LIBS=$LIBS
11197LIBS="-lgcc  $LIBS"
11198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199/* end confdefs.h.  */
11200
11201/* Override any GCC internal prototype to avoid an error.
11202   Use char because int might match the return type of a GCC
11203   builtin and then its argument prototype would still apply.  */
11204#ifdef __cplusplus
11205extern "C"
11206#endif
11207char _Unwind_Backtrace ();
11208int
11209main ()
11210{
11211return _Unwind_Backtrace ();
11212  ;
11213  return 0;
11214}
11215_ACEOF
11216if ac_fn_c_try_link "$LINENO"; then :
11217  ac_cv_lib_gcc__Unwind_Backtrace=yes
11218else
11219  ac_cv_lib_gcc__Unwind_Backtrace=no
11220fi
11221rm -f core conftest.err conftest.$ac_objext \
11222    conftest$ac_exeext conftest.$ac_ext
11223LIBS=$ac_check_lib_save_LIBS
11224fi
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
11226$as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
11227if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
11228  T_APPEND_V=-lgcc
11229  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11230  LIBS="${LIBS}${T_APPEND_V}"
11231else
11232  LIBS="${LIBS} ${T_APPEND_V}"
11233fi
11234
11235
11236else
11237  enable_prof_libgcc="0"
11238fi
11239
11240  fi
11241  if test "x${enable_prof_libgcc}" = "x1" ; then
11242    backtrace_method="libgcc"
11243
11244$as_echo "#define JEMALLOC_PROF_LIBGCC  " >>confdefs.h
11245
11246  fi
11247else
11248  enable_prof_libgcc="0"
11249fi
11250
11251# Check whether --enable-prof-gcc was given.
11252if test "${enable_prof_gcc+set}" = set; then :
11253  enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
11254  enable_prof_gcc="0"
11255else
11256  enable_prof_gcc="1"
11257fi
11258
11259else
11260  enable_prof_gcc="1"
11261
11262fi
11263
11264if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
11265     -a "x$GCC" = "xyes" ; then
11266
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
11268$as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
11269T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11270T_APPEND_V=-fno-omit-frame-pointer
11271  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11272  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11273else
11274  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11275fi
11276
11277
11278if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11279  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11280else
11281  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11282fi
11283
11284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285/* end confdefs.h.  */
11286
11287
11288int
11289main ()
11290{
11291
11292    return 0;
11293
11294  ;
11295  return 0;
11296}
11297_ACEOF
11298if ac_fn_c_try_compile "$LINENO"; then :
11299  je_cv_cflags_added=-fno-omit-frame-pointer
11300              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11301$as_echo "yes" >&6; }
11302else
11303  je_cv_cflags_added=
11304              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305$as_echo "no" >&6; }
11306              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11307
11308fi
11309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11311  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11312else
11313  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11314fi
11315
11316
11317  backtrace_method="gcc intrinsics"
11318
11319$as_echo "#define JEMALLOC_PROF_GCC  " >>confdefs.h
11320
11321else
11322  enable_prof_gcc="0"
11323fi
11324
11325if test "x$backtrace_method" = "x" ; then
11326  backtrace_method="none (disabling profiling)"
11327  enable_prof="0"
11328fi
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
11330$as_echo_n "checking configured backtracing method... " >&6; }
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
11332$as_echo "$backtrace_method" >&6; }
11333if test "x$enable_prof" = "x1" ; then
11334    T_APPEND_V=$LM
11335  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11336  LIBS="${LIBS}${T_APPEND_V}"
11337else
11338  LIBS="${LIBS} ${T_APPEND_V}"
11339fi
11340
11341
11342
11343
11344$as_echo "#define JEMALLOC_PROF  " >>confdefs.h
11345
11346fi
11347
11348
11349if test "x${maps_coalesce}" = "x1" ; then
11350
11351$as_echo "#define JEMALLOC_MAPS_COALESCE  " >>confdefs.h
11352
11353fi
11354
11355if test "x$default_retain" = "x1" ; then
11356
11357$as_echo "#define JEMALLOC_RETAIN  " >>confdefs.h
11358
11359fi
11360
11361if test "x$zero_realloc_default_free" = "x1" ; then
11362
11363$as_echo "#define JEMALLOC_ZERO_REALLOC_DEFAULT_FREE  " >>confdefs.h
11364
11365fi
11366
11367have_dss="1"
11368ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
11369if test "x$ac_cv_func_sbrk" = xyes; then :
11370  have_sbrk="1"
11371else
11372  have_sbrk="0"
11373fi
11374
11375if test "x$have_sbrk" = "x1" ; then
11376  if test "x$sbrk_deprecated" = "x1" ; then
11377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
11378$as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
11379    have_dss="0"
11380  fi
11381else
11382  have_dss="0"
11383fi
11384
11385if test "x$have_dss" = "x1" ; then
11386
11387$as_echo "#define JEMALLOC_DSS  " >>confdefs.h
11388
11389fi
11390
11391# Check whether --enable-fill was given.
11392if test "${enable_fill+set}" = set; then :
11393  enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
11394  enable_fill="0"
11395else
11396  enable_fill="1"
11397fi
11398
11399else
11400  enable_fill="1"
11401
11402fi
11403
11404if test "x$enable_fill" = "x1" ; then
11405
11406$as_echo "#define JEMALLOC_FILL  " >>confdefs.h
11407
11408fi
11409
11410
11411# Check whether --enable-utrace was given.
11412if test "${enable_utrace+set}" = set; then :
11413  enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
11414  enable_utrace="0"
11415else
11416  enable_utrace="1"
11417fi
11418
11419else
11420  enable_utrace="0"
11421
11422fi
11423
11424
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
11426$as_echo_n "checking whether utrace(2) is compilable... " >&6; }
11427if ${je_cv_utrace+:} false; then :
11428  $as_echo_n "(cached) " >&6
11429else
11430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431/* end confdefs.h.  */
11432
11433#include <sys/types.h>
11434#include <sys/param.h>
11435#include <sys/time.h>
11436#include <sys/uio.h>
11437#include <sys/ktrace.h>
11438
11439int
11440main ()
11441{
11442
11443	utrace((void *)0, 0);
11444
11445  ;
11446  return 0;
11447}
11448_ACEOF
11449if ac_fn_c_try_link "$LINENO"; then :
11450  je_cv_utrace=yes
11451else
11452  je_cv_utrace=no
11453fi
11454rm -f core conftest.err conftest.$ac_objext \
11455    conftest$ac_exeext conftest.$ac_ext
11456fi
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
11458$as_echo "$je_cv_utrace" >&6; }
11459
11460if test "x${je_cv_utrace}" = "xno" ; then
11461
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) with label is compilable" >&5
11463$as_echo_n "checking whether utrace(2) with label is compilable... " >&6; }
11464if ${je_cv_utrace_label+:} false; then :
11465  $as_echo_n "(cached) " >&6
11466else
11467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468/* end confdefs.h.  */
11469
11470  #include <sys/types.h>
11471  #include <sys/param.h>
11472  #include <sys/time.h>
11473  #include <sys/uio.h>
11474  #include <sys/ktrace.h>
11475
11476int
11477main ()
11478{
11479
11480	  utrace((void *)0, (void *)0, 0);
11481
11482  ;
11483  return 0;
11484}
11485_ACEOF
11486if ac_fn_c_try_link "$LINENO"; then :
11487  je_cv_utrace_label=yes
11488else
11489  je_cv_utrace_label=no
11490fi
11491rm -f core conftest.err conftest.$ac_objext \
11492    conftest$ac_exeext conftest.$ac_ext
11493fi
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace_label" >&5
11495$as_echo "$je_cv_utrace_label" >&6; }
11496
11497  if test "x${je_cv_utrace_label}" = "xno"; then
11498    enable_utrace="0"
11499  fi
11500  if test "x$enable_utrace" = "x1" ; then
11501
11502$as_echo "#define JEMALLOC_UTRACE_LABEL  " >>confdefs.h
11503
11504  fi
11505else
11506  if test "x$enable_utrace" = "x1" ; then
11507
11508$as_echo "#define JEMALLOC_UTRACE  " >>confdefs.h
11509
11510  fi
11511fi
11512
11513
11514# Check whether --enable-xmalloc was given.
11515if test "${enable_xmalloc+set}" = set; then :
11516  enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
11517  enable_xmalloc="0"
11518else
11519  enable_xmalloc="1"
11520fi
11521
11522else
11523  enable_xmalloc="0"
11524
11525fi
11526
11527if test "x$enable_xmalloc" = "x1" ; then
11528
11529$as_echo "#define JEMALLOC_XMALLOC  " >>confdefs.h
11530
11531fi
11532
11533
11534# Check whether --enable-cache-oblivious was given.
11535if test "${enable_cache_oblivious+set}" = set; then :
11536  enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
11537  enable_cache_oblivious="0"
11538else
11539  enable_cache_oblivious="1"
11540fi
11541
11542else
11543  enable_cache_oblivious="1"
11544
11545fi
11546
11547if test "x$enable_cache_oblivious" = "x1" ; then
11548
11549$as_echo "#define JEMALLOC_CACHE_OBLIVIOUS  " >>confdefs.h
11550
11551fi
11552
11553
11554# Check whether --enable-log was given.
11555if test "${enable_log+set}" = set; then :
11556  enableval=$enable_log; if test "x$enable_log" = "xno" ; then
11557  enable_log="0"
11558else
11559  enable_log="1"
11560fi
11561
11562else
11563  enable_log="0"
11564
11565fi
11566
11567if test "x$enable_log" = "x1" ; then
11568
11569$as_echo "#define JEMALLOC_LOG  " >>confdefs.h
11570
11571fi
11572
11573
11574# Check whether --enable-readlinkat was given.
11575if test "${enable_readlinkat+set}" = set; then :
11576  enableval=$enable_readlinkat; if test "x$enable_readlinkat" = "xno" ; then
11577  enable_readlinkat="0"
11578else
11579  enable_readlinkat="1"
11580fi
11581
11582else
11583  enable_readlinkat="0"
11584
11585fi
11586
11587if test "x$enable_readlinkat" = "x1" ; then
11588
11589$as_echo "#define JEMALLOC_READLINKAT  " >>confdefs.h
11590
11591fi
11592
11593
11594# Check whether --enable-opt-safety-checks was given.
11595if test "${enable_opt_safety_checks+set}" = set; then :
11596  enableval=$enable_opt_safety_checks; if test "x$enable_opt_safety_checks" = "xno" ; then
11597  enable_opt_safety_checks="0"
11598else
11599  enable_opt_safety_checks="1"
11600fi
11601
11602else
11603  enable_opt_safety_checks="0"
11604
11605fi
11606
11607if test "x$enable_opt_safety_checks" = "x1" ; then
11608
11609$as_echo "#define JEMALLOC_OPT_SAFETY_CHECKS  " >>confdefs.h
11610
11611fi
11612
11613
11614# Check whether --enable-opt-size-checks was given.
11615if test "${enable_opt_size_checks+set}" = set; then :
11616  enableval=$enable_opt_size_checks; if test "x$enable_opt_size_checks" = "xno" ; then
11617  enable_opt_size_checks="0"
11618else
11619  enable_opt_size_checks="1"
11620fi
11621
11622else
11623  enable_opt_size_checks="0"
11624
11625fi
11626
11627if test "x$enable_opt_size_checks" = "x1" ; then
11628
11629$as_echo "#define JEMALLOC_OPT_SIZE_CHECKS  " >>confdefs.h
11630
11631fi
11632
11633
11634# Check whether --enable-uaf-detection was given.
11635if test "${enable_uaf_detection+set}" = set; then :
11636  enableval=$enable_uaf_detection; if test "x$enable_uaf_detection" = "xno" ; then
11637  enable_uaf_detection="0"
11638else
11639  enable_uaf_detection="1"
11640fi
11641
11642else
11643  enable_uaf_detection="0"
11644
11645fi
11646
11647if test "x$enable_uaf_detection" = "x1" ; then
11648  $as_echo "#define JEMALLOC_UAF_DETECTION  " >>confdefs.h
11649
11650fi
11651
11652
11653
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
11655$as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
11656if ${je_cv_gcc_builtin_unreachable+:} false; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660/* end confdefs.h.  */
11661
11662void foo (void) {
11663  __builtin_unreachable();
11664}
11665
11666int
11667main ()
11668{
11669
11670	{
11671		foo();
11672	}
11673
11674  ;
11675  return 0;
11676}
11677_ACEOF
11678if ac_fn_c_try_link "$LINENO"; then :
11679  je_cv_gcc_builtin_unreachable=yes
11680else
11681  je_cv_gcc_builtin_unreachable=no
11682fi
11683rm -f core conftest.err conftest.$ac_objext \
11684    conftest$ac_exeext conftest.$ac_ext
11685fi
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
11687$as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
11688
11689if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
11690
11691$as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
11692
11693else
11694
11695$as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
11696
11697fi
11698
11699
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
11701$as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
11702if ${je_cv_gcc_builtin_ffsl+:} false; then :
11703  $as_echo_n "(cached) " >&6
11704else
11705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706/* end confdefs.h.  */
11707
11708#include <stdio.h>
11709#include <strings.h>
11710#include <string.h>
11711
11712int
11713main ()
11714{
11715
11716	{
11717		int rv = __builtin_ffsl(0x08);
11718		printf("%d\n", rv);
11719	}
11720
11721  ;
11722  return 0;
11723}
11724_ACEOF
11725if ac_fn_c_try_link "$LINENO"; then :
11726  je_cv_gcc_builtin_ffsl=yes
11727else
11728  je_cv_gcc_builtin_ffsl=no
11729fi
11730rm -f core conftest.err conftest.$ac_objext \
11731    conftest$ac_exeext conftest.$ac_ext
11732fi
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
11734$as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
11735
11736if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
11737
11738$as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
11739
11740
11741$as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
11742
11743
11744$as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
11745
11746else
11747
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
11749$as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
11750if ${je_cv_function_ffsl+:} false; then :
11751  $as_echo_n "(cached) " >&6
11752else
11753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754/* end confdefs.h.  */
11755
11756  #include <stdio.h>
11757  #include <strings.h>
11758  #include <string.h>
11759
11760int
11761main ()
11762{
11763
11764	{
11765		int rv = ffsl(0x08);
11766		printf("%d\n", rv);
11767	}
11768
11769  ;
11770  return 0;
11771}
11772_ACEOF
11773if ac_fn_c_try_link "$LINENO"; then :
11774  je_cv_function_ffsl=yes
11775else
11776  je_cv_function_ffsl=no
11777fi
11778rm -f core conftest.err conftest.$ac_objext \
11779    conftest$ac_exeext conftest.$ac_ext
11780fi
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
11782$as_echo "$je_cv_function_ffsl" >&6; }
11783
11784  if test "x${je_cv_function_ffsl}" = "xyes" ; then
11785
11786$as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
11787
11788
11789$as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
11790
11791
11792$as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
11793
11794  else
11795    as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
11796  fi
11797fi
11798
11799
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_popcountl is compilable" >&5
11801$as_echo_n "checking whether a program using __builtin_popcountl is compilable... " >&6; }
11802if ${je_cv_gcc_builtin_popcountl+:} false; then :
11803  $as_echo_n "(cached) " >&6
11804else
11805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806/* end confdefs.h.  */
11807
11808#include <stdio.h>
11809#include <strings.h>
11810#include <string.h>
11811
11812int
11813main ()
11814{
11815
11816	{
11817		int rv = __builtin_popcountl(0x08);
11818		printf("%d\n", rv);
11819	}
11820
11821  ;
11822  return 0;
11823}
11824_ACEOF
11825if ac_fn_c_try_link "$LINENO"; then :
11826  je_cv_gcc_builtin_popcountl=yes
11827else
11828  je_cv_gcc_builtin_popcountl=no
11829fi
11830rm -f core conftest.err conftest.$ac_objext \
11831    conftest$ac_exeext conftest.$ac_ext
11832fi
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_popcountl" >&5
11834$as_echo "$je_cv_gcc_builtin_popcountl" >&6; }
11835
11836if test "x${je_cv_gcc_builtin_popcountl}" = "xyes" ; then
11837
11838$as_echo "#define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount" >>confdefs.h
11839
11840
11841$as_echo "#define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl" >>confdefs.h
11842
11843
11844$as_echo "#define JEMALLOC_INTERNAL_POPCOUNTLL __builtin_popcountll" >>confdefs.h
11845
11846fi
11847
11848
11849# Check whether --with-lg_quantum was given.
11850if test "${with_lg_quantum+set}" = set; then :
11851  withval=$with_lg_quantum;
11852fi
11853
11854if test "x$with_lg_quantum" != "x" ; then
11855
11856cat >>confdefs.h <<_ACEOF
11857#define LG_QUANTUM $with_lg_quantum
11858_ACEOF
11859
11860fi
11861
11862
11863# Check whether --with-lg_slab_maxregs was given.
11864if test "${with_lg_slab_maxregs+set}" = set; then :
11865  withval=$with_lg_slab_maxregs; CONFIG_LG_SLAB_MAXREGS="with_lg_slab_maxregs"
11866else
11867  CONFIG_LG_SLAB_MAXREGS=""
11868fi
11869
11870if test "x$with_lg_slab_maxregs" != "x" ; then
11871
11872cat >>confdefs.h <<_ACEOF
11873#define CONFIG_LG_SLAB_MAXREGS $with_lg_slab_maxregs
11874_ACEOF
11875
11876fi
11877
11878
11879# Check whether --with-lg_page was given.
11880if test "${with_lg_page+set}" = set; then :
11881  withval=$with_lg_page; LG_PAGE="$with_lg_page"
11882else
11883  LG_PAGE="detect"
11884fi
11885
11886case "${host}" in
11887  aarch64-apple-darwin*)
11888                  if test "x${host}" != "x${build}" -a "x$LG_PAGE" = "xdetect"; then
11889        LG_PAGE=14
11890      fi
11891      ;;
11892esac
11893if test "x$LG_PAGE" = "xdetect"; then
11894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
11895$as_echo_n "checking LG_PAGE... " >&6; }
11896if ${je_cv_lg_page+:} false; then :
11897  $as_echo_n "(cached) " >&6
11898else
11899  if test "$cross_compiling" = yes; then :
11900  je_cv_lg_page=12
11901else
11902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903/* end confdefs.h.  */
11904
11905#include <strings.h>
11906#ifdef _WIN32
11907#include <windows.h>
11908#else
11909#include <unistd.h>
11910#endif
11911#include <stdio.h>
11912
11913int
11914main ()
11915{
11916
11917    int result;
11918    FILE *f;
11919
11920#ifdef _WIN32
11921    SYSTEM_INFO si;
11922    GetSystemInfo(&si);
11923    result = si.dwPageSize;
11924#else
11925    result = sysconf(_SC_PAGESIZE);
11926#endif
11927    if (result == -1) {
11928	return 1;
11929    }
11930    result = JEMALLOC_INTERNAL_FFSL(result) - 1;
11931
11932    f = fopen("conftest.out", "w");
11933    if (f == NULL) {
11934	return 1;
11935    }
11936    fprintf(f, "%d", result);
11937    fclose(f);
11938
11939    return 0;
11940
11941  ;
11942  return 0;
11943}
11944_ACEOF
11945if ac_fn_c_try_run "$LINENO"; then :
11946  je_cv_lg_page=`cat conftest.out`
11947else
11948  je_cv_lg_page=undefined
11949fi
11950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11951  conftest.$ac_objext conftest.beam conftest.$ac_ext
11952fi
11953
11954fi
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
11956$as_echo "$je_cv_lg_page" >&6; }
11957fi
11958if test "x${je_cv_lg_page}" != "x" ; then
11959  LG_PAGE="${je_cv_lg_page}"
11960fi
11961if test "x${LG_PAGE}" != "xundefined" ; then
11962
11963cat >>confdefs.h <<_ACEOF
11964#define LG_PAGE $LG_PAGE
11965_ACEOF
11966
11967else
11968   as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
11969fi
11970
11971
11972# Check whether --with-lg_hugepage was given.
11973if test "${with_lg_hugepage+set}" = set; then :
11974  withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
11975else
11976  je_cv_lg_hugepage=""
11977fi
11978
11979if test "x${je_cv_lg_hugepage}" = "x" ; then
11980          if test -e "/proc/meminfo" ; then
11981    hpsk=`cat /proc/meminfo 2>/dev/null | \
11982          grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
11983          awk '{print $2}'`
11984    if test "x${hpsk}" != "x" ; then
11985      je_cv_lg_hugepage=10
11986      while test "${hpsk}" -gt 1 ; do
11987        hpsk="$((hpsk / 2))"
11988        je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
11989      done
11990    fi
11991  fi
11992
11993    if test "x${je_cv_lg_hugepage}" = "x" ; then
11994    je_cv_lg_hugepage=21
11995  fi
11996fi
11997if test "x${LG_PAGE}" != "xundefined" -a \
11998        "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
11999  as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
12000fi
12001
12002cat >>confdefs.h <<_ACEOF
12003#define LG_HUGEPAGE ${je_cv_lg_hugepage}
12004_ACEOF
12005
12006
12007# Check whether --enable-libdl was given.
12008if test "${enable_libdl+set}" = set; then :
12009  enableval=$enable_libdl; if test "x$enable_libdl" = "xno" ; then
12010  enable_libdl="0"
12011else
12012  enable_libdl="1"
12013fi
12014
12015else
12016  enable_libdl="1"
12017
12018fi
12019
12020
12021
12022
12023if test "x$abi" != "xpecoff" ; then
12024
12025$as_echo "#define JEMALLOC_HAVE_PTHREAD  " >>confdefs.h
12026
12027  for ac_header in pthread.h
12028do :
12029  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12030if test "x$ac_cv_header_pthread_h" = xyes; then :
12031  cat >>confdefs.h <<_ACEOF
12032#define HAVE_PTHREAD_H 1
12033_ACEOF
12034
12035else
12036  as_fn_error $? "pthread.h is missing" "$LINENO" 5
12037fi
12038
12039done
12040
12041      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12042$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12043if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12044  $as_echo_n "(cached) " >&6
12045else
12046  ac_check_lib_save_LIBS=$LIBS
12047LIBS="-lpthread  $LIBS"
12048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049/* end confdefs.h.  */
12050
12051/* Override any GCC internal prototype to avoid an error.
12052   Use char because int might match the return type of a GCC
12053   builtin and then its argument prototype would still apply.  */
12054#ifdef __cplusplus
12055extern "C"
12056#endif
12057char pthread_create ();
12058int
12059main ()
12060{
12061return pthread_create ();
12062  ;
12063  return 0;
12064}
12065_ACEOF
12066if ac_fn_c_try_link "$LINENO"; then :
12067  ac_cv_lib_pthread_pthread_create=yes
12068else
12069  ac_cv_lib_pthread_pthread_create=no
12070fi
12071rm -f core conftest.err conftest.$ac_objext \
12072    conftest$ac_exeext conftest.$ac_ext
12073LIBS=$ac_check_lib_save_LIBS
12074fi
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12076$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12077if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12078  T_APPEND_V=-pthread
12079  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
12080  LIBS="${LIBS}${T_APPEND_V}"
12081else
12082  LIBS="${LIBS} ${T_APPEND_V}"
12083fi
12084
12085
12086else
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12088$as_echo_n "checking for library containing pthread_create... " >&6; }
12089if ${ac_cv_search_pthread_create+:} false; then :
12090  $as_echo_n "(cached) " >&6
12091else
12092  ac_func_search_save_LIBS=$LIBS
12093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094/* end confdefs.h.  */
12095
12096/* Override any GCC internal prototype to avoid an error.
12097   Use char because int might match the return type of a GCC
12098   builtin and then its argument prototype would still apply.  */
12099#ifdef __cplusplus
12100extern "C"
12101#endif
12102char pthread_create ();
12103int
12104main ()
12105{
12106return pthread_create ();
12107  ;
12108  return 0;
12109}
12110_ACEOF
12111for ac_lib in '' ; do
12112  if test -z "$ac_lib"; then
12113    ac_res="none required"
12114  else
12115    ac_res=-l$ac_lib
12116    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12117  fi
12118  if ac_fn_c_try_link "$LINENO"; then :
12119  ac_cv_search_pthread_create=$ac_res
12120fi
12121rm -f core conftest.err conftest.$ac_objext \
12122    conftest$ac_exeext
12123  if ${ac_cv_search_pthread_create+:} false; then :
12124  break
12125fi
12126done
12127if ${ac_cv_search_pthread_create+:} false; then :
12128
12129else
12130  ac_cv_search_pthread_create=no
12131fi
12132rm conftest.$ac_ext
12133LIBS=$ac_func_search_save_LIBS
12134fi
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12136$as_echo "$ac_cv_search_pthread_create" >&6; }
12137ac_res=$ac_cv_search_pthread_create
12138if test "$ac_res" != no; then :
12139  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12140
12141else
12142  as_fn_error $? "libpthread is missing" "$LINENO" 5
12143fi
12144
12145fi
12146
12147  wrap_syms="${wrap_syms} pthread_create"
12148  have_pthread="1"
12149
12150  if test "x$enable_libdl" = "x1" ; then
12151    have_dlsym="1"
12152    for ac_header in dlfcn.h
12153do :
12154  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12155if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12156  cat >>confdefs.h <<_ACEOF
12157#define HAVE_DLFCN_H 1
12158_ACEOF
12159 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
12160if test "x$ac_cv_func_dlsym" = xyes; then :
12161
12162else
12163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
12164$as_echo_n "checking for dlsym in -ldl... " >&6; }
12165if ${ac_cv_lib_dl_dlsym+:} false; then :
12166  $as_echo_n "(cached) " >&6
12167else
12168  ac_check_lib_save_LIBS=$LIBS
12169LIBS="-ldl  $LIBS"
12170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171/* end confdefs.h.  */
12172
12173/* Override any GCC internal prototype to avoid an error.
12174   Use char because int might match the return type of a GCC
12175   builtin and then its argument prototype would still apply.  */
12176#ifdef __cplusplus
12177extern "C"
12178#endif
12179char dlsym ();
12180int
12181main ()
12182{
12183return dlsym ();
12184  ;
12185  return 0;
12186}
12187_ACEOF
12188if ac_fn_c_try_link "$LINENO"; then :
12189  ac_cv_lib_dl_dlsym=yes
12190else
12191  ac_cv_lib_dl_dlsym=no
12192fi
12193rm -f core conftest.err conftest.$ac_objext \
12194    conftest$ac_exeext conftest.$ac_ext
12195LIBS=$ac_check_lib_save_LIBS
12196fi
12197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
12198$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
12199if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
12200  LIBS="$LIBS -ldl"
12201else
12202  have_dlsym="0"
12203fi
12204
12205fi
12206
12207else
12208  have_dlsym="0"
12209fi
12210
12211done
12212
12213    if test "x$have_dlsym" = "x1" ; then
12214
12215$as_echo "#define JEMALLOC_HAVE_DLSYM  " >>confdefs.h
12216
12217    fi
12218  else
12219    have_dlsym="0"
12220  fi
12221
12222
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
12224$as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
12225if ${je_cv_pthread_atfork+:} false; then :
12226  $as_echo_n "(cached) " >&6
12227else
12228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229/* end confdefs.h.  */
12230
12231#include <pthread.h>
12232
12233int
12234main ()
12235{
12236
12237  pthread_atfork((void *)0, (void *)0, (void *)0);
12238
12239  ;
12240  return 0;
12241}
12242_ACEOF
12243if ac_fn_c_try_link "$LINENO"; then :
12244  je_cv_pthread_atfork=yes
12245else
12246  je_cv_pthread_atfork=no
12247fi
12248rm -f core conftest.err conftest.$ac_objext \
12249    conftest$ac_exeext conftest.$ac_ext
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
12252$as_echo "$je_cv_pthread_atfork" >&6; }
12253
12254  if test "x${je_cv_pthread_atfork}" = "xyes" ; then
12255
12256$as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK  " >>confdefs.h
12257
12258  fi
12259
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
12261$as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; }
12262if ${je_cv_pthread_setname_np+:} false; then :
12263  $as_echo_n "(cached) " >&6
12264else
12265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266/* end confdefs.h.  */
12267
12268#include <pthread.h>
12269
12270int
12271main ()
12272{
12273
12274  pthread_setname_np(pthread_self(), "setname_test");
12275
12276  ;
12277  return 0;
12278}
12279_ACEOF
12280if ac_fn_c_try_link "$LINENO"; then :
12281  je_cv_pthread_setname_np=yes
12282else
12283  je_cv_pthread_setname_np=no
12284fi
12285rm -f core conftest.err conftest.$ac_objext \
12286    conftest$ac_exeext conftest.$ac_ext
12287fi
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
12289$as_echo "$je_cv_pthread_setname_np" >&6; }
12290
12291  if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
12292
12293$as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP  " >>confdefs.h
12294
12295  fi
12296
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getname_np(3) is compilable" >&5
12298$as_echo_n "checking whether pthread_getname_np(3) is compilable... " >&6; }
12299if ${je_cv_pthread_getname_np+:} false; then :
12300  $as_echo_n "(cached) " >&6
12301else
12302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303/* end confdefs.h.  */
12304
12305#include <pthread.h>
12306#include <stdlib.h>
12307
12308int
12309main ()
12310{
12311
12312  {
12313  	char *name = malloc(16);
12314  	pthread_getname_np(pthread_self(), name, 16);
12315	free(name);
12316  }
12317
12318  ;
12319  return 0;
12320}
12321_ACEOF
12322if ac_fn_c_try_link "$LINENO"; then :
12323  je_cv_pthread_getname_np=yes
12324else
12325  je_cv_pthread_getname_np=no
12326fi
12327rm -f core conftest.err conftest.$ac_objext \
12328    conftest$ac_exeext conftest.$ac_ext
12329fi
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_getname_np" >&5
12331$as_echo "$je_cv_pthread_getname_np" >&6; }
12332
12333  if test "x${je_cv_pthread_getname_np}" = "xyes" ; then
12334
12335$as_echo "#define JEMALLOC_HAVE_PTHREAD_GETNAME_NP  " >>confdefs.h
12336
12337  fi
12338
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_get_name_np(3) is compilable" >&5
12340$as_echo_n "checking whether pthread_get_name_np(3) is compilable... " >&6; }
12341if ${je_cv_pthread_get_name_np+:} false; then :
12342  $as_echo_n "(cached) " >&6
12343else
12344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345/* end confdefs.h.  */
12346
12347#include <pthread.h>
12348#include <pthread_np.h>
12349#include <stdlib.h>
12350
12351int
12352main ()
12353{
12354
12355  {
12356  	char *name = malloc(16);
12357  	pthread_get_name_np(pthread_self(), name, 16);
12358	free(name);
12359  }
12360
12361  ;
12362  return 0;
12363}
12364_ACEOF
12365if ac_fn_c_try_link "$LINENO"; then :
12366  je_cv_pthread_get_name_np=yes
12367else
12368  je_cv_pthread_get_name_np=no
12369fi
12370rm -f core conftest.err conftest.$ac_objext \
12371    conftest$ac_exeext conftest.$ac_ext
12372fi
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_get_name_np" >&5
12374$as_echo "$je_cv_pthread_get_name_np" >&6; }
12375
12376  if test "x${je_cv_pthread_get_name_np}" = "xyes" ; then
12377
12378$as_echo "#define JEMALLOC_HAVE_PTHREAD_GET_NAME_NP  " >>confdefs.h
12379
12380  fi
12381fi
12382
12383T_APPEND_V=-D_REENTRANT
12384  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
12385  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
12386else
12387  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
12388fi
12389
12390
12391
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12393$as_echo_n "checking for library containing clock_gettime... " >&6; }
12394if ${ac_cv_search_clock_gettime+:} false; then :
12395  $as_echo_n "(cached) " >&6
12396else
12397  ac_func_search_save_LIBS=$LIBS
12398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399/* end confdefs.h.  */
12400
12401/* Override any GCC internal prototype to avoid an error.
12402   Use char because int might match the return type of a GCC
12403   builtin and then its argument prototype would still apply.  */
12404#ifdef __cplusplus
12405extern "C"
12406#endif
12407char clock_gettime ();
12408int
12409main ()
12410{
12411return clock_gettime ();
12412  ;
12413  return 0;
12414}
12415_ACEOF
12416for ac_lib in '' rt; do
12417  if test -z "$ac_lib"; then
12418    ac_res="none required"
12419  else
12420    ac_res=-l$ac_lib
12421    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12422  fi
12423  if ac_fn_c_try_link "$LINENO"; then :
12424  ac_cv_search_clock_gettime=$ac_res
12425fi
12426rm -f core conftest.err conftest.$ac_objext \
12427    conftest$ac_exeext
12428  if ${ac_cv_search_clock_gettime+:} false; then :
12429  break
12430fi
12431done
12432if ${ac_cv_search_clock_gettime+:} false; then :
12433
12434else
12435  ac_cv_search_clock_gettime=no
12436fi
12437rm conftest.$ac_ext
12438LIBS=$ac_func_search_save_LIBS
12439fi
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12441$as_echo "$ac_cv_search_clock_gettime" >&6; }
12442ac_res=$ac_cv_search_clock_gettime
12443if test "$ac_res" != no; then :
12444  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12445
12446fi
12447
12448
12449if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
12450  if test "$ac_cv_search_clock_gettime" != "-lrt"; then
12451    SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12452
12453
12454    unset ac_cv_search_clock_gettime
12455
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
12457$as_echo_n "checking whether compiler supports -dynamic... " >&6; }
12458T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12459T_APPEND_V=-dynamic
12460  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
12461  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
12462else
12463  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
12464fi
12465
12466
12467if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12468  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12469else
12470  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12471fi
12472
12473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474/* end confdefs.h.  */
12475
12476
12477int
12478main ()
12479{
12480
12481    return 0;
12482
12483  ;
12484  return 0;
12485}
12486_ACEOF
12487if ac_fn_c_try_compile "$LINENO"; then :
12488  je_cv_cflags_added=-dynamic
12489              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12490$as_echo "yes" >&6; }
12491else
12492  je_cv_cflags_added=
12493              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494$as_echo "no" >&6; }
12495              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
12496
12497fi
12498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12499if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12500  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12501else
12502  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12503fi
12504
12505
12506    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12507$as_echo_n "checking for library containing clock_gettime... " >&6; }
12508if ${ac_cv_search_clock_gettime+:} false; then :
12509  $as_echo_n "(cached) " >&6
12510else
12511  ac_func_search_save_LIBS=$LIBS
12512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513/* end confdefs.h.  */
12514
12515/* Override any GCC internal prototype to avoid an error.
12516   Use char because int might match the return type of a GCC
12517   builtin and then its argument prototype would still apply.  */
12518#ifdef __cplusplus
12519extern "C"
12520#endif
12521char clock_gettime ();
12522int
12523main ()
12524{
12525return clock_gettime ();
12526  ;
12527  return 0;
12528}
12529_ACEOF
12530for ac_lib in '' rt; do
12531  if test -z "$ac_lib"; then
12532    ac_res="none required"
12533  else
12534    ac_res=-l$ac_lib
12535    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12536  fi
12537  if ac_fn_c_try_link "$LINENO"; then :
12538  ac_cv_search_clock_gettime=$ac_res
12539fi
12540rm -f core conftest.err conftest.$ac_objext \
12541    conftest$ac_exeext
12542  if ${ac_cv_search_clock_gettime+:} false; then :
12543  break
12544fi
12545done
12546if ${ac_cv_search_clock_gettime+:} false; then :
12547
12548else
12549  ac_cv_search_clock_gettime=no
12550fi
12551rm conftest.$ac_ext
12552LIBS=$ac_func_search_save_LIBS
12553fi
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12555$as_echo "$ac_cv_search_clock_gettime" >&6; }
12556ac_res=$ac_cv_search_clock_gettime
12557if test "$ac_res" != no; then :
12558  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12559
12560fi
12561
12562
12563    CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
12564if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12565  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12566else
12567  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12568fi
12569
12570
12571  fi
12572fi
12573
12574
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
12576$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
12577if ${je_cv_clock_monotonic_coarse+:} false; then :
12578  $as_echo_n "(cached) " >&6
12579else
12580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581/* end confdefs.h.  */
12582
12583#include <time.h>
12584
12585int
12586main ()
12587{
12588
12589	struct timespec ts;
12590
12591	clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
12592
12593  ;
12594  return 0;
12595}
12596_ACEOF
12597if ac_fn_c_try_link "$LINENO"; then :
12598  je_cv_clock_monotonic_coarse=yes
12599else
12600  je_cv_clock_monotonic_coarse=no
12601fi
12602rm -f core conftest.err conftest.$ac_objext \
12603    conftest$ac_exeext conftest.$ac_ext
12604fi
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
12606$as_echo "$je_cv_clock_monotonic_coarse" >&6; }
12607
12608if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
12609
12610$as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE  " >>confdefs.h
12611
12612fi
12613
12614
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
12616$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
12617if ${je_cv_clock_monotonic+:} false; then :
12618  $as_echo_n "(cached) " >&6
12619else
12620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621/* end confdefs.h.  */
12622
12623#include <unistd.h>
12624#include <time.h>
12625
12626int
12627main ()
12628{
12629
12630	struct timespec ts;
12631
12632	clock_gettime(CLOCK_MONOTONIC, &ts);
12633#if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
12634#  error _POSIX_MONOTONIC_CLOCK missing/invalid
12635#endif
12636
12637  ;
12638  return 0;
12639}
12640_ACEOF
12641if ac_fn_c_try_link "$LINENO"; then :
12642  je_cv_clock_monotonic=yes
12643else
12644  je_cv_clock_monotonic=no
12645fi
12646rm -f core conftest.err conftest.$ac_objext \
12647    conftest$ac_exeext conftest.$ac_ext
12648fi
12649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
12650$as_echo "$je_cv_clock_monotonic" >&6; }
12651
12652if test "x${je_cv_clock_monotonic}" = "xyes" ; then
12653
12654$as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC  " >>confdefs.h
12655
12656fi
12657
12658
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
12660$as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
12661if ${je_cv_mach_absolute_time+:} false; then :
12662  $as_echo_n "(cached) " >&6
12663else
12664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665/* end confdefs.h.  */
12666
12667#include <mach/mach_time.h>
12668
12669int
12670main ()
12671{
12672
12673	mach_absolute_time();
12674
12675  ;
12676  return 0;
12677}
12678_ACEOF
12679if ac_fn_c_try_link "$LINENO"; then :
12680  je_cv_mach_absolute_time=yes
12681else
12682  je_cv_mach_absolute_time=no
12683fi
12684rm -f core conftest.err conftest.$ac_objext \
12685    conftest$ac_exeext conftest.$ac_ext
12686fi
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
12688$as_echo "$je_cv_mach_absolute_time" >&6; }
12689
12690if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
12691
12692$as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME  " >>confdefs.h
12693
12694fi
12695
12696
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_REALTIME, ...) is compilable" >&5
12698$as_echo_n "checking whether clock_gettime(CLOCK_REALTIME, ...) is compilable... " >&6; }
12699if ${je_cv_clock_realtime+:} false; then :
12700  $as_echo_n "(cached) " >&6
12701else
12702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703/* end confdefs.h.  */
12704
12705#include <time.h>
12706
12707int
12708main ()
12709{
12710
12711	struct timespec ts;
12712
12713	clock_gettime(CLOCK_REALTIME, &ts);
12714
12715  ;
12716  return 0;
12717}
12718_ACEOF
12719if ac_fn_c_try_link "$LINENO"; then :
12720  je_cv_clock_realtime=yes
12721else
12722  je_cv_clock_realtime=no
12723fi
12724rm -f core conftest.err conftest.$ac_objext \
12725    conftest$ac_exeext conftest.$ac_ext
12726fi
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_realtime" >&5
12728$as_echo "$je_cv_clock_realtime" >&6; }
12729
12730if test "x${je_cv_clock_realtime}" = "xyes" ; then
12731
12732$as_echo "#define JEMALLOC_HAVE_CLOCK_REALTIME  " >>confdefs.h
12733
12734fi
12735
12736# Check whether --enable-syscall was given.
12737if test "${enable_syscall+set}" = set; then :
12738  enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
12739  enable_syscall="0"
12740else
12741  enable_syscall="1"
12742fi
12743
12744else
12745  enable_syscall="1"
12746
12747fi
12748
12749if test "x$enable_syscall" = "x1" ; then
12750      SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12751
12752
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
12754$as_echo_n "checking whether compiler supports -Werror... " >&6; }
12755T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12756T_APPEND_V=-Werror
12757  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
12758  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
12759else
12760  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
12761fi
12762
12763
12764if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12765  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12766else
12767  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12768fi
12769
12770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771/* end confdefs.h.  */
12772
12773
12774int
12775main ()
12776{
12777
12778    return 0;
12779
12780  ;
12781  return 0;
12782}
12783_ACEOF
12784if ac_fn_c_try_compile "$LINENO"; then :
12785  je_cv_cflags_added=-Werror
12786              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12787$as_echo "yes" >&6; }
12788else
12789  je_cv_cflags_added=
12790              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791$as_echo "no" >&6; }
12792              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
12793
12794fi
12795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12797  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12798else
12799  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12800fi
12801
12802
12803
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
12805$as_echo_n "checking whether syscall(2) is compilable... " >&6; }
12806if ${je_cv_syscall+:} false; then :
12807  $as_echo_n "(cached) " >&6
12808else
12809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810/* end confdefs.h.  */
12811
12812#include <sys/syscall.h>
12813#include <unistd.h>
12814
12815int
12816main ()
12817{
12818
12819	syscall(SYS_write, 2, "hello", 5);
12820
12821  ;
12822  return 0;
12823}
12824_ACEOF
12825if ac_fn_c_try_link "$LINENO"; then :
12826  je_cv_syscall=yes
12827else
12828  je_cv_syscall=no
12829fi
12830rm -f core conftest.err conftest.$ac_objext \
12831    conftest$ac_exeext conftest.$ac_ext
12832fi
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
12834$as_echo "$je_cv_syscall" >&6; }
12835
12836  CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
12837if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12838  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12839else
12840  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12841fi
12842
12843
12844  if test "x$je_cv_syscall" = "xyes" ; then
12845
12846$as_echo "#define JEMALLOC_USE_SYSCALL  " >>confdefs.h
12847
12848  fi
12849fi
12850
12851ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
12852if test "x$ac_cv_func_secure_getenv" = xyes; then :
12853  have_secure_getenv="1"
12854else
12855  have_secure_getenv="0"
12856
12857fi
12858
12859if test "x$have_secure_getenv" = "x1" ; then
12860
12861$as_echo "#define JEMALLOC_HAVE_SECURE_GETENV  " >>confdefs.h
12862
12863fi
12864
12865ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
12866if test "x$ac_cv_func_sched_getcpu" = xyes; then :
12867  have_sched_getcpu="1"
12868else
12869  have_sched_getcpu="0"
12870
12871fi
12872
12873if test "x$have_sched_getcpu" = "x1" ; then
12874
12875$as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU  " >>confdefs.h
12876
12877fi
12878
12879ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
12880if test "x$ac_cv_func_sched_setaffinity" = xyes; then :
12881  have_sched_setaffinity="1"
12882else
12883  have_sched_setaffinity="0"
12884
12885fi
12886
12887if test "x$have_sched_setaffinity" = "x1" ; then
12888
12889$as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY  " >>confdefs.h
12890
12891fi
12892
12893ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
12894if test "x$ac_cv_func_issetugid" = xyes; then :
12895  have_issetugid="1"
12896else
12897  have_issetugid="0"
12898
12899fi
12900
12901if test "x$have_issetugid" = "x1" ; then
12902
12903$as_echo "#define JEMALLOC_HAVE_ISSETUGID  " >>confdefs.h
12904
12905fi
12906
12907ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
12908if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
12909  have__malloc_thread_cleanup="1"
12910else
12911  have__malloc_thread_cleanup="0"
12912
12913fi
12914
12915if test "x$have__malloc_thread_cleanup" = "x1" ; then
12916
12917$as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP  " >>confdefs.h
12918
12919  wrap_syms="${wrap_syms} _malloc_thread_cleanup _malloc_tsd_cleanup_register"
12920  force_tls="1"
12921fi
12922
12923ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
12924if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
12925  have__pthread_mutex_init_calloc_cb="1"
12926else
12927  have__pthread_mutex_init_calloc_cb="0"
12928
12929fi
12930
12931if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
12932
12933$as_echo "#define JEMALLOC_MUTEX_INIT_CB  " >>confdefs.h
12934
12935  wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
12936fi
12937
12938ac_fn_c_check_func "$LINENO" "memcntl" "ac_cv_func_memcntl"
12939if test "x$ac_cv_func_memcntl" = xyes; then :
12940  have_memcntl="1"
12941else
12942  have_memcntl="0"
12943fi
12944
12945if test "x$have_memcntl" = "x1" ; then
12946
12947$as_echo "#define JEMALLOC_HAVE_MEMCNTL  " >>confdefs.h
12948
12949fi
12950
12951# Check whether --enable-lazy_lock was given.
12952if test "${enable_lazy_lock+set}" = set; then :
12953  enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
12954  enable_lazy_lock="0"
12955else
12956  enable_lazy_lock="1"
12957fi
12958
12959else
12960  enable_lazy_lock=""
12961
12962fi
12963
12964if test "x${enable_lazy_lock}" = "x" ; then
12965  if test "x${force_lazy_lock}" = "x1" ; then
12966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
12967$as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
12968    enable_lazy_lock="1"
12969  else
12970    enable_lazy_lock="0"
12971  fi
12972fi
12973if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
12974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
12975$as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
12976  enable_lazy_lock="0"
12977fi
12978if test "x$enable_lazy_lock" = "x1" ; then
12979  if test "x$have_dlsym" = "x1" ; then
12980
12981$as_echo "#define JEMALLOC_LAZY_LOCK  " >>confdefs.h
12982
12983  else
12984    as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
12985  fi
12986fi
12987
12988
12989if test "x${force_tls}" = "x1" ; then
12990  enable_tls="1"
12991elif test "x${force_tls}" = "x0" ; then
12992  enable_tls="0"
12993else
12994  enable_tls="1"
12995fi
12996if test "x${enable_tls}" = "x1" ; then
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
12998$as_echo_n "checking for TLS... " >&6; }
12999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h.  */
13001
13002    __thread int x;
13003
13004int
13005main ()
13006{
13007
13008    x = 42;
13009
13010    return 0;
13011
13012  ;
13013  return 0;
13014}
13015_ACEOF
13016if ac_fn_c_try_compile "$LINENO"; then :
13017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13018$as_echo "yes" >&6; }
13019else
13020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021$as_echo "no" >&6; }
13022              enable_tls="0"
13023fi
13024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025else
13026  enable_tls="0"
13027fi
13028
13029if test "x${enable_tls}" = "x1" ; then
13030
13031cat >>confdefs.h <<_ACEOF
13032#define JEMALLOC_TLS
13033_ACEOF
13034
13035fi
13036
13037
13038
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
13040$as_echo_n "checking whether C11 atomics is compilable... " >&6; }
13041if ${je_cv_c11_atomics+:} false; then :
13042  $as_echo_n "(cached) " >&6
13043else
13044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045/* end confdefs.h.  */
13046
13047#include <stdint.h>
13048#if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
13049#include <stdatomic.h>
13050#else
13051#error Atomics not available
13052#endif
13053
13054int
13055main ()
13056{
13057
13058    uint64_t *p = (uint64_t *)0;
13059    uint64_t x = 1;
13060    volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
13061    uint64_t r = atomic_fetch_add(a, x) + x;
13062    return r == 0;
13063
13064  ;
13065  return 0;
13066}
13067_ACEOF
13068if ac_fn_c_try_link "$LINENO"; then :
13069  je_cv_c11_atomics=yes
13070else
13071  je_cv_c11_atomics=no
13072fi
13073rm -f core conftest.err conftest.$ac_objext \
13074    conftest$ac_exeext conftest.$ac_ext
13075fi
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
13077$as_echo "$je_cv_c11_atomics" >&6; }
13078
13079if test "x${je_cv_c11_atomics}" = "xyes" ; then
13080
13081$as_echo "#define JEMALLOC_C11_ATOMICS  " >>confdefs.h
13082
13083fi
13084
13085
13086
13087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
13088$as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; }
13089if ${je_cv_gcc_atomic_atomics+:} false; then :
13090  $as_echo_n "(cached) " >&6
13091else
13092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093/* end confdefs.h.  */
13094
13095
13096int
13097main ()
13098{
13099
13100    int x = 0;
13101    int val = 1;
13102    int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
13103    int after_add = x;
13104    return after_add == 1;
13105
13106  ;
13107  return 0;
13108}
13109_ACEOF
13110if ac_fn_c_try_link "$LINENO"; then :
13111  je_cv_gcc_atomic_atomics=yes
13112else
13113  je_cv_gcc_atomic_atomics=no
13114fi
13115rm -f core conftest.err conftest.$ac_objext \
13116    conftest$ac_exeext conftest.$ac_ext
13117fi
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
13119$as_echo "$je_cv_gcc_atomic_atomics" >&6; }
13120
13121if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
13122
13123$as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS  " >>confdefs.h
13124
13125
13126
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __atomic atomics is compilable" >&5
13128$as_echo_n "checking whether GCC 8-bit __atomic atomics is compilable... " >&6; }
13129if ${je_cv_gcc_u8_atomic_atomics+:} false; then :
13130  $as_echo_n "(cached) " >&6
13131else
13132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133/* end confdefs.h.  */
13134
13135
13136int
13137main ()
13138{
13139
13140      unsigned char x = 0;
13141      int val = 1;
13142      int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
13143      int after_add = (int)x;
13144      return after_add == 1;
13145
13146  ;
13147  return 0;
13148}
13149_ACEOF
13150if ac_fn_c_try_link "$LINENO"; then :
13151  je_cv_gcc_u8_atomic_atomics=yes
13152else
13153  je_cv_gcc_u8_atomic_atomics=no
13154fi
13155rm -f core conftest.err conftest.$ac_objext \
13156    conftest$ac_exeext conftest.$ac_ext
13157fi
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_atomic_atomics" >&5
13159$as_echo "$je_cv_gcc_u8_atomic_atomics" >&6; }
13160
13161  if test "x${je_cv_gcc_u8_atomic_atomics}" = "xyes" ; then
13162
13163$as_echo "#define JEMALLOC_GCC_U8_ATOMIC_ATOMICS  " >>confdefs.h
13164
13165  fi
13166fi
13167
13168
13169
13170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
13171$as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; }
13172if ${je_cv_gcc_sync_atomics+:} false; then :
13173  $as_echo_n "(cached) " >&6
13174else
13175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176/* end confdefs.h.  */
13177
13178
13179int
13180main ()
13181{
13182
13183    int x = 0;
13184    int before_add = __sync_fetch_and_add(&x, 1);
13185    int after_add = x;
13186    return (before_add == 0) && (after_add == 1);
13187
13188  ;
13189  return 0;
13190}
13191_ACEOF
13192if ac_fn_c_try_link "$LINENO"; then :
13193  je_cv_gcc_sync_atomics=yes
13194else
13195  je_cv_gcc_sync_atomics=no
13196fi
13197rm -f core conftest.err conftest.$ac_objext \
13198    conftest$ac_exeext conftest.$ac_ext
13199fi
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
13201$as_echo "$je_cv_gcc_sync_atomics" >&6; }
13202
13203if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
13204
13205$as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS  " >>confdefs.h
13206
13207
13208
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __sync atomics is compilable" >&5
13210$as_echo_n "checking whether GCC 8-bit __sync atomics is compilable... " >&6; }
13211if ${je_cv_gcc_u8_sync_atomics+:} false; then :
13212  $as_echo_n "(cached) " >&6
13213else
13214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215/* end confdefs.h.  */
13216
13217
13218int
13219main ()
13220{
13221
13222      unsigned char x = 0;
13223      int before_add = __sync_fetch_and_add(&x, 1);
13224      int after_add = (int)x;
13225      return (before_add == 0) && (after_add == 1);
13226
13227  ;
13228  return 0;
13229}
13230_ACEOF
13231if ac_fn_c_try_link "$LINENO"; then :
13232  je_cv_gcc_u8_sync_atomics=yes
13233else
13234  je_cv_gcc_u8_sync_atomics=no
13235fi
13236rm -f core conftest.err conftest.$ac_objext \
13237    conftest$ac_exeext conftest.$ac_ext
13238fi
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_sync_atomics" >&5
13240$as_echo "$je_cv_gcc_u8_sync_atomics" >&6; }
13241
13242  if test "x${je_cv_gcc_u8_sync_atomics}" = "xyes" ; then
13243
13244$as_echo "#define JEMALLOC_GCC_U8_SYNC_ATOMICS  " >>confdefs.h
13245
13246  fi
13247fi
13248
13249
13250
13251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
13252$as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
13253if ${je_cv_osatomic+:} false; then :
13254  $as_echo_n "(cached) " >&6
13255else
13256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257/* end confdefs.h.  */
13258
13259#include <libkern/OSAtomic.h>
13260#include <inttypes.h>
13261
13262int
13263main ()
13264{
13265
13266	{
13267		int32_t x32 = 0;
13268		volatile int32_t *x32p = &x32;
13269		OSAtomicAdd32(1, x32p);
13270	}
13271	{
13272		int64_t x64 = 0;
13273		volatile int64_t *x64p = &x64;
13274		OSAtomicAdd64(1, x64p);
13275	}
13276
13277  ;
13278  return 0;
13279}
13280_ACEOF
13281if ac_fn_c_try_link "$LINENO"; then :
13282  je_cv_osatomic=yes
13283else
13284  je_cv_osatomic=no
13285fi
13286rm -f core conftest.err conftest.$ac_objext \
13287    conftest$ac_exeext conftest.$ac_ext
13288fi
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
13290$as_echo "$je_cv_osatomic" >&6; }
13291
13292if test "x${je_cv_osatomic}" = "xyes" ; then
13293
13294$as_echo "#define JEMALLOC_OSATOMIC  " >>confdefs.h
13295
13296fi
13297
13298
13299
13300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
13301$as_echo_n "checking whether madvise(2) is compilable... " >&6; }
13302if ${je_cv_madvise+:} false; then :
13303  $as_echo_n "(cached) " >&6
13304else
13305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306/* end confdefs.h.  */
13307
13308#include <sys/mman.h>
13309
13310int
13311main ()
13312{
13313
13314	madvise((void *)0, 0, 0);
13315
13316  ;
13317  return 0;
13318}
13319_ACEOF
13320if ac_fn_c_try_link "$LINENO"; then :
13321  je_cv_madvise=yes
13322else
13323  je_cv_madvise=no
13324fi
13325rm -f core conftest.err conftest.$ac_objext \
13326    conftest$ac_exeext conftest.$ac_ext
13327fi
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
13329$as_echo "$je_cv_madvise" >&6; }
13330
13331if test "x${je_cv_madvise}" = "xyes" ; then
13332
13333$as_echo "#define JEMALLOC_HAVE_MADVISE  " >>confdefs.h
13334
13335
13336
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
13338$as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
13339if ${je_cv_madv_free+:} false; then :
13340  $as_echo_n "(cached) " >&6
13341else
13342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343/* end confdefs.h.  */
13344
13345#include <sys/mman.h>
13346
13347int
13348main ()
13349{
13350
13351	madvise((void *)0, 0, MADV_FREE);
13352
13353  ;
13354  return 0;
13355}
13356_ACEOF
13357if ac_fn_c_try_link "$LINENO"; then :
13358  je_cv_madv_free=yes
13359else
13360  je_cv_madv_free=no
13361fi
13362rm -f core conftest.err conftest.$ac_objext \
13363    conftest$ac_exeext conftest.$ac_ext
13364fi
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
13366$as_echo "$je_cv_madv_free" >&6; }
13367
13368  if test "x${je_cv_madv_free}" = "xyes" ; then
13369
13370$as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
13371
13372  elif test "x${je_cv_madvise}" = "xyes" ; then
13373    case "${host_cpu}" in i686|x86_64)
13374        case "${host}" in *-*-linux*)
13375
13376$as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
13377
13378
13379$as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE  " >>confdefs.h
13380
13381	    ;;
13382        esac
13383        ;;
13384    esac
13385  fi
13386
13387
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
13389$as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
13390if ${je_cv_madv_dontneed+:} false; then :
13391  $as_echo_n "(cached) " >&6
13392else
13393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h.  */
13395
13396#include <sys/mman.h>
13397
13398int
13399main ()
13400{
13401
13402	madvise((void *)0, 0, MADV_DONTNEED);
13403
13404  ;
13405  return 0;
13406}
13407_ACEOF
13408if ac_fn_c_try_link "$LINENO"; then :
13409  je_cv_madv_dontneed=yes
13410else
13411  je_cv_madv_dontneed=no
13412fi
13413rm -f core conftest.err conftest.$ac_objext \
13414    conftest$ac_exeext conftest.$ac_ext
13415fi
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
13417$as_echo "$je_cv_madv_dontneed" >&6; }
13418
13419  if test "x${je_cv_madv_dontneed}" = "xyes" ; then
13420
13421$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED  " >>confdefs.h
13422
13423  fi
13424
13425
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
13427$as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
13428if ${je_cv_madv_dontdump+:} false; then :
13429  $as_echo_n "(cached) " >&6
13430else
13431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432/* end confdefs.h.  */
13433
13434#include <sys/mman.h>
13435
13436int
13437main ()
13438{
13439
13440	madvise((void *)0, 0, MADV_DONTDUMP);
13441	madvise((void *)0, 0, MADV_DODUMP);
13442
13443  ;
13444  return 0;
13445}
13446_ACEOF
13447if ac_fn_c_try_link "$LINENO"; then :
13448  je_cv_madv_dontdump=yes
13449else
13450  je_cv_madv_dontdump=no
13451fi
13452rm -f core conftest.err conftest.$ac_objext \
13453    conftest$ac_exeext conftest.$ac_ext
13454fi
13455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
13456$as_echo "$je_cv_madv_dontdump" >&6; }
13457
13458  if test "x${je_cv_madv_dontdump}" = "xyes" ; then
13459
13460$as_echo "#define JEMALLOC_MADVISE_DONTDUMP  " >>confdefs.h
13461
13462  fi
13463
13464
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
13466$as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
13467if ${je_cv_thp+:} false; then :
13468  $as_echo_n "(cached) " >&6
13469else
13470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471/* end confdefs.h.  */
13472
13473#include <sys/mman.h>
13474
13475int
13476main ()
13477{
13478
13479	madvise((void *)0, 0, MADV_HUGEPAGE);
13480	madvise((void *)0, 0, MADV_NOHUGEPAGE);
13481
13482  ;
13483  return 0;
13484}
13485_ACEOF
13486if ac_fn_c_try_link "$LINENO"; then :
13487  je_cv_thp=yes
13488else
13489  je_cv_thp=no
13490fi
13491rm -f core conftest.err conftest.$ac_objext \
13492    conftest$ac_exeext conftest.$ac_ext
13493fi
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
13495$as_echo "$je_cv_thp" >&6; }
13496
13497
13498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]CORE) is compilable" >&5
13499$as_echo_n "checking whether madvise(..., MADV_[NO]CORE) is compilable... " >&6; }
13500if ${je_cv_madv_nocore+:} false; then :
13501  $as_echo_n "(cached) " >&6
13502else
13503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504/* end confdefs.h.  */
13505
13506#include <sys/mman.h>
13507
13508int
13509main ()
13510{
13511
13512	madvise((void *)0, 0, MADV_NOCORE);
13513	madvise((void *)0, 0, MADV_CORE);
13514
13515  ;
13516  return 0;
13517}
13518_ACEOF
13519if ac_fn_c_try_link "$LINENO"; then :
13520  je_cv_madv_nocore=yes
13521else
13522  je_cv_madv_nocore=no
13523fi
13524rm -f core conftest.err conftest.$ac_objext \
13525    conftest$ac_exeext conftest.$ac_ext
13526fi
13527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_nocore" >&5
13528$as_echo "$je_cv_madv_nocore" >&6; }
13529
13530  if test "x${je_cv_madv_nocore}" = "xyes" ; then
13531
13532$as_echo "#define JEMALLOC_MADVISE_NOCORE  " >>confdefs.h
13533
13534  fi
13535case "${host_cpu}" in
13536  arm*)
13537    ;;
13538  *)
13539  if test "x${je_cv_thp}" = "xyes" ; then
13540
13541$as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE  " >>confdefs.h
13542
13543  fi
13544  ;;
13545esac
13546else
13547
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_madvise is compilable" >&5
13549$as_echo_n "checking whether posix_madvise is compilable... " >&6; }
13550if ${je_cv_posix_madvise+:} false; then :
13551  $as_echo_n "(cached) " >&6
13552else
13553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554/* end confdefs.h.  */
13555
13556  #include <sys/mman.h>
13557
13558int
13559main ()
13560{
13561
13562    posix_madvise((void *)0, 0, 0);
13563
13564  ;
13565  return 0;
13566}
13567_ACEOF
13568if ac_fn_c_try_link "$LINENO"; then :
13569  je_cv_posix_madvise=yes
13570else
13571  je_cv_posix_madvise=no
13572fi
13573rm -f core conftest.err conftest.$ac_objext \
13574    conftest$ac_exeext conftest.$ac_ext
13575fi
13576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_posix_madvise" >&5
13577$as_echo "$je_cv_posix_madvise" >&6; }
13578
13579  if test "x${je_cv_posix_madvise}" = "xyes" ; then
13580
13581$as_echo "#define JEMALLOC_HAVE_POSIX_MADVISE  " >>confdefs.h
13582
13583
13584
13585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_madvise(..., POSIX_MADV_DONTNEED) is compilable" >&5
13586$as_echo_n "checking whether posix_madvise(..., POSIX_MADV_DONTNEED) is compilable... " >&6; }
13587if ${je_cv_posix_madv_dontneed+:} false; then :
13588  $as_echo_n "(cached) " >&6
13589else
13590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591/* end confdefs.h.  */
13592
13593  #include <sys/mman.h>
13594
13595int
13596main ()
13597{
13598
13599    posix_madvise((void *)0, 0, POSIX_MADV_DONTNEED);
13600
13601  ;
13602  return 0;
13603}
13604_ACEOF
13605if ac_fn_c_try_link "$LINENO"; then :
13606  je_cv_posix_madv_dontneed=yes
13607else
13608  je_cv_posix_madv_dontneed=no
13609fi
13610rm -f core conftest.err conftest.$ac_objext \
13611    conftest$ac_exeext conftest.$ac_ext
13612fi
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_posix_madv_dontneed" >&5
13614$as_echo "$je_cv_posix_madv_dontneed" >&6; }
13615
13616    if test "x${je_cv_posix_madv_dontneed}" = "xyes" ; then
13617
13618$as_echo "#define JEMALLOC_PURGE_POSIX_MADVISE_DONTNEED  " >>confdefs.h
13619
13620    fi
13621  fi
13622fi
13623
13624
13625
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mprotect(2) is compilable" >&5
13627$as_echo_n "checking whether mprotect(2) is compilable... " >&6; }
13628if ${je_cv_mprotect+:} false; then :
13629  $as_echo_n "(cached) " >&6
13630else
13631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632/* end confdefs.h.  */
13633
13634#include <sys/mman.h>
13635
13636int
13637main ()
13638{
13639
13640	mprotect((void *)0, 0, PROT_NONE);
13641
13642  ;
13643  return 0;
13644}
13645_ACEOF
13646if ac_fn_c_try_link "$LINENO"; then :
13647  je_cv_mprotect=yes
13648else
13649  je_cv_mprotect=no
13650fi
13651rm -f core conftest.err conftest.$ac_objext \
13652    conftest$ac_exeext conftest.$ac_ext
13653fi
13654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mprotect" >&5
13655$as_echo "$je_cv_mprotect" >&6; }
13656
13657if test "x${je_cv_mprotect}" = "xyes" ; then
13658
13659$as_echo "#define JEMALLOC_HAVE_MPROTECT  " >>confdefs.h
13660
13661fi
13662
13663
13664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
13665$as_echo_n "checking for __builtin_clz... " >&6; }
13666if ${je_cv_builtin_clz+:} false; then :
13667  $as_echo_n "(cached) " >&6
13668else
13669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670/* end confdefs.h.  */
13671
13672int
13673main ()
13674{
13675
13676                                                {
13677                                                        unsigned x = 0;
13678                                                        int y = __builtin_clz(x);
13679                                                }
13680                                                {
13681                                                        unsigned long x = 0;
13682                                                        int y = __builtin_clzl(x);
13683                                                }
13684                                                {
13685                                                        unsigned long long x = 0;
13686                                                        int y = __builtin_clzll(x);
13687                                                }
13688
13689  ;
13690  return 0;
13691}
13692_ACEOF
13693if ac_fn_c_try_link "$LINENO"; then :
13694  je_cv_builtin_clz=yes
13695else
13696  je_cv_builtin_clz=no
13697fi
13698rm -f core conftest.err conftest.$ac_objext \
13699    conftest$ac_exeext conftest.$ac_ext
13700fi
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
13702$as_echo "$je_cv_builtin_clz" >&6; }
13703
13704if test "x${je_cv_builtin_clz}" = "xyes" ; then
13705
13706$as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ  " >>confdefs.h
13707
13708fi
13709
13710
13711
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
13713$as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
13714if ${je_cv_os_unfair_lock+:} false; then :
13715  $as_echo_n "(cached) " >&6
13716else
13717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718/* end confdefs.h.  */
13719
13720#include <os/lock.h>
13721#include <AvailabilityMacros.h>
13722
13723int
13724main ()
13725{
13726
13727	#if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
13728	#error "os_unfair_lock is not supported"
13729	#else
13730	os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
13731	os_unfair_lock_lock(&lock);
13732	os_unfair_lock_unlock(&lock);
13733	#endif
13734
13735  ;
13736  return 0;
13737}
13738_ACEOF
13739if ac_fn_c_try_link "$LINENO"; then :
13740  je_cv_os_unfair_lock=yes
13741else
13742  je_cv_os_unfair_lock=no
13743fi
13744rm -f core conftest.err conftest.$ac_objext \
13745    conftest$ac_exeext conftest.$ac_ext
13746fi
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
13748$as_echo "$je_cv_os_unfair_lock" >&6; }
13749
13750if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
13751
13752$as_echo "#define JEMALLOC_OS_UNFAIR_LOCK  " >>confdefs.h
13753
13754fi
13755
13756
13757# Check whether --enable-zone-allocator was given.
13758if test "${enable_zone_allocator+set}" = set; then :
13759  enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
13760  enable_zone_allocator="0"
13761else
13762  enable_zone_allocator="1"
13763fi
13764
13765else
13766  if test "x${abi}" = "xmacho"; then
13767  enable_zone_allocator="1"
13768fi
13769
13770
13771fi
13772
13773
13774
13775if test "x${enable_zone_allocator}" = "x1" ; then
13776  if test "x${abi}" != "xmacho"; then
13777    as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
13778  fi
13779
13780$as_echo "#define JEMALLOC_ZONE  " >>confdefs.h
13781
13782fi
13783
13784# Check whether --enable-initial-exec-tls was given.
13785if test "${enable_initial_exec_tls+set}" = set; then :
13786  enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
13787  enable_initial_exec_tls="0"
13788else
13789  enable_initial_exec_tls="1"
13790fi
13791
13792else
13793  enable_initial_exec_tls="1"
13794
13795fi
13796
13797
13798
13799if test "x${je_cv_tls_model}" = "xyes" -a \
13800       "x${enable_initial_exec_tls}" = "x1" ; then
13801
13802$as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
13803
13804else
13805
13806$as_echo "#define JEMALLOC_TLS_MODEL  " >>confdefs.h
13807
13808fi
13809
13810
13811if test "x${have_pthread}" = "x1" -a "x${je_cv_os_unfair_lock}" != "xyes" -a \
13812       "x${abi}" != "xmacho" ; then
13813
13814$as_echo "#define JEMALLOC_BACKGROUND_THREAD  " >>confdefs.h
13815
13816fi
13817
13818
13819if test "x$glibc" = "x1" ; then
13820
13821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
13822$as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
13823if ${je_cv_glibc_malloc_hook+:} false; then :
13824  $as_echo_n "(cached) " >&6
13825else
13826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827/* end confdefs.h.  */
13828
13829  #include <stddef.h>
13830
13831  extern void (* __free_hook)(void *ptr);
13832  extern void *(* __malloc_hook)(size_t size);
13833  extern void *(* __realloc_hook)(void *ptr, size_t size);
13834
13835int
13836main ()
13837{
13838
13839    void *ptr = 0L;
13840    if (__malloc_hook) ptr = __malloc_hook(1);
13841    if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
13842    if (__free_hook && ptr) __free_hook(ptr);
13843
13844  ;
13845  return 0;
13846}
13847_ACEOF
13848if ac_fn_c_try_link "$LINENO"; then :
13849  je_cv_glibc_malloc_hook=yes
13850else
13851  je_cv_glibc_malloc_hook=no
13852fi
13853rm -f core conftest.err conftest.$ac_objext \
13854    conftest$ac_exeext conftest.$ac_ext
13855fi
13856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
13857$as_echo "$je_cv_glibc_malloc_hook" >&6; }
13858
13859  if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
13860    if test "x${JEMALLOC_PREFIX}" = "x" ; then
13861
13862$as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK  " >>confdefs.h
13863
13864      wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
13865    fi
13866  fi
13867
13868
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
13870$as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
13871if ${je_cv_glibc_memalign_hook+:} false; then :
13872  $as_echo_n "(cached) " >&6
13873else
13874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875/* end confdefs.h.  */
13876
13877  #include <stddef.h>
13878
13879  extern void *(* __memalign_hook)(size_t alignment, size_t size);
13880
13881int
13882main ()
13883{
13884
13885    void *ptr = 0L;
13886    if (__memalign_hook) ptr = __memalign_hook(16, 7);
13887
13888  ;
13889  return 0;
13890}
13891_ACEOF
13892if ac_fn_c_try_link "$LINENO"; then :
13893  je_cv_glibc_memalign_hook=yes
13894else
13895  je_cv_glibc_memalign_hook=no
13896fi
13897rm -f core conftest.err conftest.$ac_objext \
13898    conftest$ac_exeext conftest.$ac_ext
13899fi
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
13901$as_echo "$je_cv_glibc_memalign_hook" >&6; }
13902
13903  if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
13904    if test "x${JEMALLOC_PREFIX}" = "x" ; then
13905
13906$as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK  " >>confdefs.h
13907
13908      wrap_syms="${wrap_syms} __memalign_hook"
13909    fi
13910  fi
13911fi
13912
13913
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
13915$as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
13916if ${je_cv_pthread_mutex_adaptive_np+:} false; then :
13917  $as_echo_n "(cached) " >&6
13918else
13919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920/* end confdefs.h.  */
13921
13922#include <pthread.h>
13923
13924int
13925main ()
13926{
13927
13928  pthread_mutexattr_t attr;
13929  pthread_mutexattr_init(&attr);
13930  pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
13931  pthread_mutexattr_destroy(&attr);
13932
13933  ;
13934  return 0;
13935}
13936_ACEOF
13937if ac_fn_c_try_link "$LINENO"; then :
13938  je_cv_pthread_mutex_adaptive_np=yes
13939else
13940  je_cv_pthread_mutex_adaptive_np=no
13941fi
13942rm -f core conftest.err conftest.$ac_objext \
13943    conftest$ac_exeext conftest.$ac_ext
13944fi
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
13946$as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
13947
13948if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
13949
13950$as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP  " >>confdefs.h
13951
13952fi
13953
13954SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
13955
13956
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
13958$as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
13959T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
13960T_APPEND_V=-D_GNU_SOURCE
13961  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
13962  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
13963else
13964  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
13965fi
13966
13967
13968if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
13969  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
13970else
13971  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
13972fi
13973
13974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975/* end confdefs.h.  */
13976
13977
13978int
13979main ()
13980{
13981
13982    return 0;
13983
13984  ;
13985  return 0;
13986}
13987_ACEOF
13988if ac_fn_c_try_compile "$LINENO"; then :
13989  je_cv_cflags_added=-D_GNU_SOURCE
13990              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13991$as_echo "yes" >&6; }
13992else
13993  je_cv_cflags_added=
13994              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13995$as_echo "no" >&6; }
13996              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
13997
13998fi
13999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
14001  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
14002else
14003  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
14004fi
14005
14006
14007
14008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
14009$as_echo_n "checking whether compiler supports -Werror... " >&6; }
14010T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
14011T_APPEND_V=-Werror
14012  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
14013  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
14014else
14015  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
14016fi
14017
14018
14019if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
14020  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
14021else
14022  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
14023fi
14024
14025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026/* end confdefs.h.  */
14027
14028
14029int
14030main ()
14031{
14032
14033    return 0;
14034
14035  ;
14036  return 0;
14037}
14038_ACEOF
14039if ac_fn_c_try_compile "$LINENO"; then :
14040  je_cv_cflags_added=-Werror
14041              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14042$as_echo "yes" >&6; }
14043else
14044  je_cv_cflags_added=
14045              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046$as_echo "no" >&6; }
14047              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
14048
14049fi
14050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
14052  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
14053else
14054  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
14055fi
14056
14057
14058
14059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
14060$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
14061T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
14062T_APPEND_V=-herror_on_warning
14063  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
14064  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
14065else
14066  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
14067fi
14068
14069
14070if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
14071  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
14072else
14073  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
14074fi
14075
14076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077/* end confdefs.h.  */
14078
14079
14080int
14081main ()
14082{
14083
14084    return 0;
14085
14086  ;
14087  return 0;
14088}
14089_ACEOF
14090if ac_fn_c_try_compile "$LINENO"; then :
14091  je_cv_cflags_added=-herror_on_warning
14092              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14093$as_echo "yes" >&6; }
14094else
14095  je_cv_cflags_added=
14096              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14097$as_echo "no" >&6; }
14098              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
14099
14100fi
14101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
14103  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
14104else
14105  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
14106fi
14107
14108
14109
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
14111$as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
14112if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then :
14113  $as_echo_n "(cached) " >&6
14114else
14115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116/* end confdefs.h.  */
14117
14118#include <errno.h>
14119#include <stdio.h>
14120#include <stdlib.h>
14121#include <string.h>
14122
14123int
14124main ()
14125{
14126
14127  char *buffer = (char *) malloc(100);
14128  char *error = strerror_r(EINVAL, buffer, 100);
14129  printf("%s\n", error);
14130
14131  ;
14132  return 0;
14133}
14134_ACEOF
14135if ac_fn_c_try_link "$LINENO"; then :
14136  je_cv_strerror_r_returns_char_with_gnu_source=yes
14137else
14138  je_cv_strerror_r_returns_char_with_gnu_source=no
14139fi
14140rm -f core conftest.err conftest.$ac_objext \
14141    conftest$ac_exeext conftest.$ac_ext
14142fi
14143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
14144$as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
14145
14146CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
14147if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
14148  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
14149else
14150  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
14151fi
14152
14153
14154if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
14155
14156$as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE  " >>confdefs.h
14157
14158fi
14159
14160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14161$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14162if ${ac_cv_header_stdbool_h+:} false; then :
14163  $as_echo_n "(cached) " >&6
14164else
14165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166/* end confdefs.h.  */
14167
14168             #include <stdbool.h>
14169             #ifndef bool
14170              "error: bool is not defined"
14171             #endif
14172             #ifndef false
14173              "error: false is not defined"
14174             #endif
14175             #if false
14176              "error: false is not 0"
14177             #endif
14178             #ifndef true
14179              "error: true is not defined"
14180             #endif
14181             #if true != 1
14182              "error: true is not 1"
14183             #endif
14184             #ifndef __bool_true_false_are_defined
14185              "error: __bool_true_false_are_defined is not defined"
14186             #endif
14187
14188             struct s { _Bool s: 1; _Bool t; } s;
14189
14190             char a[true == 1 ? 1 : -1];
14191             char b[false == 0 ? 1 : -1];
14192             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14193             char d[(bool) 0.5 == true ? 1 : -1];
14194             /* See body of main program for 'e'.  */
14195             char f[(_Bool) 0.0 == false ? 1 : -1];
14196             char g[true];
14197             char h[sizeof (_Bool)];
14198             char i[sizeof s.t];
14199             enum { j = false, k = true, l = false * true, m = true * 256 };
14200             /* The following fails for
14201                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14202             _Bool n[m];
14203             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14204             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14205             /* Catch a bug in an HP-UX C compiler.  See
14206                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14207                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14208              */
14209             _Bool q = true;
14210             _Bool *pq = &q;
14211
14212int
14213main ()
14214{
14215
14216             bool e = &s;
14217             *pq |= q;
14218             *pq |= ! q;
14219             /* Refer to every declared value, to avoid compiler optimizations.  */
14220             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14221                     + !m + !n + !o + !p + !q + !pq);
14222
14223  ;
14224  return 0;
14225}
14226_ACEOF
14227if ac_fn_c_try_compile "$LINENO"; then :
14228  ac_cv_header_stdbool_h=yes
14229else
14230  ac_cv_header_stdbool_h=no
14231fi
14232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233fi
14234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14235$as_echo "$ac_cv_header_stdbool_h" >&6; }
14236   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14237if test "x$ac_cv_type__Bool" = xyes; then :
14238
14239cat >>confdefs.h <<_ACEOF
14240#define HAVE__BOOL 1
14241_ACEOF
14242
14243
14244fi
14245
14246
14247if test $ac_cv_header_stdbool_h = yes; then
14248
14249$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
14250
14251fi
14252
14253
14254
14255ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
14256
14257ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
14258
14259ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
14260
14261ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
14262
14263ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
14264
14265ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
14266
14267ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
14268
14269ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
14270
14271ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
14272
14273ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
14274
14275
14276
14277
14278ac_config_headers="$ac_config_headers $cfghdrs_tup"
14279
14280
14281
14282ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
14283
14284
14285
14286cat >confcache <<\_ACEOF
14287# This file is a shell script that caches the results of configure
14288# tests run on this system so they can be shared between configure
14289# scripts and configure runs, see configure's option --config-cache.
14290# It is not useful on other systems.  If it contains results you don't
14291# want to keep, you may remove or edit it.
14292#
14293# config.status only pays attention to the cache file if you give it
14294# the --recheck option to rerun configure.
14295#
14296# `ac_cv_env_foo' variables (set or unset) will be overridden when
14297# loading this file, other *unset* `ac_cv_foo' will be assigned the
14298# following values.
14299
14300_ACEOF
14301
14302# The following way of writing the cache mishandles newlines in values,
14303# but we know of no workaround that is simple, portable, and efficient.
14304# So, we kill variables containing newlines.
14305# Ultrix sh set writes to stderr and can't be redirected directly,
14306# and sets the high bit in the cache file unless we assign to the vars.
14307(
14308  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14309    eval ac_val=\$$ac_var
14310    case $ac_val in #(
14311    *${as_nl}*)
14312      case $ac_var in #(
14313      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14314$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14315      esac
14316      case $ac_var in #(
14317      _ | IFS | as_nl) ;; #(
14318      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14319      *) { eval $ac_var=; unset $ac_var;} ;;
14320      esac ;;
14321    esac
14322  done
14323
14324  (set) 2>&1 |
14325    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14326    *${as_nl}ac_space=\ *)
14327      # `set' does not quote correctly, so add quotes: double-quote
14328      # substitution turns \\\\ into \\, and sed turns \\ into \.
14329      sed -n \
14330	"s/'/'\\\\''/g;
14331	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14332      ;; #(
14333    *)
14334      # `set' quotes correctly as required by POSIX, so do not add quotes.
14335      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14336      ;;
14337    esac |
14338    sort
14339) |
14340  sed '
14341     /^ac_cv_env_/b end
14342     t clear
14343     :clear
14344     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14345     t end
14346     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14347     :end' >>confcache
14348if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14349  if test -w "$cache_file"; then
14350    if test "x$cache_file" != "x/dev/null"; then
14351      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14352$as_echo "$as_me: updating cache $cache_file" >&6;}
14353      if test ! -f "$cache_file" || test -h "$cache_file"; then
14354	cat confcache >"$cache_file"
14355      else
14356        case $cache_file in #(
14357        */* | ?:*)
14358	  mv -f confcache "$cache_file"$$ &&
14359	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14360        *)
14361	  mv -f confcache "$cache_file" ;;
14362	esac
14363      fi
14364    fi
14365  else
14366    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14367$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14368  fi
14369fi
14370rm -f confcache
14371
14372test "x$prefix" = xNONE && prefix=$ac_default_prefix
14373# Let make expand exec_prefix.
14374test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14375
14376DEFS=-DHAVE_CONFIG_H
14377
14378ac_libobjs=
14379ac_ltlibobjs=
14380U=
14381for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14382  # 1. Remove the extension, and $U if already installed.
14383  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14384  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14385  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14386  #    will be set to the directory where LIBOBJS objects are built.
14387  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14388  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14389done
14390LIBOBJS=$ac_libobjs
14391
14392LTLIBOBJS=$ac_ltlibobjs
14393
14394
14395
14396
14397: "${CONFIG_STATUS=./config.status}"
14398ac_write_fail=0
14399ac_clean_files_save=$ac_clean_files
14400ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14402$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14403as_write_fail=0
14404cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14405#! $SHELL
14406# Generated by $as_me.
14407# Run this file to recreate the current configuration.
14408# Compiler output produced by configure, useful for debugging
14409# configure, is in config.log if it exists.
14410
14411debug=false
14412ac_cs_recheck=false
14413ac_cs_silent=false
14414
14415SHELL=\${CONFIG_SHELL-$SHELL}
14416export SHELL
14417_ASEOF
14418cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14419## -------------------- ##
14420## M4sh Initialization. ##
14421## -------------------- ##
14422
14423# Be more Bourne compatible
14424DUALCASE=1; export DUALCASE # for MKS sh
14425if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14426  emulate sh
14427  NULLCMD=:
14428  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14429  # is contrary to our usage.  Disable this feature.
14430  alias -g '${1+"$@"}'='"$@"'
14431  setopt NO_GLOB_SUBST
14432else
14433  case `(set -o) 2>/dev/null` in #(
14434  *posix*) :
14435    set -o posix ;; #(
14436  *) :
14437     ;;
14438esac
14439fi
14440
14441
14442as_nl='
14443'
14444export as_nl
14445# Printing a long string crashes Solaris 7 /usr/bin/printf.
14446as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14447as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14448as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14449# Prefer a ksh shell builtin over an external printf program on Solaris,
14450# but without wasting forks for bash or zsh.
14451if test -z "$BASH_VERSION$ZSH_VERSION" \
14452    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14453  as_echo='print -r --'
14454  as_echo_n='print -rn --'
14455elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14456  as_echo='printf %s\n'
14457  as_echo_n='printf %s'
14458else
14459  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14460    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14461    as_echo_n='/usr/ucb/echo -n'
14462  else
14463    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14464    as_echo_n_body='eval
14465      arg=$1;
14466      case $arg in #(
14467      *"$as_nl"*)
14468	expr "X$arg" : "X\\(.*\\)$as_nl";
14469	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14470      esac;
14471      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14472    '
14473    export as_echo_n_body
14474    as_echo_n='sh -c $as_echo_n_body as_echo'
14475  fi
14476  export as_echo_body
14477  as_echo='sh -c $as_echo_body as_echo'
14478fi
14479
14480# The user is always right.
14481if test "${PATH_SEPARATOR+set}" != set; then
14482  PATH_SEPARATOR=:
14483  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14484    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14485      PATH_SEPARATOR=';'
14486  }
14487fi
14488
14489
14490# IFS
14491# We need space, tab and new line, in precisely that order.  Quoting is
14492# there to prevent editors from complaining about space-tab.
14493# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14494# splitting by setting IFS to empty value.)
14495IFS=" ""	$as_nl"
14496
14497# Find who we are.  Look in the path if we contain no directory separator.
14498as_myself=
14499case $0 in #((
14500  *[\\/]* ) as_myself=$0 ;;
14501  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502for as_dir in $PATH
14503do
14504  IFS=$as_save_IFS
14505  test -z "$as_dir" && as_dir=.
14506    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14507  done
14508IFS=$as_save_IFS
14509
14510     ;;
14511esac
14512# We did not find ourselves, most probably we were run as `sh COMMAND'
14513# in which case we are not to be found in the path.
14514if test "x$as_myself" = x; then
14515  as_myself=$0
14516fi
14517if test ! -f "$as_myself"; then
14518  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14519  exit 1
14520fi
14521
14522# Unset variables that we do not need and which cause bugs (e.g. in
14523# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14524# suppresses any "Segmentation fault" message there.  '((' could
14525# trigger a bug in pdksh 5.2.14.
14526for as_var in BASH_ENV ENV MAIL MAILPATH
14527do eval test x\${$as_var+set} = xset \
14528  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14529done
14530PS1='$ '
14531PS2='> '
14532PS4='+ '
14533
14534# NLS nuisances.
14535LC_ALL=C
14536export LC_ALL
14537LANGUAGE=C
14538export LANGUAGE
14539
14540# CDPATH.
14541(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14542
14543
14544# as_fn_error STATUS ERROR [LINENO LOG_FD]
14545# ----------------------------------------
14546# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14547# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14548# script with STATUS, using 1 if that was 0.
14549as_fn_error ()
14550{
14551  as_status=$1; test $as_status -eq 0 && as_status=1
14552  if test "$4"; then
14553    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14554    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14555  fi
14556  $as_echo "$as_me: error: $2" >&2
14557  as_fn_exit $as_status
14558} # as_fn_error
14559
14560
14561# as_fn_set_status STATUS
14562# -----------------------
14563# Set $? to STATUS, without forking.
14564as_fn_set_status ()
14565{
14566  return $1
14567} # as_fn_set_status
14568
14569# as_fn_exit STATUS
14570# -----------------
14571# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14572as_fn_exit ()
14573{
14574  set +e
14575  as_fn_set_status $1
14576  exit $1
14577} # as_fn_exit
14578
14579# as_fn_unset VAR
14580# ---------------
14581# Portably unset VAR.
14582as_fn_unset ()
14583{
14584  { eval $1=; unset $1;}
14585}
14586as_unset=as_fn_unset
14587# as_fn_append VAR VALUE
14588# ----------------------
14589# Append the text in VALUE to the end of the definition contained in VAR. Take
14590# advantage of any shell optimizations that allow amortized linear growth over
14591# repeated appends, instead of the typical quadratic growth present in naive
14592# implementations.
14593if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14594  eval 'as_fn_append ()
14595  {
14596    eval $1+=\$2
14597  }'
14598else
14599  as_fn_append ()
14600  {
14601    eval $1=\$$1\$2
14602  }
14603fi # as_fn_append
14604
14605# as_fn_arith ARG...
14606# ------------------
14607# Perform arithmetic evaluation on the ARGs, and store the result in the
14608# global $as_val. Take advantage of shells that can avoid forks. The arguments
14609# must be portable across $(()) and expr.
14610if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14611  eval 'as_fn_arith ()
14612  {
14613    as_val=$(( $* ))
14614  }'
14615else
14616  as_fn_arith ()
14617  {
14618    as_val=`expr "$@" || test $? -eq 1`
14619  }
14620fi # as_fn_arith
14621
14622
14623if expr a : '\(a\)' >/dev/null 2>&1 &&
14624   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14625  as_expr=expr
14626else
14627  as_expr=false
14628fi
14629
14630if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14631  as_basename=basename
14632else
14633  as_basename=false
14634fi
14635
14636if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14637  as_dirname=dirname
14638else
14639  as_dirname=false
14640fi
14641
14642as_me=`$as_basename -- "$0" ||
14643$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14644	 X"$0" : 'X\(//\)$' \| \
14645	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14646$as_echo X/"$0" |
14647    sed '/^.*\/\([^/][^/]*\)\/*$/{
14648	    s//\1/
14649	    q
14650	  }
14651	  /^X\/\(\/\/\)$/{
14652	    s//\1/
14653	    q
14654	  }
14655	  /^X\/\(\/\).*/{
14656	    s//\1/
14657	    q
14658	  }
14659	  s/.*/./; q'`
14660
14661# Avoid depending upon Character Ranges.
14662as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14663as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14664as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14665as_cr_digits='0123456789'
14666as_cr_alnum=$as_cr_Letters$as_cr_digits
14667
14668ECHO_C= ECHO_N= ECHO_T=
14669case `echo -n x` in #(((((
14670-n*)
14671  case `echo 'xy\c'` in
14672  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14673  xy)  ECHO_C='\c';;
14674  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14675       ECHO_T='	';;
14676  esac;;
14677*)
14678  ECHO_N='-n';;
14679esac
14680
14681rm -f conf$$ conf$$.exe conf$$.file
14682if test -d conf$$.dir; then
14683  rm -f conf$$.dir/conf$$.file
14684else
14685  rm -f conf$$.dir
14686  mkdir conf$$.dir 2>/dev/null
14687fi
14688if (echo >conf$$.file) 2>/dev/null; then
14689  if ln -s conf$$.file conf$$ 2>/dev/null; then
14690    as_ln_s='ln -s'
14691    # ... but there are two gotchas:
14692    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14693    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14694    # In both cases, we have to default to `cp -pR'.
14695    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14696      as_ln_s='cp -pR'
14697  elif ln conf$$.file conf$$ 2>/dev/null; then
14698    as_ln_s=ln
14699  else
14700    as_ln_s='cp -pR'
14701  fi
14702else
14703  as_ln_s='cp -pR'
14704fi
14705rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14706rmdir conf$$.dir 2>/dev/null
14707
14708
14709# as_fn_mkdir_p
14710# -------------
14711# Create "$as_dir" as a directory, including parents if necessary.
14712as_fn_mkdir_p ()
14713{
14714
14715  case $as_dir in #(
14716  -*) as_dir=./$as_dir;;
14717  esac
14718  test -d "$as_dir" || eval $as_mkdir_p || {
14719    as_dirs=
14720    while :; do
14721      case $as_dir in #(
14722      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14723      *) as_qdir=$as_dir;;
14724      esac
14725      as_dirs="'$as_qdir' $as_dirs"
14726      as_dir=`$as_dirname -- "$as_dir" ||
14727$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14728	 X"$as_dir" : 'X\(//\)[^/]' \| \
14729	 X"$as_dir" : 'X\(//\)$' \| \
14730	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14731$as_echo X"$as_dir" |
14732    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14733	    s//\1/
14734	    q
14735	  }
14736	  /^X\(\/\/\)[^/].*/{
14737	    s//\1/
14738	    q
14739	  }
14740	  /^X\(\/\/\)$/{
14741	    s//\1/
14742	    q
14743	  }
14744	  /^X\(\/\).*/{
14745	    s//\1/
14746	    q
14747	  }
14748	  s/.*/./; q'`
14749      test -d "$as_dir" && break
14750    done
14751    test -z "$as_dirs" || eval "mkdir $as_dirs"
14752  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14753
14754
14755} # as_fn_mkdir_p
14756if mkdir -p . 2>/dev/null; then
14757  as_mkdir_p='mkdir -p "$as_dir"'
14758else
14759  test -d ./-p && rmdir ./-p
14760  as_mkdir_p=false
14761fi
14762
14763
14764# as_fn_executable_p FILE
14765# -----------------------
14766# Test if FILE is an executable regular file.
14767as_fn_executable_p ()
14768{
14769  test -f "$1" && test -x "$1"
14770} # as_fn_executable_p
14771as_test_x='test -x'
14772as_executable_p=as_fn_executable_p
14773
14774# Sed expression to map a string onto a valid CPP name.
14775as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14776
14777# Sed expression to map a string onto a valid variable name.
14778as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14779
14780
14781exec 6>&1
14782## ----------------------------------- ##
14783## Main body of $CONFIG_STATUS script. ##
14784## ----------------------------------- ##
14785_ASEOF
14786test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14787
14788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14789# Save the log message, to keep $0 and so on meaningful, and to
14790# report actual input values of CONFIG_FILES etc. instead of their
14791# values after options handling.
14792ac_log="
14793This file was extended by $as_me, which was
14794generated by GNU Autoconf 2.69.  Invocation command line was
14795
14796  CONFIG_FILES    = $CONFIG_FILES
14797  CONFIG_HEADERS  = $CONFIG_HEADERS
14798  CONFIG_LINKS    = $CONFIG_LINKS
14799  CONFIG_COMMANDS = $CONFIG_COMMANDS
14800  $ $0 $@
14801
14802on `(hostname || uname -n) 2>/dev/null | sed 1q`
14803"
14804
14805_ACEOF
14806
14807case $ac_config_files in *"
14808"*) set x $ac_config_files; shift; ac_config_files=$*;;
14809esac
14810
14811case $ac_config_headers in *"
14812"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14813esac
14814
14815
14816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14817# Files that config.status was made for.
14818config_files="$ac_config_files"
14819config_headers="$ac_config_headers"
14820config_commands="$ac_config_commands"
14821
14822_ACEOF
14823
14824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14825ac_cs_usage="\
14826\`$as_me' instantiates files and other configuration actions
14827from templates according to the current configuration.  Unless the files
14828and actions are specified as TAGs, all are instantiated by default.
14829
14830Usage: $0 [OPTION]... [TAG]...
14831
14832  -h, --help       print this help, then exit
14833  -V, --version    print version number and configuration settings, then exit
14834      --config     print configuration, then exit
14835  -q, --quiet, --silent
14836                   do not print progress messages
14837  -d, --debug      don't remove temporary files
14838      --recheck    update $as_me by reconfiguring in the same conditions
14839      --file=FILE[:TEMPLATE]
14840                   instantiate the configuration file FILE
14841      --header=FILE[:TEMPLATE]
14842                   instantiate the configuration header FILE
14843
14844Configuration files:
14845$config_files
14846
14847Configuration headers:
14848$config_headers
14849
14850Configuration commands:
14851$config_commands
14852
14853Report bugs to the package provider."
14854
14855_ACEOF
14856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14857ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14858ac_cs_version="\\
14859config.status
14860configured by $0, generated by GNU Autoconf 2.69,
14861  with options \\"\$ac_cs_config\\"
14862
14863Copyright (C) 2012 Free Software Foundation, Inc.
14864This config.status script is free software; the Free Software Foundation
14865gives unlimited permission to copy, distribute and modify it."
14866
14867ac_pwd='$ac_pwd'
14868srcdir='$srcdir'
14869INSTALL='$INSTALL'
14870AWK='$AWK'
14871test -n "\$AWK" || AWK=awk
14872_ACEOF
14873
14874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14875# The default lists apply if the user does not specify any file.
14876ac_need_defaults=:
14877while test $# != 0
14878do
14879  case $1 in
14880  --*=?*)
14881    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14882    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14883    ac_shift=:
14884    ;;
14885  --*=)
14886    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14887    ac_optarg=
14888    ac_shift=:
14889    ;;
14890  *)
14891    ac_option=$1
14892    ac_optarg=$2
14893    ac_shift=shift
14894    ;;
14895  esac
14896
14897  case $ac_option in
14898  # Handling of the options.
14899  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14900    ac_cs_recheck=: ;;
14901  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14902    $as_echo "$ac_cs_version"; exit ;;
14903  --config | --confi | --conf | --con | --co | --c )
14904    $as_echo "$ac_cs_config"; exit ;;
14905  --debug | --debu | --deb | --de | --d | -d )
14906    debug=: ;;
14907  --file | --fil | --fi | --f )
14908    $ac_shift
14909    case $ac_optarg in
14910    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14911    '') as_fn_error $? "missing file argument" ;;
14912    esac
14913    as_fn_append CONFIG_FILES " '$ac_optarg'"
14914    ac_need_defaults=false;;
14915  --header | --heade | --head | --hea )
14916    $ac_shift
14917    case $ac_optarg in
14918    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14919    esac
14920    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14921    ac_need_defaults=false;;
14922  --he | --h)
14923    # Conflict between --help and --header
14924    as_fn_error $? "ambiguous option: \`$1'
14925Try \`$0 --help' for more information.";;
14926  --help | --hel | -h )
14927    $as_echo "$ac_cs_usage"; exit ;;
14928  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14929  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14930    ac_cs_silent=: ;;
14931
14932  # This is an error.
14933  -*) as_fn_error $? "unrecognized option: \`$1'
14934Try \`$0 --help' for more information." ;;
14935
14936  *) as_fn_append ac_config_targets " $1"
14937     ac_need_defaults=false ;;
14938
14939  esac
14940  shift
14941done
14942
14943ac_configure_extra_args=
14944
14945if $ac_cs_silent; then
14946  exec 6>/dev/null
14947  ac_configure_extra_args="$ac_configure_extra_args --silent"
14948fi
14949
14950_ACEOF
14951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14952if \$ac_cs_recheck; then
14953  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14954  shift
14955  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14956  CONFIG_SHELL='$SHELL'
14957  export CONFIG_SHELL
14958  exec "\$@"
14959fi
14960
14961_ACEOF
14962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14963exec 5>>config.log
14964{
14965  echo
14966  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14967## Running $as_me. ##
14968_ASBOX
14969  $as_echo "$ac_log"
14970} >&5
14971
14972_ACEOF
14973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14974#
14975# INIT-COMMANDS
14976#
14977
14978  srcdir="${srcdir}"
14979  objroot="${objroot}"
14980  mangling_map="${mangling_map}"
14981  public_syms="${public_syms}"
14982  JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
14983
14984
14985  srcdir="${srcdir}"
14986  objroot="${objroot}"
14987  public_syms="${public_syms}"
14988  wrap_syms="${wrap_syms}"
14989  SYM_PREFIX="${SYM_PREFIX}"
14990  JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
14991
14992
14993  srcdir="${srcdir}"
14994  objroot="${objroot}"
14995  public_syms="${public_syms}"
14996  wrap_syms="${wrap_syms}"
14997  SYM_PREFIX="${SYM_PREFIX}"
14998
14999
15000  srcdir="${srcdir}"
15001  objroot="${objroot}"
15002
15003
15004  srcdir="${srcdir}"
15005  objroot="${objroot}"
15006
15007
15008  srcdir="${srcdir}"
15009  objroot="${objroot}"
15010
15011
15012  srcdir="${srcdir}"
15013  objroot="${objroot}"
15014
15015
15016  srcdir="${srcdir}"
15017  objroot="${objroot}"
15018
15019
15020  srcdir="${srcdir}"
15021  objroot="${objroot}"
15022
15023
15024  srcdir="${srcdir}"
15025  objroot="${objroot}"
15026  install_suffix="${install_suffix}"
15027
15028
15029_ACEOF
15030
15031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15032
15033# Handling of arguments.
15034for ac_config_target in $ac_config_targets
15035do
15036  case $ac_config_target in
15037    "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
15038    "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
15039    "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
15040    "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
15041    "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
15042    "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
15043    "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
15044    "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
15045    "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
15046    "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
15047    "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
15048    "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
15049    "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
15050    "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
15051    "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
15052    "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
15053
15054  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15055  esac
15056done
15057
15058
15059# If the user did not use the arguments to specify the items to instantiate,
15060# then the envvar interface is used.  Set only those that are not.
15061# We use the long form for the default assignment because of an extremely
15062# bizarre bug on SunOS 4.1.3.
15063if $ac_need_defaults; then
15064  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15065  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15066  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15067fi
15068
15069# Have a temporary directory for convenience.  Make it in the build tree
15070# simply because there is no reason against having it here, and in addition,
15071# creating and moving files from /tmp can sometimes cause problems.
15072# Hook for its removal unless debugging.
15073# Note that there is a small window in which the directory will not be cleaned:
15074# after its creation but before its name has been assigned to `$tmp'.
15075$debug ||
15076{
15077  tmp= ac_tmp=
15078  trap 'exit_status=$?
15079  : "${ac_tmp:=$tmp}"
15080  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15081' 0
15082  trap 'as_fn_exit 1' 1 2 13 15
15083}
15084# Create a (secure) tmp directory for tmp files.
15085
15086{
15087  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15088  test -d "$tmp"
15089}  ||
15090{
15091  tmp=./conf$$-$RANDOM
15092  (umask 077 && mkdir "$tmp")
15093} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15094ac_tmp=$tmp
15095
15096# Set up the scripts for CONFIG_FILES section.
15097# No need to generate them if there are no CONFIG_FILES.
15098# This happens for instance with `./config.status config.h'.
15099if test -n "$CONFIG_FILES"; then
15100
15101
15102ac_cr=`echo X | tr X '\015'`
15103# On cygwin, bash can eat \r inside `` if the user requested igncr.
15104# But we know of no other shell where ac_cr would be empty at this
15105# point, so we can use a bashism as a fallback.
15106if test "x$ac_cr" = x; then
15107  eval ac_cr=\$\'\\r\'
15108fi
15109ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15110if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15111  ac_cs_awk_cr='\\r'
15112else
15113  ac_cs_awk_cr=$ac_cr
15114fi
15115
15116echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15117_ACEOF
15118
15119
15120{
15121  echo "cat >conf$$subs.awk <<_ACEOF" &&
15122  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15123  echo "_ACEOF"
15124} >conf$$subs.sh ||
15125  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15126ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15127ac_delim='%!_!# '
15128for ac_last_try in false false false false false :; do
15129  . ./conf$$subs.sh ||
15130    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15131
15132  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15133  if test $ac_delim_n = $ac_delim_num; then
15134    break
15135  elif $ac_last_try; then
15136    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15137  else
15138    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15139  fi
15140done
15141rm -f conf$$subs.sh
15142
15143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15144cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15145_ACEOF
15146sed -n '
15147h
15148s/^/S["/; s/!.*/"]=/
15149p
15150g
15151s/^[^!]*!//
15152:repl
15153t repl
15154s/'"$ac_delim"'$//
15155t delim
15156:nl
15157h
15158s/\(.\{148\}\)..*/\1/
15159t more1
15160s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15161p
15162n
15163b repl
15164:more1
15165s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15166p
15167g
15168s/.\{148\}//
15169t nl
15170:delim
15171h
15172s/\(.\{148\}\)..*/\1/
15173t more2
15174s/["\\]/\\&/g; s/^/"/; s/$/"/
15175p
15176b
15177:more2
15178s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15179p
15180g
15181s/.\{148\}//
15182t delim
15183' <conf$$subs.awk | sed '
15184/^[^""]/{
15185  N
15186  s/\n//
15187}
15188' >>$CONFIG_STATUS || ac_write_fail=1
15189rm -f conf$$subs.awk
15190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15191_ACAWK
15192cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15193  for (key in S) S_is_set[key] = 1
15194  FS = ""
15195
15196}
15197{
15198  line = $ 0
15199  nfields = split(line, field, "@")
15200  substed = 0
15201  len = length(field[1])
15202  for (i = 2; i < nfields; i++) {
15203    key = field[i]
15204    keylen = length(key)
15205    if (S_is_set[key]) {
15206      value = S[key]
15207      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15208      len += length(value) + length(field[++i])
15209      substed = 1
15210    } else
15211      len += 1 + keylen
15212  }
15213
15214  print line
15215}
15216
15217_ACAWK
15218_ACEOF
15219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15220if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15221  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15222else
15223  cat
15224fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15225  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15226_ACEOF
15227
15228# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15229# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15230# trailing colons and then remove the whole line if VPATH becomes empty
15231# (actually we leave an empty line to preserve line numbers).
15232if test "x$srcdir" = x.; then
15233  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15234h
15235s///
15236s/^/:/
15237s/[	 ]*$/:/
15238s/:\$(srcdir):/:/g
15239s/:\${srcdir}:/:/g
15240s/:@srcdir@:/:/g
15241s/^:*//
15242s/:*$//
15243x
15244s/\(=[	 ]*\).*/\1/
15245G
15246s/\n//
15247s/^[^=]*=[	 ]*$//
15248}'
15249fi
15250
15251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15252fi # test -n "$CONFIG_FILES"
15253
15254# Set up the scripts for CONFIG_HEADERS section.
15255# No need to generate them if there are no CONFIG_HEADERS.
15256# This happens for instance with `./config.status Makefile'.
15257if test -n "$CONFIG_HEADERS"; then
15258cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15259BEGIN {
15260_ACEOF
15261
15262# Transform confdefs.h into an awk script `defines.awk', embedded as
15263# here-document in config.status, that substitutes the proper values into
15264# config.h.in to produce config.h.
15265
15266# Create a delimiter string that does not exist in confdefs.h, to ease
15267# handling of long lines.
15268ac_delim='%!_!# '
15269for ac_last_try in false false :; do
15270  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15271  if test -z "$ac_tt"; then
15272    break
15273  elif $ac_last_try; then
15274    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15275  else
15276    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15277  fi
15278done
15279
15280# For the awk script, D is an array of macro values keyed by name,
15281# likewise P contains macro parameters if any.  Preserve backslash
15282# newline sequences.
15283
15284ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15285sed -n '
15286s/.\{148\}/&'"$ac_delim"'/g
15287t rset
15288:rset
15289s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15290t def
15291d
15292:def
15293s/\\$//
15294t bsnl
15295s/["\\]/\\&/g
15296s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15297D["\1"]=" \3"/p
15298s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15299d
15300:bsnl
15301s/["\\]/\\&/g
15302s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15303D["\1"]=" \3\\\\\\n"\\/p
15304t cont
15305s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15306t cont
15307d
15308:cont
15309n
15310s/.\{148\}/&'"$ac_delim"'/g
15311t clear
15312:clear
15313s/\\$//
15314t bsnlc
15315s/["\\]/\\&/g; s/^/"/; s/$/"/p
15316d
15317:bsnlc
15318s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15319b cont
15320' <confdefs.h | sed '
15321s/'"$ac_delim"'/"\\\
15322"/g' >>$CONFIG_STATUS || ac_write_fail=1
15323
15324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15325  for (key in D) D_is_set[key] = 1
15326  FS = ""
15327}
15328/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15329  line = \$ 0
15330  split(line, arg, " ")
15331  if (arg[1] == "#") {
15332    defundef = arg[2]
15333    mac1 = arg[3]
15334  } else {
15335    defundef = substr(arg[1], 2)
15336    mac1 = arg[2]
15337  }
15338  split(mac1, mac2, "(") #)
15339  macro = mac2[1]
15340  prefix = substr(line, 1, index(line, defundef) - 1)
15341  if (D_is_set[macro]) {
15342    # Preserve the white space surrounding the "#".
15343    print prefix "define", macro P[macro] D[macro]
15344    next
15345  } else {
15346    # Replace #undef with comments.  This is necessary, for example,
15347    # in the case of _POSIX_SOURCE, which is predefined and required
15348    # on some systems where configure will not decide to define it.
15349    if (defundef == "undef") {
15350      print "/*", prefix defundef, macro, "*/"
15351      next
15352    }
15353  }
15354}
15355{ print }
15356_ACAWK
15357_ACEOF
15358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15359  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15360fi # test -n "$CONFIG_HEADERS"
15361
15362
15363eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15364shift
15365for ac_tag
15366do
15367  case $ac_tag in
15368  :[FHLC]) ac_mode=$ac_tag; continue;;
15369  esac
15370  case $ac_mode$ac_tag in
15371  :[FHL]*:*);;
15372  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15373  :[FH]-) ac_tag=-:-;;
15374  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15375  esac
15376  ac_save_IFS=$IFS
15377  IFS=:
15378  set x $ac_tag
15379  IFS=$ac_save_IFS
15380  shift
15381  ac_file=$1
15382  shift
15383
15384  case $ac_mode in
15385  :L) ac_source=$1;;
15386  :[FH])
15387    ac_file_inputs=
15388    for ac_f
15389    do
15390      case $ac_f in
15391      -) ac_f="$ac_tmp/stdin";;
15392      *) # Look for the file first in the build tree, then in the source tree
15393	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15394	 # because $ac_f cannot contain `:'.
15395	 test -f "$ac_f" ||
15396	   case $ac_f in
15397	   [\\/$]*) false;;
15398	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15399	   esac ||
15400	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15401      esac
15402      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15403      as_fn_append ac_file_inputs " '$ac_f'"
15404    done
15405
15406    # Let's still pretend it is `configure' which instantiates (i.e., don't
15407    # use $as_me), people would be surprised to read:
15408    #    /* config.h.  Generated by config.status.  */
15409    configure_input='Generated from '`
15410	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15411	`' by configure.'
15412    if test x"$ac_file" != x-; then
15413      configure_input="$ac_file.  $configure_input"
15414      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15415$as_echo "$as_me: creating $ac_file" >&6;}
15416    fi
15417    # Neutralize special characters interpreted by sed in replacement strings.
15418    case $configure_input in #(
15419    *\&* | *\|* | *\\* )
15420       ac_sed_conf_input=`$as_echo "$configure_input" |
15421       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15422    *) ac_sed_conf_input=$configure_input;;
15423    esac
15424
15425    case $ac_tag in
15426    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15427      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15428    esac
15429    ;;
15430  esac
15431
15432  ac_dir=`$as_dirname -- "$ac_file" ||
15433$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15434	 X"$ac_file" : 'X\(//\)[^/]' \| \
15435	 X"$ac_file" : 'X\(//\)$' \| \
15436	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15437$as_echo X"$ac_file" |
15438    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15439	    s//\1/
15440	    q
15441	  }
15442	  /^X\(\/\/\)[^/].*/{
15443	    s//\1/
15444	    q
15445	  }
15446	  /^X\(\/\/\)$/{
15447	    s//\1/
15448	    q
15449	  }
15450	  /^X\(\/\).*/{
15451	    s//\1/
15452	    q
15453	  }
15454	  s/.*/./; q'`
15455  as_dir="$ac_dir"; as_fn_mkdir_p
15456  ac_builddir=.
15457
15458case "$ac_dir" in
15459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15460*)
15461  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15462  # A ".." for each directory in $ac_dir_suffix.
15463  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15464  case $ac_top_builddir_sub in
15465  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15466  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15467  esac ;;
15468esac
15469ac_abs_top_builddir=$ac_pwd
15470ac_abs_builddir=$ac_pwd$ac_dir_suffix
15471# for backward compatibility:
15472ac_top_builddir=$ac_top_build_prefix
15473
15474case $srcdir in
15475  .)  # We are building in place.
15476    ac_srcdir=.
15477    ac_top_srcdir=$ac_top_builddir_sub
15478    ac_abs_top_srcdir=$ac_pwd ;;
15479  [\\/]* | ?:[\\/]* )  # Absolute name.
15480    ac_srcdir=$srcdir$ac_dir_suffix;
15481    ac_top_srcdir=$srcdir
15482    ac_abs_top_srcdir=$srcdir ;;
15483  *) # Relative name.
15484    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15485    ac_top_srcdir=$ac_top_build_prefix$srcdir
15486    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15487esac
15488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15489
15490
15491  case $ac_mode in
15492  :F)
15493  #
15494  # CONFIG_FILE
15495  #
15496
15497  case $INSTALL in
15498  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15499  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15500  esac
15501_ACEOF
15502
15503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15504# If the template does not know about datarootdir, expand it.
15505# FIXME: This hack should be removed a few years after 2.60.
15506ac_datarootdir_hack=; ac_datarootdir_seen=
15507ac_sed_dataroot='
15508/datarootdir/ {
15509  p
15510  q
15511}
15512/@datadir@/p
15513/@docdir@/p
15514/@infodir@/p
15515/@localedir@/p
15516/@mandir@/p'
15517case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15518*datarootdir*) ac_datarootdir_seen=yes;;
15519*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15520  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15521$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15522_ACEOF
15523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15524  ac_datarootdir_hack='
15525  s&@datadir@&$datadir&g
15526  s&@docdir@&$docdir&g
15527  s&@infodir@&$infodir&g
15528  s&@localedir@&$localedir&g
15529  s&@mandir@&$mandir&g
15530  s&\\\${datarootdir}&$datarootdir&g' ;;
15531esac
15532_ACEOF
15533
15534# Neutralize VPATH when `$srcdir' = `.'.
15535# Shell code in configure.ac might set extrasub.
15536# FIXME: do we really want to maintain this feature?
15537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15538ac_sed_extra="$ac_vpsub
15539$extrasub
15540_ACEOF
15541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15542:t
15543/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15544s|@configure_input@|$ac_sed_conf_input|;t t
15545s&@top_builddir@&$ac_top_builddir_sub&;t t
15546s&@top_build_prefix@&$ac_top_build_prefix&;t t
15547s&@srcdir@&$ac_srcdir&;t t
15548s&@abs_srcdir@&$ac_abs_srcdir&;t t
15549s&@top_srcdir@&$ac_top_srcdir&;t t
15550s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15551s&@builddir@&$ac_builddir&;t t
15552s&@abs_builddir@&$ac_abs_builddir&;t t
15553s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15554s&@INSTALL@&$ac_INSTALL&;t t
15555$ac_datarootdir_hack
15556"
15557eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15558  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15559
15560test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15561  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15562  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15563      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15564  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15565which seems to be undefined.  Please make sure it is defined" >&5
15566$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15567which seems to be undefined.  Please make sure it is defined" >&2;}
15568
15569  rm -f "$ac_tmp/stdin"
15570  case $ac_file in
15571  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15572  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15573  esac \
15574  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15575 ;;
15576  :H)
15577  #
15578  # CONFIG_HEADER
15579  #
15580  if test x"$ac_file" != x-; then
15581    {
15582      $as_echo "/* $configure_input  */" \
15583      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15584    } >"$ac_tmp/config.h" \
15585      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15586    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15587      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15588$as_echo "$as_me: $ac_file is unchanged" >&6;}
15589    else
15590      rm -f "$ac_file"
15591      mv "$ac_tmp/config.h" "$ac_file" \
15592	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15593    fi
15594  else
15595    $as_echo "/* $configure_input  */" \
15596      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15597      || as_fn_error $? "could not create -" "$LINENO" 5
15598  fi
15599 ;;
15600
15601  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15602$as_echo "$as_me: executing $ac_file commands" >&6;}
15603 ;;
15604  esac
15605
15606
15607  case $ac_file$ac_mode in
15608    "include/jemalloc/internal/public_symbols.txt":C)
15609  f="${objroot}include/jemalloc/internal/public_symbols.txt"
15610  mkdir -p "${objroot}include/jemalloc/internal"
15611  cp /dev/null "${f}"
15612  for nm in `echo ${mangling_map} |tr ',' ' '` ; do
15613    n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
15614    m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
15615    echo "${n}:${m}" >> "${f}"
15616        public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
15617  done
15618  for sym in ${public_syms} ; do
15619    n="${sym}"
15620    m="${JEMALLOC_PREFIX}${sym}"
15621    echo "${n}:${m}" >> "${f}"
15622  done
15623 ;;
15624    "include/jemalloc/internal/private_symbols.awk":C)
15625  f="${objroot}include/jemalloc/internal/private_symbols.awk"
15626  mkdir -p "${objroot}include/jemalloc/internal"
15627  export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
15628  "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
15629 ;;
15630    "include/jemalloc/internal/private_symbols_jet.awk":C)
15631  f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
15632  mkdir -p "${objroot}include/jemalloc/internal"
15633  export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
15634  "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
15635 ;;
15636    "include/jemalloc/internal/public_namespace.h":C)
15637  mkdir -p "${objroot}include/jemalloc/internal"
15638  "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
15639 ;;
15640    "include/jemalloc/internal/public_unnamespace.h":C)
15641  mkdir -p "${objroot}include/jemalloc/internal"
15642  "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
15643 ;;
15644    "include/jemalloc/jemalloc_protos_jet.h":C)
15645  mkdir -p "${objroot}include/jemalloc"
15646  cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
15647 ;;
15648    "include/jemalloc/jemalloc_rename.h":C)
15649  mkdir -p "${objroot}include/jemalloc"
15650  "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
15651 ;;
15652    "include/jemalloc/jemalloc_mangle.h":C)
15653  mkdir -p "${objroot}include/jemalloc"
15654  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
15655 ;;
15656    "include/jemalloc/jemalloc_mangle_jet.h":C)
15657  mkdir -p "${objroot}include/jemalloc"
15658  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
15659 ;;
15660    "include/jemalloc/jemalloc.h":C)
15661  mkdir -p "${objroot}include/jemalloc"
15662  "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
15663 ;;
15664
15665  esac
15666done # for ac_tag
15667
15668
15669as_fn_exit 0
15670_ACEOF
15671ac_clean_files=$ac_clean_files_save
15672
15673test $ac_write_fail = 0 ||
15674  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15675
15676
15677# configure is writing to config.log, and then calls config.status.
15678# config.status does its own redirection, appending to config.log.
15679# Unfortunately, on DOS this fails, as config.log is still kept open
15680# by configure, so config.status won't be able to write to it; its
15681# output is simply discarded.  So we exec the FD to /dev/null,
15682# effectively closing config.log, so it can be properly (re)opened and
15683# appended to by config.status.  When coming back to configure, we
15684# need to make the FD available again.
15685if test "$no_create" != yes; then
15686  ac_cs_success=:
15687  ac_config_status_args=
15688  test "$silent" = yes &&
15689    ac_config_status_args="$ac_config_status_args --quiet"
15690  exec 5>/dev/null
15691  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15692  exec 5>>config.log
15693  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15694  # would make configure fail if this is the last instruction.
15695  $ac_cs_success || as_fn_exit 1
15696fi
15697if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15698  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15699$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15700fi
15701
15702
15703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
15704$as_echo "===============================================================================" >&6; }
15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version   : ${jemalloc_version}" >&5
15706$as_echo "jemalloc version   : ${jemalloc_version}" >&6; }
15707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision   : ${rev}" >&5
15708$as_echo "library revision   : ${rev}" >&6; }
15709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15710$as_echo "" >&6; }
15711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG             : ${CONFIG}" >&5
15712$as_echo "CONFIG             : ${CONFIG}" >&6; }
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC                 : ${CC}" >&5
15714$as_echo "CC                 : ${CC}" >&6; }
15715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&5
15716$as_echo "CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&6; }
15717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&5
15718$as_echo "SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&6; }
15719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&5
15720$as_echo "EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&6; }
15721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS           : ${CPPFLAGS}" >&5
15722$as_echo "CPPFLAGS           : ${CPPFLAGS}" >&6; }
15723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX                : ${CXX}" >&5
15724$as_echo "CXX                : ${CXX}" >&6; }
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
15726$as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
15727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
15728$as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
15729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&5
15730$as_echo "EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&6; }
15731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS            : ${LDFLAGS}" >&5
15732$as_echo "LDFLAGS            : ${LDFLAGS}" >&6; }
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&5
15734$as_echo "EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&6; }
15735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&5
15736$as_echo "DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&6; }
15737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS               : ${LIBS}" >&5
15738$as_echo "LIBS               : ${LIBS}" >&6; }
15739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA        : ${RPATH_EXTRA}" >&5
15740$as_echo "RPATH_EXTRA        : ${RPATH_EXTRA}" >&6; }
15741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15742$as_echo "" >&6; }
15743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC           : ${XSLTPROC}" >&5
15744$as_echo "XSLTPROC           : ${XSLTPROC}" >&6; }
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT            : ${XSLROOT}" >&5
15746$as_echo "XSLROOT            : ${XSLROOT}" >&6; }
15747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15748$as_echo "" >&6; }
15749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX             : ${PREFIX}" >&5
15750$as_echo "PREFIX             : ${PREFIX}" >&6; }
15751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR             : ${BINDIR}" >&5
15752$as_echo "BINDIR             : ${BINDIR}" >&6; }
15753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR            : ${DATADIR}" >&5
15754$as_echo "DATADIR            : ${DATADIR}" >&6; }
15755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR         : ${INCLUDEDIR}" >&5
15756$as_echo "INCLUDEDIR         : ${INCLUDEDIR}" >&6; }
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR             : ${LIBDIR}" >&5
15758$as_echo "LIBDIR             : ${LIBDIR}" >&6; }
15759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR             : ${MANDIR}" >&5
15760$as_echo "MANDIR             : ${MANDIR}" >&6; }
15761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15762$as_echo "" >&6; }
15763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot            : ${srcroot}" >&5
15764$as_echo "srcroot            : ${srcroot}" >&6; }
15765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot        : ${abs_srcroot}" >&5
15766$as_echo "abs_srcroot        : ${abs_srcroot}" >&6; }
15767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot            : ${objroot}" >&5
15768$as_echo "objroot            : ${objroot}" >&6; }
15769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot        : ${abs_objroot}" >&5
15770$as_echo "abs_objroot        : ${abs_objroot}" >&6; }
15771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15772$as_echo "" >&6; }
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&5
15774$as_echo "JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&6; }
15775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
15776$as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
15777{ $as_echo "$as_me:${as_lineno-$LINENO}: result:                    : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
15778$as_echo "                   : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
15779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix     : ${install_suffix}" >&5
15780$as_echo "install_suffix     : ${install_suffix}" >&6; }
15781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf        : ${config_malloc_conf}" >&5
15782$as_echo "malloc_conf        : ${config_malloc_conf}" >&6; }
15783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: documentation      : ${enable_doc}" >&5
15784$as_echo "documentation      : ${enable_doc}" >&6; }
15785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: shared libs        : ${enable_shared}" >&5
15786$as_echo "shared libs        : ${enable_shared}" >&6; }
15787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: static libs        : ${enable_static}" >&5
15788$as_echo "static libs        : ${enable_static}" >&6; }
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen            : ${enable_autogen}" >&5
15790$as_echo "autogen            : ${enable_autogen}" >&6; }
15791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: debug              : ${enable_debug}" >&5
15792$as_echo "debug              : ${enable_debug}" >&6; }
15793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: stats              : ${enable_stats}" >&5
15794$as_echo "stats              : ${enable_stats}" >&6; }
15795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: experimental_smallocx : ${enable_experimental_smallocx}" >&5
15796$as_echo "experimental_smallocx : ${enable_experimental_smallocx}" >&6; }
15797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof               : ${enable_prof}" >&5
15798$as_echo "prof               : ${enable_prof}" >&6; }
15799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind     : ${enable_prof_libunwind}" >&5
15800$as_echo "prof-libunwind     : ${enable_prof_libunwind}" >&6; }
15801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc        : ${enable_prof_libgcc}" >&5
15802$as_echo "prof-libgcc        : ${enable_prof_libgcc}" >&6; }
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc           : ${enable_prof_gcc}" >&5
15804$as_echo "prof-gcc           : ${enable_prof_gcc}" >&6; }
15805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fill               : ${enable_fill}" >&5
15806$as_echo "fill               : ${enable_fill}" >&6; }
15807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace             : ${enable_utrace}" >&5
15808$as_echo "utrace             : ${enable_utrace}" >&6; }
15809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc            : ${enable_xmalloc}" >&5
15810$as_echo "xmalloc            : ${enable_xmalloc}" >&6; }
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: log                : ${enable_log}" >&5
15812$as_echo "log                : ${enable_log}" >&6; }
15813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock          : ${enable_lazy_lock}" >&5
15814$as_echo "lazy_lock          : ${enable_lazy_lock}" >&6; }
15815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious    : ${enable_cache_oblivious}" >&5
15816$as_echo "cache-oblivious    : ${enable_cache_oblivious}" >&6; }
15817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx                : ${enable_cxx}" >&5
15818$as_echo "cxx                : ${enable_cxx}" >&6; }
15819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
15820$as_echo "===============================================================================" >&6; }
15821